futimens: work around Solaris 11 bug
[gnulib.git] / ChangeLog
1 2010-10-11  Eric Blake  <eblake@redhat.com>
2
3         futimens: work around Solaris 11 bug
4         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
5         * tests/test-futimens.h (test_futimens): Enhance, rather than
6         weaken test.
7         * doc/posix-functions/futimens.texi (futimens): Document the bug.
8
9 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
10
11         Indentation.
12         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
13         higher-level operators more to the left.
14
15 2010-10-11  Jim Meyering  <meyering@redhat.com>
16
17         test-futimens: avoid unwarranted test failure on Solaris 5.11
18         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
19         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
20         because it tries to dereference the NULL name argument.
21
22 2010-10-11  Bruno Haible  <bruno@clisp.org>
23
24         Indentation.
25         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
26         indentation.
27
28 2010-10-11  Jim Meyering  <meyering@redhat.com>
29
30         spawn.in.h: make indentation consistent with parentheses
31         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
32         Make indentation consistent with parentheses.
33
34 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
35
36         Fix mismatched parens in previous commit
37         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
38         parens.
39
40 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
41
42         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
43
44         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
45         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
46         * lib/malloca.c: Include "verify.h".
47         (verify1): Remove, replacing with a verify call.
48         * lib/relocwrapper.c (verify1): Likewise.
49         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
50         Likewise.
51         * modules/malloca (Depends-on): Add 'verify'.
52         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
53         * modules/vasnprintf (Depends-on): Add 'verify'.
54         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
55         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
56         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
57         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
58         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
59         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
60         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
61
62         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
63
64         Formerly the style was sometimes 2*X - 1, because the C standard
65         was wrongly thought to disallow ?: in integral constant expressions.
66         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
67         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
68         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
69         * lib/stdint.in.h (_verify_intmax_size): Likewise.
70         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
71         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
72         verify that time_t cannot be floating.
73
74 2010-10-08  Eric Blake  <eblake@redhat.com>
75
76         time: enforce recent POSIX ruling that time_t is integral
77         * lib/time.in.h (__time_t_must_be_integral): Detect any
78         problematic systems, allowing the rest of gnulib to assume POSIX.
79
80 2010-10-08  Jim Meyering  <meyering@redhat.com>
81
82         fdopendir: fix a bug on systems lacking openat and /proc support
83         OpenBSD 4.7 is one such system.  The most noticeable effect was
84         failure of any application making nontrivial use of fts: rm, du,
85         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
86           ./rm: traversal failed: `a': Bad file descriptor
87         Debugging that, you see that even though FD 6 was closed just
88         prior to the opendir call in fd_clone_opendir, its resulting
89         dir->dd_fd was 8, rather than the expected value of 6:
90
91         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
92         93                close (fd);
93         (gdb) n
94         94                dir = fd_clone_opendir (dupfd);
95         (gdb) n
96         95                saved_errno = errno;
97         (gdb) p dir->dd_fd
98         $11 = 8
99
100         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
101         The problem is that on OpenBSD, fd_clone_opendir has to resort
102         to using the old-style save/restore CWD mechanism, due to its
103         lack of openat/proc support, and *that* would steal the FD (6)
104         that opendir was supposed to use.
105
106         The fix is to squirrel away the desired FD so that save_cwd uses a
107         different one, and then free the dest FD right before calling opendir.
108         That guarantees opendir will use the required file descriptor.
109
110         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
111
112 2010-10-08  Bruno Haible  <bruno@clisp.org>
113
114         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
115         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
116
117 2010-10-08  Bruno Haible  <bruno@clisp.org>
118
119         nanosleep: Make replacement POSIX compliant.
120         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
121         is out of range.
122         Reported by Jim Meyering.
123
124 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
125
126         bootstrap: add hook for altering gnulib.mk, for Bison
127         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
128         the Bison bootstrapping process can rewrite file names and variables
129         in this file before later parts of 'bootstrap' use the file.
130         Bison wants to include lib/gnulib.mk from the top-level makefile,
131         so it needs the file names in this file to be relative to the top
132         level, not relative to lib; plus it needs variable names to be
133         rewritten.
134         (slurp): Use the new function.
135
136         bootstrap: reformat for readability
137         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
138
139 2010-10-08  Eric Blake  <eblake@redhat.com>
140
141         docs: update cygwin progress
142         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
143         1.7.7.
144         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
145         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
146         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
147         * doc/posix-functions/carg.texi (carg): Likewise.
148         * doc/posix-functions/cargf.texi (cargf): Likewise.
149         * doc/posix-functions/casin.texi (casin): Likewise.
150         * doc/posix-functions/casinf.texi (casinf): Likewise.
151         * doc/posix-functions/casinh.texi (casinh): Likewise.
152         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
153         * doc/posix-functions/catan.texi (catan): Likewise.
154         * doc/posix-functions/catanf.texi (catanf): Likewise.
155         * doc/posix-functions/catanh.texi (catanh): Likewise.
156         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
157         * doc/posix-functions/ccos.texi (ccos): Likewise.
158         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
159         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
160         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
161         * doc/posix-functions/cexp.texi (cexp): Likewise.
162         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
163         * doc/posix-functions/cimag.texi (cimag): Likewise.
164         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
165         * doc/posix-functions/clog.texi (clog): Likewise.
166         * doc/posix-functions/clogf.texi (clogf): Likewise.
167         * doc/posix-functions/conj.texi (conj): Likewise.
168         * doc/posix-functions/conjf.texi (conjf): Likewise.
169         * doc/posix-functions/cpow.texi (cpow): Likewise.
170         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
171         * doc/posix-functions/cproj.texi (cproj): Likewise.
172         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
173         * doc/posix-functions/creal.texi (creal): Likewise.
174         * doc/posix-functions/crealf.texi (crealf): Likewise.
175         * doc/posix-functions/csin.texi (csin): Likewise.
176         * doc/posix-functions/csinf.texi (csinf): Likewise.
177         * doc/posix-functions/csinh.texi (csinh): Likewise.
178         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
179         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
180         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
181         * doc/posix-functions/ctan.texi (ctan): Likewise.
182         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
183         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
184         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
185         * doc/posix-headers/complex.texi (complex.h): Likewise.
186
187 2010-10-07  Jim Meyering  <meyering@redhat.com>
188
189         parse-datetime: avoid compilation failure on OpenBSD 4.7
190         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
191         This works around a compilation failure on OpenBSD 4.7:
192         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
193
194 2010-10-07  Eric Blake  <eblake@redhat.com>
195
196         docs: update cygwin progress
197         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
198         1.7.6.
199         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
200         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
201         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
202         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
203         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
204         Likewise.
205         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
206         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
207         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
208         Likewise.
209         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
210         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
211         Likewise.
212         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
213         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
214         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
215         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
216         Likewise.
217         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
218         Likewise.
219         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
220
221         docs: update parse-datetime history
222         * doc/parse-datetime.texi (Authors of parse_datetime): Better
223         documentation of this function's history and alternatives.
224
225         cygwin: use more robust version check
226         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
227         exclude an eventual cygwin 1.9.1.
228         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
229         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
230         (gl_FUNC_STRCASESTR): Likewise.
231         Reported by Bruno Haible.
232
233 2010-10-06  Bruno Haible  <bruno@clisp.org>
234
235         string, sys_select: Avoid #including large headers unless necessary.
236         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
237         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
238         OSF/1, BeOS, Haiku.
239         Reported by Jim Meyering.
240
241 2010-10-05  Eric Blake  <eblake@redhat.com>
242
243         memmem, strstr, strcasestr: fix bug with long periodic needle
244         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
245         periodic needle having false positive.
246         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
247         and cygwin 1.7.7.
248         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
249         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
250         (gl_FUNC_STRCASESTR): Likewise.
251         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
252         * tests/test-memmem.c (main): Expose the bug.
253         * tests/test-strcasestr.c (main): Likewise.
254         * tests/test-strstr.c (main): Likewise.
255         * tests/test-c-strcasestr.c (main): Likewise.
256         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
257         * doc/posix-functions/strstr.texi (strstr): Likewise.
258         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
259         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
260
261 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
262
263         parse-datetime: do some more renaming
264         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
265         parse_datetime, not get_date.  Mention the renaming.
266         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
267         in comments.
268         * m4/bison.m4: Likewise.
269
270 2010-10-05  Eric Blake  <eblake@redhat.com>
271
272         parse-datetime: better name than get_date
273         * NEWS: Reword the deprecation notice.
274         * modules/get_date: Rename to modules/parse-datetime.
275         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
276         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
277         * lib/get_date.y: Rename to lib/parse-datetime.y.
278         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
279         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
280         * doc/getdate.texi: Provide fallback wrapper.
281         * lib/getdate.h: Move guts, and wrap...
282         * lib/parse-datetime.h: ...new file.
283         * lib/parse-datetime.y (get_date): Rename...
284         (parse_datetime): ...to this.
285         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
286         (gl_PARSE_DATETIME): ...to this.
287         * doc/posix-functions/getdate.texi (get_date): Provide fallback
288         documentation.
289         * modules/getdate (Files): Provide fallback docs and header.
290         (Notice, Depends-on): Update references.
291         * tests/test-parse-datetime.c: Likewise.
292         * DEPENDENCIES: Likewise.
293         * MODULES.html.sh (Date and time <time.h>): Likewise.
294         * doc/parse-datetime.texi (Date input formats)
295         (Authors of parse_datetime): Likewise.
296         * modules/parse-datetime (Files, configure.ac, Makefile.am)
297         (Include): Likewise.
298         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
299         * gnulib-tool: Likewise.
300         * m4/bison.m4 (gl_BISON): Likewise.
301         Suggested by Bruno Haible.
302
303 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
304
305         more ports to Solaris tr, which needs [] around ranges
306         * gnulib-tool: Solaris tr needs [] around ranges.
307         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
308         * tests/test-pipe-filter-gi1.c (main): Likewise.
309         * tests/test-pipe-filter-ii1.c (main): Likewise.
310
311 2010-10-05  Eric Blake  <eblake@redhat.com>
312
313         bootstrap: fix Solaris regression
314         * build-aux/bootstrap (check_versions): Solaris tr still needs []
315         around ranges.
316         Reported by Pádraig Brady.
317
318         bootstrap: work with pkg-config
319         * build-aux/bootstrap (check_versions): Also transliterate - in
320         prerequisite name.
321         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
322         prerequisites that were already found, to avoid confusion.
323         Reported by Justin Clift.
324
325         faccessat: remove unused wrappers
326         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
327         presence of these wrappers dragged in -lgen on Solaris.
328         Reported by Clemens Brogi; fix suggested by Paul Eggert.
329
330 2010-10-05  Jim Meyering  <meyering@redhat.com>
331
332         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
333         * Makefile (sc_pragma_columns): New syntax-check rule.
334
335 2010-10-04  Bruno Haible  <bruno@clisp.org>
336
337         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
338         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
339         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
340         Reported by Bruce Korb and Eric Blake.
341
342 2010-10-04  Bruno Haible  <bruno@clisp.org>
343
344         threadlib: Make option --with-libpth-prefix work.
345         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
346         use $LIBPTH, not just -lpth.
347
348 2010-10-04  Bruno Haible  <bruno@clisp.org>
349
350         Avoid line length limitation from HP NonStop system header files.
351         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
352         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
353         * lib/ctype.in.h: Likewise.
354         * lib/dirent.in.h: Likewise.
355         * lib/errno.in.h: Likewise.
356         * lib/fcntl.in.h: Likewise.
357         * lib/float.in.h: Likewise.
358         * lib/getopt.in.h: Likewise.
359         * lib/iconv.in.h: Likewise.
360         * lib/inttypes.in.h: Likewise.
361         * lib/langinfo.in.h: Likewise.
362         * lib/locale.in.h: Likewise.
363         * lib/math.in.h: Likewise.
364         * lib/netdb.in.h: Likewise.
365         * lib/netinet_in.in.h: Likewise.
366         * lib/poll.in.h: Likewise.
367         * lib/pthread.in.h: Likewise.
368         * lib/pty.in.h: Likewise.
369         * lib/sched.in.h: Likewise.
370         * lib/se-selinux.in.h: Likewise.
371         * lib/search.in.h: Likewise.
372         * lib/signal.in.h: Likewise.
373         * lib/spawn.in.h: Likewise.
374         * lib/stdarg.in.h: Likewise.
375         * lib/stddef.in.h: Likewise.
376         * lib/stdint.in.h: Likewise.
377         * lib/stdio.in.h: Likewise.
378         * lib/stdlib.in.h: Likewise.
379         * lib/string.in.h: Likewise.
380         * lib/strings.in.h: Likewise.
381         * lib/sys_file.in.h: Likewise.
382         * lib/sys_ioctl.in.h: Likewise.
383         * lib/sys_select.in.h: Likewise.
384         * lib/sys_socket.in.h: Likewise.
385         * lib/sys_stat.in.h: Likewise.
386         * lib/sys_time.in.h: Likewise.
387         * lib/sys_times.in.h: Likewise.
388         * lib/sys_utsname.in.h: Likewise.
389         * lib/sys_wait.in.h: Likewise.
390         * lib/sysexits.in.h: Likewise.
391         * lib/termios.in.h: Likewise.
392         * lib/time.in.h: Likewise.
393         * lib/unistd.in.h: Likewise.
394         * lib/wchar.in.h: Likewise.
395         * lib/wctype.in.h: Likewise.
396         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
397         * modules/ctype (Makefile.am): Likewise.
398         * modules/dirent (Makefile.am): Likewise.
399         * modules/errno (Makefile.am): Likewise.
400         * modules/fcntl-h (Makefile.am): Likewise.
401         * modules/float (Makefile.am): Likewise.
402         * modules/getopt-posix (Makefile.am): Likewise.
403         * modules/iconv-h (Makefile.am): Likewise.
404         * modules/inttypes (Makefile.am): Likewise.
405         * modules/langinfo (Makefile.am): Likewise.
406         * modules/locale (Makefile.am): Likewise.
407         * modules/math (Makefile.am): Likewise.
408         * modules/netdb (Makefile.am): Likewise.
409         * modules/netinet_in (Makefile.am): Likewise.
410         * modules/poll-h (Makefile.am): Likewise.
411         * modules/pthread (Makefile.am): Likewise.
412         * modules/pty (Makefile.am): Likewise.
413         * modules/sched (Makefile.am): Likewise.
414         * modules/search (Makefile.am): Likewise.
415         * modules/selinux-h (Makefile.am): Likewise.
416         * modules/signal (Makefile.am): Likewise.
417         * modules/spawn (Makefile.am): Likewise.
418         * modules/stdarg (Makefile.am): Likewise.
419         * modules/stddef (Makefile.am): Likewise.
420         * modules/stdint (Makefile.am): Likewise.
421         * modules/stdio (Makefile.am): Likewise.
422         * modules/stdlib (Makefile.am): Likewise.
423         * modules/string (Makefile.am): Likewise.
424         * modules/strings (Makefile.am): Likewise.
425         * modules/sys_file (Makefile.am): Likewise.
426         * modules/sys_ioctl (Makefile.am): Likewise.
427         * modules/sys_select (Makefile.am): Likewise.
428         * modules/sys_socket (Makefile.am): Likewise.
429         * modules/sys_stat (Makefile.am): Likewise.
430         * modules/sys_time (Makefile.am): Likewise.
431         * modules/sys_times (Makefile.am): Likewise.
432         * modules/sys_utsname (Makefile.am): Likewise.
433         * modules/sys_wait (Makefile.am): Likewise.
434         * modules/sysexits (Makefile.am): Likewise.
435         * modules/termios (Makefile.am): Likewise.
436         * modules/time (Makefile.am): Likewise.
437         * modules/unistd (Makefile.am): Likewise.
438         * modules/wchar (Makefile.am): Likewise.
439         * modules/wctype (Makefile.am): Likewise.
440
441 2010-10-04  Bruno Haible  <bruno@clisp.org>
442
443         read-file tests: Avoid a test failure on NonStop Kernel.
444         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
445         a regular file.
446         Reported by Joachim Schmitz <schmitz@hp.com>.
447
448 2010-10-03  Bruno Haible  <bruno@clisp.org>
449
450         gnulib-tool: Fixes for --create-testdir with --libtool.
451         * gnulib-tool (func_get_automake_snippet): Don't augment
452         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
453         an executable.
454         (func_create_testdir): Handle module 'alloca' like func_import.
455         Reported by Bruce Korb <bruce.korb@gmail.com>.
456
457 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
458
459         Avoid some lines longer than 80 characters.
460         * lib/stdint.in.h: Break long comment lines.
461         * lib/math.in.h: Likewise.
462         (_GL_NUM_UINT_WORDS): New macro, for readability.
463         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
464         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
465         * lib/stdlib.in.h: Likewise.
466         * lib/spawn.in.h: Likewise.
467         * lib/sys_socket.in.h: Update an URL.
468         * lib/sys_stat.in.h: Break long line.
469
470 2010-10-03  Bruno Haible  <bruno@clisp.org>
471             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
472
473         acl: Add support for ACLs on NonStop Kernel.
474         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
475         Check whether the function aclsort() exists.
476         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
477         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
478         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
479         (acl_nontrivial [HAVE_ACLSORT]: New function.
480         (file_has_acl): Implement for NonStop Kernel.
481         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
482         (qset_acl): Implement for NonStop Kernel.
483         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
484         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
485         (main): Implement for NonStop Kernel.
486         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
487         Kernel. Handle this flavor.
488         * tests/test-set-mode-acl.sh: Likewise.
489         * tests/test-copy-acl.sh: Likewise.
490         * tests/test-copy-file.sh: Likewise.
491
492 2010-10-03  Bruno Haible  <bruno@clisp.org>
493
494         Info about ACLs on NonStop Kernel.
495         * doc/acl-resources.txt: Add info about NonStop Kernel.
496         References by Joachim Schmitz <schmitz@hp.com>.
497
498 2010-10-02  Bruno Haible  <bruno@clisp.org>
499
500         Define missing EDQUOT on NonStop Kernel.
501         * lib/errno.in.h (EDQUOT): Assign a value if missing.
502         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
503         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
504         missing.
505         * doc/posix-headers/errno.texi: Mention the NSK bug.
506         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
507         Reported by Joachim Schmitz <schmitz@hp.com>.
508
509 2010-10-02  Bruno Haible  <bruno@clisp.org>
510
511         Update doc for POSIX:2008.
512         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
513         Update URL of POSIX specification.
514
515 2010-10-02  Bruno Haible  <bruno@clisp.org>
516
517         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
518         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
519         from gnulib, not from Automake.
520
521 2010-10-02  Bruno Haible  <bruno@clisp.org>
522
523         New module 'system-posix'.
524         * modules/system-posix: New file.
525         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
526         module is present.
527         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
528         GNULIB_SYSTEM_POSIX.
529         * modules/stdlib (Depends-on): Remove sys_wait.
530         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
531         * doc/posix-functions/system.texi: Mention the new module.
532         * doc/posix-headers/stdlib.texi: Likewise.
533         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
534         define test_sys_wait_macros to a no-op.
535         Reported by Sam Steingold <sds@gnu.org>.
536
537 2010-09-30  Bruno Haible  <bruno@clisp.org>
538
539         More renaming from 'getdate' to 'get_date'.
540         * doc/get_date.texi: Renamed from doc/getdate.texi.
541         * modules/get_date (Files): Update.
542         * MODULES.html.sh (Date and time <time.h>): Update.
543         * DEPENDENCIES: Update.
544         * gnulib-tool: Update comment.
545         * m4/bison.m4 (gl_BISON): Likewise.
546         * m4/get_date.m4 (gl_GET_DATE): Likewise.
547
548 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
549
550         bootstrap: support ACLOCAL_FLAGS during aclocal
551         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
552         can add additional -I dir for third-party .m4 files.
553
554 2010-09-30  Eric Blake  <eblake@redhat.com>
555
556         bootstrap: use glibtoolize on MacOS
557         * build-aux/bootstrap (check_versions): Convert libtool into
558         libtoolize.
559         (tool search): Move libtool check earlier, and look for
560         glibtoolize for MacOS.
561         (gnulib_tool_options): Auto-add --libtool when appropriate.
562         Reported by Justin Clift.
563
564         poll: fix typo that broke test on MacOS
565         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
566         Reported by Justin Clift.
567
568         getdate: rename to get_date
569         Note: getdate.h is not renamed, to minimize client impact.
570         * modules/getdate: Mark obsolete.  Move old contents...
571         * modules/get_date: ...to new module name.
572         * modules/getdate-tests: Move...
573         * modules/get_date-tests: ...here.
574         * m4/getdate.m4: Move...
575         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
576         * lib/getdate.y: Move...
577         * lib/get_date.y: ...here.
578         * tests/test-getdate.c: Move...
579         * tests/test-get_date.c: ...here.
580         * doc/posix-functions/getdate.texi (getdate): Update name.
581         * NEWS: Mention the change.
582
583 2010-09-29  Bruno Haible  <bruno@clisp.org>
584
585         Separate the module 'waitpid' from the module 'sys_wait'.
586         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
587         present.
588         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
589         gl_MODULE_INDICATOR_FOR_TESTS.
590         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
591         * modules/sys_wait (Depends-on): Remove waitpid.
592         (Makefile.am): Substitute GNULIB_WAITPID.
593         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
594         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
595         signature only if the 'waitpid' module is present.
596         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
597         * NEWS: Mention the change.
598         * modules/grantpt (Depends-on): Add waitpid.
599         * modules/wait-process (Depends-on): Likewise.
600
601 2010-09-29  Bruno Haible  <bruno@clisp.org>
602
603         More tests for module 'sys_wait'.
604         * modules/sys_wait-c++-tests: New file.
605         * tests/test-sys_wait-c++.cc: New file.
606         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
607         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
608
609 2010-09-29  Bruno Haible  <bruno@clisp.org>
610
611         New module 'waitpid'.
612         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
613         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
614         Don't include <process.h>.
615         (waitpid): Declare only, using modern idiom.
616         * m4/waitpid.m4: New file.
617         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
618         * modules/waitpid: New file.
619         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
620         (Makefile.am): Update.
621         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
622
623 2010-09-28  Bruno Haible  <bruno@clisp.org>
624
625         poll: Assume ANSI C.
626         * lib/poll.c (poll): Use an ANSI C declaration.
627
628 2010-09-28  Bruno Haible  <bruno@clisp.org>
629
630         poll-h: Create poll.h on all platforms.
631         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
632         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
633         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
634         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
635         (gl_REPLACE_POLL_H): Don't set POLL_H.
636         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
637         * modules/poll-h (Depends-on): Add include_next.
638         (Makefile.am): Create poll.h unconditionally. Substitute also
639         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
640
641 2010-09-28  Bruno Haible  <bruno@clisp.org>
642
643         Tests for module 'poll-h'.
644         * modules/poll-h-c++-tests: New file.
645         * tests/test-poll-h-c++.cc: New file.
646
647         Tests for module 'poll-h'.
648         * modules/poll-h-tests: New file.
649         * tests/test-poll-h.c: New file.
650
651 2010-09-28  Bruno Haible  <bruno@clisp.org>
652
653         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
654         * modules/poll-h (Depends-on): Add 'extensions'.
655
656 2010-09-28  Bruno Haible  <bruno@clisp.org>
657
658         New module 'poll-h'.
659         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
660         (poll): Use modern idiom.
661         * modules/poll-h: New file.
662         * modules/poll (Files): Remove lib/poll.in.h.
663         (Depends-on): Add poll-h.
664         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
665         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
666         * m4/poll_h.m4: New file.
667         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
668         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
669         and invoke gl_REPLACE_POLL_H.
670         * lib/poll.c: Use common idiom.
671         * tests/test-poll.c: Likewise.
672         * doc/posix-headers/poll.texi: Mention the poll-h module.
673         Suggested by Eric Blake.
674
675 2010-09-26  Bruno Haible  <bruno@clisp.org>
676
677         sys_wait: Implement WSTOPSIG.
678         * lib/sys_wait.in.h (WSTOPSIG): New macro.
679         Reported by Simon Josefsson.
680
681 2010-09-26  Simon Josefsson  <simon@josefsson.org>
682
683         stdlib, sys_wait: Avoid compilation error on mingw.
684         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
685
686 2010-09-26  Bruno Haible  <bruno@clisp.org>
687
688         stdlib tests: Avoid code duplication.
689         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
690         * modules/sys_wait-tests (Files): Likewise.
691         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
692         * tests/test-stdlib.c: Include test-sys_wait.h.
693         (main): Invoke test_sys_wait_macros.
694         * tests/test-sys_wait.c: Include test-sys_wait.h.
695         (main): Invoke test_sys_wait_macros.
696
697 2010-09-25  Simon Josefsson  <simon@josefsson.org>
698
699         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
700         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
701         sure Windows sockets are working before calling getaddrinfo.
702         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
703         * doc/gnulib.texi (Windows sockets): Fix typo.
704
705 2010-09-25  Bruno Haible  <bruno@clisp.org>
706
707         Tests for module 'regex-quote'.
708         * modules/regex-quote-tests: New file.
709         * tests/test-regex-quote.c: New file.
710
711         New module 'regex-quote'.
712         * lib/regex-quote.h: New file.
713         * lib/regex-quote.c: New file.
714         * modules/regex-quote: New file.
715         Suggested by Reuben Thomas <rrt@sc3d.org>.
716
717 2010-09-24  Bruno Haible  <bruno@clisp.org>
718
719         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
720         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
721
722 2010-09-23  Bruno Haible  <bruno@clisp.org>
723
724         setenv: Relax license.
725         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
726         Blake.
727         Requested by Eric Blake.
728
729 2010-09-22  Bruno Haible  <bruno@clisp.org>
730
731         termios: Relax license.
732         * modules/termios (License): Change to LGPLv2+.
733         Requested by Eric Blake.
734
735 2010-09-22  Bruno Haible  <bruno@clisp.org>
736
737         threadlib: Allow the package to change the default to 'no'.
738         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
739         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
740         Reported by Paul Eggert.
741
742 2010-09-22  Pádraig Brady  <P@draigbrady.com>
743             Bruno Haible  <bruno@clisp.org>
744
745         Fix endless loop in mbmemcasecoll.
746         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
747         byte.
748         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
749
750 2010-09-22  Bruno Haible  <bruno@clisp.org>
751
752         Tests for module 'memcoll'.
753         * modules/memcoll-tests: New file.
754         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
755
756         memcoll, xmemcoll: Clarify size vs. length.
757         * modules/memcoll.c (memcoll0): Clarify specification.
758         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
759         passed to collate_error.
760
761 2010-09-22  Bruno Haible  <bruno@clisp.org>
762
763         Tests for module 'memcasecmp'.
764         * modules/memcasecmp-tests: New file.
765         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
766
767 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
768
769         * lib/pthread.in.h: Add split double-inclusion guard, and include
770         system <pthread.h> if there is one.  Use @@-style as in other
771         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
772         pthread.h doesn't.
773         (pthread_mutexattr_destroy, pthread_mutexattr_init):
774         (pthread_mutexattr_settype, pthread_mutex_trylock):
775         New static inline functions, if there's no system <pthread.h>.
776         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
777         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
778         Approximate with mutexes if the system lacks spinlocks, as in
779         MacOS.
780         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
781         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
782         @@-style.  Check for spinlocks separately.
783         (gl_PTHREAD_DEFAULTS): New macro.
784         * modules/pthread: Redo to use a more typical style for in.h files.
785
786 2010-09-21  Eric Blake  <eblake@redhat.com>
787
788         net_if: enhance tests
789         * tests/test-net_if.c (main): Move signature checks earlier.
790         Print failures to stderr.
791         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
792         Document the bug that we do not yet fix.
793
794 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
795
796         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
797         about gnulib, not GSS.
798
799 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
800
801         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
802         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
803         for Emacs.
804         * build-aux/pmccabe2html: Make Makefile.am example code more
805         cut-and-paste friendly.
806
807 2010-09-21  Simon Josefsson  <simon@josefsson.org>
808
809         * tests/test-net_if.c: New file.
810         * modules/net_if-tests: New file.
811
812 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
813
814         pthread: add pthread_spin_destroy
815         * lib/pthread.in.h (pthread_spin_destroy): New function.
816
817 2010-09-19  Bruno Haible  <bruno@clisp.org>
818
819         gnulib-tool: Fix --help output.
820         * gnulib-tool (func_usage): Fix help message.
821         Reported by Reuben Thomas <rrt@sc3d.org>.
822
823 2010-09-18  Jim Meyering  <meyering@redhat.com>
824
825         maint.mk: avoid unexpanded \n in two diagnostics
826         * top/maint.mk (sc_prohibit_always_true_header_tests):
827         Don't use a literal \n in a halt=... assignment.  It would not be
828         expanded, and the two \n bytes would appear in the diagnostic output
829         rather than the desired newline.  Use halt=$$(printf ... instead.
830         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
831
832 2010-09-18  Bruno Haible  <bruno@clisp.org>
833
834         netinet_in: Doc tweak.
835         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
836         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
837
838 2010-09-18  Jim Meyering  <meyering@redhat.com>
839
840         init.sh: correct an outdated comment
841         * tests/init.sh (create_exe_shims_):  s/function/alias/
842
843         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
844         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
845         a file named "*.exe" is removed between the glob expansion and the
846         processing of that oddly named file.
847
848 2010-09-17  Eric Blake  <eblake@redhat.com>
849
850         mirbsd: add some more support
851         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
852         in BSD family.
853         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
854         devices as OpenBSD.
855         * m4/host-os.m4 (mirbsd): Add MirBSD.
856
857         tests: fix unportable assumption on sys/wait.h
858         * tests/test-sys_wait.c (main): Relax test.
859         * tests/test-stdlib.c (main): Likewise.
860
861         init.sh: accomodate directory with no .exes
862         * tests/init.sh: Accomodate directory containing only scripts.
863
864         tests: avoid compiler warning
865         * tests/test-stdlib.c (main): Use the variable.
866
867         fdutimens, fdutimensat: update signature, again
868         * lib/utimens.h (gl_futimens): Delete, and move signature...
869         (fdutimens): ...here.
870         (fdutimensat): Rearrange signature.
871         (lutimensat): Rename variable for clarity.
872         * lib/fdutimensat.c (fdutimensat): Update signature.
873         * lib/utimens.c (fdutimens): Likewise.
874         (gl_futimens): Delete.
875         (utimens, lutimens): Update callers.
876         * lib/futimens.c (futimens): Likewise.
877         * tests/test-fdutimensat.c: Likewise.
878         * tests/test-utimens.c: Likewise.
879         * tests/test-futimens.h: Update comment.
880         * NEWS: Mention this.
881         Suggested by Paul Eggert.
882
883 2010-09-17  Bruno Haible  <bruno@clisp.org>
884
885         Take over the maintenance of some older macros from Autoconf.
886         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
887         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
888         GNU Autoconf.
889         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
890         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
891
892 2010-09-17  Eric Blake  <eblake@redhat.com>
893
894         fdutimensat: drop atflag validation
895         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
896         with valid fd, to close a race scenario where futimens is
897         unsupported and FILE was replaced by a symlink.
898         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
899         accordingly.
900         Suggested by Paul Eggert.
901
902 2010-09-16  Bruno Haible  <bruno@clisp.org>
903
904         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
905         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
906
907 2010-09-16  Bruno Haible  <bruno@clisp.org>
908
909         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
910         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
911         login_tty exists.
912         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
913
914 2010-09-16  Bruno Haible  <bruno@clisp.org>
915
916         login_tty: Make the replacement code work on BSD systems.
917         * lib/login_tty.c: Include <sys/ioctl.h>.
918         (login_tty): Use ioctl TIOCSCTTY when available.
919         * modules/login_tty (Depends-on): Add sys_ioctl.
920         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
921
922 2010-09-16  Bruno Haible  <bruno@clisp.org>
923
924         login_tty: Stricter unit test.
925         * modules/login_tty-tests (Depends-on): Add tcgetsid.
926         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
927         and tcgetsid() after login_tty.
928         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
929
930 2010-09-16  Bruno Haible  <bruno@clisp.org>
931
932         New module 'tcgetsid'.
933         * lib/tcgetsid.c: New file.
934         * m4/tcgetsid.m4: New file.
935         * modules/tcgetsid: New file.
936         * modules/termios (Depends-on): Add c++defs, warn-on-use.
937         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
938         GNULIB_TCGETSID, HAVE_TCGETSID.
939         * lib/termios.in.h: Include <sys/types.h>.
940         (tcgetsid): New declaration.
941         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
942         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
943         * doc/posix-functions/tcgetsid.texi: Mention the new module.
944         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
945
946 2010-09-16  Bruno Haible  <bruno@clisp.org>
947
948         Tests for module 'termios'.
949         * modules/termios-c++-tests: New file.
950         * modules/termios-tests: New file.
951         * tests/test-termios-c++.cc: New file.
952         * tests/test-termios.c: New file.
953
954         New module 'termios'.
955         * modules/termios: New file.
956         * lib/termios.in.h: New file.
957         * m4/termios_h.m4: New file.
958         * doc/posix-headers/termios.texi: Mention the new module.
959
960 2010-09-16  Eric Blake  <eblake@redhat.com>
961
962         fdutimensat: add an atflag parameter
963         * lib/fdutimensat.c (fdutimensat): Add new parameter.
964         * lib/utimens.h (fdutimensat): Update prototype.
965         * tests/test-fdutimensat.c: Adjust test to match.
966         * NEWS: Document the change.
967         Suggested by Paul Eggert.
968
969 2010-09-16  Bruno Haible  <bruno@clisp.org>
970
971         Fix typos in comments.
972         * lib/striconveh.h: Fix typo in comment.
973         * lib/login_tty.c (login_tty): Likewise.
974
975 2010-09-15  Bruno Haible  <bruno@clisp.org>
976
977         stdlib: clarify MirBSD WEXITSTATUS bug
978         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
979         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
980
981 2010-09-15  Eric Blake  <eblake@redhat.com>
982
983         stdlib: work around MirBSD WEXITSTATUS bug
984         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
985         * modules/stdlib (Depends-on): Add sys_wait.
986         * tests/test-sys_wait.c (main): Enhance test.
987         * tests/test-stdlib.c (main): Likewise.
988         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
989
990         docs: mention MacOS issue with WEXITSTATUS(constant)
991         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
992         issue.
993         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
994
995         strnlen: add tests
996         * modules/strnlen-tests: New file.
997         * tests/test-strnlen.c: Likewise.
998
999 2010-09-14  Bruno Haible  <bruno@clisp.org>
1000
1001         unistr/base: Avoid link errors when module 'libunistring' is also used.
1002         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
1003         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
1004         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
1005         Declare also when HAVE_LIBUNISTRING is set.
1006         Reported by Pádraig Brady <P@draigbrady.com>.
1007
1008 2010-09-14  Eric Blake  <eblake@redhat.com>
1009
1010         test-rawmemchr: make more robust
1011         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
1012         (Depends-on, configure.ac): Add needed prerequisites to use it.
1013         * modules/memchr-tests (Files, Depends-on, configure.ac):
1014         Likewise, to avoid implicit reliance on memchr module prereqs.
1015         * tests/test-memchr.c (main): Ensure proper masking.
1016         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
1017         reads.
1018
1019         memchr: detect glibc Alpha bug
1020         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
1021         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
1022         Alpha.
1023         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
1024         * tests/test-memchr.c (main): Enhance test.
1025         Reported by Nelson H. F. Beebe.
1026
1027 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
1028
1029         fts, getcwd, glob: audit for dirfd returning -1
1030         * lib/fts.c (opendir): Remove #define; no longer used.
1031         (opendirat): New arg PDIR_FD.  All callers changed.
1032         (fts_build, _opendir2): Use new opendirat to avoid the need for
1033         dirfd, or for checking whether dirfd returns a negative value.
1034         Don't use opendir; always use openat followed by fdopendir.
1035         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
1036         it.
1037         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
1038         returns -1 here.
1039         * modules/fts (Depends-on): Remove dirfd.
1040         * modules/getcwd (Depends-on): Likewise.
1041
1042 2010-09-13  Eric Blake  <eblake@redhat.com>
1043
1044         float: fix broken MirBSD header
1045         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
1046         * doc/posix-headers/float.texi (float.h): Document it.
1047
1048 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
1049
1050         fts: use O_NOFOLLOW to avoid race condition when opening a directory
1051         * lib/fts.c (opendirat): New arg extra_flags.
1052         (__opendir2): Use it to avoid following symlinks when opening
1053         a directory, if symlinks are not supposed to be followed.  See
1054         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
1055
1056         fdopendir: preserve argument fd before returning
1057         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
1058         (fdopendir_with_dup, fd_clone_opendir): New static functions.
1059         (fdopendir): Use them, arranging for FD to be open to the same
1060         directory that it was when it started.  (It might be temporarily
1061         closed while fdopendir is running, so this not thread- or
1062         signal-safe.)  Be careful to do the right thing even when file
1063         descriptors are scarce and dup fails with errno == EMFILE.  See
1064         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
1065
1066 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
1067
1068         regex: Pass the system regex if its only problem is 32-bit regoff_t.
1069         * NEWS: Document change.
1070         * m4/regex.m4: Disable test for regoff_t size.
1071
1072 2010-09-13  Jim Meyering  <meyering@redhat.com>
1073
1074         fts: don't operate on an invalid file descriptor after failed dup
1075         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
1076         negative file descriptor.
1077
1078 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
1079
1080         savedir: add streamsavedir, deprecate fdsavedir
1081         * NEWS: Mention deprecation of fdsavedir.
1082         * lib/savedir.c (streamsavedir): New extern function, whose name
1083         ends in "savedir" to be consistent with the others.  This differs
1084         from savedirstream in that it doesn't close its argument.  The
1085         next version of GNU tar will use this instead of fdsavedir, to
1086         avoid some race conditions and conserve file descriptors.
1087         (savedirstream): Reimplement as a wrapper around streamsavedir.
1088         (fdsavedir): Add a comment deprecating this function.  As far as
1089         I know, only GNU tar used it, and GNU tar doesn't need it any more.
1090         * lib/savedir.h (streamsavedir): New decl.
1091         (fdsavedir): Add a comment deprecating this.
1092
1093 2010-09-10  Bruno Haible  <bruno@clisp.org>
1094
1095         langinfo: Fix last commit.
1096         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
1097         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
1098         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1099
1100 2010-09-10  Bruno Haible  <bruno@clisp.org>
1101
1102         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
1103         * lib/progreloc.c (O_EXEC): Define fallback.
1104
1105 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
1106
1107         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
1108         * NEWS: Document recent changes to fcntl-h.
1109         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
1110         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
1111         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
1112         Similarly for O_SEARCH; this last was already true, but not documented.
1113         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
1114         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
1115         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
1116         Likewise.
1117         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
1118         is zero, not whether it is defined.
1119         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
1120         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
1121         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
1122
1123 2010-09-10  Bruno Haible  <bruno@clisp.org>
1124
1125         langinfo, nl_langinfo: Fix for IRIX 5.3.
1126         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
1127         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
1128         HAVE_LANGINFO_YESEXPR.
1129         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
1130         HAVE_LANGINFO_YESEXPR.
1131         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
1132         HAVE_LANGINFO_T_FMT_AMPM is 0.
1133         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
1134         HAVE_LANGINFO_YESEXPR is 0.
1135         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
1136         NOEXPR.
1137         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
1138         * doc/posix-functions/nl_langinfo.texi: Likewise.
1139         Reported by Eric Blake.
1140
1141 2010-09-10  Bruno Haible  <bruno@clisp.org>
1142
1143         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
1144         * doc/glibc-functions/login_tty.texi: Mention the include file problem
1145         on FreeBSD 8.0 and OpenBSD 4.6.
1146         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
1147         * m4/pty_h.m4 (gl_PTY_H): Likewise.
1148         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
1149         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
1150         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
1151         ac_includes_default.
1152         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
1153
1154 2010-09-09  Eric Blake  <eblake@redhat.com>
1155
1156         strsignal: work around NetBSD bug
1157         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
1158         * lib/string.in.h (includes): Likewise.
1159         * doc/posix-functions/strsignal.texi (strsignal): Document the
1160         bug.
1161         Reported by Nelson H. F. Beebe.
1162
1163         gnulib-tool: work with NetBSD /bin/sh
1164         * gnulib-tool (func_cache_var, func_cache_lookup_module)
1165         (func_get_description, func_get_comment, func_get_status)
1166         (func_get_notice, func_get_applicability, func_get_filelist)
1167         (func_get_dependencies, func_get_autoconf_early_snippet)
1168         (func_get_autoconf_snippet, func_get_automake_snippet)
1169         (func_get_include_directive, func_get_link_directive)
1170         (func_get_license, func_get_maintainer, func_import): Avoid
1171         shell syntax errors from parsing syntax extensions.
1172
1173 2010-09-09  Bruno Haible  <bruno@clisp.org>
1174
1175         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
1176         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
1177         a reliable way to determine whether the 'alias' command works.
1178
1179 2010-09-08  Jim Meyering  <meyering@redhat.com>
1180
1181         init.sh: penalize a set-x-impaired shell; don't disqualify it
1182         * tests/init.sh: Too many shells corrupt application stderr when
1183         you set -x, so we can't afford to disqualify them, since at least
1184         on Irix-6.5, that would disqualify all bourne shells.
1185         Instead, use a two-pass approach.
1186         On the first pass, try to find a shell that meets the stricter
1187         condition that set -x does not corrupt stderr.
1188         If no shell meets the stricter condition, retest each candidate
1189         shell, but without that extra condition.  Finally, when
1190         VERBOSE=yes is requested and set -x might cause trouble, simply
1191         issue a warning and refrain from enabling debug output.
1192
1193 2010-09-08  Eric Blake  <eblake@redhat.com>
1194
1195         unsetenv: fix OpenBSD bug
1196         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
1197         * doc/posix-functions/unsetenv.texi (unsetenv): Update
1198         documentation.
1199         Reported by Jim Meyering.
1200
1201         strtod: work around IRIX 6.5 bug
1202         * lib/strtod.c (strtod): Reparse number on shorter string if
1203         exponent parse was invalid.
1204         * tests/test-strtod.c (main): Add check for "0x1p 2".
1205         Reported by Tom G. Christensen.
1206
1207         getopt: optimize previous patch
1208         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
1209         empty variable.  Speed up awk script.
1210         Reported by Paolo Bonzini.
1211
1212 2010-09-08  Jim Meyering  <meyering@redhat.com>
1213
1214         test.sh: disqualify shells for which set -x corrupts stderr
1215         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
1216         and OpenBSD 4.7.  They make it so with "set -x", environment settings
1217         appear in stderr output.  For example, this command:
1218             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
1219         prints "P=1" on those two systems:
1220
1221 2010-09-08  Bruno Haible  <bruno@clisp.org>
1222
1223         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
1224         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
1225         commands, because some shells ignore redirections when there is an
1226         error in the command lookup.
1227         Reported by Eric Blake.
1228
1229 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
1230
1231         * lib/regex.h: Fix a mention of `regex_compile' (should be
1232         `re_compile_pattern').
1233         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
1234         (re_set_registers): Correct name of parameter in comment.
1235
1236         * doc/regex.texi: Add documentation for missing syntax flags.
1237         Remove commented-out documentation of defunct syntax option
1238         RE_NO_EMPTY_ALTS.
1239         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
1240         Add documentation of re_set_registers.
1241         Document trick to re-use a pattern buffer by setting fastmap manually.
1242         Update documentation of struct re_pattern_buffer per public members.
1243         Uncomment documentation of equivalence class operators and
1244         collating symbol operators, since they are now implemented,
1245         Explain leftmost-longest matching in relation to alternatives.
1246         Tidy documentation of substring matching.
1247         Remove POSIX documentation, which is done better in
1248         glibc, and refer the reader there. Keep BSD API documentation, as
1249         that is not readily available elsewhere.
1250
1251 2010-09-07  Eric Blake  <eblake@redhat.com>
1252
1253         getopt: handle POSIXLY_CORRECT set but not exported
1254         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
1255         export state of POSIXLY_CORRECT, due to bash set -o posix.
1256         Reported by Dustin J. Mitchell.
1257
1258 2010-09-05  Bruno Haible  <bruno@clisp.org>
1259
1260         gnulib-tool: Highlight the changed options.
1261         * gnulib-tool (func_usage): Display the --import, --add-import,
1262         --remove-import explanations in bold font.
1263
1264 2010-09-06  Karl Berry  <karl@gnu.org>
1265
1266         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
1267
1268 2010-09-05  Bruno Haible  <bruno@clisp.org>
1269
1270         uniwidth/width: Update comment.
1271         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
1272         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
1273
1274 2010-09-05  Bruno Haible  <bruno@clisp.org>
1275
1276         isinf, isnan: Relax license.
1277         * modules/isinf (License): Change from GPL to LGPL, with consent from
1278         Ben Pfaff.
1279         * modules/isnan (License): Likewise.
1280         Requested by Ludovic Courtès.
1281
1282 2010-09-04  Bruno Haible  <bruno@clisp.org>
1283
1284         gnulib-tool: Help migration from --import to --add-import or --update.
1285         * gnulib-tool: Emit a verbose error message when --import is used
1286         without any module name.
1287
1288 2010-09-04  Bruno Haible  <bruno@clisp.org>
1289
1290         Update doc about gnulib-tool.
1291         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
1292         'gnulib-tool --update' in more detail.
1293         Reported by Eric Blake.
1294
1295 2010-09-04  Bruno Haible  <bruno@clisp.org>
1296
1297         gnulib-tool: Change --import. New options --add/remove-import.
1298         * gnulib-tool: New options --add-import, --remove-import.
1299         (func_usage): Document them.
1300         (have_associative): Define always.
1301         (func_import): In import mode, don't merge the specified settings with
1302         the cached settings. Implement remove-import mode.
1303         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
1304         Explain when to use them versus --import.
1305         (Simple update): Use --add-import instead of --import.
1306         * NEWS: Mention the change.
1307
1308 2010-09-04  Bruno Haible  <bruno@clisp.org>
1309
1310         * doc/gnulib-tool.texi (Initial import): Update paragraph about
1311         separate gnulib.mk.
1312
1313 2010-09-04  Bruno Haible  <bruno@clisp.org>
1314
1315         gnulib-tool: Don't talk about CVS any more.
1316         * gnulib-tool (func_usage, func_import): Write "version control"
1317         instead of CVS.
1318
1319 2010-09-04  Jim Meyering  <meyering@redhat.com>
1320
1321         maint.mk: avoid obscure sc_copyright_check failure in coreutils
1322         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
1323         false positives (whose names may be ill-chosen) when searching
1324         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
1325         would cause a false-positive.
1326
1327         avoid coreutils "make distcheck" failure
1328         Coreutils tests with an absolute build directory name that contains
1329         a space.  Not quoting this directory name caused a failure.
1330         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
1331         * tests/test-vc-list-files-cvs.sh: Likewise.
1332
1333 2010-09-04  Bruno Haible  <bruno@clisp.org>
1334
1335         gnulib-tool: Avoid error when run in a package without Makefile.am.
1336         * gnulib-tool: When collecting the m4dirs in a package that does not
1337         have a Makefile.am, eliminate those directories that contain no
1338         gnulib-cache.m4. Fix expression that counts these directories.
1339
1340 2010-09-04  Bruno Haible  <bruno@clisp.org>
1341
1342         update-copyright test: Improve output when perl is missing or too old.
1343         * tests/test-update-copyright.sh: Move test of Perl version down after
1344         the test whether Perl exists. Provide an explanation relating Perl's
1345         error message to Automake's SKIP: message.
1346
1347 2010-09-04  Bruno Haible  <bruno@clisp.org>
1348
1349         Don't augment PATH in TESTS_ENVIRONMENT.
1350         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
1351         set abs_aux_dir instead of augmenting PATH.
1352         * modules/vc-list-files-tests (Makefile.am): Likewise.
1353         * tests/test-update-copyright.sh: Augment PATH here.
1354         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
1355         path_prepend_.
1356         * tests/test-vc-list-files-git.sh: Likewise.
1357
1358 2010-09-04  Jim Meyering  <meyering@redhat.com>
1359
1360         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
1361         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
1362
1363 2010-09-04  Bruno Haible  <bruno@clisp.org>
1364
1365         strdup: Fix compilation error in C++ mode.
1366         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
1367         the macro.
1368
1369 2010-09-04  Bruno Haible  <bruno@clisp.org>
1370
1371         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
1372         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
1373         macro into a function.
1374         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
1375
1376 2010-09-04  Bruno Haible  <bruno@clisp.org>
1377
1378         Set PATH_SEPARATOR the same way autoconf does.
1379         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
1380         the value of PATH_SEPARATOR the same way autoconf-generated configure
1381         scripts do.
1382         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
1383         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
1384
1385 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
1386
1387         Set PATH_SEPARATOR the same way autoconf does.
1388         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
1389         the same way autoconf-generated configure scripts do.
1390         * posix-modules: Likewise.
1391
1392 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
1393
1394         hash: fix safe_hasher const typo
1395         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
1396         const; otherwise, there is a type error later.
1397
1398 2010-09-02  Jim Meyering  <meyering@redhat.com>
1399
1400         test-update-copyright.sh: require perl 5.8.0
1401         * tests/test-update-copyright.sh: Require 5.8.0,
1402         which Tom G. Christensen has confirmed is adequate,
1403         while 5.6.1 is not.
1404
1405 2010-09-02  Eric Blake  <eblake@redhat.com>
1406
1407         tests: init.sh improvements for re-exec'ing with zsh
1408         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
1409         -vx through shell re-exec.
1410         Reported by Tom G. Christensen.
1411
1412         wctype: fix typo in previous commit
1413         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
1414         Reported by Ludovic Courtès.
1415
1416 2010-09-02  Jim Meyering  <meyering@redhat.com>
1417
1418         test-update-copyright.sh: skip test if Perl is too old
1419         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
1420         Reported by Tom G. Christensen.
1421
1422 2010-09-02  Bruno Haible  <bruno@clisp.org>
1423
1424         wctype: Avoid compilation error on IRIX 6.5.30.
1425         * lib/wctype.in.h (iswblank): Declare with a replacement if
1426         REPLACE_ISWBLANK is set.
1427         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
1428         declared. Set REPLACE_ISWBLANK.
1429         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
1430         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
1431         * doc/posix-headers/wctype.texi: Likewise.
1432         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1433
1434 2010-09-01  Bruno Haible  <bruno@clisp.org>
1435
1436         New module 'socketlib'.
1437         * modules/socketlib: New file.
1438         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
1439         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
1440         * modules/sockets (Depends-on): Add socketlib.
1441         Suggested by Sam Steingold <sds@gnu.org>.
1442
1443 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
1444
1445         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
1446
1447         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
1448         when one needs search access to a directory but not read access.
1449         On systems where it is available, it works in some cases where
1450         O_RDONLY does not, namely on directories that are searchable but
1451         not readable, and which need only to be searchable.  If O_SEARCH
1452         is not available, fall back to the traditional method of using
1453         O_RDONLY.
1454
1455         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
1456         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
1457         when opening a directory that needs only to be searchable.
1458         * lib/chdir-safer.c (chdir_no_follow): Likewise.
1459         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
1460         * lib/openat-proc.c (openat_proc_name): Likewise.
1461         * lib/openat.c (openat_needs_fchdir): Likewise.
1462         * lib/save-cwd.c (save_cwd): Likewise.
1463         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
1464
1465 2010-08-28  Bruno Haible  <bruno@clisp.org>
1466
1467         New module 'host-cpu-c-abi'.
1468         * modules/host-cpu-c-abi: New file.
1469         * m4/host-cpu-c-abi.m4: New file, based on part of
1470         clisp/src/m4/general.m4.
1471         Requested by Sam Steingold <sds@gnu.org>.
1472
1473 2010-08-31  Eric Blake  <eblake@redhat.com>
1474         and Jim Meyering  <meyering@redhat.com>
1475
1476         hash: factor, and guard against misbehaving hasher function
1477         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
1478         of table->hasher's return value.  Also protect against a hash value
1479         so large that adding it to table->bucket results in a NULL pointer.
1480         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
1481         Use it in place of open-coded check-and-abort.
1482
1483 2010-08-30  Bruno Haible  <bruno@clisp.org>
1484
1485         hash: silence spurious clang warning
1486         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
1487         Reported by Eric Blake.
1488
1489 2010-08-30  Eric Blake  <eblake@redhat.com>
1490
1491         strstr, memmem, strcasestr: avoid leaked shell message
1492         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
1493         FreeBSD.
1494         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
1495         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
1496
1497         tests: silence clang warning
1498         * tests/test-malloca.c (do_allocation): Avoid dead store.
1499
1500 2010-08-29  Bruno Haible  <bruno@clisp.org>
1501
1502         gettext: Fix recent mistake.
1503         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
1504
1505 2010-08-29  Bruno Haible  <bruno@clisp.org>
1506
1507         selinux-h: Offer a --without-selinux option.
1508         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
1509         --without-selinux was specified, skip all tests and define
1510         HAVE_SELINUX_SELINUX_H to 0.
1511         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
1512         set LIB_SELINUX to empty.
1513         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
1514         gl_LIBSELINUX. If --without-selinux was specified, replace
1515         selinux/context.h.
1516         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
1517
1518 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1519             Bruno Haible  <bruno@clisp.org>
1520
1521         Make the module 'realloc-gnu' work again on AIX and OSF/1.
1522         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
1523         of HAVE_REALLOC.
1524         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
1525         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
1526         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
1527         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
1528
1529 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1530             Bruno Haible  <bruno@clisp.org>
1531
1532         Make the module 'calloc-gnu' work again on AIX and OSF/1.
1533         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
1534         HAVE_CALLOC.
1535         * lib/xmalloc.c: Update accordingly.
1536         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
1537         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
1538         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
1539
1540 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1541             Bruno Haible  <bruno@clisp.org>
1542
1543         Make the module 'malloc-gnu' work again on AIX and OSF/1.
1544         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
1545         HAVE_MALLOC.
1546         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
1547         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
1548         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
1549
1550 2010-08-29  Bruno Haible  <bruno@clisp.org>
1551
1552         Update modules list.
1553         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
1554         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
1555         (String handling <string.h>): Add astrxfrm.
1556         (File system functions): Add readlinkat.
1557
1558 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1559
1560         Tests for module 'realloc-gnu'.
1561         * modules/realloc-gnu-tests: New file.
1562         * tests/test-realloc-gnu.c: New file.
1563
1564         Tests for module 'calloc-gnu'.
1565         * modules/calloc-gnu-tests: New file.
1566         * tests/test-calloc-gnu.c: New file.
1567
1568         Tests for module 'malloc-gnu'.
1569         * modules/malloc-gnu-tests: New file.
1570         * tests/test-malloc-gnu.c: New file.
1571
1572 2010-08-28  Bruno Haible  <bruno@clisp.org>
1573
1574         Rename module 'realloc' -> 'realloc-gnu'.
1575         * modules/realloc-gnu: New file, copied from modules/realloc.
1576         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
1577         obsolete.
1578         * modules/mgetgroups (Depends-on): Update.
1579         * doc/posix-functions/realloc.texi: Update.
1580         * NEWS: Mention the change.
1581
1582         Rename module 'calloc' -> 'calloc-gnu'.
1583         * modules/calloc-gnu: New file, copied from modules/calloc.
1584         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
1585         obsolete.
1586         * doc/posix-functions/calloc.texi: Update.
1587         * NEWS: Mention the change.
1588
1589         Rename module 'malloc' -> 'malloc-gnu'.
1590         * modules/malloc-gnu: New file, copied from modules/malloc.
1591         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
1592         obsolete.
1593         * modules/argp (Depends-on): Update.
1594         * modules/regex (Depends-on): Update.
1595         * doc/posix-functions/malloc.texi: Update.
1596         * NEWS: Mention the change.
1597
1598 2010-08-28  Eric Blake  <eblake@redhat.com>
1599
1600         pread, pwrite: add missing dependency
1601         * modules/pread (Depends-on): Add extensions.
1602         * modules/pwrite (Depends-on): Likewise.
1603
1604 2010-08-28  Bruno Haible  <bruno@clisp.org>
1605
1606         unistr/u*-strchr: Fix tests dependencies.
1607         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
1608         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
1609         Reported by Ian Beckwith <ianb@erislabs.net>.
1610
1611 2010-08-28  Bruno Haible  <bruno@clisp.org>
1612
1613         read-file: Don't occupy too much unused memory.
1614         * lib/read-file.c (fread_file): Shrink the buffer at the end.
1615
1616 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
1617             Eric Blake  <eblake@redhat.com>
1618             Bruno Haible  <bruno@clisp.org>
1619
1620         read-file: Avoid memory reallocations with regular files.
1621         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
1622         (fread_file): With regular files, use the remaining length as the
1623         initial buffer size.  Check against overflow.
1624         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
1625         sys_stat.
1626
1627 2010-08-28  Bruno Haible  <bruno@clisp.org>
1628
1629         ftello: Relax license.
1630         * modules/ftello (License): Relax to LGPLv2+.
1631         Reported by Eric Blake.
1632
1633 2010-08-28  Bruno Haible  <bruno@clisp.org>
1634
1635         Avoid relocwrapper link errors due to gnulib replacement functions.
1636         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
1637         function.
1638         Reported by Ben Pfaff <blp@cs.stanford.edu>.
1639
1640 2010-08-28  Bruno Haible  <bruno@clisp.org>
1641
1642         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
1643         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
1644         defined.
1645         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
1646         Suggested by Eric Blake.
1647
1648 2010-08-28  Bruno Haible  <bruno@clisp.org>
1649
1650         sys_socket, netdb: Ensure socklen_t gets defined.
1651         * modules/sys_socket (Depends-on): Add socklen.
1652         * modules/netdb (Depends-on): Likewise.
1653         * modules/getaddrinfo (Depends-on): Remove socklen.
1654         * modules/getsockopt (Depends-on): Likewise.
1655         * modules/setsockopt (Depends-on): Likewise.
1656         * tests/test-sys_socket.c: Check that socklen_t is defined.
1657         * tests/test-netdb.c: Likewise.
1658         * m4/socklen.m4: Update comments.
1659         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1660
1661 2010-08-27  Eric Blake  <eblake@redhat.com>
1662
1663         login_tty: add missing dependency
1664         * modules/login_tty (Depends-on): Add pty.
1665
1666 2010-08-26  Eric Blake  <eblake@redhat.com>
1667
1668         lib-symbol-versions: fix m4 quoting
1669         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
1670         format for AC_LINK_IFELSE.
1671
1672         glob: fix compile test
1673         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
1674
1675         btowc: fix missing file
1676         * modules/btowc (Files): Also ship locale-fr.m4.
1677
1678         lseek: fix link test
1679         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
1680         AC_LINK_IFELSE.
1681
1682         include_next: silence autoconf 2.68 warning
1683         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
1684         AC_COMPILE_IFELSE as special.
1685         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
1686         autoconf < 2.68.
1687
1688         acl: fix compilation test
1689         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
1690         AC_COMPILE_IFELSE.
1691
1692 2010-08-26  Bruno Haible  <bruno@clisp.org>
1693
1694         Modernize AC_TRY_RUN invocations.
1695         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
1696         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
1697         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
1698         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
1699         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
1700         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
1701         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
1702         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
1703         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
1704         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
1705         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
1706         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
1707         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
1708         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
1709         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
1710         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
1711         gl_MBRLEN_NUL_RETVAL): Likewise.
1712         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
1713         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
1714         Likewise.
1715         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
1716         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
1717         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
1718         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
1719         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
1720         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
1721         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
1722         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
1723         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
1724         Likewise.
1725         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
1726         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
1727         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
1728         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
1729         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
1730         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
1731         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
1732         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
1733         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
1734         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
1735
1736 2010-08-26  Bruno Haible  <bruno@clisp.org>
1737
1738         Modernize AC_TRY_LINK invocations.
1739         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
1740         AC_TRY_LINK.
1741         * m4/argp.m4 (gl_ARGP): Likewise.
1742         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
1743         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
1744         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
1745         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
1746         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
1747         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
1748         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
1749         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
1750         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
1751         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
1752         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
1753         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
1754         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
1755         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
1756         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
1757         * m4/hostent.m4 (gl_HOSTENT): Likewise.
1758         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
1759         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
1760         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
1761         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
1762         Likewise.
1763         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
1764         Likewise.
1765         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
1766         Likewise.
1767         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
1768         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
1769         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
1770         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
1771         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
1772         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
1773         * m4/servent.m4 (gl_SERVENT): Likewise.
1774         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
1775         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
1776         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
1777         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
1778         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
1779         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
1780         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
1781         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
1782         * modules/tsearch-tests (configure.ac): Likewise.
1783
1784 2010-08-26  Bruno Haible  <bruno@clisp.org>
1785
1786         Modernize AC_TRY_COMPILE invocations.
1787         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
1788         AC_TRY_COMPILE.
1789         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
1790         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
1791         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
1792         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
1793         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
1794         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
1795         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
1796         * m4/lock.m4 (gl_LOCK): Likewise.
1797         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
1798         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
1799         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
1800         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
1801         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
1802         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
1803         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
1804         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
1805         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
1806         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
1807         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
1808         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
1809         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
1810         extraneous semicolon.
1811
1812 2010-08-26  Jim Meyering  <meyering@redhat.com>
1813
1814         stat-time: relax license LGPL
1815         * modules/stat-time (License): Change from GPL to LGPL,
1816         with consent from all contributors, for use in libguile.
1817         Requested by Ludovic Courtès.
1818
1819 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
1820
1821         poll: return immediately on POLLHUP.
1822         * lib/poll.c (poll): Always set timeout before wait_timeout is
1823         computed.
1824
1825 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1826
1827         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
1828         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
1829         rmdir ("dir/.//"), unlinkat.
1830
1831 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1832
1833         stdbool: avoid spurious failure with modern xlc
1834         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
1835
1836 2010-08-24  Bruno Haible  <bruno@clisp.org>
1837
1838         getloadavg: simplify code
1839         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
1840         gl_have_func. Update comments.
1841
1842 2010-08-24  Eric Blake  <eblake@redhat.com>
1843
1844         getloadavg: don't define SVR4 on cygwin
1845         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
1846         only define SVR4 when -lkvm is required.
1847         Reported by Yaakov Selkowitz.
1848
1849 2010-08-24  Bruno Haible  <bruno@clisp.org>
1850
1851         priv-set: fix comment
1852         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
1853
1854 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
1855
1856         priv-set: fix comments
1857         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
1858         to match code, as suggested by David Bartley in:
1859         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
1860
1861 2010-08-23  Eric Blake  <eblake@redhat.com>
1862
1863         stdbool: avoid rejecting clang
1864         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
1865         * tests/test-stdbool.c: Enable more tests if using the system
1866         <stdbool.h> instead of the gnulib replacement.
1867         (main): Move xlc bug test to a runtime test for all compilers.
1868         Reported by Anders Kaseorg.
1869
1870         argz: fix shell quoting issue
1871         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
1872         Reported by Charles Wilson.
1873
1874 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
1875             Erik Faye-Lund <kusmabite@gmail.com>
1876
1877         poll, select: handle ERROR_BROKEN_PIPE.
1878         * lib/poll.c (win32_compute_revents): Return POLLHUP when
1879         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
1880         * lib/select.c (win32_compute_revents): Do not mark a pipe
1881         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
1882
1883 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
1884
1885         fts: allow compilation with C++
1886         * lib/fts_.h: Specify extern "C" linkage with C++.
1887
1888 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1889
1890         Fix gnulib-tool sed script de-commentation for AIX sed.
1891         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
1892         sed.
1893
1894 2010-08-17  Eric Blake  <eblake@redhat.com>
1895
1896         test-stddef: test for (some) offsetof bugs
1897         * tests/test-stddef.c: Enhance test to ensure correct type of
1898         offsetof.
1899         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
1900         that we are not fixing at this time.
1901
1902 2010-08-15  Bruno Haible  <bruno@clisp.org>
1903
1904         stpncpy: Allow stpncpy to be defined as a macro.
1905         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
1906         if it's already correctly declared.
1907         * lib/string.in.h (stpncpy): Undefine before redefining.
1908         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
1909
1910 2010-08-14  Bruno Haible  <bruno@clisp.org>
1911
1912         Rename module 'memxfrm' to 'amemxfrm'.
1913         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
1914         (amemxfrm): Renamed from memxfrm.
1915         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
1916         (amemxfrm): Renamed from memxfrm.
1917         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
1918         * NEWS: Mention the change.
1919         * MODULES.html.sh (String handling <string.h>): Update.
1920         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
1921         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
1922         * lib/unicase/u16-casexfrm.c: Likewise.
1923         * lib/unicase/u32-casexfrm.c: Likewise.
1924         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
1925         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
1926         * lib/uninorm/u16-normxfrm.c: Likewise.
1927         * lib/uninorm/u32-normxfrm.c: Likewise.
1928         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
1929         memxfrm.
1930         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
1931         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
1932         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
1933         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
1934         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
1935         Suggested by Paul Eggert.
1936
1937 2010-08-14  Bruno Haible  <bruno@clisp.org>
1938
1939         Tests for module 'astrxfrm'.
1940         * modules/astrxfrm-tests: New file.
1941         * tests/test-astrxfrm.c: New file.
1942
1943         New module 'astrxfrm'.
1944         * lib/astrxfrm.h: New file.
1945         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
1946         * modules/astrxfrm: New file.
1947
1948 2010-08-14  Reuben Thomas <rrt@sc3d.org>
1949
1950         regex: Tweak doc.
1951         * doc/regex.texi (Overview): Don't mention regex.c.
1952         (GNU Regular Expression Compiling): Likewise.
1953         (Match-end-of-line Operator): Mention 'not_eol'.
1954
1955 2010-08-14  Brian Gough  <bjg@gnu.org>
1956             Bruno Haible  <bruno@clisp.org>
1957
1958         git-merge-changelog: add doc relating to use with bzr and hg.
1959         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
1960
1961 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
1962
1963         pthread: fix pthread.h creation for srcdir != builddir
1964         * modules/pthread (Makefile.am): Fix the rule to work also in a
1965         non-srcdir build.
1966
1967 2010-08-13  Karl Berry  <karl@gnu.org>
1968
1969         * doc/regex.texi (Predefined Syntaxes): @smallexample.
1970         * doc/posix-*/*: force line break before @url of POSIX
1971         specifications.
1972         Suggested by Werner Lemberg.
1973
1974 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
1975
1976         strtod: fix const diagnostic
1977         * lib/strtod.c (strtod): Don't assign const char * to char *,
1978         as this elicits a warning from GCC when warnings are enabled.
1979
1980 2010-08-10  Pádraig Brady <P@draigbrady.com>
1981         and Eric Blake  <eblake@redhat.com>
1982
1983         copy-acl: ignore ENOTSUP on HP-UX
1984         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
1985         so that it is available for HP-UX.
1986         * lib/copy-acl.c (qcopy_acl): Use it.
1987         Reported by Patrick M. Callahan.
1988
1989 2010-08-10  Eric Blake  <eblake@redhat.com>
1990
1991         open, chown: relax license
1992         * modules/open (License): Change to LGPLv2+, with consent by all
1993         authors, for use in augeas.
1994         * modules/chown (License): Likewise.
1995         * modules/lchown (Likewise): Likewise.
1996         Requested by Adam Stokes.
1997
1998 2010-08-09  Karl Berry  <karl@gnu.org>
1999
2000         * build-aux/ar-lib: new file, import from Automake.
2001         * config/srclist.txt: autocheck for updates.
2002
2003 2010-08-09  Eric Blake  <eblake@redhat.com>
2004
2005         readlinkat: adjust client modules
2006         * modules/areadlinkat (Depends-on): Use readlinkat, not
2007         symlinkat.
2008         * modules/areadlinkat-with-size (Depends-on): Likewise.
2009
2010         mknod: be more vocal about danger of running tests as root
2011         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
2012         root, since that is just asking for problems.
2013         Suggested by Bruno Haible, based on a report by Rainer Tammer.
2014
2015         readlinkat: split into its own module
2016         * modules/symlinkat: Split readlinkat...
2017         * modules/readlinkat: ...into separate module.
2018         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
2019         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
2020         * lib/symlinkat.c (readlinkat): Move...
2021         * lib/readlinkat.c: ...into new file.
2022         * modules/symlinkat-tests: Split readlinkat test...
2023         * modules/readlinkat-tests: ...into separate module.
2024         * tests/test-symlinkat.c: Split...
2025         * tests/test-readlinkat.c: ...into new file.
2026         * NEWS: Document the split.
2027         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
2028         * lib/unistd.in.h (readlinkat): Likewise.
2029         Suggested by Bruno Haible.
2030
2031 2010-08-08  Bruno Haible  <bruno@clisp.org>
2032
2033         memxfrm: Speed up.
2034         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
2035         that usually only one call to strxfrm is necessary for each string
2036         part.
2037         Reported by Paul Eggert <eggert@cs.ucla.edu>.
2038
2039 2010-08-07  Karl Berry  <karl@gnu.org>
2040
2041         * doc/posix-headers/limits.texi,
2042         * doc/posix-functions/malloc.texi,
2043         * doc/posix-functions/strsignal.texi: missing @item.
2044         * doc/ld-version-script.texi: spurious leading i.
2045         * doc/regex.texi (Interval Operators): no commas inside @var.
2046
2047 2010-08-01  Bruno Haible  <bruno@clisp.org>
2048
2049         Integrate the regex documentation.
2050         * doc/gnulib.texi: Define 'cn' index.
2051         (Regular expressions): New a chapter that includes regex.texi and
2052         regexprops-generic.texi.
2053         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
2054         syntax.
2055
2056         Whitespace cleanup.
2057         * doc/regex.texi: Remove trailing spaces.
2058
2059         Add regex documentation.
2060         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
2061         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
2062         Written by Kathy A. Hargreaves and Karl Berry.
2063
2064 2010-08-01  Bruno Haible  <bruno@clisp.org>
2065
2066         link: Update documentation.
2067         * doc/posix-functions/link.texi: Update regarding Solaris.
2068
2069 2010-07-31  Bruno Haible  <bruno@clisp.org>
2070
2071         Update modules list.
2072         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
2073         (String handling <string.h>): Add memcmp2, memxfrm.
2074         (Container data structures): Add xlist, xsublist, xoset.
2075         (Core language properties): Add alignof, unused-parameter.
2076         (Process control, Numeric conversion functions <stdlib.h>): Renamed
2077         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
2078         (Unibyte characters <ctype.h>): New section.
2079         (String handling <string.h>): New section.
2080         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
2081         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
2082         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
2083         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
2084         tan, tanh, tanl, y0, y1, yn.
2085         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
2086         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
2087         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
2088         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
2089         unlockpt, vdprintf, vdprintf-posix.
2090         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
2091         (File system functions): Add concat-filename, sys_file, sys_ioctl,
2092         xconcat-filename.
2093         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
2094         getdtablesize, pipe2, pipe2-safer.
2095         (Security): New section.
2096         (Networking functions): Add accept4.
2097         (Signal handling): Add sigpipe.
2098         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
2099         mbmemcasecoll.
2100         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
2101         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
2102         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
2103         pipe-filter-ii.
2104         (Misc): Add argp-version-etc, login_tty, parse-duration.
2105
2106 2010-07-31  Bruno Haible  <bruno@clisp.org>
2107
2108         Improve doc in MODULES.html.
2109         * modules/linkat (Description): Add the word "function".
2110         * modules/mkfifo (Description): Likewise.
2111         * modules/mknod (Description): Likewise.
2112         * modules/remove (Description): Likewise.
2113         * modules/renameat (Description): Likewise.
2114         * modules/stat (Description): Likewise.
2115         * modules/symlink (Description): Likewise.
2116         * modules/unlink (Description): Likewise.
2117
2118 2010-07-31  Bruno Haible  <bruno@clisp.org>
2119
2120         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
2121         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
2122         option --enable/disable-c++ instead of --enable/disable-cxx.
2123         * NEWS: Mention the change.
2124
2125 2010-07-31  Bruno Haible  <bruno@clisp.org>
2126
2127         readlink, areadlink: Relax test a bit.
2128         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
2129         alternative to ENOTDIR.
2130         * tests/test-areadlink.h (test_areadlink): Likewise.
2131         Reported by Rainer Tammer.
2132
2133 2010-07-31  Bruno Haible  <bruno@clisp.org>
2134
2135         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
2136         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
2137         character, perform the search using U_STRCHR.
2138         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
2139         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
2140         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
2141         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
2142         Suggested by Paolo Bonzini.
2143
2144 2010-07-31  Bruno Haible  <bruno@clisp.org>
2145
2146         unistr/u*-strstr: Fix dependencies.
2147         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
2148         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
2149         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
2150
2151 2010-07-31  Bruno Haible  <bruno@clisp.org>
2152
2153         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
2154         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
2155         the beginning of the loop.
2156         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
2157         cases in 'switch' statement.
2158
2159         unistr/u8-strchr: Fix several bugs.
2160         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
2161         the string. When not found, return NULL, not a pointer near the end.
2162
2163         More tests for unistr/u8-strchr.
2164         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
2165         that the function does not read past the first occurrence of the byte
2166         being searched.
2167         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
2168         * tests/unistr/test-u16-strchr.c (main): New function.
2169         * tests/unistr/test-u32-strchr.c (main): New function.
2170
2171 2010-07-31  Bruno Haible  <bruno@clisp.org>
2172
2173         posix-modules: Ignore backup files of documentation files.
2174         * posix-modules: grep only through files named *.texi.
2175
2176 2010-07-31  Bruno Haible  <bruno@clisp.org>
2177
2178         symlinkat: Fix documentation.
2179         * doc/posix-functions/readlinkat.texi: Fix module name.
2180
2181 2010-07-31  Bruno Haible  <bruno@clisp.org>
2182
2183         fchownat: Replace also when chown has the trailing slash bug.
2184         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
2185         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
2186         introduced on 2010-04-10.
2187         Reported by Rainer Tammer.
2188
2189 2010-07-31  Bruno Haible  <bruno@clisp.org>
2190
2191         linkat: Work around AIX 7.1 bug.
2192         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
2193         whether linkat handles trailing slash correctly. If not, replace linkat
2194         and define LINKAT_TRAILING_SLASH_BUG.
2195         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
2196         check whether (fd1,file1) points to a directory if file1 or file2 ends
2197         in a slash. Code taken from lib/link.c.
2198         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
2199         Reported by Rainer Tammer.
2200
2201 2010-07-31  Bruno Haible  <bruno@clisp.org>
2202
2203         Correctly determine whether pow is available in libc on AIX 7 with xlc.
2204         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
2205         This disables an xlc optimization that was causing wrong test results.
2206         Reported by Rainer Tammer.
2207
2208 2010-07-31  Bruno Haible  <bruno@clisp.org>
2209
2210         iconv: Work around AIX 6.1..7.1 bug.
2211         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
2212         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
2213         cross-compiling, guess no on all versions of AIX.
2214         Reported by Rainer Tammer.
2215
2216 2010-07-31  Bruno Haible  <bruno@clisp.org>
2217
2218         readlink: Relax test a bit.
2219         * tests/test-readlink.h (test_readlink): Allow different errno value
2220         when readlink is called with a file name that ends in / and refers to
2221         a file.
2222         Suggested by Eric Blake.
2223         Reported by Rainer Tammer.
2224
2225 2010-07-31  Bruno Haible  <bruno@clisp.org>
2226
2227         copysign: Does not require -lm on glibc systems.
2228         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
2229         gl_COMMON_DOUBLE_MATHFUNC.
2230         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
2231
2232 2010-07-31  Bruno Haible  <bruno@clisp.org>
2233
2234         duplocale: Work around AIX 7.1 bug.
2235         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
2236         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
2237         * lib/duplocale.c (rpl_duplocale): Update comment.
2238         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
2239         Reported by Rainer Tammer.
2240
2241 2010-07-30  Bruno Haible  <bruno@clisp.org>
2242
2243         dirfd: Avoid link error on AIX 7.1.
2244         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
2245         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
2246         exist, set REPLACE_DIRFD.
2247         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
2248         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
2249         * doc/posix-functions/dirfd.texi: Update.
2250         Reported by Rainer Tammer.
2251
2252 2010-07-30  Eric Blake  <eblake@redhat.com>
2253
2254         strtod: next round of AIX fixes
2255         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
2256         exponent.
2257         * tests/test-strtod.c (main): Enhance tests.
2258         * doc/posix-functions/strtod.texi (strtod): Document next bug.
2259         Reported by Rainer Tammer.
2260
2261         futimens: fix configure check
2262         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
2263         Reported by Bruno Haible.
2264
2265 2010-07-30  Bruno Haible  <bruno@clisp.org>
2266
2267         getline: Update regarding AIX.
2268         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
2269         Reported by Rainer Tammer.
2270
2271 2010-07-30  Bruno Haible  <bruno@clisp.org>
2272
2273         wcwidth: Drop replacement on AIX 7.
2274         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
2275         AIX 7.
2276         Reported by Rainer Tammer.
2277
2278 2010-07-30  Bruno Haible  <bruno@clisp.org>
2279
2280         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
2281         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
2282         a 'char *'.
2283         Reported by Rainer Tammer.
2284
2285 2010-07-30  Bruno Haible  <bruno@clisp.org>
2286
2287         unlink: Update regarding AIX.
2288         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
2289         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
2290         Reported by Rainer Tammer.
2291
2292 2010-07-30  Bruno Haible  <bruno@clisp.org>
2293
2294         symlink: Update regarding AIX.
2295         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
2296         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
2297         Reported by Rainer Tammer.
2298
2299 2010-07-30  Bruno Haible  <bruno@clisp.org>
2300
2301         strndup: Update regarding AIX.
2302         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
2303         AIX 7.
2304         Reported by Rainer Tammer.
2305
2306 2010-07-30  Bruno Haible  <bruno@clisp.org>
2307
2308         stat: Update regarding AIX.
2309         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
2310         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
2311         Reported by Rainer Tammer.
2312
2313 2010-07-30  Bruno Haible  <bruno@clisp.org>
2314
2315         truncl: Fix autoconf test.
2316         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
2317         whether truncl works.
2318         Reported by Rainer Tammer.
2319
2320 2010-07-30  Bruno Haible  <bruno@clisp.org>
2321
2322         round: Update regarding AIX.
2323         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
2324         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
2325         Reported by Rainer Tammer.
2326
2327 2010-07-30  Bruno Haible  <bruno@clisp.org>
2328
2329         rename: Update regarding AIX.
2330         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
2331         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
2332         Reported by Rainer Tammer.
2333
2334 2010-07-30  Bruno Haible  <bruno@clisp.org>
2335
2336         printf.m4: Update regarding AIX.
2337         * m4/printf.m4: Update comments regarding AIX.
2338         Reported by Rainer Tammer.
2339
2340 2010-07-30  Bruno Haible  <bruno@clisp.org>
2341
2342         iconv: Update regarding AIX.
2343         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
2344         AIX 7.
2345         Reported by Rainer Tammer.
2346
2347 2010-07-30  Bruno Haible  <bruno@clisp.org>
2348
2349         getopt: Update regarding AIX.
2350         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
2351         no on AIX.
2352         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
2353         Reported by Rainer Tammer.
2354
2355 2010-07-30  Bruno Haible  <bruno@clisp.org>
2356
2357         ldexpl; Update regarding AIX.
2358         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
2359         on AIX 7.
2360         Reported by Rainer Tammer.
2361
2362 2010-07-30  Bruno Haible  <bruno@clisp.org>
2363
2364         frexpl: Update regarding AIX.
2365         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
2366         on AIX 7.
2367         Reported by Rainer Tammer.
2368
2369 2010-07-30  Bruno Haible  <bruno@clisp.org>
2370
2371         open, fopen: Update regarding AIX.
2372         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
2373         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
2374         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
2375         * doc/posix-functions/fopen.texi: Likewise.
2376         Reported by Rainer Tammer.
2377
2378 2010-07-30  Bruno Haible  <bruno@clisp.org>
2379
2380         chown: Update doc regarding AIX.
2381         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
2382         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
2383         Reported by Rainer Tammer.
2384
2385 2010-07-30  Eric Blake  <eblake@redhat.com>
2386
2387         strtod: fix bug in replacement function on AIX
2388         * lib/strtod.c (strtod): Special case broken "0x" parse in
2389         underlying strtod.
2390         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
2391         * doc/posix-functions/strtod.texi (strtod): Likewise.
2392         Reported by Rainer Tammer.
2393
2394 2010-07-30  Bruno Haible  <bruno@clisp.org>
2395
2396         mbrlen: Fix cross-compilation guess for AIX.
2397         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
2398         guess. Leftover from 2008-12-22.
2399
2400 2010-07-30  Bruno Haible  <bruno@clisp.org>
2401
2402         mbrtowc: Fix cross-compilation guess for AIX.
2403         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
2404         guess. Leftover from 2008-12-21.
2405
2406 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
2407
2408         init.sh: work around trap limitation of some shells
2409         * tests/init.sh (setup_): Move exit trap outside of shell function.
2410
2411 2010-07-29  Eric Blake  <eblake@redhat.com>
2412
2413         strtod: aid debugging
2414         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
2415         understanding why strtod is rejected.
2416
2417 2010-07-28  Bruno Haible  <bruno@clisp.org>
2418
2419         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
2420         * lib/unistr/u8-chr.c: Include <string.h>.
2421         * tests/unistr/test-u8-chr.c: Likewise.
2422         * tests/unistr/test-u16-chr.c: Likewise.
2423         * tests/unistr/test-u32-chr.c: Likewise.
2424         * tests/unistr/test-u8-strchr.c: Likewise.
2425         * tests/unistr/test-u16-strchr.c: Likewise.
2426         * tests/unistr/test-u32-strchr.c: Likewise.
2427         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
2428         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
2429         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
2430         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
2431
2432 2010-07-28  Bruno Haible  <bruno@clisp.org>
2433
2434         Use spaces for indentation, not tabs.
2435         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
2436
2437 2010-07-27  Bruno Haible  <bruno@clisp.org>
2438
2439         mbspcasecmp: Fix function specification.
2440         * lib/string.in.h (mbspcasecmp): Fix specification comment.
2441         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
2442         Reported by Eric Blake <eblake@redhat.com>.
2443
2444 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
2445
2446         timespec: use cast and not conditional, as truncation isn't possible
2447         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
2448         instead of a conditional.  Comment about the situation in more detail.
2449         This undoes most of the 2009-10-29 patch.
2450
2451 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
2452
2453         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
2454         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
2455         * lib/unistr/u8-strchr.c: Likewise.
2456         * modules/unistr/u8-chr: Depend on memchr.
2457
2458         unistr/u*-strchr: add tests
2459         * modules/unistr/u8-strchr-tests: New file.
2460         * modules/unistr/u16-strchr-tests: New file.
2461         * modules/unistr/u32-strchr-tests: New file.
2462         * tests/unistr/test-strchr.h: New file.
2463         * tests/unistr/test-u8-strchr.c: New file.
2464         * tests/unistr/test-u16-strchr.c: New file.
2465         * tests/unistr/test-u32-strchr.c: New file.
2466
2467         unistr/u*-chr: test multibyte sequences more
2468         * tests/unistr/test-chr.h: Do complete testing of the characters in the
2469         test vector.
2470         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
2471         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
2472         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
2473
2474         unistr/u*-chr: test multibyte sequences
2475         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
2476
2477         unistr/u*-chr: prepare for multibyte tests
2478         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
2479         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
2480         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
2481         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
2482         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
2483         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
2484
2485 2010-07-18  Bruno Haible  <bruno@clisp.org>
2486
2487         unistr/u8-strchr: Optimize non-ASCII argument case.
2488         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
2489         because the first byte often matches anyway.
2490         Reported by Pádraig Brady <P@draigbrady.com>.
2491
2492 2010-07-15  Karl Berry  <karl@gnu.org>
2493
2494         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
2495
2496 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
2497
2498         getcwd: on Solaris, work better if ancestors are inaccessible
2499         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
2500         buffer and size, try again with a large buffer.  This works better
2501         on Solaris, since its getcwd succeeds even if the path to the root
2502         is inaccessible, and this is helpful in common cases such as .zfs
2503         hidden directories.  Problem reported by J Chapman Flack in
2504         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
2505         Use system getcwd if it's declared, not merely if it's partly
2506         working; use the partly-working test only to avoid needless effort
2507         if the system getcwd fails.
2508         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
2509         comment that was already obsolete and is now even more obsolete.
2510         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
2511         now might call strdup.
2512
2513 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
2514
2515         pthread: Add enough so that coreutils/src/sort.c compiles.
2516         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
2517         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
2518         gnulib. Include <sched.h> and <time.h>, as per POSIX.
2519         Include <sys/types.h>, in case it defines pthread_t.
2520         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
2521         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
2522         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
2523         (pthread_rwlockattr_t, pthread_spinlock_t):
2524         New typedefs, if HAVE_PTHREAD_T is not defined.
2525         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
2526         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
2527         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
2528         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
2529         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
2530         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
2531         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
2532         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
2533         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
2534         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
2535         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
2536         New macros.
2537         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
2538         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
2539         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
2540         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
2541         (pthread_spin_unlock): New dummy functions.
2542         (pthread_create): Return EAGAIN; don't set errno.
2543         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
2544         require AC_C_INLINE.
2545         * modules/pthread (Depends-on): Add sched, time.
2546         (pthread.h): Use AM_V_GEN.
2547
2548 2010-07-13  Bruno Haible  <bruno@clisp.org>
2549
2550         striconveh: Don't malloc memory if the result buffer is sufficient.
2551         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
2552         buffer if its size is sufficient.
2553         Reported by Ludovic Courtès <ludo@gnu.org>.
2554
2555 2010-07-13  Bruno Haible  <bruno@clisp.org>
2556
2557         strtod: Add safety check.
2558         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
2559
2560 2010-07-12  Bruno Haible  <bruno@clisp.org>
2561
2562         Unify tests that set gl_cv_func_ldexpl_no_libm.
2563         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
2564         gl_FUNC_LDEXPL.
2565         (gl_FUNC_LDEXPL): Invoke it.
2566         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
2567
2568 2010-07-12  Bruno Haible  <bruno@clisp.org>
2569
2570         Unify tests that set gl_cv_func_ldexp_no_libm.
2571         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
2572         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
2573         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
2574         (configure.ac): Simply invoke gl_FUNC_LDEXP.
2575         * modules/strtod (Files): Add m4/ldexp.m4.
2576
2577 2010-07-12  Bruno Haible  <bruno@clisp.org>
2578
2579         Unify tests that set gl_cv_func_frexpl_no_libm.
2580         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
2581         gl_FUNC_FREXPL_NO_LIBM.
2582         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
2583         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
2584
2585 2010-07-12  Bruno Haible  <bruno@clisp.org>
2586
2587         Unify tests that set gl_cv_func_frexp_no_libm.
2588         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
2589         gl_FUNC_FREXP_NO_LIBM.
2590         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
2591         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
2592
2593 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
2594
2595         memcoll: clarify sizes versus lengths, document better, and tweak perf
2596         * lib/memcoll.c (strcoll_loop, memcoll0):
2597         Improve quality of descriptive comments.  Name variables
2598         consistently as to whether they are lengths (which do not include
2599         terminating null) versus sizes (which do).
2600         * lib/xmemcoll.c (xmemcoll0): Likewise.
2601         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
2602         returned when s1size == 0; this is easier to compile and saves
2603         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
2604
2605 2010-07-12  Bruno Haible  <bruno@clisp.org>
2606
2607         Tests for module '_Exit'.
2608         * modules/_Exit-tests: New file.
2609         * tests/test-_Exit.sh: New file.
2610         * tests/test-_Exit.c: New file.
2611
2612         New module '_Exit'.
2613         * lib/stdlib.in.h (__attribute__): New macro.
2614         (_Exit): New declaration.
2615         * lib/_Exit.c: New file.
2616         * m4/_Exit.m4: New file.
2617         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
2618         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
2619         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
2620         * modules/_Exit: New file.
2621         * tests/test-stdlib-c++.cc (_Exit): Check signature.
2622         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
2623
2624 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
2625
2626         strtod: make it more-accurate typically, and don't require libm
2627         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
2628         Include limits.h.  Don't include string.h.
2629         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
2630         (locale_isspace): New function, so that no casts are needed to
2631         check whether *s is a space.
2632         (ldexp): Provide an unused dummy if not available.
2633         (scale_radix_exp, parse_number, underlying_strtod): New functions.
2634         (strtod): Use them.  This implementation prefers to use the
2635         underlying strtod if available, falling back on our own code
2636         only to fix known bugs.  This is more likely to produce an
2637         accurate result.  Also, it avoids the use of libm functions.
2638         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
2639         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
2640         was absent, but it caused a test failure with coreutils.
2641         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
2642         with libm.
2643         * modules/strtod (Makefile.am, Link): libm is no longer needed.
2644         * modules/strtod-tests (Makefile.am): Likewise.
2645
2646 2010-07-11  Pádraig Brady  <P@draigBrady.com>
2647             Bruno Haible  <bruno@clisp.org>
2648
2649         unistr/u8-strchr: Optimize ASCII argument case.
2650         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
2651
2652 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
2653
2654         (x)memcoll: minor tweaks
2655         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
2656         is after the type that it qualifies.
2657         (memcoll0): Likewise.
2658         * lib/memcoll.h (memcoll0): Likewise.
2659         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
2660         * lib/xmemcoll.h (xmemcoll0): Likewise.
2661         * lib/memcoll.c (memcoll0): Correct the comment.  This function
2662         differs from memcoll in that the NUL byte is part of the argument.
2663         Omit the abort-checks, as performance is a real issue here.  Plus,
2664         the checks were wrong anyway (an off-by-one error).  Omit local
2665         variable 'diff', as it's a bit clearer that way.
2666         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
2667         no longer needed.
2668
2669 2010-07-08  Chen Guo <chenguo4@yahoo.com>
2670
2671         (x)memcoll: speedup when input is known to be NUL delimited
2672         * lib/memcoll.c: Include stdlib.
2673         (memcoll0) New function.
2674         (strcoll_loop) New function, refactored for use in both memcoll
2675         and memcoll0.
2676         * lib/memcoll.h: Add prototype for memcoll0.
2677         * lib/xmemcoll.c: (xmemcoll0) New function.
2678         (collate_error) New function, refactored for use in both xmemcoll
2679         and xmemcoll0.
2680         * lib/xmemcoll.h: Add prototype for xmemcoll0.
2681         * m4/memcoll.m4: add inline invocation.
2682
2683 2010-07-06  Pádraig Brady  <P@draigBrady.com>
2684
2685         * build-aux/bootstrap: Remove any local translations
2686         from the translation project synchronization directory,
2687         so that local only translations are not distributed.
2688
2689 2010-07-04  Bruno Haible  <bruno@clisp.org>
2690
2691         fsusage: Clarify which code applies to which platforms.
2692         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
2693         platform.
2694         * lib/fsusage.c (get_fs_usage): Likewise.
2695
2696 2010-07-04  Bruno Haible  <bruno@clisp.org>
2697
2698         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
2699         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
2700         Reported by Martin Lambers <marlam@marlam.de>.
2701
2702 2010-07-04  Jim Meyering  <meyering@redhat.com>
2703
2704         hash: once again explicitly disallow insertion of NULL
2705         * lib/hash.c (hash_insert0): Reinstate just-removed test:
2706         inserting a NULL pointer cannot work with these functions.
2707         Add a comment with details.
2708         This reverts part of the 2010-07-01 commit, 5bef1a35
2709         "hash: extend module to deal with non-pointer keys".
2710
2711 2010-07-01  Bruno Haible  <bruno@clisp.org>
2712
2713         stdbool: Update doc.
2714         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
2715         Info from Christian Weisgerber <naddy@mips.inka.de>.
2716
2717 2010-07-01  Jim Meyering  <meyering@redhat.com>
2718
2719         hash: extend module to deal with non-pointer keys
2720         * lib/hash.c (hash_insert0): New interface, much like hash_insert
2721         but that allows insertion of non-pointer entries.
2722         Do not disallow an ENTRY value of NULL.
2723         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
2724         * lib/hash.h (hash_insert0): Declare.
2725
2726 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
2727
2728         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
2729         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
2730         not present (i.e. with autoconf 2.59 and when using gettextize, not
2731         gnulib), require AC_GNU_SOURCE instead.
2732
2733 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
2734
2735         idpriv-drop: Fix tests.
2736         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
2737         not to the test-idpriv-droptemp program.
2738
2739 2010-06-29  Bruno Haible  <bruno@clisp.org>
2740
2741         string: Fix syntax error with g++ 2.96.
2742         * lib/string.in.h (__pure__): Remove definition.
2743         (_GL_ATTRIBUTE_PURE): New macro.
2744         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
2745         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
2746         Reported by Christian Weisgerber <naddy@mips.inka.de>.
2747
2748 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
2749
2750         unitypes: Fix bug introduced on 2010-05-18.
2751         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
2752
2753 2010-06-22  Eric Blake  <eblake@redhat.com>
2754
2755         memmem: slight optimization
2756         * lib/str-two-way.h (critical_factorization): Update comments.
2757         Reduce work during factorization phase.
2758         Reported by Carlos Bueno <carlos@bueno.org>.
2759
2760 2010-06-21  Bruno Haible  <bruno@clisp.org>
2761
2762         Fix HAVE_CALLOC_POSIX misnomer.
2763         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
2764         !HAVE_CALLOC_POSIX.
2765         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
2766         HAVE_CALLOC_POSIX.
2767         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
2768         instead of HAVE_CALLOC_POSIX.
2769         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
2770         HAVE_CALLOC_POSIX.
2771
2772         Use modern idiom for calloc() replacement.
2773         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
2774         AC_FUNC_CALLOC.
2775         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
2776         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
2777         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
2778         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
2779         (gl_REPLACE_CALLOC): New macro.
2780
2781 2010-06-21  Bruno Haible  <bruno@clisp.org>
2782
2783         Fix HAVE_REALLOC_POSIX misnomer.
2784         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
2785         !HAVE_REALLOC_POSIX.
2786         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
2787         HAVE_REALLOC_POSIX.
2788         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
2789         instead of HAVE_REALLOC_POSIX.
2790         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
2791         HAVE_REALLOC_POSIX.
2792
2793         Use modern idiom for realloc() replacement.
2794         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
2795         AC_FUNC_REALLOC.
2796         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
2797         Autoconf's AC_FUNC_REALLOC.
2798         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
2799         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
2800         (gl_REPLACE_REALLOC): New macro.
2801         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
2802
2803 2010-06-21  Bruno Haible  <bruno@clisp.org>
2804
2805         Fix HAVE_MALLOC_POSIX misnomer.
2806         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
2807         !HAVE_MALLOC_POSIX.
2808         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
2809         HAVE_MALLOC_POSIX.
2810         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
2811         instead of HAVE_MALLOC_POSIX.
2812         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
2813         HAVE_MALLOC_POSIX.
2814
2815         Use modern idiom for malloc() replacement.
2816         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
2817         AC_FUNC_MALLOC.
2818         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
2819         Autoconf's AC_FUNC_MALLOC.
2820         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
2821         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
2822         (gl_REPLACE_MALLOC): New macro.
2823         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
2824
2825 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
2826
2827         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
2828         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
2829         This macro takes 3 arguments, not 4.
2830
2831 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
2832
2833         ipv6: fix detection under mingw
2834         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
2835         in6_addr.
2836
2837 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
2838
2839         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
2840         that strtod() works when cross-compiling to a glibc version known
2841         to work.
2842
2843 2010-06-15  Bruno Haible  <bruno@clisp.org>
2844
2845         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
2846
2847 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
2848
2849         select: Correct timeout.
2850         * lib/select.c (rpl_select): Compute wait_timeout correctly.
2851
2852 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
2853
2854         git-version-gen: init shell var to avoid env var influence
2855         * build-aux/git-version-gen (v): Init shell var to empty.
2856
2857 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
2858
2859         priv-set: Don't assume that priv.h exists merely because getppriv does.
2860         See Jan Andersen's bug report about AIX 5L in
2861         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
2862         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
2863         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
2864         * lib/priv-set.h: Likewise.
2865         * tests/test-priv-set.c: Likewise.
2866
2867 2010-06-13  Bruno Haible  <bruno@clisp.org>
2868
2869         relocatable: Make it easier to test whether to install wrappers.
2870         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
2871         RELOCATABLE_VIA_WRAPPER.
2872
2873 2010-06-13  Bruno Haible  <bruno@clisp.org>
2874
2875         gnulib-tool: Display specified modules and dependencies differently.
2876         * gnulib-tool (func_show_module_list): New function.
2877         (func_import, func_create_testdir): Invoke it.
2878         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
2879
2880 2010-06-13  Bruno Haible  <bruno@clisp.org>
2881
2882         gnulib-tool: Align code of func_import and func_create_testdir.
2883         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
2884         specified_modules.
2885
2886 2010-06-12  Jim Meyering  <meyering@redhat.com>
2887
2888         test-inttostr: avoid spurious failure on Solaris 9
2889         * tests/test-inttostr.c (main): Skip the test when snprintf fails
2890         to accept "%ju".  Reported by Bruno Haible.
2891
2892 2010-06-11  Jim Meyering  <meyering@redhat.com>
2893
2894         test-sys_socket: mark variables as used more readably
2895         * tests/test-sys_socket.c (main): Mark otherwise unused variables
2896         as "used" explicitly via (void) statement casts.  This is more
2897         readable than using them in an artificial return expression.
2898         Suggestion from Bruno Haible.
2899
2900 2010-06-11  Bruno Haible  <bruno@clisp.org>
2901
2902         Avoid some more warnings from "gcc -Wwrite-strings".
2903         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
2904         to 'const char *'.
2905         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
2906         * tests/test-c-strcasestr.c (main): Likewise.
2907         * tests/test-mbscasestr1.c (main): Likewise.
2908         * tests/test-mbscasestr2.c (main): Likewise.
2909         * tests/test-memmem.c (main): Likewise.
2910         * tests/test-strstr.c (main): Likewise.
2911         * tests/test-strcasestr.c (main): Likewise.
2912
2913 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2914
2915         init.sh: change framework_failure_ to fail with status 99, not 1
2916         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
2917         automake's parallel-tests rule that this is an unexpected failure,
2918         even if the test is listed in XFAIL_TESTS.
2919
2920 2010-06-11  Jim Meyering  <meyering@redhat.com>
2921
2922         test-inttostr: avoid warnings about 4-6KB literal strings
2923         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
2924         Include "macros.h", for its definition of ASSERT.
2925         (CK): s/assert/ASSERT/
2926         * modules/inttostr-tests (Files): Add macros.h.
2927
2928         init.sh: don't use $ME_ or skip_ before they are defined
2929         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
2930         their first uses.  Also hoist their companions: warn_, fail_,
2931         framework_failure_, $stderr_fileno.  Prompted by a patch from
2932         Stefano Lattarini.
2933
2934         test-sys_socket: avoid set-but-not-used warnings from gcc
2935         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
2936         avoid warning about set-but-not-used variables.
2937
2938         test-xvasprintf: avoid 'const' discard warnings
2939         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
2940         "const" when assigning from literal strings.
2941         (test_xasprintf): Add "void" in function argument list to placate
2942         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
2943
2944         tests: avoid compilation warnings in argmatch and exclude tests...
2945         in packages that define ARGMATCH_DIE_DECL, like coreutils.
2946         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
2947         Since it always exits, declare with the "noreturn" attribute.
2948         * tests/test-argmatch.c: Likewise.
2949
2950         tests: avoid 'const' discard warnings in mbsstr tests
2951         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
2952         * tests/test-mbsstr2.c (main): Likewise.
2953
2954         test-verify: avoid warning from gcc's -Wmissing-declarations
2955         * tests/test-verify.c (function): Declare to be static.
2956
2957         test-inttostr.c: include <string.h> for use of strcmp
2958         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
2959
2960         test-linkat: avoid failed assertion on "other" architectures
2961         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
2962         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
2963         sparc: https://bugs.launchpad.net/bugs/591968
2964
2965 2010-06-11  Jim Meyering  <meyering@redhat.com>
2966
2967         printf.m4: avoid autoconf's "Expanded Before Required" warning
2968         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
2969         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
2970         autoconf warning.
2971
2972 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
2973
2974         Replacement header templates are now named with ".in", not "_".
2975         * doc/gnulib-intro.texi: Correct.
2976
2977 2010-06-10  Jim Meyering  <meyering@redhat.com>
2978
2979         inttostr-tests: depend on snprintf, not snprintf-posix
2980         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
2981         snprintf-posix, to avoid this aclocal failure:
2982           missing file gnulib-tests/vasnprintf.c
2983           configure.ac:45: error: expected source file, required through \
2984           AC_LIBSOURCES, not found
2985
2986 2010-06-10  Jim Meyering  <meyering@redhat.com>
2987
2988         inttostr: add a new function, inttostr, and tests
2989         The namesake function was not available.  The existence of the
2990         template file, inttostr.c makes its addition nontrivial.
2991         * lib/anytostr.c: Rename from inttostr.c.
2992         (anytostr): Rename from inttostr.
2993         * lib/inttostr.c: New file.
2994         * modules/inttostr (Files): Add anytostr.c.
2995         (Makefile.am): Set lib_SOURCES instead of ...
2996         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
2997         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
2998         * lib/offtostr.c: Likewise.
2999         * lib/uinttostr.c: Likewise.
3000         * lib/umaxtostr.c: Likewise.
3001         * modules/inttostr-tests: New file.
3002         * tests/test-inttostr.c: New file.  Test these functions.
3003
3004 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
3005             Bruno Haible  <bruno@clisp.org>
3006
3007         Add "Extending Gnulib" chapter to manual.
3008         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
3009         chapter.
3010         (Extending Gnulib): New chapter.
3011         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
3012         chapter.
3013
3014 2010-06-09  Bruno Haible  <bruno@clisp.org>
3015
3016         Avoid relocwrapper link errors due to gnulib replacement functions.
3017         * lib/areadlink.c: Use the system's malloc, realloc functions.
3018         (areadlink): Set errno to ENOMEM explicitly.
3019         * modules/areadlink (Depends-on): Remove malloc-posix.
3020         Reported by Ben Pfaff <blp@cs.stanford.edu>.
3021
3022 2010-06-09  Bruno Haible  <bruno@clisp.org>
3023
3024         Avoid relocwrapper link errors due to gnulib replacement functions.
3025         * lib/canonicalize-lgpl.c: Use the system's malloc function.
3026         * lib/malloca.c: Likewise.
3027         * lib/relocatable.c: Likewise.
3028         * lib/progreloc.c: Use the system's malloc, sprintf functions.
3029         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
3030         * lib/setenv.c: Use the system's malloc, realloc functions.
3031         * lib/strerror.c: Use the system's sprintf function.
3032         Reported by Ben Pfaff <blp@cs.stanford.edu>.
3033
3034 2010-06-04  Bruno Haible  <bruno@clisp.org>
3035
3036         Prefer documented low-level autoconf macro names.
3037         * m4/lib-link.m4: Use m4_translit instead of translit.
3038         * m4/environ.m4: Likewise.
3039         * m4/mathfunc.m4: Likewise.
3040         * m4/onceonly.m4: Likewise.
3041         * m4/stdint.m4: Likewise.
3042         Suggested by Eric Blake.
3043
3044 2010-06-04  Martin Lambers  <marlam@marlam.de>
3045             Bruno Haible  <bruno@clisp.org>
3046
3047         havelib: Allow library names with '+' characters.
3048         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
3049         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
3050
3051 2010-06-09  Bruno Haible  <bruno@clisp.org>
3052
3053         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
3054         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
3055         realloc failed.
3056
3057 2010-06-08  Peter Simons  <simons@cryp.to>
3058
3059         maint.mk: make the news-check rule more configurable
3060         * top/maint.mk (news-check-lines-spec) New variable.
3061         (news-check): Use "sed -n 1,10p" in place of "head".
3062
3063 2010-06-07  Jim Meyering  <meyering@redhat.com>
3064
3065         do-release-commit-and-tag: fix typo in --help
3066         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
3067
3068         regex: avoid new dead-code warning with gcc-4.6.0
3069         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
3070         if-block containing a while-loop.  It's been unused for at least
3071         5 years.
3072
3073 2010-06-05  Bruno Haible  <bruno@clisp.org>
3074
3075         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
3076         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
3077
3078 2010-06-04  Bruno Haible  <bruno@clisp.org>
3079
3080         Update to GNU gettext 0.18.1.
3081         * modules/gettext (configure.ac): Require gettext infrastructure from
3082         version 0.18.1.
3083
3084 2010-06-03  Bruno Haible  <bruno@clisp.org>
3085
3086         Don't use AC_LIBOBJ with file names in subdirectories.
3087         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
3088         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
3089         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
3090         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
3091         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
3092         gl_LIBUNISTRING_LIBSOURCE.
3093         (Makefile.am): Augment lib_SOURCES here, conditionally.
3094         * NEWS: Drop requirement for Automake option 'subdir-objects'.
3095
3096 2010-06-03  Bruno Haible  <bruno@clisp.org>
3097
3098         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
3099         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
3100         expansion does not end with a newline.
3101         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
3102         unnecessary newline.
3103
3104 2010-06-03  Bruno Haible  <bruno@clisp.org>
3105
3106         Reduce dependencies.
3107         * tests/test-quotearg.h: New file, extracted from
3108         tests/test-quotearg.c.
3109         * tests/test-quotearg-simple.c: New file, extracted from
3110         tests/test-quotearg.c.
3111         * tests/test-quotearg.c: Don't include <ctype.h>.
3112         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
3113         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
3114         use_quote_double_quotes, use_quotearg_colon): Moved to
3115         tests/test-quotearg.h.
3116         (results_g, flag_results, custom_quotes, custom_results): Moved
3117         to tests/test-quotearg-simple.c.
3118         (main): Moved the part that does not depend on gettext to
3119         tests/test-quotearg-simple.c. Return 77 if the test cannot be
3120         performed.
3121         * modules/quotearg-simple: New file.
3122         * modules/quotearg-simple-tests: New file.
3123         * modules/quotearg (Depends-on): Add quotearg-simple.
3124         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
3125         (Files): Add tests/test-quotearg.h.
3126         Reported by Paolo Bonzini.
3127
3128 2010-06-03  Bruno Haible  <bruno@clisp.org>
3129
3130         Reduce dependencies.
3131         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
3132
3133 2010-06-03  Bruno Haible  <bruno@clisp.org>
3134
3135         time: Undefine more broken macros.
3136         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
3137         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
3138         Reported by Eric Blake.
3139
3140 2010-06-03  Bruno Haible  <bruno@clisp.org>
3141
3142         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
3143         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
3144         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
3145         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
3146         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
3147         Reported by Ludovic Courtès <ludo@gnu.org>.
3148
3149 2010-06-02  Eric Blake  <eblake@redhat.com>
3150
3151         time: work with mingw + pthreads-win32 library
3152         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
3153         if timespec is defined only in pthread.h.
3154         * modules/time (Makefile.am): Substitute it.
3155         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
3156         <pthread.h>, when needed.
3157         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
3158         from the library.
3159
3160 2010-05-31  Bruno Haible  <bruno@clisp.org>
3161
3162         Avoid expanding two macros in the wrong order.
3163         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
3164         gl_LIBUNISTRING if it is defined.
3165         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
3166         autoconf >= 2.64.
3167         Reported by Ludovic Courtès <ludo@gnu.org>.
3168
3169 2010-05-27  Jim Meyering  <meyering@redhat.com>
3170
3171         maint.mk: also prohibit "#undef" of always-defined symbols
3172         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
3173         Allow more than one space before the symbol name.
3174         (sc_prohibit_always-defined_macros): Use grep's -E, now that
3175         the regexp uses alternation.
3176
3177 2010-05-26  Eric Blake  <eblake@redhat.com>
3178
3179         maint.mk: avoid echo -e
3180         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
3181         Convert all uses of echo -* to printf.
3182         Reported by Matthias Bolte.
3183
3184 2010-05-25  Bruno Haible  <bruno@clisp.org>
3185
3186         Update to GNU gettext 0.18, part 2.
3187         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
3188         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
3189
3190 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3191
3192         Add missing include in test-pwrite.c.
3193         * tests/test-pwrite.c: Include string.h, for strcmp.
3194
3195 2010-05-24  Bruno Haible  <bruno@clisp.org>
3196
3197         * NEWS: Mention requirement for Automake option 'subdir-objects'.
3198
3199 2010-05-24  Bruno Haible  <bruno@clisp.org>
3200
3201         Don't use conversion with transliteration in u{8,16,32}_strcoll.
3202         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
3203         iconveh_error argument.
3204         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
3205         U_STRCONV_TO_LOCALE.
3206         * lib/unistr/u16-strcoll.c: Likewise.
3207         * lib/unistr/u32-strcoll.c: Likewise.
3208         * modules/unistr/u8-strcoll (Depends-on): Add
3209         uniconv/u8-strconv-to-enc, localcharset. Remove
3210         uniconv/u8-strconv-to-locale.
3211         (configure.ac): Bump version number.
3212         * modules/unistr/u16-strcoll (Depends-on): Add
3213         uniconv/u16-strconv-to-enc, localcharset. Remove
3214         uniconv/u16-strconv-to-locale.
3215         (configure.ac): Bump version number.
3216         * modules/unistr/u32-strcoll (Depends-on): Add
3217         uniconv/u32-strconv-to-enc, localcharset. Remove
3218         uniconv/u32-strconv-to-locale.
3219         (configure.ac): Bump version number.
3220
3221 2010-05-24  Bruno Haible  <bruno@clisp.org>
3222
3223         Avoid a test failure on NetBSD 5.0.
3224         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
3225         an iconv() bug.
3226
3227 2010-05-24  Bruno Haible  <bruno@clisp.org>
3228
3229         Adjust #include directive style.
3230         * modules/regex (Includes): Recommend to write <regex.h>.
3231
3232 2010-05-24  Bruno Haible  <bruno@clisp.org>
3233
3234         regex: Don't require alloca.
3235         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
3236         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
3237         only inside if (0).
3238
3239 2010-05-23  Jim Meyering  <meyering@redhat.com>
3240
3241         test-renameat.c: include <sys/stat.h>
3242         * tests/test-renameat.c: Include <sys/stat.h>; required for
3243         definition of S_IS* macros.
3244
3245 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
3246
3247         Update maintainer documentation for 'relocatable-prog' module.
3248         * doc/relocatable-maint.texi: Update.
3249         Comments by Bruno Haible.
3250
3251 2010-05-23  Bruno Haible  <bruno@clisp.org>
3252
3253         git-merge-changelog: Enable --split-merged-entry by default.
3254         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
3255         (usage): Don't mention this option any more.
3256         Reported by Ralf Wildenhues.
3257
3258 2010-05-23  Jim Meyering  <meyering@redhat.com>
3259
3260         test-pwrite: do not leave behind a test file named "out"
3261         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
3262         The trivial-looking use of init.sh is really necessary.
3263         It ensures that the temporary file, "out", is created in
3264         a temporary directory, and removed upon termination.
3265         * tests/test-pwrite.sh: Re-add file.
3266         * modules/pwrite-tests: Reference it.
3267
3268 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3269
3270         Fix output redirection buglet in init.sh.
3271         * tests/init.sh: Fix redirection of stderr.
3272
3273 2010-05-20  Simon Josefsson  <simon@josefsson.org>
3274
3275         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
3276
3277 2010-05-17  Simon Josefsson  <simon@josefsson.org>
3278
3279         * modules/valgrind-tests: New file.
3280         * m4/valgrind-tests.m4: New file.
3281         * doc/valgrind-tests.texi: New file.
3282         * doc/gnulib.texi (Running self-tests under valgrind): New
3283         section.
3284
3285 2010-05-19  Bruno Haible  <bruno@clisp.org>
3286
3287         Clean up dead code in recent commit.
3288         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
3289         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
3290         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
3291         Suggested by Paolo Bonzini.
3292
3293 2010-05-19  Bruno Haible  <bruno@clisp.org>
3294
3295         Avoid valgrind error reports from libunistring.
3296         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
3297         * modules/libunistring (Files): Add it.
3298         * modules/libunistring-optional (Files): Likewise.
3299
3300 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
3301             Bruno Haible  <bruno@clisp.org>
3302
3303         New module 'libunistring-optional'.
3304         * modules/libunistring-optional: New file.
3305         * m4/libunistring-base.m4: New file.
3306         * m4/libunistring-optional.m4: New file.
3307         * lib/unicase.in.h: Renamed from lib/unicase.h.
3308         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
3309         * lib/unictype.in.h: Renamed from lib/unictype.h.
3310         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
3311         * lib/uniname.in.h: Renamed from lib/uniname.h.
3312         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
3313         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
3314         * lib/unistr.in.h: Renamed from lib/unistr.h.
3315         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
3316         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
3317         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
3318         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
3319         gl_LIBUNISTRING. If the library was found, determine the installed
3320         version and set LIBUNISTRING_VERSION.
3321         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
3322         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
3323         handle a configuration option --with-included-libunistring.
3324         * modules/libunistring (Files): Add m4/absolute-header.m4.
3325         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
3326         Add m4/libunistring-base.m4.
3327         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3328         (Makefile.am): Build unicase.h from unicase.in.h.
3329         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
3330         Add m4/libunistring-base.m4.
3331         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3332         (Makefile.am): Build uniconv.h from uniconv.in.h.
3333         * modules/unictype/base (Files): Use unictype.in.h instead of
3334         unictype.h. Add m4/libunistring-base.m4.
3335         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3336         (Makefile.am): Build unictype.h from unictype.in.h.
3337         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
3338         Add m4/libunistring-base.m4.
3339         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3340         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
3341         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
3342         Add m4/libunistring-base.m4.
3343         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3344         (Makefile.am): Build uniname.h from uniname.in.h.
3345         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
3346         Add m4/libunistring-base.m4.
3347         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3348         (Makefile.am): Build uninorm.h from uninorm.in.h.
3349         * modules/unistdio/base (Files): Use unistdio.in.h instead of
3350         unistdio.h. Add m4/libunistring-base.m4.
3351         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3352         (Makefile.am): Build unistdio.h from unistdio.in.h.
3353         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
3354         Add m4/libunistring-base.m4.
3355         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3356         (Makefile.am): Build unistr.h from unistr.in.h.
3357         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
3358         Add m4/libunistring-base.m4.
3359         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3360         (Makefile.am): Build unitypes.h from unitypes.in.h.
3361         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
3362         Add m4/libunistring-base.m4.
3363         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3364         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
3365         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
3366         uniwidth.h. Add m4/libunistring-base.m4.
3367         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
3368         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
3369         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
3370         instead of augmenting lib_SOURCES.
3371         * modules/unicase/empty-suffix-context: Likewise.
3372         * modules/unicase/locale-language: Likewise.
3373         * modules/unicase/tolower: Likewise.
3374         * modules/unicase/totitle: Likewise.
3375         * modules/unicase/toupper: Likewise.
3376         * modules/unicase/u8-casecmp: Likewise.
3377         * modules/unicase/u8-casecoll: Likewise.
3378         * modules/unicase/u8-casefold: Likewise.
3379         * modules/unicase/u8-casexfrm: Likewise.
3380         * modules/unicase/u8-ct-casefold: Likewise.
3381         * modules/unicase/u8-ct-tolower: Likewise.
3382         * modules/unicase/u8-ct-totitle: Likewise.
3383         * modules/unicase/u8-ct-toupper: Likewise.
3384         * modules/unicase/u8-is-cased: Likewise.
3385         * modules/unicase/u8-is-casefolded: Likewise.
3386         * modules/unicase/u8-is-lowercase: Likewise.
3387         * modules/unicase/u8-is-titlecase: Likewise.
3388         * modules/unicase/u8-is-uppercase: Likewise.
3389         * modules/unicase/u8-prefix-context: Likewise.
3390         * modules/unicase/u8-suffix-context: Likewise.
3391         * modules/unicase/u8-tolower: Likewise.
3392         * modules/unicase/u8-totitle: Likewise.
3393         * modules/unicase/u8-toupper: Likewise.
3394         * modules/unicase/u16-casecmp: Likewise.
3395         * modules/unicase/u16-casecoll: Likewise.
3396         * modules/unicase/u16-casefold: Likewise.
3397         * modules/unicase/u16-casexfrm: Likewise.
3398         * modules/unicase/u16-ct-casefold: Likewise.
3399         * modules/unicase/u16-ct-tolower: Likewise.
3400         * modules/unicase/u16-ct-totitle: Likewise.
3401         * modules/unicase/u16-ct-toupper: Likewise.
3402         * modules/unicase/u16-is-cased: Likewise.
3403         * modules/unicase/u16-is-casefolded: Likewise.
3404         * modules/unicase/u16-is-lowercase: Likewise.
3405         * modules/unicase/u16-is-titlecase: Likewise.
3406         * modules/unicase/u16-is-uppercase: Likewise.
3407         * modules/unicase/u16-prefix-context: Likewise.
3408         * modules/unicase/u16-suffix-context: Likewise.
3409         * modules/unicase/u16-tolower: Likewise.
3410         * modules/unicase/u16-totitle: Likewise.
3411         * modules/unicase/u16-toupper: Likewise.
3412         * modules/unicase/u32-casecmp: Likewise.
3413         * modules/unicase/u32-casecoll: Likewise.
3414         * modules/unicase/u32-casefold: Likewise.
3415         * modules/unicase/u32-casexfrm: Likewise.
3416         * modules/unicase/u32-ct-casefold: Likewise.
3417         * modules/unicase/u32-ct-tolower: Likewise.
3418         * modules/unicase/u32-ct-totitle: Likewise.
3419         * modules/unicase/u32-ct-toupper: Likewise.
3420         * modules/unicase/u32-is-cased: Likewise.
3421         * modules/unicase/u32-is-casefolded: Likewise.
3422         * modules/unicase/u32-is-lowercase: Likewise.
3423         * modules/unicase/u32-is-titlecase: Likewise.
3424         * modules/unicase/u32-is-uppercase: Likewise.
3425         * modules/unicase/u32-prefix-context: Likewise.
3426         * modules/unicase/u32-suffix-context: Likewise.
3427         * modules/unicase/u32-tolower: Likewise.
3428         * modules/unicase/u32-totitle: Likewise.
3429         * modules/unicase/u32-toupper: Likewise.
3430         * modules/unicase/ulc-casecmp: Likewise.
3431         * modules/unicase/ulc-casecoll: Likewise.
3432         * modules/unicase/ulc-casexfrm: Likewise.
3433         * modules/uniconv/u8-conv-from-enc: Likewise.
3434         * modules/uniconv/u8-conv-to-enc: Likewise.
3435         * modules/uniconv/u8-strconv-from-enc: Likewise.
3436         * modules/uniconv/u8-strconv-from-locale: Likewise.
3437         * modules/uniconv/u8-strconv-to-enc: Likewise.
3438         * modules/uniconv/u8-strconv-to-locale: Likewise.
3439         * modules/uniconv/u16-conv-from-enc: Likewise.
3440         * modules/uniconv/u16-conv-to-enc: Likewise.
3441         * modules/uniconv/u16-strconv-from-enc: Likewise.
3442         * modules/uniconv/u16-strconv-from-locale: Likewise.
3443         * modules/uniconv/u16-strconv-to-enc: Likewise.
3444         * modules/uniconv/u16-strconv-to-locale: Likewise.
3445         * modules/uniconv/u32-conv-from-enc: Likewise.
3446         * modules/uniconv/u32-conv-to-enc: Likewise.
3447         * modules/uniconv/u32-strconv-from-enc: Likewise.
3448         * modules/uniconv/u32-strconv-from-locale: Likewise.
3449         * modules/uniconv/u32-strconv-to-enc: Likewise.
3450         * modules/uniconv/u32-strconv-to-locale: Likewise.
3451         * modules/unictype/bidicategory-byname: Likewise.
3452         * modules/unictype/bidicategory-name: Likewise.
3453         * modules/unictype/bidicategory-of: Likewise.
3454         * modules/unictype/bidicategory-test: Likewise.
3455         * modules/unictype/block-list: Likewise.
3456         * modules/unictype/block-test: Likewise.
3457         * modules/unictype/category-C: Likewise.
3458         * modules/unictype/category-Cc: Likewise.
3459         * modules/unictype/category-Cf: Likewise.
3460         * modules/unictype/category-Cn: Likewise.
3461         * modules/unictype/category-Co: Likewise.
3462         * modules/unictype/category-Cs: Likewise.
3463         * modules/unictype/category-L: Likewise.
3464         * modules/unictype/category-Ll: Likewise.
3465         * modules/unictype/category-Lm: Likewise.
3466         * modules/unictype/category-Lo: Likewise.
3467         * modules/unictype/category-Lt: Likewise.
3468         * modules/unictype/category-Lu: Likewise.
3469         * modules/unictype/category-M: Likewise.
3470         * modules/unictype/category-Mc: Likewise.
3471         * modules/unictype/category-Me: Likewise.
3472         * modules/unictype/category-Mn: Likewise.
3473         * modules/unictype/category-N: Likewise.
3474         * modules/unictype/category-Nd: Likewise.
3475         * modules/unictype/category-Nl: Likewise.
3476         * modules/unictype/category-No: Likewise.
3477         * modules/unictype/category-P: Likewise.
3478         * modules/unictype/category-Pc: Likewise.
3479         * modules/unictype/category-Pd: Likewise.
3480         * modules/unictype/category-Pe: Likewise.
3481         * modules/unictype/category-Pf: Likewise.
3482         * modules/unictype/category-Pi: Likewise.
3483         * modules/unictype/category-Po: Likewise.
3484         * modules/unictype/category-Ps: Likewise.
3485         * modules/unictype/category-S: Likewise.
3486         * modules/unictype/category-Sc: Likewise.
3487         * modules/unictype/category-Sk: Likewise.
3488         * modules/unictype/category-Sm: Likewise.
3489         * modules/unictype/category-So: Likewise.
3490         * modules/unictype/category-Z: Likewise.
3491         * modules/unictype/category-Zl: Likewise.
3492         * modules/unictype/category-Zp: Likewise.
3493         * modules/unictype/category-Zs: Likewise.
3494         * modules/unictype/category-and: Likewise.
3495         * modules/unictype/category-and-not: Likewise.
3496         * modules/unictype/category-byname: Likewise.
3497         * modules/unictype/category-name: Likewise.
3498         * modules/unictype/category-none: Likewise.
3499         * modules/unictype/category-of: Likewise.
3500         * modules/unictype/category-or: Likewise.
3501         * modules/unictype/category-test: Likewise.
3502         * modules/unictype/combining-class: Likewise.
3503         * modules/unictype/ctype-alnum: Likewise.
3504         * modules/unictype/ctype-alpha: Likewise.
3505         * modules/unictype/ctype-blank: Likewise.
3506         * modules/unictype/ctype-cntrl: Likewise.
3507         * modules/unictype/ctype-digit: Likewise.
3508         * modules/unictype/ctype-graph: Likewise.
3509         * modules/unictype/ctype-lower: Likewise.
3510         * modules/unictype/ctype-print: Likewise.
3511         * modules/unictype/ctype-punct: Likewise.
3512         * modules/unictype/ctype-space: Likewise.
3513         * modules/unictype/ctype-upper: Likewise.
3514         * modules/unictype/ctype-xdigit: Likewise.
3515         * modules/unictype/decimal-digit: Likewise.
3516         * modules/unictype/digit: Likewise.
3517         * modules/unictype/mirror: Likewise.
3518         * modules/unictype/numeric: Likewise.
3519         * modules/unictype/property-alphabetic: Likewise.
3520         * modules/unictype/property-ascii-hex-digit: Likewise.
3521         * modules/unictype/property-bidi-arabic-digit: Likewise.
3522         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
3523         * modules/unictype/property-bidi-block-separator: Likewise.
3524         * modules/unictype/property-bidi-boundary-neutral: Likewise.
3525         * modules/unictype/property-bidi-common-separator: Likewise.
3526         * modules/unictype/property-bidi-control: Likewise.
3527         * modules/unictype/property-bidi-embedding-or-override: Likewise.
3528         * modules/unictype/property-bidi-eur-num-separator: Likewise.
3529         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
3530         * modules/unictype/property-bidi-european-digit: Likewise.
3531         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
3532         * modules/unictype/property-bidi-left-to-right: Likewise.
3533         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
3534         * modules/unictype/property-bidi-other-neutral: Likewise.
3535         * modules/unictype/property-bidi-pdf: Likewise.
3536         * modules/unictype/property-bidi-segment-separator: Likewise.
3537         * modules/unictype/property-bidi-whitespace: Likewise.
3538         * modules/unictype/property-byname: Likewise.
3539         * modules/unictype/property-combining: Likewise.
3540         * modules/unictype/property-composite: Likewise.
3541         * modules/unictype/property-currency-symbol: Likewise.
3542         * modules/unictype/property-dash: Likewise.
3543         * modules/unictype/property-decimal-digit: Likewise.
3544         * modules/unictype/property-default-ignorable-code-point: Likewise.
3545         * modules/unictype/property-deprecated: Likewise.
3546         * modules/unictype/property-diacritic: Likewise.
3547         * modules/unictype/property-extender: Likewise.
3548         * modules/unictype/property-format-control: Likewise.
3549         * modules/unictype/property-grapheme-base: Likewise.
3550         * modules/unictype/property-grapheme-extend: Likewise.
3551         * modules/unictype/property-grapheme-link: Likewise.
3552         * modules/unictype/property-hex-digit: Likewise.
3553         * modules/unictype/property-hyphen: Likewise.
3554         * modules/unictype/property-id-continue: Likewise.
3555         * modules/unictype/property-id-start: Likewise.
3556         * modules/unictype/property-ideographic: Likewise.
3557         * modules/unictype/property-ids-binary-operator: Likewise.
3558         * modules/unictype/property-ids-trinary-operator: Likewise.
3559         * modules/unictype/property-ignorable-control: Likewise.
3560         * modules/unictype/property-iso-control: Likewise.
3561         * modules/unictype/property-join-control: Likewise.
3562         * modules/unictype/property-left-of-pair: Likewise.
3563         * modules/unictype/property-line-separator: Likewise.
3564         * modules/unictype/property-logical-order-exception: Likewise.
3565         * modules/unictype/property-lowercase: Likewise.
3566         * modules/unictype/property-math: Likewise.
3567         * modules/unictype/property-non-break: Likewise.
3568         * modules/unictype/property-not-a-character: Likewise.
3569         * modules/unictype/property-numeric: Likewise.
3570         * modules/unictype/property-other-alphabetic: Likewise.
3571         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
3572         * modules/unictype/property-other-grapheme-extend: Likewise.
3573         * modules/unictype/property-other-id-continue: Likewise.
3574         * modules/unictype/property-other-id-start: Likewise.
3575         * modules/unictype/property-other-lowercase: Likewise.
3576         * modules/unictype/property-other-math: Likewise.
3577         * modules/unictype/property-other-uppercase: Likewise.
3578         * modules/unictype/property-paired-punctuation: Likewise.
3579         * modules/unictype/property-paragraph-separator: Likewise.
3580         * modules/unictype/property-pattern-syntax: Likewise.
3581         * modules/unictype/property-pattern-white-space: Likewise.
3582         * modules/unictype/property-private-use: Likewise.
3583         * modules/unictype/property-punctuation: Likewise.
3584         * modules/unictype/property-quotation-mark: Likewise.
3585         * modules/unictype/property-radical: Likewise.
3586         * modules/unictype/property-sentence-terminal: Likewise.
3587         * modules/unictype/property-soft-dotted: Likewise.
3588         * modules/unictype/property-space: Likewise.
3589         * modules/unictype/property-terminal-punctuation: Likewise.
3590         * modules/unictype/property-test: Likewise.
3591         * modules/unictype/property-titlecase: Likewise.
3592         * modules/unictype/property-unassigned-code-value: Likewise.
3593         * modules/unictype/property-unified-ideograph: Likewise.
3594         * modules/unictype/property-uppercase: Likewise.
3595         * modules/unictype/property-variation-selector: Likewise.
3596         * modules/unictype/property-white-space: Likewise.
3597         * modules/unictype/property-xid-continue: Likewise.
3598         * modules/unictype/property-xid-start: Likewise.
3599         * modules/unictype/property-zero-width: Likewise.
3600         * modules/unictype/scripts: Likewise.
3601         * modules/unictype/syntax-c-ident: Likewise.
3602         * modules/unictype/syntax-c-whitespace: Likewise.
3603         * modules/unictype/syntax-java-ident: Likewise.
3604         * modules/unictype/syntax-java-whitespace: Likewise.
3605         * modules/unilbrk/u8-possible-linebreaks: Likewise.
3606         * modules/unilbrk/u8-width-linebreaks: Likewise.
3607         * modules/unilbrk/u16-possible-linebreaks: Likewise.
3608         * modules/unilbrk/u16-width-linebreaks: Likewise.
3609         * modules/unilbrk/u32-possible-linebreaks: Likewise.
3610         * modules/unilbrk/u32-width-linebreaks: Likewise.
3611         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
3612         * modules/unilbrk/ulc-width-linebreaks: Likewise.
3613         * modules/uniname/uniname: Likewise.
3614         * modules/uninorm/canonical-decomposition: Likewise.
3615         * modules/uninorm/composition: Likewise.
3616         * modules/uninorm/decomposing-form: Likewise.
3617         * modules/uninorm/decomposition: Likewise.
3618         * modules/uninorm/filter: Likewise.
3619         * modules/uninorm/nfc: Likewise.
3620         * modules/uninorm/nfd: Likewise.
3621         * modules/uninorm/nfkc: Likewise.
3622         * modules/uninorm/nfkd: Likewise.
3623         * modules/uninorm/u8-normalize: Likewise.
3624         * modules/uninorm/u8-normcmp: Likewise.
3625         * modules/uninorm/u8-normcoll: Likewise.
3626         * modules/uninorm/u8-normxfrm: Likewise.
3627         * modules/uninorm/u16-normalize: Likewise.
3628         * modules/uninorm/u16-normcmp: Likewise.
3629         * modules/uninorm/u16-normcoll: Likewise.
3630         * modules/uninorm/u16-normxfrm: Likewise.
3631         * modules/uninorm/u32-normalize: Likewise.
3632         * modules/uninorm/u32-normcmp: Likewise.
3633         * modules/uninorm/u32-normcoll: Likewise.
3634         * modules/uninorm/u32-normxfrm: Likewise.
3635         * modules/unistdio/u8-asnprintf: Likewise.
3636         * modules/unistdio/u8-asprintf: Likewise.
3637         * modules/unistdio/u8-snprintf: Likewise.
3638         * modules/unistdio/u8-sprintf: Likewise.
3639         * modules/unistdio/u8-u8-asnprintf: Likewise.
3640         * modules/unistdio/u8-u8-asprintf: Likewise.
3641         * modules/unistdio/u8-u8-snprintf: Likewise.
3642         * modules/unistdio/u8-u8-sprintf: Likewise.
3643         * modules/unistdio/u8-u8-vasnprintf: Likewise.
3644         * modules/unistdio/u8-u8-vasprintf: Likewise.
3645         * modules/unistdio/u8-u8-vsnprintf: Likewise.
3646         * modules/unistdio/u8-u8-vsprintf: Likewise.
3647         * modules/unistdio/u8-vasnprintf: Likewise.
3648         * modules/unistdio/u8-vasprintf: Likewise.
3649         * modules/unistdio/u8-vsnprintf: Likewise.
3650         * modules/unistdio/u8-vsprintf: Likewise.
3651         * modules/unistdio/u16-asnprintf: Likewise.
3652         * modules/unistdio/u16-asprintf: Likewise.
3653         * modules/unistdio/u16-snprintf: Likewise.
3654         * modules/unistdio/u16-sprintf: Likewise.
3655         * modules/unistdio/u16-u16-asnprintf: Likewise.
3656         * modules/unistdio/u16-u16-asprintf: Likewise.
3657         * modules/unistdio/u16-u16-snprintf: Likewise.
3658         * modules/unistdio/u16-u16-sprintf: Likewise.
3659         * modules/unistdio/u16-u16-vasnprintf: Likewise.
3660         * modules/unistdio/u16-u16-vasprintf: Likewise.
3661         * modules/unistdio/u16-u16-vsnprintf: Likewise.
3662         * modules/unistdio/u16-u16-vsprintf: Likewise.
3663         * modules/unistdio/u16-vasnprintf: Likewise.
3664         * modules/unistdio/u16-vasprintf: Likewise.
3665         * modules/unistdio/u16-vsnprintf: Likewise.
3666         * modules/unistdio/u16-vsprintf: Likewise.
3667         * modules/unistdio/u32-asnprintf: Likewise.
3668         * modules/unistdio/u32-asprintf: Likewise.
3669         * modules/unistdio/u32-snprintf: Likewise.
3670         * modules/unistdio/u32-sprintf: Likewise.
3671         * modules/unistdio/u32-u32-asnprintf: Likewise.
3672         * modules/unistdio/u32-u32-asprintf: Likewise.
3673         * modules/unistdio/u32-u32-snprintf: Likewise.
3674         * modules/unistdio/u32-u32-sprintf: Likewise.
3675         * modules/unistdio/u32-u32-vasnprintf: Likewise.
3676         * modules/unistdio/u32-u32-vasprintf: Likewise.
3677         * modules/unistdio/u32-u32-vsnprintf: Likewise.
3678         * modules/unistdio/u32-u32-vsprintf: Likewise.
3679         * modules/unistdio/u32-vasnprintf: Likewise.
3680         * modules/unistdio/u32-vasprintf: Likewise.
3681         * modules/unistdio/u32-vsnprintf: Likewise.
3682         * modules/unistdio/u32-vsprintf: Likewise.
3683         * modules/unistdio/ulc-asnprintf: Likewise.
3684         * modules/unistdio/ulc-asprintf: Likewise.
3685         * modules/unistdio/ulc-fprintf: Likewise.
3686         * modules/unistdio/ulc-snprintf: Likewise.
3687         * modules/unistdio/ulc-sprintf: Likewise.
3688         * modules/unistdio/ulc-vasnprintf: Likewise.
3689         * modules/unistdio/ulc-vasprintf: Likewise.
3690         * modules/unistdio/ulc-vfprintf: Likewise.
3691         * modules/unistdio/ulc-vsnprintf: Likewise.
3692         * modules/unistdio/ulc-vsprintf: Likewise.
3693         * modules/unistr/u8-check: Likewise.
3694         * modules/unistr/u8-chr: Likewise.
3695         * modules/unistr/u8-cmp: Likewise.
3696         * modules/unistr/u8-cmp2: Likewise.
3697         * modules/unistr/u8-cpy: Likewise.
3698         * modules/unistr/u8-cpy-alloc: Likewise.
3699         * modules/unistr/u8-endswith: Likewise.
3700         * modules/unistr/u8-mblen: Likewise.
3701         * modules/unistr/u8-mbsnlen: Likewise.
3702         * modules/unistr/u8-mbtouc: Likewise.
3703         * modules/unistr/u8-mbtouc-unsafe: Likewise.
3704         * modules/unistr/u8-mbtoucr: Likewise.
3705         * modules/unistr/u8-move: Likewise.
3706         * modules/unistr/u8-next: Likewise.
3707         * modules/unistr/u8-prev: Likewise.
3708         * modules/unistr/u8-set: Likewise.
3709         * modules/unistr/u8-startswith: Likewise.
3710         * modules/unistr/u8-stpcpy: Likewise.
3711         * modules/unistr/u8-stpncpy: Likewise.
3712         * modules/unistr/u8-strcat: Likewise.
3713         * modules/unistr/u8-strchr: Likewise.
3714         * modules/unistr/u8-strcmp: Likewise.
3715         * modules/unistr/u8-strcoll: Likewise.
3716         * modules/unistr/u8-strcpy: Likewise.
3717         * modules/unistr/u8-strcspn: Likewise.
3718         * modules/unistr/u8-strdup: Likewise.
3719         * modules/unistr/u8-strlen: Likewise.
3720         * modules/unistr/u8-strmblen: Likewise.
3721         * modules/unistr/u8-strmbtouc: Likewise.
3722         * modules/unistr/u8-strncat: Likewise.
3723         * modules/unistr/u8-strncmp: Likewise.
3724         * modules/unistr/u8-strncpy: Likewise.
3725         * modules/unistr/u8-strnlen: Likewise.
3726         * modules/unistr/u8-strpbrk: Likewise.
3727         * modules/unistr/u8-strrchr: Likewise.
3728         * modules/unistr/u8-strspn: Likewise.
3729         * modules/unistr/u8-strstr: Likewise.
3730         * modules/unistr/u8-strtok: Likewise.
3731         * modules/unistr/u8-to-u16: Likewise.
3732         * modules/unistr/u8-to-u32: Likewise.
3733         * modules/unistr/u8-uctomb: Likewise.
3734         * modules/unistr/u16-check: Likewise.
3735         * modules/unistr/u16-chr: Likewise.
3736         * modules/unistr/u16-cmp: Likewise.
3737         * modules/unistr/u16-cmp2: Likewise.
3738         * modules/unistr/u16-cpy: Likewise.
3739         * modules/unistr/u16-cpy-alloc: Likewise.
3740         * modules/unistr/u16-endswith: Likewise.
3741         * modules/unistr/u16-mblen: Likewise.
3742         * modules/unistr/u16-mbsnlen: Likewise.
3743         * modules/unistr/u16-mbtouc: Likewise.
3744         * modules/unistr/u16-mbtouc-unsafe: Likewise.
3745         * modules/unistr/u16-mbtoucr: Likewise.
3746         * modules/unistr/u16-move: Likewise.
3747         * modules/unistr/u16-next: Likewise.
3748         * modules/unistr/u16-prev: Likewise.
3749         * modules/unistr/u16-set: Likewise.
3750         * modules/unistr/u16-startswith: Likewise.
3751         * modules/unistr/u16-stpcpy: Likewise.
3752         * modules/unistr/u16-stpncpy: Likewise.
3753         * modules/unistr/u16-strcat: Likewise.
3754         * modules/unistr/u16-strchr: Likewise.
3755         * modules/unistr/u16-strcmp: Likewise.
3756         * modules/unistr/u16-strcoll: Likewise.
3757         * modules/unistr/u16-strcpy: Likewise.
3758         * modules/unistr/u16-strcspn: Likewise.
3759         * modules/unistr/u16-strdup: Likewise.
3760         * modules/unistr/u16-strlen: Likewise.
3761         * modules/unistr/u16-strmblen: Likewise.
3762         * modules/unistr/u16-strmbtouc: Likewise.
3763         * modules/unistr/u16-strncat: Likewise.
3764         * modules/unistr/u16-strncmp: Likewise.
3765         * modules/unistr/u16-strncpy: Likewise.
3766         * modules/unistr/u16-strnlen: Likewise.
3767         * modules/unistr/u16-strpbrk: Likewise.
3768         * modules/unistr/u16-strrchr: Likewise.
3769         * modules/unistr/u16-strspn: Likewise.
3770         * modules/unistr/u16-strstr: Likewise.
3771         * modules/unistr/u16-strtok: Likewise.
3772         * modules/unistr/u16-to-u32: Likewise.
3773         * modules/unistr/u16-to-u8: Likewise.
3774         * modules/unistr/u16-uctomb: Likewise.
3775         * modules/unistr/u32-check: Likewise.
3776         * modules/unistr/u32-chr: Likewise.
3777         * modules/unistr/u32-cmp: Likewise.
3778         * modules/unistr/u32-cmp2: Likewise.
3779         * modules/unistr/u32-cpy: Likewise.
3780         * modules/unistr/u32-cpy-alloc: Likewise.
3781         * modules/unistr/u32-endswith: Likewise.
3782         * modules/unistr/u32-mblen: Likewise.
3783         * modules/unistr/u32-mbsnlen: Likewise.
3784         * modules/unistr/u32-mbtouc: Likewise.
3785         * modules/unistr/u32-mbtouc-unsafe: Likewise.
3786         * modules/unistr/u32-mbtoucr: Likewise.
3787         * modules/unistr/u32-move: Likewise.
3788         * modules/unistr/u32-next: Likewise.
3789         * modules/unistr/u32-prev: Likewise.
3790         * modules/unistr/u32-set: Likewise.
3791         * modules/unistr/u32-startswith: Likewise.
3792         * modules/unistr/u32-stpcpy: Likewise.
3793         * modules/unistr/u32-stpncpy: Likewise.
3794         * modules/unistr/u32-strcat: Likewise.
3795         * modules/unistr/u32-strchr: Likewise.
3796         * modules/unistr/u32-strcmp: Likewise.
3797         * modules/unistr/u32-strcoll: Likewise.
3798         * modules/unistr/u32-strcpy: Likewise.
3799         * modules/unistr/u32-strcspn: Likewise.
3800         * modules/unistr/u32-strdup: Likewise.
3801         * modules/unistr/u32-strlen: Likewise.
3802         * modules/unistr/u32-strmblen: Likewise.
3803         * modules/unistr/u32-strmbtouc: Likewise.
3804         * modules/unistr/u32-strncat: Likewise.
3805         * modules/unistr/u32-strncmp: Likewise.
3806         * modules/unistr/u32-strncpy: Likewise.
3807         * modules/unistr/u32-strnlen: Likewise.
3808         * modules/unistr/u32-strpbrk: Likewise.
3809         * modules/unistr/u32-strrchr: Likewise.
3810         * modules/unistr/u32-strspn: Likewise.
3811         * modules/unistr/u32-strstr: Likewise.
3812         * modules/unistr/u32-strtok: Likewise.
3813         * modules/unistr/u32-to-u16: Likewise.
3814         * modules/unistr/u32-to-u8: Likewise.
3815         * modules/unistr/u32-uctomb: Likewise.
3816         * modules/uniwbrk/u8-wordbreaks: Likewise.
3817         * modules/uniwbrk/u16-wordbreaks: Likewise.
3818         * modules/uniwbrk/u32-wordbreaks: Likewise.
3819         * modules/uniwbrk/ulc-wordbreaks: Likewise.
3820         * modules/uniwbrk/wordbreak-property: Likewise.
3821         * modules/uniwidth/u8-strwidth: Likewise.
3822         * modules/uniwidth/u8-width: Likewise.
3823         * modules/uniwidth/u16-strwidth: Likewise.
3824         * modules/uniwidth/u16-width: Likewise.
3825         * modules/uniwidth/u32-strwidth: Likewise.
3826         * modules/uniwidth/u32-width: Likewise.
3827         * modules/uniwidth/width: Likewise.
3828         * modules/unicase/cased-tests (Makefile.am): Link all test programs
3829         with $(LIBUNISTRING).
3830         * modules/unicase/ignorable-tests: Likewise.
3831         * modules/unicase/locale-language-tests: Likewise.
3832         * modules/unicase/tolower-tests: Likewise.
3833         * modules/unicase/totitle-tests: Likewise.
3834         * modules/unicase/toupper-tests: Likewise.
3835         * modules/unicase/u8-casecmp-tests: Likewise.
3836         * modules/unicase/u8-casecoll-tests: Likewise.
3837         * modules/unicase/u8-casefold-tests: Likewise.
3838         * modules/unicase/u8-is-cased-tests: Likewise.
3839         * modules/unicase/u8-is-casefolded-tests: Likewise.
3840         * modules/unicase/u8-is-lowercase-tests: Likewise.
3841         * modules/unicase/u8-is-titlecase-tests: Likewise.
3842         * modules/unicase/u8-is-uppercase-tests: Likewise.
3843         * modules/unicase/u8-tolower-tests: Likewise.
3844         * modules/unicase/u8-totitle-tests: Likewise.
3845         * modules/unicase/u8-toupper-tests: Likewise.
3846         * modules/unicase/u16-casecmp-tests: Likewise.
3847         * modules/unicase/u16-casecoll-tests: Likewise.
3848         * modules/unicase/u16-casefold-tests: Likewise.
3849         * modules/unicase/u16-is-cased-tests: Likewise.
3850         * modules/unicase/u16-is-casefolded-tests: Likewise.
3851         * modules/unicase/u16-is-lowercase-tests: Likewise.
3852         * modules/unicase/u16-is-titlecase-tests: Likewise.
3853         * modules/unicase/u16-is-uppercase-tests: Likewise.
3854         * modules/unicase/u16-tolower-tests: Likewise.
3855         * modules/unicase/u16-totitle-tests: Likewise.
3856         * modules/unicase/u16-toupper-tests: Likewise.
3857         * modules/unicase/u32-casecmp-tests: Likewise.
3858         * modules/unicase/u32-casecoll-tests: Likewise.
3859         * modules/unicase/u32-casefold-tests: Likewise.
3860         * modules/unicase/u32-is-cased-tests: Likewise.
3861         * modules/unicase/u32-is-casefolded-tests: Likewise.
3862         * modules/unicase/u32-is-lowercase-tests: Likewise.
3863         * modules/unicase/u32-is-titlecase-tests: Likewise.
3864         * modules/unicase/u32-is-uppercase-tests: Likewise.
3865         * modules/unicase/u32-tolower-tests: Likewise.
3866         * modules/unicase/u32-totitle-tests: Likewise.
3867         * modules/unicase/u32-toupper-tests: Likewise.
3868         * modules/unicase/ulc-casecmp-tests: Likewise.
3869         * modules/unicase/ulc-casecoll-tests: Likewise.
3870         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
3871         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
3872         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
3873         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
3874         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
3875         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
3876         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
3877         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
3878         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
3879         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
3880         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
3881         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
3882         * modules/unictype/bidicategory-byname-tests: Likewise.
3883         * modules/unictype/bidicategory-name-tests: Likewise.
3884         * modules/unictype/bidicategory-of-tests: Likewise.
3885         * modules/unictype/bidicategory-test-tests: Likewise.
3886         * modules/unictype/block-list-tests: Likewise.
3887         * modules/unictype/block-of-tests: Likewise.
3888         * modules/unictype/block-test-tests: Likewise.
3889         * modules/unictype/category-C-tests: Likewise.
3890         * modules/unictype/category-Cc-tests: Likewise.
3891         * modules/unictype/category-Cf-tests: Likewise.
3892         * modules/unictype/category-Cn-tests: Likewise.
3893         * modules/unictype/category-Co-tests: Likewise.
3894         * modules/unictype/category-Cs-tests: Likewise.
3895         * modules/unictype/category-L-tests: Likewise.
3896         * modules/unictype/category-Ll-tests: Likewise.
3897         * modules/unictype/category-Lm-tests: Likewise.
3898         * modules/unictype/category-Lo-tests: Likewise.
3899         * modules/unictype/category-Lt-tests: Likewise.
3900         * modules/unictype/category-Lu-tests: Likewise.
3901         * modules/unictype/category-M-tests: Likewise.
3902         * modules/unictype/category-Mc-tests: Likewise.
3903         * modules/unictype/category-Me-tests: Likewise.
3904         * modules/unictype/category-Mn-tests: Likewise.
3905         * modules/unictype/category-N-tests: Likewise.
3906         * modules/unictype/category-Nd-tests: Likewise.
3907         * modules/unictype/category-Nl-tests: Likewise.
3908         * modules/unictype/category-No-tests: Likewise.
3909         * modules/unictype/category-P-tests: Likewise.
3910         * modules/unictype/category-Pc-tests: Likewise.
3911         * modules/unictype/category-Pd-tests: Likewise.
3912         * modules/unictype/category-Pe-tests: Likewise.
3913         * modules/unictype/category-Pf-tests: Likewise.
3914         * modules/unictype/category-Pi-tests: Likewise.
3915         * modules/unictype/category-Po-tests: Likewise.
3916         * modules/unictype/category-Ps-tests: Likewise.
3917         * modules/unictype/category-S-tests: Likewise.
3918         * modules/unictype/category-Sc-tests: Likewise.
3919         * modules/unictype/category-Sk-tests: Likewise.
3920         * modules/unictype/category-Sm-tests: Likewise.
3921         * modules/unictype/category-So-tests: Likewise.
3922         * modules/unictype/category-Z-tests: Likewise.
3923         * modules/unictype/category-Zl-tests: Likewise.
3924         * modules/unictype/category-Zp-tests: Likewise.
3925         * modules/unictype/category-Zs-tests: Likewise.
3926         * modules/unictype/category-and-not-tests: Likewise.
3927         * modules/unictype/category-and-tests: Likewise.
3928         * modules/unictype/category-byname-tests: Likewise.
3929         * modules/unictype/category-name-tests: Likewise.
3930         * modules/unictype/category-none-tests: Likewise.
3931         * modules/unictype/category-of-tests: Likewise.
3932         * modules/unictype/category-or-tests: Likewise.
3933         * modules/unictype/category-test-withtable-tests: Likewise.
3934         * modules/unictype/combining-class-tests: Likewise.
3935         * modules/unictype/ctype-alnum-tests: Likewise.
3936         * modules/unictype/ctype-alpha-tests: Likewise.
3937         * modules/unictype/ctype-blank-tests: Likewise.
3938         * modules/unictype/ctype-cntrl-tests: Likewise.
3939         * modules/unictype/ctype-digit-tests: Likewise.
3940         * modules/unictype/ctype-graph-tests: Likewise.
3941         * modules/unictype/ctype-lower-tests: Likewise.
3942         * modules/unictype/ctype-print-tests: Likewise.
3943         * modules/unictype/ctype-punct-tests: Likewise.
3944         * modules/unictype/ctype-space-tests: Likewise.
3945         * modules/unictype/ctype-upper-tests: Likewise.
3946         * modules/unictype/ctype-xdigit-tests: Likewise.
3947         * modules/unictype/decimal-digit-tests: Likewise.
3948         * modules/unictype/digit-tests: Likewise.
3949         * modules/unictype/mirror-tests: Likewise.
3950         * modules/unictype/numeric-tests: Likewise.
3951         * modules/unictype/property-alphabetic-tests: Likewise.
3952         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
3953         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
3954         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
3955         * modules/unictype/property-bidi-block-separator-tests: Likewise.
3956         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
3957         * modules/unictype/property-bidi-common-separator-tests: Likewise.
3958         * modules/unictype/property-bidi-control-tests: Likewise.
3959         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
3960         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
3961         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
3962         * modules/unictype/property-bidi-european-digit-tests: Likewise.
3963         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
3964         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
3965         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
3966         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
3967         * modules/unictype/property-bidi-pdf-tests: Likewise.
3968         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
3969         * modules/unictype/property-bidi-whitespace-tests: Likewise.
3970         * modules/unictype/property-byname-tests: Likewise.
3971         * modules/unictype/property-combining-tests: Likewise.
3972         * modules/unictype/property-composite-tests: Likewise.
3973         * modules/unictype/property-currency-symbol-tests: Likewise.
3974         * modules/unictype/property-dash-tests: Likewise.
3975         * modules/unictype/property-decimal-digit-tests: Likewise.
3976         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
3977         * modules/unictype/property-deprecated-tests: Likewise.
3978         * modules/unictype/property-diacritic-tests: Likewise.
3979         * modules/unictype/property-extender-tests: Likewise.
3980         * modules/unictype/property-format-control-tests: Likewise.
3981         * modules/unictype/property-grapheme-base-tests: Likewise.
3982         * modules/unictype/property-grapheme-extend-tests: Likewise.
3983         * modules/unictype/property-grapheme-link-tests: Likewise.
3984         * modules/unictype/property-hex-digit-tests: Likewise.
3985         * modules/unictype/property-hyphen-tests: Likewise.
3986         * modules/unictype/property-id-continue-tests: Likewise.
3987         * modules/unictype/property-id-start-tests: Likewise.
3988         * modules/unictype/property-ideographic-tests: Likewise.
3989         * modules/unictype/property-ids-binary-operator-tests: Likewise.
3990         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
3991         * modules/unictype/property-ignorable-control-tests: Likewise.
3992         * modules/unictype/property-iso-control-tests: Likewise.
3993         * modules/unictype/property-join-control-tests: Likewise.
3994         * modules/unictype/property-left-of-pair-tests: Likewise.
3995         * modules/unictype/property-line-separator-tests: Likewise.
3996         * modules/unictype/property-logical-order-exception-tests: Likewise.
3997         * modules/unictype/property-lowercase-tests: Likewise.
3998         * modules/unictype/property-math-tests: Likewise.
3999         * modules/unictype/property-non-break-tests: Likewise.
4000         * modules/unictype/property-not-a-character-tests: Likewise.
4001         * modules/unictype/property-numeric-tests: Likewise.
4002         * modules/unictype/property-other-alphabetic-tests: Likewise.
4003         * modules/unictype/property-other-default-ignorable-code-point-tests:
4004         Likewise.
4005         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
4006         * modules/unictype/property-other-id-continue-tests: Likewise.
4007         * modules/unictype/property-other-id-start-tests: Likewise.
4008         * modules/unictype/property-other-lowercase-tests: Likewise.
4009         * modules/unictype/property-other-math-tests: Likewise.
4010         * modules/unictype/property-other-uppercase-tests: Likewise.
4011         * modules/unictype/property-paired-punctuation-tests: Likewise.
4012         * modules/unictype/property-paragraph-separator-tests: Likewise.
4013         * modules/unictype/property-pattern-syntax-tests: Likewise.
4014         * modules/unictype/property-pattern-white-space-tests: Likewise.
4015         * modules/unictype/property-private-use-tests: Likewise.
4016         * modules/unictype/property-punctuation-tests: Likewise.
4017         * modules/unictype/property-quotation-mark-tests: Likewise.
4018         * modules/unictype/property-radical-tests: Likewise.
4019         * modules/unictype/property-sentence-terminal-tests: Likewise.
4020         * modules/unictype/property-soft-dotted-tests: Likewise.
4021         * modules/unictype/property-space-tests: Likewise.
4022         * modules/unictype/property-terminal-punctuation-tests: Likewise.
4023         * modules/unictype/property-test-tests: Likewise.
4024         * modules/unictype/property-titlecase-tests: Likewise.
4025         * modules/unictype/property-unassigned-code-value-tests: Likewise.
4026         * modules/unictype/property-unified-ideograph-tests: Likewise.
4027         * modules/unictype/property-uppercase-tests: Likewise.
4028         * modules/unictype/property-variation-selector-tests: Likewise.
4029         * modules/unictype/property-white-space-tests: Likewise.
4030         * modules/unictype/property-xid-continue-tests: Likewise.
4031         * modules/unictype/property-xid-start-tests: Likewise.
4032         * modules/unictype/property-zero-width-tests: Likewise.
4033         * modules/unictype/scripts-tests: Likewise.
4034         * modules/unictype/syntax-c-ident-tests: Likewise.
4035         * modules/unictype/syntax-c-whitespace-tests: Likewise.
4036         * modules/unictype/syntax-java-ident-tests: Likewise.
4037         * modules/unictype/syntax-java-whitespace-tests: Likewise.
4038         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
4039         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
4040         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
4041         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
4042         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
4043         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
4044         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
4045         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
4046         * modules/uniname/uniname-tests: Likewise.
4047         * modules/uninorm/canonical-decomposition-tests: Likewise.
4048         * modules/uninorm/compat-decomposition-tests: Likewise.
4049         * modules/uninorm/composition-tests: Likewise.
4050         * modules/uninorm/decomposing-form-tests: Likewise.
4051         * modules/uninorm/decomposition-tests: Likewise.
4052         * modules/uninorm/filter-tests: Likewise.
4053         * modules/uninorm/nfc-tests: Likewise.
4054         * modules/uninorm/nfd-tests: Likewise.
4055         * modules/uninorm/nfkc-tests: Likewise.
4056         * modules/uninorm/nfkd-tests: Likewise.
4057         * modules/uninorm/u8-normcmp-tests: Likewise.
4058         * modules/uninorm/u8-normcoll-tests: Likewise.
4059         * modules/uninorm/u16-normcmp-tests: Likewise.
4060         * modules/uninorm/u16-normcoll-tests: Likewise.
4061         * modules/uninorm/u32-normcmp-tests: Likewise.
4062         * modules/uninorm/u32-normcoll-tests: Likewise.
4063         * modules/unistdio/u8-asnprintf-tests: Likewise.
4064         * modules/unistdio/u8-vasnprintf-tests: Likewise.
4065         * modules/unistdio/u8-vasprintf-tests: Likewise.
4066         * modules/unistdio/u8-vsnprintf-tests: Likewise.
4067         * modules/unistdio/u8-vsprintf-tests: Likewise.
4068         * modules/unistdio/u16-asnprintf-tests: Likewise.
4069         * modules/unistdio/u16-vasnprintf-tests: Likewise.
4070         * modules/unistdio/u16-vasprintf-tests: Likewise.
4071         * modules/unistdio/u16-vsnprintf-tests: Likewise.
4072         * modules/unistdio/u16-vsprintf-tests: Likewise.
4073         * modules/unistdio/u32-asnprintf-tests: Likewise.
4074         * modules/unistdio/u32-vasnprintf-tests: Likewise.
4075         * modules/unistdio/u32-vasprintf-tests: Likewise.
4076         * modules/unistdio/u32-vsnprintf-tests: Likewise.
4077         * modules/unistdio/u32-vsprintf-tests: Likewise.
4078         * modules/unistdio/ulc-asnprintf-tests: Likewise.
4079         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
4080         * modules/unistdio/ulc-vasprintf-tests: Likewise.
4081         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
4082         * modules/unistdio/ulc-vsprintf-tests: Likewise.
4083         * modules/unistr/u8-check-tests: Likewise.
4084         * modules/unistr/u8-chr-tests: Likewise.
4085         * modules/unistr/u8-cmp-tests: Likewise.
4086         * modules/unistr/u8-cmp2-tests: Likewise.
4087         * modules/unistr/u8-cpy-alloc-tests: Likewise.
4088         * modules/unistr/u8-cpy-tests: Likewise.
4089         * modules/unistr/u8-mblen-tests: Likewise.
4090         * modules/unistr/u8-mbsnlen-tests: Likewise.
4091         * modules/unistr/u8-mbtouc-tests: Likewise.
4092         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
4093         * modules/unistr/u8-mbtoucr-tests: Likewise.
4094         * modules/unistr/u8-move-tests: Likewise.
4095         * modules/unistr/u8-next-tests: Likewise.
4096         * modules/unistr/u8-prev-tests: Likewise.
4097         * modules/unistr/u8-set-tests: Likewise.
4098         * modules/unistr/u8-stpcpy-tests: Likewise.
4099         * modules/unistr/u8-stpncpy-tests: Likewise.
4100         * modules/unistr/u8-strcat-tests: Likewise.
4101         * modules/unistr/u8-strcmp-tests: Likewise.
4102         * modules/unistr/u8-strcoll-tests: Likewise.
4103         * modules/unistr/u8-strcpy-tests: Likewise.
4104         * modules/unistr/u8-strdup-tests: Likewise.
4105         * modules/unistr/u8-strlen-tests: Likewise.
4106         * modules/unistr/u8-strmblen-tests: Likewise.
4107         * modules/unistr/u8-strmbtouc-tests: Likewise.
4108         * modules/unistr/u8-strncat-tests: Likewise.
4109         * modules/unistr/u8-strncmp-tests: Likewise.
4110         * modules/unistr/u8-strncpy-tests: Likewise.
4111         * modules/unistr/u8-strnlen-tests: Likewise.
4112         * modules/unistr/u8-to-u16-tests: Likewise.
4113         * modules/unistr/u8-to-u32-tests: Likewise.
4114         * modules/unistr/u8-uctomb-tests: Likewise.
4115         * modules/unistr/u16-check-tests: Likewise.
4116         * modules/unistr/u16-chr-tests: Likewise.
4117         * modules/unistr/u16-cmp-tests: Likewise.
4118         * modules/unistr/u16-cmp2-tests: Likewise.
4119         * modules/unistr/u16-cpy-alloc-tests: Likewise.
4120         * modules/unistr/u16-cpy-tests: Likewise.
4121         * modules/unistr/u16-mblen-tests: Likewise.
4122         * modules/unistr/u16-mbsnlen-tests: Likewise.
4123         * modules/unistr/u16-mbtouc-tests: Likewise.
4124         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
4125         * modules/unistr/u16-mbtoucr-tests: Likewise.
4126         * modules/unistr/u16-move-tests: Likewise.
4127         * modules/unistr/u16-next-tests: Likewise.
4128         * modules/unistr/u16-prev-tests: Likewise.
4129         * modules/unistr/u16-set-tests: Likewise.
4130         * modules/unistr/u16-stpcpy-tests: Likewise.
4131         * modules/unistr/u16-stpncpy-tests: Likewise.
4132         * modules/unistr/u16-strcat-tests: Likewise.
4133         * modules/unistr/u16-strcmp-tests: Likewise.
4134         * modules/unistr/u16-strcoll-tests: Likewise.
4135         * modules/unistr/u16-strcpy-tests: Likewise.
4136         * modules/unistr/u16-strdup-tests: Likewise.
4137         * modules/unistr/u16-strlen-tests: Likewise.
4138         * modules/unistr/u16-strmblen-tests: Likewise.
4139         * modules/unistr/u16-strmbtouc-tests: Likewise.
4140         * modules/unistr/u16-strncat-tests: Likewise.
4141         * modules/unistr/u16-strncmp-tests: Likewise.
4142         * modules/unistr/u16-strncpy-tests: Likewise.
4143         * modules/unistr/u16-strnlen-tests: Likewise.
4144         * modules/unistr/u16-to-u32-tests: Likewise.
4145         * modules/unistr/u16-to-u8-tests: Likewise.
4146         * modules/unistr/u16-uctomb-tests: Likewise.
4147         * modules/unistr/u32-check-tests: Likewise.
4148         * modules/unistr/u32-chr-tests: Likewise.
4149         * modules/unistr/u32-cmp-tests: Likewise.
4150         * modules/unistr/u32-cmp2-tests: Likewise.
4151         * modules/unistr/u32-cpy-alloc-tests: Likewise.
4152         * modules/unistr/u32-cpy-tests: Likewise.
4153         * modules/unistr/u32-mblen-tests: Likewise.
4154         * modules/unistr/u32-mbsnlen-tests: Likewise.
4155         * modules/unistr/u32-mbtouc-tests: Likewise.
4156         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
4157         * modules/unistr/u32-mbtoucr-tests: Likewise.
4158         * modules/unistr/u32-move-tests: Likewise.
4159         * modules/unistr/u32-next-tests: Likewise.
4160         * modules/unistr/u32-prev-tests: Likewise.
4161         * modules/unistr/u32-set-tests: Likewise.
4162         * modules/unistr/u32-stpcpy-tests: Likewise.
4163         * modules/unistr/u32-stpncpy-tests: Likewise.
4164         * modules/unistr/u32-strcat-tests: Likewise.
4165         * modules/unistr/u32-strcmp-tests: Likewise.
4166         * modules/unistr/u32-strcoll-tests: Likewise.
4167         * modules/unistr/u32-strcpy-tests: Likewise.
4168         * modules/unistr/u32-strdup-tests: Likewise.
4169         * modules/unistr/u32-strlen-tests: Likewise.
4170         * modules/unistr/u32-strmblen-tests: Likewise.
4171         * modules/unistr/u32-strmbtouc-tests: Likewise.
4172         * modules/unistr/u32-strncat-tests: Likewise.
4173         * modules/unistr/u32-strncmp-tests: Likewise.
4174         * modules/unistr/u32-strncpy-tests: Likewise.
4175         * modules/unistr/u32-strnlen-tests: Likewise.
4176         * modules/unistr/u32-to-u16-tests: Likewise.
4177         * modules/unistr/u32-to-u8-tests: Likewise.
4178         * modules/unistr/u32-uctomb-tests: Likewise.
4179         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
4180         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
4181         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
4182         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
4183         * modules/uniwidth/u8-strwidth-tests: Likewise.
4184         * modules/uniwidth/u8-width-tests: Likewise.
4185         * modules/uniwidth/u16-strwidth-tests: Likewise.
4186         * modules/uniwidth/u16-width-tests: Likewise.
4187         * modules/uniwidth/u32-strwidth-tests: Likewise.
4188         * modules/uniwidth/u32-width-tests: Likewise.
4189         * modules/uniwidth/width-tests: Likewise.
4190
4191 2010-05-18  Richard Jones  <rjones@redhat.com>
4192
4193         doc: users.txt: list hivex
4194         * users.txt: Add hivex.
4195
4196 2010-05-18  Richard Jones  <rjones@redhat.com>
4197
4198         doc: users.txt: list febootstrap
4199         * users.txt: Add febootstrap.
4200
4201 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
4202
4203         bootstrap: fix an error when gnulib is not used as a git submodule
4204         * build-aux/bootstrap (gnulib_path): If its length is zero then
4205         assign "gnulib" to it.
4206         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
4207
4208 2010-05-16  Bruno Haible  <bruno@clisp.org>
4209
4210         Avoid autoconf warnings about AM_ICONV.
4211         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
4212         2.64.
4213
4214 2010-05-16  Bruno Haible  <bruno@clisp.org>
4215
4216         absolute-header: Make the macro usable in more situations.
4217         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
4218         from gl_ABSOLUTE_HEADER.
4219         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
4220
4221 2010-05-16  James Youngman  <jay@gnu.org>
4222
4223         doc: update users.txt
4224         * users.txt: Add CSSC.
4225
4226 2010-05-16  Jim Meyering  <meyering@redhat.com>
4227
4228         init.sh: fix an error in the previous change; add more comments
4229         * tests/init.sh: Compare exit code in loop against 9, not 2.
4230         Patch by Bruno Haible.
4231         Make the two tests more similar by adding an empty "then" clause.
4232         Add comments.
4233
4234         init.sh: avoid unnecessary shell re-exec
4235         * tests/init.sh: Improve the re-exec-required check to first test the
4236         current shell.  If it passes the test, do not search for a shell that
4237         does pass, and do not re-exec.  This test is particularly contorted to
4238         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
4239         of $(...) evokes a syntax error and causes immediate shell exit with
4240         status 2.  Bruno Haible reported that the re-exec made it impossible
4241         to single-step through any init.sh-using script.
4242
4243 2010-05-16  Bruno Haible  <bruno@clisp.org>
4244
4245         Fix collision between gnulib's and libintl's printf replacements.
4246         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
4247         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
4248         (printf): When using GNU C, map the __printf__ function to rpl_printf
4249         via __asm__. When not using GNU C, define rpl_printf instead of
4250         __printf__.
4251         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
4252         commit.
4253         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
4254         commit.
4255         * m4/asm-underscore.m4: New file.
4256         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
4257         * modules/stdio (Files): Add m4/asm-underscore.m4.
4258         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
4259         Reported by Ben Pfaff.
4260
4261 2010-05-16  Bruno Haible  <bruno@clisp.org>
4262
4263         verify: Avoid skipping the test on openSUSE 11.0.
4264         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
4265
4266 2010-05-13  Bruno Haible  <bruno@clisp.org>
4267
4268         Avoid useless warnings from G++.
4269         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
4270         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
4271         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4272
4273 2010-05-11  Jim Meyering  <meyering@redhat.com>
4274
4275         maint.mk: tweak preceding change
4276         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
4277         regexps tighter by anchoring at EOL, and make the new group "shy"
4278         for slightly decreased overhead.
4279
4280 2010-05-11  Eric Blake  <eblake@redhat.com>
4281
4282         maint.mk: gnulib doesn't guarantee NSIG
4283         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
4284
4285 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
4286
4287         test-pwrite.c: Remove unused variable declaration.
4288         * tests/test-pwrite.c (main): Remove read_buf declaration.
4289
4290         Remove useless test-pwrite.sh file.
4291         * tests/test-pwrite.sh: Delete file.
4292         * modules/pwrite-tests: Remove references.
4293         Reported by Bruno Haible.
4294
4295 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
4296
4297         init.sh: fix a typo
4298         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
4299
4300 2010-05-10  Jim Meyering  <meyering@redhat.com>
4301
4302         maint.mk: avoid using a temporary file in the always-defined-macros check
4303         * top/maint.mk (.re-defmac): Remove rule.
4304         (gl_trap_): Remove definition.
4305         (sc_prohibit_always-defined_macros): Rewrite not to create and
4306         depend on a temporary file.  Instead, depend on GNU grep's ability
4307         to read a list of regular expressions from stdin when given "-f -".
4308
4309 2010-05-09  Bruno Haible  <bruno@clisp.org>
4310
4311         Update to GNU gettext 0.18, part 1.
4312         * m4/gettext.m4: Update to GNU gettext 0.18.
4313         * m4/intl.m4: Likewise.
4314         * m4/po.m4: Likewise.
4315         * modules/gettext (Files): Add m4/fcntl-o.m4.
4316         (configure.ac): Require gettext infrastructure from version 0.18.
4317
4318 2010-05-09  Jim Meyering  <meyering@redhat.com>
4319
4320         init.sh: enable MALLOC_PERTURB_
4321         * tests/init.sh: Enable glibc's malloc-perturbing option.
4322
4323         maint.mk: improve sc_cross_check_PATH_usage_in_tests
4324         With my recent change in init.sh from the two-line form:
4325             -#   : ${srcdir=.}
4326             -#   . "$srcdir/init.sh"; path_prepend_ .
4327             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
4328         I noticed that using the one-line form would cause this test
4329         to fail with a false-positive, or to stop working altogether,
4330         depending on whether help-version changed or all the tests did.
4331         * top/maint.mk (_hv_regex): Remove this definition.
4332         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
4333         (_hv_regex_strong): Use a stronger regex to check for conformance.
4334         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
4335         Give a separate diagnostic for lack of conforming use.
4336
4337         maint.mk: prohibit definition of symbols defined by gnulib
4338         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
4339         definition of symbols defined by gnulib.
4340
4341 2010-05-09  Bruno Haible  <bruno@clisp.org>
4342
4343         acl: Avoid test failure on Cygwin-hosted mingw.
4344         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
4345
4346 2010-05-09  Bruno Haible  <bruno@clisp.org>
4347
4348         error: Use system's fcntl function.
4349         * lib/error.c (fcntl): Undefine.
4350
4351 2010-05-09  Jim Meyering  <meyering@redhat.com>
4352
4353         verify: adjust formatting to be more consistent
4354         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
4355         argument-list '('s, and after one comma.
4356
4357 2010-05-09  Bruno Haible  <bruno@clisp.org>
4358
4359         error: More reliable output on mingw.
4360         * lib/error.c: Include <windows.h>.
4361         (is_open): New function.
4362         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
4363         defined.
4364
4365 2010-05-09  Bruno Haible  <bruno@clisp.org>
4366
4367         vasnprintf: Fix syntax errors in libintl build on mingw.
4368         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
4369         pad_ourselves and prec_ourselves after use.
4370
4371 2010-05-08  Bruno Haible  <bruno@clisp.org>
4372
4373         * lib/config.charset: Update comments for Cygwin 1.7.
4374         * lib/localcharset.c: Likewise.
4375
4376 2010-05-07  Jim Meyering  <meyering@redhat.com>
4377
4378         init.sh: improve comments
4379         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
4380         . "${srcdir=.}/init.sh"; path_prepend_ .
4381         Add a note about path_prepend_ and the alternative of using
4382         TESTS_ENVIRONMENT.
4383
4384 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
4385
4386         exclude: Unescape hashed patterns in wildcard mode.
4387         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
4388         to the hash list.
4389         * tests/test-exclude8.sh: New test case.
4390         * modules/exclude-tests: Add new test.
4391
4392 2010-05-05  Eric Blake  <eblake@redhat.com>
4393
4394         verify: automate tests
4395         * modules/verify-tests: New module.
4396         * tests/test-verify.sh: New file.
4397         * tests/test-verify.c: Guard each negative test with a unique id.
4398         Also avoid warning about unused left hand of comma expressions.
4399
4400 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
4401
4402         Further improvements to verify.h, suggested by Eric Blake.
4403         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
4404         the GL_* versions, to avoid collision with OpenGL.
4405         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
4406         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
4407         than testing merely whether it's defined.
4408
4409         Modify verify.h to pacify gcc -Wredundant_decls.
4410         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
4411         These use the prefix "GL_" since they're likely to be useful elsewhere.
4412         We may need to break them out into a different .h file.
4413         (__COUNTER__): Define to 0 if the compiler doesn't support it.
4414         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
4415         of verify_function__.
4416
4417 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
4418
4419         Tests for module pwrite.
4420         * modules/pwrite-tests: New file.
4421         * tests/test-pwrite.sh: New file.
4422         * tests/test-pwrite.c: New file.
4423
4424         New module pwrite.
4425         * lib/unistd.in.h (pwrite): New declaration.
4426         * lib/pwrite.c: New file, from glibc with modifications.
4427         * m4/pwrite.m4: New file.
4428         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
4429         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
4430         REPLACE_PWRITE.
4431         * modules/pwrite: New file.
4432         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
4433         REPLACE_PWRITE.
4434         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
4435         * doc/posix-functions/pwrite.texi: Mention the new module.
4436
4437 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
4438
4439         pread: Update documentation.
4440         * doc/posix-functions/pread.texi: Mention the 'pread' module.
4441
4442 2010-05-04  Eric Blake  <eblake@redhat.com>
4443
4444         docs: update cygwin progress
4445         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
4446         this bug.
4447         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
4448         Added in cygwin 1.7.2.
4449         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
4450         Likewise.
4451         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
4452         Likewise.
4453         * doc/glibc-functions/dup3.texi (dup3): Likewise.
4454         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
4455         * doc/glibc-functions/accept4.texi (accept4): Likewise.
4456         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
4457         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
4458         Mention nproc module.
4459         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
4460         bug in cygwin 1.7.5 addition.
4461         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
4462         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
4463         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
4464         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
4465         1.7.5.
4466         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
4467         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
4468         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
4469         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
4470         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
4471         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
4472         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
4473         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
4474         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
4475         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
4476         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
4477         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
4478         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
4479         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
4480         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
4481         Likewise.
4482         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
4483         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
4484         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
4485         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
4486         Likewise.
4487         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
4488         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
4489         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
4490         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
4491         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
4492         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
4493         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
4494         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
4495         Likewise.
4496         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
4497         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
4498         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
4499         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
4500         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
4501         Likewise.
4502         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
4503         Likewise.
4504         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
4505         Likewise.
4506         * doc/glibc-functions/xdrrec_endofrecord.texi
4507         (xdrrec_endofrecord): Likewise.
4508         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
4509         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
4510         Likewise.
4511         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
4512         Likewise.
4513
4514 2010-05-04  Jim Meyering  <meyering@redhat.com>
4515
4516         gendocs.sh: make its "-s FILE" option more useful
4517         * build-aux/gendocs.sh: When honoring the -s FILE option, update
4518         $PACKAGE to reflect the probably-different basename of "FILE".
4519
4520 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
4521
4522         bootstrap: don't ignore download_po_files failure
4523         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
4524         failure.
4525
4526 2010-05-03  Jim Meyering  <meyering@redhat.com>
4527
4528         maint.mk: allow to pass options to gendocs.sh
4529         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
4530         (gendocs_options_): New overridable variable.
4531
4532         gnu-web-doc-update: don't ignore configure or build failure
4533         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
4534
4535         announce-gen: backslash-escape '@'s in --help output
4536         * build-aux/announce-gen: Fix syntax errors.
4537
4538         maint.mk, announce-gen: allow project-specific announcement mail headers
4539         * top/maint.mk (translation_project_): Define default.
4540         (announcement_Cc_, announcement_mail_headers_): Likewise.
4541         (announcement): Invoke announce-gen with new --mail-headers option.
4542         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
4543
4544         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
4545         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
4546         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
4547         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
4548         line in the "err2" output file when running "make check" in verbose
4549         mode (i.e., with set -x enabled).
4550
4551 2010-05-03  Bruno Haible  <bruno@clisp.org>
4552
4553         wctob: Fix for weird platforms.
4554         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
4555         argument value.
4556
4557 2010-05-03  Jim Meyering  <meyering@redhat.com>
4558
4559         maint.mk: prohibit unwarranted use of <strings.h>
4560         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
4561         strings.h in a file that does not also use strcasecmp, strncasecmp,
4562         ffs or ffsll.
4563
4564         maint.mk: remove obsolete comments
4565         * top/maint.mk: Remove stale, commented-out rules.
4566
4567 2010-05-02  Bruno Haible  <bruno@clisp.org>
4568
4569         wcwidth: Declare also when it's aliased.
4570         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
4571         macro.
4572
4573 2010-05-02  Bruno Haible  <bruno@clisp.org>
4574
4575         Fix regression from 2010-04-25.
4576         * gnulib-tool (func_modules_transitive_closure): Check the status of
4577         all modules, not only of the tests that are of the form foo-tests where
4578         foo is a module.
4579
4580 2010-05-02  Bruno Haible  <bruno@clisp.org>
4581
4582         wctob: Work around nasty Cygwin 1.7.2 bug.
4583         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
4584         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
4585
4586 2010-05-01  Bruno Haible  <bruno@clisp.org>
4587
4588         fpurge: Sharper test.
4589         * tests/test-fpurge.c (main): Add one more ftell check.
4590         * modules/fpurge-tests (Depends-on): Add ftell.
4591         Suggested by Eric Blake.
4592
4593 2010-05-01  Bruno Haible  <bruno@clisp.org>
4594
4595         ftello: Another test.
4596         * tests/test-ftello3.c: New file.
4597         * modules/ftello-tests (Files): Add it.
4598         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
4599         MOSTLYCLEANFILES.
4600
4601         ftell: Another test.
4602         * tests/test-ftell3.c: New file.
4603         * modules/ftell-tests (Files): Add it.
4604         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
4605         MOSTLYCLEANFILES.
4606
4607 2010-05-01  Bruno Haible  <bruno@clisp.org>
4608
4609         ftell, ftello: Work around Solaris bug.
4610         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
4611         * lib/ftello.c: Include stdio-impl.h.
4612         (ftello): On Solaris, when _IOWRT is set, compute the result without
4613         looking at _IOREAD.
4614         * modules/ftello (Files): Add lib/stdio-impl.h.
4615         * doc/posix-functions/ftell.texi: Mention Solaris bug.
4616         * doc/posix-functions/ftello.texi: Likewise.
4617         Reported by Eric Blake.
4618
4619 2010-05-01  Bruno Haible  <bruno@clisp.org>
4620
4621         freading: Adapt to special meaning of _IOREAD flag on Solaris.
4622         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
4623         the _IOWRT flag is also set.
4624
4625 2010-05-01  Bruno Haible  <bruno@clisp.org>
4626
4627         Fix doc about a HP-UX stdio bug.
4628         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
4629         * doc/posix-functions/ftello.texi: Likewise.
4630
4631 2010-05-01  Bruno Haible  <bruno@clisp.org>
4632
4633         lseek test: Fix failure on Solaris.
4634         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
4635         output.
4636
4637 2010-04-30  Jim Meyering  <meyering@redhat.com>
4638
4639         bootstrap: don't ignore failure to generate po*/Makevars
4640         * build-aux/bootstrap (with_gettext): Don't ignore failure
4641         to create po/Makevars or runtime-po/Makevars.
4642
4643 2010-04-29  Eric Blake  <eblake@redhat.com>
4644
4645         headers: relax license to LGPLv2+
4646         * modules/fcntl-h (License): Relax license.
4647         * modules/getopt-posix (License): Likewise.
4648         * modules/locale (License): Likewise.
4649         * modules/math (License): Likewise.
4650         * modules/pty (License): Likewise.
4651         * modules/sched (License): Likewise.
4652         * modules/search (License): Likewise.
4653         * modules/spawn (License): Likewise.
4654         * modules/stdarg (License): Likewise.
4655         * modules/sysexits (License): Likewise.
4656
4657 2010-04-29  Jim Meyering  <meyering@redhat.com>
4658
4659         inttypes: relax license to LGPLv2+
4660         * modules/inttypes (License): Relax license.
4661
4662 2010-04-29  Simon Josefsson  <simon@josefsson.org>
4663
4664         * top/maint.mk (indent): Run twice to produce idempotent results.
4665
4666 2010-04-28  Bruno Haible  <bruno@clisp.org>
4667
4668         getdate: Generate getdate.c in the source directory.
4669         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
4670         MOSTLYCLEANFILES.
4671         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
4672
4673 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
4674
4675         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
4676         is not declared as a const *; avoid warnings in that case.
4677
4678 2010-04-28  Eric Blake  <eblake@redhat.com>
4679
4680         canonicalize-lgpl: avoid compiler warning
4681         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
4682         declaration' / 'extraneous semicolon' warning with some compilers.
4683         Reported by Andreas Gruenbacher.
4684
4685 2010-04-28  Jim Meyering  <meyering@redhat.com>
4686
4687         init.sh: ensure a more reliable exit status when exiting via trap
4688         * tests/init.sh (setup_): Don't rely on $? in signal handler.
4689         Inspired by patches from Dmitry V. Levin.
4690         Also trap on signal 3 (SIGQUIT).
4691
4692 2010-04-27  Bruno Haible  <bruno@clisp.org>
4693
4694         Update doc about utimes().
4695         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
4696         'utimens' module.
4697         Reported by Andreas Gruenbacher <agruen@suse.de>.
4698
4699 2010-04-27  Eric Blake  <eblake@redhat.com>
4700
4701         full-read, full-write: relax license
4702         * modules/full-read (License): Drop to LGPLv2+.
4703         * modules/full-write (License): Likewise.
4704         * modules/safe-read (License): Likewise.
4705         * modules/safe-write (License): Likewise.
4706
4707         pthread: mention library for linking
4708         * modules/pthread (Link): Mention $(LIB_PTHREAD).
4709
4710 2010-04-27  Jim Meyering  <meyering@redhat.com>
4711
4712         maint.mk: fix a bug introduced in last change
4713         * top/maint.mk (gl_assured_headers_): Now that all names are on
4714         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
4715         is not anchored to end of word, it should be adequate.
4716
4717         maint.mk: avoid side-effect in latest syntax-check
4718         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
4719         to run commands via $(shell...), and hence to incur cost only when
4720         the new rule is actually run.
4721
4722         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
4723         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
4724         and use that to create a regexp used to detect all #if HAVE_..._H uses.
4725         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
4726         (gl_assured_headers_, az_, AZ_): Define.
4727         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
4728
4729 2010-04-26  Jim Meyering  <jim@meyering.net>
4730             Bruno Haible  <bruno@clisp.org>
4731
4732         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
4733         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
4734         Prompted by an exchange with Gilles Espinasse.
4735
4736 2010-04-26  Jim Meyering  <meyering@redhat.com>
4737
4738         git-version-gen: aesthetic tweak
4739         * build-aux/git-version-gen: Use "$nl" rather than a literal,
4740         so that the command remains on a single line.
4741
4742 2010-04-26  Eric Blake  <eblake@redhat.com>
4743
4744         git-version-gen: allow use on EBCDIC hosts
4745         * build-aux/git-version-gen (dirty): Use literal rather than tying
4746         ourselves to ascii.
4747         Reported by Steve Goetze.
4748
4749 2010-04-25  Bruno Haible  <bruno@clisp.org>
4750
4751         netdb: Add support for GNULIB_POSIXCHECK.
4752         * lib/netdb.in.h: Include warn-on-use.h.
4753         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
4754         functions are used when GNULIB_POSIXCHECK is defined and the
4755         getaddrinfo module is not in use.
4756         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
4757         freeaddrinfo, gai_strerror, getnameinfo are declared.
4758         * modules/netdb (Depends-on): Add warn-on-use.
4759         (Makefile.am): Include warn-on-use.h in netdb.h.
4760
4761 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
4762
4763         build: avoid "make check" failure without .git/ directory
4764         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
4765         there is no .git/ directory.
4766
4767 2010-04-25  Bruno Haible  <bruno@clisp.org>
4768
4769         ptsname: Fix misuse of ttyname_r.
4770         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
4771         of errno.
4772
4773 2010-04-25  Bruno Haible  <bruno@clisp.org>
4774
4775         ttyname_r: Make it work on Solaris 10.
4776         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
4777         if the system function has the POSIX declaration. Test whether the
4778         function fails if the buffer is less than 128 bytes large.
4779         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
4780         system's ttyname_r function. Provide a reasonably large buffer.
4781         * modules/ttyname_r (Depends-on): Add extensions.
4782         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
4783
4784 2010-04-25  Bruno Haible  <bruno@clisp.org>
4785
4786         Use the 'extensions' module for some more functions on Solaris.
4787         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
4788         module.
4789         * doc/posix-functions/ctime_r.texi: Likewise.
4790         * doc/posix-functions/getgrgid_r.texi: Likewise.
4791         * doc/posix-functions/getgrnam_r.texi: Likewise.
4792         * doc/posix-functions/getpwnam_r.texi: Likewise.
4793         * doc/posix-functions/getpwuid_r.texi: Likewise.
4794         * doc/posix-functions/readdir_r.texi: Likewise.
4795         * doc/posix-functions/sigwait.texi: Likewise.
4796         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
4797         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
4798
4799 2010-04-25  Bruno Haible  <bruno@clisp.org>
4800
4801         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
4802         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
4803         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
4804         * lib/ttyname_r.c: Include <limits.h>.
4805         (ttyname_r): Define using the system's ttyname_r function, if it exists
4806         and not on Solaris.
4807         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
4808         set.
4809         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
4810         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
4811         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
4812         Reported by Simon Josefsson.
4813
4814 2010-04-25  Bruno Haible  <bruno@clisp.org>
4815
4816         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
4817         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
4818         * doc/posix-functions/ctime_r.texi: Likewise.
4819         * doc/posix-functions/getgrgid_r.texi: Likewise.
4820         * doc/posix-functions/getgrnam_r.texi: Likewise.
4821         * doc/posix-functions/getlogin_r.texi: Likewise.
4822         * doc/posix-functions/getpwnam_r.texi: Likewise.
4823         * doc/posix-functions/getpwuid_r.texi: Likewise.
4824         * doc/posix-functions/readdir_r.texi: Likewise.
4825         * doc/posix-functions/sigwait.texi: Likewise.
4826         * doc/posix-functions/ttyname_r.texi: Likewise.
4827         Reported by Simon Josefsson.
4828
4829 2010-04-25  Bruno Haible  <bruno@clisp.org>
4830
4831         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
4832         * gnulib-tool (func_usage): Document that --with-*-tests options apply
4833         also to --create-testdir.
4834         (func_acceptable): Don't consider the status of *-tests modules here.
4835         (func_modules_transitive_closure): Consider it here, before including a
4836         test module.
4837         (func_import, func_create_testdir): Set inc_all_direct_tests,
4838         inc_all_indirect_tests.
4839         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
4840         --create-testdir and --create-megatestdir.
4841
4842 2010-04-25  Bruno Haible  <bruno@clisp.org>
4843
4844         gnulib-tool: Add --without-*-tests options.
4845         * gnulib-tool (func_usage): Document the --without-*-tests options.
4846         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
4847         excl_unportable_tests): New variables.
4848         Fail if they are specified with --import or --update.
4849         (func_acceptable): Respect the excl_*_tests variables.
4850         (func_import): Set the excl_*_tests variables to empty.
4851
4852 2010-04-25  Simon Josefsson  <simon@josefsson.org>
4853             Bruno Haible  <bruno@clisp.org>
4854
4855         Work around a MacOS X 10.4 bug with openpty.
4856         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
4857         * tests/test-openpty.c (main): Close the master side explicitly.
4858
4859 2010-04-25  Bruno Haible  <bruno@clisp.org>
4860
4861         strnlen: Fix a C++ test error on MacOS X and Solaris.
4862         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
4863         the function is not declared.
4864         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
4865         Simon Josefsson.
4866
4867 2010-04-24  Bruno Haible  <bruno@clisp.org>
4868
4869         Avoid a gcc warning.
4870         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
4871         of correct type for %08lx directive.
4872         Reported by Eric Blake.
4873
4874 2010-04-24  Bruno Haible  <bruno@clisp.org>
4875
4876         vasnprintf: Correct errno value in case of out-of-memory.
4877         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
4878         or sprintf. Use the errno value from SNPRINTF or sprintf.
4879         Reported by Ian Beckwith <ianb@erislabs.net>.
4880
4881 2010-04-24  Bruno Haible  <bruno@clisp.org>
4882
4883         ansi-c++-opt: Find correct compiler when cross-compiling.
4884         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
4885         AC_CHECK_PROGS.
4886         Reported by Simon Josefsson.
4887
4888 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
4889
4890         vc-list-files: Add support for subversion
4891         * build-aux/vc-list-files: Use "svn list" to generate the list of
4892         files controlled by subversion.
4893
4894 2010-04-23  Jim Meyering  <meyering@redhat.com>
4895
4896         vc-list-files tests: convert to use init.sh
4897         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
4898         path_prepend_.
4899         Use Exit, not exit.
4900         Use skip_ rather than open coding it.
4901         Remove trap set-up and compare definitions.
4902         * tests/test-vc-list-files-git.sh: Likewise.
4903         * modules/vc-list-files-tests (Files): Add tests/init.sh.
4904
4905 2010-04-22  Simon Josefsson  <simon@josefsson.org>
4906
4907         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
4908         backup files.
4909
4910 2010-04-21  Simon Josefsson  <simon@josefsson.org>
4911
4912         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
4913
4914 2010-04-20  Eric Blake  <eblake@redhat.com>
4915
4916         tests: be robust to ignored SIGPIPE
4917         * tests/test-select-in.sh: Consume all output.
4918         * tests/test-lseek.sh: Check correct exit status, while avoiding
4919         EPIPE.
4920
4921 2010-04-20  Simon Josefsson  <simon@josefsson.org>
4922             Bruno Haible  <bruno@clisp.org>
4923
4924         visibility: Don't use -fvisibility if it leads to a warning.
4925         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
4926         yes, don't pretend that visibility works if it leads to a warning.
4927         Reported by Mike Gran <spk121@yahoo.com>.
4928
4929 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
4930
4931         * build-aux/bootstrap: Use "git -h" for testing for supported options
4932         instead of "git --help".  The short-form option only shows a summary,
4933         and doesn't layout the full man page.  Grep for the full option name
4934         in the summary, too.
4935
4936 2010-04-19  Bruno Haible  <bruno@clisp.org>
4937
4938         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
4939         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
4940         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
4941         mention of RELOCATABLE_STRIP.
4942         Reported by Sylvain Beucler <beuc@beuc.net>.
4943
4944 2010-04-19  Bruno Haible  <bruno@clisp.org>
4945
4946         * lib/diffseq.h: Fix typo in comment.
4947         Reported by Eric Blake.
4948
4949 2010-04-19  Bruno Haible  <bruno@clisp.org>
4950
4951         ioctl: Move autoconf macro to a .m4 file.
4952         * m4/ioctl.m4: New file, extracted from modules/ioctl.
4953         * modules/ioctl (Files): Add it.
4954         (configure.ac): Simply invoke gl_FUNC_IOCTL.
4955         Reported by Ian Beckwith <ianb@erislabs.net>.
4956
4957 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
4958             Bruno Haible  <bruno@clisp.org>
4959
4960         diffseq: Accommodate use-case with abstract arrays.
4961         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
4962         is not defined.
4963         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
4964         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
4965
4966 2010-04-18  Bruno Haible  <bruno@clisp.org>
4967
4968         * doc/posix-headers/stdbool.texi: More precise wording.
4969
4970 2010-04-17  Jim Meyering  <meyering@redhat.com>
4971
4972         maint.mk: use gnu-style indentation in an embedded perl script
4973         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
4974         Rename variable: s/two/last_two_bytes/
4975
4976 2010-04-16  Eric Blake  <eblake@redhat.com>
4977
4978         test-stdbool: skip test that fails with Solaris CC
4979         * tests/test-stdbool.c (f): Skip test that causes compilation
4980         error under buggy C++ compiler.
4981         * lib/stdbool.in.h: Document the limitation.
4982         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
4983
4984         setenv: allow compilation with C++
4985         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
4986         register keyword.
4987
4988         stdint: allow test to pass with C++
4989         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
4990
4991         getopt: allow compilation with C++
4992         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
4993         struct.
4994         * lib/getopt.c (_getopt_internal_r): Use correct type.
4995         Reported by Dagobert Michelson, via Joel E. Denny.
4996
4997 2010-04-16  Bruno Haible  <bruno@clisp.org>
4998
4999         Override netdb.h always.
5000         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
5001         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
5002         Reported by Ludovic Courtès <ludo@gnu.org>.
5003
5004 2010-04-15  Bruno Haible  <bruno@clisp.org>
5005
5006         openpty: Fix mistake from 2010-03-21.
5007         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
5008         Reported by Simon Josefsson.
5009
5010 2010-04-15  Eric Blake  <eblake@redhat.com>
5011
5012         test-forkpty: fix expected signature
5013         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
5014         Reported by Simon Josefsson.
5015
5016 2010-04-15  Jim Meyering  <meyering@redhat.com>
5017
5018         maint.mk: texinfo_suffix_re_: correct the default regexp
5019         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
5020
5021         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
5022         make it configurable via texinfo_suffix_re_.
5023
5024 2010-04-14  Eric Blake  <eblake@redhat.com>
5025
5026         strtok_r: relax license to LGPLv2+
5027         * modules/strtok_r (License): Relax license.
5028         Reported by Matthias Bolte.
5029
5030 2010-04-14  Simon Josefsson  <simon@josefsson.org>
5031
5032         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
5033         version 1.4.4 by default instead of requiring the libgcrypt
5034         version used during build.  This makes it possible to use the
5035         application with older but still binary compatible libgcrypt
5036         versions.
5037
5038 2010-04-13  Eric Blake  <eblake@redhat.com>
5039
5040         getopt-gnu: match recent glibc fixes and posix ruling
5041         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
5042         '+' handling, when requesting extensions.
5043         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
5044         'W;' handling.
5045         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
5046         * doc/posix-functions/getopt.texi (getopt): Document this.
5047         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
5048         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5049         Likewise.
5050
5051         getopt: merge bug fixes from glibc
5052         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
5053         diagnostics.  Honor '+:' correctly.  Reject ';'.
5054
5055         getopt-posix: detect MacOS bug
5056         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
5057         optind when missing a required argument.
5058         * doc/posix-functions/getopt.texi (getopt): Document the bug.
5059         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
5060         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5061         Likewise.
5062
5063         getopt-posix: avoid spurious failure on Solaris
5064         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
5065         an indicator that setting optind=1 is sufficient for reset.
5066
5067         getopt-posix: avoid spurious failure on FreeBSD
5068         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
5069         in POSIX mode, since the m4 test uses it.
5070
5071         gnulib-tool: silence warning on BSD sh
5072         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
5073
5074 2010-04-13  Jim Meyering  <meyering@redhat.com>
5075
5076         doc: users.txt: GNU patch now uses gnulib
5077         * users.txt: Add patch.
5078
5079 2010-04-12  Jim Meyering  <meyering@redhat.com>
5080
5081         maint.mk: generate more concise timing data for syntax-check rules
5082         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
5083         " done" from each line that reports a syntax-check test duration.
5084
5085 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
5086
5087         git-version-gen: use "git update-index..." rather than "git status"
5088         * build-aux/git-version-gen: Use git update-index --refresh, not
5089         "git status".  With some versions of git, "git status" would fail
5090         to update the index and result in an unwarranted "-dirty" suffix.
5091
5092 2010-04-11  Jim Meyering  <meyering@redhat.com>
5093
5094         openat: correct formatting (no semantic change)
5095         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
5096         Suggested by Bruno Haible.
5097
5098 2010-04-11  Bruno Haible  <bruno@clisp.org>
5099
5100         Stricter declaration checking in testdirs.
5101         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
5102         If for_tests is true, augment AM_CPPFLAGS to define
5103         GNULIB_STRICT_CHECKING.
5104         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
5105         GNULIB_STRICT_CHECKING is defined, verify that the function is
5106         declared.
5107
5108 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
5109             Bruno Haible  <bruno@clisp.org>
5110
5111         libunistring: Improve configure output.
5112         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
5113         Don't say "consider installing GNU libunistring" when checking again
5114         with libiconv.
5115
5116 2010-04-11  Bruno Haible  <bruno@clisp.org>
5117
5118         libunistring: Correct value of $LTLIBUNISTRING.
5119         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
5120         correct the value of $LTLIBUNISTRING.
5121
5122 2010-04-11  Bruno Haible  <bruno@clisp.org>
5123
5124         havelib: Add static libraries to LIBS in the right order.
5125         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
5126         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
5127
5128 2010-04-11  Bruno Haible  <bruno@clisp.org>
5129
5130         libunistring: Detect libunistring also when it depends on libiconv.
5131         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
5132         the second AC_LIB_HAVE_LINKFLAGS invocation.
5133
5134 2010-04-11  James Youngman  <jay@gnu.org>
5135
5136         close-stream: declare local scalars to be "const"
5137         * lib/close-stream.c (close_stream): Make boolean variables const
5138         to document the fact that we set but do not change them.
5139
5140 2010-04-11  Bruno Haible  <bruno@clisp.org>
5141
5142         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
5143
5144 2010-04-11  Jim Meyering  <meyering@redhat.com>
5145
5146         maint.mk: don't include dist-check.mk
5147         * top/maint.mk: Remove bogus include directive.
5148
5149         maint.mk: improve empty-line-at-EOF check
5150         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
5151         solution, rather than tail+Perl-based one.  The latter would read
5152         a few kilobytes from the end of each file, and did not handle empty
5153         files properly.
5154
5155         maint.mk: print the elapsed time for each syntax-check rule
5156         * top/maint.mk (sc_m_rules_): Save start time in a file.
5157         (sc_z_rules_): New rules: remove temp file and print elapsed time.
5158         (local-check): Interpose the .z rules
5159
5160 2010-04-11  Jim Meyering  <meyering@redhat.com>
5161
5162         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
5163         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
5164         empty file with one that ends in an empty line.
5165
5166 2010-04-10  Bruno Haible  <bruno@clisp.org>
5167
5168         mkdir: Make it work on mingw64.
5169         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
5170         * lib/mkdir.c: Update comment.
5171         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
5172
5173 2010-04-10  Bruno Haible  <bruno@clisp.org>
5174
5175         Don't override improved macro from newer autoconf.
5176         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
5177         autoconf >= 2.62.
5178         Reported by Joel E. Denny <jdenny@clemson.edu>.
5179
5180 2010-04-10  Jim Meyering  <meyering@redhat.com>
5181
5182         maint.mk: new syntax-check rule: prohibit empty lines at end of file
5183         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
5184
5185         maint.mk: correct a diagnostic
5186         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
5187         in diagnostic; now use $prohibit.
5188
5189 2010-04-10  Bruno Haible  <address@hidden>
5190
5191         fchownat: Fix a C++ test error on Solaris 8.
5192         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
5193         the function does not exist.
5194
5195 2010-04-10  Bruno Haible  <bruno@clisp.org>
5196
5197         vasnprintf: Add more tests.
5198         * tests/test-vasnprintf-posix.c: Include <errno.h>.
5199         (test_function): Test converting an invalid wide string.
5200
5201         vasnprintf: Correct handling of unconvertible wide string arguments.
5202         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
5203         VASNPRINTF.
5204         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
5205         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
5206         smaller than the expected maximum need for the directive. Set errno to
5207         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
5208         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
5209         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
5210         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
5211         * modules/vasnprintf (Files): Add m4/printf.m4.
5212         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
5213
5214 2010-04-10  Bruno Haible  <bruno@clisp.org>
5215
5216         vasnprintf: Fix crash in %ls directive.
5217         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
5218         string is passed as argument to %ls, with no precision and no width.
5219         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
5220
5221 2010-04-10  Bruno Haible  <bruno@clisp.org>
5222
5223         vasnprintf: Fix multiple test failures on mingw.
5224         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
5225         _snprintf, or snwprintf, not _snwprintf.
5226
5227 2010-04-10  Bruno Haible  <bruno@clisp.org>
5228
5229         write: Fix a C++ test error on mingw.
5230         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
5231
5232 2010-04-10  Bruno Haible  <bruno@clisp.org>
5233
5234         vasnprintf test: Reduce code duplication.
5235         * tests/test-vasnprintf.c (test_function): New function, extracted from
5236         test_vasnprintf.
5237         (test_vasnprintf, test_asnprintf): Invoke it.
5238
5239 2010-04-10  Bruno Haible  <bruno@clisp.org>
5240
5241         strnlen: Fix warning in C++ mode on MacOS X.
5242         * lib/string.in.h (strnlen): Use the modern idiom.
5243         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
5244         defining strnlen as a macro already in <config.h>.
5245         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
5246         REPLACE_STRNLEN.
5247         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
5248         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
5249
5250 2010-04-08  James Youngman  <jay@gnu.org>
5251
5252         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
5253         the example.
5254
5255 2010-04-09  Jim Meyering  <meyering@redhat.com>
5256
5257         maint.mk: print better diagnostic when there is no $(_hv_file)
5258         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
5259         announce that when $(_hv_file) (aka help-version) does not exist.
5260
5261         init.sh: run tr in the "C" locale to avoid multibyte interpretation
5262         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
5263         not try to interpret its random input bytes.  Jarno Rajahalme reported
5264         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
5265         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
5266         (mktempd_): Likewise, just in case.
5267
5268         ftruncate: add two years to projected module removal date: 2012
5269         * m4/ftruncate.m4: Adjust comments.
5270
5271         ftruncate: mark module as obsolete; even MinGW provides it, now
5272         * modules/ftruncate (Status): Obsolete.
5273         (Notice): Say that.
5274         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
5275         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
5276
5277 2010-04-08  Bruno Haible  <bruno@clisp.org>
5278
5279         Fix side effects from tests-related modules.
5280         * modules/dprintf-posix (Comment): New section.
5281         * modules/fprintf-posix (Comment): Likewise.
5282         * modules/obstack-printf-posix (Comment): Likewise.
5283         * modules/printf-posix (Comment): Likewise.
5284         * modules/snprintf-posix (Comment): Likewise.
5285         * modules/sprintf-posix (Comment): Likewise.
5286         * modules/vasnprintf-posix (Comment): Likewise.
5287         * modules/vasprintf-posix (Comment): Likewise.
5288         * modules/vdprintf-posix (Comment): Likewise.
5289         * modules/vfprintf-posix (Comment): Likewise.
5290         * modules/vprintf-posix (Comment): Likewise.
5291         * modules/vsnprintf-posix (Comment): Likewise.
5292         * modules/vsprintf-posix (Comment): Likewise.
5293         * modules/xprintf-posix (Comment): Likewise.
5294         * modules/xvasprintf-posix (Comment): Likewise.
5295         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
5296         * modules/floorf-tests (Depends-on): Likewise.
5297         * modules/round-tests (Depends-on): Likewise.
5298         * modules/roundf-tests (Depends-on): Likewise.
5299         * modules/trunc-tests (Depends-on): Likewise.
5300         * modules/truncf-tests (Depends-on): Likewise.
5301         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
5302         'fprintf-posix' module is not present.
5303         * tests/test-floorf2.c (check): Likewise.
5304         * tests/test-trunc2.c (check): Likewise.
5305         * tests/test-truncf2.c (check): Likewise.
5306         * tests/test-round2.c (equal): Likewise.
5307         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
5308
5309 2010-04-07  Karl Berry  <karl@gnu.org>
5310
5311         * config/srclist.txt,
5312         * config/srclistvars.sh,
5313         * config/srclist-update: doc fixes.
5314
5315 2010-04-07  Jim Meyering  <meyering@redhat.com>
5316
5317         maint.mk: add a PATH crosschecking syntax-check rule
5318         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
5319         Useful if you use a test like the one in help-version (coreutils,
5320         diffutils, grep, gzip) that ensures $(VERSION) matches what is
5321         printed by prog --version.
5322
5323 2010-04-06  Bruno Haible  <bruno@clisp.org>
5324
5325         Fix link error on mingw.
5326         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
5327         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
5328
5329 2010-04-06  Bruno Haible  <bruno@clisp.org>
5330
5331         Assume rmdir exists.
5332         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
5333
5334 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
5335
5336         doc: update users.txt
5337         * users.txt: Add gcal.
5338
5339 2010-04-06  Jim Meyering  <meyering@redhat.com>
5340
5341         init.sh: simply unset TMPDIR rather than risking env -i
5342         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
5343         although it probably works fine on all Unix-based systems, some
5344         systems (Cygwin?) cannot tolerate a totally cleared environment.
5345         Suggestion from Eric Blake.
5346
5347 2010-04-06  Jim Meyering  <meyering@redhat.com>
5348
5349         init.sh: portability fix: use env's POSIX-specified -i option not -u
5350         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
5351         than unportable env -u.  Solaris 5.11's env lacks support for -u.
5352
5353 2010-04-05  Bruno Haible  <bruno@clisp.org>
5354
5355         btowc: Work around Cygwin 1.7.2 bug.
5356         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
5357         does not map NUL to 0.
5358         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
5359
5360 2010-04-05  Bruno Haible  <bruno@clisp.org>
5361
5362         Make the multithread modules work on Cygwin 1.7.2.
5363         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
5364         imported symbols can be declared weak, so that it returns "no" on
5365         Cygwin 1.7.2.
5366
5367 2010-04-05  Bruno Haible  <bruno@clisp.org>
5368
5369         Use the module 'strncat'.
5370         * modules/unistr/u8-strncat (Depends-on): Add strncat.
5371
5372         Tests for module 'strncat'.
5373         * modules/strncat-tests: New file.
5374         * tests/test-strncat.c: New file.
5375
5376         New module 'strncat'.
5377         * lib/string.in.h (strncat): New declaration.
5378         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
5379         * m4/strncat.m4: New file, based on m4/memchr.m4.
5380         * modules/strncat: New file.
5381         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
5382         is declared.
5383         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
5384         REPLACE_STRNCAT.
5385         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
5386         REPLACE_STRNCAT.
5387         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
5388         module.
5389         * tests/test-string-c++.cc: Check signature of strncat.
5390
5391 2010-04-05  Jim Meyering  <meyering@redhat.com>
5392
5393         xstrtoumax-tests: convert to use init.sh
5394         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
5395         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
5396         Use Exit, not exit.
5397         Remove uses of $EXEEXT and "./" to run a program in the current dir.
5398
5399         xstrtoimax-tests: convert to use init.sh
5400         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
5401         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
5402         Use Exit, not exit.
5403         Remove uses of $EXEEXT and "./" to run a program in the current dir.
5404
5405 2010-04-05  Bruno Haible  <bruno@clisp.org>
5406
5407         sys_socket: Avoid #define replacements in C++ mode.
5408         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
5409         warning to the function if possible, rather than #defining the symbol
5410         to a dysfunctional alias.
5411
5412 2010-04-05  Bruno Haible  <bruno@clisp.org>
5413
5414         fseeko: Fix C++ test error on mingw.
5415         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
5416         gl_FUNC_FSEEKO.
5417         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
5418         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
5419         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
5420         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
5421
5422 2010-04-05  Bruno Haible  <bruno@clisp.org>
5423
5424         duplocale: Improve test output.
5425         * tests/test-duplocale.c (main): Print reason for skipped test.
5426
5427 2010-04-05  Bruno Haible  <bruno@clisp.org>
5428
5429         Assume rmdir exists.
5430         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
5431         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
5432
5433 2010-04-05  Bruno Haible  <bruno@clisp.org>
5434
5435         Fix link error on Solaris 8 with cc.
5436         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
5437
5438 2010-04-05  Bruno Haible  <bruno@clisp.org>
5439
5440         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
5441         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
5442
5443 2010-04-05  Bruno Haible  <bruno@clisp.org>
5444
5445         vasprintf: Update documentation.
5446         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
5447
5448 2010-04-05  Bruno Haible  <bruno@clisp.org>
5449
5450         ptsname: Improve test.
5451         * tests/test-ptsname.c (main): Also try the various master names of BSD
5452         systems.
5453
5454 2010-04-05  Bruno Haible  <bruno@clisp.org>
5455
5456         memchr: Avoid a possible C++ test error.
5457         * lib/string.in.h (memchr): Provide declaration if function is missing.
5458         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
5459         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
5460         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
5461         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
5462
5463 2010-04-05  Bruno Haible  <bruno@clisp.org>
5464
5465         strtok_r: Improve idiom.
5466         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
5467         AC_LIBOBJ is used.
5468
5469 2010-04-05  Bruno Haible  <bruno@clisp.org>
5470
5471         strdup: Improve idiom.
5472         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
5473         AC_LIBOBJ is used.
5474         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
5475         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
5476         when AC_LIBOBJ is used.
5477
5478 2010-04-05  Bruno Haible  <bruno@clisp.org>
5479
5480         mbsinit, mbrtowc, wcrtomb: Improve idioms.
5481         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
5482         don't set REPLACE_MBSINIT to 1.
5483         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
5484         don't set REPLACE_MBRTOWC to 1.
5485         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
5486         exist, don't set REPLACE_MBSRTOWCS to 1.
5487         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
5488         exist, don't set REPLACE_MBSNRTOWCS to 1.
5489         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
5490         don't set REPLACE_WCRTOMB to 1.
5491         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
5492         exist, don't set REPLACE_WCSRTOMBS to 1.
5493         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
5494         exist, don't set REPLACE_WCSNRTOMBS to 1.
5495
5496 2010-04-05  Bruno Haible  <bruno@clisp.org>
5497
5498         ldexpl: Improve idiom.
5499         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
5500         make sure to set HAVE_DECL_LDEXPL to 0.
5501
5502 2010-04-05  Jim Meyering  <meyering@redhat.com>
5503
5504         xstrtol-tests: convert to use init.sh
5505         * modules/xstrtol-tests (Files): Add tests/init.sh.
5506         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
5507         Use Exit, not exit.
5508         Remove uses of $EXEEXT and "./" to run a program in the current dir.
5509
5510         atexit-tests: convert to use init.sh
5511         * modules/atexit-tests (Files): Add tests/init.sh.
5512         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
5513         Use Exit, not exit.
5514         Remove uses of $EXEEXT and "./" to run a program in the current dir.
5515
5516         init.sh: fix typo
5517         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
5518
5519         init.sh: make it easier for a test script to write to the tty, ...
5520         when using automake's parallel-tests mode.
5521         * tests/init.sh (stderr_fileno_): Define overridable variable.
5522         (warn_): New function, to use it.
5523         (fail_, skip_, framework_failure_): Use warn_.
5524
5525 2010-04-04  Bruno Haible  <bruno@clisp.org>
5526
5527         btowc: Avoid warning.
5528         * lib/btowc.c: Include <stdlib.h>.
5529         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
5530
5531 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
5532             Bruno Haible  <bruno@clisp.org>
5533
5534         wchar: Port to NetBSD 1.5.
5535         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
5536         * lib/wctype.in.h (WEOF): Likewise.
5537
5538 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
5539             Bruno Haible  <bruno@clisp.org>
5540
5541         Port extended stdio to NetBSD 1.5.
5542         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
5543         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
5544         older.
5545
5546 2010-04-04  Bruno Haible  <bruno@clisp.org>
5547
5548         string: Remove unused substitution.
5549         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
5550         HAVE_DECL_STRERROR.
5551         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
5552
5553 2010-04-04  Bruno Haible  <bruno@clisp.org>
5554
5555         strtod: Avoid a possible C++ test error.
5556         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
5557         set REPLACE_STRTOD.
5558
5559 2010-04-04  Bruno Haible  <bruno@clisp.org>
5560
5561         strerror: Update documentation.
5562         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
5563
5564 2010-04-04  Bruno Haible  <bruno@clisp.org>
5565
5566         stdio: Fix some C++ test errors on Solaris 8 with GCC.
5567         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
5568         _GL_CXXALIAS_SYS_CAST.
5569
5570 2010-04-04  Bruno Haible  <bruno@clisp.org>
5571
5572         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
5573         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
5574         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
5575         REPLACE_FREXPL to 1.
5576         * doc/posix-functions/frexpl.texi: Update documentation.
5577
5578 2010-04-04  Bruno Haible  <bruno@clisp.org>
5579
5580         math: Fix some C++ test errors on Solaris 8 and Cygwin.
5581         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
5582
5583 2010-04-04  Bruno Haible  <bruno@clisp.org>
5584
5585         Implement nanosleep for native Windows.
5586         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
5587
5588 2010-04-04  Bruno Haible  <bruno@clisp.org>
5589
5590         math: Fix some C++ test errors on Solaris 8.
5591         * lib/math.in.h (truncf, trunc): Use simpler idiom.
5592
5593 2010-04-04  Bruno Haible  <bruno@clisp.org>
5594
5595         math: Fix some C++ test errors on Cygwin.
5596         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
5597         truncl): Provide declaration if the system does not have it.
5598         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
5599         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
5600         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
5601         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
5602         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
5603         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
5604         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
5605         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
5606         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
5607         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
5608         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
5609         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
5610         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
5611         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
5612         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
5613         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
5614         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
5615         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
5616         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
5617         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
5618         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
5619         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
5620
5621 2010-04-04  Bruno Haible  <bruno@clisp.org>
5622
5623         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
5624         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
5625         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
5626         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
5627         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
5628         * m4/isinf.m4 (gl_ISINF): Likewise.
5629         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5630
5631 2010-04-04  Bruno Haible  <bruno@clisp.org>
5632
5633         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
5634         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
5635
5636 2010-04-04  Bruno Haible  <bruno@clisp.org>
5637
5638         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
5639         * modules/tmpfile (configure.ac): Update.
5640
5641         tmpfile: Fix C++ test error on mingw.
5642         * lib/stdio.in.h (tmpfile): New declaration.
5643         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
5644         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
5645         * modules/tmpfile (Depends-on): Add stdio.
5646         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
5647         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
5648         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
5649         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
5650         REPLACE_TMPFILE.
5651         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
5652
5653 2010-04-04  Bruno Haible  <bruno@clisp.org>
5654
5655         ioctl: Fix C++ test error on mingw.
5656         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
5657         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
5658         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
5659
5660 2010-04-03  Bruno Haible  <bruno@clisp.org>
5661
5662         wcwidth: Fix C++ test error on mingw.
5663         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
5664         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
5665         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
5666
5667 2010-04-03  Bruno Haible  <bruno@clisp.org>
5668
5669         nanosleep: Fix C++ test error on mingw.
5670         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
5671         * lib/time.in.h (nanosleep): Use modern idiom.
5672         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
5673         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
5674         REPLACE_NANOSLEEP to 1.
5675         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
5676         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
5677
5678 2010-04-03  Bruno Haible  <bruno@clisp.org>
5679
5680         strptime: Fix C++ test error on mingw.
5681         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
5682         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
5683         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
5684         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
5685         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
5686         not REPLACE_STRPTIME.
5687         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
5688         REPLACE_STRPTIME.
5689
5690 2010-04-03  Bruno Haible  <bruno@clisp.org>
5691
5692         timegm: Fix C++ test error on mingw.
5693         * lib/time.in.h (timegm): Use modern idiom.
5694         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
5695         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
5696         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
5697         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
5698
5699 2010-04-03  Bruno Haible  <bruno@clisp.org>
5700
5701         timegm: Assume declaration if function exists.
5702         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
5703         if it exists. Don't clobber ac_cv_func_timegm.
5704
5705 2010-04-03  Bruno Haible  <bruno@clisp.org>
5706
5707         time_r: Fix C++ test error on mingw.
5708         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
5709         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
5710         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
5711         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
5712         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
5713
5714 2010-04-03  Bruno Haible  <bruno@clisp.org>
5715
5716         time_r: Minor updates.
5717         * modules/time_r (Description): Mention the provided functions.
5718         * lib/time_r.c: Don't include <string.h>.
5719         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
5720         * doc/posix-functions/localtime_r.texi: Likewise.
5721
5722 2010-04-03  Bruno Haible  <bruno@clisp.org>
5723
5724         time: Fix regression introduced on 2010-03-08.
5725         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
5726         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
5727
5728 2010-04-03  Jim Meyering  <meyering@redhat.com>
5729
5730         maint.mk: don't silently disable project-specific syntax-check rules
5731         * top/maint.mk (_prohibit_regexp): Define, to help people realize
5732         that they need to convert their project-specific syntax-check rules
5733         to use the new _sc_search_regexp.
5734
5735 2010-04-03  Bruno Haible  <bruno@clisp.org>
5736
5737         fchdir: Fix regression introduced on 2010-03-08.
5738         * lib/unistd.in.h (fchdir): Fix declaration.
5739         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
5740         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
5741         REPLACE_FCHDIR.
5742         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
5743         REPLACE_FCHDIR.
5744
5745 2010-04-03  Bruno Haible  <bruno@clisp.org>
5746
5747         getpagesize: Fix C++ test error on mingw.
5748         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
5749         system does not declare the function.
5750         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
5751         declared.
5752         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5753         HAVE_DECL_GETPAGESIZE.
5754         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
5755
5756 2010-04-03  Bruno Haible  <bruno@clisp.org>
5757
5758         stdio: Make C++ tests work on mingw.
5759         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
5760         does not declare the function.
5761
5762 2010-04-03  Bruno Haible  <bruno@clisp.org>
5763
5764         ftello: Fix C++ test error on mingw.
5765         * lib/stdio.in.h (ftello): Use modern idiom.
5766         * lib/ftello.c (ftello): Renamed from rpl_ftello.
5767         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
5768         is missing and that it needs to be replaced.
5769         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
5770         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
5771         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
5772
5773 2010-04-03  Bruno Haible  <bruno@clisp.org>
5774
5775         fseeko: Fix C++ test error on mingw.
5776         * lib/stdio.in.h (fseeko): Use modern idiom.
5777         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
5778         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
5779         is missing and that it needs to be replaced.
5780         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
5781         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
5782         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
5783
5784 2010-04-03  Bruno Haible  <bruno@clisp.org>
5785
5786         mkstemp: Fix C++ test error on mingw.
5787         * lib/stdlib.in.h (mkstemp): Use modern idiom.
5788         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
5789         function is missing and that it needs to be replaced.
5790         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
5791         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
5792
5793 2010-04-03  Bruno Haible  <bruno@clisp.org>
5794
5795         stpncpy: Fix C++ test error on mingw.
5796         * lib/string.in.h (stpncpy): Use modern idiom.
5797         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
5798         function is missing and that it needs to be replaced.
5799         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
5800         REPLACE_STPNCPY.
5801         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
5802
5803 2010-04-03  Bruno Haible  <bruno@clisp.org>
5804
5805         sys_stat: Fix C++ test error on mingw.
5806         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
5807         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
5808
5809 2010-04-03  Bruno Haible  <bruno@clisp.org>
5810
5811         pty: Update doc.
5812         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
5813
5814 2010-04-03  Bruno Haible  <bruno@clisp.org>
5815
5816         unistd: Fix C++ test error on mingw.
5817         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
5818
5819 2010-04-03  Bruno Haible  <bruno@clisp.org>
5820
5821         Update doc regarding mingw.
5822         * doc/glibc-functions/openpty.texi: Update regarding mingw.
5823         * doc/glibc-functions/login_tty.texi: Likewise.
5824         * doc/glibc-functions/forkpty.texi: Likewise.
5825
5826 2010-04-03  Bruno Haible  <bruno@clisp.org>
5827
5828         stdlib: Avoid compilation failure of c-strtold on mingw.
5829         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
5830
5831 2010-04-03  Bruno Haible  <bruno@clisp.org>
5832
5833         locale: Make C++ tests work on Cygwin and mingw.
5834         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
5835         cannot provide the function.
5836         Reported by Simon Josefsson.
5837
5838 2010-04-03  Bruno Haible  <bruno@clisp.org>
5839
5840         localename: Port to MacOS X 10.6.
5841         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
5842         memory layout of the locales in MacOS X 10.6 as well.
5843         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
5844
5845 2010-04-02  Bruno Haible  <bruno@clisp.org>
5846
5847         gnulib-tool: Ensure that long-running tests are executed last.
5848         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
5849         running tests after the one for the other tests.
5850
5851 2010-04-02  Bruno Haible  <bruno@clisp.org>
5852
5853         gnulib-tool: Ensure the tests in the main directory are executed first.
5854         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
5855         start with the current directory.
5856
5857 2010-04-02  Bruno Haible  <bruno@clisp.org>
5858
5859         Tests for module 'havelib', moved here from GNU gettext.
5860         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
5861         modifications.
5862         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
5863         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
5864         with modifications.
5865         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
5866         modifications.
5867         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
5868         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
5869         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
5870         with modifications.
5871         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
5872         with modifications.
5873         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
5874         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
5875         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
5876         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
5877         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
5878         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
5879         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
5880         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
5881         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
5882         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
5883         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
5884         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
5885         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
5886         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
5887         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
5888         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
5889         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
5890         with modifications.
5891         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
5892         with modifications.
5893         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
5894         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
5895         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
5896         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
5897         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
5898         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
5899         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
5900         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
5901         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
5902         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
5903         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
5904         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
5905         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
5906         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
5907         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
5908         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
5909         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
5910         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
5911         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
5912         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
5913         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
5914         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
5915         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
5916         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
5917         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
5918         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
5919         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
5920         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
5921         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
5922         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
5923         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
5924         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
5925         * tests/havelib/rpathx/rpathx.c: New file, from
5926         gettext/autoconf-lib-link.
5927         * tests/havelib/rpathx/Makefile.am: New file, from
5928         gettext/autoconf-lib-link.
5929         * tests/havelib/rpathx/configure.ac: New file, from
5930         gettext/autoconf-lib-link with modifications.
5931         * tests/havelib/rpathy/rpathy.c: New file, from
5932         gettext/autoconf-lib-link.
5933         * tests/havelib/rpathy/Makefile.am: New file, from
5934         gettext/autoconf-lib-link.
5935         * tests/havelib/rpathy/configure.ac: New file, from
5936         gettext/autoconf-lib-link with modifications.
5937         * tests/havelib/rpathz/rpathz.c: New file, from
5938         gettext/autoconf-lib-link.
5939         * tests/havelib/rpathz/Makefile.am: New file, from
5940         gettext/autoconf-lib-link.
5941         * tests/havelib/rpathz/configure.ac: New file, from
5942         gettext/autoconf-lib-link with modifications.
5943         * tests/havelib/rpathlx/usex.c: New file, from
5944         gettext/autoconf-lib-link.
5945         * tests/havelib/rpathlx/Makefile.am: New file, from
5946         gettext/autoconf-lib-link.
5947         * tests/havelib/rpathlx/configure.ac: New file, from
5948         gettext/autoconf-lib-link with modifications.
5949         * tests/havelib/rpathly/usey.c: New file, from
5950         gettext/autoconf-lib-link.
5951         * tests/havelib/rpathly/Makefile.am: New file, from
5952         gettext/autoconf-lib-link.
5953         * tests/havelib/rpathly/configure.ac: New file, from
5954         gettext/autoconf-lib-link with modifications.
5955         * tests/havelib/rpathlz/usez.c: New file, from
5956         gettext/autoconf-lib-link.
5957         * tests/havelib/rpathlz/Makefile.am: New file, from
5958         gettext/autoconf-lib-link.
5959         * tests/havelib/rpathlz/configure.ac: New file, from
5960         gettext/autoconf-lib-link with modifications.
5961         * tests/havelib/rpathlyx/usey.c: New file, from
5962         gettext/autoconf-lib-link.
5963         * tests/havelib/rpathlyx/Makefile.am: New file, from
5964         gettext/autoconf-lib-link.
5965         * tests/havelib/rpathlyx/configure.ac: New file, from
5966         gettext/autoconf-lib-link with modifications.
5967         * tests/havelib/rpathlzyx/usez.c: New file, from
5968         gettext/autoconf-lib-link.
5969         * tests/havelib/rpathlzyx/Makefile.am: New file, from
5970         gettext/autoconf-lib-link.
5971         * tests/havelib/rpathlzyx/configure.ac: New file, from
5972         gettext/autoconf-lib-link with modifications.
5973         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
5974         with modifications.
5975
5976 2010-04-02  Bruno Haible  <bruno@clisp.org>
5977
5978         gnulib-tool: Create distributed built sources also for the tests.
5979         * gnulib-tool (func_create_testdir): Also generate distributed built
5980         sources in the tests directory.
5981
5982 2010-04-02  Bruno Haible  <bruno@clisp.org>
5983
5984         gnulib-tool: Obey user's environment variables.
5985         * gnulib-tool (func_create_testdir): When creating built sources,
5986         respect the environment variables for autoconf, automake, etc. given by
5987         the user.
5988
5989 2010-04-02  Bruno Haible  <bruno@clisp.org>
5990
5991         gnulib-tool: Provide the value of --m4-base to modules.
5992         * gnulib-tool (func_import, func_create_testdir): Emit a definition
5993         of gl_m4_base.
5994
5995 2010-04-02  Eric Blake  <eblake@redhat.com>
5996
5997         maint.mk: fix some fallout
5998         * NEWS: Document the incompatible change, and its effect on cfg.mk.
5999         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
6000
6001 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
6002
6003         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
6004         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
6005         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
6006         (sc_cast_of_x_alloc_return_value): Likewise.
6007         (sc_cast_of_alloca_return_value): Likewise.
6008         (sc_space_tab): Likewise.
6009         (sc_prohibit_atoi_atof): Likewise.
6010         (sc_prohibit_magic_number_exit): Likewise.
6011         (sc_error_exit_success): Likewise.
6012         (sc_file_system): Likewise.
6013         (sc_prohibit_have_config_h): Likewise.
6014         (sc_require_config_h): Likewise.
6015         (sc_prohibit_HAVE_MBRTOWC): Likewise.
6016         (sc_obsolete_symbols): Likewise.
6017         (sc_changelog): Likewise.
6018         (sc_program_name): Likewise.
6019         (sc_the_the): Likewise.
6020         (sc_trailing_blank): Likewise.
6021         (sc_two_space_separator_in_usage): Likewise.
6022         (sc_useless_cpp_parens): Likewise.
6023         (sc_GPL_version): Likewise.
6024         (sc_GFDL_version): Likewise.
6025         (sc_texinfo_acronym): Likewise.
6026         (sc_prohibit_cvs_keyword): Likewise.
6027         (sc_prohibit_stat_st_blocks): Likewise.
6028         (sc_prohibit_S_IS_definition): Likewise.
6029         (sc_redundant_const): Likewise.
6030         (sc_makefile_TAB_only_indentation): Likewise.
6031         (sc_m4_quote_check): Likewise.
6032         (sc_makefile_path_separator_check): Likewise.
6033         (sc_copyright_check): Likewise.
6034         (sc_Wundef_boolean): Likewise.
6035         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
6036
6037         maint.mk: match 0 or more whitespace-before-function-call '('
6038         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
6039         that have zero or two-and-more spaces between the function name
6040         and the open parenthesis.
6041         (sc_error_message_warn_fatal): Likewise.
6042         (sc_error_message_uppercase): Likewise.
6043         (sc_error_message_period): Likewise.
6044
6045 2010-03-31  Eric Blake  <eblake@redhat.com>
6046
6047         maint.mk: check for [ as well as test
6048         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
6049         Based on a libvirt report by Matthias Bolte.
6050
6051         gnumakefile: don't squelch _version output
6052         * top/GNUmakefile (_version): Create one-shot dependency rather
6053         than using $(shell) when version must be regenerated.
6054         (_autoreconf): Run verbosely, by default.
6055
6056         sys_time: avoid compiler warnings
6057         * lib/sys_time.in.h (includes): Ensure gcc pragma is
6058         unconditional, fixing regression from 2010-03-29.
6059         Reported by Simon Josefsson.
6060
6061 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
6062
6063         maint.mk: s/_header_without_use/_sc_header_without_use/
6064         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
6065         (sc_prohibit_assert_without_use): Use the new name.
6066         (sc_prohibit_close_stream_without_use): Likewise.
6067         (sc_prohibit_getopt_without_use): Likewise.
6068         (sc_prohibit_quotearg_without_use): Likewise.
6069         (sc_prohibit_quote_without_use): Likewise.
6070         (sc_prohibit_long_options_without_use): Likewise.
6071         (sc_prohibit_inttostr_without_use): Likewise.
6072         (sc_prohibit_ignore_value_without_use): Likewise.
6073         (sc_prohibit_error_without_use): Likewise.
6074         (sc_prohibit_xalloc_without_use): Likewise.
6075         (sc_prohibit_hash_without_use): Likewise.
6076         (sc_prohibit_hash_pjw_without_use): Likewise.
6077         (sc_prohibit_safe_read_without_use): Likewise.
6078         (sc_prohibit_argmatch_without_use): Likewise.
6079         (sc_prohibit_canonicalize_without_use): Likewise.
6080         (sc_prohibit_root_dev_ino_without_use): Likewise.
6081         (sc_prohibit_openat_without_use): Likewise.
6082         (sc_prohibit_c_ctype_without_use): Likewise.
6083         (sc_prohibit_signal_without_use): Likewise.
6084         (sc_prohibit_intprops_without_use): Likewise.
6085
6086 2010-03-30  Eric Blake  <eblake@redhat.com>
6087
6088         maint: improve module indicators
6089         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
6090         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
6091         columns, and avoid extra macro expansion.
6092
6093         fdopendir: work around FreeBSD bug
6094         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
6095         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
6096         * modules/dirent (Makefile.am): Substitute it.
6097         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
6098         declaration.
6099         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
6100         fix.
6101         Reported by Christian Weisgerber <naddy@mips.inka.de>.
6102
6103 2010-03-29  Bruno Haible  <bruno@clisp.org>
6104
6105         Emit #pragma system_header after the inclusion guard, not before.
6106         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
6107         guard that spans the entire file, not before. This enables an
6108         optimization in GCC's preprocessor.
6109         * lib/ctype.in.h: Likewise.
6110         * lib/dirent.in.h: Likewise.
6111         * lib/errno.in.h: Likewise.
6112         * lib/float.in.h: Likewise.
6113         * lib/getopt.in.h: Likewise.
6114         * lib/iconv.in.h: Likewise.
6115         * lib/langinfo.in.h: Likewise.
6116         * lib/locale.in.h: Likewise.
6117         * lib/math.in.h: Likewise.
6118         * lib/netdb.in.h: Likewise.
6119         * lib/netinet_in.in.h: Likewise.
6120         * lib/pty.in.h: Likewise.
6121         * lib/sched.in.h: Likewise.
6122         * lib/se-selinux.in.h: Likewise.
6123         * lib/search.in.h: Likewise.
6124         * lib/spawn.in.h: Likewise.
6125         * lib/stdarg.in.h: Likewise.
6126         * lib/stdint.in.h: Likewise.
6127         * lib/string.in.h: Likewise.
6128         * lib/strings.in.h: Likewise.
6129         * lib/sys_file.in.h: Likewise.
6130         * lib/sys_ioctl.in.h: Likewise.
6131         * lib/sys_time.in.h: Likewise.
6132         * lib/sys_times.in.h: Likewise.
6133         * lib/sys_utsname.in.h: Likewise.
6134         * lib/sys_wait.in.h: Likewise.
6135         * lib/sysexits.in.h: Likewise.
6136         * lib/wctype.in.h: Likewise.
6137
6138 2010-03-28  James Youngman  <jay@gnu.org>
6139
6140         save-cwd: don't leak a file descriptor when the caller execs.
6141         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
6142         saved file descriptor.
6143         * modules/save-cwd (Depends-on): Depend on cloexec.
6144
6145 2010-03-29  Bruno Haible  <bruno@clisp.org>
6146
6147         Remove vestiges of fts-lgpl module.
6148         * lib/fts_.h: Assume GNULIB_FTS is 1.
6149         * lib/fts.c: Likewise.
6150         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
6151
6152 2010-03-28  Bruno Haible  <bruno@clisp.org>
6153
6154         Fix definition of tests witness macro.
6155         * gnulib-tool (func_import): Fix definition of witness macro.
6156
6157 2010-03-28  Bruno Haible  <bruno@clisp.org>
6158
6159         Fix ioctl's protoype on glibc systems.
6160         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
6161         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
6162         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
6163         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
6164         signature. If not, arrange to replace the ioctl function.
6165         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
6166         REPLACE_IOCTL.
6167         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
6168         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
6169         Reported by Ludovic Courtès <ludo@gnu.org>.
6170
6171 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
6172
6173         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
6174         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
6175         made it so grep -r --include=GLOB* ... did not work.
6176
6177 2010-03-26  Jim Meyering  <meyering@redhat.com>
6178             Eric Blake  <eblake@redhat.com>
6179
6180         maint.mk: prohibit use of test's -o and -a operators
6181         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
6182
6183 2010-03-28  Bruno Haible  <bruno@clisp.org>
6184
6185         Remove unused GNULIB_XYZ macro definitions.
6186         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
6187         invocation.
6188
6189 2010-03-28  Bruno Haible  <bruno@clisp.org>
6190
6191         Mark privileged tests modules.
6192         * modules/idpriv-drop-tests (Status): New section.
6193         * modules/idpriv-droptemp-tests (Status): New section.
6194
6195 2010-03-28  Bruno Haible  <bruno@clisp.org>
6196
6197         Split C++ tests into separate tests modules.
6198         * modules/dirent-c++-tests: New file, extracted from
6199         modules/dirent-tests.
6200         * modules/dirent-tests: Depend on it.
6201         * modules/fcntl-h-c++-tests: New file, extracted from
6202         modules/fcntl-h-tests.
6203         * modules/fcntl-h-tests: Depend on it.
6204         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
6205         * modules/glob-tests: Depend on it.
6206         * modules/iconv-h-c++-tests: New file, extracted from
6207         modules/iconv-h-tests.
6208         * modules/iconv-h-tests: Depend on it.
6209         * modules/langinfo-c++-tests: New file, extracted from
6210         modules/langinfo-tests.
6211         * modules/langinfo-tests: Depend on it.
6212         * modules/locale-c++-tests: New file, extracted from
6213         modules/locale-tests.
6214         * modules/locale-tests: Depend on it.
6215         * modules/math-c++-tests: New file, extracted from modules/math-tests.
6216         * modules/math-tests: Depend on it.
6217         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
6218         * modules/pty-tests: Depend on it.
6219         * modules/search-c++-tests: New file, extracted from
6220         modules/search-tests.
6221         * modules/search-tests: Depend on it.
6222         * modules/signal-c++-tests: New file, extracted from
6223         modules/signal-tests.
6224         * modules/signal-tests: Depend on it.
6225         * modules/spawn-c++-tests: New file, extracted from
6226         modules/spawn-tests.
6227         * modules/spawn-tests: Depend on it.
6228         * modules/stdio-c++-tests: New file, extracted from
6229         modules/stdio-tests.
6230         * modules/stdio-tests: Depend on it.
6231         * modules/stdlib-c++-tests: New file, extracted from
6232         modules/stdlib-tests.
6233         * modules/stdlib-tests: Depend on it.
6234         * modules/string-c++-tests: New file, extracted from
6235         modules/string-tests.
6236         * modules/string-tests: Depend on it.
6237         * modules/sys_ioctl-c++-tests: New file, extracted from
6238         modules/sys_ioctl-tests.
6239         * modules/sys_ioctl-tests: Depend on it.
6240         * modules/sys_select-c++-tests: New file, extracted from
6241         modules/sys_select-tests.
6242         * modules/sys_select-tests: Depend on it.
6243         * modules/sys_socket-c++-tests: New file, extracted from
6244         modules/sys_socket-tests.
6245         * modules/sys_socket-tests: Depend on it.
6246         * modules/sys_stat-c++-tests: New file, extracted from
6247         modules/sys_stat-tests.
6248         * modules/sys_stat-tests: Depend on it.
6249         * modules/sys_time-c++-tests: New file, extracted from
6250         modules/sys_time-tests.
6251         * modules/sys_time-tests: Depend on it.
6252         * modules/time-c++-tests: New file, extracted from modules/time-tests.
6253         * modules/time-tests: Depend on it.
6254         * modules/unistd-c++-tests: New file, extracted from
6255         modules/unistd-tests.
6256         * modules/unistd-tests: Depend on it.
6257         * modules/wchar-c++-tests: New file, extracted from
6258         modules/wchar-tests.
6259         * modules/wchar-tests: Depend on it.
6260         * modules/wctype-c++-tests: New file, extracted from
6261         modules/wctype-tests.
6262         * modules/wctype-tests: Depend on it.
6263         Reported by Simon Josefsson.
6264
6265 2010-03-28  Bruno Haible  <bruno@clisp.org>
6266
6267         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
6268         * gnulib-tool (func_exists_module): New function, extracted from
6269         func_verify_module.
6270         (func_verify_module): Use it.
6271         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
6272         'foo' only if 'foo' exists.
6273         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
6274         module.
6275
6276 2010-03-28  Bruno Haible  <bruno@clisp.org>
6277
6278         gnulib-tool: Add support for special categories of tests.
6279         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
6280         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
6281         (func_usage): Document them.
6282         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
6283         inc_unportable_tests, inc_all_tests): New variables.
6284         (func_acceptable): Consider these variables.
6285         (func_modules_transitive_closure): Make it work when the 'Status' field
6286         consists of multiple words.
6287         (func_import): Store and restore the values of inc_cxx_tests,
6288         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
6289         inc_all_tests in gnulib-comp.m4.
6290         (func_create_testdir): Set inc_all_tests to true.
6291         * doc/gnulib.texi (Extra tests modules): New section.
6292         Suggested by Jim Meyering.
6293
6294 2010-03-28  Bruno Haible  <bruno@clisp.org>
6295
6296         ansi-c++-opt: Allow turning off the C++ build by default.
6297         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
6298         gl_CXX_CHOICE_DEFAULT_NO is defined.
6299         Requested by Eric Blake.
6300
6301 2010-03-28  Bruno Haible  <bruno@clisp.org>
6302
6303         unistd: Avoid #define replacements in C++ mode.
6304         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
6305         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
6306         setsockopt, shutdown, select): In C++, attach a warning to the function
6307         if possible, rather than #defining the symbol to a dysfunctional alias.
6308         Reported by John W. Eaton <jwe@gnu.org>.
6309
6310 2010-03-28  Bruno Haible  <bruno@clisp.org>
6311
6312         Fix link errors on mingw.
6313         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
6314         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
6315         $(LIBSOCKET).
6316         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
6317         $(LIBSOCKET).
6318
6319 2010-03-28  Bruno Haible  <bruno@clisp.org>
6320             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6321
6322         lib-ignore: Determine different options for different compilers.
6323         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
6324         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
6325         Add comments.
6326         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
6327         * NEWS: Mention the change.
6328
6329 2010-03-27  Bruno Haible  <bruno@clisp.org>
6330
6331         Remove unused GNULIB_XYZ macro definitions.
6332         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
6333         * modules/fseek (configure.ac): Likewise.
6334         * modules/ioctl (configure.ac): Likewise.
6335         * modules/open (configure.ac): Likewise.
6336         * modules/stdlib-safer (configure.ac): Likewise.
6337
6338 2010-03-27  Bruno Haible  <bruno@clisp.org>
6339
6340         Add a remark about certain modules.
6341         * modules/malloc (Comment): New section.
6342         * modules/realloc (Comment): Likewise.
6343         * modules/sigpipe (Comment): Likewise.
6344
6345 2010-03-27  Bruno Haible  <bruno@clisp.org>
6346
6347         Resolve conflict between the two kinds of module indicators.
6348         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
6349         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
6350         * modules/canonicalize (configure.ac): Invoke
6351         gl_MODULE_INDICATOR_FOR_TESTS.
6352         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
6353         GNULIB_XYZ.
6354         * tests/test-dirent-c++.cc: Likewise.
6355         * tests/test-dirent-safer.c: Likewise.
6356         * tests/test-dup2.c: Likewise.
6357         * tests/test-fchdir.c: Likewise.
6358         * tests/test-fcntl-h-c++.cc: Likewise.
6359         * tests/test-getopt.c: Likewise.
6360         * tests/test-getopt.h: Likewise.
6361         * tests/test-langinfo-c++.cc: Likewise.
6362         * tests/test-locale-c++.cc: Likewise.
6363         * tests/test-math-c++.cc: Likewise.
6364         * tests/test-pty-c++.cc: Likewise.
6365         * tests/test-search-c++.cc: Likewise.
6366         * tests/test-signal-c++.cc: Likewise.
6367         * tests/test-spawn-c++.cc: Likewise.
6368         * tests/test-stdio-c++.cc: Likewise.
6369         * tests/test-stdlib-c++.cc: Likewise.
6370         * tests/test-string-c++.cc: Likewise.
6371         * tests/test-sys_ioctl-c++.cc: Likewise.
6372         * tests/test-sys_select-c++.cc: Likewise.
6373         * tests/test-sys_socket-c++.cc: Likewise.
6374         * tests/test-sys_stat-c++.cc: Likewise.
6375         * tests/test-sys_time-c++.cc: Likewise.
6376         * tests/test-time-c++.cc: Likewise.
6377         * tests/test-unistd-c++.cc: Likewise.
6378         * tests/test-wchar-c++.cc: Likewise.
6379         * tests/uninorm/test-u8-nfc.c: Likewise.
6380         * tests/uninorm/test-u8-nfd.c: Likewise.
6381         * tests/uninorm/test-u8-nfkc.c: Likewise.
6382         * tests/uninorm/test-u8-nfkd.c: Likewise.
6383         * tests/uninorm/test-u16-nfc.c: Likewise.
6384         * tests/uninorm/test-u16-nfd.c: Likewise.
6385         * tests/uninorm/test-u16-nfkc.c: Likewise.
6386         * tests/uninorm/test-u16-nfkd.c: Likewise.
6387         * tests/uninorm/test-u32-nfc.c: Likewise.
6388         * tests/uninorm/test-u32-nfc-big.c: Likewise.
6389         * tests/uninorm/test-u32-nfd.c: Likewise.
6390         * tests/uninorm/test-u32-nfd-big.c: Likewise.
6391         * tests/uninorm/test-u32-nfkc.c: Likewise.
6392         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
6393         * tests/uninorm/test-u32-nfkd.c: Likewise.
6394         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
6395         * tests/uninorm/test-u32-normalize-big.c: Likewise.
6396
6397 2010-03-27  Bruno Haible  <bruno@clisp.org>
6398
6399         Distinguish two kinds of module indicators.
6400         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
6401         gl_MODULE_INDICATOR.
6402         (gl_MODULE_INDICATOR): New macro.
6403         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
6404         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
6405         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
6406         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
6407         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
6408         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
6409         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
6410         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
6411         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
6412         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
6413         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
6414         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
6415         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
6416         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
6417         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
6418         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
6419         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
6420         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
6421         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
6422         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
6423         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
6424         * modules/cloexec (configure.ac): Likewise.
6425         * modules/getopt-gnu (configure.ac): Likewise.
6426         * modules/uninorm/u8-normalize (configure.ac): Likewise.
6427         * modules/uninorm/u16-normalize (configure.ac): Likewise.
6428         * modules/uninorm/u32-normalize (configure.ac): Likewise.
6429         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
6430
6431 2010-03-27  Bruno Haible  <bruno@clisp.org>
6432
6433         New module description field 'Comment'.
6434         * gnulib-tool: New option --extract-comment.
6435         (func_usage): Document it.
6436         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
6437         (func_get_comment): New function.
6438         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
6439
6440 2010-03-27  Bruno Haible  <bruno@clisp.org>
6441
6442         Addendum to 2010-02-07 commit.
6443         * gnulib-tool (func_usage): Document --extract-applicability option.
6444
6445 2010-03-27  Bruno Haible  <bruno@clisp.org>
6446
6447         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
6448         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
6449         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
6450         rather than link errors.
6451
6452 2010-03-27  Bruno Haible  <bruno@clisp.org>
6453
6454         Avoid side effects from tests-related modules on the compilation of lib.
6455         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
6456         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
6457         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
6458         parameter. Emit into AM_CPPFLAGS a definition of the designated C
6459         macro.
6460         (func_import): Define a witness macro. Assign it a value that depends
6461         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
6462         tests-related modules.
6463         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
6464         Reported by Jim Meyering.
6465
6466 2010-03-27  Bruno Haible  <bruno@clisp.org>
6467
6468         Factorize common .m4 code.
6469         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
6470         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
6471         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
6472         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
6473         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
6474         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
6475         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
6476         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
6477         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
6478         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
6479         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
6480         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
6481         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
6482         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
6483         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
6484         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
6485         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
6486         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
6487         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
6488         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
6489         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
6490         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
6491         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
6492         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
6493         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
6494         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
6495         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
6496         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
6497         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
6498         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
6499         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
6500         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
6501
6502 2010-03-27  Bruno Haible  <bruno@clisp.org>
6503
6504         Fix a compilation error on Cygwin with g++ >= 4.3.
6505         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
6506         if it is undefined or if we alias it to chmod.
6507         (lstat): Don't warn about the use of this function if it is undefined
6508         or if we alias it to stat.
6509         Reported by Simon Josefsson.
6510
6511 2010-03-27  Bruno Haible  <bruno@clisp.org>
6512
6513         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
6514         * modules/getlogin (configure.ac): Update.
6515
6516         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
6517         * modules/getlogin_r (configure.ac): Update.
6518
6519         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
6520         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
6521         * modules/inet_ntop (configure.ac): Update.
6522
6523         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
6524         * modules/inet_pton (configure.ac): Update.
6525
6526         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
6527         * modules/mbslen (configure.ac): Update.
6528
6529         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
6530         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
6531         * modules/forkpty (configure.ac): Update.
6532         * modules/openpty (configure.ac): Update.
6533
6534 2010-03-26  Simon Josefsson  <simon@josefsson.org>
6535
6536         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
6537         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
6538
6539 2010-03-25  Eric Blake  <eblake@redhat.com>
6540
6541         maint: use pragma consistently across replacement headers
6542         * lib/ctype.in.h (system_header): Hoist for consistent placement.
6543         * lib/dirent.in.h (system_header): Likewise.
6544         * lib/errno.in.h (system_header): Likewise.
6545         * lib/float.in.h (system_header): Likewise.
6546         * lib/getopt.in.h (system_header): Likewise.
6547         * lib/iconv.in.h (system_header): Likewise.
6548         * lib/inttypes.in.h (system_header): Likewise.
6549         * lib/langinfo.in.h (system_header): Likewise.
6550         * lib/locale.in.h (system_header): Likewise.
6551         * lib/math.in.h (system_header): Likewise.
6552         * lib/netdb.in.h (system_header): Likewise.
6553         * lib/netinet_in.in.h (system_header): Likewise.
6554         * lib/pty.in.h (system_header): Likewise.
6555         * lib/sched.in.h (system_header): Likewise.
6556         * lib/se-selinux.in.h (system_header): Likewise.
6557         * lib/search.in.h (system_header): Likewise.
6558         * lib/spawn.in.h (system_header): Likewise.
6559         * lib/stdarg.in.h (system_header): Likewise.
6560         * lib/stdint.in.h (system_header): Likewise.
6561         * lib/string.in.h (system_header): Likewise.
6562         * lib/strings.in.h (system_header): Likewise.
6563         * lib/sys_file.in.h (system_header): Likewise.
6564         * lib/sys_ioctl.in.h (system_header): Likewise.
6565         * lib/sys_socket.in.h (system_header): Likewise.
6566         * lib/sys_times.in.h (system_header): Likewise.
6567         * lib/sys_utsname.in.h (system_header): Likewise.
6568         * lib/sys_wait.in.h (system_header): Likewise.
6569         * lib/sysexits.in.h (system_header): Likewise.
6570         * lib/unistd.in.h (system_header): Likewise.
6571         * lib/wctype.in.h (system_header): Likewise.
6572
6573         arpa/inet: fix mingw compilation warning
6574         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
6575         Reported by Matthew Bolte.
6576
6577 2010-03-25  Bruno Haible  <bruno@clisp.org>
6578
6579         Avoid collision between gnulib wrapper and libintl wrapper.
6580         * lib/printf.c (printf): Don't define if a printf wrapper is already
6581         defined in intl/printf.c.
6582         Reported by Michel Boaventura <michel@michelboaventura.com>.
6583
6584 2010-03-25  Bruno Haible  <bruno@clisp.org>
6585
6586         Use ANSI C.
6587         * lib/readutmp.h (getutent): Provide ANSI C prototype.
6588
6589 2010-03-25  Bruno Haible  <bruno@clisp.org>
6590
6591         Minor formatting changes.
6592         * lib/acosl.c: Insert space before function argument list.
6593         * lib/argz.c: Likewise.
6594         * lib/asinl.c: Likewise.
6595         * lib/expl.c: Likewise.
6596         * lib/gen-uni-tables.c: Likewise.
6597         * lib/gettext.h: Likewise.
6598         * lib/glthread/lock.h: Likewise.
6599         * lib/tanl.c: Likewise.
6600         * lib/uniname/uniname.c: Likewise.
6601         * tests/test-idpriv-drop.c: Likewise.
6602         * tests/test-idpriv-droptemp.c: Likewise.
6603         * tests/test-lock.c: Likewise.
6604         * tests/test-tls.c: Likewise.
6605         * lib/argp-help.c: Insert space before function-like macro argument
6606         list.
6607         * lib/memcmp.c: Likewise.
6608         * tests/test-base64.c: Likewise.
6609         * lib/localename.c: Insert space before sizeof's argument list.
6610         * lib/safe-alloc.h: Likewise.
6611         * lib/file-set.h: Insert space before macro argument list.
6612         * tests/test-argp.c: Likewise.
6613         * lib/argp-namefrob.h: Insert space before function parameter list.
6614         * lib/getaddrinfo.c: Likewise.
6615         * lib/netdb.in.h: Likewise.
6616         * lib/parse-duration.h: Likewise.
6617         * lib/parse-duration.c: Likewise.
6618         * lib/poll.c: Likewise.
6619         * lib/select.c: Likewise.
6620         * lib/trim.h: Likewise.
6621         * tests/test-usleep.c: Likewise.
6622         * lib/ldexpl.c: Insert space before function parameter list and before
6623         function argument list.
6624         * lib/logl.c: Likewise.
6625         * lib/sqrtl.c: Likewise.
6626         * lib/trim.c: Likewise.
6627         * lib/cosl.c: Use GNU style indentation. Insert space before function
6628         argument list.
6629         * lib/sinl.c: Likewise.
6630         * lib/tsearch.c: Insert space after 'for'.
6631         Reported by Jim Meyering.
6632
6633 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
6634
6635         * maint.mk (sc_Wundef_boolean): Check for the presence of the
6636         config header before grepping, as it's not present before
6637         autoreconf/configure are run.  Reported by Simon Josefsson.
6638
6639 2010-03-23  Bruno Haible  <bruno@clisp.org>
6640
6641         pt_chown: Make it work with automake < 1.11.
6642         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
6643         Reported by Simon Josefsson.
6644
6645 2010-03-23  Bruno Haible  <bruno@clisp.org>
6646
6647         pt_chown: Don't depend on GPLed modules.
6648         * lib/pt_chown.c: Don't include idpriv.h.
6649         (main): Don't drop privileges.
6650         * modules/pt_chown (Depends-on): Remove idpriv-drop.
6651         Reported by Simon Josefsson.
6652
6653 2010-03-24  Simon Josefsson  <simon@josefsson.org>
6654
6655         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
6656         suggestions from karl@freefriends.org (Karl Berry).
6657
6658 2010-03-22  Eric Blake  <eblake@redhat.com>
6659
6660         gethostname: further tweaks
6661         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
6662         are overriding gethostname.
6663         Suggested by Bruno Haible.
6664
6665 2010-03-21  Bruno Haible  <bruno@clisp.org>
6666
6667         Fix comments.
6668         * lib/forkpty.c (rpl_forkpty): Fix comment.
6669         * lib/openpty.c (rpl_openpty): Likewise.
6670         Reported by Eric Blake.
6671
6672 2010-03-22  Eric Blake  <eblake@redhat.com>
6673
6674         gethostname: fix build on mingw
6675         * lib/unistd.in.h (includes): Work around fact that mingw
6676         <winsock2.h> re-includes <unistd.h>, by avoiding any
6677         redeclarations if we are being included by <winsock2.h>.
6678         Reported by Matthias Bolte.
6679
6680 2010-03-21  Bruno Haible  <bruno@clisp.org>
6681
6682         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
6683         * lib/forkpty.c (forkpty): New replacement function, from glibc with
6684         modifications.
6685         * lib/pty.in.h (forkpty): Update declaration. Add comments.
6686         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
6687         provide the replacement.
6688         * modules/forkpty (Depends-on): Add openpty, login_tty.
6689         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
6690         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
6691         * doc/glibc-functions/forkpty.texi: More supported platforms.
6692         * config/srclist.txt: Add forkpty.c (commented).
6693
6694 2010-03-21  Bruno Haible  <bruno@clisp.org>
6695
6696         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
6697         (Makefile.am): Verify that PTY_LIB is defined.
6698
6699         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
6700
6701 2010-03-21  Bruno Haible  <bruno@clisp.org>
6702
6703         Tests for module 'login_tty'.
6704         * modules/login_tty-tests: New file.
6705         * tests/test-login_tty.c: New file.
6706
6707         New module 'login_tty'.
6708         * lib/login_tty.c: New file.
6709         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
6710         * modules/login_tty: New file.
6711         * doc/glibc-functions/login_tty.texi: Mention the new module.
6712
6713 2010-03-21  Bruno Haible  <bruno@clisp.org>
6714
6715         login_tty: Documentation.
6716         * doc/glibc-functions/login_tty.texi: New file.
6717         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
6718
6719 2010-03-21  Bruno Haible  <bruno@clisp.org>
6720
6721         pty: Consistent macro naming.
6722         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
6723         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
6724         * modules/pty (configure.ac): Update.
6725
6726 2010-03-21  Bruno Haible  <bruno@clisp.org>
6727
6728         Tests for openpty: Make stricter.
6729         * tests/test-openpty.c (main): Add test of canonical processing and
6730         erase.
6731         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
6732
6733         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
6734         * lib/openpty.c (openpty): New replacement function.
6735         * lib/pty.in.h: Include <termios.h>.
6736         (openpty): Update declaration. Add comments.
6737         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
6738         is not declared, arrange to provide the replacement. Check for _getpty
6739         and posix_openpt.
6740         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
6741         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
6742         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
6743         * modules/pty-tests (test_pty_c___LDADD): New variable.
6744         * doc/glibc-functions/openpty.texi: More supported platforms.
6745
6746 2010-03-21  Bruno Haible  <bruno@clisp.org>
6747
6748         setenv: Tweaks.
6749         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
6750         the test program.
6751         * doc/posix-functions/setenv.texi: Update platforms list.
6752
6753 2010-03-21  Bruno Haible  <bruno@clisp.org>
6754
6755         New module 'unlockpt'.
6756         * lib/unlockpt.c: New file, from glibc with modifications.
6757         * m4/unlockpt.m4: New file.
6758         * modules/unlockpt: New file.
6759         * lib/stdlib.in.h (unlockpt): New declaration.
6760         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
6761         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
6762         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
6763         HAVE_UNLOCKPT.
6764         * doc/posix-functions/unlockpt.texi: Mention the new module.
6765         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
6766         * config/srclist.txt: Add unlockpt.c (commented).
6767
6768 2010-03-21  Jim Meyering  <meyering@redhat.com>
6769
6770         maint.mk: prohibit inclusion of "intprops.h" without use
6771         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
6772
6773 2010-03-21  Bruno Haible  <bruno@clisp.org>
6774
6775         New module 'grantpt'.
6776         * lib/grantpt.c: New file, from glibc with modifications.
6777         * m4/grantpt.m4: New file.
6778         * modules/grantpt: New file.
6779         * lib/stdlib.in.h (grantpt): New declaration.
6780         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
6781         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
6782         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
6783         HAVE_GRANTPT.
6784         * doc/posix-functions/grantpt.texi: Mention the new module.
6785         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
6786         * config/srclist.txt: Add grantpt.c (commented).
6787
6788 2010-03-21  Bruno Haible  <bruno@clisp.org>
6789
6790         New module 'pt_chown'.
6791         * lib/pt_chown.c: New file, from glibc with modifications.
6792         * lib/pty-private.h: New file, from glibc with modifications.
6793         * modules/pt_chown: New file.
6794         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
6795
6796 2010-03-21  Bruno Haible  <bruno@clisp.org>
6797
6798         Tests for module 'ptsname'.
6799         * modules/ptsname-tests: New file.
6800         * tests/test-ptsname.c: New file.
6801
6802         New module 'ptsname'.
6803         * lib/ptsname.c: New file, from glibc with modifications.
6804         * m4/ptsname.m4: New file.
6805         * modules/ptsname: New file.
6806         * lib/stdlib.in.h (ptsname): New declaration.
6807         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
6808         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
6809         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
6810         HAVE_PTSNAME.
6811         * doc/posix-functions/ptsname.texi: Mention the new module.
6812         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
6813         * config/srclist.txt: Add ptsname.c (commented).
6814
6815 2010-03-21  Bruno Haible  <bruno@clisp.org>
6816
6817         Tests for module 'ttyname_r'.
6818         * modules/ttyname_r-tests: New file.
6819         * tests/test-ttyname_r.c: New file.
6820
6821         New module 'ttyname_r'.
6822         * lib/ttyname_r.c: New file.
6823         * m4/ttyname_r.m4: New file.
6824         * modules/ttyname_r: New file.
6825         * lib/unistd.in.h (ttyname_r): New declaration.
6826         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
6827         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
6828         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
6829         HAVE_TTYNAME_R.
6830         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
6831         * doc/posix-functions/ttyname_r.texi: Mention the new module.
6832
6833 2010-03-20  Bruno Haible  <bruno@clisp.org>
6834
6835         signal: Undefine macro definitions in C++ mode.
6836         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
6837         sigfillset): Undefine macro definitions from the system header in C++
6838         mode.
6839         Reported by John W. Eaton <jwe@gnu.org>.
6840
6841 2010-03-20  Bruno Haible  <bruno@clisp.org>
6842
6843         Ensure no #include statements inside extern "C" { ... }.
6844         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
6845         contain #include statements.
6846         * lib/time.in.h: Likewise.
6847
6848 2010-03-20  Bruno Haible  <bruno@clisp.org>
6849
6850         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
6851         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
6852         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
6853         Reported by John W. Eaton <jwe@gnu.org>.
6854
6855 2010-03-20  Bruno Haible  <bruno@clisp.org>
6856
6857         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
6858         Reported by Jim Meyering.
6859
6860 2010-03-20  Bruno Haible  <bruno@clisp.org>
6861
6862         pipe: Set errno upon failure.
6863         * lib/pipe.h: Specify that when -1 is returned, errno is set.
6864         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
6865         errno value in error message.
6866
6867 2010-03-20  Bruno Haible  <bruno@clisp.org>
6868             Jim Meyering  <meyering@redhat.com>
6869
6870         lchown: Avoid "unused variable" warning.
6871         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
6872
6873 2010-03-20  Bruno Haible  <bruno@clisp.org>
6874
6875         Work around unlink() bug on MacOS X 10.5.6.
6876         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
6877         attempting to unlink a parent directory.
6878         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
6879         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
6880         activate for the replacement function.
6881         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
6882
6883 2010-03-20  Bruno Haible  <bruno@clisp.org>
6884
6885         Fix link errors on Solaris 8.
6886         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
6887         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
6888
6889 2010-03-19  Jim Meyering  <meyering@redhat.com>
6890
6891         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
6892         The _LIBC implementation of build_range_exp correctly honors the
6893         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
6894         However, the non-_LIBC implementation would ignore that syntax-bit
6895         flag and return REG_ERANGE unconditionally.
6896         This change makes it honor that flag.
6897         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
6898         Make two pointer parameters "const".
6899         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
6900         (parse_bracket_exp): Update caller.
6901
6902         regex.m4: correct the reversed range endpoint ([b-a]) test
6903         * m4/regex.m4: When requiring that [b-a] evoke failure,
6904         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
6905         test pass once again for x86-based systems.
6906
6907 2010-03-19  Bruno Haible  <bruno@clisp.org>
6908
6909         scandir: Fix link error on Solaris 8.
6910         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
6911         macros.
6912
6913 2010-03-19  Bruno Haible  <bruno@clisp.org>
6914
6915         getusershell: Fix documentation.
6916         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
6917         module.
6918         * doc/glibc-functions/setusershell.texi: Likewise.
6919
6920         getusershell: Provide declaration, missing on Solaris 9.
6921         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
6922         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
6923         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
6924         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
6925         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6926         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
6927         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
6928         HAVE_GETUSERSHELL.
6929         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
6930
6931 2010-03-19  Bruno Haible  <bruno@clisp.org>
6932
6933         wctype: Provide iswblank function.
6934         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
6935         exists and is fine.
6936         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
6937         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
6938         * tests/test-wctype.c (main): Re-enable the iswblank tests.
6939         * doc/posix-functions/iswblank.texi: Update.
6940
6941 2010-03-19  Bruno Haible  <bruno@clisp.org>
6942
6943         Tests of module 'pty' in C++ mode.
6944         * modules/pty-tests: New file.
6945         * tests/test-pty-c++.cc: New file.
6946         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
6947
6948 2010-03-19  Eric Blake  <eblake@redhat.com>
6949
6950         logb: fix documentation
6951         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
6952         1.5 declaration bug.
6953
6954         forkpty, openpty: prefer glibc's const-safe prototype
6955         * lib/forkpty.c (rpl_forkpty): New file.
6956         * lib/openpty.c (rpl_openpty): Likewise.
6957         * modules/forkpty (Files): Distribute it.
6958         * modules/openpty (Files): Likewise.
6959         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
6960         check...
6961         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
6962         replacement for for non-const BSD signature.
6963         * modules/pty (Makefile.am): Substitute witnesses.
6964         * lib/pty.in.h (forkpty, openpty): Declare replacements.
6965         * tests/test-forkpty.c: Update signature check.
6966         * tests/test-openpty.c: Likewise.
6967         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
6968         * doc/glibc-functions/openpty.texi (openpty): Likewise.
6969
6970         forkpty, openpty: split functions into new modules
6971         * modules/pty (Makefile.am): Substitute new witnesses.
6972         (Libraries): Move library detection...
6973         * modules/forkpty: ...into new module.
6974         * modules/openpty: Another new module.
6975         * modules/pty-tests: Rename and split...
6976         * modules/forkpty-tests: ...to this...
6977         * modules/openpty-tests: ...and this.
6978         * tests/test-pty.c: Rename and split...
6979         * tests/test-forkpty.c: ...to this...
6980         * tests/test-openpty.c: ...and this.
6981         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
6982         (gl_PTY): Split library searching...
6983         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
6984         (gl_FORKPTY, gl_OPENPTY): New macros.
6985         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
6986         * NEWS: Mention the split.
6987         * MODULES.html.sh (Misc): Document the modules.
6988         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
6989         * doc/glibc-functions/openpty.texi (openpty): Likewise.
6990
6991         pty: improve replacement header
6992         * lib/pty.in.h: New file.
6993         * modules/pty (Files): Ship it.
6994         (Makefile.am): Always build replacement.
6995         * m4/pty.m4: Rename...
6996         * m4/pty_h.m4: ...to this.
6997         (gl_PTY): Modernize setting of witness macros; update check of
6998         forkpty to take proper advantage of cache.
6999         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
7000
7001         getopt: avoid compiler warning
7002         * lib/getopt.c (attribute_hidden): Remove unused macro.
7003
7004 2010-03-18  Bruno Haible  <bruno@clisp.org>
7005
7006         Fix link errors on Solaris 8.
7007         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
7008         * modules/search-tests (test_search_c___LDADD): Likewise.
7009         * modules/signal-tests (test_signal_c___LDADD): Likewise.
7010         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
7011         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
7012         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
7013         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
7014         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
7015         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
7016
7017 2010-03-18  Bruno Haible  <bruno@clisp.org>
7018
7019         Fix bug introduced on 2010-03-14.
7020         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
7021         (gl_SPAWN_H): Require it.
7022         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
7023         Reported by Simon Josefsson.
7024
7025 2010-03-18  Bruno Haible  <bruno@clisp.org>
7026
7027         Fix typo introduced on 2009-12-31.
7028         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
7029         posix_spawn_file_actions_adddup2.
7030
7031 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
7032         and Eric Blake  <eblake@redhat.com>
7033
7034         test-vc-list-files-git: make more robust
7035         * tests/test-vc-list-files-git.sh: Unset problematic environment
7036         variables.  Chain commands together.
7037
7038 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
7039
7040         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
7041         `AC_CHECK_DECL' invocation.
7042
7043 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
7044
7045         * lib/inttostr.c (inttostr): Make sure the invocation of verify
7046         appears before executable statements. Suggested by Petr Sumbera
7047         <Petr.Sumbera@Sun.COM>.
7048
7049 2010-03-14  Bruno Haible  <bruno@clisp.org>
7050
7051         * tests/test-flock.c (test_exclusive): Comment out a test that causes
7052         portability problems. Instead use a simpler test.
7053         (main): Check that invalid arguments are rejected only on Linux.
7054
7055 2010-03-14  Bruno Haible  <bruno@clisp.org>
7056
7057         Fix bug introduced on 2009-12-31.
7058         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
7059         gl_PREREQ_SYS_H_WINSOCK2 always.
7060         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
7061         SYS_SOCKET_H variable.
7062         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
7063         Update comments.
7064         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
7065         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
7066         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
7067         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
7068         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
7069
7070 2010-03-14  Bruno Haible  <bruno@clisp.org>
7071
7072         Fix values returned by sinl, cosl.
7073         * lib/trigl.h: Add specification comments.
7074         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
7075         that combines the values from the precomputed table with the values of
7076         the Chebyshev polynomials.
7077
7078 2010-03-14  Bruno Haible  <bruno@clisp.org>
7079
7080         Fix compilation error when modules 'posix_spawn[p]' are not used.
7081         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
7082         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
7083
7084 2010-03-14  Bruno Haible  <bruno@clisp.org>
7085
7086         Fix compilation error on mingw when module 'time_r' is not used.
7087         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
7088         is 1.
7089         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
7090         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
7091         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
7092         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
7093
7094 2010-03-14  Bruno Haible  <bruno@clisp.org>
7095
7096         Fix compilation error with Sun C.
7097         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
7098         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
7099         instead of GCC specific ULONG_LONG_MAX.
7100         * lib/xstrtoll.c: Likewise.
7101         * lib/xstrtoull.c: Likewise.
7102
7103 2010-03-13  Bruno Haible  <bruno@clisp.org>
7104
7105         Allow the user to disable C++ code and tests.
7106         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
7107         (gl_PROG_ANSI_CXX): Require it.
7108
7109 2010-03-13  Bruno Haible  <bruno@clisp.org>
7110
7111         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
7112         cases.
7113
7114 2010-03-13  Bruno Haible  <bruno@clisp.org>
7115
7116         Test that gnulib does not break the standard C++ headers.
7117         * tests/test-locale-c++2.cc: New file.
7118         * modules/locale-tests (Files): Add it.
7119         (Makefile.am): Compile it for test-locale-c++.
7120         * tests/test-math-c++2.cc: New file.
7121         * modules/math-tests (Files): Add it.
7122         (Makefile.am): Compile it for test-math-c++.
7123         * tests/test-signal-c++2.cc: New file.
7124         * modules/signal-tests (Files): Add it.
7125         (Makefile.am): Compile it for test-signal-c++.
7126         * tests/test-stdio-c++2.cc: New file.
7127         * modules/stdio-tests (Files): Add it.
7128         (Makefile.am): Compile it for test-stdio-c++.
7129         * tests/test-stdlib-c++2.cc: New file.
7130         * modules/stdlib-tests (Files): Add it.
7131         (Makefile.am): Compile it for test-stdlib-c++.
7132         * tests/test-string-c++2.cc: New file.
7133         * modules/string-tests (Files): Add it.
7134         (Makefile.am): Compile it for test-string-c++.
7135         * tests/test-time-c++2.cc: New file.
7136         * modules/time-tests (Files): Add it.
7137         (Makefile.am): Compile it for test-time-c++.
7138         Reported by John W. Eaton <jwe@gnu.org>.
7139
7140 2010-03-13  Bruno Haible  <bruno@clisp.org>
7141
7142         * gnulib-tool (func_usage): Clarify which options are available for
7143         --create-testdir and --create-megatestdir.
7144
7145 2010-03-13  Bruno Haible  <bruno@clisp.org>
7146
7147         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
7148         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
7149         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
7150         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
7151         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
7152         when appropriate.
7153         Reported by Jim Meyering.
7154
7155 2010-03-12  Simon Josefsson  <simon@josefsson.org>
7156
7157         * gnulib-tool (func_import): Explain origin of code.
7158
7159 2010-03-12  Bruno Haible  <bruno@clisp.org>
7160
7161         Fix problem with automake's definition of CXXLINK.
7162         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
7163         Reported by Simon Josefsson and Ludovic Courtès.
7164
7165 2010-03-12  Bruno Haible  <bruno@clisp.org>
7166
7167         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
7168         stable releases.
7169
7170 2010-03-11  Bruno Haible  <bruno@clisp.org>
7171
7172         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
7173         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
7174         whether the system provides one variant or multiple variants of the
7175         function.
7176         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
7177         C++ compilers.
7178         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
7179         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
7180         Reported by Jim Meyering.
7181
7182 2010-03-09  Simon Josefsson  <simon@josefsson.org>
7183
7184         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
7185
7186 2010-03-08  Bruno Haible  <bruno@clisp.org>
7187
7188         gnulib-tool: Add support for --libtool in --create-testdir.
7189         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
7190         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
7191
7192 2010-03-08  Eric Blake  <eblake@redhat.com>
7193
7194         gnulib-tool.texi: mention possibility of git submodule
7195         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
7196         submodules.
7197         * doc/.gitignore: Ignore another generated file.
7198
7199 2010-03-08  Karl Berry  <karl@gnu.org>
7200
7201         * doc/gnulib-tool.texi (VCS Issues): Mention third option
7202         of committing gnulib files while skipping others.
7203
7204 2010-03-07  Bruno Haible  <bruno@clisp.org>
7205
7206         Tests of module 'wctype' in C++ mode.
7207         * tests/test-wctype-c++.cc: New file.
7208         * modules/wctype-tests (Files): Add it and tests/signature.h.
7209         (Depends-on): Add ansi-c++-opt.
7210         (Makefile.am): Arrange to compile and run test-wctype-c++.
7211
7212         Tests of module 'wchar' in C++ mode.
7213         * tests/test-wchar-c++.cc: New file.
7214         * modules/wchar-tests (Files): Add it and tests/signature.h.
7215         (Depends-on): Add ansi-c++-opt.
7216         (Makefile.am): Arrange to compile and run test-wchar-c++.
7217         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
7218         gl_MODULE_INDICATOR.
7219
7220         Tests of module 'unistd' in C++ mode.
7221         * tests/test-unistd-c++.cc: New file.
7222         * modules/unistd-tests (Files): Add it and tests/signature.h.
7223         (Depends-on): Add ansi-c++-opt.
7224         (Makefile.am): Arrange to compile and run test-unistd-c++.
7225         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
7226         gl_MODULE_INDICATOR.
7227
7228         Tests of module 'time' in C++ mode.
7229         * tests/test-time-c++.cc: New file.
7230         * modules/time-tests (Files): Add it and tests/signature.h.
7231         (Depends-on): Add ansi-c++-opt.
7232         (Makefile.am): Arrange to compile and run test-time-c++.
7233         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
7234
7235         Tests of module 'sys_time' in C++ mode.
7236         * tests/test-sys_time-c++.cc: New file.
7237         * modules/sys_time-tests (Files): Add it and tests/signature.h.
7238         (Depends-on): Add ansi-c++-opt.
7239         (Makefile.am): Arrange to compile and run test-sys_time-c++.
7240         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
7241         gl_MODULE_INDICATOR.
7242
7243         Tests of module 'sys_stat' in C++ mode.
7244         * tests/test-sys_stat-c++.cc: New file.
7245         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
7246         (Depends-on): Add ansi-c++-opt.
7247         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
7248         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
7249         gl_MODULE_INDICATOR.
7250
7251         Tests of module 'sys_socket' in C++ mode.
7252         * tests/test-sys_socket-c++.cc: New file.
7253         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
7254         (Depends-on): Add ansi-c++-opt.
7255         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
7256         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
7257         gl_MODULE_INDICATOR.
7258
7259         Tests of module 'sys_select' in C++ mode.
7260         * tests/test-sys_select-c++.cc: New file.
7261         * modules/sys_select-tests (Files): Add it and tests/signature.h.
7262         (Depends-on): Add ansi-c++-opt.
7263         (Makefile.am): Arrange to compile and run test-sys_select-c++.
7264         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
7265         gl_MODULE_INDICATOR.
7266
7267         Tests of module 'sys_ioctl' in C++ mode.
7268         * tests/test-sys_ioctl-c++.cc: New file.
7269         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
7270         (Depends-on): Add ansi-c++-opt.
7271         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
7272         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
7273         gl_MODULE_INDICATOR.
7274
7275         Tests of module 'string' in C++ mode.
7276         * tests/test-string-c++.cc: New file.
7277         * modules/string-tests (Files): Add it and tests/signature.h.
7278         (Depends-on): Add ansi-c++-opt.
7279         (Makefile.am): Arrange to compile and run test-string-c++.
7280         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
7281         gl_MODULE_INDICATOR.
7282
7283         Tests of module 'stdlib' in C++ mode.
7284         * tests/test-stdlib-c++.cc: New file.
7285         * modules/stdlib-tests (Files): Add it and tests/signature.h.
7286         (Depends-on): Add ansi-c++-opt.
7287         (Makefile.am): Arrange to compile and run test-stdlib-c++.
7288         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
7289         gl_MODULE_INDICATOR.
7290
7291         Tests of module 'stdio' in C++ mode.
7292         * tests/test-stdio-c++.cc: New file.
7293         * modules/stdio-tests (Files): Add it and tests/signature.h.
7294         (Depends-on): Add ansi-c++-opt.
7295         (Makefile.am): Arrange to compile and run test-stdio-c++.
7296         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
7297         gl_MODULE_INDICATOR.
7298
7299         Tests of module 'spawn' in C++ mode.
7300         * tests/test-spawn-c++.cc: New file.
7301         * modules/spawn-tests (Files): Add it and tests/signature.h.
7302         (Depends-on): Add ansi-c++-opt.
7303         (Makefile.am): Arrange to compile and run test-spawn-c++.
7304         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
7305         gl_MODULE_INDICATOR.
7306
7307         Tests of module 'signal' in C++ mode.
7308         * tests/test-signal-c++.cc: New file.
7309         * modules/signal-tests (Files): Add it and tests/signature.h.
7310         (Depends-on): Add ansi-c++-opt.
7311         (Makefile.am): Arrange to compile and run test-signal-c++.
7312         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
7313         gl_MODULE_INDICATOR.
7314
7315         Tests of module 'search' in C++ mode.
7316         * tests/test-search-c++.cc: New file.
7317         * modules/search-tests (Files): Add it and tests/signature.h.
7318         (Depends-on): Add ansi-c++-opt.
7319         (Makefile.am): Arrange to compile and run test-search-c++.
7320         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
7321         gl_MODULE_INDICATOR.
7322
7323         Tests of module 'math' in C++ mode.
7324         * tests/test-math-c++.cc: New file.
7325         * modules/math-tests (Files): Add it and tests/signature.h.
7326         (Depends-on): Add ansi-c++-opt.
7327         (Makefile.am): Arrange to compile and run test-math-c++.
7328         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
7329
7330         Tests of module 'locale' in C++ mode.
7331         * tests/test-locale-c++.cc: New file.
7332         * modules/locale-tests (Files): Add it and tests/signature.h.
7333         (Depends-on): Add ansi-c++-opt.
7334         (Makefile.am): Arrange to compile and run test-locale-c++.
7335         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
7336         gl_MODULE_INDICATOR.
7337
7338         Tests of module 'langinfo' in C++ mode.
7339         * tests/test-langinfo-c++.cc: New file.
7340         * modules/langinfo-tests (Files): Add it and tests/signature.h.
7341         (Depends-on): Add ansi-c++-opt.
7342         (Makefile.am): Arrange to compile and run test-langinfo-c++.
7343         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
7344         gl_MODULE_INDICATOR.
7345
7346         Tests of module 'iconv-h' in C++ mode.
7347         * tests/test-iconv-h-c++.cc: New file.
7348         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
7349         (Depends-on): Add ansi-c++-opt.
7350         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
7351
7352         Tests of module 'glob' in C++ mode.
7353         * tests/test-glob-c++.cc: New file.
7354         * modules/glob-tests (Files): Add it.
7355         (Depends-on): Add ansi-c++-opt.
7356         (Makefile.am): Arrange to compile and run test-glob-c++.
7357
7358         Tests of module 'fcntl-h' in C++ mode.
7359         * tests/test-fcntl-h-c++.cc: New file.
7360         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
7361         (Depends-on): Add ansi-c++-opt.
7362         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
7363         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
7364         gl_MODULE_INDICATOR.
7365
7366         Tests of module 'dirent' in C++ mode.
7367         * tests/test-dirent-c++.cc: New file.
7368         * modules/dirent-tests (Files): Add it and tests/signature.h.
7369         (Depends-on): Add ansi-c++-opt.
7370         (Makefile.am): Arrange to compile and run test-dirent-c++.
7371         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
7372         gl_MODULE_INDICATOR.
7373
7374         New module 'ansi-c++-opt'.
7375         * modules/ansi-c++-opt: New file.
7376         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
7377
7378         Document C++ namespace mode.
7379         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
7380
7381         wctype: Avoid #define replacements in C++ mode.
7382         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
7383         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
7384         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
7385         In C++, define a namespaced alias symbol.
7386         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
7387         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
7388         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
7389         rule.
7390
7391         wchar: Avoid #define replacements in C++ mode.
7392         * lib/wchar.in.h: Include c++defs.h.
7393         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
7394         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
7395         symbol.
7396         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
7397         * modules/wchar (Depends-on): Add c++defs.
7398         (Makefile.am): Update wchar.h rule.
7399
7400         unistd: Avoid #define replacements in C++ mode.
7401         * lib/unistd.in.h: Include c++defs.h.
7402         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
7403         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
7404         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
7405         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
7406         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
7407         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
7408         symbol.
7409         (environ): Update.
7410         * modules/unistd (Depends-on): Add c++defs.
7411         (Makefile.am): Update unistd.h rule.
7412
7413         time: Avoid #define replacements in C++ mode.
7414         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
7415         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
7416         define a namespaced alias symbol.
7417         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
7418         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
7419         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
7420         * modules/time (Depends-on): Add c++defs, warn-on-use.
7421         (Makefile.am): Update time.h rule.
7422         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
7423         * modules/nanosleep (configure.ac): Likewise.
7424         * modules/strptime (configure.ac): Likewise.
7425         * modules/timegm (configure.ac): Likewise.
7426
7427         sys_time: Avoid #define replacements in C++ mode.
7428         * lib/sys_time.in.h: Include c++defs.h.
7429         (gettimeofday): In C++, define a namespaced alias symbol.
7430         * modules/sys_time (Depends-on): Add c++defs.
7431         (Makefile.am): Update sys/time.h rule.
7432
7433         sys_stat: Avoid #define replacements in C++ mode.
7434         * lib/sys_stat.in.h: Include c++defs.h.
7435         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
7436         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
7437         namespaced alias symbol.
7438         In C++, define a namespaced alias symbol.
7439         * modules/sys_stat (Depends-on): Add c++defs.
7440         (Makefile.am): Update sys/stat.h rule.
7441
7442         sys_socket: Avoid #define replacements in C++ mode.
7443         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
7444         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
7445         definitions also when the system has a <sys/socket.h>.
7446         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
7447         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
7448         In C++, define a namespaced alias symbol.
7449         * modules/sys_socket (Depends-on): Add c++defs.
7450         (Makefile.am): Update sys/socket.h rule.
7451
7452         sys_select: Avoid #define replacements in C++ mode.
7453         * lib/sys_select.in.h: Include c++defs.h. Enable the function
7454         definitions also when the system has a <sys/select.h>.
7455         (select): In C++, define a namespaced alias symbol.
7456         * modules/sys_select (Depends-on): Add c++defs.
7457         (Makefile.am): Update sys/select.h rule.
7458
7459         sys_ioctl: Avoid #define replacements in C++ mode.
7460         * lib/sys_ioctl.in.h: Include c++defs.h.
7461         (ioctl): In C++, define a namespaced alias symbol.
7462         * modules/sys_ioctl (Depends-on): Add c++defs.
7463         (Makefile.am): Update sys/ioctl.h rule.
7464
7465         string: Avoid #define replacements in C++ mode.
7466         * lib/string.in.h: Include c++defs.h.
7467         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
7468         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
7469         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
7470         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
7471         strsignal, strverscmp): In C++, define a namespaced alias symbol.
7472         * modules/string (Depends-on): Add c++defs.
7473         (Makefile.am): Update string.h rule.
7474
7475         stdlib: Avoid #define replacements in C++ mode.
7476         * lib/stdlib.in.h: Include c++defs.h.
7477         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
7478         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
7479         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
7480         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
7481         symbol.
7482         * modules/stdlib (Depends-on): Add c++defs.
7483         (Makefile.am): Update stdlib.h rule.
7484
7485         stdio: Avoid #define replacements in C++ mode.
7486         * lib/stdio.in.h: Include c++defs.h.
7487         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
7488         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
7489         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
7490         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
7491         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
7492         namespaced alias symbol.
7493         * modules/stdio (Depends-on): Add c++defs.
7494         (Makefile.am): Update stdio.h rule.
7495
7496         spawn: Avoid #define replacements in C++ mode.
7497         * lib/spawn.in.h: Include c++defs.h.
7498         (posix_spawn, posix_spawnp, posix_spawnattr_init,
7499         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
7500         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
7501         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
7502         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
7503         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
7504         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
7505         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
7506         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
7507         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
7508         In C++, define a namespaced alias symbol.
7509         * modules/spawn (Depends-on): Add c++defs.
7510         (Makefile.am): Update spawn.h rule.
7511
7512         signal: Avoid #define replacements in C++ mode.
7513         * lib/signal.in.h: Include c++defs.h.
7514         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
7515         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
7516         namespaced alias symbol.
7517         * modules/signal (Depends-on): Add c++defs.
7518         (Makefile.am): Update signal.h rule.
7519
7520         search: Avoid #define replacements in C++ mode.
7521         * lib/search.in.h: Include c++defs.h.
7522         (_gl_search_compar_fn, _gl_search_action_fn): New types.
7523         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
7524         symbol.
7525         * modules/search (Depends-on): Add c++defs.
7526         (Makefile.am): Update search.h rule.
7527
7528         math: Avoid #define replacements in C++ mode.
7529         * lib/math.in.h: Include c++defs.h.
7530         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
7531         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
7532         trunc, truncl): In C++, define a namespaced alias symbol.
7533         * modules/math (Depends-on): Add c++defs.
7534         (Makefile.am): Update math.h rule.
7535
7536         locale: Avoid #define replacements in C++ mode.
7537         * lib/locale.in.h: Include c++defs.h.
7538         (duplocale): In C++, define a namespaced alias symbol.
7539         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
7540         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
7541         * modules/locale (Depends-on): Add c++defs.
7542         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
7543
7544         langinfo: Avoid #define replacements in C++ mode.
7545         * lib/langinfo.in.h: Include c++defs.h.
7546         (nl_langinfo): In C++, define a namespaced alias symbol.
7547         * modules/langinfo (Depends-on): Add c++defs.
7548         (Makefile.am): Update langinfo.h rule.
7549
7550         iconv-h: Avoid #define replacements in C++ mode.
7551         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
7552         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
7553         symbol.
7554         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
7555         whenever iconv is present.
7556         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
7557         (Makefile.am): Update iconv.h rule.
7558
7559         glob: Avoid #define replacements in C++ mode.
7560         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
7561         (_gl_glob_errfunc_fn): New type.
7562         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
7563         symbol.
7564         * modules/glob (Depends-on): Add c++defs, warn-on-use.
7565         (Makefile.am): Update glob.h rule.
7566
7567         fcntl-h: Avoid #define replacements in C++ mode.
7568         * lib/fcntl.in.h: Include c++defs.h.
7569         (fcntl, open, openat): In C++, define a namespaced alias symbol.
7570         * modules/fcntl-h (Depends-on): Add c++defs.
7571         (Makefile.am): Update fcntl.h rule.
7572
7573         dirent: Avoid #define replacements in C++ mode.
7574         * lib/dirent.in.h: Include c++defs.h.
7575         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
7576         namespaced alias symbol.
7577         (dirfd): Update declaration.
7578         * modules/dirent (Depends-on): Add c++defs.
7579         (Makefile.am): Update dirent.h rule.
7580
7581         ctype: Make it usable in C++ code.
7582         * lib/ctype.in.h: Include c++defs.h.
7583         (isblank): Declare as extern "C".
7584         * modules/ctype (Depends-on): Add c++defs.
7585         (Makefile.am): Update ctype.h rule.
7586
7587         New module 'c++defs'.
7588         * modules/c++defs: New file.
7589         * build-aux/c++defs.h: New file.
7590         Reported by John W. Eaton <jwe@gnu.org>.
7591
7592 2010-03-07  Bruno Haible  <bruno@clisp.org>
7593
7594         logb: Provide missing declaration for Cygwin.
7595         * lib/math.in.h (logb): New declaration.
7596         * m4/logb.m4: New file.
7597         * modules/logb (Files): Add m4/logb.m4.
7598         (Depends-on): Add math.
7599         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
7600         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
7601         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
7602         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
7603         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
7604
7605 2010-03-07  Bruno Haible  <bruno@clisp.org>
7606
7607         Fix test-cond link error.
7608         * tests/test-cond.c: Include <stdio.h>.
7609
7610 2010-03-07  Bruno Haible  <bruno@clisp.org>
7611
7612         Fix test-dirent-safer link error.
7613         * modules/dirent-safer-tests (Makefile.am): Define
7614         test_dirent_safer_LDADD.
7615
7616 2010-03-07  Bruno Haible  <bruno@clisp.org>
7617
7618         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
7619         among default module list.
7620
7621 2010-03-07  Bruno Haible  <bruno@clisp.org>
7622
7623         Fix link error on platforms with GNU libiconv.
7624         * modules/unistr/u8-strcoll-tests (Makefile): Define
7625         test_u8_strcoll_LDADD.
7626         * modules/unistr/u16-strcoll-tests (Makefile): Define
7627         test_u16_strcoll_LDADD.
7628         * modules/unistr/u32-strcoll-tests (Makefile): Define
7629         test_u32_strcoll_LDADD.
7630
7631 2010-03-07  Bruno Haible  <bruno@clisp.org>
7632
7633         Use POSIX declarations for socket functions.
7634         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
7635         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
7636         rpl_sendto): Change declaration to match POSIX.
7637         * lib/connect.c (rpl_connect): Likewise.
7638         * lib/accept.c (rpl_accept): Likewise.
7639         * lib/bind.c (rpl_bind): Likewise.
7640         * lib/getpeername.c (rpl_getpeername): Likewise.
7641         * lib/getsockname.c (rpl_getsockname): Likewise.
7642         * lib/recv.c (rpl_recv): Likewise.
7643         * lib/send.c (rpl_send): Likewise.
7644         * lib/recvfrom.c (rpl_recvfrom): Likewise.
7645         * lib/sendto.c (rpl_sendto): Likewise.
7646
7647 2010-03-06  Bruno Haible  <bruno@clisp.org>
7648
7649         Clarify access, euidaccess, faccessat.
7650         * doc/posix-functions/faccessat.texi: Mention security problem under
7651         "Other problems", not "Portability problems".
7652         * doc/posix-functions/access.texi: Likewise. Mention a related security
7653         problem.
7654         * doc/glibc-functions/euidaccess.texi: Mention security problems.
7655         * lib/euidaccess.c: Add comments about platforms.
7656         * lib/unistd.in.h (access, euidaccess): Add warnings.
7657
7658 2010-03-07  Bruno Haible  <bruno@clisp.org>
7659
7660         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
7661         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
7662         (POSIX_SPAWN_SETSCHEDULER): Likewise.
7663         (POSIX_SPAWN_USEVFORK): Define in a way that works when
7664         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
7665         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
7666         declare when POSIX_SPAWN_SETSCHEDULER is zero.
7667         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
7668         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
7669         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
7670         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
7671         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
7672         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
7673         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
7674         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
7675         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
7676         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
7677         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
7678         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
7679         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
7680         Likewise.
7681         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
7682         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
7683         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
7684         Likewise.
7685         * tests/test-spawn.c (main): Make it work when
7686         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
7687
7688 2010-03-07  Bruno Haible  <bruno@clisp.org>
7689
7690         Fix incorrect Makefile.am generation in German locale.
7691         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
7692         Execute sed command with character range in C locale.
7693
7694 2010-03-06  Bruno Haible  <bruno@clisp.org>
7695
7696         Tests for module 'iconv-h'.
7697         * modules/iconv-h-tests: New file.
7698         * tests/test-iconv-h.c: New file.
7699
7700         New module 'iconv-h'.
7701         * modules/iconv-h: New file.
7702         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
7703         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
7704         (configure.ac): Remove gl_ICONV_H.
7705         (Makefile.am): Remove rule for iconv.h.
7706
7707 2010-03-06  Bruno Haible  <bruno@clisp.org>
7708
7709         More consistent naming of *.m4 files.
7710         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
7711         * modules/wctype (Files): Update.
7712
7713         More consistent naming of *.m4 files.
7714         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
7715         * modules/wchar (Files): Update.
7716
7717 2010-03-06  Jim Meyering  <meyering@redhat.com>
7718
7719         euidaccess: relax license to LGPLv2+
7720         * modules/euidaccess (License): Relax to LGPLv2+.
7721
7722 2010-03-06  Bruno Haible  <bruno@clisp.org>
7723
7724         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
7725         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
7726         (Makefile.am): Augment lib_SOURCES instead.
7727
7728 2010-03-04  Jim Meyering  <meyering@redhat.com>
7729
7730         utime: remove obsolete module
7731         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
7732         unnecessary for years, and has been marked as obsolete for 10 months.
7733         * modules/utime: Remove file.
7734         * lib/utime.c: Remove file.
7735         * m4/utime.m4: Remove file.
7736         * m4/utimes-null.m4: Remove file.
7737         * doc/posix-functions/utime.texi (utime): Remove reference to
7738         the module.  Move the sole "fixed by gnulib" item into the
7739         "problems not fixed by Gnulib" list.
7740         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
7741
7742 2010-03-05  Simon Josefsson  <simon@josefsson.org>
7743
7744         * modules/exit (License): Relax license to LGPLv2+.
7745         (Status): Mark as obsolete.
7746         * NEWS: Mention deprecated 'exit' module.
7747         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
7748         of now obsolete 'exit'.
7749
7750 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7751
7752         fts-lgpl: remove unused module
7753         * modules/fts-lgpl: Remove.
7754         * MODULES.html.sh (func_all_modules): Adjust.
7755         * check-module (find_included_lib_files): Adjust.
7756         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
7757
7758 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
7759
7760         copy-acl: enhance Solaris ACL error handling
7761         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
7762         * lib/set-mode-acl.c (qset_acl): Likewise.
7763
7764 2010-03-02  Bruno Haible  <bruno@clisp.org>
7765
7766         spawn: Don't override the system defined values on FreeBSD 8.
7767         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
7768         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
7769         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
7770         if HAVE_POSIX_SPAWN is 1.
7771         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
7772
7773 2010-03-01  Bruno Haible  <bruno@clisp.org>
7774
7775         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
7776         regarding Automake.
7777
7778 2010-02-25  Bruno Haible  <bruno@clisp.org>
7779
7780         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
7781         * gnulib-tool: Define 'echo' as a function only before the ksh alias
7782         setting, not afterwards.
7783         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
7784
7785 2010-02-24  Eric Blake  <eblake@redhat.com>
7786
7787         bootstrap, git-version-gen: use timestamp
7788         * build-aux/git-version-gen (scriptversion): Force UTC.
7789         * build-aux/bootstrap (scriptversion): New variable.
7790
7791         bootstrap: allow older git
7792         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
7793         older than 1.6.4.  Requested by the libvirt project.
7794
7795 2010-02-23  Eric Blake  <eblake@redhat.com>
7796
7797         warn-on-use: work with old autoconf
7798         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
7799         AS_VAR semantics of autoconf 2.60.
7800         Reported by Bruno Haible.
7801
7802         bootstrap: improve some comments
7803         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
7804         clarification comments.
7805
7806         gettimeofday: provide correct function
7807         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
7808         when replacement is declared, otherwise provide gettimeofday.
7809         Reported by Michael Goffioul.
7810
7811 2010-02-23  Jim Meyering  <meyering@redhat.com>
7812
7813         lib-ignore: relax license to "unlimited", not LGPLv2+
7814         * modules/lib-ignore (License): Relax to "unlimited".
7815
7816 2010-02-23  Jim Meyering  <meyering@redhat.com>
7817
7818         lib-ignore: relax license to LGPLv2+
7819         * modules/lib-ignore (License): Relax to LGPLv2+.
7820
7821 2010-02-22  Eric Blake  <eblake@redhat.com>
7822
7823         lseek: avoid bash 3.2 broken pipe bug
7824         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
7825         warning from bash 3.2.
7826         Reported by Ben Pfaff, with analysis from Bruno Haible.
7827
7828         bootstrap: support non-FSF copyright holder
7829         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
7830         bootstrap.conf override of COPYRIGHT_HOLDER.
7831         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
7832
7833         bootstrap: interoperate with gettext 0.14.1
7834         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
7835
7836         bootstrap: allow for alternate submodule location
7837         * build-aux/bootstrap (gnulib_path): New variable; use instead of
7838         hardcoding submodule location.
7839         (gnulib_mk): Allow direct use of Makefile.am.
7840
7841         bootstrap: use GNULIB_SRCDIR to reduce disk usage
7842         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
7843         rather than reconfiguring where the submodule points.
7844
7845         gettimeofday: restore support for platforms that lack function
7846         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
7847         replacement if function is missing.
7848         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
7849         * modules/sys_time (Makefile.am): Substitute it.
7850         * lib/sys_time.in.h (gettimeofday): Check it.
7851         Reported by Michael Goffioul.
7852
7853 2010-02-21  Bruno Haible  <bruno@clisp.org>
7854
7855         * lib/stdio.in.h (obstack_printf): Fix typo.
7856
7857 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
7858
7859         vc-list-files: use bzr ls's -R option
7860         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
7861         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
7862
7863 2010-02-21  Jim Meyering  <meyering@redhat.com>
7864
7865         init.sh: fix EXEEXT shims to work also for names like test-prog
7866         * tests/init.sh: Re-exec a better shell, when needed.
7867         If the current shell lacks support for posix $(...), an init.sh-using
7868         test will now try to find a shell that supports that.  If EXEEXT is
7869         nonempty, we also require support for hyphen-in-alias-name and shell
7870         substitutions like ${var#glob}.  Failure to find such a shell results
7871         in a skipped test.
7872
7873 2010-02-21  Bruno Haible  <bruno@clisp.org>
7874
7875         Really work around around "broken pipe" error message from bash 3.2.
7876         * gnulib-tool (func_reset_sigpipe): Remove function.
7877         (echo): In bash 3.2, define to a function that uses printf.
7878         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
7879
7880 2010-02-20  Bruno Haible  <bruno@clisp.org>
7881
7882         Restore support for automake 1.9.6 with autoconf 2.61.
7883         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
7884         Reported by James Youngman <jay@gnu.org>.
7885
7886 2010-02-20  Bruno Haible  <bruno@clisp.org>
7887
7888         Improve *printf warning condition.
7889         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
7890         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
7891         and the function is overridden due to SIGPIPE emulation.
7892
7893 2010-02-20  Bruno Haible  <bruno@clisp.org>
7894
7895         * lib/stdio.in.h: Tweak comments.
7896
7897 2010-02-19  Bruno Haible  <bruno@clisp.org>
7898
7899         Make it easier to find modules. New gnulib-tool option '--find'.
7900         * gnulib-tool: New option --find.
7901         (func_usage): Document it.
7902         (func_sanitize_modulelist): New function, extracted from
7903         func_all_modules.
7904         (func_all_modules): Invoke it.
7905         * doc/gnulib-tool.texi (Which modules?): New node.
7906
7907 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
7908
7909         * lib/sys_select.in.h: Provide select replacement even if
7910         sys/select.h exists on a system, for Interix.
7911
7912 2010-02-18  Jim Meyering  <meyering@redhat.com>
7913
7914         init.sh: don't use $(...) just yet
7915         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
7916         to accommodate e.g., Solaris' /bin/sh.
7917
7918 2010-02-17  Bruno Haible  <bruno@clisp.org>
7919
7920         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
7921         Reported by Ludovic Courtès <ludo@gnu.org>.
7922
7923 2010-02-16  Simon Josefsson  <simon@josefsson.org>
7924
7925         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
7926         linking with -lintl.
7927
7928 2010-02-17  Simon Josefsson  <simon@josefsson.org>
7929
7930         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
7931         if not provided by the system's netdb.h.  Reported by
7932         ludo@gnu.org (Ludovic Courtès).
7933
7934 2010-02-15  Jim Meyering  <meyering@redhat.com>
7935
7936         init.sh: improve portability and efficiency
7937         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
7938         "dummy" in a for loop.
7939         Use '!', not '^' to select the complement of a character set used
7940         in a "case" statement.
7941         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
7942         Suggestions from Eric Blake.
7943
7944         init.sh: automatically accommodate programs with the .exe suffix
7945         Automatically arrange for an invocation of "prog" to execute the
7946         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
7947         may use the simpler "prog", yet still work when built on a system
7948         that requires specifying the added suffix.
7949         Do this by constructing a function named "prog" that invokes
7950         "prog.exe" for each .exe file in selected directories.
7951         * tests/init.sh (find_exe_basenames_): New function.
7952         (create_exe_shim_functions_): New function.
7953         (path_prepend_): Use it.
7954
7955         maint.mk: mark syntax-check sc_*.m rules as .PHONY
7956         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
7957         "make -t syntax-check" doesn't create a ton of sc_*.m files.
7958
7959 2010-02-14  Jim Meyering  <meyering@redhat.com>
7960
7961         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
7962         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
7963         (sc_prohibit_hash_pjw_without_use): New rule.
7964
7965         maint.mk: allow the default upload destination dir to be overridden
7966         * top/maint.mk (upload_dest_dir_): Define with a default that
7967         preserves the status quo.
7968         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
7969         Reported by Peter Simons.
7970
7971         maint.mk: prohibit inclusion of "hash.h" without_use
7972         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
7973
7974 2010-02-10  Jim Meyering  <meyering@redhat.com>
7975
7976         maint.mk: prohibit inclusion of "ignore-value.h" without_use
7977         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
7978
7979 2010-02-09  Eric Blake  <ebb9@byu.net>
7980         and Bruno Haible  <bruno@clisp.org>
7981
7982         obstack-printf-posix: ensure declaration
7983         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
7984         extracted from gl_FUNC_OBSTACK_PRINTF.
7985         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
7986         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
7987         Likewise.
7988         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
7989         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
7990         0.
7991
7992 2010-02-08  Bruno Haible  <bruno@clisp.org>
7993
7994         gnulib-tool: Fix typo in 2010-02-07 commit.
7995         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
7996         Reported by Eric Blake.
7997
7998 2010-02-07  Bruno Haible  <bruno@clisp.org>
7999
8000         gnulib-tool: Fix up caching patches.
8001         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
8002         option --no-cache. Use associative arrays when supported by the shell.
8003         (sed_comments): New variable.
8004         (modcache): Renamed from do_cache.
8005         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
8006         abbreviate unnecessarily.
8007         (have_associative): New variable.
8008         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
8009         way also for ksh and zsh.
8010         (func_init_sed_convert_to_cache_statements): New function, extracted
8011         from func_cache_lookup_module. Add support for associative arrays.
8012         Don't set the c_MODULE_cached variable here. Ignore all lines before
8013         the first field header. Remove only the final newline, not all trailing
8014         newlines. Support empty fields correctly. Limit the use of 'eval' to
8015         assignments.
8016         (func_get_description, func_get_status, func_get_notice,
8017         func_get_applicability, func_get_filelist, func_get_dependencies,
8018         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
8019         func_get_automake_snippet, func_get_include_directive,
8020         func_get_link_directive, func_get_license, func_get_maintainer):
8021         Update documentation. List the unoptimized code first. Add support for
8022         associative arrays. Limit the use of 'eval' to assignments.
8023         (func_get_applicability): Undo stylistic pessimisations.
8024         (func_get_automake_snippet, func_get_include_directive): Reduce code
8025         duplication.
8026         (func_modules_transitive_closure, func_modules_add_dummy,
8027         func_modules_notice, func_modules_to_filelist, func_add_file,
8028         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
8029         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
8030         func_create_testdir, func_create_megatestdir): Update documentation.
8031
8032 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8033
8034         * gnulib-tool (func_cache_lookup_module): Store the module name
8035         belonging to the cache variable; error out if two different
8036         module names map to the same cache variable name.
8037
8038 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8039
8040         gnulib-tool: Make caching optional.
8041         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
8042         Update matching short versions of --no-changelog.
8043         (func_usage): Update.
8044         (sed_extract_cache_prog): Renamed from ...
8045         (sed_extract_prog): ... this; revert to old extraction script.
8046         (func_get_description, func_get_status)
8047         (func_get_notice, func_get_applicability, func_get_filelist)
8048         (func_get_dependencies, func_get_autoconf_early_snippet)
8049         (func_get_autoconf_snippet, func_get_automake_snippet)
8050         (func_get_include_directive, func_get_link_directive)
8051         (func_get_license, func_get_maintainer): If $do_cache is false,
8052         use old, non-caching extraction scripts.
8053         Suggestion by Bruno Haible.
8054
8055 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8056
8057         gnulib-tool: cache module metainformation.
8058         * gnulib-tool (sed_extract_prog): Match newline before each
8059         header, and rewrite header to a shell variable suffix.
8060         (func_cache_var, func_cache_lookup_module): New functions,
8061         to turn a module name into a cache variable prefix, and to
8062         look up and cache module metainformation.
8063         (func_get_description, func_get_status)
8064         (func_get_notice, func_get_applicability, func_get_filelist)
8065         (func_get_dependencies, func_get_autoconf_early_snippet)
8066         (func_get_autoconf_snippet, func_get_automake_snippet)
8067         (func_get_include_directive, func_get_link_directive)
8068         (func_get_license, func_get_maintainer): Use
8069         func_cache_lookup_module.
8070
8071 2010-02-07  Bruno Haible  <bruno@clisp.org>
8072
8073         fnctl: Fix missing dependency.
8074         * modules/fcntl (Depends-on): Add getdtablesize.
8075         Reported by John W. Eaton <jwe@gnu.org>.
8076
8077 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
8078
8079         Argp: fix recognition of short alias options.
8080
8081         * lib/argp-parse.c (convert_options): Fix improper use of
8082         `|' between character values.
8083         * tests/test-argp.c (group1_option): New alias option
8084         --read (-r).
8085         (group1_parser): Special handling for 'r'.
8086         (test15): New test case.
8087         (test_fun): Add test15.
8088         * tests/test-argp-2.sh: Update expected --help and --usage
8089         outputs.
8090
8091 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
8092
8093         * tests/test-argp.c: Fix indentation.
8094
8095 2010-02-04  Eric Blake  <ebb9@byu.net>
8096
8097         gettimeofday: expose type of second argument
8098         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
8099         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
8100         * tests/test-gettimeofday.c: Use it to silence warning.
8101         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
8102         the issue.
8103
8104 2010-02-03  Jim Meyering  <meyering@redhat.com>
8105
8106         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
8107         * lib/regcomp.c (TYPE_SIGNED): Define.
8108         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
8109
8110         regcomp.c: avoid a new -Wshadow warning
8111         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
8112
8113 2010-02-01  Jim Meyering  <meyering@redhat.com>
8114
8115         removing useless parentheses in cpp #define directives
8116         For motivation, see commit c0221df4, "define STREQ(a,b)
8117         consistently, removing useless parentheses"
8118         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
8119         * lib/mountlist.c (MNT_IGNORE): Likewise.
8120         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
8121
8122 2010-02-01  Eric Blake  <ebb9@byu.net>
8123
8124         sys_time: use link-warning
8125         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
8126         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
8127         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
8128         * modules/sys_time (Depends-on): Add warn-on-use.
8129         (Makefile.am): Always build replacement.
8130         (configure.ac): Update substitutions.
8131         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
8132         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
8133         bother with SYS_TIME_H.
8134         * modules/gettimeofday (configure.ac): Declare indicator.
8135         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
8136         in use.
8137
8138         closein-tests: silence compiler warning
8139         * tests/test-closein.c (main): Ignore fread result.
8140         * modules/closein-tests (Depends-on): Add ignore-value.
8141
8142         tests: silence warning about system return
8143         * tests/test-areadlink-with-size.c (main): Ignore system result.
8144         * tests/test-areadlink.c (main): Likewise.
8145         * tests/test-areadlinkat-with-size.c (main): Likewise.
8146         * tests/test-areadlinkat.c (main): Likewise.
8147         * tests/test-canonicalize-lgpl.c (main): Likewise.
8148         * tests/test-canonicalize.c (main): Likewise.
8149         * tests/test-chown.c (main): Likewise.
8150         * tests/test-fchownat.c (main): Likewise.
8151         * tests/test-fdutimensat.c (main): Likewise.
8152         * tests/test-fstatat.c (main): Likewise.
8153         * tests/test-futimens.c (main): Likewise.
8154         * tests/test-lchown.c (main): Likewise.
8155         * tests/test-link.c (main): Likewise.
8156         * tests/test-linkat.c (main): Likewise.
8157         * tests/test-lstat.c (main): Likewise.
8158         * tests/test-mkdir.c (main): Likewise.
8159         * tests/test-mkdirat.c (main): Likewise.
8160         * tests/test-mkfifo.c (main): Likewise.
8161         * tests/test-mkfifoat.c (main): Likewise.
8162         * tests/test-mknod.c (main): Likewise.
8163         * tests/test-readlink.c (main): Likewise.
8164         * tests/test-remove.c (main): Likewise.
8165         * tests/test-rename.c (main): Likewise.
8166         * tests/test-renameat.c (main): Likewise.
8167         * tests/test-rmdir.c (main): Likewise.
8168         * tests/test-symlink.c (main): Likewise.
8169         * tests/test-symlinkat.c (main): Likewise.
8170         * tests/test-unlink.c (main): Likewise.
8171         * tests/test-unlinkat.c (main): Likewise.
8172         * tests/test-utimens.c (main): Likewise.
8173         * tests/test-utimensat.c (main): Likewise.
8174         * modules/areadlink-tests (Depends-on): Add ignore-value.
8175         * modules/areadlink-with-size-tests (Depends-on): Likewise.
8176         * modules/areadlinkat-tests (Depends-on): Likewise.
8177         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
8178         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
8179         * modules/canonicalize-tests (Depends-on): Likewise.
8180         * modules/chown-tests (Depends-on): Likewise.
8181         * modules/fdutimensat-tests (Depends-on): Likewise.
8182         * modules/futimens-tests (Depends-on): Likewise.
8183         * modules/lchown-tests (Depends-on): Likewise.
8184         * modules/link-tests (Depends-on): Likewise.
8185         * modules/linkat-tests (Depends-on): Likewise.
8186         * modules/lstat-tests (Depends-on): Likewise.
8187         * modules/mkdir-tests (Depends-on): Likewise.
8188         * modules/mkfifo-tests (Depends-on): Likewise.
8189         * modules/mkfifoat-tests (Depends-on): Likewise.
8190         * modules/mknod-tests (Depends-on): Likewise.
8191         * modules/openat-tests (Depends-on): Likewise.
8192         * modules/readlink-tests (Depends-on): Likewise.
8193         * modules/remove-tests (Depends-on): Likewise.
8194         * modules/rename-tests (Depends-on): Likewise.
8195         * modules/renameat-tests (Depends-on): Likewise.
8196         * modules/rmdir-tests (Depends-on): Likewise.
8197         * modules/symlink-tests (Depends-on): Likewise.
8198         * modules/symlinkat-tests (Depends-on): Likewise.
8199         * modules/unlink-tests (Depends-on): Likewise.
8200         * modules/utimens-tests (Depends-on): Likewise.
8201         * modules/utimensat-tests (Depends-on): Likewise.
8202
8203 2010-01-31  Bruno Haible  <bruno@clisp.org>
8204
8205         Perform the same test for many <math.h> functions.
8206         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
8207         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
8208         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
8209         of gl_MATHFUNC.
8210         * modules/acos (configure.ac): Likewise.
8211         * modules/asin (configure.ac): Likewise.
8212         * modules/atan (configure.ac): Likewise.
8213         * modules/atan2 (configure.ac): Likewise.
8214         * modules/cbrt (configure.ac): Likewise.
8215         * modules/copysign (configure.ac): Likewise.
8216         * modules/cos (configure.ac): Likewise.
8217         * modules/cosh (configure.ac): Likewise.
8218         * modules/erf (configure.ac): Likewise.
8219         * modules/erfc (configure.ac): Likewise.
8220         * modules/exp (configure.ac): Likewise.
8221         * modules/fmod (configure.ac): Likewise.
8222         * modules/hypot (configure.ac): Likewise.
8223         * modules/j0 (configure.ac): Likewise.
8224         * modules/j1 (configure.ac): Likewise.
8225         * modules/jn (configure.ac): Likewise.
8226         * modules/lgamma (configure.ac): Likewise.
8227         * modules/log (configure.ac): Likewise.
8228         * modules/log10 (configure.ac): Likewise.
8229         * modules/log1p (configure.ac): Likewise.
8230         * modules/pow (configure.ac): Likewise.
8231         * modules/remainder (configure.ac): Likewise.
8232         * modules/sin (configure.ac): Likewise.
8233         * modules/sinh (configure.ac): Likewise.
8234         * modules/tan (configure.ac): Likewise.
8235         * modules/tanh (configure.ac): Likewise.
8236         * modules/y0 (configure.ac): Likewise.
8237         * modules/y1 (configure.ac): Likewise.
8238         * modules/yn (configure.ac): Likewise.
8239         Suggested by Paolo Bonzini.
8240
8241 2010-01-31  Bruno Haible  <bruno@clisp.org>
8242
8243         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
8244
8245 2010-01-31  Bruno Haible  <bruno@clisp.org>
8246
8247         Work around getdelim() bug on FreeBSD 8.0.
8248         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
8249         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
8250         not work.
8251         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
8252         is 1.
8253         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
8254         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
8255         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
8256         a non-zero size.
8257         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
8258
8259 2010-01-31  Bruno Haible  <bruno@clisp.org>
8260
8261         Work around getline() bug on FreeBSD 8.0.
8262         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
8263         and a non-zero size.
8264         * tests/test-getline.c (main): Likewise.
8265         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
8266         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
8267
8268 2010-01-28  Eric Blake  <ebb9@byu.net>
8269
8270         regex: fix build failure
8271         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
8272         platforms.
8273
8274 2010-01-28  Jim Meyering  <meyering@redhat.com>
8275
8276         regex: do not ignore memory allocation failure
8277         * lib/regex_internal.c (create_cd_newstate): Detect
8278         re_node_set_init_copy failure.   Extracted from glibc commit
8279         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
8280
8281         regex: sync more white-space changes from libc
8282         * lib/regex_internal.c: White-space only changes.
8283         * lib/regexec.c: Likewise.
8284
8285         regex: add many uses of __attribute_warn_unused_result__
8286         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
8287         * lib/regexec.c: Likewise.
8288         Extracted from a messy glibc commit.
8289
8290         regcomp.c: spelling and merge-artifact from glibc
8291         * lib/regcomp.c: Merge remainder of glibc's
8292         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
8293
8294         regcomp.c: sync white-space changes from glibc
8295         * lib/regcomp.c: Merge to accommodate white space
8296         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
8297
8298         regcomp.c: do not ignore internal return values
8299         * lib/regcomp.c: Do not ignore internal return values.
8300         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
8301         but without its white-space changes and spelling fixes.
8302
8303         regex_internal.h: define __attribute_warn_unused_result__
8304         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
8305
8306         maint: add a syntax-check rule to check for vulnerable Makefile.in
8307         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
8308
8309 2010-01-27  Jim Meyering  <meyering@redhat.com>
8310
8311         ncftpput-ftp: clean up spaces
8312         * build-aux/ncftpput-ftp: Make Copyright line consistent.
8313         Remove trailing blanks.
8314
8315 2010-01-27  Simon Josefsson  <simon@josefsson.org>
8316
8317         * build-aux/git-version-gen: Fix copyright statement.
8318         * build-aux/gnupload: Likewise.
8319         * tests/test-arcfour.c: Likewise.
8320         * tests/test-arctwo.c: Likewise.
8321         * tests/test-count-one-bits.c: Likewise.
8322         * tests/test-crc.c: Likewise.
8323         * tests/test-des.c: Likewise.
8324         * tests/test-gc-arcfour.c: Likewise.
8325         * tests/test-gc-arctwo.c: Likewise.
8326         * tests/test-gc-des.c: Likewise.
8327         * tests/test-gc-hmac-md5.c: Likewise.
8328         * tests/test-gc-hmac-sha1.c: Likewise.
8329         * tests/test-gc-md2.c: Likewise.
8330         * tests/test-gc-md4.c: Likewise.
8331         * tests/test-gc-md5.c: Likewise.
8332         * tests/test-gc-pbkdf2-sha1.c: Likewise.
8333         * tests/test-gc-rijndael.c: Likewise.
8334         * tests/test-gc-sha1.c: Likewise.
8335         * tests/test-gc.c: Likewise.
8336         * tests/test-gethostname.c: Likewise.
8337         * tests/test-gettimeofday.c: Likewise.
8338         * tests/test-hash.c: Likewise.
8339         * tests/test-hmac-md5.c: Likewise.
8340         * tests/test-hmac-sha1.c: Likewise.
8341         * tests/test-md2.c: Likewise.
8342         * tests/test-md4.c: Likewise.
8343         * tests/test-md5.c: Likewise.
8344         * tests/test-memchr.c: Likewise.
8345         * tests/test-memchr2.c: Likewise.
8346         * tests/test-memcmp.c: Likewise.
8347         * tests/test-memmem.c: Likewise.
8348         * tests/test-memrchr.c: Likewise.
8349         * tests/test-rawmemchr.c: Likewise.
8350         * tests/test-read-file.c: Likewise.
8351         * tests/test-rijndael.c: Likewise.
8352         * tests/test-sockets.c: Likewise.
8353         * tests/test-strchrnul.c: Likewise.
8354         * tests/test-strstr.c: Likewise.
8355         * tests/test-strtod.c: Likewise.
8356         * build-aux/ncftpput-ftp: Likewise.
8357
8358 2010-01-26  Eric Blake  <ebb9@byu.net>
8359
8360         ignore-value: update recommended header name
8361         * modules/ignore-value (Include): Only use <> for headers that
8362         exist in glibc.
8363
8364 2010-01-26  Jim Meyering  <meyering@redhat.com>
8365
8366         test-userspec.c: avoid compiler warnings
8367         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
8368         and "initialization discards qualifiers..." warnings.
8369         Put the first "uid" in its own scope, and make char* members "const".
8370
8371 2010-01-25  Bruno Haible  <bruno@clisp.org>
8372
8373         gnulib-tool: Make warning diagnostics consistent.
8374         * gnulib-tool (func_warning): New function.
8375         Use it everywhere where gnulib-tool produces output to stderr and it is
8376         not a fatal error.
8377
8378 2010-01-25  Bruno Haible  <bruno@clisp.org>
8379
8380         Fix test dependencies.
8381         * modules/xstrtol-tests (Depends-on): Add inttypes.
8382         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
8383
8384 2010-01-25 Pádraig Brady <P@draigBrady.com>
8385
8386         syntax-check: detect incorrect boolean macro values in config.h
8387         * modules/maintainer-makefile (configure.ac): Parameterize the location
8388         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
8389         The logic is from Eric Blake and the location indicated by Jim Meyering.
8390         Note the more natural CONFIG_HEADER name is prohibited by automake
8391         for backwards compatibility reasons.
8392         * top/maint.mk (sc_Wundef_boolean): New rule.
8393
8394 2010-01-25  Jim Meyering  <meyering@redhat.com>
8395
8396         bootstrap: detect MacOS 10.6's shasum, too
8397         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
8398         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
8399
8400 2010-01-23  Jim Meyering  <meyering@redhat.com>
8401
8402         xstrtoll: new module
8403         * modules/xstrtoll: New file.
8404         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
8405         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
8406         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
8407         ./configure fails if you use this module and lack "long long".
8408         * modules/xstrtoll-tests: New module.
8409         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
8410         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
8411         new init.sh-based test framework.
8412
8413 2010-01-24  Bruno Haible  <bruno@clisp.org>
8414
8415         Tests for module 'yn'.
8416         * modules/yn-tests: New file.
8417         * tests/test-yn.c: New file.
8418
8419         Tests for module 'y1'.
8420         * modules/y1-tests: New file.
8421         * tests/test-y1.c: New file.
8422
8423         Tests for module 'y0'.
8424         * modules/y0-tests: New file.
8425         * tests/test-y0.c: New file.
8426
8427         Tests for module 'tanh'.
8428         * modules/tanh-tests: New file.
8429         * tests/test-tanh.c: New file.
8430
8431         Tests for module 'tan'.
8432         * modules/tan-tests: New file.
8433         * tests/test-tan.c: New file.
8434
8435         Tests for module 'sqrt'.
8436         * modules/sqrt-tests: New file.
8437         * tests/test-sqrt.c: New file.
8438
8439         Tests for module 'sinh'.
8440         * modules/sinh-tests: New file.
8441         * tests/test-sinh.c: New file.
8442
8443         Tests for module 'sin'.
8444         * modules/sin-tests: New file.
8445         * tests/test-sin.c: New file.
8446
8447         Tests for module 'rint'.
8448         * modules/rint-tests: New file.
8449         * tests/test-rint.c: New file.
8450
8451         Tests for module 'remainder'.
8452         * modules/remainder-tests: New file.
8453         * tests/test-remainder.c: New file.
8454
8455         Tests for module 'pow'.
8456         * modules/pow-tests: New file.
8457         * tests/test-pow.c: New file.
8458
8459         Tests for module 'nextafter'.
8460         * modules/nextafter-tests: New file.
8461         * tests/test-nextafter.c: New file.
8462
8463         Tests for module 'modf'.
8464         * modules/modf-tests: New file.
8465         * tests/test-modf.c: New file.
8466
8467         Tests for module 'logb'.
8468         * modules/logb-tests: New file.
8469         * tests/test-logb.c: New file.
8470
8471         Tests for module 'log1p'.
8472         * modules/log1p-tests: New file.
8473         * tests/test-log1p.c: New file.
8474
8475         Tests for module 'log10'.
8476         * modules/log10-tests: New file.
8477         * tests/test-log10.c: New file.
8478
8479         Tests for module 'log'.
8480         * modules/log-tests: New file.
8481         * tests/test-log.c: New file.
8482
8483         Tests for module 'lgamma'.
8484         * modules/lgamma-tests: New file.
8485         * tests/test-lgamma.c: New file.
8486
8487         Tests for module 'ldexp'.
8488         * modules/ldexp-tests: New file.
8489         * tests/test-ldexp.c: New file.
8490
8491         Tests for module 'jn'.
8492         * modules/jn-tests: New file.
8493         * tests/test-jn.c: New file.
8494
8495         Tests for module 'j1'.
8496         * modules/j1-tests: New file.
8497         * tests/test-j1.c: New file.
8498
8499         Tests for module 'j0'.
8500         * modules/j0-tests: New file.
8501         * tests/test-j0.c: New file.
8502
8503         Tests for module 'hypot'.
8504         * modules/hypot-tests: New file.
8505         * tests/test-hypot.c: New file.
8506
8507         Tests for module 'fmod'.
8508         * modules/fmod-tests: New file.
8509         * tests/test-fmod.c: New file.
8510
8511         Tests for module 'fabs'.
8512         * modules/fabs-tests: New file.
8513         * tests/test-fabs.c: New file.
8514
8515         Tests for module 'exp'.
8516         * modules/exp-tests: New file.
8517         * tests/test-exp.c: New file.
8518
8519         Tests for module 'erfc'.
8520         * modules/erfc-tests: New file.
8521         * tests/test-erfc.c: New file.
8522
8523         Tests for module 'erf'.
8524         * modules/erf-tests: New file.
8525         * tests/test-erf.c: New file.
8526
8527         Tests for module 'cosh'.
8528         * modules/cosh-tests: New file.
8529         * tests/test-cosh.c: New file.
8530
8531         Tests for module 'cos'.
8532         * modules/cos-tests: New file.
8533         * tests/test-cos.c: New file.
8534
8535         Tests for module 'copysign'.
8536         * modules/copysign-tests: New file.
8537         * tests/test-copysign.c: New file.
8538
8539         Tests for module 'cbrt'.
8540         * modules/cbrt-tests: New file.
8541         * tests/test-cbrt.c: New file.
8542
8543         Tests for module 'atan2'.
8544         * modules/atan2-tests: New file.
8545         * tests/test-atan2.c: New file.
8546
8547         Tests for module 'atan'.
8548         * modules/atan-tests: New file.
8549         * tests/test-atan.c: New file.
8550
8551         Tests for module 'asin'.
8552         * modules/asin-tests: New file.
8553         * tests/test-asin.c: New file.
8554
8555         Tests for module 'acos'.
8556         * modules/acos-tests: New file.
8557         * tests/test-acos.c: New file.
8558
8559 2010-01-24  Bruno Haible  <bruno@clisp.org>
8560
8561         Fix tests for common <math.h> functions.
8562         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
8563         code snippet that references the function pointer, rather than merely
8564         calling the function. Substitute the FUNC_LIBM variable.
8565         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
8566         * modules/acos (configure.ac): Likewise.
8567         * modules/asin (configure.ac): Likewise.
8568         * modules/atan (configure.ac): Likewise.
8569         * modules/atan2 (configure.ac): Likewise.
8570         * modules/cbrt (configure.ac): Likewise.
8571         * modules/copysign (configure.ac): Likewise.
8572         * modules/cos (configure.ac): Likewise.
8573         * modules/cosh (configure.ac): Likewise.
8574         * modules/erf (configure.ac): Likewise.
8575         * modules/erfc (configure.ac): Likewise.
8576         * modules/exp (configure.ac): Likewise.
8577         * modules/fabs (configure.ac): Likewise.
8578         * modules/fmod (configure.ac): Likewise.
8579         * modules/hypot (configure.ac): Likewise.
8580         * modules/j0 (configure.ac): Likewise.
8581         * modules/j1 (configure.ac): Likewise.
8582         * modules/jn (configure.ac): Likewise.
8583         * modules/ldexp (configure.ac): Likewise.
8584         * modules/lgamma (configure.ac): Likewise.
8585         * modules/log (configure.ac): Likewise.
8586         * modules/log10 (configure.ac): Likewise.
8587         * modules/log1p (configure.ac): Likewise.
8588         * modules/logb (configure.ac): Likewise.
8589         * modules/modf (configure.ac): Likewise.
8590         * modules/nextafter (configure.ac): Likewise.
8591         * modules/pow (configure.ac): Likewise.
8592         * modules/remainder (configure.ac): Likewise.
8593         * modules/rint (configure.ac): Likewise.
8594         * modules/sin (configure.ac): Likewise.
8595         * modules/sinh (configure.ac): Likewise.
8596         * modules/tan (configure.ac): Likewise.
8597         * modules/tanh (configure.ac): Likewise.
8598         * modules/y0 (configure.ac): Likewise.
8599         * modules/y1 (configure.ac): Likewise.
8600         * modules/yn (configure.ac): Likewise.
8601
8602 2010-01-24  Bruno Haible  <bruno@clisp.org>
8603
8604         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
8605         * tests/test-acosl.c (x): New variable.
8606         (main): Store argument in x and fetch it from x.
8607         * tests/test-asinl.c (x): New variable.
8608         (main): Store argument in x and fetch it from x.
8609         * tests/test-atanl.c (x): New variable.
8610         (main): Store argument in x and fetch it from x.
8611         * tests/test-cosl.c (x): New variable.
8612         (main): Store argument in x and fetch it from x.
8613         * tests/test-expl.c (x): New variable.
8614         (main): Store argument in x and fetch it from x.
8615         * tests/test-logl.c (x): New variable.
8616         (main): Store argument in x and fetch it from x.
8617         * tests/test-sinl.c (x): New variable.
8618         (main): Store argument in x and fetch it from x.
8619         * tests/test-sqrtl.c (x): New variable.
8620         (main): Store argument in x and fetch it from x.
8621         * tests/test-tanl.c (x): New variable.
8622         (main): Store argument in x and fetch it from x.
8623
8624 2010-01-24  Bruno Haible  <bruno@clisp.org>
8625
8626         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
8627         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
8628         assignments to the initial TESTS_ENVIRONMENT.
8629         * doc/gnulib.texi (Unit test modules): Document it.
8630         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
8631         TESTS_ENVIRONMENT.
8632         * modules/btowc-tests (Makefile.am): Likewise.
8633         * modules/c-stack-tests (Makefile.am): Likewise.
8634         * modules/c-strcase-tests (Makefile.am): Likewise.
8635         * modules/copy-file-tests (Makefile.am): Likewise.
8636         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
8637         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
8638         * modules/mbrtowc-tests (Makefile.am): Likewise.
8639         * modules/mbscasecmp-tests (Makefile.am): Likewise.
8640         * modules/mbscasestr-tests (Makefile.am): Likewise.
8641         * modules/mbschr-tests (Makefile.am): Likewise.
8642         * modules/mbscspn-tests (Makefile.am): Likewise.
8643         * modules/mbsinit-tests (Makefile.am): Likewise.
8644         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
8645         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
8646         * modules/mbspbrk-tests (Makefile.am): Likewise.
8647         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
8648         * modules/mbsrchr-tests (Makefile.am): Likewise.
8649         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
8650         * modules/mbsspn-tests (Makefile.am): Likewise.
8651         * modules/mbsstr-tests (Makefile.am): Likewise.
8652         * modules/nl_langinfo-tests (Makefile.am): Likewise.
8653         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
8654         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
8655         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
8656         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
8657         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
8658         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
8659         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
8660         * modules/wcrtomb-tests (Makefile.am): Likewise.
8661         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
8662         * modules/wcsrtombs-tests (Makefile.am): Likewise.
8663         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
8664         assignments from TESTS_ENVIRONMENT.
8665         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
8666         augmentation.
8667         * modules/argp-version-etc-tests (Makefile.am): Likewise.
8668         * modules/atexit-tests (Makefile.am): Likewise.
8669         * modules/binary-io-tests (Makefile.am): Likewise.
8670         * modules/closein-tests (Makefile.am): Likewise.
8671         * modules/dprintf-posix-tests (Makefile.am): Likewise.
8672         * modules/exclude-tests (Makefile.am): Likewise.
8673         * modules/fflush-tests (Makefile.am): Likewise.
8674         * modules/fpending-tests (Makefile.am): Likewise.
8675         * modules/fprintf-posix-tests (Makefile.am): Likewise.
8676         * modules/freadahead-tests (Makefile.am): Likewise.
8677         * modules/freadptr-tests (Makefile.am): Likewise.
8678         * modules/freadseek-tests (Makefile.am): Likewise.
8679         * modules/fseek-tests (Makefile.am): Likewise.
8680         * modules/fseeko-tests (Makefile.am): Likewise.
8681         * modules/ftell-tests (Makefile.am): Likewise.
8682         * modules/ftello-tests (Makefile.am): Likewise.
8683         * modules/idpriv-drop-tests (Makefile.am): Likewise.
8684         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
8685         * modules/lseek-tests (Makefile.am): Likewise.
8686         * modules/parse-duration-tests (Makefile.am): Likewise.
8687         * modules/perror-tests (Makefile.am): Likewise.
8688         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
8689         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
8690         * modules/pipe-tests (Makefile.am): Likewise.
8691         * modules/pread-tests (Makefile.am): Likewise.
8692         * modules/printf-posix-tests (Makefile.am): Likewise.
8693         * modules/select-tests (Makefile.am): Likewise.
8694         * modules/sigpipe-tests (Makefile.am): Likewise.
8695         * modules/tsearch-tests (Makefile.am): Likewise.
8696         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
8697         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
8698         * modules/uniname/uniname-tests (Makefile.am): Likewise.
8699         * modules/uniwidth/width-tests (Makefile.am): Likewise.
8700         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
8701         * modules/version-etc-tests (Makefile.am): Likewise.
8702         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
8703         * modules/vprintf-posix-tests (Makefile.am): Likewise.
8704         * modules/xalloc-die-tests (Makefile.am): Likewise.
8705         * modules/xprintf-posix-tests (Makefile.am): Likewise.
8706         * modules/xstrtoimax-tests (Makefile.am): Likewise.
8707         * modules/xstrtol-tests (Makefile.am): Likewise.
8708         * modules/xstrtoumax-tests (Makefile.am): Likewise.
8709         * modules/yesno-tests (Makefile.am): Likewise.
8710         Suggested by Jim Meyering.
8711
8712 2010-01-24  Bruno Haible  <bruno@clisp.org>
8713
8714         More documentation.
8715         * doc/gnulib.texi (Writing modules): New chapter.
8716         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
8717         the new chapter.
8718
8719 2010-01-24  Jim Meyering  <meyering@redhat.com>
8720
8721         maint.mk: do not prepend "./" after filtering
8722         * top/maint.mk (_prepend_srcdir_prefix): New variable
8723         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
8724         "./" when $(srcdir) is ".".
8725
8726         define STREQ(a,b) consistently, removing useless parentheses
8727         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
8728         since the only risk is that "a" or "b" contains an unparenthesized
8729         comma, but if either did that, STREQ would have 3 or more arguments.
8730         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
8731         * lib/fts.c (STREQ): Remove unnecessary parentheses.
8732         * lib/hash-triple.c (STREQ): Likewise.
8733         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
8734         * lib/getugroups.c (STREQ): Likewise.
8735
8736 2010-01-23  Jim Meyering  <meyering@redhat.com>
8737
8738         maint.mk: fix syntax-check in a non-srcdir build directory
8739         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
8740         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
8741
8742 2010-01-22  Jim Meyering  <meyering@redhat.com>
8743
8744         userspec: add unit tests
8745         * tests/test-userspec.c: New file.
8746         * modules/userspec-tests: Likewise.
8747
8748 2010-01-21  Jim Meyering  <meyering@redhat.com>
8749
8750         maint.mk: handle source file names containing "." robustly
8751         * top/maint.mk (_dot_escaped_srcdir): Define.
8752         (VC_LIST): Use it in LHS of sed substitution.
8753
8754 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
8755
8756         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
8757         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
8758         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
8759         from a non-srcdir build.
8760
8761 2010-01-20  Eric Blake  <ebb9@byu.net>
8762
8763         warn-on-use: use instead of link-warning
8764         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
8765         * modules/unistd (Depends-on, Makefile.am): Likewise.
8766         * modules/arpa_inet (Depends-on): Replace link-warning with
8767         warn-on-use.
8768         (Makefile.am): Update rules accordingly.
8769         * modules/ctype (Depends-on, Makefile.am): Likewise.
8770         * modules/dirent (Depends-on, Makefile.am): Likewise.
8771         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
8772         * modules/inttypes (Depends-on, Makefile.am): Likewise.
8773         * modules/langinfo (Depends-on, Makefile.am): Likewise.
8774         * modules/locale (Depends-on, Makefile.am): Likewise.
8775         * modules/math (Depends-on, Makefile.am): Likewise.
8776         * modules/search (Depends-on, Makefile.am): Likewise.
8777         * modules/signal (Depends-on, Makefile.am): Likewise.
8778         * modules/spawn (Depends-on, Makefile.am): Likewise.
8779         * modules/stdlib (Depends-on, Makefile.am): Likewise.
8780         * modules/string (Depends-on, Makefile.am): Likewise.
8781         * modules/strings (Depends-on, Makefile.am): Likewise.
8782         * modules/sys_file (Depends-on, Makefile.am): Likewise.
8783         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
8784         * modules/sys_select (Depends-on, Makefile.am): Likewise.
8785         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
8786         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
8787         * modules/sys_times (Depends-on, Makefile.am): Likewise.
8788         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
8789         * modules/wchar (Depends-on, Makefile.am): Likewise.
8790         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
8791         should be poisoned.
8792         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
8793         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
8794         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
8795         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
8796         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
8797         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
8798         * m4/math_h.m4 (gl_MATH_H): Likewise.
8799         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
8800         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
8801         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
8802         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
8803         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
8804         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
8805         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
8806         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
8807         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
8808         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
8809         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
8810         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
8811         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
8812         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
8813         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
8814         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
8815         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
8816         GL_LINK_WARNING.
8817         * lib/ctype.in.h: Likewise.
8818         * lib/dirent.in.h: Likewise.
8819         * lib/fcntl.in.h: Likewise.
8820         * lib/inttypes.in.h: Likewise.
8821         * lib/langinfo.in.h: Likewise.
8822         * lib/locale.in.h: Likewise.
8823         * lib/math.in.h: Likewise.
8824         * lib/search.in.h: Likewise.
8825         * lib/signal.in.h: Likewise.
8826         * lib/spawn.in.h: Likewise.
8827         * lib/stdio.in.h: Likewise.
8828         * lib/stdlib.in.h: Likewise.
8829         * lib/string.in.h: Likewise.
8830         * lib/strings.in.h: Likewise.
8831         * lib/sys_file.in.h: Likewise.
8832         * lib/sys_ioctl.in.h: Likewise.
8833         * lib/sys_select.in.h: Likewise.
8834         * lib/sys_socket.in.h: Likewise.
8835         * lib/sys_stat.in.h: Likewise.
8836         * lib/sys_times.in.h: Likewise.
8837         * lib/sys_utsname.in.h: Likewise.
8838         * lib/unistd.in.h: Likewise.
8839         * lib/wchar.in.h: Likewise.
8840
8841 2010-01-20  Bruno Haible  <bruno@clisp.org>
8842
8843         Avoid duplicate -lm.
8844         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
8845         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
8846         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
8847         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
8848         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
8849         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
8850         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
8851         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
8852         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
8853         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
8854         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
8855         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
8856         Reported by Paolo Bonzini.
8857
8858 2010-01-19  Bruno Haible  <bruno@clisp.org>
8859
8860         langinfo, nl_langinfo: Relicense under LGPLv2+.
8861         * modules/langinfo (License): Change to LGPLv2+.
8862         * modules/nl_langinfo (License): Likewise.
8863         Patch by David Lutterkort <lutter@redhat.com>.
8864
8865 2010-01-19  Bruno Haible  <bruno@clisp.org>
8866
8867         Avoid compilation error with cc on OSF/1 5.1.
8868         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
8869         statement, not before.
8870         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8871
8872 2010-01-18  Bruno Haible  <bruno@clisp.org>
8873
8874         Avoid a link error due to the __printf__ symbol.
8875         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
8876         and 2.6.x.
8877         (__format__, __printf__): Remove definitions.
8878         * lib/argp-fmtstream.h: Likewise.
8879         * lib/argp.h: Likewise.
8880         * lib/error.h: Likewise.
8881         * lib/vasnprintf.h: Likewise.
8882         * lib/xprintf.h: Likewise.
8883         * lib/xvasprintf.h: Likewise.
8884         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8885
8886 2010-01-18  Bruno Haible  <bruno@clisp.org>
8887
8888         Tests for module 'tanl'.
8889         * modules/tanl-tests: New file.
8890         * tests/test-tanl.c: New file.
8891
8892         Tests for module 'sqrtl'.
8893         * modules/sqrtl-tests: New file.
8894         * tests/test-sqrtl.c: New file.
8895
8896         Tests for module 'sinl'.
8897         * modules/sinl-tests: New file.
8898         * tests/test-sinl.c: New file.
8899
8900         Tests for module 'logl'.
8901         * modules/logl-tests: New file.
8902         * tests/test-logl.c: New file.
8903
8904         Tests for module 'expl'.
8905         * modules/expl-tests: New file.
8906         * tests/test-expl.c: New file.
8907
8908         Tests for module 'cosl'.
8909         * modules/cosl-tests: New file.
8910         * tests/test-cosl.c: New file.
8911
8912         Tests for module 'atanl'.
8913         * modules/atanl-tests: New file.
8914         * tests/test-atanl.c: New file.
8915
8916         Tests for module 'asinl'.
8917         * modules/asinl-tests: New file.
8918         * tests/test-asinl.c: New file.
8919
8920         Tests for module 'acosl'.
8921         * modules/acosl-tests: New file.
8922         * tests/test-acosl.c: New file.
8923
8924         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
8925         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
8926         tanl): Use the standard gnulib idiom.
8927         * lib/cosl.c: Don't include trigl.c and sincosl.c.
8928         * lib/sinl.c: Likewise.
8929         * lib/tanl.c: Don't include trigl.c.
8930         (kernel_tanl): Make static.
8931         * lib/sincosl.c: Include trigl.h first.
8932         * lib/trigl.c: Likewise.
8933         * m4/acosl.m4: New file.
8934         * m4/asinl.m4: New file.
8935         * m4/atanl.m4: New file.
8936         * m4/cosl.m4: New file.
8937         * m4/expl.m4: New file.
8938         * m4/logl.m4: New file.
8939         * m4/sinl.m4: New file.
8940         * m4/sqrtl.m4: New file.
8941         * m4/tanl.m4: New file.
8942         * m4/mathl.m4: Remove file.
8943         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
8944         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
8945         Don't initialize GNULIB_MATHL.
8946         * modules/acosl: New file.
8947         * modules/asinl: New file.
8948         * modules/atanl: New file.
8949         * modules/cosl: New file.
8950         * modules/expl: New file.
8951         * modules/logl: New file.
8952         * modules/sinl: New file.
8953         * modules/sqrtl: New file.
8954         * modules/tanl: New file.
8955         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
8956         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
8957         substitute GNULIB_MATHL.
8958         * modules/mathl: Rewritten.
8959         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
8960         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
8961         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
8962         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
8963         * doc/posix-functions/expl.texi: Mention the 'expl' module.
8964         * doc/posix-functions/logl.texi: Mention the 'logl' module.
8965         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
8966         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
8967         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
8968
8969 2010-01-18  Bruno Haible  <bruno@clisp.org>
8970
8971         sqrt: Make gl_FUNC_SQRT requirable.
8972         * m4/sqrt.m4: New file.
8973         * modules/sqrt (Files): Add it.
8974         (configure.ac): Invoke gl_FUNC_SQRT.
8975
8976 2010-01-18  Bruno Haible  <bruno@clisp.org>
8977
8978         New modules for common <math.h> functions.
8979         * m4/mathfunc.m4: New file.
8980         * modules/acos: New file.
8981         * modules/asin: New file.
8982         * modules/atan: New file.
8983         * modules/atan2: New file.
8984         * modules/cbrt: New file.
8985         * modules/copysign: New file.
8986         * modules/cos: New file.
8987         * modules/cosh: New file.
8988         * modules/erf: New file.
8989         * modules/erfc: New file.
8990         * modules/exp: New file.
8991         * modules/fabs: New file.
8992         * modules/fmod: New file.
8993         * modules/hypot: New file.
8994         * modules/j0: New file.
8995         * modules/j1: New file.
8996         * modules/jn: New file.
8997         * modules/ldexp: New file.
8998         * modules/lgamma: New file.
8999         * modules/log: New file.
9000         * modules/log10: New file.
9001         * modules/log1p: New file.
9002         * modules/logb: New file.
9003         * modules/modf: New file.
9004         * modules/nextafter: New file.
9005         * modules/pow: New file.
9006         * modules/remainder: New file.
9007         * modules/rint: New file.
9008         * modules/sin: New file.
9009         * modules/sinh: New file.
9010         * modules/sqrt: New file.
9011         * modules/tan: New file.
9012         * modules/tanh: New file.
9013         * modules/y0: New file.
9014         * modules/y1: New file.
9015         * modules/yn: New file.
9016         * doc/posix-functions/acos.texi: Mention the 'acos' module.
9017         * doc/posix-functions/asin.texi: Mention the 'asin' module.
9018         * doc/posix-functions/atan.texi: Mention the 'atan' module.
9019         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
9020         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
9021         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
9022         * doc/posix-functions/cos.texi: Mention the 'cos' module.
9023         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
9024         * doc/posix-functions/erf.texi: Mention the 'erf' module.
9025         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
9026         * doc/posix-functions/exp.texi: Mention the 'exp' module.
9027         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
9028         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
9029         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
9030         * doc/posix-functions/j0.texi: Mention the 'j0' module.
9031         * doc/posix-functions/j1.texi: Mention the 'j1' module.
9032         * doc/posix-functions/jn.texi: Mention the 'jn' module.
9033         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
9034         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
9035         * doc/posix-functions/log.texi: Mention the 'log' module.
9036         * doc/posix-functions/log10.texi: Mention the 'log10' module.
9037         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
9038         * doc/posix-functions/logb.texi: Mention the 'logb' module.
9039         * doc/posix-functions/modf.texi: Mention the 'modf' module.
9040         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
9041         * doc/posix-functions/pow.texi: Mention the 'pow' module.
9042         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
9043         * doc/posix-functions/rint.texi: Mention the 'rint' module.
9044         * doc/posix-functions/sin.texi: Mention the 'sin' module.
9045         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
9046         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
9047         * doc/posix-functions/tan.texi: Mention the 'tan' module.
9048         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
9049         * doc/posix-functions/y0.texi: Mention the 'y0' module.
9050         * doc/posix-functions/y1.texi: Mention the 'y1' module.
9051         * doc/posix-functions/yn.texi: Mention the 'yn' module.
9052
9053 2010-01-18  Jim Meyering  <meyering@redhat.com>
9054
9055         ignore-value: relax license to LGPLv2+
9056         * modules/ignore-value (License): Relax to LGPLv2+.
9057
9058         getdate: don't leak when TZ contains two or more '"'s
9059         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
9060         double quote in TZ after the first one.
9061
9062         readtokens: do not leak internal token_lengths buffer
9063         * lib/readtokens.c (readtokens): Free the local, lengths,
9064         when the supplied "token_lengths" parameter is NULL.
9065
9066 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9067
9068         Fix a couple of missing LIBTHREAD link failures on AIX.
9069         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
9070         $(LIBTHREAD).
9071         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
9072
9073         Link test-poll against INET_PTON_LIB.
9074         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
9075         for inet_pton on Solaris 10.
9076
9077 2010-01-17  Bruno Haible  <bruno@clisp.org>
9078
9079         unistdio/*-sprintf: Fix typo in module description.
9080         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
9081         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
9082         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
9083         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
9084         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
9085         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
9086         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
9087         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9088
9089 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9090
9091         gnulib-tool: fix filelist for AIX, HP-UX ksh.
9092         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
9093         variables in shell case patterns, for AIX and HP-UX ksh.
9094
9095         Split large sed scripts, for HP-UX sed.
9096         * modules/stdio: Split sed scripts around 50 sed commands,
9097         to avoid HP-UX limit of 99 commands, in the near future.
9098         * modules/string: Likewise.
9099         * modules/unistd: Likewise.
9100
9101         gnulib-tool: avoid writing in the current directory.
9102         * gnulib-tool (func_emit_lib_Makefile_am)
9103         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
9104         not in the current directory, so concurrent gnulib-tool
9105         instances do not interfere.
9106
9107 2010-01-16  Jim Meyering  <meyering@redhat.com>
9108
9109         doc: update users.txt
9110         * users.txt: Add grep.
9111         (diffutils, gzip): Update URLs.
9112
9113 2010-01-12  Bruno Haible  <bruno@clisp.org>
9114
9115         posix_spawn: Avoid test failure on Cygwin.
9116         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
9117         characters.
9118         Reported by Simon Josefsson.
9119
9120 2010-01-12  Bruno Haible  <bruno@clisp.org>
9121
9122         * tests/test-cond.c (main): When skipping the test, show the reason.
9123
9124 2010-01-12  Simon Josefsson  <simon@josefsson.org>
9125
9126         * lib/striconv.c (str_cd_iconv): Avoid if before free.
9127
9128 2010-01-12  Simon Josefsson  <simon@josefsson.org>
9129
9130         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
9131         VC_LIST_ALWAYS_EXCLUDE_REGEX.
9132
9133 2010-01-12  Eric Blake  <ebb9@byu.net>
9134
9135         build: guarantee AS_VAR_IF
9136         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
9137         (gl_AS_VAR_IF): Move...
9138         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
9139         Reported by Simon Josefsson.
9140
9141 2010-01-12  Simon Josefsson  <simon@josefsson.org>
9142
9143         * lib/stdio.in.h: Fix typo.
9144
9145 2010-01-12  Simon Josefsson  <simon@josefsson.org>
9146
9147         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
9148         libgpg-error.
9149
9150 2010-01-12  Simon Josefsson  <simon@josefsson.org>
9151
9152         * tests/test-xalloc-die.sh: Use $EXEEXT.
9153
9154 2010-01-12  Simon Josefsson  <simon@josefsson.org>
9155             Bruno Haible  <bruno@clisp.org>
9156
9157         getlogin, getlogin_r: Avoid test failure.
9158         * tests/test-getlogin.c: Include <stdio.h>.
9159         (main): Skip the test when the function fails because stdin is not a
9160         tty.
9161         * tests/test-getlogin_r.c: Include <stdio.h>.
9162         (main): Skip the test when the function fails because stdin is not a
9163         tty.
9164
9165 2010-01-11  Eric Blake  <ebb9@byu.net>
9166
9167         tests: avoid more large file warnings
9168         * tests/test-fflush.c: Avoid warning about ftell use.
9169         * tests/test-fseek.c: Avoid warning about fseek use.
9170
9171 2010-01-10  Bruno Haible  <bruno@clisp.org>
9172
9173         nproc: Work better on Linux when /proc and /sys are not mounted.
9174         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
9175         as lower bound when, on glibc/Linux systems,
9176         sysconf (_SC_NPROCESSORS_CONF) returns 1.
9177         Suggested by Pádraig Brady <P@draigbrady.com>.
9178         Reported by Dmitry V. Levin <ldv@altlinux.org>.
9179
9180         nproc: Refactor.
9181         * lib/nproc.c (num_processors_via_affinity_mask): New function,
9182         extracted from num_processors.
9183         (num_processors): Call it.
9184
9185 2010-01-11  Jim Meyering  <meyering@redhat.com>
9186
9187         utimecmp: avoid new warning from upcoming gcc-4.5.0
9188         * lib/utimecmp.c (BILLION): Define using #define rather than an
9189         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
9190
9191 2010-01-11  Eric Blake  <ebb9@byu.net>
9192
9193         math: add portability warnings for classification macros
9194         * modules/math (Depends-on): Add warn-on-use.
9195         (Makefile.am): Provide new substitutions.
9196         * m4/math_h.m4 (gl_MATH_H): Require inline.
9197         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
9198         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
9199         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
9200         implement warnings.
9201
9202         unistd: warn on use of environ without module
9203         * modules/unistd (Depends-on): Add warn-on-use.
9204         (Makefile.am): Provide new substitutions.
9205         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
9206         * lib/unistd.in.h (environ): Wrap with a warning helper function.
9207
9208         stdio: warn on suspicious uses
9209         * modules/stdio (Depends-on): Add warn-on-use.
9210         (Makefile.am): Provide new substitutions.
9211         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
9212         fseeko.
9213         * lib/stdio.in.h (gets): Always warn on use.
9214         (fseek, ftell): Adjust when warnings are issued, and honor
9215         _GL_NO_LARGE_FILES as a way to silence the warning.
9216         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
9217         any warning about large file offsets.
9218         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
9219         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
9220         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
9221         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
9222         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
9223         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
9224         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
9225         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
9226
9227         warn-on-use: new module
9228         * modules/warn-on-use: New file.
9229         * build-aux/warn-on-use.h: Likewise.
9230         * m4/warn-on-use.m4: Likewise.
9231         * MODULES.html.sh (Support for building): Mention it.
9232
9233 2010-01-10  Bruno Haible  <bruno@clisp.org>
9234
9235         Tests for module 'unistr/u32-strdup'.
9236         * modules/unistr/u32-strdup-tests: New file.
9237         * tests/unistr/test-u32-strdup.c: New file.
9238
9239         Tests for module 'unistr/u16-strdup'.
9240         * modules/unistr/u16-strdup-tests: New file.
9241         * tests/unistr/test-u16-strdup.c: New file.
9242
9243         Tests for module 'unistr/u8-strdup'.
9244         * modules/unistr/u8-strdup-tests: New file.
9245         * tests/unistr/test-u8-strdup.c: New file.
9246         * tests/unistr/test-strdup.h: New file.
9247
9248         Tests for module 'unistr/u32-strncmp'.
9249         * modules/unistr/u32-strncmp-tests: New file.
9250         * tests/unistr/test-u32-strncmp.c: New file.
9251
9252         Tests for module 'unistr/u16-strncmp'.
9253         * modules/unistr/u16-strncmp-tests: New file.
9254         * tests/unistr/test-u16-strncmp.c: New file.
9255
9256         Tests for module 'unistr/u8-strncmp'.
9257         * modules/unistr/u8-strncmp-tests: New file.
9258         * tests/unistr/test-u8-strncmp.c: New file.
9259         * tests/unistr/test-strncmp.h: New file.
9260
9261         Tests for module 'unistr/u32-strcoll'.
9262         * modules/unistr/u32-strcoll-tests: New file.
9263         * tests/unistr/test-u32-strcoll.c: New file.
9264
9265         Tests for module 'unistr/u16-strcoll'.
9266         * modules/unistr/u16-strcoll-tests: New file.
9267         * tests/unistr/test-u16-strcoll.c: New file.
9268
9269         Tests for module 'unistr/u8-strcoll'.
9270         * modules/unistr/u8-strcoll-tests: New file.
9271         * tests/unistr/test-u8-strcoll.c: New file.
9272
9273         Tests for module 'unistr/u32-strcmp'.
9274         * modules/unistr/u32-strcmp-tests: New file.
9275         * tests/unistr/test-u32-strcmp.c: New file.
9276         * tests/unistr/test-u32-strcmp.h: New file.
9277
9278         Tests for module 'unistr/u16-strcmp'.
9279         * modules/unistr/u16-strcmp-tests: New file.
9280         * tests/unistr/test-u16-strcmp.c: New file.
9281         * tests/unistr/test-u16-strcmp.h: New file.
9282
9283         Tests for module 'unistr/u8-strcmp'.
9284         * modules/unistr/u8-strcmp-tests: New file.
9285         * tests/unistr/test-u8-strcmp.c: New file.
9286         * tests/unistr/test-u8-strcmp.h: New file.
9287         * tests/unistr/test-strcmp.h: New file.
9288
9289         Tests for module 'unistr/u32-strncat'.
9290         * modules/unistr/u32-strncat-tests: New file.
9291         * tests/unistr/test-u32-strncat.c: New file.
9292
9293         Tests for module 'unistr/u16-strncat'.
9294         * modules/unistr/u16-strncat-tests: New file.
9295         * tests/unistr/test-u16-strncat.c: New file.
9296
9297         Tests for module 'unistr/u8-strncat'.
9298         * modules/unistr/u8-strncat-tests: New file.
9299         * tests/unistr/test-u8-strncat.c: New file.
9300         * tests/unistr/test-strncat.h: New file.
9301
9302         Tests for module 'unistr/u32-strcat'.
9303         * modules/unistr/u32-strcat-tests: New file.
9304         * tests/unistr/test-u32-strcat.c: New file.
9305
9306         Tests for module 'unistr/u16-strcat'.
9307         * modules/unistr/u16-strcat-tests: New file.
9308         * tests/unistr/test-u16-strcat.c: New file.
9309
9310         Tests for module 'unistr/u8-strcat'.
9311         * modules/unistr/u8-strcat-tests: New file.
9312         * tests/unistr/test-u8-strcat.c: New file.
9313         * tests/unistr/test-strcat.h: New file.
9314
9315         Tests for module 'unistr/u32-stpncpy'.
9316         * modules/unistr/u32-stpncpy-tests: New file.
9317         * tests/unistr/test-u32-stpncpy.c: New file.
9318
9319         Tests for module 'unistr/u16-stpncpy'.
9320         * modules/unistr/u16-stpncpy-tests: New file.
9321         * tests/unistr/test-u16-stpncpy.c: New file.
9322
9323         Tests for module 'unistr/u8-stpncpy'.
9324         * modules/unistr/u8-stpncpy-tests: New file.
9325         * tests/unistr/test-u8-stpncpy.c: New file.
9326         * tests/unistr/test-stpncpy.h: New file.
9327
9328         Tests for module 'unistr/u32-strncpy'.
9329         * modules/unistr/u32-strncpy-tests: New file.
9330         * tests/unistr/test-u32-strncpy.c: New file.
9331
9332         Tests for module 'unistr/u16-strncpy'.
9333         * modules/unistr/u16-strncpy-tests: New file.
9334         * tests/unistr/test-u16-strncpy.c: New file.
9335
9336         Tests for module 'unistr/u8-strncpy'.
9337         * modules/unistr/u8-strncpy-tests: New file.
9338         * tests/unistr/test-u8-strncpy.c: New file.
9339         * tests/unistr/test-strncpy.h: New file.
9340
9341         Tests for module 'unistr/u32-stpcpy'.
9342         * modules/unistr/u32-stpcpy-tests: New file.
9343         * tests/unistr/test-u32-stpcpy.c: New file.
9344
9345         Tests for module 'unistr/u16-stpcpy'.
9346         * modules/unistr/u16-stpcpy-tests: New file.
9347         * tests/unistr/test-u16-stpcpy.c: New file.
9348
9349         Tests for module 'unistr/u8-stpcpy'.
9350         * modules/unistr/u8-stpcpy-tests: New file.
9351         * tests/unistr/test-u8-stpcpy.c: New file.
9352         * tests/unistr/test-stpcpy.h: New file.
9353
9354         Tests for module 'unistr/u32-strcpy'.
9355         * modules/unistr/u32-strcpy-tests: New file.
9356         * tests/unistr/test-u32-strcpy.c: New file.
9357
9358         Tests for module 'unistr/u16-strcpy'.
9359         * modules/unistr/u16-strcpy-tests: New file.
9360         * tests/unistr/test-u16-strcpy.c: New file.
9361
9362         Tests for module 'unistr/u8-strcpy'.
9363         * modules/unistr/u8-strcpy-tests: New file.
9364         * tests/unistr/test-u8-strcpy.c: New file.
9365         * tests/unistr/test-strcpy.h: New file.
9366
9367         Tests for module 'unistr/u32-strnlen'.
9368         * modules/unistr/u32-strnlen-tests: New file.
9369         * tests/unistr/test-u32-strnlen.c: New file.
9370
9371         Tests for module 'unistr/u16-strnlen'.
9372         * modules/unistr/u16-strnlen-tests: New file.
9373         * tests/unistr/test-u16-strnlen.c: New file.
9374
9375         Tests for module 'unistr/u8-strnlen'.
9376         * modules/unistr/u8-strnlen-tests: New file.
9377         * tests/unistr/test-u8-strnlen.c: New file.
9378         * tests/unistr/test-strnlen.h: New file.
9379
9380         Tests for module 'unistr/u32-strlen'.
9381         * modules/unistr/u32-strlen-tests: New file.
9382         * tests/unistr/test-u32-strlen.c: New file.
9383
9384         Tests for module 'unistr/u16-strlen'.
9385         * modules/unistr/u16-strlen-tests: New file.
9386         * tests/unistr/test-u16-strlen.c: New file.
9387
9388         Tests for module 'unistr/u8-strlen'.
9389         * modules/unistr/u8-strlen-tests: New file.
9390         * tests/unistr/test-u8-strlen.c: New file.
9391
9392         Tests for module 'unistr/u32-prev'.
9393         * modules/unistr/u32-prev-tests: New file.
9394         * tests/unistr/test-u32-prev.c: New file.
9395
9396         Tests for module 'unistr/u16-prev'.
9397         * modules/unistr/u16-prev-tests: New file.
9398         * tests/unistr/test-u16-prev.c: New file.
9399
9400         Tests for module 'unistr/u8-prev'.
9401         * modules/unistr/u8-prev-tests: New file.
9402         * tests/unistr/test-u8-prev.c: New file.
9403
9404         Tests for module 'unistr/u32-next'.
9405         * modules/unistr/u32-next-tests: New file.
9406         * tests/unistr/test-u32-next.c: New file.
9407
9408         Tests for module 'unistr/u16-next'.
9409         * modules/unistr/u16-next-tests: New file.
9410         * tests/unistr/test-u16-next.c: New file.
9411
9412         Tests for module 'unistr/u8-next'.
9413         * modules/unistr/u8-next-tests: New file.
9414         * tests/unistr/test-u8-next.c: New file.
9415
9416         Tests for module 'unistr/u32-strmbtouc'.
9417         * modules/unistr/u32-strmbtouc-tests: New file.
9418         * tests/unistr/test-u32-strmbtouc.c: New file.
9419
9420         Tests for module 'unistr/u16-strmbtouc'.
9421         * modules/unistr/u16-strmbtouc-tests: New file.
9422         * tests/unistr/test-u16-strmbtouc.c: New file.
9423
9424         Tests for module 'unistr/u8-strmbtouc'.
9425         * modules/unistr/u8-strmbtouc-tests: New file.
9426         * tests/unistr/test-u8-strmbtouc.c: New file.
9427
9428         Tests for module 'unistr/u32-strmblen'.
9429         * modules/unistr/u32-strmblen-tests: New file.
9430         * tests/unistr/test-u32-strmblen.c: New file.
9431
9432         Tests for module 'unistr/u16-strmblen'.
9433         * modules/unistr/u16-strmblen-tests: New file.
9434         * tests/unistr/test-u16-strmblen.c: New file.
9435
9436         Tests for module 'unistr/u8-strmblen'.
9437         * modules/unistr/u8-strmblen-tests: New file.
9438         * tests/unistr/test-u8-strmblen.c: New file.
9439
9440         Tests for module 'unistr/u32-cpy-alloc'.
9441         * modules/unistr/u32-cpy-alloc-tests: New file.
9442         * tests/unistr/test-u32-cpy-alloc.c: New file.
9443
9444         Tests for module 'unistr/u16-cpy-alloc'.
9445         * modules/unistr/u16-cpy-alloc-tests: New file.
9446         * tests/unistr/test-u16-cpy-alloc.c: New file.
9447
9448         Tests for module 'unistr/u8-cpy-alloc'.
9449         * modules/unistr/u8-cpy-alloc-tests: New file.
9450         * tests/unistr/test-u8-cpy-alloc.c: New file.
9451         * tests/unistr/test-cpy-alloc.h: New file.
9452
9453         Tests for module 'unistr/u32-mbsnlen'.
9454         * modules/unistr/u32-mbsnlen-tests: New file.
9455         * tests/unistr/test-u32-mbsnlen.c: New file.
9456
9457         Tests for module 'unistr/u16-mbsnlen'.
9458         * modules/unistr/u16-mbsnlen-tests: New file.
9459         * tests/unistr/test-u16-mbsnlen.c: New file.
9460
9461         Tests for module 'unistr/u8-mbsnlen'.
9462         * modules/unistr/u8-mbsnlen-tests: New file.
9463         * tests/unistr/test-u8-mbsnlen.c: New file.
9464
9465         Tests for module 'unistr/u32-chr'.
9466         * modules/unistr/u32-chr-tests: New file.
9467         * tests/unistr/test-u32-chr.c: New file.
9468
9469         Tests for module 'unistr/u16-chr'.
9470         * modules/unistr/u16-chr-tests: New file.
9471         * tests/unistr/test-u16-chr.c: New file.
9472
9473         Tests for module 'unistr/u8-chr'.
9474         * modules/unistr/u8-chr-tests: New file.
9475         * tests/unistr/test-u8-chr.c: New file.
9476         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
9477
9478         Tests for module 'unistr/u32-cmp2'.
9479         * modules/unistr/u32-cmp2-tests: New file.
9480         * tests/unistr/test-u32-cmp2.c: New file.
9481
9482         Tests for module 'unistr/u16-cmp2'.
9483         * modules/unistr/u16-cmp2-tests: New file.
9484         * tests/unistr/test-u16-cmp2.c: New file.
9485
9486         Tests for module 'unistr/u8-cmp2'.
9487         * modules/unistr/u8-cmp2-tests: New file.
9488         * tests/unistr/test-u8-cmp2.c: New file.
9489         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
9490
9491         Tests for module 'unistr/u32-cmp'.
9492         * modules/unistr/u32-cmp-tests: New file.
9493         * tests/unistr/test-u32-cmp.c: New file.
9494
9495         Tests for module 'unistr/u16-cmp'.
9496         * modules/unistr/u16-cmp-tests: New file.
9497         * tests/unistr/test-u16-cmp.c: New file.
9498
9499         Tests for module 'unistr/u8-cmp'.
9500         * modules/unistr/u8-cmp-tests: New file.
9501         * tests/unistr/test-u8-cmp.c: New file.
9502         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
9503
9504         Tests for module 'unistr/u32-set'.
9505         * modules/unistr/u32-set-tests: New file.
9506         * tests/unistr/test-u32-set.c: New file.
9507
9508         Tests for module 'unistr/u16-set'.
9509         * modules/unistr/u16-set-tests: New file.
9510         * tests/unistr/test-u16-set.c: New file.
9511
9512         Tests for module 'unistr/u8-set'.
9513         * modules/unistr/u8-set-tests: New file.
9514         * tests/unistr/test-u8-set.c: New file.
9515         * tests/unistr/test-set.h: New file.
9516
9517         Tests for module 'unistr/u32-move'.
9518         * modules/unistr/u32-move-tests: New file.
9519         * tests/unistr/test-u32-move.c: New file.
9520
9521         Tests for module 'unistr/u16-move'.
9522         * modules/unistr/u16-move-tests: New file.
9523         * tests/unistr/test-u16-move.c: New file.
9524
9525         Tests for module 'unistr/u8-move'.
9526         * modules/unistr/u8-move-tests: New file.
9527         * tests/unistr/test-u8-move.c: New file.
9528         * tests/unistr/test-move.h: New file.
9529
9530         Tests for module 'unistr/u32-cpy'.
9531         * modules/unistr/u32-cpy-tests: New file.
9532         * tests/unistr/test-u32-cpy.c: New file.
9533
9534         Tests for module 'unistr/u16-cpy'.
9535         * modules/unistr/u16-cpy-tests: New file.
9536         * tests/unistr/test-u16-cpy.c: New file.
9537
9538         Tests for module 'unistr/u8-cpy'.
9539         * modules/unistr/u8-cpy-tests: New file.
9540         * tests/unistr/test-u8-cpy.c: New file.
9541         * tests/unistr/test-cpy.h: New file.
9542
9543 2010-01-09  Bruno Haible  <bruno@clisp.org>
9544
9545         Tests for module 'unistr/u32-uctomb'.
9546         * modules/unistr/u32-uctomb-tests: New file.
9547         * tests/unistr/test-u32-uctomb.c: New file.
9548
9549         Tests for module 'unistr/u16-uctomb'.
9550         * modules/unistr/u16-uctomb-tests: New file.
9551         * tests/unistr/test-u16-uctomb.c: New file.
9552
9553         Tests for module 'unistr/u8-uctomb'.
9554         * modules/unistr/u8-uctomb-tests: New file.
9555         * tests/unistr/test-u8-uctomb.c: New file.
9556
9557         Tests for module 'unistr/u32-mbtoucr'.
9558         * modules/unistr/u32-mbtoucr-tests: New file.
9559         * tests/unistr/test-u32-mbtoucr.c: New file.
9560
9561         Tests for module 'unistr/u16-mbtoucr'.
9562         * modules/unistr/u16-mbtoucr-tests: New file.
9563         * tests/unistr/test-u16-mbtoucr.c: New file.
9564
9565         Tests for module 'unistr/u8-mbtoucr'.
9566         * modules/unistr/u8-mbtoucr-tests: New file.
9567         * tests/unistr/test-u8-mbtoucr.c: New file.
9568
9569         Tests for module 'unistr/u32-mbtouc'.
9570         * modules/unistr/u32-mbtouc-tests: New file.
9571         * tests/unistr/test-u32-mbtouc.c: New file.
9572
9573         Tests for module 'unistr/u16-mbtouc'.
9574         * modules/unistr/u16-mbtouc-tests: New file.
9575         * tests/unistr/test-u16-mbtouc.c: New file.
9576
9577         Tests for module 'unistr/u8-mbtouc'.
9578         * modules/unistr/u8-mbtouc-tests: New file.
9579         * tests/unistr/test-u8-mbtouc.c: New file.
9580
9581         Tests for module 'unistr/u32-mbtouc-unsafe'.
9582         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
9583         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
9584         * tests/unistr/test-u32-mbtouc.h: New file.
9585
9586         Tests for module 'unistr/u16-mbtouc-unsafe'.
9587         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
9588         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
9589         * tests/unistr/test-u16-mbtouc.h: New file.
9590
9591         Tests for module 'unistr/u8-mbtouc-unsafe'.
9592         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
9593         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
9594         * tests/unistr/test-u8-mbtouc.h: New file.
9595
9596         Tests for module 'unistr/u32-mblen'.
9597         * modules/unistr/u32-mblen-tests: New file.
9598         * tests/unistr/test-u32-mblen.c: New file.
9599
9600         Tests for module 'unistr/u16-mblen'.
9601         * modules/unistr/u16-mblen-tests: New file.
9602         * tests/unistr/test-u16-mblen.c: New file.
9603
9604         Tests for module 'unistr/u8-mblen'.
9605         * modules/unistr/u8-mblen-tests: New file.
9606         * tests/unistr/test-u8-mblen.c: New file.
9607
9608         Tests for module 'unistr/u32-to-u16'.
9609         * modules/unistr/u32-to-u16-tests: New file.
9610         * tests/unistr/test-u32-to-u16.c: New file.
9611
9612         Tests for module 'unistr/u32-to-u8'.
9613         * modules/unistr/u32-to-u8-tests: New file.
9614         * tests/unistr/test-u32-to-u8.c: New file.
9615
9616         Tests for module 'unistr/u16-to-u32'.
9617         * modules/unistr/u16-to-u32-tests: New file.
9618         * tests/unistr/test-u16-to-u32.c: New file.
9619
9620         Tests for module 'unistr/u16-to-u8'.
9621         * modules/unistr/u16-to-u8-tests: New file.
9622         * tests/unistr/test-u16-to-u8.c: New file.
9623
9624         Tests for module 'unistr/u8-to-u32'.
9625         * modules/unistr/u8-to-u32-tests: New file.
9626         * tests/unistr/test-u8-to-u32.c: New file.
9627
9628         Tests for module 'unistr/u8-to-u16'.
9629         * modules/unistr/u8-to-u16-tests: New file.
9630         * tests/unistr/test-u8-to-u16.c: New file.
9631
9632         Tests for module 'unistr/u32-check'.
9633         * modules/unistr/u32-check-tests: New file.
9634         * tests/unistr/test-u32-check.c: New file.
9635
9636         Tests for module 'unistr/u16-check'.
9637         * modules/unistr/u16-check-tests: New file.
9638         * tests/unistr/test-u16-check.c: New file.
9639
9640         Tests for module 'unistr/u8-check'.
9641         * modules/unistr/u8-check-tests: New file.
9642         * tests/unistr/test-u8-check.c: New file.
9643
9644         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
9645         (category_equals): New function.
9646         (main): Add more tests.
9647         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
9648
9649         * tests/unictype/test-bidi_byname.c (main): Add more tests.
9650
9651 2010-01-10  Bruno Haible  <bruno@clisp.org>
9652
9653         unistr/u*-strcoll: Try harder to distinguish different strings.
9654         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
9655         compare s1 and s2 to see if they are different.
9656
9657 2010-01-10  Bruno Haible  <bruno@clisp.org>
9658
9659         unistr/u*-stpncpy: Fix the return value.
9660         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
9661         description of the return value consistent with stpncpy in glibc.
9662         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
9663         written non-NUL unit.
9664
9665 2010-01-10  Bruno Haible  <bruno@clisp.org>
9666
9667         unistr/u*-next: Add missing dependencies.
9668         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
9669         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
9670         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
9671
9672 2010-01-10  Bruno Haible  <bruno@clisp.org>
9673
9674         unistr/u8-mbsnlen: Fix return value for incomplete character.
9675         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
9676         u8_mblen.
9677         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
9678         Remove unistr/u8-mblen.
9679         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
9680         u16_mblen.
9681         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
9682         Remove unistr/u16-mblen.
9683
9684 2010-01-10  Bruno Haible  <bruno@clisp.org>
9685
9686         wchar: Fix compilation error when <wchar.h> is used from coreutils.
9687         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
9688         Reported by Brian Gough <bjg@gnu.org> and
9689         Chris Clayton <chris2553@googlemail.com> via
9690         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
9691
9692 2010-01-09  Bruno Haible  <bruno@clisp.org>
9693
9694         unistr/u16-to-u32: Reject invalid input.
9695         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
9696         u16_mbtouc.
9697         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
9698         Remove unistr/u16-mbtouc.
9699
9700         unistr/u16-to-u8: Reject invalid input.
9701         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
9702         u16_mbtouc.
9703         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
9704         Remove unistr/u16-mbtouc.
9705
9706         unistr/u8-to-u32: Reject invalid input.
9707         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
9708         u8_mbtouc.
9709         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
9710         Remove unistr/u8-mbtouc.
9711
9712         unistr/u8-to-u16: Reject invalid input.
9713         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
9714         u8_mbtouc.
9715         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
9716         Remove unistr/u8-mbtouc.
9717
9718 2010-01-09  Bruno Haible  <bruno@clisp.org>
9719
9720         Tests for module 'getlogin'.
9721         * modules/getlogin-tests: New file.
9722         * tests/test-getlogin.c: New file.
9723
9724         New module 'getlogin'.
9725         * lib/unistd.in.h (getlogin): New declaration.
9726         * lib/getlogin.c: New file.
9727         * m4/getlogin.m4: New file.
9728         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
9729         HAVE_GETLOGIN.
9730         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
9731         HAVE_GETLOGIN.
9732         * modules/getlogin: New file.
9733         * doc/posix-functions/getlogin.texi: Mention the new module.
9734         Reported by John W. Eaton <jwe@gnu.org>.
9735
9736 2010-01-09  Bruno Haible  <bruno@clisp.org>
9737
9738         getlogin_r: Support for native Windows.
9739         * lib/getlogin_r.c: Include <windows.h>
9740         (getlogin_r): Implement for native Windows.
9741         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
9742         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
9743         via John W. Eaton <jwe@gnu.org>.
9744
9745 2010-01-09  Bruno Haible  <bruno@clisp.org>
9746
9747         getlogin_r: Small fixes.
9748         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
9749         succeeds.
9750         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
9751         before testing whether getlogin_r is declared. No need to set
9752         HAVE_DECL_GETLOGIN_R to 1.
9753         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
9754
9755 2010-01-09  Bruno Haible  <bruno@clisp.org>
9756
9757         * lib/unistd.in.h (getlogin_r): Add comment.
9758
9759 2010-01-09  Bruno Haible  <bruno@clisp.org>
9760
9761         Tests for module 'getlogin_r'.
9762         * modules/getlogin_r-tests: New file.
9763         * tests/test-getlogin_r.c: New file.
9764
9765 2010-01-09  Jim Meyering  <meyering@redhat.com>
9766
9767         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
9768         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
9769         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
9770
9771 2010-01-08  Simon Josefsson  <simon@josefsson.org>
9772
9773         * lib/dup2.c (rpl_dup2): Improve comment.
9774
9775 2010-01-08  Eric Blake  <ebb9@byu.net>
9776
9777         maint.mk: allow packages to add makefile @@ exceptions
9778         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
9779         (sc_makefile_check): Rename...
9780         (sc_makefile_at_at_check): ...to this, and use hook.
9781
9782         dup2: work around mingw bug
9783         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
9784         Reported by Simon Josefsson.
9785
9786 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
9787
9788         glob: Fix C++ compilation.
9789         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
9790         C++.
9791
9792 2010-01-07  Bruno Haible  <bruno@clisp.org>
9793
9794         Fix indentation of wctype.in.h, broken since 2007-01-06.
9795         * lib/wctype.in.h: Fix indentation of preprocessor directives.
9796
9797 2010-01-07  Bruno Haible  <bruno@clisp.org>
9798
9799         mbslen: Avoid collision with system function.
9800         * lib/string.in.h [MirBSD]: Include <wchar.h>.
9801         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
9802         * m4/mbslen.m4: New file.
9803         * modules/mbslen (Files): Add it.
9804         (configure.ac): Invoke gl_MBSLEN.
9805         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
9806         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
9807         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
9808         via Ian Beckwith <ianb@erislabs.net>.
9809
9810 2010-01-07  Bruno Haible  <bruno@clisp.org>
9811
9812         dirent: Document the last fix.
9813         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
9814
9815 2010-01-07  Bruno Haible  <bruno@clisp.org>
9816
9817         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
9818         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
9819         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
9820         va_list are defined.
9821         * doc/posix-headers/stdio.texi: Document the bug of missing types.
9822         Reported by Eric Blake.
9823
9824 2010-01-07  Bruno Haible  <bruno@clisp.org>
9825
9826         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
9827         * modules/xlist (Depends-on): Add 'list',
9828         * modules/xoset (Depends-on): Add 'oset'.
9829         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9830
9831 2010-01-07  Bruno Haible  <bruno@clisp.org>
9832
9833         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
9834         * doc/posix-functions/strncasecmp.texi: Likewise.
9835
9836 2010-01-07  Bruno Haible  <bruno@clisp.org>
9837
9838         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
9839
9840 2010-01-07  John W. Eaton  <jwe@octave.org>
9841
9842         wctype: allow C++ use
9843         * lib/wctype.in.h: Add extern "C" block for C++.
9844
9845 2010-01-06  Eric Blake  <ebb9@byu.net>
9846
9847         maint.mk: detect incorrect GFDL usage
9848         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
9849
9850 2010-01-06  Jim Meyering  <meyering@redhat.com>
9851         and Eric Blake  <ebb9@byu.net>
9852
9853         maint.mk: ignore multi-line copyright in NEWS
9854         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
9855
9856 2010-01-06  Eric Blake  <ebb9@byu.net>
9857
9858         select: add missing dependency
9859         * modules/select-tests (Depends-on): Move sockets dependency...
9860         * modules/select (Depends-on): ...here.
9861         Reported by Ian Beckwith.
9862
9863         doc: regenerate INSTALL
9864         * doc/INSTALL: Reflect recent autoconf update.
9865         * doc/INSTALL.ISO: Likewise.
9866         * doc/INSTALL.UTF-8: Likewise.
9867
9868         pread: fix compilation on glibc
9869         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
9870         Reported by Ralf Wildenhues.
9871
9872         dirent: fix test failure
9873         * lib/dirent.in.h (includes): Guarantee ino_t.
9874         Reported by Ralf Wildenhues.
9875
9876 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
9877
9878         linkat, renameat: avoid bad free
9879         * lib/at-func2.c (at_func2): Fix typo.
9880         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
9881
9882 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9883
9884         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
9885         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
9886         to avoid failure of symlink test later.
9887
9888 2010-01-06  Eric Blake  <ebb9@byu.net>
9889
9890         stdio, unistd: guarantee ssize_t
9891         * lib/unistd.in.h (includes): Ensure that types required by POSIX
9892         2008 are exposed when needed.
9893         * lib/stdio.in.h (includes): Likewise.
9894         Reported by Ralf Wildenhues.
9895
9896 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
9897
9898         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
9899         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
9900         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
9901
9902 2010-01-06  Jim Meyering  <meyering@redhat.com>
9903
9904         readtokens: this module *does* require xalloc.h
9905         It uses only functions that were omitted by the old syntax-check rule.
9906         * lib/readtokens.c: Include "xalloc.h" once again.
9907         * modules/readtokens (Depends-on): Add xalloc.
9908         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
9909
9910 2010-01-05  Eric Blake  <ebb9@byu.net>
9911
9912         maint: support 'make announcement' from a VPATH build
9913         * top/maint.mk (announcement): Look for correct NEWS file.
9914
9915 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
9916
9917         utimens (fdutimens): ignore a negative FD, per contract
9918         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
9919         when we have a valid file descriptor.  Otherwise, using a brand
9920         new glibc (with just-patched futimens that now fails with EBADF)
9921         would cause this function to fail with ENOSYS.
9922         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
9923         See also http://bugzilla.redhat.com/552320.
9924
9925 2010-01-05  Eric Blake  <ebb9@byu.net>
9926
9927         strcase: document what it provides
9928         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
9929         gnulib module.
9930         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
9931         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
9932
9933 2010-01-05  Jim Meyering  <meyering@redhat.com>
9934
9935         maint: remove useless inclusions of "xalloc.h"
9936         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
9937         * lib/readtokens.c: Likewise.
9938         * lib/same.c: Likewise.
9939         * modules/getloadavg (Depends-on): Remove xalloc.
9940         * modules/readtokens: Likewise.
9941         * modules/same: Likewise.
9942
9943         maint.mk: include 4 more function names in alloca.h-checking regexp
9944         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
9945         regexp.  Before, we would give a false-positive (saying alloca.h
9946         is included unnecessarily) when the only uses involved omitted symbols.
9947
9948         xalloc.h: use consistent formatting
9949         * lib/xalloc.h: Move declarations to start in the first column.
9950
9951 2010-01-05  Eric Blake  <ebb9@byu.net>
9952
9953         mkdir: avoid xalloc
9954         * lib/mkdir.c (includes): Drop unused header.
9955         Reported by John W. Eaton.
9956
9957 2010-01-04  Jim Meyering  <meyering@redhat.com>
9958
9959         nl_langinfo: avoid configure-time syntax error
9960         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
9961         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
9962         the empty string.  Don't let that provoke a shell syntax error.
9963
9964         regcomp, regexec, fnmatch: avoid array bounds read error
9965         * lib/regcomp.c (build_equiv_class): From glibc:
9966         Use only the low 24 bits of a findidx return value as an index
9967         into the weights array.  Patch by Ulrich Drepper:
9968         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
9969         * lib/regexec.c (check_node_accept_bytes): Likewise.
9970         * lib/fnmatch_loop.c (FCT): Likewise.
9971
9972         regcomp: skip collseq lookup when there are no rules
9973         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
9974         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
9975
9976         regcomp: recognize ill-formed { } expressions
9977         * lib/regcomp.c (parse_dup_op): From glibc:
9978         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
9979
9980         regcomp: fix typo in comment
9981         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
9982         s/satisfy/satisfies/.
9983
9984         regcomp: sync from glibc: remove dead store
9985         * lib/regcomp.c (duplicate_node_closure): Remove useless
9986         search_duplicated_node call and dead store.
9987
9988         regcomp: sync from glibc; always use nl_langinfo
9989         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
9990         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
9991         * modules/regex (Depends-on): Add nl_langinfo.
9992
9993 2010-01-04  Eric Blake  <ebb9@byu.net>
9994
9995         fdopendir: fix configure test
9996         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
9997
9998 2010-01-01  Bruno Haible  <bruno@clisp.org>
9999
10000         wchar: Remove unused configure check.
10001         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
10002
10003 2010-01-01  Eric Blake  <ebb9@byu.net>
10004
10005         headers: make check of system header explicit
10006         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
10007         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
10008         ourselves.
10009         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
10010         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
10011         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
10012         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
10013         internals.
10014         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
10015         missing.
10016         Suggested by Bruno Haible.
10017
10018 2010-01-01  Jim Meyering  <meyering@redhat.com>
10019
10020         ChangeLog: tweak to eliminate unnecessary copyright line
10021         * ChangeLog: Remove a copyright line that was mistakenly updated
10022         by today's update-copyright run.  Reported by Eric Blake.
10023
10024         test-update-copyright: don't let envvar setting cause test failure
10025         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
10026
10027 2010-01-01  Bruno Haible  <bruno@clisp.org>
10028
10029         localename: Avoid gcc warning.
10030         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
10031         function if it is not used.
10032
10033 2010-01-01  Jim Meyering  <meyering@redhat.com>
10034
10035         update nearly all FSF copyright year lists to include 2010
10036         Use the same procedure as for 2009, outlined in
10037         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
10038
10039         version-etc: set COPYRIGHT_YEAR to 2010
10040         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
10041
10042 2009-12-31  Eric Blake  <ebb9@byu.net>
10043
10044         doc: correct availability of cygwin 1.5.x getopt
10045         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
10046         variables.
10047         * doc/posix-functions/opterr.texi (opterr): Likewise.
10048         * doc/posix-functions/optind.texi (optind): Likewise.
10049         * doc/posix-functions/optopt.texi (optopt): Likewise.
10050         * doc/posix-functions/tzname.texi (tzname): Likewise.
10051
10052         openat: update maintainer
10053         * modules/openat (Maintainer): Add myself.
10054
10055         utimens: avoid shadowing warning
10056         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
10057         buffers into one, to avoid shadowing, as well as avoiding a
10058         redundant stat.
10059         Reported by Jim Meyering.
10060
10061         test-dup2: avoid compiler warning
10062         * tests/test-dup2.c (is_inheritable): Only define if used.
10063
10064 2010-01-01  Bruno Haible  <bruno@clisp.org>
10065
10066         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
10067         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
10068         defined, use wctomb instead of wcrtomb.
10069
10070 2010-01-01  Bruno Haible  <bruno@clisp.org>
10071
10072         iconv: Reject native Solaris iconv.
10073         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
10074         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
10075
10076 2009-12-31  Bruno Haible  <bruno@clisp.org>
10077
10078         * tests/test-signal.c (main): Remove test of 'SIG'.
10079
10080 2009-12-31  Bruno Haible  <bruno@clisp.org>
10081
10082         spawn: Fix incomplete fix.
10083         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
10084         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
10085         warnings for GNULIB_POSIXCHECK again.
10086         Reported by Eric Blake.
10087
10088 2009-12-31  Bruno Haible  <bruno@clisp.org>
10089
10090         Avoid namespace pollution on glibc systems.
10091         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
10092         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
10093         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
10094         glibc systems.
10095
10096 2009-12-31  Bruno Haible  <bruno@clisp.org>
10097
10098         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
10099         (gl_REPLACE_WCHAR_H): Turn into a no-op.
10100         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
10101         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
10102         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
10103         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
10104         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
10105
10106 2009-12-31  Bruno Haible  <bruno@clisp.org>
10107
10108         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
10109         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
10110         afterwards.
10111
10112 2009-12-31  Bruno Haible  <bruno@clisp.org>
10113
10114         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
10115         SYS_UTSNAME_H.
10116
10117 2009-12-31  Bruno Haible  <bruno@clisp.org>
10118
10119         spawn: Fix misapplied patch.
10120         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
10121         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
10122         warnings for GNULIB_POSIXCHECK.
10123
10124 2009-12-31  Bruno Haible  <bruno@clisp.org>
10125
10126         times: Update after sys_times changed.
10127         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
10128         * modules/times (Files): Add it.
10129         (configure.ac): Invoke gl_FUNC_TIMES.
10130
10131 2009-12-31  Bruno Haible  <bruno@clisp.org>
10132
10133         Use AC_C_INLINE where necessary.
10134         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
10135         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
10136         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
10137         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
10138         * m4/mbfile.m4 (gl_MBFILE): Likewise.
10139         * m4/mbiter.m4 (gl_MBITER): Likewise.
10140         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
10141         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10142         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
10143         * modules/u64 (configure.ac): Likewise.
10144
10145 2009-12-31  Bruno Haible  <bruno@clisp.org>
10146
10147         Use AC_C_INLINE instead of module 'inline' where possible.
10148         * modules/inline (Description): Clarify purpose.
10149         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
10150         * modules/count-one-bits (Depends-on): Remove inline.
10151         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
10152         * modules/openat (Depends-on): Remove inline.
10153         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
10154         instead of depending on module 'inline'.
10155         * modules/filevercmp (Depends-on, configure.ac): Likewise.
10156         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
10157         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
10158         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
10159         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
10160         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
10161         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
10162         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
10163         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
10164         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
10165         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
10166         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
10167         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
10168         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
10169         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
10170         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
10171         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
10172         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
10173         Likewise.
10174         * modules/unictype/property-ascii-hex-digit (Depends-on,
10175         configure.ac): Likewise.
10176         * modules/unictype/property-bidi-arabic-digit (Depends-on,
10177         configure.ac): Likewise.
10178         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
10179         configure.ac): Likewise.
10180         * modules/unictype/property-bidi-block-separator (Depends-on,
10181         configure.ac): Likewise.
10182         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
10183         configure.ac): Likewise.
10184         * modules/unictype/property-bidi-common-separator (Depends-on,
10185         configure.ac): Likewise.
10186         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
10187         Likewise.
10188         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
10189         configure.ac): Likewise.
10190         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
10191         configure.ac): Likewise.
10192         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
10193         configure.ac): Likewise.
10194         * modules/unictype/property-bidi-european-digit (Depends-on,
10195         configure.ac): Likewise.
10196         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
10197         configure.ac): Likewise.
10198         * modules/unictype/property-bidi-left-to-right (Depends-on,
10199         configure.ac): Likewise.
10200         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
10201         configure.ac): Likewise.
10202         * modules/unictype/property-bidi-other-neutral (Depends-on,
10203         configure.ac): Likewise.
10204         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
10205         Likewise.
10206         * modules/unictype/property-bidi-segment-separator (Depends-on,
10207         configure.ac): Likewise.
10208         * modules/unictype/property-bidi-whitespace (Depends-on,
10209         configure.ac): Likewise.
10210         * modules/unictype/property-combining (Depends-on, configure.ac):
10211         Likewise.
10212         * modules/unictype/property-composite (Depends-on, configure.ac):
10213         Likewise.
10214         * modules/unictype/property-currency-symbol (Depends-on,
10215         configure.ac): Likewise.
10216         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
10217         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
10218         Likewise.
10219         * modules/unictype/property-default-ignorable-code-point (Depends-on,
10220         configure.ac): Likewise.
10221         * modules/unictype/property-deprecated (Depends-on, configure.ac):
10222         Likewise.
10223         * modules/unictype/property-diacritic (Depends-on, configure.ac):
10224         Likewise.
10225         * modules/unictype/property-extender (Depends-on, configure.ac):
10226         Likewise.
10227         * modules/unictype/property-format-control (Depends-on, configure.ac):
10228         Likewise.
10229         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
10230         Likewise.
10231         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
10232         Likewise.
10233         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
10234         Likewise.
10235         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
10236         Likewise.
10237         * modules/unictype/property-hyphen (Depends-on, configure.ac):
10238         Likewise.
10239         * modules/unictype/property-id-continue (Depends-on, configure.ac):
10240         Likewise.
10241         * modules/unictype/property-id-start (Depends-on, configure.ac):
10242         Likewise.
10243         * modules/unictype/property-ideographic (Depends-on, configure.ac):
10244         Likewise.
10245         * modules/unictype/property-ids-binary-operator (Depends-on,
10246         configure.ac): Likewise.
10247         * modules/unictype/property-ids-trinary-operator (Depends-on,
10248         configure.ac): Likewise.
10249         * modules/unictype/property-ignorable-control (Depends-on,
10250         configure.ac): Likewise.
10251         * modules/unictype/property-iso-control (Depends-on, configure.ac):
10252         Likewise.
10253         * modules/unictype/property-join-control (Depends-on, configure.ac):
10254         Likewise.
10255         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
10256         Likewise.
10257         * modules/unictype/property-line-separator (Depends-on, configure.ac):
10258         Likewise.
10259         * modules/unictype/property-logical-order-exception (Depends-on,
10260         configure.ac): Likewise.
10261         * modules/unictype/property-lowercase (Depends-on, configure.ac):
10262         Likewise.
10263         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
10264         * modules/unictype/property-non-break (Depends-on, configure.ac):
10265         Likewise.
10266         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
10267         Likewise.
10268         * modules/unictype/property-numeric (Depends-on, configure.ac):
10269         Likewise.
10270         * modules/unictype/property-other-alphabetic (Depends-on,
10271         configure.ac): Likewise.
10272         * modules/unictype/property-other-default-ignorable-code-point
10273         (Depends-on, configure.ac): Likewise.
10274         * modules/unictype/property-other-grapheme-extend (Depends-on,
10275         configure.ac): Likewise.
10276         * modules/unictype/property-other-id-continue (Depends-on,
10277         configure.ac): Likewise.
10278         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
10279         Likewise.
10280         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
10281         Likewise.
10282         * modules/unictype/property-other-math (Depends-on, configure.ac):
10283         Likewise.
10284         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
10285         Likewise.
10286         * modules/unictype/property-paired-punctuation (Depends-on,
10287         configure.ac): Likewise.
10288         * modules/unictype/property-paragraph-separator (Depends-on,
10289         configure.ac): Likewise.
10290         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
10291         Likewise.
10292         * modules/unictype/property-pattern-white-space (Depends-on,
10293         configure.ac): Likewise.
10294         * modules/unictype/property-private-use (Depends-on, configure.ac):
10295         Likewise.
10296         * modules/unictype/property-punctuation (Depends-on, configure.ac):
10297         Likewise.
10298         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
10299         Likewise.
10300         * modules/unictype/property-radical (Depends-on, configure.ac):
10301         Likewise.
10302         * modules/unictype/property-sentence-terminal (Depends-on,
10303         configure.ac): Likewise.
10304         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
10305         Likewise.
10306         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
10307         * modules/unictype/property-terminal-punctuation (Depends-on,
10308         configure.ac): Likewise.
10309         * modules/unictype/property-titlecase (Depends-on, configure.ac):
10310         Likewise.
10311         * modules/unictype/property-unassigned-code-value (Depends-on,
10312         configure.ac): Likewise.
10313         * modules/unictype/property-unified-ideograph (Depends-on,
10314         configure.ac): Likewise.
10315         * modules/unictype/property-uppercase (Depends-on, configure.ac):
10316         Likewise.
10317         * modules/unictype/property-variation-selector (Depends-on,
10318         configure.ac): Likewise.
10319         * modules/unictype/property-white-space (Depends-on, configure.ac):
10320         Likewise.
10321         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
10322         Likewise.
10323         * modules/unictype/property-xid-start (Depends-on, configure.ac):
10324         Likewise.
10325         * modules/unictype/property-zero-width (Depends-on, configure.ac):
10326         Likewise.
10327         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
10328         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
10329         Likewise.
10330
10331 2009-12-31  Bruno Haible  <bruno@clisp.org>
10332
10333         Remove unnecessary AC_C_INLINE invocation.
10334         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
10335         since 2009-08-21.
10336
10337 2009-12-31  Jim Meyering  <meyering@redhat.com>
10338
10339         maint.mk: don't require explicit gpg_key_ID in cfg.mk
10340         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
10341         With this change, we can all remove the gpg_key_ID = ... definition
10342         from our respective cfg.mk files.
10343
10344         maint.mk: create announcement template in ~/, not in /tmp
10345         * top/maint.mk (emit_upload_commands): Adjust.
10346         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
10347         Remove temporary file, .ci-msg.
10348
10349 2009-12-31  Eric Blake  <ebb9@byu.net>
10350
10351         link-warning: always build headers with link warnings
10352         * modules/arpa_inet (Makefile.am): Always build replacement
10353         header.
10354         * modules/ctype (Makefile.am): Likewise.
10355         * modules/dirent (Makefile.am): Likewise.
10356         * modules/inttypes (Makefile.am): Likewise.
10357         * modules/langinfo (Makefile.am): Likewise.
10358         * modules/locale (Makefile.am): Likewise.
10359         * modules/spawn (Makefile.am): Likewise.
10360         * modules/sys_file (Makefile.am): Likewise.
10361         * modules/sys_ioctl (Makefile.am): Likewise.
10362         * modules/sys_select (Makefile.am): Likewise.
10363         * modules/sys_socket (Makefile.am): Likewise.
10364         * modules/sys_times (Makefile.am): Likewise.
10365         * modules/sys_utsname (Makefile.am): Likewise.
10366         * modules/sys_wait (Makefile.am): Likewise.
10367         * modules/wchar (Makefile.am): Likewise.
10368         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
10369         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
10370         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
10371         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
10372         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
10373         Likewise.
10374         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
10375         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
10376         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
10377         Likewise.
10378         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
10379         Likewise.
10380         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
10381         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
10382         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
10383         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
10384         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
10385         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
10386         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
10387         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
10388         (gl_WCHAR_H_DEFAULTS): Likewise.
10389
10390 2009-12-31  Eric Blake  <ebb9@byu.net>
10391
10392         signal, spawn: use link warnings
10393         * lib/signal.in.h (sigset_t): Make unconditional.
10394         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
10395         (sigpending, sigprocmask, sigaction): Add link warnings.
10396         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
10397         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
10398         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
10399         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
10400         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
10401         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
10402         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
10403         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
10404         (posix_spawn_file_actions_destroy)
10405         (posix_spawn_file_actions_addopen)
10406         (posix_spawn_file_actions_addclose)
10407         (posix_spawn_file_actions_adddup2): Likewise.
10408         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
10409         * tests/test-signal.c (main): Enhance test.
10410
10411         spawn: improve wrapper support
10412         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
10413         (gl_SPAWN_H_DEFAULTS): New defaults.
10414         * modules/spawn (Makefile.am): Substitute them.
10415         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
10416         Only declare if missing or broken.
10417
10418         sys_times, sys_utsname: use include_next
10419         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
10420         header.
10421         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
10422         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
10423         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
10424         * modules/sys_times (Depends-on): Add include_next.
10425         (Makefile.am): Substitute additional values.
10426         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
10427         * lib/sys_times.in.h (includes): Include native header, if
10428         available.
10429         * lib/sys_utsname.in.h (includes): Likewise.
10430         * tests/test-sys_times.c (main): Enhance test.
10431
10432         fdutimensat: revert prior patch
10433         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
10434         utimens.h.
10435         Reported by Bruno Haible.
10436
10437 2009-12-30  Eric Blake  <ebb9@byu.net>
10438
10439         sys_wait: drop link-warning dependency
10440         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
10441         link-warning efforts.
10442         * lib/sys_wait.in.h: Likewise.
10443
10444         fdutimensat: remove bogus dependency
10445         * modules/fdutimensat (Depends-on): Drop inline.
10446
10447         unistd: fix typo
10448         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
10449
10450 2009-12-30  Bruno Haible  <bruno@clisp.org>
10451
10452         Fix compilation error with Solaris cc.
10453         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
10454         * lib/unicase/u16-is-invariant.c: Likewise.
10455         * lib/unicase/u32-is-invariant.c: Likewise.
10456         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
10457
10458 2009-12-30  Bruno Haible  <bruno@clisp.org>
10459
10460         Fix test crash.
10461         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
10462         locales.
10463         Reported by Simon Josefsson <simon@josefsson.org>.
10464
10465 2009-12-30  Bruno Haible  <bruno@clisp.org>
10466
10467         Fix compilation error on most platforms.
10468         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
10469         Reported by Simon Josefsson <simon@josefsson.org>
10470         and Nelson H. F. Beebe <beebe@math.utah.edu>.
10471
10472 2009-12-30  Eric Blake  <ebb9@byu.net>
10473
10474         futimens, utimensat: work around ntfs-3g bug
10475         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
10476         a ctime bug is present, and expand workaround to cover ntfs-3g.
10477         * lib/utimens.c (fdutimens, lutimens): Likewise.
10478         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
10479         (validate_timespec): Adjust return value.
10480         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
10481         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
10482         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
10483
10484 2009-12-29  Eric Blake  <ebb9@byu.net>
10485
10486         link-warning: make usage consistent
10487         * modules/ctype (Depends-on): Add link-warning.
10488         (Makefile.am): Update rules accordingly.
10489         * modules/langinfo (Depends-on, Makefile.am): Likewise.
10490         * modules/locale (Depends-on, Makefile.am): Likewise.
10491         * modules/sys_file (Makefile.am): Likewise.
10492         * modules/getopt-posix (Makefile.am): Delete unused link warning
10493         efforts.
10494         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
10495         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
10496         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
10497         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
10498
10499         stdio: remove unused variables
10500         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
10501         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
10502         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
10503
10504         tests: test more substitute headers
10505         * modules/ctype-tests: New file.
10506         * modules/dirent-tests: Likewise.
10507         * modules/spawn-tests: Likewise.
10508         * modules/sys_file-tests: Likewise.
10509         * modules/sys_ioctl-tests: Likewise.
10510         * modules/sys_wait-tests: Likewise.
10511         * tests/test-ctype.c: Likewise.
10512         * tests/test-dirent.c: Likewise.
10513         * tests/test-spawn.c: Likewise.
10514         * tests/test-sys_file.c: Likewise.
10515         * tests/test-sys_ioctl.c: Likewise.
10516         * tests/test-sys_wait.c: Likewise.
10517         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
10518         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
10519         whether or not flock is in use.
10520
10521         tests: remove License section from module
10522         * modules/arpa_inet-tests: Remove unneeded section.
10523         * modules/byteswap-tests: Likewise.
10524         * modules/ceilf-tests: Likewise.
10525         * modules/ceill-tests: Likewise.
10526         * modules/crypto/des-tests: Likewise.
10527         * modules/crypto/gc-arcfour-tests: Likewise.
10528         * modules/crypto/gc-arctwo-tests: Likewise.
10529         * modules/crypto/gc-des-tests: Likewise.
10530         * modules/crypto/gc-hmac-md5-tests: Likewise.
10531         * modules/crypto/gc-hmac-sha1-tests: Likewise.
10532         * modules/crypto/gc-md2-tests: Likewise.
10533         * modules/crypto/gc-md4-tests: Likewise.
10534         * modules/crypto/gc-md5-tests: Likewise.
10535         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
10536         * modules/crypto/gc-rijndael-tests: Likewise.
10537         * modules/crypto/gc-sha1-tests: Likewise.
10538         * modules/crypto/gc-tests: Likewise.
10539         * modules/crypto/md2-tests: Likewise.
10540         * modules/crypto/md4-tests: Likewise.
10541         * modules/fcntl-h-tests: Likewise.
10542         * modules/floorf-tests: Likewise.
10543         * modules/floorl-tests: Likewise.
10544         * modules/frexp-nolibm-tests: Likewise.
10545         * modules/frexp-tests: Likewise.
10546         * modules/frexpl-nolibm-tests: Likewise.
10547         * modules/frexpl-tests: Likewise.
10548         * modules/getaddrinfo-tests: Likewise.
10549         * modules/inttypes-tests: Likewise.
10550         * modules/isfinite-tests: Likewise.
10551         * modules/isinf-tests: Likewise.
10552         * modules/ldexpl-tests: Likewise.
10553         * modules/locale-tests: Likewise.
10554         * modules/math-tests: Likewise.
10555         * modules/netdb-tests: Likewise.
10556         * modules/netinet_in-tests: Likewise.
10557         * modules/printf-frexp-tests: Likewise.
10558         * modules/printf-frexpl-tests: Likewise.
10559         * modules/priv-set-tests: Likewise.
10560         * modules/random_r-tests: Likewise.
10561         * modules/round-tests: Likewise.
10562         * modules/roundf-tests: Likewise.
10563         * modules/roundl-tests: Likewise.
10564         * modules/search-tests: Likewise.
10565         * modules/select-tests: Likewise.
10566         * modules/signal-tests: Likewise.
10567         * modules/stdbool-tests: Likewise.
10568         * modules/stddef-tests: Likewise.
10569         * modules/stdint-tests: Likewise.
10570         * modules/stdio-tests: Likewise.
10571         * modules/stdlib-tests: Likewise.
10572         * modules/string-tests: Likewise.
10573         * modules/strings-tests: Likewise.
10574         * modules/sys_select-tests: Likewise.
10575         * modules/sys_socket-tests: Likewise.
10576         * modules/sys_stat-tests: Likewise.
10577         * modules/sys_time-tests: Likewise.
10578         * modules/sys_utsname-tests: Likewise.
10579         * modules/sysexits-tests: Likewise.
10580         * modules/time-tests: Likewise.
10581         * modules/trunc-tests: Likewise.
10582         * modules/truncf-tests: Likewise.
10583         * modules/truncl-tests: Likewise.
10584         * modules/tsearch-tests: Likewise.
10585         * modules/unistd-tests: Likewise.
10586         * modules/wchar-tests: Likewise.
10587         * modules/wctype-tests: Likewise.
10588
10589         tests: fix license on several tests
10590         * tests/test-des.c: Update to GPLv3+.
10591         * tests/test-flock.c: Likewise.
10592         * tests/test-fsync.c: Likewise.
10593         * tests/test-futimens.h: Likewise.
10594         * tests/test-gc-arcfour.c: Likewise.
10595         * tests/test-gc-arctwo.c: Likewise.
10596         * tests/test-gc-des.c: Likewise.
10597         * tests/test-gc-hmac-md5.c: Likewise.
10598         * tests/test-gc-hmac-sha1.c: Likewise.
10599         * tests/test-gc-md2.c: Likewise.
10600         * tests/test-gc-md4.c: Likewise.
10601         * tests/test-gc-md5.c: Likewise.
10602         * tests/test-gc-pbkdf2-sha1.c: Likewise.
10603         * tests/test-gc-rijndael.c: Likewise.
10604         * tests/test-gc-sha1.c: Likewise.
10605         * tests/test-gc.c: Likewise.
10606         * tests/test-getcwd.c: Likewise.
10607         * tests/test-link.c: Likewise.
10608         * tests/test-link.h: Likewise.
10609         * tests/test-lutimens.h: Likewise.
10610         * tests/test-md2.c: Likewise.
10611         * tests/test-md4.c: Likewise.
10612         * tests/test-mkdir.h: Likewise.
10613         * tests/test-rename.c: Likewise.
10614         * tests/test-rename.h: Likewise.
10615         * tests/test-safe-alloc.c: Likewise.
10616         * tests/test-utimens-common.h: Likewise.
10617         * tests/test-utimens.h: Likewise.
10618
10619         maint: sync license texts
10620         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
10621         * doc/gpl-3.0.texi: Revert copyright year update.
10622         * doc/lgpl-3.0.texi: Likewise.
10623
10624 2009-12-29  Jim Meyering  <meyering@redhat.com>
10625
10626         update nearly all FSF copyright year lists to include 2009
10627         The files named by the following are exempted:
10628             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
10629               test -f "$dst" && { echo "$dst"; continue; }
10630               test -d "$dst" || continue
10631               echo "$dst"/$(basename "$src")
10632             done > exempt
10633             git ls-files tests/unictype >> exempt
10634         In the remaining files, convert to all-interval notation if
10635         - there is already at least one year interval like 2000-2003
10636         - the file is maintained by me
10637         - the file is in lib/uni*/, where that style already prevails
10638         Otherwise, use update-copyright's default.
10639
10640 2009-12-29  Simon Josefsson  <simon@josefsson.org>
10641         and Eric Blake  <ebb9@byu.net>
10642
10643         tests: don't require debug system() to pass
10644         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
10645         * tests/test-rmdir.h (test_rmdir_func): Likewise.
10646         * tests/test-unlink.h (test_unlink_func): Likewise.
10647         * tests/test-fstatat.c (main): ...into callers.
10648         * tests/test-lstat.c (main): Likewise.
10649         * tests/test-rmdir.c (main): Likewise.
10650         * tests/test-unlink.c (main): Likewise.
10651         * tests/test-unlinkat.c (main): Likewise.
10652         * tests/test-areadlink-with-size.c (main): Don't require a
10653         debug-only system call to pass, aiding cross-testing to mingw.
10654         * tests/test-areadlink.c (main): Likewise.
10655         * tests/test-areadlinkat-with-size.c (main): Likewise.
10656         * tests/test-areadlinkat.c (main): Likewise.
10657         * tests/test-canonicalize-lgpl.c (main): Likewise.
10658         * tests/test-canonicalize.c (main): Likewise.
10659         * tests/test-chown.c (main): Likewise.
10660         * tests/test-fchownat.c (main): Likewise.
10661         * tests/test-lchown.c (main): Likewise.
10662         * tests/test-fdutimensat.c (main): Likewise.
10663         * tests/test-futimens.c (main): Likewise.
10664         * tests/test-link.c (main): Likewise.
10665         * tests/test-linkat.c (main): Likewise.
10666         * tests/test-mkdir.c (main): Likewise.
10667         * tests/test-mkdirat.c (main): Likewise.
10668         * tests/test-mkfifo.c (main): Likewise.
10669         * tests/test-mkfifoat.c (main): Likewise.
10670         * tests/test-mknod.c (main): Likewise.
10671         * tests/test-readlink.c (main): Likewise.
10672         * tests/test-remove.c (main): Likewise.
10673         * tests/test-rename.c (main): Likewise.
10674         * tests/test-renameat.c (main): Likewise.
10675         * tests/test-symlink.c (main): Likewise.
10676         * tests/test-symlinkat.c (main): Likewise.
10677         * tests/test-utimens.c (main): Likewise.
10678         * tests/test-utimensat.c (main): Likewise.
10679
10680 2009-12-29  Simon Josefsson  <simon@josefsson.org>
10681
10682         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
10683         on $(UNUSED_PARAMETER_H) to avoid build failure.
10684
10685 2009-12-28  Jim Meyering  <meyering@redhat.com>
10686
10687         update-copyright: you may specify a max. line length other than 72
10688         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
10689
10690         maint: use consistent FSF copyright line syntax
10691         * lib/posixtm.c: Add missing comma in FSF copyright line.
10692         * lib/posixtm.h: Likewise.
10693         * lib/getugroups.c: Add missing ", Inc.".
10694
10695         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
10696         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
10697         FSF copyright line.  Remove trailing blanks.
10698
10699 2009-12-28  Eric Blake  <ebb9@byu.net>
10700
10701         test-dup2: reduce dependencies
10702         * modules/cloexec (Configure.ac): Set witness.
10703         * modules/dup2-tests (Depends-on): Drop cloexec.
10704         * tests/test-dup2.c (main): Skip portion of test if cloexec module
10705         not present.
10706         Suggested by Bruno Haible.
10707
10708 2009-12-26  Bruno Haible  <bruno@clisp.org>
10709
10710         Remove an unneeded dependency.
10711         * modules/fseterr (Depends-on): Remove dup2.
10712
10713 2009-12-26  Eric Blake  <ebb9@byu.net>
10714
10715         tests: use macros.h in more places
10716         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
10717         (ASSERT_STREAM): Provide default of stderr.
10718         * tests/test-dirent-safer.c: Include macros.h, using alternate
10719         stream for assertions.
10720         * tests/test-dup-safer.c: Likewise.
10721         * tests/test-freopen-safer.c: Likewise.
10722         * tests/test-getopt.c: Likewise.
10723         * tests/test-openat-safer.c: Likewise.
10724         * tests/test-pipe.c: Likewise.
10725         * tests/test-popen-safer.c: Likewise.
10726         * modules/dirent-safer-tests (Files): Include macros.h.
10727         * modules/unistd-safer-tests (Files): Likewise.
10728         * modules/freopen-safer-tests (Files): Likewise.
10729         * modules/getopt-posix-tests (Files): Likewise.
10730         * modules/openat-safer-tests (Files): Likewise.
10731         * modules/pipe-tests (Files): Likewise.
10732
10733 2009-12-26  Bruno Haible  <bruno@clisp.org>
10734
10735         javacomp: Portability fix.
10736         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
10737         that it also works on Solaris.
10738
10739 2009-12-26  Bruno Haible  <bruno@clisp.org>
10740
10741         localename: Fix storage allocation of gl_locale_name_thread's result.
10742         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
10743         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
10744         all platforms that have 'uselocale'.
10745         (gl_locale_name_thread_unsafe): New function, extracted from
10746         gl_locale_name_thread.
10747         (gl_locale_name_thread): Call struniq on all platforms that have
10748         'uselocale'.
10749         * tests/test-localename.c (test_locale_name_thread): Check that the
10750         resulting strings are permanently allocated.
10751         * modules/localename-tests (Depends-on): Add strdup.
10752
10753 2009-12-26  Bruno Haible  <bruno@clisp.org>
10754
10755         * tests/test-localename.c (categories): Fill in the strings.
10756
10757 2009-12-26  Jim Meyering  <meyering@redhat.com>
10758
10759         isdir: complete the removal of m4/isdir.m4
10760         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
10761
10762         isdir: clean up, since at least grep still uses it
10763         * lib/isdir.c: Include "isdir.h".
10764         (S_ISDIR): Remove now-unneeded definition.
10765         * modules/isdir (Files): Add lib/isdir.h.
10766         * lib/isdir.h: New file, with declaration.
10767         * m4/isdir.m4: Remove file -- unneeded.
10768
10769 2009-12-25  Bruno Haible  <bruno@clisp.org>
10770
10771         selinux-h: Make generated .h files standalone.
10772         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
10773         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
10774         * lib/se-selinux.in.h: Likewise.
10775         * modules/selinux-h (Depends-on): Add unused-parameter.
10776         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
10777         selinux/selinux.h and selinux/context.h.
10778         Suggested by Eric Blake.
10779
10780 2009-12-25  Bruno Haible  <bruno@clisp.org>
10781
10782         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
10783         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
10784         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
10785         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
10786         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
10787
10788 2009-12-24  Bruno Haible  <bruno@clisp.org>
10789
10790         openat: Fix warning.
10791         * lib/openat-proc.c: Include <unistd.h>.
10792
10793 2009-12-24  Bruno Haible  <bruno@clisp.org>
10794
10795         New module 'unused-parameter'.
10796         * build-aux/unused-parameter.h: New file, extracted from earlier
10797         gnulib-common.m4.
10798         * modules/unused-parameter: New file.
10799         * lib/unistr.h: Include unused-parameter.h.
10800         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
10801         _GL_UNUSED.
10802         * modules/unistr/base (Depends-on): Add unused-parameter.
10803
10804 2009-12-24  Bruno Haible  <bruno@clisp.org>
10805
10806         Add missing dependencies to 'extensions' module.
10807         * m4/extensions.m4: Add comment.
10808         * modules/accept4 (Depends-on): Add extensions.
10809         * modules/dup3 (Depends-on): Likewise.
10810         * modules/fcntl (Depends-on): Likewise.
10811         * modules/futimens (Depends-on): Likewise.
10812         * modules/mknod (Depends-on): Likewise.
10813         * modules/pipe2 (Depends-on): Likewise.
10814         * modules/stat-time (Depends-on): Likewise.
10815         * modules/strcasestr-simple (Depends-on): Likewise.
10816         * modules/strsignal (Depends-on): Likewise.
10817         * modules/utimensat (Depends-on): Likewise.
10818         * modules/localcharset (Depends-on): Likewise. Needed because of
10819         gl_FCNTL_O_FLAGS.
10820         * modules/wcrtomb (Depends-on): Likewise. Needed because of
10821         AC_TYPE_MBSTATE_T.
10822         * modules/wcsnrtombs (Depends-on): Likewise.
10823         * modules/wcsrtombs (Depends-on): Likewise.
10824
10825 2009-12-24  Bruno Haible  <bruno@clisp.org>
10826
10827         binary-io: Avoid gcc warning due to SET_BINARY.
10828         * lib/binary-io.h (SET_BINARY): Cast the result to void.
10829         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
10830
10831 2009-12-24  Bruno Haible  <bruno@clisp.org>
10832
10833         Avoid future namespace pollution on glibc systems.
10834         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
10835         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
10836         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
10837         glibc systems.
10838
10839 2009-12-24  Bruno Haible  <bruno@clisp.org>
10840
10841         Refactor common macros used in tests.
10842         * tests/macros.h: New file.
10843         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
10844         and/or <stdlib.h>, if appropriate.
10845         (ASSERT, SIZEOF): Remove macros.
10846         * tests/test-areadlink-with-size.c: Likewise.
10847         * tests/test-areadlinkat.c: Likewise.
10848         * tests/test-areadlinkat-with-size.c: Likewise.
10849         * tests/test-argmatch.c: Likewise.
10850         * tests/test-argv-iter.c: Likewise.
10851         * tests/test-array-mergesort.c: Likewise.
10852         * tests/test-array_list.c: Likewise.
10853         * tests/test-array_oset.c: Likewise.
10854         * tests/test-avltree_list.c: Likewise.
10855         * tests/test-avltree_oset.c: Likewise.
10856         * tests/test-avltreehash_list.c: Likewise.
10857         * tests/test-base64.c: Likewise.
10858         * tests/test-binary-io.c: Likewise.
10859         * tests/test-bitrotate.c: Likewise.
10860         * tests/test-btowc.c: Likewise.
10861         * tests/test-byteswap.c: Likewise.
10862         * tests/test-c-ctype.c: Likewise.
10863         * tests/test-c-stack.c: Likewise.
10864         * tests/test-c-strcasecmp.c: Likewise.
10865         * tests/test-c-strcasestr.c: Likewise.
10866         * tests/test-c-strncasecmp.c: Likewise.
10867         * tests/test-c-strstr.c: Likewise.
10868         * tests/test-canonicalize-lgpl.c: Likewise.
10869         * tests/test-canonicalize.c: Likewise.
10870         * tests/test-carray_list.c: Likewise.
10871         * tests/test-ceilf1.c: Likewise.
10872         * tests/test-ceilf2.c: Likewise.
10873         * tests/test-ceill.c: Likewise.
10874         * tests/test-chown.c: Likewise.
10875         * tests/test-cloexec.c: Likewise.
10876         * tests/test-copy-acl.c: Likewise.
10877         * tests/test-copy-file.c: Likewise.
10878         * tests/test-count-one-bits.c: Likewise.
10879         * tests/test-dprintf-posix.c: Likewise.
10880         * tests/test-dup2.c: Likewise.
10881         * tests/test-dup3.c: Likewise.
10882         * tests/test-duplocale.c: Likewise.
10883         * tests/test-fbufmode.c: Likewise.
10884         * tests/test-fchdir.c: Likewise.
10885         * tests/test-fchownat.c: Likewise.
10886         * tests/test-fcntl-safer.c: Likewise.
10887         * tests/test-fcntl.c: Likewise.
10888         * tests/test-fdopendir.c: Likewise.
10889         * tests/test-fdutimensat.c: Likewise.
10890         * tests/test-fflush2.c: Likewise.
10891         * tests/test-file-has-acl.c: Likewise.
10892         * tests/test-filevercmp.c: Likewise.
10893         * tests/test-flock.c: Likewise.
10894         * tests/test-floorf1.c: Likewise.
10895         * tests/test-floorf2.c: Likewise.
10896         * tests/test-floorl.c: Likewise.
10897         * tests/test-fnmatch.c: Likewise.
10898         * tests/test-fopen.h: Likewise.
10899         * tests/test-fpending.c: Likewise.
10900         * tests/test-fprintf-posix.c: Likewise.
10901         * tests/test-fpurge.c: Likewise.
10902         * tests/test-freadable.c: Likewise.
10903         * tests/test-freadahead.c: Likewise.
10904         * tests/test-freading.c: Likewise.
10905         * tests/test-freadptr.c: Likewise.
10906         * tests/test-freadptr2.c: Likewise.
10907         * tests/test-freadseek.c: Likewise.
10908         * tests/test-freopen.c: Likewise.
10909         * tests/test-frexp.c: Likewise.
10910         * tests/test-frexpl.c: Likewise.
10911         * tests/test-fseek.c: Likewise.
10912         * tests/test-fseeko.c: Likewise.
10913         * tests/test-fstatat.c: Likewise.
10914         * tests/test-fstrcmp.c: Likewise.
10915         * tests/test-fsync.c: Likewise.
10916         * tests/test-ftell.c: Likewise.
10917         * tests/test-ftello.c: Likewise.
10918         * tests/test-func.c: Likewise.
10919         * tests/test-futimens.c: Likewise.
10920         * tests/test-fwritable.c: Likewise.
10921         * tests/test-fwriting.c: Likewise.
10922         * tests/test-getcwd.c: Likewise.
10923         * tests/test-getdate.c: Likewise.
10924         * tests/test-getdelim.c: Likewise.
10925         * tests/test-getdtablesize.c: Likewise.
10926         * tests/test-getgroups.c: Likewise.
10927         * tests/test-getline.c: Likewise.
10928         * tests/test-getndelim2.c: Likewise.
10929         * tests/test-glob.c: Likewise.
10930         * tests/test-hash.c: Likewise.
10931         * tests/test-i-ring.c: Likewise.
10932         * tests/test-iconv-utf.c: Likewise.
10933         * tests/test-iconv.c: Likewise.
10934         * tests/test-idpriv-drop.c: Likewise.
10935         * tests/test-idpriv-droptemp.c: Likewise.
10936         * tests/test-inet_ntop.c: Likewise.
10937         * tests/test-inet_pton.c: Likewise.
10938         * tests/test-isblank.c: Likewise.
10939         * tests/test-isfinite.c: Likewise.
10940         * tests/test-isinf.c: Likewise.
10941         * tests/test-isnan.c: Likewise.
10942         * tests/test-isnand.h: Likewise.
10943         * tests/test-isnanf.h: Likewise.
10944         * tests/test-isnanl.h: Likewise.
10945         * tests/test-lchown.c: Likewise.
10946         * tests/test-ldexpl.c: Likewise.
10947         * tests/test-link.c: Likewise.
10948         * tests/test-linkat.c: Likewise.
10949         * tests/test-linked_list.c: Likewise.
10950         * tests/test-linkedhash_list.c: Likewise.
10951         * tests/test-localename.c: Likewise.
10952         * tests/test-lseek.c: Likewise.
10953         * tests/test-lstat.c: Likewise.
10954         * tests/test-mbmemcasecmp.c: Likewise.
10955         * tests/test-mbmemcasecoll.c: Likewise.
10956         * tests/test-mbrtowc.c: Likewise.
10957         * tests/test-mbscasecmp.c: Likewise.
10958         * tests/test-mbscasestr1.c: Likewise.
10959         * tests/test-mbscasestr2.c: Likewise.
10960         * tests/test-mbscasestr3.c: Likewise.
10961         * tests/test-mbscasestr4.c: Likewise.
10962         * tests/test-mbschr.c: Likewise.
10963         * tests/test-mbscspn.c: Likewise.
10964         * tests/test-mbsinit.c: Likewise.
10965         * tests/test-mbsncasecmp.c: Likewise.
10966         * tests/test-mbsnrtowcs.c: Likewise.
10967         * tests/test-mbspbrk.c: Likewise.
10968         * tests/test-mbspcasecmp.c: Likewise.
10969         * tests/test-mbsrchr.c: Likewise.
10970         * tests/test-mbsrtowcs.c: Likewise.
10971         * tests/test-mbsspn.c: Likewise.
10972         * tests/test-mbsstr1.c: Likewise.
10973         * tests/test-mbsstr2.c: Likewise.
10974         * tests/test-mbsstr3.c: Likewise.
10975         * tests/test-memchr.c: Likewise.
10976         * tests/test-memchr2.c: Likewise.
10977         * tests/test-memcmp.c: Likewise.
10978         * tests/test-memmem.c: Likewise.
10979         * tests/test-memrchr.c: Likewise.
10980         * tests/test-mkdir.c: Likewise.
10981         * tests/test-mkdirat.c: Likewise.
10982         * tests/test-mkfifo.c: Likewise.
10983         * tests/test-mkfifoat.c: Likewise.
10984         * tests/test-mknod.c: Likewise.
10985         * tests/test-nanosleep.c: Likewise.
10986         * tests/test-nl_langinfo.c: Likewise.
10987         * tests/test-obstack-printf.c: Likewise.
10988         * tests/test-open.c: Likewise.
10989         * tests/test-openat.c: Likewise.
10990         * tests/test-pipe-filter-gi1.c: Likewise.
10991         * tests/test-pipe-filter-gi2-main.c: Likewise.
10992         * tests/test-pipe-filter-ii1.c: Likewise.
10993         * tests/test-pipe-filter-ii2-main.c: Likewise.
10994         * tests/test-pipe2.c: Likewise.
10995         * tests/test-popen.h: Likewise.
10996         * tests/test-posixtm.c: Likewise.
10997         * tests/test-pread.c: Likewise.
10998         * tests/test-printf-frexp.c: Likewise.
10999         * tests/test-printf-frexpl.c: Likewise.
11000         * tests/test-printf-posix.c: Likewise.
11001         * tests/test-priv-set.c: Likewise.
11002         * tests/test-quotearg.c: Likewise.
11003         * tests/test-random_r.c: Likewise.
11004         * tests/test-rawmemchr.c: Likewise.
11005         * tests/test-rbtree_list.c: Likewise.
11006         * tests/test-rbtree_oset.c: Likewise.
11007         * tests/test-rbtreehash_list.c: Likewise.
11008         * tests/test-readlink.c: Likewise.
11009         * tests/test-remove.c: Likewise.
11010         * tests/test-rename.c: Likewise.
11011         * tests/test-renameat.c: Likewise.
11012         * tests/test-rmdir.c: Likewise.
11013         * tests/test-round1.c: Likewise.
11014         * tests/test-roundf1.c: Likewise.
11015         * tests/test-roundl.c: Likewise.
11016         * tests/test-safe-alloc.c: Likewise.
11017         * tests/test-sameacls.c: Likewise.
11018         * tests/test-set-mode-acl.c: Likewise.
11019         * tests/test-setenv.c: Likewise.
11020         * tests/test-sigaction.c: Likewise.
11021         * tests/test-signbit.c: Likewise.
11022         * tests/test-sleep.c: Likewise.
11023         * tests/test-snprintf-posix.c: Likewise.
11024         * tests/test-snprintf.c: Likewise.
11025         * tests/test-sprintf-posix.c: Likewise.
11026         * tests/test-stat-time.c: Likewise.
11027         * tests/test-stat.c: Likewise.
11028         * tests/test-strcasestr.c: Likewise.
11029         * tests/test-strchrnul.c: Likewise.
11030         * tests/test-strerror.c: Likewise.
11031         * tests/test-striconv.c: Likewise.
11032         * tests/test-striconveh.c: Likewise.
11033         * tests/test-striconveha.c: Likewise.
11034         * tests/test-strsignal.c: Likewise.
11035         * tests/test-strstr.c: Likewise.
11036         * tests/test-strtod.c: Likewise.
11037         * tests/test-strverscmp.c: Likewise.
11038         * tests/test-symlink.c: Likewise.
11039         * tests/test-symlinkat.c: Likewise.
11040         * tests/test-trunc1.c: Likewise.
11041         * tests/test-trunc2.c: Likewise.
11042         * tests/test-truncf1.c: Likewise.
11043         * tests/test-truncf2.c: Likewise.
11044         * tests/test-truncl.c: Likewise.
11045         * tests/test-uname.c: Likewise.
11046         * tests/test-unlink.c: Likewise.
11047         * tests/test-unlinkat.c: Likewise.
11048         * tests/test-unsetenv.c: Likewise.
11049         * tests/test-usleep.c: Likewise.
11050         * tests/test-utimens.c: Likewise.
11051         * tests/test-utimensat.c: Likewise.
11052         * tests/test-vasnprintf-posix.c: Likewise.
11053         * tests/test-vasnprintf-posix2.c: Likewise.
11054         * tests/test-vasnprintf.c: Likewise.
11055         * tests/test-vasprintf-posix.c: Likewise.
11056         * tests/test-vasprintf.c: Likewise.
11057         * tests/test-vdprintf-posix.c: Likewise.
11058         * tests/test-vfprintf-posix.c: Likewise.
11059         * tests/test-vprintf-posix.c: Likewise.
11060         * tests/test-vsnprintf-posix.c: Likewise.
11061         * tests/test-vsnprintf.c: Likewise.
11062         * tests/test-vsprintf-posix.c: Likewise.
11063         * tests/test-wcrtomb.c: Likewise.
11064         * tests/test-wcsnrtombs.c: Likewise.
11065         * tests/test-wcsrtombs.c: Likewise.
11066         * tests/test-wctype.c: Likewise.
11067         * tests/test-wcwidth.c: Likewise.
11068         * tests/test-xfprintf-posix.c: Likewise.
11069         * tests/test-xmemdup0.c: Likewise.
11070         * tests/test-xprintf-posix.c: Likewise.
11071         * tests/test-xvasprintf.c: Likewise.
11072         * tests/unicase/test-locale-language.c: Likewise.
11073         * tests/unicase/test-mapping-part1.h: Likewise.
11074         * tests/unicase/test-predicate-part1.h: Likewise.
11075         * tests/unicase/test-u8-casecmp.c: Likewise.
11076         * tests/unicase/test-u8-casecoll.c: Likewise.
11077         * tests/unicase/test-u8-casefold.c: Likewise.
11078         * tests/unicase/test-u8-is-cased.c: Likewise.
11079         * tests/unicase/test-u8-is-casefolded.c: Likewise.
11080         * tests/unicase/test-u8-is-lowercase.c: Likewise.
11081         * tests/unicase/test-u8-is-titlecase.c: Likewise.
11082         * tests/unicase/test-u8-is-uppercase.c: Likewise.
11083         * tests/unicase/test-u8-tolower.c: Likewise.
11084         * tests/unicase/test-u8-totitle.c: Likewise.
11085         * tests/unicase/test-u8-toupper.c: Likewise.
11086         * tests/unicase/test-u16-casecmp.c: Likewise.
11087         * tests/unicase/test-u16-casecoll.c: Likewise.
11088         * tests/unicase/test-u16-casefold.c: Likewise.
11089         * tests/unicase/test-u16-is-cased.c: Likewise.
11090         * tests/unicase/test-u16-is-casefolded.c: Likewise.
11091         * tests/unicase/test-u16-is-lowercase.c: Likewise.
11092         * tests/unicase/test-u16-is-titlecase.c: Likewise.
11093         * tests/unicase/test-u16-is-uppercase.c: Likewise.
11094         * tests/unicase/test-u16-tolower.c: Likewise.
11095         * tests/unicase/test-u16-totitle.c: Likewise.
11096         * tests/unicase/test-u16-toupper.c: Likewise.
11097         * tests/unicase/test-u32-casecmp.c: Likewise.
11098         * tests/unicase/test-u32-casecoll.c: Likewise.
11099         * tests/unicase/test-u32-casefold.c: Likewise.
11100         * tests/unicase/test-u32-is-cased.c: Likewise.
11101         * tests/unicase/test-u32-is-casefolded.c: Likewise.
11102         * tests/unicase/test-u32-is-lowercase.c: Likewise.
11103         * tests/unicase/test-u32-is-titlecase.c: Likewise.
11104         * tests/unicase/test-u32-is-uppercase.c: Likewise.
11105         * tests/unicase/test-u32-tolower.c: Likewise.
11106         * tests/unicase/test-u32-totitle.c: Likewise.
11107         * tests/unicase/test-u32-toupper.c: Likewise.
11108         * tests/unicase/test-ulc-casecmp.c: Likewise.
11109         * tests/unicase/test-ulc-casecoll.c: Likewise.
11110         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
11111         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
11112         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
11113         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
11114         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
11115         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
11116         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
11117         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
11118         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
11119         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
11120         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
11121         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
11122         * tests/unictype/test-bidi_byname.c: Likewise.
11123         * tests/unictype/test-bidi_name.c: Likewise.
11124         * tests/unictype/test-bidi_of.c: Likewise.
11125         * tests/unictype/test-bidi_test.c: Likewise.
11126         * tests/unictype/test-block_list.c: Likewise.
11127         * tests/unictype/test-block_of.c: Likewise.
11128         * tests/unictype/test-block_test.c: Likewise.
11129         * tests/unictype/test-categ_and.c: Likewise.
11130         * tests/unictype/test-categ_and_not.c: Likewise.
11131         * tests/unictype/test-categ_byname.c: Likewise.
11132         * tests/unictype/test-categ_name.c: Likewise.
11133         * tests/unictype/test-categ_none.c: Likewise.
11134         * tests/unictype/test-categ_of.c: Likewise.
11135         * tests/unictype/test-categ_or.c: Likewise.
11136         * tests/unictype/test-categ_test_withtable.c: Likewise.
11137         * tests/unictype/test-combining.c: Likewise.
11138         * tests/unictype/test-decdigit.c: Likewise.
11139         * tests/unictype/test-digit.c: Likewise.
11140         * tests/unictype/test-mirror.c: Likewise.
11141         * tests/unictype/test-numeric.c: Likewise.
11142         * tests/unictype/test-pr_byname.c: Likewise.
11143         * tests/unictype/test-pr_test.c: Likewise.
11144         * tests/unictype/test-predicate-part1.h: Likewise.
11145         * tests/unictype/test-scripts.c: Likewise.
11146         * tests/unictype/test-sy_c_ident.c: Likewise.
11147         * tests/unictype/test-sy_java_ident.c: Likewise.
11148         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
11149         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
11150         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
11151         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
11152         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
11153         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
11154         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
11155         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
11156         * tests/uninorm/test-canonical-decomposition.c: Likewise.
11157         * tests/uninorm/test-compat-decomposition.c: Likewise.
11158         * tests/uninorm/test-composition.c: Likewise.
11159         * tests/uninorm/test-decomposing-form.c: Likewise.
11160         * tests/uninorm/test-decomposition.c: Likewise.
11161         * tests/uninorm/test-u8-nfc.c: Likewise.
11162         * tests/uninorm/test-u8-nfd.c: Likewise.
11163         * tests/uninorm/test-u8-nfkc.c: Likewise.
11164         * tests/uninorm/test-u8-nfkd.c: Likewise.
11165         * tests/uninorm/test-u8-normcmp.c: Likewise.
11166         * tests/uninorm/test-u8-normcoll.c: Likewise.
11167         * tests/uninorm/test-u16-nfc.c: Likewise.
11168         * tests/uninorm/test-u16-nfd.c: Likewise.
11169         * tests/uninorm/test-u16-nfkc.c: Likewise.
11170         * tests/uninorm/test-u16-nfkd.c: Likewise.
11171         * tests/uninorm/test-u16-normcmp.c: Likewise.
11172         * tests/uninorm/test-u16-normcoll.c: Likewise.
11173         * tests/uninorm/test-u32-nfc.c: Likewise.
11174         * tests/uninorm/test-u32-nfd.c: Likewise.
11175         * tests/uninorm/test-u32-nfkc.c: Likewise.
11176         * tests/uninorm/test-u32-nfkd.c: Likewise.
11177         * tests/uninorm/test-u32-normalize-big.c: Likewise.
11178         * tests/uninorm/test-u32-normcmp.c: Likewise.
11179         * tests/uninorm/test-u32-normcoll.c: Likewise.
11180         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
11181         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
11182         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
11183         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
11184         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
11185         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
11186         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
11187         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
11188         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
11189         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
11190         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
11191         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
11192         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
11193         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
11194         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
11195         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
11196         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
11197         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
11198         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
11199         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
11200         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
11201         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
11202         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
11203         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
11204         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
11205         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
11206         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
11207         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
11208         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
11209         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
11210         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
11211         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
11212         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
11213         * tests/uniwidth/test-u8-strwidth.c: Likewise.
11214         * tests/uniwidth/test-u8-width.c: Likewise.
11215         * tests/uniwidth/test-u16-strwidth.c: Likewise.
11216         * tests/uniwidth/test-u16-width.c: Likewise.
11217         * tests/uniwidth/test-u32-strwidth.c: Likewise.
11218         * tests/uniwidth/test-u32-width.c: Likewise.
11219         * tests/uniwidth/test-uc_width.c: Likewise.
11220         * tests/uniwidth/test-uc_width2.c: Likewise.
11221         * modules/acl-tests (Files): Add tests/macros.h.
11222         * modules/areadlink-tests (Files): Likewise.
11223         * modules/areadlink-with-size-tests (Files): Likewise.
11224         * modules/areadlinkat-tests (Files): Likewise.
11225         * modules/areadlinkat-with-size-tests (Files): Likewise.
11226         * modules/argmatch-tests (Files): Likewise.
11227         * modules/argv-iter-tests (Files): Likewise.
11228         * modules/array-list-tests (Files): Likewise.
11229         * modules/array-mergesort-tests (Files): Likewise.
11230         * modules/array-oset-tests (Files): Likewise.
11231         * modules/avltree-list-tests (Files): Likewise.
11232         * modules/avltree-oset-tests (Files): Likewise.
11233         * modules/avltreehash-list-tests (Files): Likewise.
11234         * modules/base64-tests (Files): Likewise.
11235         * modules/binary-io-tests (Files): Likewise.
11236         * modules/bitrotate-tests (Files): Likewise.
11237         * modules/btowc-tests (Files): Likewise.
11238         * modules/byteswap-tests (Files): Likewise.
11239         * modules/c-ctype-tests (Files): Likewise.
11240         * modules/c-stack-tests (Files): Likewise.
11241         * modules/c-strcase-tests (Files): Likewise.
11242         * modules/c-strcasestr-tests (Files): Likewise.
11243         * modules/c-strstr-tests (Files): Likewise.
11244         * modules/canonicalize-lgpl-tests (Files): Likewise.
11245         * modules/canonicalize-tests (Files): Likewise.
11246         * modules/carray-list-tests (Files): Likewise.
11247         * modules/ceilf-tests (Files): Likewise.
11248         * modules/ceill-tests (Files): Likewise.
11249         * modules/chown-tests (Files): Likewise.
11250         * modules/cloexec-tests (Files): Likewise.
11251         * modules/copy-file-tests (Files): Likewise.
11252         * modules/count-one-bits-tests (Files): Likewise.
11253         * modules/dprintf-posix-tests (Files): Likewise.
11254         * modules/dup2-tests (Files): Likewise.
11255         * modules/dup3-tests (Files): Likewise.
11256         * modules/duplocale-tests (Files): Likewise.
11257         * modules/fbufmode-tests (Files): Likewise.
11258         * modules/fchdir-tests (Files): Likewise.
11259         * modules/fcntl-safer-tests (Files): Likewise.
11260         * modules/fcntl-tests (Files): Likewise.
11261         * modules/fdopendir-tests (Files): Likewise.
11262         * modules/fdutimensat-tests (Files): Likewise.
11263         * modules/fflush-tests (Files): Likewise.
11264         * modules/filevercmp-tests (Files): Likewise.
11265         * modules/flock-tests (Files): Likewise.
11266         * modules/floorf-tests (Files): Likewise.
11267         * modules/floorl-tests (Files): Likewise.
11268         * modules/fnmatch-tests (Files): Likewise.
11269         * modules/fopen-safer-tests (Files): Likewise.
11270         * modules/fopen-tests (Files): Likewise.
11271         * modules/fpending-tests (Files): Likewise.
11272         * modules/fprintf-posix-tests (Files): Likewise.
11273         * modules/fpurge-tests (Files): Likewise.
11274         * modules/freadable-tests (Files): Likewise.
11275         * modules/freadahead-tests (Files): Likewise.
11276         * modules/freading-tests (Files): Likewise.
11277         * modules/freadptr-tests (Files): Likewise.
11278         * modules/freadseek-tests (Files): Likewise.
11279         * modules/freopen-tests (Files): Likewise.
11280         * modules/frexp-nolibm-tests (Files): Likewise.
11281         * modules/frexp-tests (Files): Likewise.
11282         * modules/frexpl-nolibm-tests (Files): Likewise.
11283         * modules/frexpl-tests (Files): Likewise.
11284         * modules/fseek-tests (Files): Likewise.
11285         * modules/fseeko-tests (Files): Likewise.
11286         * modules/fstrcmp-tests (Files): Likewise.
11287         * modules/fsync-tests (Files): Likewise.
11288         * modules/ftell-tests (Files): Likewise.
11289         * modules/ftello-tests (Files): Likewise.
11290         * modules/func-tests (Files): Likewise.
11291         * modules/futimens-tests (Files): Likewise.
11292         * modules/fwritable-tests (Files): Likewise.
11293         * modules/fwriting-tests (Files): Likewise.
11294         * modules/getcwd-tests (Files): Likewise.
11295         * modules/getdate-tests (Files): Likewise.
11296         * modules/getdelim-tests (Files): Likewise.
11297         * modules/getdtablesize-tests (Files): Likewise.
11298         * modules/getgroups-tests (Files): Likewise.
11299         * modules/getline-tests (Files): Likewise.
11300         * modules/getndelim2-tests (Files): Likewise.
11301         * modules/glob-tests (Files): Likewise.
11302         * modules/hash-tests (Files): Likewise.
11303         * modules/i-ring-tests (Files): Likewise.
11304         * modules/iconv-tests (Files): Likewise.
11305         * modules/iconv_open-utf-tests (Files): Likewise.
11306         * modules/idpriv-drop-tests (Files): Likewise.
11307         * modules/idpriv-droptemp-tests (Files): Likewise.
11308         * modules/inet_ntop-tests (Files): Likewise.
11309         * modules/inet_pton-tests (Files): Likewise.
11310         * modules/isblank-tests (Files): Likewise.
11311         * modules/isfinite-tests (Files): Likewise.
11312         * modules/isinf-tests (Files): Likewise.
11313         * modules/isnan-tests (Files): Likewise.
11314         * modules/isnand-nolibm-tests (Files): Likewise.
11315         * modules/isnand-tests (Files): Likewise.
11316         * modules/isnanf-nolibm-tests (Files): Likewise.
11317         * modules/isnanf-tests (Files): Likewise.
11318         * modules/isnanl-nolibm-tests (Files): Likewise.
11319         * modules/isnanl-tests (Files): Likewise.
11320         * modules/lchown-tests (Files): Likewise.
11321         * modules/ldexpl-tests (Files): Likewise.
11322         * modules/link-tests (Files): Likewise.
11323         * modules/linkat-tests (Files): Likewise.
11324         * modules/linked-list-tests (Files): Likewise.
11325         * modules/linkedhash-list-tests (Files): Likewise.
11326         * modules/localename-tests (Files): Likewise.
11327         * modules/lseek-tests (Files): Likewise.
11328         * modules/lstat-tests (Files): Likewise.
11329         * modules/mbmemcasecmp-tests (Files): Likewise.
11330         * modules/mbmemcasecoll-tests (Files): Likewise.
11331         * modules/mbrtowc-tests (Files): Likewise.
11332         * modules/mbscasecmp-tests (Files): Likewise.
11333         * modules/mbscasestr-tests (Files): Likewise.
11334         * modules/mbschr-tests (Files): Likewise.
11335         * modules/mbscspn-tests (Files): Likewise.
11336         * modules/mbsinit-tests (Files): Likewise.
11337         * modules/mbsncasecmp-tests (Files): Likewise.
11338         * modules/mbsnrtowcs-tests (Files): Likewise.
11339         * modules/mbspbrk-tests (Files): Likewise.
11340         * modules/mbspcasecmp-tests (Files): Likewise.
11341         * modules/mbsrchr-tests (Files): Likewise.
11342         * modules/mbsrtowcs-tests (Files): Likewise.
11343         * modules/mbsspn-tests (Files): Likewise.
11344         * modules/mbsstr-tests (Files): Likewise.
11345         * modules/memchr-tests (Files): Likewise.
11346         * modules/memchr2-tests (Files): Likewise.
11347         * modules/memcmp-tests (Files): Likewise.
11348         * modules/memmem-tests (Files): Likewise.
11349         * modules/memrchr-tests (Files): Likewise.
11350         * modules/mkdir-tests (Files): Likewise.
11351         * modules/mkfifo-tests (Files): Likewise.
11352         * modules/mkfifoat-tests (Files): Likewise.
11353         * modules/mknod-tests (Files): Likewise.
11354         * modules/nanosleep-tests (Files): Likewise.
11355         * modules/nl_langinfo-tests (Files): Likewise.
11356         * modules/obstack-printf-tests (Files): Likewise.
11357         * modules/open-tests (Files): Likewise.
11358         * modules/openat-tests (Files): Likewise.
11359         * modules/pipe-filter-gi-tests (Files): Likewise.
11360         * modules/pipe-filter-ii-tests (Files): Likewise.
11361         * modules/pipe2-tests (Files): Likewise.
11362         * modules/popen-safer-tests (Files): Likewise.
11363         * modules/popen-tests (Files): Likewise.
11364         * modules/posixtm-tests (Files): Likewise.
11365         * modules/pread-tests (Files): Likewise.
11366         * modules/printf-frexp-tests (Files): Likewise.
11367         * modules/printf-frexpl-tests (Files): Likewise.
11368         * modules/printf-posix-tests (Files): Likewise.
11369         * modules/priv-set-tests (Files): Likewise.
11370         * modules/quotearg-tests (Files): Likewise.
11371         * modules/random_r-tests (Files): Likewise.
11372         * modules/rawmemchr-tests (Files): Likewise.
11373         * modules/rbtree-list-tests (Files): Likewise.
11374         * modules/rbtree-oset-tests (Files): Likewise.
11375         * modules/rbtreehash-list-tests (Files): Likewise.
11376         * modules/readlink-tests (Files): Likewise.
11377         * modules/remove-tests (Files): Likewise.
11378         * modules/rename-tests (Files): Likewise.
11379         * modules/renameat-tests (Files): Likewise.
11380         * modules/rmdir-tests (Files): Likewise.
11381         * modules/round-tests (Files): Likewise.
11382         * modules/roundf-tests (Files): Likewise.
11383         * modules/roundl-tests (Files): Likewise.
11384         * modules/safe-alloc-tests (Files): Likewise.
11385         * modules/setenv-tests (Files): Likewise.
11386         * modules/sigaction-tests (Files): Likewise.
11387         * modules/signbit-tests (Files): Likewise.
11388         * modules/sleep-tests (Files): Likewise.
11389         * modules/snprintf-posix-tests (Files): Likewise.
11390         * modules/snprintf-tests (Files): Likewise.
11391         * modules/sprintf-posix-tests (Files): Likewise.
11392         * modules/stat-tests (Files): Likewise.
11393         * modules/stat-time-tests (Files): Likewise.
11394         * modules/strcasestr-tests (Files): Likewise.
11395         * modules/strchrnul-tests (Files): Likewise.
11396         * modules/strerror-tests (Files): Likewise.
11397         * modules/striconv-tests (Files): Likewise.
11398         * modules/striconveh-tests (Files): Likewise.
11399         * modules/striconveha-tests (Files): Likewise.
11400         * modules/strsignal-tests (Files): Likewise.
11401         * modules/strstr-tests (Files): Likewise.
11402         * modules/strtod-tests (Files): Likewise.
11403         * modules/strverscmp-tests (Files): Likewise.
11404         * modules/symlink-tests (Files): Likewise.
11405         * modules/symlinkat-tests (Files): Likewise.
11406         * modules/trunc-tests (Files): Likewise.
11407         * modules/truncf-tests (Files): Likewise.
11408         * modules/truncl-tests (Files): Likewise.
11409         * modules/uname-tests (Files): Likewise.
11410         * modules/unicase/cased-tests (Files): Likewise.
11411         * modules/unicase/ignorable-tests (Files): Likewise.
11412         * modules/unicase/locale-language-tests (Files): Likewise.
11413         * modules/unicase/tolower-tests (Files): Likewise.
11414         * modules/unicase/totitle-tests (Files): Likewise.
11415         * modules/unicase/toupper-tests (Files): Likewise.
11416         * modules/unicase/u8-casecmp-tests (Files): Likewise.
11417         * modules/unicase/u8-casecoll-tests (Files): Likewise.
11418         * modules/unicase/u8-casefold-tests (Files): Likewise.
11419         * modules/unicase/u8-is-cased-tests (Files): Likewise.
11420         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
11421         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
11422         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
11423         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
11424         * modules/unicase/u8-tolower-tests (Files): Likewise.
11425         * modules/unicase/u8-totitle-tests (Files): Likewise.
11426         * modules/unicase/u8-toupper-tests (Files): Likewise.
11427         * modules/unicase/u16-casecmp-tests (Files): Likewise.
11428         * modules/unicase/u16-casecoll-tests (Files): Likewise.
11429         * modules/unicase/u16-casefold-tests (Files): Likewise.
11430         * modules/unicase/u16-is-cased-tests (Files): Likewise.
11431         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
11432         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
11433         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
11434         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
11435         * modules/unicase/u16-tolower-tests (Files): Likewise.
11436         * modules/unicase/u16-totitle-tests (Files): Likewise.
11437         * modules/unicase/u16-toupper-tests (Files): Likewise.
11438         * modules/unicase/u32-casecmp-tests (Files): Likewise.
11439         * modules/unicase/u32-casecoll-tests (Files): Likewise.
11440         * modules/unicase/u32-casefold-tests (Files): Likewise.
11441         * modules/unicase/u32-is-cased-tests (Files): Likewise.
11442         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
11443         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
11444         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
11445         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
11446         * modules/unicase/u32-tolower-tests (Files): Likewise.
11447         * modules/unicase/u32-totitle-tests (Files): Likewise.
11448         * modules/unicase/u32-toupper-tests (Files): Likewise.
11449         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
11450         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
11451         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
11452         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
11453         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
11454         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
11455         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
11456         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
11457         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
11458         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
11459         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
11460         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
11461         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
11462         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
11463         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
11464         * modules/unictype/bidicategory-name-tests (Files): Likewise.
11465         * modules/unictype/bidicategory-of-tests (Files): Likewise.
11466         * modules/unictype/bidicategory-test-tests (Files): Likewise.
11467         * modules/unictype/block-list-tests (Files): Likewise.
11468         * modules/unictype/block-of-tests (Files): Likewise.
11469         * modules/unictype/block-test-tests (Files): Likewise.
11470         * modules/unictype/category-C-tests (Files): Likewise.
11471         * modules/unictype/category-Cc-tests (Files): Likewise.
11472         * modules/unictype/category-Cf-tests (Files): Likewise.
11473         * modules/unictype/category-Cn-tests (Files): Likewise.
11474         * modules/unictype/category-Co-tests (Files): Likewise.
11475         * modules/unictype/category-Cs-tests (Files): Likewise.
11476         * modules/unictype/category-L-tests (Files): Likewise.
11477         * modules/unictype/category-Ll-tests (Files): Likewise.
11478         * modules/unictype/category-Lm-tests (Files): Likewise.
11479         * modules/unictype/category-Lo-tests (Files): Likewise.
11480         * modules/unictype/category-Lt-tests (Files): Likewise.
11481         * modules/unictype/category-Lu-tests (Files): Likewise.
11482         * modules/unictype/category-M-tests (Files): Likewise.
11483         * modules/unictype/category-Mc-tests (Files): Likewise.
11484         * modules/unictype/category-Me-tests (Files): Likewise.
11485         * modules/unictype/category-Mn-tests (Files): Likewise.
11486         * modules/unictype/category-N-tests (Files): Likewise.
11487         * modules/unictype/category-Nd-tests (Files): Likewise.
11488         * modules/unictype/category-Nl-tests (Files): Likewise.
11489         * modules/unictype/category-No-tests (Files): Likewise.
11490         * modules/unictype/category-P-tests (Files): Likewise.
11491         * modules/unictype/category-Pc-tests (Files): Likewise.
11492         * modules/unictype/category-Pd-tests (Files): Likewise.
11493         * modules/unictype/category-Pe-tests (Files): Likewise.
11494         * modules/unictype/category-Pf-tests (Files): Likewise.
11495         * modules/unictype/category-Pi-tests (Files): Likewise.
11496         * modules/unictype/category-Po-tests (Files): Likewise.
11497         * modules/unictype/category-Ps-tests (Files): Likewise.
11498         * modules/unictype/category-S-tests (Files): Likewise.
11499         * modules/unictype/category-Sc-tests (Files): Likewise.
11500         * modules/unictype/category-Sk-tests (Files): Likewise.
11501         * modules/unictype/category-Sm-tests (Files): Likewise.
11502         * modules/unictype/category-So-tests (Files): Likewise.
11503         * modules/unictype/category-Z-tests (Files): Likewise.
11504         * modules/unictype/category-Zl-tests (Files): Likewise.
11505         * modules/unictype/category-Zp-tests (Files): Likewise.
11506         * modules/unictype/category-Zs-tests (Files): Likewise.
11507         * modules/unictype/category-and-not-tests (Files): Likewise.
11508         * modules/unictype/category-and-tests (Files): Likewise.
11509         * modules/unictype/category-byname-tests (Files): Likewise.
11510         * modules/unictype/category-name-tests (Files): Likewise.
11511         * modules/unictype/category-none-tests (Files): Likewise.
11512         * modules/unictype/category-of-tests (Files): Likewise.
11513         * modules/unictype/category-or-tests (Files): Likewise.
11514         * modules/unictype/category-test-withtable-tests (Files): Likewise.
11515         * modules/unictype/combining-class-tests (Files): Likewise.
11516         * modules/unictype/ctype-alnum-tests (Files): Likewise.
11517         * modules/unictype/ctype-alpha-tests (Files): Likewise.
11518         * modules/unictype/ctype-blank-tests (Files): Likewise.
11519         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
11520         * modules/unictype/ctype-digit-tests (Files): Likewise.
11521         * modules/unictype/ctype-graph-tests (Files): Likewise.
11522         * modules/unictype/ctype-lower-tests (Files): Likewise.
11523         * modules/unictype/ctype-print-tests (Files): Likewise.
11524         * modules/unictype/ctype-punct-tests (Files): Likewise.
11525         * modules/unictype/ctype-space-tests (Files): Likewise.
11526         * modules/unictype/ctype-upper-tests (Files): Likewise.
11527         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
11528         * modules/unictype/decimal-digit-tests (Files): Likewise.
11529         * modules/unictype/digit-tests (Files): Likewise.
11530         * modules/unictype/mirror-tests (Files): Likewise.
11531         * modules/unictype/numeric-tests (Files): Likewise.
11532         * modules/unictype/property-alphabetic-tests (Files): Likewise.
11533         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
11534         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
11535         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
11536         Likewise.
11537         * modules/unictype/property-bidi-block-separator-tests (Files):
11538         Likewise.
11539         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
11540         Likewise.
11541         * modules/unictype/property-bidi-common-separator-tests (Files):
11542         Likewise.
11543         * modules/unictype/property-bidi-control-tests (Files): Likewise.
11544         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
11545         Likewise.
11546         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
11547         Likewise.
11548         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
11549         Likewise.
11550         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
11551         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
11552         Likewise.
11553         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
11554         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
11555         Likewise.
11556         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
11557         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
11558         * modules/unictype/property-bidi-segment-separator-tests (Files):
11559         Likewise.
11560         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
11561         * modules/unictype/property-byname-tests (Files): Likewise.
11562         * modules/unictype/property-combining-tests (Files): Likewise.
11563         * modules/unictype/property-composite-tests (Files): Likewise.
11564         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
11565         * modules/unictype/property-dash-tests (Files): Likewise.
11566         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
11567         * modules/unictype/property-default-ignorable-code-point-tests (Files):
11568         Likewise.
11569         * modules/unictype/property-deprecated-tests (Files): Likewise.
11570         * modules/unictype/property-diacritic-tests (Files): Likewise.
11571         * modules/unictype/property-extender-tests (Files): Likewise.
11572         * modules/unictype/property-format-control-tests (Files): Likewise.
11573         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
11574         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
11575         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
11576         * modules/unictype/property-hex-digit-tests (Files): Likewise.
11577         * modules/unictype/property-hyphen-tests (Files): Likewise.
11578         * modules/unictype/property-id-continue-tests (Files): Likewise.
11579         * modules/unictype/property-id-start-tests (Files): Likewise.
11580         * modules/unictype/property-ideographic-tests (Files): Likewise.
11581         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
11582         * modules/unictype/property-ids-trinary-operator-tests (Files):
11583         Likewise.
11584         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
11585         * modules/unictype/property-iso-control-tests (Files): Likewise.
11586         * modules/unictype/property-join-control-tests (Files): Likewise.
11587         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
11588         * modules/unictype/property-line-separator-tests (Files): Likewise.
11589         * modules/unictype/property-logical-order-exception-tests (Files):
11590         Likewise.
11591         * modules/unictype/property-lowercase-tests (Files): Likewise.
11592         * modules/unictype/property-math-tests (Files): Likewise.
11593         * modules/unictype/property-non-break-tests (Files): Likewise.
11594         * modules/unictype/property-not-a-character-tests (Files): Likewise.
11595         * modules/unictype/property-numeric-tests (Files): Likewise.
11596         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
11597         * modules/unictype/property-other-default-ignorable-code-point-tests
11598         (Files): Likewise.
11599         * modules/unictype/property-other-grapheme-extend-tests (Files):
11600         Likewise.
11601         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
11602         * modules/unictype/property-other-id-start-tests (Files): Likewise.
11603         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
11604         * modules/unictype/property-other-math-tests (Files): Likewise.
11605         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
11606         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
11607         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
11608         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
11609         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
11610         * modules/unictype/property-private-use-tests (Files): Likewise.
11611         * modules/unictype/property-punctuation-tests (Files): Likewise.
11612         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
11613         * modules/unictype/property-radical-tests (Files): Likewise.
11614         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
11615         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
11616         * modules/unictype/property-space-tests (Files): Likewise.
11617         * modules/unictype/property-terminal-punctuation-tests (Files):
11618         Likewise.
11619         * modules/unictype/property-test-tests (Files): Likewise.
11620         * modules/unictype/property-titlecase-tests (Files): Likewise.
11621         * modules/unictype/property-unassigned-code-value-tests (Files):
11622         Likewise.
11623         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
11624         * modules/unictype/property-uppercase-tests (Files): Likewise.
11625         * modules/unictype/property-variation-selector-tests (Files): Likewise.
11626         * modules/unictype/property-white-space-tests (Files): Likewise.
11627         * modules/unictype/property-xid-continue-tests (Files): Likewise.
11628         * modules/unictype/property-xid-start-tests (Files): Likewise.
11629         * modules/unictype/property-zero-width-tests (Files): Likewise.
11630         * modules/unictype/scripts-tests (Files): Likewise.
11631         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
11632         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
11633         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
11634         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
11635         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
11636         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
11637         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
11638         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
11639         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
11640         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
11641         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
11642         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
11643         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
11644         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
11645         * modules/uninorm/composition-tests (Files): Likewise.
11646         * modules/uninorm/decomposing-form-tests (Files): Likewise.
11647         * modules/uninorm/decomposition-tests (Files): Likewise.
11648         * modules/uninorm/filter-tests (Files): Likewise.
11649         * modules/uninorm/nfc-tests (Files): Likewise.
11650         * modules/uninorm/nfd-tests (Files): Likewise.
11651         * modules/uninorm/nfkc-tests (Files): Likewise.
11652         * modules/uninorm/nfkd-tests (Files): Likewise.
11653         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
11654         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
11655         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
11656         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
11657         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
11658         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
11659         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
11660         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
11661         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
11662         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
11663         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
11664         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
11665         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
11666         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
11667         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
11668         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
11669         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
11670         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
11671         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
11672         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
11673         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
11674         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
11675         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
11676         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
11677         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
11678         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
11679         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
11680         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
11681         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
11682         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
11683         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
11684         * modules/uniwidth/u8-width-tests (Files): Likewise.
11685         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
11686         * modules/uniwidth/u16-width-tests (Files): Likewise.
11687         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
11688         * modules/uniwidth/u32-width-tests (Files): Likewise.
11689         * modules/uniwidth/width-tests (Files): Likewise.
11690         * modules/unlink-tests (Files): Likewise.
11691         * modules/unsetenv-tests (Files): Likewise.
11692         * modules/usleep-tests (Files): Likewise.
11693         * modules/utimens-tests (Files): Likewise.
11694         * modules/utimensat-tests (Files): Likewise.
11695         * modules/vasnprintf-posix-tests (Files): Likewise.
11696         * modules/vasnprintf-tests (Files): Likewise.
11697         * modules/vasprintf-posix-tests (Files): Likewise.
11698         * modules/vasprintf-tests (Files): Likewise.
11699         * modules/vdprintf-posix-tests (Files): Likewise.
11700         * modules/vfprintf-posix-tests (Files): Likewise.
11701         * modules/vprintf-posix-tests (Files): Likewise.
11702         * modules/vsnprintf-posix-tests (Files): Likewise.
11703         * modules/vsnprintf-tests (Files): Likewise.
11704         * modules/vsprintf-posix-tests (Files): Likewise.
11705         * modules/wcrtomb-tests (Files): Likewise.
11706         * modules/wcsnrtombs-tests (Files): Likewise.
11707         * modules/wcsrtombs-tests (Files): Likewise.
11708         * modules/wctype-tests (Files): Likewise.
11709         * modules/wcwidth-tests (Files): Likewise.
11710         * modules/xmemdup0-tests (Files): Likewise.
11711         * modules/xprintf-posix-tests (Files): Likewise.
11712         * modules/xvasprintf-tests (Files): Likewise.
11713
11714 2009-12-24  Eric Blake  <ebb9@byu.net>
11715
11716         test-nanosleep: fix typo
11717         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
11718         patch.
11719         Reported by Bruno Haible.
11720
11721 2009-12-24  Bruno Haible  <bruno@clisp.org>
11722
11723         Reduce namespace pollution on glibc systems.
11724         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
11725         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
11726         systems.
11727         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
11728         <getopt.h> on glibc systems.
11729         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
11730         systems.
11731         * lib/fcntl.c: Include <unistd.h> here instead.
11732
11733 2009-12-24  Bruno Haible  <bruno@clisp.org>
11734
11735         * lib/stdlib.in.h (includes): Fix typo in today's commit.
11736
11737 2009-12-24  Eric Blake  <ebb9@byu.net>
11738
11739         tests: add signature checks
11740         * tests/signature.h (SIGNATURE_CHECK): New file.
11741         * modules/atexit-tests (Files): Use it.
11742         * modules/btowc-tests (Files): Likewise.
11743         * modules/canonicalize-lgpl-tests (Files): Likewise.
11744         * modules/ceilf-tests (Files): Likewise.
11745         * modules/ceill-tests (Files): Likewise.
11746         * modules/chown-tests (Files): Likewise.
11747         * modules/dprintf-posix-tests (Files): Likewise.
11748         * modules/dup2-tests (Files): Likewise.
11749         * modules/dup3-tests (Files): Likewise.
11750         * modules/duplocale-tests (Files): Likewise.
11751         * modules/fchdir-tests (Files): Likewise.
11752         * modules/fcntl-tests (Files): Likewise.
11753         * modules/fdopendir-tests (Files): Likewise.
11754         * modules/fflush-tests (Files): Likewise.
11755         * modules/flock-tests (Files): Likewise.
11756         * modules/floorf-tests (Files): Likewise.
11757         * modules/floorl-tests (Files): Likewise.
11758         * modules/fnmatch-tests (Files): Likewise.
11759         * modules/fopen-tests (Files): Likewise.
11760         * modules/fprintf-posix-tests (Files): Likewise.
11761         * modules/freopen-tests (Files): Likewise.
11762         * modules/frexp-nolibm-tests (Files): Likewise.
11763         * modules/frexp-tests (Files): Likewise.
11764         * modules/frexpl-nolibm-tests (Files): Likewise.
11765         * modules/frexpl-tests (Files): Likewise.
11766         * modules/fseek-tests (Files): Likewise.
11767         * modules/fseeko-tests (Files): Likewise.
11768         * modules/fsync-tests (Files): Likewise.
11769         * modules/ftell-tests (Files): Likewise.
11770         * modules/ftello-tests (Files): Likewise.
11771         * modules/futimens-tests (Files): Likewise.
11772         * modules/getaddrinfo-tests (Files): Likewise.
11773         * modules/getcwd-tests (Files): Likewise.
11774         * modules/getdelim-tests (Files): Likewise.
11775         * modules/getdtablesize-tests (Files): Likewise.
11776         * modules/getgroups-tests (Files): Likewise.
11777         * modules/gethostname-tests (Files): Likewise.
11778         * modules/getline-tests (Files): Likewise.
11779         * modules/getopt-posix-tests (Files): Likewise.
11780         * modules/gettimeofday-tests (Files): Likewise.
11781         * modules/glob-tests (Files): Likewise.
11782         * modules/iconv-tests (Files): Likewise.
11783         * modules/inet_ntop-tests (Files): Likewise.
11784         * modules/inet_pton-tests (Files): Likewise.
11785         * modules/isblank-tests (Files): Likewise.
11786         * modules/lchown-tests (Files): Likewise.
11787         * modules/ldexpl-tests (Files): Likewise.
11788         * modules/link-tests (Files): Likewise.
11789         * modules/linkat-tests (Files): Likewise.
11790         * modules/lseek-tests (Files): Likewise.
11791         * modules/lstat-tests (Files): Likewise.
11792         * modules/mbrtowc-tests (Files): Likewise.
11793         * modules/mbsinit-tests (Files): Likewise.
11794         * modules/mbsnrtowcs-tests (Files): Likewise.
11795         * modules/mbsrtowcs-tests (Files): Likewise.
11796         * modules/memchr-tests (Files): Likewise.
11797         * modules/memcmp-tests (Files): Likewise.
11798         * modules/memmem-tests (Files): Likewise.
11799         * modules/memrchr-tests (Files): Likewise.
11800         * modules/mkdir-tests (Files): Likewise.
11801         * modules/mkfifo-tests (Files): Likewise.
11802         * modules/mkfifoat-tests (Files): Likewise.
11803         * modules/mknod-tests (Files): Likewise.
11804         * modules/nanosleep-tests (Files): Likewise.
11805         * modules/nl_langinfo-tests (Files): Likewise.
11806         * modules/obstack-printf-tests (Files): Likewise.
11807         * modules/open-tests (Files): Likewise.
11808         * modules/openat-tests (Files): Likewise.
11809         * modules/perror-tests (Files): Likewise.
11810         * modules/pipe2-tests (Files): Likewise.
11811         * modules/poll-tests (Files): Likewise.
11812         * modules/popen-tests (Files): Likewise.
11813         * modules/posix_spawn-tests (Files): Likewise.
11814         * modules/posix_spawnp-tests (Files): Likewise.
11815         * modules/pread-tests (Files): Likewise.
11816         * modules/printf-posix-tests (Files): Likewise.
11817         * modules/pty-tests (Files): Likewise.
11818         * modules/random_r-tests (Files): Likewise.
11819         * modules/rawmemchr-tests (Files): Likewise.
11820         * modules/readlink-tests (Files): Likewise.
11821         * modules/remove-tests (Files): Likewise.
11822         * modules/rename-tests (Files): Likewise.
11823         * modules/renameat-tests (Files): Likewise.
11824         * modules/rmdir-tests (Files): Likewise.
11825         * modules/round-tests (Files): Likewise.
11826         * modules/roundf-tests (Files): Likewise.
11827         * modules/roundl-tests (Files): Likewise.
11828         * modules/select-tests (Files): Likewise.
11829         * modules/setenv-tests (Files): Likewise.
11830         * modules/sigaction-tests (Files): Likewise.
11831         * modules/sleep-tests (Files): Likewise.
11832         * modules/snprintf-posix-tests (Files): Likewise.
11833         * modules/snprintf-tests (Files): Likewise.
11834         * modules/sprintf-posix-tests (Files): Likewise.
11835         * modules/stat-tests (Files): Likewise.
11836         * modules/strcasestr-tests (Files): Likewise.
11837         * modules/strchrnul-tests (Files): Likewise.
11838         * modules/strerror-tests (Files): Likewise.
11839         * modules/strsignal-tests (Files): Likewise.
11840         * modules/strstr-tests (Files): Likewise.
11841         * modules/strtod-tests (Files): Likewise.
11842         * modules/strverscmp-tests (Files): Likewise.
11843         * modules/symlink-tests (Files): Likewise.
11844         * modules/symlinkat-tests (Files): Likewise.
11845         * modules/times-tests (Files): Likewise.
11846         * modules/trunc-tests (Files): Likewise.
11847         * modules/truncf-tests (Files): Likewise.
11848         * modules/truncl-tests (Files): Likewise.
11849         * modules/tsearch-tests (Files): Likewise.
11850         * modules/uname-tests (Files): Likewise.
11851         * modules/unlink-tests (Files): Likewise.
11852         * modules/unsetenv-tests (Files): Likewise.
11853         * modules/usleep-tests (Files): Likewise.
11854         * modules/utimensat-tests (Files): Likewise.
11855         * modules/vasprintf-tests (Files): Likewise.
11856         * modules/vdprintf-posix-tests (Files): Likewise.
11857         * modules/vfprintf-posix-tests (Files): Likewise.
11858         * modules/vprintf-posix-tests (Files): Likewise.
11859         * modules/vsnprintf-posix-tests (Files): Likewise.
11860         * modules/vsnprintf-tests (Files): Likewise.
11861         * modules/vsprintf-posix-tests (Files): Likewise.
11862         * modules/wcrtomb-tests (Files): Likewise.
11863         * modules/wcsnrtombs-tests (Files): Likewise.
11864         * modules/wcsrtombs-tests (Files): Likewise.
11865         * modules/wcwidth-tests (Files): Likewise.
11866         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
11867         * tests/test-isinf.c (isinf): Likewise.
11868         * tests/test-isnan.c (isnan): Likewise.
11869         * tests/test-signbit.c (signbit): Likewise.
11870         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
11871         declaration, either as macro or with correct signature.
11872         (select): Ensure function under test is declared with correct
11873         signature in correct header.
11874         * tests/test-atexit.c (atexit): Likewise.
11875         * tests/test-btowc.c (btowc): Likewise.
11876         * tests/test-canonicalize-lgpl.c (realpath)
11877         (canonicalize_file_name): Likewise.
11878         * tests/test-ceilf1.c (ceilf): Likewise.
11879         * tests/test-ceill.c (ceill): Likewise.
11880         * tests/test-chown.c (chown): Likewise.
11881         * tests/test-dprintf-posix.c (dprintf): Likewise.
11882         * tests/test-dup2.c (dup2): Likewise.
11883         * tests/test-dup3.c (dup3): Likewise.
11884         * tests/test-duplocale.c (duplocale): Likewise.
11885         * tests/test-fchdir.c (fchdir): Likewise.
11886         * tests/test-fchownat.c (fchownat): Likewise.
11887         * tests/test-fcntl.c (fcntl): Likewise.
11888         * tests/test-fdopendir.c (fdopendir): Likewise.
11889         * tests/test-fflush.c (fflush): Likewise.
11890         * tests/test-flock.c (flock): Likewise.
11891         * tests/test-floorf1.c (floorf): Likewise.
11892         * tests/test-floorl.c (floorl): Likewise.
11893         * tests/test-fnmatch.c (fnmatch): Likewise.
11894         * tests/test-fopen.c (fopen): Likewise.
11895         * tests/test-fprintf-posix.c (fprintf): Likewise.
11896         * tests/test-freopen.c (freopen): Likewise.
11897         * tests/test-frexp.c (frexp): Likewise.
11898         * tests/test-frexpl.c (frexpl): Likewise.
11899         * tests/test-fseek.c (fseek): Likewise.
11900         * tests/test-fseeko.c (fseeko): Likewise.
11901         * tests/test-fstatat.c (fstatat): Likewise.
11902         * tests/test-fsync.c (fsync): Likewise.
11903         * tests/test-ftell.c (ftell): Likewise.
11904         * tests/test-ftello.c (ftello): Likewise.
11905         * tests/test-futimens.c (futimens): Likewise.
11906         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
11907         (gai_strerror): Likewise.
11908         * tests/test-getcwd.c (getcwd): Likewise.
11909         * tests/test-getdelim.c (getdelim): Likewise.
11910         * tests/test-getdtablesize.c (getdtablesize): Likewise.
11911         * tests/test-getgroups.c (getgroups): Likewise.
11912         * tests/test-gethostname.c (gethostname): Likewise.
11913         * tests/test-getline.c (getline): Likewise.
11914         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
11915         Likewise.
11916         * tests/test-gettimeofday.c (gettimeofday): Likewise.
11917         * tests/test-glob.c (glob, globfree): Likewise.
11918         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
11919         * tests/test-inet_ntop.c (inet_ntop): Likewise.
11920         * tests/test-inet_pton.c (inet_pton): Likewise.
11921         * tests/test-isblank.c (isblank): Likewise.
11922         * tests/test-lchown.c (lchown): Likewise.
11923         * tests/test-ldexpl.c (ldexpl): Likewise.
11924         * tests/test-link.c (link): Likewise.
11925         * tests/test-linkat.c (linkat): Likewise.
11926         * tests/test-lseek.c (lseek): Likewise.
11927         * tests/test-lstat.c (lstat): Likewise.
11928         * tests/test-mbrtowc.c (mbrtowc): Likewise.
11929         * tests/test-mbsinit.c (mbsinit): Likewise.
11930         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
11931         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
11932         * tests/test-memchr.c (memchr): Likewise.
11933         * tests/test-memcmp.c (memcmp): Likewise.
11934         * tests/test-memmem.c (memmem): Likewise.
11935         * tests/test-memrchr.c (memrchr): Likewise.
11936         * tests/test-mkdir.c (mkdir): Likewise.
11937         * tests/test-mkdirat.c (mkdirat): Likewise.
11938         * tests/test-mkfifo.c (mkfifo): Likewise.
11939         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
11940         * tests/test-mknod.c (mknod): Likewise.
11941         * tests/test-nanosleep.c (nanosleep): Likewise.
11942         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
11943         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
11944         Likewise.
11945         * tests/test-open.c (open): Likewise.
11946         * tests/test-openat.c (openat): Likewise.
11947         * tests/test-perror.c (perror): Likewise.
11948         * tests/test-pipe2.c (pipe2): Likewise.
11949         * tests/test-poll.c (poll): Likewise.
11950         * tests/test-popen.c (popen, pclose): Likewise.
11951         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
11952         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
11953         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
11954         (posix_spawn_file_actions_destroy)
11955         (posix_spawn_file_actions_addclose)
11956         (posix_spawn_file_actions_addopen)
11957         (posix_spawn_file_actions_adddup2): Likewise.
11958         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
11959         * tests/test-pread.c (pread): Likewise.
11960         * tests/test-printf-posix.c (printf): Likewise.
11961         * tests/test-pty.c (openpty, forkpty): Likewise.
11962         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
11963         (random_r): Likewise.
11964         * tests/test-rawmemchr.c (rawmemchr): Likewise.
11965         * tests/test-readlink.c (readlink): Likewise.
11966         * tests/test-remove.c (remove): Likewise.
11967         * tests/test-rename.c (rename): Likewise.
11968         * tests/test-renameat.c (renameat): Likewise.
11969         * tests/test-rmdir.c (rmdir): Likewise.
11970         * tests/test-round1.c (round): Likewise.
11971         * tests/test-roundf1.c (roundf): Likewise.
11972         * tests/test-roundl.c (roundl): Likewise.
11973         * tests/test-setenv.c (setenv): Likewise.
11974         * tests/test-sigaction.c (sigaction): Likewise.
11975         * tests/test-sleep.c (sleep): Likewise.
11976         * tests/test-snprintf.c (snprintf): Likewise.
11977         * tests/test-sprintf-posix.c (sprintf): Likewise.
11978         * tests/test-stat.c (stat): Likewise.
11979         * tests/test-stpncpy.c (stpncpy): Likewise.
11980         * tests/test-strcasestr.c (strcasestr): Likewise.
11981         * tests/test-strchrnul.c (strchrnul): Likewise.
11982         * tests/test-strerror.c (strerror): Likewise.
11983         * tests/test-strsignal.c (strsignal): Likewise.
11984         * tests/test-strstr.c (strstr): Likewise.
11985         * tests/test-strtod.c (strtod): Likewise.
11986         * tests/test-strverscmp.c (strverscmp): Likewise.
11987         * tests/test-symlink.c (symlink): Likewise.
11988         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
11989         * tests/test-times.c (times): Likewise.
11990         * tests/test-trunc1.c (trunc): Likewise.
11991         * tests/test-truncf1.c (truncf): Likewise.
11992         * tests/test-truncl.c (truncl): Likewise.
11993         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
11994         Likewise.
11995         * tests/test-uname.c (uname): Likewise.
11996         * tests/test-unlink.c (unlink): Likewise.
11997         * tests/test-unlinkat.c (unlinkat): Likewise.
11998         * tests/test-unsetenv.c (unsetenv): Likewise.
11999         * tests/test-usleep.c (usleep): Likewise.
12000         * tests/test-utimensat.c (utimensat): Likewise.
12001         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
12002         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
12003         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
12004         * tests/test-vprintf-posix.c (vprintf): Likewise.
12005         * tests/test-vsnprintf.c (vsnprintf): Likewise.
12006         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
12007         * tests/test-wcrtomb.c (wcrtomb): Likewise.
12008         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
12009         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
12010         * tests/test-wcwidth.c (wcwidth): Likewise.
12011
12012         build: pull in conditional headers during GNULIB_POSIXCHECK
12013         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
12014         definitions from any conditionally-included headers.
12015         * lib/stdlib.in.h (includes): Likewise.
12016         * lib/unistd.in.h (includes): Likewise.
12017
12018 2009-12-24  Bruno Haible  <bruno@clisp.org>
12019
12020         * tests/test-argv-iter.c: Include header file being tested immediately
12021         after config.h.
12022         * tests/test-base64.c: Likewise.
12023         * tests/test-flock.c: Likewise.
12024         * tests/test-fsync.c: Likewise.
12025         * tests/test-getdate.c: Likewise.
12026         * tests/test-getndelim2.c: Likewise.
12027         * tests/test-isfinite.c: Likewise.
12028         * tests/test-isinf.c: Likewise.
12029         * tests/test-strerror.c: Likewise.
12030         * tests/test-strsignal.c: Likewise.
12031
12032 2009-12-23  Eric Blake  <ebb9@byu.net>
12033
12034         unistd: work around cygwin bug
12035         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
12036         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
12037         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
12038
12039 2009-12-23  Bruno Haible  <bruno@clisp.org>
12040
12041         localename: More tests.
12042         * tests/test-localename.c (SIZEOF): New macro.
12043         (categories): New variable.
12044         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
12045         test_locale_name_default): Add test w.r.t. thread locale.
12046         (test_locale_name_thread): New function.
12047         (main): Invoke it.
12048
12049         localename: Make aware of thread locale.
12050         * lib/localename.h (gl_locale_name_thread): New declaration.
12051         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
12052         behaviour with respect to thread locale.
12053         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
12054         <langinfo.h>, glthread/lock.h.
12055         (SIZE_BITS): New macro.
12056         (string_hash): New function.
12057         (struct hash_node): New type.
12058         (HASH_TABLE_SIZE): New macro.
12059         (struniq_hash_table, struniq_lock): New variables.
12060         (struniq): New function.
12061         (gl_locale_name_thread): New function.
12062         (gl_locale_name): Invoke it.
12063         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
12064         * modules/localename (Depends-on): Add lock.
12065         Reported by Mike Gran <spk121@yahoo.com>.
12066
12067 2009-12-23  Eric Blake  <ebb9@byu.net>
12068
12069         va-args: new module
12070         * modules/va-args: New file.
12071         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
12072         * MODULES.html.sh (Core language properties): Mention it.
12073
12074         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
12075         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
12076         named alias for __attribute__((__unused__)).
12077         * lib/chown.c: Update client.
12078         * lib/fchmodat.c: Likewise.
12079         * lib/fts.c: Likewise.
12080         * lib/getdate.y: Likewise.
12081         * lib/getgroups.c: Likewise.
12082         * lib/getopt.c: Likewise.
12083         * lib/getugroups.c: Likewise.
12084         * lib/mkdir.c: Likewise.
12085         * lib/mkfifo.c: Likewise.
12086         * lib/mkfifoat.c: Likewise.
12087         * lib/mknod.c: Likewise.
12088         * lib/mknodat.c: Likewise.
12089         * lib/readlink.c: Likewise.
12090         * lib/se-context.in.h: Likewise.
12091         * lib/se-selinux.in.h: Likewise.
12092         * lib/sockets.c: Likewise.
12093         * lib/symlink.c: Likewise.
12094         * lib/symlinkat.c: Likewise.
12095         * lib/unicodeio.c: Likewise.
12096         * lib/unistr.h: Likewise.
12097         * tests/test-areadlink.c: Likewise.
12098         * tests/test-areadlinkat.c: Likewise.
12099         * tests/test-filenamecat.c: Likewise.
12100         * tests/test-fseeko.c: Likewise.
12101         * tests/test-ftello.c: Likewise.
12102         * tests/test-getdate.c: Likewise.
12103         * tests/test-getgroups.c: Likewise.
12104         * tests/test-gethostname.c: Likewise.
12105         * tests/test-quotearg.c: Likewise.
12106         * tests/test-version-etc.c: Likewise.
12107         * tests/test-xalloc-die.c: Likewise.
12108         * tests/test-xfprintf-posix.c: Likewise.
12109         * tests/test-xprintf-posix.c: Likewise.
12110         * tests/test-xvasprintf.c: Likewise.
12111
12112         tests: avoid compiler warnings
12113         * tests/test-fcntl.c (main): Delete unused parameters.
12114         * tests/test-freopen-safer.c (main): Likewise.
12115         * tests/test-xalloc-die.c (main): Mark unused parameters.
12116         * tests/test-fseeko.c (main): Likewise.
12117         * tests/test-ftello.c (main): Likewise.
12118         * tests/test-nanosleep.c (main): Avoid declaration warning.
12119         * tests/test-sleep.c (main): Likewise.
12120         * tests/test-unsetenv.c (main): Silence warning about string
12121         literal.
12122         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
12123
12124 2009-12-23  Bruno Haible  <bruno@clisp.org>
12125
12126         * tests/test-localename.c (test_locale_name): New function, extracted
12127         from main. Also test mixed situations.
12128         (test_locale_name_posix, test_locale_name_environ,
12129         test_locale_name_default): New functions.
12130         (main): Invoke them all.
12131         * modules/localename-tests (configure.ac): Test for newlocale.
12132
12133 2009-12-23  Bruno Haible  <bruno@clisp.org>
12134
12135         unistd: Ensure getcwd gets declared before being overridden.
12136         * lib/unistd.in.h: Conditionally include <io.h>.
12137
12138 2009-12-22  Bruno Haible  <bruno@clisp.org>
12139
12140         wchar: Diagnose broken combination of glibc and gcc versions and flags.
12141         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
12142         (gl_WCHAR_H): Invoke it.
12143         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
12144         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
12145         Reported by Karl Berry <karl@freefriends.org>.
12146
12147 2009-12-22  Eric Blake  <ebb9@byu.net>
12148
12149         math, unistd: avoid redundant includes
12150         * lib/math.in.h (isnan): No need to re-include <math.h>.
12151         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
12152
12153         getsubopt: work around cygwin bug
12154         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
12155         avoid conflicting with system getsubopt.
12156         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
12157         bug.
12158
12159         getopt: synchronize from glibc
12160         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
12161         parameter order.  Adjust all callers.
12162         (_getopt_internal_r, main): Adjust quoting in error messages.
12163         Drop considerations for outdated POSIX 1003.2 error message.
12164         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
12165         callers.
12166         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
12167
12168         test-getopt: test stderr behavior
12169         * modules/getopt-posix-tests (Depends-on): Add dup2.
12170         * tests/test-getopt.c (ASSERT): Avoid stderr.
12171         (main): Move stderr to a temporary file.
12172         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
12173         Instead, add parameter to inform caller if output occurred.
12174         (test_getopt): Adjust all existing tests to expect silence, and
12175         add new tests of leading ":".
12176         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
12177         glibc shortcomings with leading "-:" or "+:" in optstring.
12178         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12179         Likewise.
12180         * doc/posix-functions/getopt.texi (getopt): Likewise.
12181
12182         test-getopt: enhance test
12183         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
12184         supports optind=0.
12185         * tests/test-getopt.c (OPTIND_MIN): Move...
12186         * tests/test-getopt.h (OPTIND_MIN): ...here.
12187         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
12188         Require that optind=0 works, since modern BSD supports it in
12189         addition to optreset, and since coreutils expects it.
12190         (test_getopt_long_only): New test.
12191         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
12192         glibc shortcomings with 'W;', and enforcement of optind=0.
12193         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12194         Likewise.
12195
12196 2009-12-21  Bruno Haible  <bruno@clisp.org>
12197
12198         localename: Improvements for MacOS X and Cygwin.
12199         * lib/localename.h (gl_locale_name_environ): New declaration.
12200         * lib/localename.c (gl_locale_name_environ): New function, extracted from
12201         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
12202         (gl_locale_name_posix): Invoke it.
12203         (gl_locale_name_default): Add comments. Use Windows native API also on
12204         Cygwin.
12205
12206 2009-12-21  Bruno Haible  <bruno@clisp.org>
12207
12208         Update list of Win32 locale ids.
12209         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
12210         (LANG_SAMI): Renamed from LANG_SAAMI.
12211         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
12212         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
12213         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
12214         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
12215         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
12216         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
12217         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
12218         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
12219         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
12220         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
12221         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
12222         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
12223         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
12224         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
12225         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
12226         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
12227         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
12228         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
12229         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
12230         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
12231         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
12232         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
12233         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
12234         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
12235         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
12236         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
12237         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
12238         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
12239         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
12240         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
12241         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
12242         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
12243         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
12244         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
12245         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
12246         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
12247         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
12248         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
12249         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
12250         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
12251         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
12252         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
12253         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
12254         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
12255         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
12256         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
12257         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
12258         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
12259         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
12260         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
12261         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
12262         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
12263         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
12264         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
12265         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
12266         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
12267         Add more languages and countries for Sami, Sorbian. Add more countries
12268         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
12269         for Pashto. Change country for Syriac, Tswana.
12270
12271 2009-12-21  Eric Blake  <ebb9@byu.net>
12272
12273         test-utimens: avoid spurious failure
12274         * tests/test-chown.h (nap): Factor...
12275         * tests/nap.h: ...into new file.
12276         * tests/test-lchown.h (nap): Avoid duplication.
12277         * tests/test-utimens-common.h (nap): Use shared implementation,
12278         necessary on file systems with 1-second resolution.
12279         * modules/chown-tests (Files): Include new file.
12280         * modules/fdutimensat-tests (Files): Likewise.
12281         * modules/futimens-tests (Files): Likewise.
12282         * modules/lchown-tests (Files): Likewise.
12283         * modules/openat-tests (Files): Likewise.
12284         * modules/utimens-tests (Files): Likewise.
12285         * modules/utimensat-tests (Files): Likewise.
12286
12287 2009-12-19  Eric Blake  <ebb9@byu.net>
12288
12289         futimens, utimensat: work around Linux bug
12290         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
12291         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
12292         * lib/utimensat.c (rpl_utimensat): Work around it.
12293         * lib/futimens.c (rpl_futimens): Adjust comment.
12294
12295         utimens: work around Linux ctime bug
12296         * lib/utimens.c (detect_ctime_bug): New helper function.
12297         (update_timespec): Differentiate between workaround needed for
12298         this bug vs. what is needed for systems that lack utimensat.
12299         (fdutimens, lutimens): Work around bug.
12300
12301         utimens: check for ctime update
12302         * tests/test-utimens-common.h (check_ctime): Define.
12303         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
12304         * tests/test-futimens.h (test_futimens): Likewise.
12305         * tests/test-lutimens.h (test_lutimens): Likewise.
12306         * doc/posix-functions/futimens.texi (futimens): Document the bug.
12307         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
12308
12309 2009-12-19  Bruno Haible  <bruno@clisp.org>
12310
12311         dprintf-posix: Check against memory leak fixed on 2009-12-15.
12312         * tests/test-dprintf-posix2.sh: New file.
12313         * tests/test-dprintf-posix2.c: New file.
12314         * modules/dprintf-posix-tests (Files): Add them.
12315         (configure.ac): Check for getrlimit and setrlimit.
12316         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
12317
12318 2009-12-19  Bruno Haible  <bruno@clisp.org>
12319
12320         fprintf-posix: Check against memory leak fixed on 2009-12-15.
12321         * tests/test-fprintf-posix3.sh: New file.
12322         * tests/test-fprintf-posix3.c: New file.
12323         * modules/fprintf-posix-tests (Files): Add them.
12324         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
12325
12326 2009-12-19  Eric Blake  <ebb9@byu.net>
12327
12328         dirfd: fix prototype
12329         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
12330         * lib/dirfd.c (dirfd): Likewise.
12331
12332         canonicalize: reduce memory usage
12333         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
12334         allocation to size.
12335         Reported by Solar Designer <solar@openwall.com>.
12336
12337 2009-12-19  Bruno Haible  <bruno@clisp.org>
12338
12339         New module attribute 'Applicability'.
12340         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
12341         * gnulib-tool: New option --extract-applicability.
12342         (func_usage): Document it.
12343         (sed_extract_prog): Recognize it.
12344         (func_get_applicability): New function.
12345         (func_import): Generalize handling of 'link-warning' module.
12346         * modules/link-warning (Applicability): New section.
12347         * modules/arg-nonnull (Applicability): New section.
12348         Repoted by Simon Josefsson <simon@josefsson.org>.
12349
12350 2009-12-19  Bruno Haible  <bruno@clisp.org>
12351
12352         fflush: tweak
12353         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
12354         * lib/fseeko.c (rpl_fseeko): Likewise.
12355
12356 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
12357
12358         * lib/gl_list.h: Fix typo in comment.
12359
12360 2009-12-16  Eric Blake  <ebb9@byu.net>
12361
12362         fcntl: use to simplify other modules
12363         * modules/cloexec (Depends-on): Add fcntl.
12364         * modules/fchdir (Depends-on): Likewise.
12365         * modules/fd-safer-flag (Depends-on): Likewise.
12366         * modules/unistd-safer (Depends-on): Likewise.
12367         * modules/dup3 (configure.ac): Set module indicator.
12368         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
12369         missing.
12370         * lib/fchdir.c (_gl_register_dup): Fix comment.
12371         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
12372         * lib/dup-safer.c (dup_safer): Likewise.
12373         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
12374         * lib/dup3.c (dup3): Likewise.
12375         * tests/test-fchdir.c (main): Enhance test.
12376         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
12377
12378         fcntl: port portions of fcntl to mingw
12379         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
12380         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
12381         replacement for mingw.
12382         * modules/fcntl (Description): Update.
12383         (Depends-on): Add dup2.
12384         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
12385         * modules/fcntl-h (Makefile.am): Substitute it.
12386         * lib/fcntl.in.h (fcntl): Update declaration.
12387         (F_DUPFD, F_GETFD): New macros, when needed.
12388         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
12389         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
12390         * tests/test-fcntl.c (check_flags, main): Enhance test for items
12391         we now guarantee.
12392
12393         fcntl: work around cygwin bug in F_DUPFD
12394         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
12395         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
12396         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
12397         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
12398         * doc/posix-functions/fcntl.texi (fcntl): Document it.
12399
12400         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
12401         * modules/fcntl (Files): List new files.
12402         (configure.ac): Run a test.
12403         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
12404         * lib/fcntl.c (rpl_fcntl): Likewise.
12405         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
12406         (gl_FCNTL_H): Always replace fcntl.h.
12407         * modules/fcntl-h (Makefile.am): Substitute witnesses.
12408         * lib/fcntl.in.h (fcntl): Declare replacement.
12409         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
12410         needed, plus a witness.
12411         * doc/posix-functions/fcntl.texi (fcntl): Document this.
12412         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
12413         * tests/test-fcntl.c: New file.
12414         * modules/fcntl-tests: Likewise.
12415
12416         binary-io: avoid potential compilation warning
12417         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
12418         directives.
12419
12420         fflush: avoid compilation error on NetBSD
12421         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
12422         between off_t and fpos_t, since the latter is sometimes a struct.
12423         * lib/fseeko.c (rpl_fseeko): Likewise.
12424         Reported by Alexander Nasonov <alnsn@yandex.ru>.
12425
12426 2009-12-15  Eric Blake  <ebb9@byu.net>
12427
12428         fcntl-h, stdio, sys_ioctl: fix declarations
12429         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
12430         function must not take arguments.
12431         * lib/sys_ioctl.in.h (ioctl): Likewise.
12432         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
12433         (open): Add a link warning.
12434
12435 2009-12-15  Jim Meyering  <meyering@redhat.com>
12436
12437         areadlink, areadlink-with-size: relax license to LGPLv2+
12438         * modules/areadlink (License): Relax to LGPLv2+.
12439         * modules/areadlink-with-size (License): Likewise.
12440
12441 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
12442             Bruno Haible  <bruno@clisp.org>
12443
12444         *printf: Fix memory leak.
12445         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
12446         * lib/vfprintf.c (vfprintf): Likewise.
12447         * lib/dprintf.c (dprintf): Likewise.
12448         * lib/vdprintf.c (vdprintf): Likewise.
12449
12450 2009-12-14  Eric Blake  <ebb9@byu.net>
12451
12452         accept4: adjust module dependencies
12453         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
12454
12455         utimens: one more try at avoiding compiler warning
12456         * lib/utimens.c (lutimens): Lower scope of result.
12457
12458 2009-12-13  Bruno Haible  <bruno@clisp.org>
12459
12460         Move the malloc checking from module 'list' to new module 'xlist'.
12461         * modules/xlist: New file.
12462         * lib/gl_xlist.h: New file.
12463         * lib/gl_xlist.c: New file.
12464         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
12465         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
12466         gl_list_add_last, gl_list_add_before, gl_list_add_after,
12467         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
12468         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
12469         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
12470         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
12471         gl_sortedlist_nx_add): New declarations.
12472         (struct gl_list_implementation): Rename and change methods accordingly.
12473         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
12474         (gl_list_nx_create): Renamed from gl_list_create.
12475         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
12476         (gl_list_nx_set_at): Renamed from gl_list_set_at.
12477         (gl_list_nx_add_first): Renamed from gl_list_add_first.
12478         (gl_list_nx_add_last): Renamed from gl_list_add_last.
12479         (gl_list_nx_add_before): Renamed from gl_list_add_before.
12480         (gl_list_nx_add_after): Renamed from gl_list_add_after.
12481         (gl_list_nx_add_at): Renamed from gl_list_add_at.
12482         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
12483         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
12484         gl_list_create_empty.
12485         (gl_list_nx_create): Renamed from gl_list_create.
12486         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
12487         (gl_list_nx_set_at): Renamed from gl_list_set_at.
12488         (gl_list_nx_add_first): Renamed from gl_list_add_first.
12489         (gl_list_nx_add_last): Renamed from gl_list_add_last.
12490         (gl_list_nx_add_before): Renamed from gl_list_add_before.
12491         (gl_list_nx_add_after): Renamed from gl_list_add_after.
12492         (gl_list_nx_add_at): Renamed from gl_list_add_at.
12493         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
12494         * lib/gl_array_list.c: Don't include xalloc.h.
12495         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
12496         NULL upon out-of-memory.
12497         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
12498         out-of-memory.
12499         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
12500         Change return type to 'int'.
12501         (gl_array_nx_set_at): Renamed from gl_array_set_at.
12502         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
12503         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
12504         upon out-of-memory.
12505         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
12506         upon out-of-memory.
12507         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
12508         upon out-of-memory.
12509         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
12510         upon out-of-memory.
12511         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
12512         out-of-memory.
12513         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
12514         Update.
12515         (gl_array_list_implementation): Update.
12516         * lib/gl_carray_list.c: Don't include xalloc.h.
12517         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
12518         Return NULL upon out-of-memory.
12519         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
12520         out-of-memory.
12521         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
12522         Change return type to 'int'.
12523         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
12524         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
12525         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
12526         upon out-of-memory.
12527         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
12528         upon out-of-memory.
12529         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
12530         out-of-memory.
12531         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
12532         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
12533         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
12534         Update.
12535         (gl_carray_list_implementation): Update.
12536         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
12537         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
12538         gl_linked_create_empty. Return NULL upon out-of-memory.
12539         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
12540         out-of-memory.
12541         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
12542         Change return type to 'int'. Return -1 upon out-of-memory.
12543         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
12544         out-of-memory.
12545         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
12546         upon out-of-memory.
12547         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
12548         upon out-of-memory.
12549         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
12550         NULL upon out-of-memory.
12551         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
12552         upon out-of-memory.
12553         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
12554         out-of-memory.
12555         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
12556         Update.
12557         * lib/gl_linked_list.c: Don't include xalloc.h.
12558         (gl_linked_list_implementation): Update.
12559         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
12560         (add_to_bucket): Change return type to 'int'.
12561         (gl_linkedhash_list_implementation): Update.
12562         * lib/gl_anytree_list1.h (free_subtree): New function.
12563         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
12564         gl_tree_create_empty. Return NULL upon out-of-memory.
12565         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
12566         Change return type to 'int'. Return -1 upon out-of-memory.
12567         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
12568         out-of-memory.
12569         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
12570         (gl_tree_remove_node): New function, moved here from
12571         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
12572         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
12573         Update.
12574         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
12575         malloc, not xmalloc. Return NULL upon out-of-memory.
12576         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
12577         out-of-memory.
12578         (gl_tree_remove_node_from_tree): New function, extracted from
12579         gl_tree_remove_node.
12580         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
12581         upon out-of-memory.
12582         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
12583         out-of-memory.
12584         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
12585         upon out-of-memory.
12586         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
12587         upon out-of-memory.
12588         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
12589         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
12590         not xmalloc. Return NULL upon out-of-memory.
12591         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
12592         out-of-memory.
12593         (gl_tree_remove_node_from_tree): New function, extracted from
12594         gl_tree_remove_node.
12595         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
12596         upon out-of-memory.
12597         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
12598         out-of-memory.
12599         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
12600         upon out-of-memory.
12601         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
12602         upon out-of-memory.
12603         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
12604         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
12605         gl_anytree_list1.h before gl_anyavltree_list2.h.
12606         (gl_avltree_list_implementation): Update.
12607         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
12608         gl_anytree_list1.h before gl_anyavltree_list2.h.
12609         (gl_rbtree_list_implementation): Update.
12610         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
12611         Change return type to 'int'. Return -1 upon out-of-memory. Use
12612         __builtin_expect.
12613         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
12614         (gl_avltreehash_list_implementation): Update.
12615         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
12616         (gl_rbtreehash_list_implementation): Update.
12617         * modules/array-list (Depends-on): Remove xalloc.
12618         * modules/carray-list (Depends-on): Likewise.
12619         * modules/linked-list (Depends-on): Likewise.
12620         * modules/linkedhash-list (Depends-on): Likewise.
12621         * modules/avltree-list (Depends-on): Likewise.
12622         * modules/rbtree-list (Depends-on): Likewise.
12623         * modules/avltreehash-list (Depends-on): Likewise.
12624         * modules/rbtreehash-list (Depends-on): Likewise.
12625
12626         * modules/xsublist: New file.
12627         * lib/gl_xsublist.h: New file.
12628         * lib/gl_xsublist.c: New file.
12629         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
12630         (gl_sublist_nx_create): New declaration.
12631         * lib/gl_sublist.c: Don't include xalloc.h.
12632         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
12633         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
12634         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
12635         Change return type to 'int'. Return -1 upon out-of-memory.
12636         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
12637         upon out-of-memory.
12638         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
12639         NULL upon out-of-memory.
12640         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
12641         upon out-of-memory.
12642         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
12643         NULL upon out-of-memory.
12644         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
12645         NULL upon out-of-memory.
12646         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
12647         upon out-of-memory.
12648         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
12649         (gl_sublist_list_implementation): Update.
12650         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
12651         upon out-of-memory.
12652         * modules/sublist (Depends-on): Remove xalloc.
12653
12654         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
12655         * tests/test-carray_list.c: Likewise.
12656         * tests/test-linked_list.c: Likewise.
12657         * tests/test-linkedhash_list.c: Likewise.
12658         * tests/test-avltree_list.c: Likewise.
12659         * tests/test-rbtree_list.c: Likewise.
12660         * tests/test-avltreehash_list.c: Likewise.
12661         * tests/test-rbtreehash_list.c: Likewise.
12662         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
12663         * modules/carray-list-tests (Makefile.am): Likewise.
12664         * modules/linked-list-tests (Makefile.am): Likewise.
12665         * modules/linkedhash-list-tests (Makefile.am): Likewise.
12666         * modules/avltree-list-tests (Makefile.am): Likewise.
12667         * modules/rbtree-list-tests (Makefile.am): Likewise.
12668         * modules/avltreehash-list-tests (Makefile.am): Likewise.
12669         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
12670
12671         * NEWS: Mention the changes.
12672
12673         * lib/clean-temp.c: Include gl_xlist.h.
12674         * modules/clean-temp (Depends-on): Add xlist.
12675
12676         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
12677         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
12678
12679         * tests/test-array_oset.c: Include gl_xlist.h.
12680         * modules/array-oset-tests (Depends-on): Add xlist.
12681
12682         Reported by José E. Marchesi <jemarch@gnu.org>.
12683
12684 2009-12-13  Bruno Haible  <bruno@clisp.org>
12685
12686         Move the malloc checking from module 'oset' to new module 'xoset'.
12687         * modules/xoset: New file.
12688         * lib/gl_xoset.h: New file.
12689         * lib/gl_xoset.c: New file.
12690         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
12691         declarations.
12692         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
12693         (struct gl_oset_implementation): Rename and change methods accordingly.
12694         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
12695         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
12696         'int'. Mark as __warn_unused_result__.
12697         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
12698         gl_oset_create_empty.
12699         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
12700         'int'.
12701         * lib/gl_array_oset.c: Don't include xalloc.h.
12702         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
12703         malloc, not xmalloc.
12704         (grow): Change return type to 'int'. Don't call xalloc_die.
12705         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
12706         to 'int'.
12707         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
12708         'int'.
12709         (gl_array_oset_implementation): Update.
12710         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
12711         gl_tree_create_empty.
12712         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
12713         'int'.
12714         * lib/gl_avltree_oset.c: Don't include xalloc.h.
12715         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
12716         xmalloc.
12717         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
12718         not xmalloc.
12719         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
12720         xmalloc.
12721         (gl_avltree_oset_implementation): Update.
12722         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
12723         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
12724         xmalloc.
12725         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
12726         not xmalloc.
12727         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
12728         xmalloc.
12729         (gl_rbtree_oset_implementation): Update.
12730         * modules/array-oset (Depends-on): Remove xalloc.
12731         * modules/avltree-oset (Depends-on): Likewise.
12732         * modules/rbtree-oset (Depends-on): Likewise.
12733         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
12734         * tests/test-avltree_oset.c: Likewise.
12735         * tests/test-rbtree_oset.c: Likewise.
12736         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
12737         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
12738         * modules/rbtree-oset-tests (Makefile.am): Likewise.
12739         * NEWS: Mention the change.
12740
12741 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
12742
12743         maint.mk: allow a project to override release-prep commands
12744         * top/maint.mk (alpha, beta, stable): Move release-preparatory
12745         commands into a new rule.
12746         (release-prep): New rule.
12747         (release-prep-hook): New overridable variable.
12748
12749 2009-12-13  Bruno Haible  <bruno@clisp.org>
12750
12751         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
12752
12753 2009-12-13  Jim Meyering  <meyering@redhat.com>
12754
12755         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
12756         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
12757
12758 2009-12-12  Bruno Haible  <bruno@clisp.org>
12759
12760         duplocale: Tweak.
12761         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
12762
12763 2009-12-12  Karl Berry  <karl@gnu.org>
12764
12765         * config/srclist.txt (strtoll.c): tab changes, no more sync.
12766
12767 2009-12-12  Bruno Haible  <bruno@clisp.org>
12768
12769         * m4/po.m4: Undo incorrect untabification.
12770
12771 2009-12-12  Bruno Haible  <bruno@clisp.org>
12772
12773         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
12774         * modules/c-strtod (Depends-on): Add locale.
12775         * modules/c-strtold (Depends-on): Likewise.
12776
12777 2009-12-12  Bruno Haible  <bruno@clisp.org>
12778
12779         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
12780
12781 2009-12-11  Eric Blake  <ebb9@byu.net>
12782
12783         setenv: relax requirement in light of POSIX ruling
12784         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
12785         not NULL.
12786         * tests/test-setenv.c (main): Relax test.
12787         * tests/test-unsetenv.c (main): Likewise.
12788         * doc/posix-functions/setenv.texi (setenv): Document this.
12789         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
12790
12791 2009-12-11  Bruno Haible  <bruno@clisp.org>
12792
12793         New module 'fd-safer-flag'.
12794         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
12795         * lib/dup-safer.c (dup_safer_flag): Remove function.
12796         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
12797         * lib/fd-safer.c (fd_safer_flag): Remove function.
12798         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
12799         * modules/cloexec (configure.ac): Drop indicator macro.
12800         * modules/fd-safer-flag: New file.
12801         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
12802         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
12803         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
12804
12805 2009-12-11  Bruno Haible  <bruno@clisp.org>
12806
12807         Tests for module 'nl_langinfo'.
12808         * modules/nl_langinfo-tests: New file.
12809         * tests/test-nl_langinfo.sh: New file.
12810         * tests/test-nl_langinfo.c: New file.
12811
12812         New module 'nl_langinfo'.
12813         * lib/nl_langinfo.c: New file.
12814         * m4/nl_langinfo.m4: New file.
12815         * modules/nl_langinfo: New file.
12816         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
12817
12818 2009-12-11  Bruno Haible  <bruno@clisp.org>
12819
12820         Tests for module 'langinfo'.
12821         * modules/langinfo-tests: New file.
12822         * tests/test-langinfo.c: New file.
12823
12824         New module 'langinfo'.
12825         * lib/langinfo.in.h: New file.
12826         * m4/langinfo_h.m4: New file.
12827         * modules/langinfo: New file.
12828         * doc/posix-headers/langinfo.texi: Mention the new module.
12829
12830 2009-12-11  Bruno Haible  <bruno@clisp.org>
12831
12832         * lib/config.charset: Untabify.
12833
12834 2009-12-11  Bruno Haible  <bruno@clisp.org>
12835
12836         * modules/unistd-safer (configure.ac): Drop indicator macro.
12837
12838 2009-12-11  Bruno Haible  <bruno@clisp.org>
12839
12840         Move pipe2-safer code to its own file.
12841         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
12842         * lib/pipe-safer.c (pipe2_safer): Remove function.
12843         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
12844         (Makefile.am): Add it to lib_SOURCES.
12845
12846 2009-12-10  Bruno Haible  <bruno@clisp.org>
12847
12848         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
12849
12850 2009-12-10  Bruno Haible  <bruno@clisp.org>
12851
12852         Declare which arguments expect non-NULL values, for GCC and clang.
12853         * build-aux/arg-nonnull.h: New file.
12854         * modules/arg-nonnull: New file.
12855         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
12856         (inet_ntop, inet_pton): Use it.
12857         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
12858         (closedir, dirfd, opendir, scandir, alphasort): Use it.
12859         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
12860         (open, openat): Use it.
12861         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
12862         (fnmatch): Use it.
12863         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
12864         (getopt, getopt_long, getopt_long_only): Use it.
12865         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
12866         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
12867         Use it.
12868         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
12869         (iconv_open): Use it.
12870         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
12871         (strtoimax, strtoumax): Use it.
12872         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
12873         (duplocale): Use it.
12874         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
12875         (frexp, frexpl): Use it.
12876         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
12877         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
12878         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
12879         (tsearch, tfind, tdelete, twalk): Use it.
12880         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
12881         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
12882         sigpending): Use it.
12883         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
12884         (posix_spawn, posix_spawnp, posix_spawnattr_init,
12885         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
12886         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
12887         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
12888         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
12889         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
12890         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
12891         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
12892         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
12893         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
12894         Use it.
12895         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
12896         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
12897         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
12898         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
12899         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
12900         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
12901         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
12902         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
12903         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
12904         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
12905         strtoull, unsetenv): Use it.
12906         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
12907         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
12908         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
12909         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
12910         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
12911         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
12912         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
12913         (strcasecmp, strncasecmp): Use it.
12914         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
12915         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
12916         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
12917         rpl_setsockopt): Use it.
12918         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
12919         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
12920         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
12921         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
12922         (gettimeofday): Use it.
12923         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
12924         (times): Use it.
12925         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
12926         (uname): Use it.
12927         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
12928         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
12929         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
12930         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
12931         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
12932         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
12933         unlinkat, write): Use it.
12934         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
12935         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
12936         * lib/argv-iter.h: Include arg-nonnull.h.
12937         (_ATTRIBUTE_NONNULL_): Remove macro.
12938         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
12939         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
12940         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
12941         optimization.
12942         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
12943         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
12944         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
12945         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
12946         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
12947         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
12948         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
12949         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
12950         * modules/arpa_inet (Depends-on): Add arg-nonnull.
12951         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
12952         * modules/dirent (Depends-on): Add arg-nonnull.
12953         (Makefile.am): Insert arg-nonnull.h into dirent.h.
12954         * modules/fcntl-h (Depends-on): Add arg-nonnull.
12955         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
12956         * modules/fnmatch (Depends-on): Add arg-nonnull.
12957         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
12958         * modules/getopt-posix (Depends-on): Add arg-nonnull.
12959         (Makefile.am): Insert arg-nonnull.h into getopt.h.
12960         * modules/glob (Depends-on): Add arg-nonnull.
12961         (Makefile.am): Insert arg-nonnull.h into glob.h.
12962         * modules/iconv_open (Depends-on): Add arg-nonnull.
12963         (Makefile.am): Insert arg-nonnull.h into iconv.h.
12964         * modules/inttypes (Depends-on): Add arg-nonnull.
12965         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
12966         * modules/locale (Depends-on): Add arg-nonnull.
12967         (Makefile.am): Insert arg-nonnull.h into locale.h.
12968         * modules/math (Depends-on): Add arg-nonnull.
12969         (Makefile.am): Insert arg-nonnull.h into math.h.
12970         * modules/netdb (Depends-on): Add arg-nonnull.
12971         (Makefile.am): Insert arg-nonnull.h into netdb.h.
12972         * modules/search (Depends-on): Add arg-nonnull.
12973         (Makefile.am): Insert arg-nonnull.h into search.h.
12974         * modules/signal (Depends-on): Add arg-nonnull.
12975         (Makefile.am): Insert arg-nonnull.h into signal.h.
12976         * modules/spawn (Depends-on): Add arg-nonnull.
12977         (Makefile.am): Insert arg-nonnull.h into spawn.h.
12978         * modules/stdio (Depends-on): Add arg-nonnull.
12979         (Makefile.am): Insert arg-nonnull.h into stdio.h.
12980         * modules/stdlib (Depends-on): Add arg-nonnull.
12981         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
12982         * modules/string (Depends-on): Add arg-nonnull.
12983         (Makefile.am): Insert arg-nonnull.h into string.h.
12984         * modules/strings (Depends-on): Add arg-nonnull.
12985         (Makefile.am): Insert arg-nonnull.h into strings.h.
12986         * modules/sys_socket (Depends-on): Add arg-nonnull.
12987         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
12988         * modules/sys_stat (Depends-on): Add arg-nonnull.
12989         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
12990         * modules/sys_time (Depends-on): Add arg-nonnull.
12991         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
12992         * modules/sys_times (Depends-on): Add arg-nonnull.
12993         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
12994         * modules/sys_utsname (Depends-on): Add arg-nonnull.
12995         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
12996         * modules/time (Depends-on): Add arg-nonnull.
12997         (Makefile.am): Insert arg-nonnull.h into time.h.
12998         * modules/unistd (Depends-on): Add arg-nonnull.
12999         (Makefile.am): Insert arg-nonnull.h into unistd.h.
13000         * modules/wchar (Depends-on): Add arg-nonnull.
13001         (Makefile.am): Insert arg-nonnull.h into wchar.h.
13002         * modules/argv-iter (Depends-on): Add arg-nonnull.
13003         * tests/test-canonicalize.c (null_ptr): New function.
13004         (main): Use it.
13005         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
13006         (main): Use it.
13007         * tests/test-memmem.c (null_ptr): New function.
13008         (main): Use it.
13009         Reported by Jim Meyering.
13010
13011 2009-12-10  Bruno Haible  <bruno@clisp.org>
13012
13013         Use spaces for indentation, not tabs.
13014         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
13015         * m4/*.m4: Untabify.
13016         * build-aux/*.h: Untabify.
13017         * tests/**/*.[hc]: Untabify.
13018         * README: New section "Indent with spaces, not TABs", based on
13019         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
13020         * NEWS: Mention the change.
13021
13022 2009-12-10  Bruno Haible  <bruno@clisp.org>
13023
13024         pty test: Fix link error.
13025         * modules/pty-tests (Makefile.am): Add the default LDADD value to
13026         test_pty_LDADD.
13027
13028 2009-12-07  Simon Josefsson  <simon@josefsson.org>
13029
13030         * modules/pty: New file.
13031         * modules/pty-tests: New file.
13032         * m4/pty.m4: New file.
13033         * tests/test-pty.c: New file.
13034         * doc/glibc-headers/pty.texi: Modified.
13035         * doc/glibc-functions/forkpty.texi: Modified.
13036         * doc/glibc-functions/openpty.texi: Modified.
13037
13038 2009-12-10  Bruno Haible  <bruno@clisp.org>
13039
13040         Avoid syntax error in C++ mode.
13041         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
13042
13043 2009-12-10  Bruno Haible  <bruno@clisp.org>
13044
13045         Use sed with option -e.
13046         * gnulib-tool (func_version, func_emit_copyright_notice,
13047         func_emit_initmacro_end, func_import, func_create_testdir): Pass
13048         option -e to sed.
13049         * modules/link-warning (Makefile.am): Likewise.
13050
13051 2009-12-10  Jim Meyering  <meyering@redhat.com>
13052
13053         mgetgroups: do not write bytes beyond end of malloc'd buffer
13054         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
13055         username, we call getgroups with a one-element-shorter buffer,
13056         but still told it the length was original, max_n_groups.
13057
13058 2009-12-09  Eric Blake  <ebb9@byu.net>
13059
13060         cloexec: relax license
13061         * modules/cloexec (Maintainer): Add myself.
13062         (License): Use LGPL, not GPL.
13063
13064         link-warning: optimize generation
13065         * modules/link-warning (Makefile.am): Reduce process usage.
13066
13067 2009-12-09  Bruno Haible  <bruno@clisp.org>
13068
13069         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
13070         workaround was added on 2009-11-17.
13071
13072 2009-12-09  Jim Meyering  <meyering@redhat.com>
13073             Bruno Haible  <bruno@clisp.org>
13074
13075         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
13076         * modules/link-warning (Makefile.am): Make the comment-removing sed
13077         command more robust in the face of bootstrap-prepended comment lines.
13078
13079 2009-12-09  Bruno Haible  <bruno@clisp.org>
13080
13081         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
13082         most one group.
13083
13084 2009-12-09  Simon Josefsson <simon@josefsson.org>
13085             Bruno Haible  <bruno@clisp.org>
13086
13087         * build-aux/link-warning.h: Add copyright notice.
13088         * modules/link-warning (Makefile.am): Generate link-warning.h from
13089         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
13090         * NEWS: Mention change in link-warning module.
13091         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
13092         * modules/dirent (Makefile.am): Add dependency to dirent.h.
13093         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
13094         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
13095         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
13096         * modules/math (Makefile.am): Add dependency to math.h.
13097         * modules/search (Makefile.am): Add dependency to search.h.
13098         * modules/signal (Makefile.am): Add dependency to signal.h.
13099         * modules/spawn (Makefile.am): Add dependency to spawn.h.
13100         * modules/stdio (Makefile.am): Add dependency to stdio.h.
13101         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
13102         * modules/string (Makefile.am): Add dependency to string.h.
13103         * modules/strings (Makefile.am): Add dependency to strings.h.
13104         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
13105         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
13106         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
13107         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
13108         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
13109         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
13110         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
13111         * modules/unistd (Makefile.am): Add dependency to unistd.h.
13112         * modules/wchar (Makefile.am): Add dependency to wchar.h.
13113
13114 2009-12-09  Bruno Haible  <bruno@clisp.org>
13115
13116         fchdir: Optimize away rpl_fstat when possible.
13117         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
13118         REPLACE_OPEN_DIRECTORY.
13119         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
13120
13121 2009-12-09  Bruno Haible  <bruno@clisp.org>
13122
13123         * lib/fchdir.c: Update comment.
13124
13125 2009-12-09  Bruno Haible  <bruno@clisp.org>
13126
13127         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
13128
13129 2009-12-08  Eric Blake  <ebb9@byu.net>
13130
13131         fchdir: avoid memory leak on re-registration.
13132         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
13133
13134 2009-12-08  Jim Meyering  <meyering@redhat.com>
13135
13136         init.sh: avoid Solaris 10 /bin/sh portability problem
13137         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
13138         sourced script:
13139           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
13140           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
13141           bar
13142         tests/init.sh relied on that, accepting a --set-path=DIR argument,
13143         and two tests used that idiom.
13144         * tests/init.sh: Update suggested usage comments.
13145         (path_prepend_): New function, to be used in place
13146         of the --src-path=DIR option.
13147         (setup_): Move PATH-prepending code into path_prepend_.
13148         * tests/test-pread.sh: Adapt to new usage.
13149         * tests/test-xalloc-die.sh: Likewise.
13150
13151 2009-12-08  Simon Josefsson  <simon@josefsson.org>
13152
13153         * doc/gnulib.texi (Glibc pty.h): Add.
13154         * doc/glibc-functions/forkpty.texi: Add.
13155         * doc/glibc-functions/openpty.texi: Add.
13156         Suggested by Bruno Haible.
13157
13158 2009-12-08  Eric Blake  <ebb9@byu.net>
13159
13160         fchdir: fix logic bugs
13161         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
13162         * tests/test-fchdir.c (main): Enhance test.
13163         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
13164         is in use.
13165
13166         dup2: fix logic bugs
13167         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
13168         REPLACE_DUP2 to decide when rpl_dup2 is needed.
13169         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
13170         exists.
13171         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
13172
13173 2009-12-07  Eric Blake  <ebb9@byu.net>
13174
13175         unlink: fix m4 detection
13176         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
13177
13178         unistd-safer: add unit test
13179         * modules/unistd-safer-tests: New file.
13180         * tests/test-dup-safer.c: Likewise.
13181         * tests/test-cloexec.c (setmode): Avoid compiler warning.
13182         * tests/test-dup2.c (setmode): Likewise.
13183         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
13184
13185         cloexec: preserve text vs. binary across dup_cloexec
13186         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
13187         mode.
13188         * modules/dup2-tests (Depends-on): Add binary-io.
13189         * modules/cloexec-tests (Depends-on): Likewise.
13190         * tests/test-dup2.c (setmode, is_mode): New helpers.
13191         (main): Add tests that translation mode is preserved.
13192         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
13193         Reported by Bruno Haible.
13194
13195         mgetgroups: reduce duplicate listings
13196         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
13197         resulting array.
13198         * tests/test-chown.h (test_chown): Simplify client.
13199         * tests/test-lchown.h (test_lchown): Likewise.
13200
13201 2009-12-06  Bruno Haible  <bruno@clisp.org>
13202
13203         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
13204         value.
13205
13206 2009-12-06  Bruno Haible  <bruno@clisp.org>
13207
13208         * lib/progname.c: Include stdio.h, stdlib.h.
13209         (set_program_name): Reject a NULL argument.
13210
13211 2009-12-05  Eric Blake  <ebb9@byu.net>
13212
13213         pipe2-safer: new module
13214         * modules/pipe2-safer: New file.
13215         * lib/unistd-safer.h (pipe2_safer): New prototype.
13216         * lib/unistd--.h (pipe2): New wrapper.
13217         * lib/pipe-safer.c (pipe2_safer): New function.
13218         * modules/pipe (Depends-on): Add pipe2-safer.
13219         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
13220
13221         stdlib-safer: preserve cloexec flag for mkostemp[s]
13222         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
13223         fd_safer_flag.
13224
13225         unistd-safer: allow preservation of cloexec status via flag
13226         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
13227         prototypes.
13228         * lib/dup-safer.c (dup_safer_flag): New function.
13229         * lib/fd-safer.c (fd_safer_flag): Likewise.
13230         * modules/cloexec (configure.ac): Set witness.
13231
13232         test-dup2: enhance test
13233         * modules/dup2-tests (Depends-on): Add cloexec.
13234         * tests/test-dup2.c (main): Enhance test.
13235
13236         cloexec: add dup_cloexec
13237         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
13238         header and comments.
13239         * lib/cloexec.c (set_cloexec_flag): Add comments.
13240         (dup_cloexec): New function, with mingw implementation borrowed
13241         from...
13242         * lib/w32spawn.h (dup_noinherit): ...here.
13243         * modules/execute (Depends-on): Add cloexec.
13244         * modules/pipe (Depends-on): Likewise.
13245         * modules/cloexec (Depends-on): Add dup2.
13246         * modules/cloexec-tests (Files): New file.
13247         * tests/test-cloexec.c: Likewise.
13248
13249         test-xalloc-die: fix test for mingw
13250         * modules/xalloc-die-tests (Files): Add tests/init.sh.
13251         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
13252         directory and .exe suffix off argv[0] output.
13253
13254         test-fseeko: fix test for mingw
13255         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
13256         than undefining fseek, so test will pass on mingw.
13257
13258 2009-12-05  Bruno Haible  <bruno@clisp.org>
13259
13260         * lib/progname.h (set_program_name): Clarify specification.
13261         * lib/progname.c (set_program_name): Likewise.
13262         Reported by Jim Meyering.
13263
13264 2009-12-05  Jim Meyering  <meyering@redhat.com>
13265
13266         maint.mk: backslash-escape parens in default regexp
13267         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
13268         backslash-escape the literal parentheses.
13269
13270         maint.mk: news-date-check: use grep -E
13271         * top/maint.mk (today): Define a Make variable, not a...
13272         (news-date-check): ...shell variable.
13273         (news-date-regexp): Use the Make variable.
13274         Use grep's -E option.  Change the failing diagnostic to mention
13275         the variable, $(news-date-regexp).
13276
13277 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
13278
13279         maintainer-makefile: allow customization of NEWS entry format
13280         * top/maint.mk (news-date-regexp): New overridable variable.
13281         (news-date-check): Use it.
13282
13283 2009-12-04  Eric Blake  <ebb9@byu.net>
13284
13285         mgetgroups: add xgetgroups, and avoid ENOSYS failures
13286         * lib/mgetgroups.h (xgetgroups): New prototype.
13287         * lib/mgetgroups.c (xgetgroups): New wrapper.
13288         (mgetgroups): Handle ENOSYS.
13289         * modules/mgetgroups (Depends-on): Add realloc.
13290         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
13291
13292         mgetgroups: avoid argument promotion issues with -1
13293         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
13294         for invalid gid_t.
13295         * tests/test-chown.h (getegid, test_chown): Likewise.
13296         * tests/test-lchown.h (getegid, test_lchown): Likewise.
13297
13298 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
13299
13300         exclude: Fix header file problems.
13301         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
13302
13303 2009-12-01  Jim Meyering  <meyering@redhat.com>
13304
13305         fts: fts_open: do not let an empty string cause immediate failure
13306         This is required in support of GNU rm, for which the command
13307         "rm A '' B" must process and remove both A and B, in spite of
13308         the empty string argument.
13309         * lib/fts.c (fts_open): Do not let the presence of an empty string
13310         cause fts_open to fail immediately.  Most fts-using tools must be
13311         able to process all arguments, in order, and can be expected to
13312         diagnose such arguments themselves.
13313
13314 2009-11-30  Eric Blake  <ebb9@byu.net>
13315
13316         utimens: fix compilation error
13317         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
13318         Declare variable at right scope.
13319
13320 2009-11-29  Jim Meyering  <meyering@redhat.com>
13321
13322         bootstrap: handle perl-5.11's changed --version output
13323         * build-aux/bootstrap (get_version): Handle perl separately,
13324         since perl-5.11's --version output is different.
13325
13326 2009-11-28  Jim Meyering  <meyering@redhat.com>
13327
13328         userspec: depend on the inttostr module, too
13329         * modules/userspec (Depends-on): Add inttostr.
13330
13331         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
13332         * lib/userspec.c (parse_with_separator): Do not accept a user ID
13333         number of MAXUID when it evaluates to (uid_t) -1.
13334         Likewise for group ID.  Reported by Matt McCutchen in
13335         <http://savannah.gnu.org/bugs/?28113>
13336
13337         userspec: reformat to use spaces, not TABs
13338         * lib/userspec.c: Expand TABs to spaces.
13339         Add Emacs' "indent-tabs-mode: nil" hint.
13340
13341 2009-11-27  Eric Blake  <ebb9@byu.net>
13342
13343         getopt-gnu: flush out another BSD bug
13344         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
13345         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
13346         flush out BSD bug.
13347         * tests/test-getopt.h (test_getopt): End lists with NULL.
13348         * tests/test-getopt_long.h (test_getopt_long): Likewise.
13349         (test_getopt_long_posix): Enhance test.
13350         * modules/getopt-posix-tests (Depends-on): Add stdbool.
13351         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
13352         getopt-gnu.
13353         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13354         Likewise.
13355
13356 2009-11-27  Simon Josefsson  <simon@josefsson.org>
13357
13358         * modules/idpriv-droptemp-tests (Notice): Fix text.
13359
13360 2009-11-27  Jim Meyering  <meyering@redhat.com>
13361
13362         test-xalloc-die: avoid spurious failure due to libtool argv difference
13363         In a libtool-enabled project, this test would fail due to a difference
13364         in the emitted program name, e.g.,
13365         -test-xalloc-die: memory exhausted
13366         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
13367         Use program to avoid that.
13368         * modules/xalloc-die-tests (Depends-on): Add progname.
13369         * tests/test-xalloc-die.c: Include progname.h".
13370         (program_name): Remove decl.
13371         (main): Call set_program_name.
13372         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
13373
13374 2009-11-26  Richard Jones  <rjones@redhat.com>
13375
13376         w32sock: leave win32 error in place.
13377         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
13378
13379 2009-11-26  Eric Blake  <ebb9@byu.net>
13380
13381         init.sh: suggest to use skip_ and fail_ functions in comments
13382         * tests/init.sh: Add a sentence.
13383
13384 2009-11-25  Bruno Haible  <bruno@clisp.org>
13385
13386         init.sh: add documentation in comments
13387         * tests/init.sh: Add some developer and user documentation.
13388
13389 2009-11-26  Jim Meyering  <meyering@redhat.com>
13390
13391         init.sh: accommodate even those who specify bogus srcdir manually
13392         * tests/init.sh: Normally, srcdir is guaranteed by automake and
13393         configure-time tests to be sanitized, so that there is no need to
13394         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
13395         (with no double quotes) suffices.  However, since tests may be
13396         invoked manually, and since you may explicitly set srcdir to the
13397         name of a directory containing spaces, do quote its uses here.
13398         * tests/test-pread.sh: Likewise.
13399         Suggested by Bruno Haible.
13400
13401         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
13402         * tests/test-pread.sh: Write no data into the pipe, because
13403         test-pread actually reads none.  This avoids a diagnostic,
13404         "bash: echo: write error: Broken pipe", that arises in the unusual
13405         event something is ignoring SIGPIPE, and might be interpreted
13406         as some sort of failure.  Reported by Bruno Haible.
13407
13408 2009-11-25  Jim Meyering  <meyering@redhat.com>
13409
13410         test-pread: cover failure with ESPIPE and EINVAL
13411         * tests/test-pread.c (main): Test for failure, too.
13412         * tests/test-pread.sh: Invoke with stdin on a pipe.
13413         Suggested by Eric Blake.
13414
13415         pread: improvement and fix
13416         * modules/pread (Depends-on): Depend on lseek, for portability to
13417         e.g., mingw.  Suggested by Eric Blake.
13418         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
13419
13420         unistd.in.h: correct declaration of pread
13421         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
13422         Reported by Richard W.M. Jones.
13423
13424         test-pread.sh: distribute the test script
13425         * modules/pread-tests (Files): Include test-pread.sh.
13426
13427         test-pread.sh: clean up
13428         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
13429         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
13430         That is unnecessary, since it's always ".".
13431         Suggestion from Eric Blake.
13432
13433         test-pread.sh: make executable
13434         * tests/test-pread.sh: Set executable bit.
13435         Reported by Eric Blake.
13436
13437         correct typo in test-pread.sh
13438         * tests/test-pread.sh: Add #! line.
13439
13440         test pread
13441         * tests/test-pread.c: New file.
13442         * tests/test-pread.sh: Likewise.
13443         * modules/pread-tests: Likewise.
13444
13445         pread: new module
13446         * modules/pread: New file.
13447         * lib/unistd.in.h (pread): Define/declare.
13448         * lib/pread.c (pread): New file.
13449         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
13450         * modules/unistd (Makefile.am): Substitute witnesses.
13451         * doc/posix-functions/pread.texi (pread): Update.
13452         * MODULES.html.sh: Add pread.
13453
13454 2009-11-25  Jim Meyering  <meyering@redhat.com>
13455
13456         tests/init.sh: new file to be used via most *.sh tests
13457         * tests/init.sh: New file.
13458
13459 2009-11-25  Eric Blake  <ebb9@byu.net>
13460
13461         utimens: work around older Linux failure with symlinks
13462         * lib/utimens.c (lutimensat_works_really): New variable.
13463         (fdutimens, lutimens): Use it to manage kernels that support
13464         nanosecond times on files, but not on symlinks.
13465         Reported by OndÅ™ej Vašík.
13466
13467         utimes: fix configure grammar
13468         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
13469
13470 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
13471
13472         regex: Fix fastmap for multibyte character ranges.
13473         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
13474         characters when a multibyte character range is included.
13475
13476 2009-11-22  Andy Wingo  <wingo@pobox.com>
13477
13478         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
13479         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
13480
13481 2009-11-24  Bruno Haible  <bruno@clisp.org>
13482
13483         doc: Most *_l functions exist in MacOS X 10.5.
13484         * doc/posix-functions/duplocale.texi: Update platforms list.
13485         * doc/posix-functions/freelocale.texi: Likewise.
13486         * doc/posix-functions/newlocale.texi: Likewise.
13487         * doc/posix-functions/uselocale.texi: Likewise.
13488         * doc/posix-functions/isalnum_l.texi: Likewise.
13489         * doc/posix-functions/isalpha_l.texi: Likewise.
13490         * doc/posix-functions/isblank_l.texi: Likewise.
13491         * doc/posix-functions/iscntrl_l.texi: Likewise.
13492         * doc/posix-functions/isdigit_l.texi: Likewise.
13493         * doc/posix-functions/isgraph_l.texi: Likewise.
13494         * doc/posix-functions/islower_l.texi: Likewise.
13495         * doc/posix-functions/isprint_l.texi: Likewise.
13496         * doc/posix-functions/ispunct_l.texi: Likewise.
13497         * doc/posix-functions/isspace_l.texi: Likewise.
13498         * doc/posix-functions/isupper_l.texi: Likewise.
13499         * doc/posix-functions/iswalnum_l.texi: Likewise.
13500         * doc/posix-functions/iswalpha_l.texi: Likewise.
13501         * doc/posix-functions/iswblank_l.texi: Likewise.
13502         * doc/posix-functions/iswcntrl_l.texi: Likewise.
13503         * doc/posix-functions/iswctype_l.texi: Likewise.
13504         * doc/posix-functions/iswdigit_l.texi: Likewise.
13505         * doc/posix-functions/iswgraph_l.texi: Likewise.
13506         * doc/posix-functions/iswlower_l.texi: Likewise.
13507         * doc/posix-functions/iswprint_l.texi: Likewise.
13508         * doc/posix-functions/iswpunct_l.texi: Likewise.
13509         * doc/posix-functions/iswspace_l.texi: Likewise.
13510         * doc/posix-functions/iswupper_l.texi: Likewise.
13511         * doc/posix-functions/iswxdigit_l.texi: Likewise.
13512         * doc/posix-functions/isxdigit_l.texi: Likewise.
13513         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
13514         * doc/posix-functions/strcasecmp_l.texi: Likewise.
13515         * doc/posix-functions/strcoll_l.texi: Likewise.
13516         * doc/posix-functions/strfmon_l.texi: Likewise.
13517         * doc/posix-functions/strftime_l.texi: Likewise.
13518         * doc/posix-functions/strncasecmp_l.texi: Likewise.
13519         * doc/posix-functions/strxfrm_l.texi: Likewise.
13520         * doc/posix-functions/tolower_l.texi: Likewise.
13521         * doc/posix-functions/toupper_l.texi: Likewise.
13522         * doc/posix-functions/towctrans_l.texi: Likewise.
13523         * doc/posix-functions/towlower_l.texi: Likewise.
13524         * doc/posix-functions/towupper_l.texi: Likewise.
13525         * doc/posix-functions/wcscoll_l.texi: Likewise.
13526         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
13527         * doc/posix-functions/wctrans_l.texi: Likewise.
13528         * doc/posix-functions/wctype_l.texi: Likewise.
13529         * doc/glibc-functions/strptime_l.texi: Likewise.
13530         * doc/glibc-functions/strtod_l.texi: Likewise.
13531         * doc/glibc-functions/strtof_l.texi: Likewise.
13532         * doc/glibc-functions/strtol_l.texi: Likewise.
13533         * doc/glibc-functions/strtold_l.texi: Likewise.
13534         * doc/glibc-functions/strtoll_l.texi: Likewise.
13535         * doc/glibc-functions/strtoul_l.texi: Likewise.
13536         * doc/glibc-functions/strtoull_l.texi: Likewise.
13537         * doc/glibc-functions/wcsftime_l.texi: Likewise.
13538         * doc/glibc-functions/wcstod_l.texi: Likewise.
13539         * doc/glibc-functions/wcstof_l.texi: Likewise.
13540         * doc/glibc-functions/wcstol_l.texi: Likewise.
13541         * doc/glibc-functions/wcstold_l.texi: Likewise.
13542         * doc/glibc-functions/wcstoll_l.texi: Likewise.
13543         * doc/glibc-functions/wcstoul_l.texi: Likewise.
13544         * doc/glibc-functions/wcstoull_l.texi: Likewise.
13545
13546 2009-11-24  Bruno Haible  <bruno@clisp.org>
13547
13548         duplocale: Fix logic bug.
13549         * lib/duplocale.c: Don't include <langinfo.h>.
13550         (_NL_LOCALE_NAME): Remove macro.
13551         (rpl_duplocale): Use setlocale instead of nl_langinfo.
13552         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
13553
13554 2009-11-23  Jim Meyering  <meyering@redhat.com>
13555
13556         test-update-copyright: don't hard-code /usr/bin/perl
13557         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
13558         perl to print the current year.  Gilles Espinasse reported that
13559         the replaced use of perl was hard-coded as /usr/bin/perl.
13560
13561 2009-11-23  Bruno Haible  <bruno@clisp.org>
13562
13563         duplocale: Add support for glibc 2.3.x.
13564         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
13565
13566 2009-11-22  Bruno Haible  <bruno@clisp.org>
13567
13568         vasnprintf: Tiny optimization.
13569         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
13570         MacOS X.
13571
13572 2009-11-22  Bruno Haible  <bruno@clisp.org>
13573
13574         Tests for module 'duplocale'.
13575         * modules/duplocale-tests: New file.
13576         * tests/test-duplocale.c: New file.
13577
13578         New module 'duplocale'.
13579         * m4/duplocale.m4: New file.
13580         * lib/locale.in.h (duplocale): New declaration.
13581         * lib/duplocale.c: New file.
13582         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
13583         gl_LOCALE_H_DEFAULTS): New macros.
13584         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
13585         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
13586         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
13587         REPLACE_DUPLOCALE.
13588         * modules/duplocale: New file.
13589         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
13590
13591 2009-11-22  Bruno Haible  <bruno@clisp.org>
13592
13593         * modules/locale-tests (configure.ac): Test for newlocale function.
13594         * tests/test-locale.c: When the system has extended locale functions,
13595         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
13596
13597         locale: Make locale_t available when possible.
13598         * lib/locale.in.h: Include <xlocale.h> when it exists.
13599         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
13600         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
13601         * modules/locale (Depends-on): Add extensions.
13602         (Makefile.am): Also substitute HAVE_XLOCALE_H.
13603         * doc/posix-headers/locale.texi: Document the problem with locale_t.
13604
13605 2009-11-22  Bruno Haible  <bruno@clisp.org>
13606
13607         Add comments.
13608         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
13609         invocation.
13610         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
13611         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
13612         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
13613
13614 2009-11-22  Bruno Haible  <bruno@clisp.org>
13615
13616         error: account for the possibility of freopen (stdout).
13617         * lib/error.c: Include <unistd.h>.
13618         (flush_stdout): New function, extracted from error and error_at_line.
13619         Determine stdout's fd dynamically.
13620         (error, error_at_line): Invoke flush_stdout.
13621         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
13622         * modules/error (Depends-on): Add unistd.
13623
13624 2009-11-22  Bruno Haible  <bruno@clisp.org>
13625
13626         diffseq: Add comment.
13627         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
13628
13629 2009-11-22  Jim Meyering  <meyering@redhat.com>
13630
13631         c-stack: avoid defining an unused static function
13632         * lib/c-stack.c (find_stack_direction): Do not define this function
13633         when it will not be used.
13634
13635         diffseq: avoid spurious gcc warnings
13636         * lib/diffseq.h (IF_LINT2): Define.
13637         (compareseq): Use it to initialize two members of "part".
13638         This avoids two used-uninitialized warnings.
13639
13640 2009-11-21  Jim Meyering  <meyering@redhat.com>
13641
13642         c-stack: avoid "ignoring return value of `write'" warning
13643         * lib/c-stack.c: Include "ignore-value.h".
13644         (die): Explicitly ignore each write return value.
13645         * modules/c-stack (Depends-on): Add ignore-value.
13646
13647 2009-11-21  Bruno Haible  <bruno@clisp.org>
13648
13649         diffseq: reduce scope of variable 'best'.
13650         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
13651         variable, earlier used for two different purposes.
13652
13653 2009-11-21  Jim Meyering  <meyering@redhat.com>
13654
13655         diffseq: remove useless assignment to "best"
13656         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
13657         assignment.  At that point "best" is already guaranteed to be zero.
13658
13659 2009-11-20  Eric Blake  <ebb9@byu.net>
13660
13661         build: mention ftp redirector in release announcements
13662         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
13663         values that used to come from cfg.mk; mention FTP redirect URL.
13664         * build-aux/announce-gen: Mention the mirror list.
13665         Suggested by Karl Berry.
13666
13667         nanosleep: improve port to mingw
13668         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
13669         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
13670         LIB_NANOSLEEP, but only when needed.
13671         * modules/select (Link): Document LIBSOCKET.
13672         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
13673         enough.
13674
13675         nanosleep: work around cygwin bug
13676         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
13677         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
13678         bug.
13679         (getnow): Delete, not needed.
13680         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
13681         LIB_CLOCK_GETTIME.
13682         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
13683         clock-time, gettime.
13684         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
13685         bug.
13686         * modules/nanosleep-tests: New test.
13687         * tests/test-nanosleep.c: New file.
13688
13689         sleep: work around cygwin bug
13690         * lib/sleep.c (rpl_sleep): Work around the bug.
13691         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
13692         (gl_PREREQ_SLEEP): Delete unused macro.
13693         * modules/sleep (Depends-on): Add verify.
13694         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
13695         * modules/unistd (Makefile.am): Substitute witness.
13696         * lib/unistd.in.h (sleep): Update prototype.
13697         * doc/posix-functions/sleep.texi (sleep): Document the bug.
13698         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
13699         * modules/sleep-tests (Depends-on): Check for alarm.
13700
13701 2009-11-20  Jim Meyering  <meyering@redhat.com>
13702
13703         maint.mk: improve sc_prohibit_magic_number_exit
13704         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
13705         so it does not match uses like System.exit(1).
13706         Add comments showing how to correct all offenders.
13707
13708 2009-11-19  Eric Blake  <ebb9@byu.net>
13709
13710         xalloc-die-tests: add missing library
13711         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
13712
13713         test-xvasprintf: silence compiler warnings
13714         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
13715         empty string from gcc.
13716
13717 2009-11-19  Jim Meyering  <meyering@redhat.com>
13718
13719         xfreopen: new module, from coreutils
13720         * modules/xfreopen: New module.
13721         * lib/xfreopen.c: New file.
13722         * lib/xfreopen.h: New file.
13723         * MODULES.html.sh (File stream based Input/Output"): Add it.
13724
13725 2009-11-19  Eric Blake  <ebb9@byu.net>
13726
13727         manywarnings: depend on warnings
13728         * modules/manywarnings (Depends-on): Add warnings.
13729
13730         build: avoid compiler warnings
13731         * lib/select.c (rpl_select): Delete unused variable.
13732         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
13733
13734 2009-11-18  Eric Blake  <ebb9@byu.net>
13735
13736         tests: avoid false negative with --with-packager
13737         * tests/test-version-etc.sh: Discard packager information.
13738         * tests/test-argp-version-etc-1.sh: Likewise.
13739         Reported by Mike Frysinger.
13740
13741         utimens: fix regression on Solaris
13742         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
13743         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
13744         can only change fd timestamps via futimesat.  Instead, use an
13745         additional witness macro to avoid BSD bug.
13746         Reported by Jim Meyering.
13747
13748 2009-11-17  Eric Blake  <ebb9@byu.net>
13749
13750         usleep: use it to simplify tests
13751         * modules/stat-time-tests (Depends-on): Add usleep.
13752         (configure.ac): Drop usleep check.
13753         * modules/chown-tests (Depends-on, configure.ac): Likewise.
13754         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
13755         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
13756         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
13757         * modules/openat-tests (Depends-on, configure.ac): Likewise.
13758         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
13759         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
13760         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
13761         Likewise.
13762         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
13763         * tests/test-lchown.h (nap): Likewise.
13764         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
13765         * tests/test-stat-time.c (nap): Likewise.
13766         * tests/test-utimens-common.h (nap): Update comments.
13767
13768         usleep: new module
13769         * modules/usleep: New file.
13770         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
13771         * lib/usleep.c (usleep): Likewise.
13772         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
13773         * modules/unistd (Makefile.am): Substitute witnesses.
13774         * lib/unistd.in.h (usleep): Add declaration.
13775         * doc/pastposix-functions/usleep.texi (usleep): Document this.
13776         * MODULES.html.sh (Date and time): Likewise.
13777         * modules/usleep-tests (Depends-on): New test.
13778         * tests/test-usleep.c: New file.
13779
13780         chown: work around OpenBSD bug
13781         * lib/chown.c (rpl_chown): Work around the bug.
13782         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
13783         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
13784         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
13785         * modules/chown (Depends-on): Add stdbool.
13786         * modules/lchown (Depends-on): Likewise.
13787         * doc/posix-functions/chown.texi (chown): Document the bug.
13788         * doc/posix-functions/lchown.texi (lchown): Likewise.
13789         * tests/test-lchown.h (test_chown): Relax test.
13790
13791         mkstemp: avoid conflict with C++ keyword template
13792         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
13793         * lib/mkostemp.c (mkostemp): Likewise.
13794         * lib/mkostemps.c (mkostemps): Likewise.
13795         * lib/mkstemp.c (mkstemp): Likewise.
13796         * lib/mkstemps.c (mkstemps): Likewise.
13797
13798         xalloc-die-tests: optimize
13799         * tests/test-xalloc-die.sh: Reduce number of processes.
13800
13801 2009-11-17  Simon Josefsson  <simon@josefsson.org>
13802
13803         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
13804         patch from ludo@gnu.org (Ludovic Courtès).
13805
13806 2009-11-17  Jim Meyering  <meyering@redhat.com>
13807
13808         version-etc: use proper license string
13809         * modules/version-etc (License): Use LGPL, not LGPLv3+.
13810         * modules/version-etc-fsf: Likewise.
13811
13812 2009-11-17  Simon Josefsson  <simon@josefsson.org>
13813
13814         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
13815         printed to stdout.  Deal with EOL differences.
13816
13817 2009-11-17  Eric Blake  <ebb9@byu.net>
13818
13819         unsetenv: work around Solaris bug
13820         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
13821         * lib/unsetenv.c (rpl_unsetenv): Work around it.
13822         Reported by Jim Meyering.
13823
13824         vasnprintf: avoid compiler warnings
13825         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
13826         variables.
13827         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
13828
13829 2009-11-17  Simon Josefsson  <simon@josefsson.org>
13830
13831         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
13832         settings since xalloc-die is no longer the self test,
13833         xalloc-die.sh is.
13834
13835 2009-11-17  Jim Meyering  <meyering@redhat.com>
13836
13837         test-xalloc-die.sh: make the code agree with the commit log
13838         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
13839         at the end, just in case you happen to have a test-xalloc-die
13840         program in some other PATH directory.
13841
13842         test-xalloc-die.sh: fix a portability bug
13843         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
13844         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
13845         Otherwise, argv[0] (as often seen in diagnostics) would be too
13846         system-dependent, sometimes with, and sometimes without the leading "./".
13847
13848         version-etc-fsf: relax license to LGPLv3+
13849         * modules/version-etc-fsf (License): Relax license.
13850
13851 2009-11-16  Eric Blake  <ebb9@byu.net>
13852
13853         xalloc-die-tests: avoid printing null pointer
13854         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
13855         shell script.
13856         * tests/test-xalloc-die.c (program_name): Declare.
13857         * tests/test-xalloc-die.sh (tmpfiles): New file.
13858
13859         setenv, unsetenv: work around various bugs
13860         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
13861         (setenv) [HAVE_SETENV]: Work around bugs.
13862         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
13863         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
13864         for bugs.
13865         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
13866         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
13867         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
13868         * modules/stdlib (Makefile.am): Update substitutions.
13869         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
13870         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
13871         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
13872         * modules/setenv-tests: New test.
13873         * modules/unsetenv-tests: Likewise.
13874         * tests/test-setenv.c: New file.
13875         * tests/test-unsetenv.c: Likewise.
13876
13877 2009-11-16  Jim Meyering  <meyering@redhat.com>
13878
13879         version-etc: relax license to LGPLv3+
13880         * modules/version-etc (License): Relax license.
13881
13882         better AC_REQUIRE expanded-before-required-warning avoidance
13883         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
13884         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
13885         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
13886         which is no longer needed.
13887
13888 2009-11-16  Eric Blake  <ebb9@byu.net>
13889
13890         test-freading: clean up temporary file
13891         * tests/test-freading.c (main): Remove file on success, and use
13892         ASSERT more liberally.
13893         Reported by Jim Meyering.
13894
13895 2009-11-16  Jim Meyering  <meyering@redhat.com>
13896
13897         avoid new AC_REQUIRE expanded-before-required warnings
13898         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
13899         merely using it.
13900         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
13901         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
13902
13903 2009-11-15  Simon Josefsson  <simon@josefsson.org>
13904
13905         * tests/test-xalloc-die.c: New file.
13906         * modules/xalloc-die-tests: New file.
13907         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
13908         XFAIL_TESTS so it can be appended by modules.
13909
13910 2009-11-15  Simon Josefsson  <simon@josefsson.org>
13911
13912         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
13913         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
13914
13915 2009-11-14  Eric Blake  <ebb9@byu.net>
13916
13917         fnmatch: avoid compiler warning
13918         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
13919         to silence compiler warning about mismatch signedness in ?:.
13920         Reported by Robert Millan.
13921
13922         intprops: add double-inclusion guard
13923         * lib/intprops.h: Allow idempotent includes.
13924         Suggested by Bruce Korb.
13925
13926         openat: detect Solaris fchownat bug
13927         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
13928         penalizing glibc chownat when only lchownat is broken.
13929         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
13930         trailing slash bugs.
13931         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
13932         * modules/openat-tests (Files): Include more files.
13933         (Depends-on): Add mgetgroups, sleep, stat-time.
13934         (configure.ac): Add additional checks.
13935         (Makefile.am): Build new test.
13936         * tests/test-fchownat.c: New file.
13937
13938         lchown: detect Solaris and FreeBSD bug
13939         * lib/lchown.c (rpl_lchown): Work around bug.
13940         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
13941         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13942         * modules/unistd (Makefile.am): Populate it.
13943         * lib/unistd.in.h (lchown): Update declaration.
13944         * doc/posix-functions/lchown.texi (lchown): Document the bug.
13945         * modules/lchown-tests: New file.
13946         * tests/test-lchown.h (test_lchown): Likewise.
13947         * tests/test-lchown.c (main): Likewise.
13948
13949         chown: detect Solaris and FreeBSD bug
13950         * lib/chown.c (rpl_chown): Work around bug.
13951         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
13952         (gl_PREREQ_CHOWN): Delete.
13953         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13954         * modules/unistd (Makefile.am): Populate it.
13955         * lib/unistd.in.h (chown): Update declaration.
13956         * lib/lchown.c (chown): Update client.
13957         * modules/lchown (Depends-on): Add lstat.
13958         * doc/posix-functions/chown.texi (chown): Document the bug.
13959         * doc/posix-functions/getgroups.texi (getgroups): Document
13960         getgroups pitfall.
13961         * modules/chown-tests: New file.
13962         * tests/test-chown.h (test_chown): Likewise.
13963         * tests/test-chown.c (main): Likewise.
13964
13965 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
13966
13967         gnulib-tool: correctly detect absence of m4 directories
13968         * gnulib-tool: Avoid extra newline on data passed to wc -l.
13969
13970 2009-11-14  Jim Meyering  <meyering@redhat.com>
13971
13972         maint.mk: Prohibit inclusion of "xalloc.h" without use.
13973         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
13974
13975 2009-11-14  John W. Eaton  <jwe@gnu.org>
13976
13977         strftime.h: wrap funtion declaration in extern "C" block
13978         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
13979
13980 2009-11-13  Eric Blake  <ebb9@byu.net>
13981
13982         getgroups: avoid compiler warning
13983         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
13984
13985         getgroups: work around FreeBSD bug
13986         * lib/getgroups.c (rpl_getgroups): Work around the bug.
13987         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
13988         * doc/posix-functions/getgroups.texi (getgroups): Document it.
13989         * tests/test-getgroups.c (main): Fix buffer overrun.
13990
13991         getgroups: avoid compilation failure
13992         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
13993         * modules/getgroups (Depends-on): Add stdint.
13994
13995 2009-11-13  Jim Meyering  <meyering@redhat.com>
13996
13997         test-getgroups: avoid compilation failure
13998         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
13999
14000 2009-11-13  Eric Blake  <ebb9@byu.net>
14001
14002         mgetgroups: new module, taken from coreutils
14003         * modules/mgetgroups: New file.
14004         * lib/mgetgroups.h: Likewise.
14005         * lib/mgetgroups.c (mgetgroups): Likewise.
14006         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
14007         * MODULES.html.sh (Users and groups): Mention it.
14008
14009         getgroups: don't expose GETGROUPS_T to user
14010         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
14011         an element at a time if GETGROUPS_T is wrong size.
14012         * lib/getugroups.h (getugroups): Change signature.
14013         * lib/unistd.in.h (getgroups): Likewise.
14014         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
14015         signature needs fixing.
14016         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
14017         AC_TYPE_GETGROUPS.
14018         * modules/group-member (Depends-on): Add getgroups.
14019         * lib/group-member.c (group_info, get_group_info): Use gid_t.
14020         (group_member): Rely on getgroups replacement.
14021         * lib/getugroups.c (getugroups): Use gid_t.
14022         * tests/test-getgroups.c (main): Likewise.
14023         * NEWS: Mention the signature change.
14024         * doc/posix-functions/getgroups.texi (getgroups): Mention the
14025         problem with signature.
14026         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
14027         GETGROUPS_T is still useful for setgroups.
14028
14029         getgroups, getugroups: provide stubs for mingw
14030         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
14031         * lib/getugroups.c (getugroups): Likewise.
14032         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
14033         function.  Modernize replacement scheme.
14034         (gl_PREREQ_GETGROUPS): Delete.
14035         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
14036         * modules/getgroups (configure.ac): Declare witness.
14037         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
14038         * modules/unistd (Depends-on): Substitute witness.
14039         * lib/unistd.in.h (getgroups): Declare replacement.
14040
14041         getgroups: avoid calling exit
14042         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
14043         drop xalloc.
14044         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
14045         dependencies.
14046         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
14047         exiting, in the rare case of malloc failure.
14048
14049         getgroups: fix logic error
14050         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
14051         has more than 20 groups.
14052         * modules/getgroups-tests: New test.
14053         * tests/test-getgroups.c: New file.
14054
14055 2009-11-13  Simon Josefsson  <simon@josefsson.org>
14056
14057         * tests/test-base64.c: Improve.
14058
14059 2009-11-13  Simon Josefsson  <simon@josefsson.org>
14060
14061         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
14062         Blake <ebb9@byu.net>.
14063
14064 2009-11-13  Simon Josefsson  <simon@josefsson.org>
14065
14066         * tests/test-xvasprintf.c: Add %s%s related checks.
14067
14068 2009-11-12  Eric Blake  <ebb9@byu.net>
14069
14070         version-etc: match standards.texi style
14071         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
14072         and use <> only for URLs.
14073
14074 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
14075
14076         fts: do not fail on a submount during traversal
14077         * lib/fts.c (fts_build): Read the stat info again after opening
14078         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
14079         Original report at http://bugzilla.redhat.com/501848.
14080
14081 2009-11-12  Jim Meyering  <meyering@redhat.com>
14082
14083         bootstrap: sync from coreutils
14084         * build-aux/bootstrap (bootstrap_epilogue): New function.
14085         Use git_modules_config in one more place.  This make bootstrap's
14086         --gnulib-srcdir option more useful for testing.
14087
14088         bootstrap: generalize autoheader check
14089         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
14090         AC_CONFIG_HEADERS.
14091
14092 2009-11-11  Eric Blake  <ebb9@byu.net>
14093
14094         mkfifoat: use new modules for Solaris and BSD bugs
14095         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
14096         * lib/mkfifoat.c (mknodat): Split...
14097         * lib/mknodat.c (mknodat): ...into new file.
14098         * modules/mkfifoat (Files): Ship new file.
14099         (Depends-on): Add mkfifo, mknod.
14100         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
14101         (Depends-on): Add symlink.
14102         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
14103         redundant with test_mkfifo.h.
14104         (do_mkfifoat, do_mknodat): New helpers.
14105
14106         mknod: new module
14107         * modules/mknod: New file.
14108         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
14109         * lib/mknod.c (mknod): Likewise.
14110         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
14111         defaults.
14112         * modules/sys_stat (Makefile.am): Substitute them.
14113         * lib/sys_stat.in.h (mknod): Declare replacement.
14114         * MODULES.html.sh (Support for systems lacking POSIX:2008):
14115         Document it.
14116         * doc/posix-functions/mknod.texi (mknod): Likewise.
14117         * modules/mknod-tests: New test.
14118         * tests/test-mknod.c: Likewise.
14119
14120         mkfifo: new module
14121         * modules/mkfifo: New file.
14122         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
14123         * lib/mkfifo.c (mkfifo): Likewise.
14124         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
14125         defaults.
14126         * modules/sys_stat (Makefile.am): Substitute them.
14127         * lib/sys_stat.in.h (mkfifo): Declare replacement.
14128         * MODULES.html.sh (Support for systems lacking POSIX:2008):
14129         Document it.
14130         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
14131         * modules/mkfifo-tests: New test.
14132         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
14133         from test-mkfifoat.c.
14134         * tests/test-mkfifo.c: New file.
14135
14136         readlink: detect FreeBSD bug
14137         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
14138         slash on symlink.
14139         * doc/posix-functions/readlink.texi (readlink): Document the bug.
14140         * tests/test-readlink.h (test_readlink): Enhance test.
14141
14142         symlink: detect FreeBSD bug
14143         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
14144         slash on symlink.
14145         * doc/posix-functions/symlink.texi (symlink): Document the bug.
14146         * tests/test-symlink.h (test_symlink): Enhance test.
14147
14148 2009-11-10  Eric Blake  <ebb9@byu.net>
14149
14150         link: detect FreeBSD bug
14151         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
14152         symlink.
14153         * doc/posix-functions/link.texi (link): Document the bug.
14154         * tests/test-link.h (test_link): Enhance test.
14155         * tests/test-linkat.c (main): Update caller.
14156
14157         unlink, remove: detect FreeBSD bug
14158         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
14159         slash on symlink.
14160         * doc/posix-functions/unlink.texi (unlink): Document the bug.
14161         * doc/posix-functions/remove.texi (remove): Likewise.
14162         * tests/test-unlink.h (test_unlink): Enhance test.
14163         * tests/test-remove.c (main): Likewise.
14164
14165 2009-11-09  Eric Blake  <ebb9@byu.net>
14166
14167         rename: detect FreeBSD bug
14168         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
14169         slash on symlink.
14170         * modules/renameat-tests (Depends-on): Add filenamecat.
14171         * tests/test-rename.h (test_rename): Allow one more errno.
14172         * tests/test-renameat.c (main): Likewise.
14173         * doc/posix-functions/rename.texi (rename): Document the bug.
14174
14175         open: detect FreeBSD bug
14176         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
14177         symlink.
14178         * doc/posix-functions/open.texi (open): Document the bug.
14179         * doc/posix-functions/utimes.texi (utimes): Likewise.
14180         * tests/test-open.h (test_open): Add parameters, and test symlink
14181         handling.
14182         * tests/test-open.c (main): Adjust caller.
14183         * tests/test-fcntl-safer.c (main): Likewise.
14184         * modules/open-tests (Depends-on): Add stdbool, symlink.
14185         * modules/fcntl-safer-tests (Depends-on): Likewise.
14186         * tests/test-openat.c (main): Add test-open tests.
14187
14188         stat: detect FreeBSD bug
14189         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
14190         symlink.
14191         * doc/posix-functions/stat.texi (stat): Document the bug.
14192         * tests/test-stat.h (test_stat_func): Add argument.
14193         * tests/test-stat.c (main): Adjust caller.
14194         * tests/test-fstatat.c (main): Likewise.
14195         * modules/stat-tests (Depends-on): Add stdbool, symlink.
14196         Reported by Jim Meyering.
14197
14198 2009-11-09  James Youngman  <jay@gnu.org>
14199
14200         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
14201         * lib/strftime.c: Correct placement of #include "ignore-value.h".
14202
14203 2009-11-08  Jim Meyering  <meyering@redhat.com>
14204
14205         utimens: remove invalid futimesat call
14206         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
14207         It used the file descriptor of the target file as the DIR_FD
14208         parameter and NULL as the file name.  That caused failure with
14209         errno == EFAULT on FreeBSD-8.0-rc2
14210
14211 2009-11-07  Eric Blake  <ebb9@byu.net>
14212
14213         fflush, freadseek: use fseeko, not fseek
14214         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
14215         (clear_ungetc_buffer): Avoid potential problems on large files.
14216         * lib/freadseek.c (freadseek): Likewise.
14217         * modules/freadseek (Depends-on): Add fseeko.
14218         * modules/fseek (configure.ac): Set a witness.
14219         * tests/test-fflush.c (main): Use fseeko.
14220         * tests/test-fpurge.c (fseek): Disable link warning.
14221         * tests/test-freadable.c (fseek): Likewise.
14222         * tests/test-freading.c (fseek): Likewise.
14223         * tests/test-fseeko.c (fseek): Likewise.
14224         * tests/test-ftell.c (fseek): Likewise.
14225         * tests/test-ftello.c (fseek): Likewise.
14226         * tests/test-fwritable.c (fseek): Likewise.
14227         * tests/test-fwriting.c (fseek): Likewise.
14228
14229 2009-11-06  Simon Josefsson  <simon@josefsson.org>
14230
14231         * modules/memchr (Depends-on): Drop getpagesize dependency.
14232
14233 2009-11-06  Simon Josefsson  <simon@josefsson.org>
14234
14235         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
14236         Reported by Ludovic Courtès.
14237         * build-aux/pmccabe2html: Improve example usage.
14238         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
14239
14240 2009-11-06  Jim Meyering  <meyering@redhat.com>
14241
14242         do-release-commit-and-tag: New module.
14243         Automate the release-commit and tag process.
14244         * build-aux/do-release-commit-and-tag: New script, from coreutils.
14245         * modules/do-release-commit-and-tag: New file.
14246         * MODULES.html.sh (Support for maintaining and releasing): Add it.
14247
14248 2009-11-06  Simon Josefsson  <simon@josefsson.org>
14249
14250         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
14251         because test-select.c uses inet_pton.
14252
14253 2009-11-06  Simon Josefsson  <simon@josefsson.org>
14254
14255         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
14256         GETADDRINFO_LIB.  Bump serial number.
14257         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
14258         Suggested by Eric Blake <ebb9@byu.net>.
14259
14260 2009-11-05  Eric Blake  <ebb9@byu.net>
14261
14262         strtod: detect darwin bug
14263         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
14264         Reported by Leo Davis.
14265
14266         freopen-safer: new module
14267         * modules/freopen-safer: New module.
14268         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
14269         * lib/freopen-safer.c (freopen_safer): New file.
14270         * lib/stdio-safer.h (freopen_safer): New declaration.
14271         * lib/stdio--.h (freopen): New override.
14272         * MODULES.html.sh (File stream based Input/Output): Mention it.
14273         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
14274         freopen-safer module.
14275         * doc/posix-functions/stderr.texi (stderr): Likewise.
14276         * doc/posix-functions/stdin.texi (stdin): Likewise.
14277         * doc/posix-functions/stdout.texi (stdout): Likewise.
14278         * modules/freopen-safer-tests: New test.
14279         * tests/test-reopen-safer.c: New file.
14280
14281 2009-11-05  Jim Meyering  <meyering@redhat.com>
14282
14283         maint.mk: Prohibit inclusion of "close-stream.h" without use.
14284         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
14285
14286 2009-11-05  Simon Josefsson  <simon@josefsson.org>
14287
14288         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
14289
14290 2009-11-05  Simon Josefsson  <simon@josefsson.org>
14291
14292         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
14293
14294 2009-11-05  Simon Josefsson  <simon@josefsson.org>
14295
14296         Fix link error.
14297         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
14298         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
14299
14300 2009-11-05  Simon Josefsson  <simon@josefsson.org>
14301
14302         * tests/test-func.c: Also test value of __func__.
14303
14304 2009-11-05  Simon Josefsson  <simon@josefsson.org>
14305
14306         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
14307         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
14308
14309 2009-11-05  Bruno Haible  <bruno@clisp.org>
14310
14311         Fix link error.
14312         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
14313         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
14314         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
14315
14316 2009-11-05  Bruno Haible  <bruno@clisp.org>
14317
14318         Tests for module 'inet_pton'.
14319         * modules/inet_pton-tests: New file.
14320         * tests/test-inet_pton.c: New file.
14321
14322 2009-11-05  Bruno Haible  <bruno@clisp.org>
14323
14324         Tests for module 'inet_ntop'.
14325         * modules/inet_ntop-tests: New file.
14326         * tests/test-inet_ntop.c: New file.
14327
14328 2009-11-04  Eric Blake  <ebb9@byu.net>
14329
14330         stdlib-safer: wrap all mkstemp variants
14331         * modules/mkostemp (configure.ac): Set witness.
14332         * modules/mkostemps (configure.ac): Likewise.
14333         * modules/mkstemps (configure.ac): Likewise.
14334         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
14335         (mkstemps_safer): Wrap more functions.
14336         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
14337         wrapping.
14338         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
14339         (mkstemps_safer): Implement the wrappers.
14340
14341         mkstemps, mkostemps: new modules
14342         * modules/mkostemps: New module.
14343         * modules/mkstemps: Likewise.
14344         * lib/mkostemps.c (mkostemps): New file.
14345         * lib/mkstemps.c (mkstemps): Likewise.
14346         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
14347         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
14348         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
14349         * modules/stdlib (Makefile.am): Substitute them.
14350         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
14351         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
14352         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
14353         * doc/gnulib.texi (Glibc stdlib.h): Include them.
14354         * MODULES.html.sh (File system functions): Mention them.
14355
14356         tempname: resync from glibc
14357         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
14358         same values for __GT_FILE as glibc.  Abort even when assertions
14359         are disabled.
14360         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
14361         match its value otherwise.  Allow idempotent inclusion.
14362         * lib/mkdtemp.c (mkdtemp): Adjust caller.
14363         * lib/mkostemp.c (mkostemp): Likewise.
14364         * lib/mkstemp.c (mkstemp): Likewise.
14365         * lib/tmpfile.c (tmpfile): Likewise.
14366         * NEWS: Document this.
14367
14368         utimens: fix use of futimens on older Linux
14369         * lib/utimens.c (fdutimens): Use updated, rather than original,
14370         timespec to avoid bug in older Linux kernel.
14371         Reported by Simon Josefsson.
14372
14373 2009-11-04  Bruno Haible  <bruno@clisp.org>
14374
14375         Make num_processors more flexible and consistent.
14376         * lib/nproc.h (enum nproc_query): New type.
14377         (num_processors): Add a 'query' argument.
14378         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
14379         (num_processors): Add a 'query' argument. Test the value of the
14380         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
14381         mingw, count the number of CPUs available for the current process.
14382         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
14383         Check for sched_getaffinity and sched_getaffinity_np.
14384         * modules/nproc (Depends-on): Add c-ctype, extensions.
14385         * NEWS: Mention the change.
14386
14387 2009-11-03  Bruno Haible  <bruno@clisp.org>
14388
14389         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
14390
14391 2009-11-03  Jim Meyering  <meyering@redhat.com>
14392
14393         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
14394         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
14395         if it is defined.
14396
14397 2009-11-02  Eric Blake  <ebb9@byu.net>
14398
14399         mktime, timegm: share common declaration
14400         * lib/mktime-internal.h: New file.
14401         * lib/mktime.c: Use it rather than open-coding a declaration.
14402         * lib/timegm.c: Likewise.
14403         * modules/mktime (Files): Ship it.
14404         * modules/timegm (Files): Likewise.
14405         Suggested by Bruno Haible.
14406
14407         test-update-copyright: update test to match script changes
14408         * tests/test-update-copyright.sh: Avoid hard-coding perl
14409         location.  Don't update *.bak created by earlier runs.
14410
14411 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
14412             Simon Josefsson  <simon@josefsson.org>
14413             Bruno Haible  <bruno@clisp.org>
14414
14415         Fix link error on Solaris 8.
14416         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
14417         also in libnsl. Define also INET_PTON_LIB.
14418         * modules/inet_pton (Link): New section.
14419
14420 2009-11-02  Simon Josefsson  <simon@josefsson.org>
14421             Bruno Haible  <bruno@clisp.org>
14422
14423         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
14424         * modules/inet_ntop (Link): New section.
14425         Reported by Boyan Kasarov <bkasarov@gmail.com>.
14426
14427 2009-11-02  Eric Blake  <ebb9@byu.net>
14428
14429         maint: avoid compiler warnings in m4 macros
14430         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
14431         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
14432
14433 2009-11-02  Simon Josefsson  <simon@josefsson.org>
14434
14435         * m4/pmccabe2html.m4: Remove file.
14436         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
14437         function.  Change maintainer.
14438         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
14439         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
14440         Courtès).
14441
14442 2009-10-31  Eric Blake  <ebb9@byu.net>
14443
14444         fseeko: fix m4 regression
14445         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
14446         regression from 2009-10-27.
14447         Reported by Ralf Wildenhues.
14448
14449 2009-10-31  Jim Meyering  <meyering@redhat.com>
14450
14451         inttostr: aesthetics and improved (compile-time) safety
14452         Define inttype_is_signed rather than inttype_is_unsigned,
14453         since the sole use is via "#if inttype_is_signed".
14454         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
14455         inttype_is_unsigned.
14456         * lib/offtostr.c (inttype_is_signed): Likewise.
14457         * lib/uinttostr.c (inttype_is_signed): Likewise.
14458         * lib/umaxtostr.c (inttype_is_signed): Likewise.
14459         * lib/inttostr.c (inttostr): Use verify to cross-check the
14460         inttype_is_signed value and the signedness of the actual type.
14461         * modules/inttostr (Depends-on): Add verify.
14462
14463 2009-10-30  Eric Blake  <ebb9@byu.net>
14464
14465         build: avoid compiler warnings
14466         * lib/fchmodat.c (lchmod): Mark unused variables.
14467         * lib/getopt.c (_getopt_initialize): Likewise.
14468         * lib/mktime.c (__mktime_internal): Provide prototype.
14469         * lib/inttostr.c (inttostr): Avoid compiler warning even with
14470         older gcc that do not understand #pragma GCC diagnostic.
14471         * lib/uinttostr.c (inttype_is_unsigned): Define.
14472         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
14473
14474 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
14475
14476         stat: fix compilation on AIX
14477         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
14478         only see struct stat64.
14479
14480 2009-10-30  Eric Blake  <ebb9@byu.net>
14481
14482         exclude: make more robust
14483         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
14484         rather than masking a coding bug.
14485         Suggested by Bruno Haible.
14486
14487 2009-10-30  Jim Meyering  <meyering@redhat.com>
14488
14489         perl scripts: remove #!/usr/bin/perl in favor of more portable...
14490         Rather than putting #!/usr/bin/perl on the first line,
14491         start with a variant of what's recommended by "man perlrun" that
14492         invokes the first "perl" program from your shell's search path.
14493         * build-aux/gitlog-to-changelog: Replace #!... as above.
14494         Add a "Local Variables" perl mode setting.
14495         Prompted by a patch from Ludovic Courtès.
14496         Improved by Eric Blake.
14497         * build-aux/useless-if-before-free: Likewise.
14498         * build-aux/announce-gen: Likewise.
14499         * build-aux/update-copyright: Likewise.
14500
14501 2009-10-29  Eric Blake  <ebb9@byu.net>
14502
14503         filenamecat-lgpl: adjust clients
14504         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
14505         filenamecat.
14506         * modules/renameat (Depends-on): Likewise.
14507
14508         filenamecat: split into filenamecat-lgpl
14509         * modules/filenamecat-lgpl: New module.
14510         * modules/filenamecat (Files): Move library-safe files into
14511         filenamecat-lgpl.
14512         (Depends-on): Add filenamecat-lgpl.
14513         (configure.ac): Declare witness.
14514         * lib/filenamecat.h (file_name_concat): Only declare when using
14515         GPL module.
14516         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
14517         Move...
14518         * lib/filenamecat-lgpl.c: ...into new file.
14519         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
14520         (gl_FILE_NAME_CONCAT): Use it.
14521         * MODULES.html.sh (File system functions): Mention new module.
14522
14523         argp: avoid memory leak
14524         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
14525         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
14526         base_name, since the latter malloc()s and can call exit().
14527         Leak introduced 2006-07-03.
14528
14529         dirname-lgpl: adjust clients that don't need full dirname
14530         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
14531         * modules/filenamecat (Depends-on): Likewise.
14532         * modules/linkat (Depends-on): Likewise.
14533         * modules/mkancesdirs (Depends-on): Likewise.
14534         * modules/mkdir (Depends-on): Likewise.
14535         * modules/openat (Depends-on): Likewise.
14536         * modules/savewd (Depends-on): Likewise.
14537         * modules/rename (Depends-on): Likewise.
14538         (License): Relax license.
14539         * modules/mkdir-tests (Depends-on): Drop progname.
14540         (Makefile.am): Delete unneeded LDADD.
14541         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
14542
14543         dirname: split into dirname-lgpl
14544         * modules/dirname-lgpl: New module.
14545         * modules/dirname (Files): Move library-safe files into
14546         dirname-lgpl.
14547         (Depends-on): Add dirname-lgpl.
14548         (configure.ac): Declare witness.
14549         * modules/double-slash-root (License): Relax license.
14550         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
14551         module.
14552         * lib/dirname.c (dir_len, mdir_name): Move...
14553         * lib/dirname-lgpl.c: ...into new file.
14554         * lib/basename.c (last_component, base_len): Move...
14555         * lib/basename-lgpl.c: ...into new file.
14556         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
14557         (gl_DIRNAME): Use it.
14558         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
14559         Mention new module.
14560         * modules/dirname-tests (Depends-on): Add progname.
14561         * tests/test-dirname.c (program_name): Delete.
14562
14563         mkdir: make safe for libraries
14564         * modules/mkdir (Depends-on): Drop xalloc.
14565         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
14566         exit.
14567
14568         tests: avoid some compiler warnings
14569         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
14570         literals.
14571         * tests/test-memchr.c (main): Avoid type mismatch.
14572         * tests/test-arpa_inet.c (main): Avoid unused parameters.
14573         * tests/test-base64.c (main): Likewise.
14574         * tests/test-getdelim.c (main): Likewise.
14575         * tests/test-gethostname.c (main): Likewise.
14576         * tests/test-getline.c (main): Likewise.
14577         * tests/test-netinet_in.c (main): Likewise.
14578         * tests/test-select.c (open_server_socket, main): Likewise.
14579         * tests/test-select-stdin.c (main): Likewise.
14580         * tests/test-sockets.c (main): Likewise.
14581         * tests/test-strsignal.c (main): Likewise.
14582         * tests/test-sys_select.c (main): Likewise.
14583         * tests/test-sys_socket.c (main): Likewise.
14584         * tests/test-u64.c (main): Likewise.
14585         * tests/test-xfprintf-posix.c (main): Likewise.
14586         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
14587
14588         sockets: avoid compiler warning
14589         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
14590
14591         maint: detect usage(1) and other suspicious exits
14592         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
14593
14594 2009-10-29  Jim Meyering  <meyering@redhat.com>
14595
14596         timespec: long-to-int truncation could make timespec_cmp malfunction
14597         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
14598         a multiple of 2^32 nanoseconds as no difference.
14599
14600 2009-10-28  Jim Meyering  <meyering@redhat.com>
14601
14602         fprintftime: wrap macro code argument in "do {...} while(0)"
14603         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
14604         cpy macro must be a statement that can be followed by a semicolon.
14605         Now that the else clause contains a comment and is hence longer
14606         than one line, I require curly braces.  That in turn requires
14607         that we wrap this code block in the standard do...while(0).
14608
14609         fprintftime: remove stray semicolon from previous change
14610         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
14611
14612         fprintftime: avoid a warning about ignored fwrite return value
14613         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
14614         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
14615         that is unsafe.
14616         * modules/fprintftime (Depends-on): Add ignore-value.
14617
14618         exclude: avoid an unwarranted warning
14619         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
14620
14621 2009-10-27  Eric Blake  <ebb9@byu.net>
14622
14623         fseek: avoid compilation failure when fflush is replaced
14624         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
14625         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
14626         module is in use.
14627         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
14628         module is not in use; since REPLACE_FSEEK worked otherwise.
14629         (GNULIB_FTELLO): Likewise for ftell.
14630         Reported by Ian Beckwith and others.
14631
14632 2009-10-27  Bruno Haible  <bruno@clisp.org>
14633
14634         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
14635         Reported by Jim Meyering.
14636
14637 2009-10-27  Jim Meyering  <jim@meyering.net>
14638             Bruno Haible  <bruno@clisp.org>
14639
14640         Avoid warning despite dropping the return value of fwrite.
14641         * lib/unicodeio.c: Include ignore-value.h.
14642         (fwrite_success_callback): Explicitly ignore fwrite's return value.
14643         * modules/unicodeio (Depends-on): Add ignore-value.
14644
14645 2009-10-26  Eric Blake  <ebb9@byu.net>
14646
14647         areadlinkat: fix fallback path
14648         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
14649         pointer and zero.
14650
14651 2009-10-22  Pádraig Brady  <P@draigBrady.com>
14652
14653         Use a better IO block size for modern systems
14654         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
14655         * lib/md2.c: Likewise.
14656         * lib/md4.c: Likewise.
14657         * lib/md5.c: Likewise.
14658         * lib/sha1.c: Likewise.
14659         * lib/sha256.c: Likewise.
14660         * lib/sha512.c: Likewise.
14661
14662 2009-10-22  Eric Blake  <ebb9@byu.net>
14663
14664         tests: avoid several compiler warnings
14665         * tests/test-getcwd.c (main): Avoid buffer underflow.
14666         * tests/test-getdate.c (main): String literals are not safe with
14667         putenv, so use setenv.  Declare unused argument.
14668         * modules/getdate-tests (Depends-on): Add setenv.
14669         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
14670         problems with string literals in char *.
14671         * tests/test-hash.c (main): Avoid shadowing declaration.
14672         (insert_new): Treat string literals as char const *.
14673         * tests/test-getopt.h (test_getopt): Likewise.
14674         (getopt_loop): Alter types to minimize casting elsewhere.
14675         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
14676         (test_getopt_long_posix): Likewise.
14677         (do_getopt_long): Add wrapper to minimize casting.
14678         * tests/test-atexit.c (clear_temp_file): Use void.
14679         * tests/test-areadlink-with-size.c (main): Declare unused
14680         arguments.
14681         * tests/test-areadlink.c (main): Likewise.
14682         * tests/test-areadlinkat-with-size.c (main): Likewise.
14683         * tests/test-areadlinkat.c (main): Likewise.
14684         * tests/test-canonicalize-lgpl.c (main): Likewise.
14685         * tests/test-canonicalize.c (main): Likewise.
14686         * tests/test-dirent-safer.c (main): Likewise.
14687         * tests/test-dirname.c (main): Likewise.
14688         * tests/test-dup2.c (main): Likewise.
14689         * tests/test-fchdir.c (main): Likewise.
14690         * tests/test-fcntl-h.c (main): Likewise.
14691         * tests/test-fcntl-safer.c (main): Likewise.
14692         * tests/test-fdopendir.c (main): Likewise.
14693         * tests/test-fdutimensat.c (main): Likewise.
14694         * tests/test-fflush.c (main): Likewise.
14695         * tests/test-filenamecat.c (main): Likewise.
14696         * tests/test-filevercmp.c (main): Likewise.
14697         * tests/test-fopen-safer.c (main): Likewise.
14698         * tests/test-fopen.c (main): Likewise.
14699         * tests/test-fpending.c (main): Likewise.
14700         * tests/test-fpurge.c (main): Likewise.
14701         * tests/test-freading.c (main): Likewise.
14702         * tests/test-fstatat.c (main): Likewise.
14703         * tests/test-fsync.c (main): Likewise.
14704         * tests/test-futimens.c (main): Likewise.
14705         * tests/test-getndelim2.c (main): Likewise.
14706         * tests/test-gettimeofday.c (main): Likewise.
14707         * tests/test-getopt.c (main): Likewise.
14708         * tests/test-i-ring.c (main): Likewise.
14709         * tests/test-inttypes.c (main): Likewise.
14710         * tests/test-link.c (main): Likewise.
14711         * tests/test-lstat.c (main): Likewise.
14712         * tests/test-math.c (main): Likewise.
14713         * tests/test-md5.c (main): Likewise.
14714         * tests/test-memchr2.c (main): Likewise.
14715         * tests/test-memrchr.c (main): Likewise.
14716         * tests/test-mkdir.c (main): Likewise.
14717         * tests/test-mkdirat.c (main): Likewise.
14718         * tests/test-mkfifoat.c (main): Likewise.
14719         * tests/test-open.c (main): Likewise.
14720         * tests/test-openat-safer.c (main): Likewise.
14721         * tests/test-openat.c (main): Likewise.
14722         * tests/test-quotearg.c (main): Likewise.
14723         * tests/test-rawmemchr.c (main): Likewise.
14724         * tests/test-readlink.c (main): Likewise.
14725         * tests/test-remove.c (main): Likewise.
14726         * tests/test-rename.c (main): Likewise.
14727         * tests/test-renameat.c (main): Likewise.
14728         * tests/test-rmdir.c (main): Likewise.
14729         * tests/test-sha1.c (main): Likewise.
14730         * tests/test-signal.c (main): Likewise.
14731         * tests/test-sigaction.c (main): Likewise.
14732         * tests/test-stat.c (main): Likewise.
14733         * tests/test-stat-time.c (main): Likewise.
14734         * tests/test-stddef.c (main): Likewise.
14735         * tests/test-stdint.c (main): Likewise.
14736         * tests/test-stdio.c (main): Likewise.
14737         * tests/test-stdlib.c (main): Likewise.
14738         * tests/test-strchrnul.c (main): Likewise.
14739         * tests/test-strerror.c (main): Likewise.
14740         * tests/test-string.c (main): Likewise.
14741         * tests/test-strtod.c (main): Likewise.
14742         * tests/test-strverscmp.c (main): Likewise.
14743         * tests/test-symlink.c (main): Likewise.
14744         * tests/test-symlinkat.c (main): Likewise.
14745         * tests/test-sys_stat.c (main): Likewise.
14746         * tests/test-sys_time.c (main): Likewise.
14747         * tests/test-time.c (main): Likewise.
14748         * tests/test-unistd.c (main): Likewise.
14749         * tests/test-unlink.c (main): Likewise.
14750         * tests/test-unlinkat.c (main): Likewise.
14751         * tests/test-utimens.c (main): Likewise.
14752         * tests/test-utimensat.c (main): Likewise.
14753         * tests/test-version-etc.c (main): Likewise.
14754         * tests/test-wchar.c (main): Likewise.
14755         * tests/test-wctype.c (main): Likewise.
14756         * tests/test-xprintf-posix.c (main): Likewise.
14757         * tests/test-posixtm.c (main): Likewise.
14758         (STREQ): Delete unused macro.
14759         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
14760         shadowed variables.
14761         * tests/test-memchr.c (main): Likewise.
14762
14763 2009-10-21  Eric Blake  <ebb9@byu.net>
14764
14765         areadlinkat: avoid failure on older glibc
14766         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
14767         rather than mis-comparing 0 against FUNC_RESULT of char*.
14768
14769 2009-10-21  Bruno Haible  <bruno@clisp.org>
14770
14771         * modules/stpncpy (License): Relicense under LGPLv2+.
14772         Reported by David Lutterkort <lutter@redhat.com>.
14773
14774 2009-10-20  Eric Blake  <ebb9@byu.net>
14775
14776         utimensat: work around Solaris 9 bug
14777         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
14778         has trailing slash bugs.
14779         * tests/test-lutimens.h (test_lutimens): Enhance test.
14780         * tests/test-utimens.h (test_utimens): Likewise.
14781         * doc/posix-functions/utime.texi (utime): Enhance documentation.
14782         * doc/posix-functions/utimes.texi (utimes): Likewise.
14783         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
14784         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
14785         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
14786         * doc/posix-functions/futimens.texi (futimens): Likewise.
14787
14788         fdutimensat: new module
14789         * modules/fdutimensat: New file.
14790         * lib/fdutimensat.c (fdutimensat): Likewise.
14791         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
14792         * MODULES.html.sh (File system functions): Mention module.
14793         * modules/fdutimensat-tests: New test.
14794         * tests/test-fdutimensat.c: Likewise.
14795
14796         doc: regenerate INSTALL
14797         * doc/INSTALL: Reflect recent autoconf update.
14798         * doc/INSTALL.ISO: Likewise.
14799         * doc/INSTALL.UTF-8: Likewise.
14800
14801 2009-10-20  Pádraig Brady  <P@draigBrady.com>
14802
14803         acl: warn if ACL support is not detected
14804         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
14805
14806 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
14807
14808         * lib/nproc.h: Add extern "C" block for C++.
14809
14810 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
14811             Bruno Haible  <bruno@clisp.org>
14812
14813         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
14814         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
14815         * doc/posix-functions/isalpha.texi: Likewise.
14816         * doc/posix-functions/isblank.texi: Likewise.
14817         * doc/posix-functions/iscntrl.texi: Likewise.
14818         * doc/posix-functions/isdigit.texi: Likewise.
14819         * doc/posix-functions/isgraph.texi: Likewise.
14820         * doc/posix-functions/islower.texi: Likewise.
14821         * doc/posix-functions/isprint.texi: Likewise.
14822         * doc/posix-functions/ispunct.texi: Likewise.
14823         * doc/posix-functions/isspace.texi: Likewise.
14824         * doc/posix-functions/isupper.texi: Likewise.
14825         * doc/posix-functions/isxdigit.texi: Likewise.
14826
14827 2009-10-18  Bruno Haible  <bruno@clisp.org>
14828
14829         Tests for module 'isblank'.
14830         * modules/isblank-tests: New file.
14831         * tests/test-isblank.c: New file.
14832
14833         New module 'isblank'.
14834         * lib/isblank.c: New file.
14835         * m4/isblank.m4: New file.
14836         * modules/isblank: New file.
14837         * doc/posix-functions/isblank.texi: Mention the new module.
14838
14839 2009-10-18  Bruno Haible  <bruno@clisp.org>
14840
14841         New module 'ctype'.
14842         * lib/ctype.in.h: New file.
14843         * m4/ctype.m4: New file.
14844         * modules/ctype: New file.
14845         * doc/posix-headers/ctype.texi: Mention the new module.
14846
14847 2009-10-18  Jim Meyering  <meyering@redhat.com>
14848
14849         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
14850         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
14851         right after its initialization, rather than farther down.
14852         Keeping these in close proximity makes it easier to ensure
14853         that each such variable is initialized.  E.g.,
14854
14855             LIB_CLOCK_GETTIME=
14856             AC_SUBST([LIB_CLOCK_GETTIME])
14857
14858         This change also increments these serial numbers.
14859         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
14860         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
14861         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14862
14863 2009-10-18  Bruno Haible  <bruno@clisp.org>
14864
14865         Don't let environment variables perturb build.
14866         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
14867         (gl_PREREQ_GETHRXTIME): ... not here.
14868
14869 2009-10-18  Bruno Haible  <bruno@clisp.org>
14870
14871         Avoid symlink attack in localcharset module.
14872         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
14873         (O_NOFOLLOW): Define fallback.
14874         (get_charset_aliases): Don't open the file if it is a symbolic link.
14875         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
14876         gl_FCNTL_H.
14877         (gl_FCNTL_H): Require it.
14878         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
14879         * modules/localcharset (Files): Add m4/fcntl_h.m4.
14880         Reported by Fergal Glynn <fglynn@veracode.com>.
14881
14882 2009-10-18  Bruno Haible  <bruno@clisp.org>
14883
14884         Implement nproc for mingw.
14885         * lib/nproc.c: Include <windows.h>
14886         (num_processors): On native Windows platforms, try GetSystemInfo.
14887
14888 2009-10-18  Bruno Haible  <bruno@clisp.org>
14889
14890         Implement nproc for IRIX.
14891         * lib/nproc.c: Include <sys/sysmp.h>.
14892         (num_processors): On IRIX systems, try sysmp.
14893         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
14894
14895 2009-10-18  Bruno Haible  <bruno@clisp.org>
14896
14897         Implement nproc for HP-UX.
14898         * lib/nproc.c: Include <sys/pstat.h>
14899         (num_processors): On HP-UX systems, try pstat_getdynamic.
14900         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
14901         pstat_getdynamic.
14902
14903 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
14904             Bruno Haible  <bruno@clisp.org>
14905
14906         Implement nproc for NetBSD, OpenBSD.
14907         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
14908         (ARRAY_SIZE): New macro.
14909         (num_processors): On BSD systems, try sysctl of HW_NCPU.
14910         * m4/nproc.m4: New file.
14911         * modules/nproc (Files): Add m4/nproc.m4.
14912         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
14913         (Makefile.am): Instead, augment lib_SOURCES.
14914
14915 2009-10-18  Bruno Haible  <bruno@clisp.org>
14916
14917         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
14918         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
14919         sys/param.h.
14920
14921 2009-10-16  Eric Blake  <ebb9@byu.net>
14922
14923         utimensat: new module
14924         * modules/utimensat: New file.
14925         * lib/utimensat.c (utimensat): Likewise.
14926         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
14927         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
14928         so we can work around Linux bugs.
14929         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
14930         * modules/sys_stat (Makefile.am): Substitute them.
14931         * lib/sys_stat.in.h (utimensat): Declare it.
14932         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14933         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
14934         * modules/utimensat-tests: New test.
14935         * tests/test-utimensat.c: Likewise.
14936
14937         utimens: let lutimens work on non-symlinks
14938         * lib/utimens.c (lutimens): Fall back to utimens rather than
14939         failing with ENOSYS, when file is not a symlink.
14940         (utimens): Reduce redirection.
14941         * tests/test-lutimens.h (test_lutimens): Update test to cover
14942         non-symlinks.
14943         * tests/test-utimens.h (test_utimens): Update test to cover
14944         symlinks.
14945         * tests/test-utimens.c (main): Update caller.
14946
14947         utimens: cache whether utimensat syscall works
14948         * lib/utimens.c (utimensat_works_really): New cache variable.
14949         (fdutimens, lutimens): Use it to avoid failing syscall.
14950
14951         test-stat-time, test-utimens: improve portability
14952         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
14953         ext4 on alpha, and for cygwin.
14954         * tests/test-utimens-common.h: New file.
14955         (nap): Factor delays into single function.
14956         * tests/test-lutimens.h (test_lutimens): Use new header.
14957         * tests/test-futimens.h (test_futimens): Likewise.
14958         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
14959         timestamps to occur from same machine, as was done previously for
14960         test_utimens.
14961         * modules/utimens-tests (Files): Ship new file.
14962         * modules/futimens-tests (Files): Likewise.
14963         Reported in part by Jim Meyering.
14964
14965         sys_stat: sort replacement declarations
14966         * lib/sys_stat.in.h: Sort declarations.
14967         * lib/futimens.c (futimens): Fix typo.
14968
14969 2009-10-15  Jim Meyering  <meyering@redhat.com>
14970
14971         don't let environment settings perturb build
14972         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
14973         could cause a configure-time and/or build-time malfunction.
14974         Typically, a configure-time function-in-library test is performed
14975         via code like this:
14976
14977           LIB_VAR=
14978           AC_SUBST([LIB_VAR])
14979           prefix_saved_LIBS=$LIBS
14980             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
14981                        [test "$ac_cv_search_FUNC" = "none required" ||
14982                         LIB_VAR=$ac_cv_search_FUNC])
14983           LIBS=$prefix_saved_LIBS
14984
14985         However, in each of the files affected by this change, the LIB_VAR=
14986         initialization was omitted.  Thus, when set in the environment, its
14987         value would propagate into generated Makefiles when FUNC is not found
14988         in LIB_NAME.
14989         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
14990         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
14991         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14992
14993 2009-10-14  Eric Blake  <ebb9@byu.net>
14994
14995         fchdir: avoid infinite recursion in mingw
14996         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
14997         recursing.
14998
14999         test-stat-time: port to mingw
15000         * tests/test-stat-time.c (force_unlink): Return a value.
15001         (test_ctime) [W32]: Fix compilation error.
15002         (nap): Don't call usleep with too large an argument.  Use
15003         force_unlink.
15004         * doc/pastposix-functions/usleep.texi (usleep): Document the
15005         portability issue.
15006
15007 2009-10-13  Jim Meyering  <meyering@redhat.com>
15008
15009         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
15010         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
15011         * modules/pipe-filter-ii: Likewise.
15012         * modules/sys_socket-tests: Likewise.
15013         * modules/tsearch-tests: Likewise.
15014         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
15015         (check): Depend on it.
15016
15017 2009-10-12  Eric Blake  <ebb9@byu.net>
15018
15019         utimens-tests: port to NFS file systems
15020         * tests/test-utimens.h (test_utimens): Refactor utimecmp
15021         comparisons to avoid spurious failures from timestamp drift
15022         between NFS machines.
15023
15024 2009-10-12  Eric Blake  <ebb9@byu.net>
15025
15026         stat-time-tests: minor cleanups
15027         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
15028         * tests/test-stat-time.c (nap): Separate assignment from call.
15029         Suggested by Paolo Bonzini and Bruno Haible.
15030
15031         sys_stat: guarantee struct timespec
15032         * lib/sys_stat.in.h (includes): Always include <time.h>
15033         * modules/sys_stat (Depends-on): Add time.
15034         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
15035         mode_t permission values.
15036         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
15037         get at subsecond timestamps.
15038
15039 2009-10-10  Eric Blake  <ebb9@byu.net>
15040
15041         futimens: new module
15042         * modules/futimens: New file.
15043         * lib/futimens.c (futimens): Likewise.
15044         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
15045         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
15046         we can work around Linux bugs.
15047         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
15048         * modules/sys_stat (Makefile.am): Substitute them.
15049         * lib/sys_stat.in.h (futimens): Declare it.
15050         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15051         * doc/posix-functions/futimens.texi (futimens): Likewise.
15052         * modules/futimens-tests: New test.
15053         * tests/test-futimens.c: Likewise.
15054
15055         utimens: introduce fdutimens
15056         * lib/utimens.h (fdutimens): New prototype.
15057         * lib/utimens.c (gl_futimens): Move guts...
15058         (fdutimens): ...to new interface.
15059         * tests/test-utimens.c (do_fdutimens): Use it.
15060
15061         utimens: add UTIME_NOW and UTIME_OMIT support
15062         * lib/utimens.c (validate_timespec, update_timespec): New helper
15063         functions.
15064         (gl_futimens, lutimens): Use them.
15065         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
15066         stdbool, sys_stat.
15067         (Link): Mention resulting library dependency.
15068         * modules/utimecmp (Link): Likewise.
15069         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
15070         (Makefile.am): Pick up library dependency.
15071         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
15072         definition.
15073         * tests/test-sys_stat.c: Test the definitions.
15074         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
15075         * NEWS: Document library dependency.
15076
15077         utimecmp: support symlink timestamps
15078         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
15079         hashing when possible.  Use pathconf when available.
15080         (SYSCALL_RESOLUTION): Recognize tighter resolution.
15081         * modules/utimecmp (Depends-on): Add lstat.
15082
15083         utimens: add lutimens interface
15084         * lib/utimens.c (lutimens): New function.
15085         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
15086         * lib/utimens.h (lutimens): Declare new interface.
15087         * tests/test-utimens.c (main): Enhance test.
15088         * tests/test-lutimens.h (test_lutimens): New file.
15089         * modules/utimens-tests (Files): Distribute it.
15090         (Depends-on): Add symlink.
15091         (configure.ac): Check for usleep.
15092
15093         utimens: validate futimens usage
15094         * lib/utimens.c (gl_futimens): Require valid fd up front, using
15095         fewer syscalls on failure later on.  Avoid compiler warning on
15096         mingw.
15097         * modules/utimens (Depends-on): Add dup2.
15098
15099         utimens: add test
15100         * modules/utimens-tests: New test.
15101         * tests/test-utimens.h: New file.
15102         * tests/test-futimens.h: Likewise.
15103         * tests/test-utimens.c: Likewise.
15104
15105         doc: mention timestamp portability issues
15106         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
15107         instead.
15108         * doc/posix-functions/utime.texi (utime): Likewise.
15109         * doc/posix-functions/utimes.texi (utimes): Likewise.
15110         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
15111         instead.
15112         * doc/posix-functions/futimens.texi (futimens): Mention utimens
15113         module.
15114         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
15115         Mention weakness with symlink timestamps.
15116         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
15117         to utimensat/futimens instead.
15118         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
15119
15120         test-dup2: enhance test
15121         * tests/test-dup2.c (main): Also check AT_FDCWD.
15122
15123         test-stat-time: avoid more spurious failures
15124         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
15125         xfs; and avoid race if the two timestamps cross quantization edge.
15126
15127         relocatable: prefer 'file system' over 'filesystem'
15128         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
15129         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
15130         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
15131         * doc/relocatable.texi (Enabling Relocatability): Likewise.
15132         * lib/relocatable.c (compute_curr_prefix): Likewise.
15133
15134 2009-10-10  Jim Meyering  <meyering@redhat.com>
15135
15136         stat-time-tests: check for the usleep function
15137         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
15138
15139 2009-10-10  Bruno Haible  <bruno@clisp.org>
15140
15141         * modules/xnanosleep: Put the Link section after the Include section.
15142
15143 2009-10-09  Eric Blake  <ebb9@byu.net>
15144
15145         dup2: work around FreeBSD 6.1 bug
15146         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
15147         * doc/posix-functions/dup2.texi (dup2): Document it.
15148         Reported by Nelson H. F. Beebe and Jim Meyering.
15149
15150         test-stat-time: port to buggy NFS clients
15151         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
15152         (test_ctime): Also skip test if mtime and ctime are skewed.
15153
15154         maint: prefer 'file system' over 'filesystem'
15155         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
15156         * doc/posix-functions/lstat.texi (lstat): Likewise.
15157         * lib/file-has-acl.c (file_has_acl): Likewise.
15158         * lib/fwriteerror.c [TEST]: Likewise.
15159         * tests/test-areadlink.h (test_areadlink): Likewise.
15160         * tests/test-areadlinkat-with-size.c (main): Likewise.
15161         * tests/test-areadlinkat.c (main): Likewise.
15162         * tests/test-canonicalize-lgpl.c (main): Likewise.
15163         * tests/test-canonicalize.c (main): Likewise.
15164         * tests/test-fstatat.c (main): Likewise.
15165         * tests/test-linkat.c (main): Likewise.
15166         * tests/test-lstat.h (test_lstat_func): Likewise.
15167         * tests/test-mkdir.h (test_mkdir): Likewise.
15168         * tests/test-readlink.h (test_readlink): Likewise.
15169         * tests/test-remove.c (main): Likewise.
15170         * tests/test-rename.h (test_rename): Likewise.
15171         * tests/test-renameat.c (main): Likewise.
15172         * tests/test-rmdir.h (test_rmdir_func): Likewise.
15173         * tests/test-symlink.h (test_symlink): Likewise.
15174         * tests/test-symlinkat.c (main): Likewise.
15175         * tests/test-unlink.h (test_unlink_func): Likewise.
15176         * tests/test-unlinkat.c (main): Likewise.
15177
15178         maint: make realtime library usage explicit
15179         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
15180         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
15181         * modules/settime (Link): Likewise.
15182         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
15183
15184         test-stat-time: speed up execution
15185         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
15186         warning on mingw.
15187         (nap): New helper function.
15188         (prepare_test): Use it to reduce sleep time.
15189         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
15190         execution.
15191         * modules/stat-time-tests (configure.ac): Check for usleep.
15192
15193 2009-10-09  Jim Meyering  <meyering@redhat.com>
15194
15195         selinux-h: always use getfilecon wrappers
15196         * lib/getfilecon.c: New file.
15197         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
15198         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
15199         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
15200         (fgetfilecon): Provide a stub.
15201         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
15202         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
15203         file unconditionally.
15204         When <selinux/selinux.h> is found, arrange to use wrappers.
15205         * modules/selinux-h (Files): Add getfilecon.c.
15206         (Makefile.am): Substitute include-next-related bits
15207         into the now-always-generated selinux/selinux.h file.
15208         * doc/glibc-functions/lgetfilecon.texi: New file.
15209         * doc/glibc-functions/fgetfilecon.texi: New file.
15210         * doc/glibc-functions/getfilecon.texi: New file.
15211         * doc/glibc-functions/getfilecon-desc.texi: New file.
15212         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
15213         which to pull in the new files.
15214         * MODULES.html.sh (Misc): Add selinux-h.
15215
15216 2009-10-08  Jim Meyering  <meyering@redhat.com>
15217
15218         unistd: fix comment typo
15219         * lib/unistd.in.h (euidaccess): Fix a comment typo.
15220
15221 2009-10-08  Eric Blake  <ebb9@byu.net>
15222
15223         areadlink: use SIZE_MAX consistently
15224         * modules/areadlink (Depends-on): Add stdint.
15225         * modules/areadlink-with-size (Depends-on): Likewise.
15226         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
15227         gives NULL; drop sys/types, since unistd gives size_t; and add
15228         stdint for SIZE_MAX.
15229         (SIZE_MAX): Rely on headers.
15230         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
15231         and add stdint.
15232         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
15233         (SIZE_MAX): Likewise.
15234         (INITIAL_BUF_SIZE): Turn into enum.
15235         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
15236
15237 2009-10-08  Jim Meyering  <meyering@redhat.com>
15238
15239         areadlinkat: avoid compilation failure
15240         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
15241         Fix typo in comment.
15242
15243 2009-10-07  Eric Blake  <ebb9@byu.net>
15244
15245         areadlinkat-with-size: new module
15246         * modules/areadlinkat-with-size: New module.
15247         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
15248         * lib/areadlink.h (areadlinkat): Declare it.
15249         * MODULES.html.sh (File system functions): Mention it.
15250         * modules/areadlinkat-with-size-tests: New test.
15251         * tests/test-areadlinkat-with-size.c: New file.
15252
15253         xreadlinkat: new module
15254         * modules/xreadlinkat: New module.
15255         * lib/xreadlinkat.c (xreadlinkat): New file.
15256         * lib/xreadlink.h (xreadlinkat): Declare it.
15257         * MODULES.html.sh (File system functions): Mention it.
15258
15259         areadlinkat: new module
15260         * lib/at-func.c (FUNC_FAIL): New define.
15261         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
15262         * modules/areadlinkat: New module.
15263         * lib/linkat.c (areadlinkat): Move...
15264         * lib/areadlinkat.c (areadlinkat): ...to new file.
15265         * lib/areadlink.h (areadlinkat): Declare it.
15266         * modules/linkat (Depends-on): Add areadlinkat.
15267         * MODULES.html.sh (File system functions): Mention it.
15268         * modules/areadlinkat-tests: New test.
15269         * tests/test-areadlinkat.c: New file.
15270
15271         areadlink, areadlink-with-size: add tests
15272         * modules/areadlink-tests: New test.
15273         * modules/areadlink-with-size-tests: Likewise.
15274         * tests/test-areadlink.h: New file.
15275         * tests/test-areadlink.c: Likewise.
15276         * tests/test-areadlink-with-size.c: Likewise.
15277
15278         maint: minor cleanups
15279         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
15280         _UNUSED_PARAMETER_ instead.
15281         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
15282         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
15283         * modules/linkat-tests (Files): Distribute test-link.h.
15284
15285         openat, utimens: whitespace cleanup
15286         * lib/openat.c: Prefer space throughout, rather than mix of 8
15287         spaces vs. tabs.
15288         * lib/at-func.c: Likewise.
15289         * lib/utimens.c: Likewise.
15290
15291         openat: avoid using wrong fd
15292         * lib/openat.c (openat_permissive): Reject user's fd if saving the
15293         working directory chooses same fd.
15294         * lib/at-func.c (AT_FUNC_NAME): Likewise.
15295
15296         mkdir, mkdirat: fix cygwin 1.5.x bug
15297         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
15298         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
15299         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
15300         bug.
15301         (gl_PREREQ_MKDIR): Delete unused macro.
15302         * modules/mkdir (Files): Track file rename.
15303         (configure.ac): Update macro name.
15304         * modules/openat (Depends-on): Add mkdir.
15305         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
15306
15307         mkdir, mkdirat: add tests
15308         * modules/mkdir-tests: New test.
15309         * tests/test-mkdir.h: New file.
15310         * tests/test-mkdir.c: Likewise.
15311         * tests/test-mkdirat.c: Likewise.
15312         * modules/openat-tests (Files): Add new files.
15313         (Makefile.am): Run new test.
15314
15315 2009-10-06  Eric Blake  <ebb9@byu.net>
15316
15317         doc: tweak *at function documentation
15318         * doc/posix-functions/faccessat.texi (faccessat): Mention
15319         known issue with replacement.
15320         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
15321         * doc/posix-functions/linkat.texi (linkat): Likewise.
15322         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
15323         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
15324         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
15325         * doc/posix-functions/renameat.texi (renameat): Likewise.
15326         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
15327
15328         openat: fix GNU/Hurd bug in unlinkat
15329         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
15330         broken.
15331         * doc/posix-functions/unlink.texi (unlink): Document this.
15332         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
15333
15334         fdopendir: fix GNU/Hurd bug
15335         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
15336         allowing non-directory fds.
15337         * lib/fdopendir.c (rpl_fdopendir): Work around it.
15338         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
15339         * modules/dirent (Makefile.am): Substitute it.
15340         * lib/dirent.in.h (fdopendir): Declare replacement.
15341         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
15342         * tests/test-fdopendir.c (main): Test something other than
15343         /dev/null, since on Hurd that behaves like a directory.
15344
15345         test-symlink: port to GNU/Hurd
15346         * tests/test-symlink.h (test_symlink): Relax expected errno.
15347
15348         doc: tweak more cygwin information
15349         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
15350         now compatible with glibc.
15351         * doc/posix-functions/getopt.texi (getopt): Likewise.
15352
15353         getopt-gnu: add another test
15354         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
15355         guarantee behavior relied on by m4.
15356         * tests/test-getopt.c (main): Use it.
15357         * modules/getopt-posix-tests (Depends-on): Add setenv.
15358         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
15359
15360         getopt: fix compilation on darwin
15361         * lib/getopt.in.h (includes): Leave breadcrumbs during system
15362         include.
15363         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
15364         Reported by Ludovic Courtès.
15365
15366 2009-10-06  Bruno Haible  <bruno@clisp.org>
15367
15368         * modules/size_max (Description): Discourage its use.
15369         Reported by Simon Josefsson.
15370
15371 2009-10-06  Jim Meyering  <meyering@redhat.com>
15372
15373         linkat: avoid compilation failure
15374         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
15375
15376 2009-10-05  Eric Blake  <ebb9@byu.net>
15377
15378         linkat: support Linux 2.6.17
15379         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
15380         linkat on Linux, but allow cache variable override.
15381         * lib/linkat.c (rpl_linkat): Define override.
15382         * modules/linkat (Depends-on): Add symlinkat.
15383         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
15384         * modules/unistd (Makefile.am): Substitute it.
15385         * lib/unistd.in.h (linkat): Declare replacement.
15386         Reported by Pádraig Brady.
15387
15388         quotearg: port test to systems with C.UTF-8 locale
15389         * tests/test-quotearg.c (struct result_strings): Add another
15390         member, differentiating between C.ASCII and C.UTF-8 handling.
15391         (compare_strings): Add parameter.
15392         (main): Adjust all callers.
15393
15394         getopt: avoid clash with FreeBSD _getopt_internal
15395         * lib/getopt.in.h (_getopt_internal): Override the name.
15396         * lib/getopt_int.h (includes): Pick up any overrides.
15397         Reported by Reuben Thomas.
15398
15399         hash: allow C89 compilation
15400         * lib/hash.c (check_tuning): Move declaration before statement.
15401         Reported by Reuben Thomas.
15402
15403 2009-10-05  Karl Berry  <karl@gnu.org>
15404
15405         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
15406
15407 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
15408             Bruno Haible  <bruno@clisp.org>
15409
15410         * lib/uname.c (uname): Use a table-driven algorithm to compute
15411         Windows NT versions.
15412
15413 2009-10-04  Bruno Haible  <bruno@clisp.org>
15414
15415         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
15416         program_invocation_short_name.
15417         * modules/progname (configure.ac): Test for presence of
15418         program_invocation_short_name.
15419         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
15420
15421 2009-10-04  Bruno Haible  <bruno@clisp.org>
15422
15423         * lib/progname.c (set_program_name): Fix comment.
15424         Reported by Jim Meyering.
15425
15426 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
15427             Bruno Haible  <bruno@clisp.org>
15428
15429         * lib/uname.c: Include <string.h>.
15430         (uname): Do only one call to GetVersionEx in the common case.
15431
15432 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
15433             Bruno Haible  <bruno@clisp.org>
15434
15435         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
15436         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
15437         (uname): Add support for Windows CE and various non-x86 CPU types.
15438
15439 2009-10-03  Bruno Haible  <bruno@clisp.org>
15440
15441         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
15442         invocation to tests/configure.ac.
15443         Reported by Ian Beckwith <ianb@erislabs.net>.
15444
15445 2009-10-02  Eric Blake  <ebb9@byu.net>
15446
15447         fchdir: avoid compiler warning
15448         * lib/fchdir.c (canonicalize_file_name)
15449         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
15450
15451         test-open: support mingw errno values
15452         * tests/test-open.h (test_open): Relax test.
15453         * tests/test-fopen.h (test_fopen): Likewise.
15454         * tests/test-openat-safer.c (main): Likewise.
15455
15456         open: fix opening directory on mingw
15457         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
15458
15459         test-open: on GNU/Hurd, /dev/null is a directory
15460         * tests/test-fopen.h (main): Rename...
15461         (test_fopen): ...to this.  Use a guaranteed non-directory when
15462         confirming open behavior on trailing slash.
15463         * tests/test-openat-safer.c (main): Likewise.
15464         * tests/test-open.h (main): Likewise....
15465         (test_open): ...to this.
15466         * tests/test-fopen.c (main): Adjust caller.
15467         * tests/test-fopen-safer.c (main): Likewise.
15468         * tests/test-open.c (main): Likewise.
15469         * tests/test-fcntl-safer.c (main): Likewise.
15470         Reported by Samuel Thibault.
15471
15472         rename, fchdir: don't ignore chdir failure
15473         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
15474         * lib/rename.c (rpl_rename) [W32]: Likewise.
15475         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
15476         an empty destination directory if source cannot be renamed,
15477         although there is still possibility for failure.
15478         * doc/posix-functions/rename.texi (rename): Document the race.
15479         Reported by Jim Meyering.
15480
15481         maint: cleanup whitespace in recent commits
15482         * lib/rename.c (rpl_rename): Remove tabs.
15483         * tests/test-link.h (test_link): Likewise.
15484         * lib/fchdir.c (get_name): Likewise.
15485         Reported by Jim Meyering.
15486
15487 2009-10-02  Ben Pfaff  <blp@gnu.org>
15488
15489         relocatable-prog-wrapper: Add missing dependency on
15490         double-slash-root.
15491         * modules/relocatable-prog-wrapper: Add dependency.
15492         Reported by Ian Beckwith <ianb@erislabs.net>.
15493
15494 2009-10-02  Eric Blake  <ebb9@byu.net>
15495
15496         renameat: fix Solaris bugs
15497         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
15498         needed fixing.
15499         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
15500         * modules/stdio (Makefile.am): Substitute it.
15501         * lib/stdio.in.h (renameat): Declare replacement.
15502         * lib/renameat.c (rpl_renameat): Implement fix.
15503
15504         renameat: new module
15505         * modules/renameat: New file.
15506         * lib/renameat.c (renameat): Likewise.
15507         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
15508         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
15509         * modules/stdio (Makefile.am): Substitute them.
15510         * lib/stdio.in.h (renameat): Declare it.
15511         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15512         * doc/posix-functions/renameat.texi (renameat): Likewise.
15513         * modules/renameat-tests: New test.
15514         * tests/test-renameat.c: Likewise.
15515
15516         rename: fix mingw bugs
15517         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
15518         directory overwrite bugs.
15519
15520         rename: fix another cygwin 1.5 bug
15521         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
15522         checks.
15523         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
15524         unnecessary cygwin workarounds.  Also work around bug with moving
15525         full directory onto an empty one.
15526         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
15527
15528         rename-dest-slash: merge into rename module
15529         * modules/rename-dest-slash (Status): Mark obsolete.
15530         (Depends-on): Add rename.
15531         (Files): Let rename do it all.
15532         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
15533         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
15534         * m4/rename-dest-slash.m4: ...so this file can be deleted.
15535         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
15536         * lib/rename.c (rpl_rename): Update comments.
15537
15538         rename: fix cygwin 1.5.x bugs
15539         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
15540         * lib/rename.c (rpl_rename): Work around them.
15541         * modules/rename (Depends-on): Add same-inode.
15542
15543         rename: fix Solaris 10 bug
15544         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
15545         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
15546         was the only bug.
15547
15548         rename: fix Solaris 9 bug
15549         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
15550         on non-directory.  Avoid calling exit.
15551         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
15552         strdup.
15553         * modules/rename-tests (Depends-on): Drop lstat.
15554         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
15555         (gl_PREREQ_RENAME): Delete unused macro.
15556
15557         rename-dest-slash: fix NetBSD bug
15558         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
15559         links.
15560         * modules/rename-dest-slash (Depends-on): Add same-inode.
15561
15562         rename-tests: new test, exposes several platform bugs
15563         * modules/rename-tests: New file.
15564         * tests/test-rename.h: Likewise.
15565         * tests/test-rename.c: Likewise.
15566         * doc/posix-functions/rename.texi (rename): Improve documentation,
15567         including bugs that will eventually be fixed in gnulib.
15568
15569 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
15570
15571         * lib/uname.c: Include <stdlib.h>
15572         (uname): Assume version info is available.
15573
15574 2009-10-02  Jim Meyering  <meyering@redhat.com>
15575
15576         gnu-web-doc-update: correct --help output
15577         * build-aux/gnu-web-doc-update: Make --help output relevant.
15578
15579         gnu-web-doc-update: add standard options
15580         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
15581
15582         gnu-web-doc-update: New module.
15583         Use this script to automatically update the on-line web documentation
15584         for your GNU project at http://www.gnu.org/software/$pkg/manual/
15585         * modules/gnu-web-doc-update: New file, from coreutils.
15586         * build-aux/gnu-web-doc-update: New script.
15587
15588 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
15589
15590         link: LoadLibrary is not needed.
15591         * lib/link.c: Use GetModuleHandle.
15592
15593 2009-10-01  Eric Blake  <ebb9@byu.net>
15594
15595         getopt: bump serial number
15596         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
15597         change.
15598
15599         tests: tighten link, rmdir, and remove tests
15600         * tests/test-link.h (includes): No need to use <config.h> here.
15601         Clean up if directory hard link was created, otherwise test for
15602         trailing '.'.
15603         * tests/test-linkat.c (main): Simplify.
15604         * tests/test-remove.c (main): Enhance test for trailing '.'.
15605         * tests/test-rmdir.h (test_rmdir_func): Likewise.
15606
15607 2009-10-01  Jim Meyering  <meyering@redhat.com>
15608
15609         maint.mk: requiring "make major" was annoying, for a "minor" release.
15610         What is intended is "stable", to contrast with alpha and beta,
15611         so require "make stable", not "make major".
15612         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
15613         (get_tool_versions): Likewise.
15614         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
15615
15616 2009-09-30  Ben Pfaff  <blp@gnu.org>
15617
15618         Fix broken build of replacement for Windows tmpfile().
15619         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
15620         flags argument added along with the 'mkostemp' module.
15621
15622 2009-09-28  Bruno Haible  <bruno@clisp.org>
15623
15624         Avoid identifier clash with POSIX function 'remove' defined as a macro.
15625         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
15626         to 'remove_elt'.
15627         (gl_list_remove): Update.
15628         * lib/gl_list.c (gl_list_remove): Update.
15629         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
15630         to 'remove_elt'.
15631         (gl_oset_remove): Update.
15632         * lib/gl_list.c (gl_oset_remove): Update.
15633         Reported by Eric Blake.
15634
15635 2009-09-28  Eric Blake  <ebb9@byu.net>
15636
15637         doc: mention yet more cygwin 1.7 status
15638         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
15639         cygwin.
15640         * doc/glibc-functions/execvpe.texi (execvpe): New file.
15641         * doc/gnulib.texi (Glibc unistd.h): Mention it.
15642
15643         argp: fix test failure
15644         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
15645         that are not upper-case.  Pass correct range to tolower.
15646
15647 2009-09-27  Jim Meyering  <meyering@redhat.com>
15648
15649         test-yesno: work around sparc-dash here-document infelicity
15650         Without this change, the literal \177 byte in a here document
15651         would make dash 0.5.5.1-3 access uninitialized memory.
15652         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
15653         Instead, use a marker, "@", and filter through tr to create the desired
15654         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
15655
15656 2009-09-27  Bruno Haible  <bruno@clisp.org>
15657
15658         Disable untested support for new flavours of ACLs on AIX.
15659         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
15660         progress.
15661         * lib/set-mode-acl.c (qset_acl): Likewise.
15662
15663 2008-12-07  Bruno Haible  <bruno@clisp.org>
15664
15665         Add support for new flavours of ACLs on AIX. (Untested.)
15666         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
15667         (file_has_acl): Add support for newer AIX.
15668         * lib/set-mode-acl.c (qset_acl): Likewise.
15669         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
15670         Rainer Tammer <tammer@tammer.net>.
15671
15672 2009-09-26  Eric Blake  <ebb9@byu.net>
15673
15674         argp: fix compilation of getopt
15675         * lib/getopt.in.h (includes): Use different guard than glibc.
15676         Reported by Sergey Poznyakoff.
15677
15678         doc: mention more cygwin 1.7 status
15679         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
15680         bug.
15681         * doc/posix-functions/execl.texi (execl): Likewise.
15682         * doc/posix-functions/execle.texi (execle): Likewise.
15683         * doc/posix-functions/execlp.texi (execlp): Likewise.
15684         * doc/posix-functions/execv.texi (execv): Likewise.
15685         * doc/posix-functions/execve.texi (execve): Likewise.
15686         * doc/posix-functions/execvp.texi (execvp): Likewise.
15687         * doc/glibc-functions/canonicalize_file_name.texi
15688         (canonicalize_file_name): Cygwin 1.7 now provides this.
15689         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
15690         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
15691         on AT_SYMLINK_NOFOLLOW.
15692
15693 2009-09-24  Eric Blake  <ebb9@byu.net>
15694
15695         test-linkat: make test more robust
15696         * tests/test-linkat.c (main): Avoid collision with EEXIST.
15697
15698         getopt: fix inclusion guards for cygwin
15699         * modules/getopt-posix (Depends-on): Add include-next.
15700         (Makefile.am): Substitute more items in replacement header.
15701         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
15702         <getopt.h>.
15703         * lib/getopt.in.h (includes): Use split inclusion guard, and
15704         prefer <getopt.h> over include <unistd.h> when one is present.
15705         (option): Also override name of 'struct option'.
15706
15707         same-inode: revert prior change; it is not yet ready
15708         * NEWS: Undo mention of this change.
15709         * lib/same-inode.h (same-inode.h): Undo tri-state change.
15710         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
15711         * lib/cycle-check.c (cycle_check): Likewise.
15712         * lib/same.c (same_name): Likewise.
15713         * lib/at-func2.c (at_func2): Likewise.
15714
15715 2009-09-23  Eric Blake  <ebb9@byu.net>
15716
15717         linkat: new module
15718         * modules/linkat: New file.
15719         * lib/at-func2.c (at_func2): Likewise.
15720         * lib/linkat.c (linkat): Likewise.
15721         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
15722         * lib/openat-priv.h (at_func2): Add declaration.
15723         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
15724         * modules/unistd (Makefile.am): Substitute them.
15725         * lib/unistd.in.h (linkat): Declare it.
15726         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15727         * doc/posix-functions/linkat.texi (linkat): Likewise.
15728         * doc/posix-functions/link.texi (link): Tweak wording.
15729         * tests/test-link.c (main): Move guts...
15730         * tests/test-link.h (test_link): ...into new file.
15731         * modules/linkat-tests: New test.
15732         * tests/test-linkat.c: Likewise.
15733         * modules/link-tests (Files): Ship new file.
15734         (Depends-on): Add stdbool.
15735
15736         dirname: add library-safe mdir_name
15737         * lib/dirname.h (mdir_name): New prototype.
15738         * lib/dirname.c (dir_name): Move guts...
15739         (mdir_name): ...to new function that avoids xalloc_die.
15740
15741         fchdir: another mingw fix
15742         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
15743         * lib/fchdir.c (get_name): New helper method; skips canonicalize
15744         on mingw (where it has not yet been ported), and make it optional
15745         elsewhere.
15746         (_gl_register_fd): Use it.
15747
15748         same-inode: make SAME_INODE tri-state, to port to mingw
15749         * NEWS: Mention this change.
15750         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
15751         st_ino always being 0.
15752         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
15753         * lib/cycle-check.c (cycle_check): Likewise.
15754         * lib/same.c (same_name): Likewise.
15755
15756         lstat: avoid mingw compilation error
15757         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
15758         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
15759         lstat ourselves.
15760         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
15761         was adequate.
15762         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
15763         the checks for lstat.
15764         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
15765
15766         link: fix test failure on Solaris 9
15767         * lib/link.c (rpl_link): Don't assume link will catch bogus
15768         trailing slash on source.
15769
15770         test-symlinkat: enhance test
15771         * tests/test-readlink.c (main): Move guts...
15772         * tests/test-readlink.h (test_readlink): ...into new file.
15773         * tests/test-symlink.c (main): Move guts...
15774         * tests/test-symlink.h (test_symlink): ...into new file.
15775         * tests/test-symlinkat.c (main): Use new files for further
15776         coverage.
15777         (do_symlink, do_readlink): New helper functions.
15778         * modules/symlink-tests (Files): Ship new file.
15779         (Depends-on): Add stdbool.
15780         * modules/readlink-tests (Files): Ship new file.
15781         (Depends-on): Add stdbool.
15782         * modules/symlinkat-tests (Files): Use new files.
15783
15784 2009-09-23  Eric Blake  <ebb9@byu.net>
15785
15786         readlink: document portability issue with symlink length
15787         * doc/posix-functions/lstat.texi (lstat): Mention that some file
15788         systems have bogus st_size on symlinks, and mention the
15789         areadlink-with-size module.
15790         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
15791         * doc/posix-functions/readlink.texi (readlink): Mention the
15792         areadlink module, and ERANGE failure.
15793         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
15794         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
15795
15796         readlink: fix Solaris 9 bug with trailing slash
15797         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
15798         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
15799         * doc/posix-functions/readlink.texi (readlink): Document this.
15800         * modules/readlink-tests: New test.
15801         * tests/test-readlink.c: Likewise.
15802
15803         readlink: fix cygwin 1.5.x bug with return type
15804         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
15805         * lib/unistd.in.h (readlink): Use ssize_t.
15806         * lib/readlink.c (readlink): Likewise.
15807         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
15808         * modules/unistd (Makefile.am): Substitute it.
15809         * lib/unistd.in.h (readlink): Declare replacement.
15810         * doc/posix-functions/readlink.texi (readlink): Document this.
15811
15812         symlink: use throughout gnulib
15813         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
15814         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
15815         symlink is not used.
15816         * modules/symlinkat (Depends-on): Add symlink.
15817         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
15818         * modules/canonicalize-tests (Depends-on): Likewise.
15819         * modules/lstat-tests (Depends-on): Likewise.
15820         * modules/openat-tests (Depends-on): Likewise.
15821         * modules/remove-tests (Depends-on): Likewise.
15822         * modules/rmdir-tests (Depends-on): Likewise.
15823         * modules/unlink-tests (Depends-on): Likewise.
15824         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
15825         * tests/test-canonicalize.c (symlink): Likewise.
15826         * tests/test-fstatat.c (symlink): Likewise.
15827         * tests/test-lstat.c (symlink): Likewise.
15828         * tests/test-remove.c (symlink): Likewise.
15829         * tests/test-rmdir.c (symlink): Likewise.
15830         * tests/test-unlink.c (symlink): Likewise.
15831         * tests/test-unlinkat.c (symlink): Likewise.
15832
15833         symlink: new module, for Solaris 9 bug
15834         * modules/symlink: New file.
15835         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
15836         * lib/symlink.c: Likewise.
15837         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
15838         * modules/unistd (Makefile.am): Substitute them.
15839         * lib/unistd.in.h (symlink): Declare replacement.
15840         * MODULES.html.sh (File system functions): Mention it.
15841         * doc/posix-functions/symlink.texi (symlink): Likewise.
15842         * modules/symlink-tests: New test.
15843         * tests/test-symlink.c: Likewise.
15844
15845 2009-09-23  Bruno Haible  <bruno@clisp.org>
15846
15847         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
15848         when needed.
15849         Test case: gnulib-tool --import --with-tests atexit inttypes.
15850         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
15851
15852 2009-09-23  Bruno Haible  <bruno@clisp.org>
15853
15854         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
15855         subcommand, not in a subshell.
15856
15857 2009-09-22  Eric Blake  <ebb9@byu.net>
15858
15859         unistd: sort replacement declarations
15860         * lib/unistd.in.h: Sort declarations.
15861
15862         open, openat: minor optimization
15863         * lib/open.c (open): If open succeeded, len is non-zero.
15864         * lib/openat.c (rpl_openat): Likewise.
15865
15866         link-follow: ensure correct result
15867         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
15868         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
15869         distinguish between possible failures.
15870
15871 2009-09-21  Eric Blake  <ebb9@byu.net>
15872
15873         fts: avoid compiler warning
15874         * lib/fts.c (dirent_inode_sort_may_be_useful)
15875         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
15876
15877 2009-09-19  Bruno Haible  <bruno@clisp.org>
15878
15879         * lib/progreloc.c (canonicalize_file_name): New declaration.
15880
15881 2009-09-19  Eric Blake  <ebb9@byu.net>
15882
15883         link: fix quoting
15884         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
15885
15886         openat: fix openat bugs on Solaris 9
15887         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
15888         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
15889         * modules/openat (Depends-on): Add open.
15890         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
15891         * modules/fcntl-h (Makefile.am): Substitute it.
15892         * lib/fcntl.in.h (openat): Declare replacement.
15893         * doc/posix-functions/openat.texi (openat): Document this.
15894
15895         openat: move fstatat and unlinkat into correct files
15896         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
15897         compiled.
15898         * lib/openat.c (fstatat, unlinkat): Move...
15899         * lib/fstatat.c (fstatat): ...into correct files.
15900         * lib/unlinkat.c (unlinkat): Likewise.
15901
15902         openat: fix unlinkat bugs on Solaris 9
15903         * lib/unlinkat.c (unlinkat): New file.
15904         * modules/openat (Depends-on): Add unlink.
15905         (Files): Distribute it.
15906         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
15907         trailing slash behavior is broken.
15908         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
15909         * modules/unistd (Makefile.am): Substitute it.
15910         * lib/unistd.in.h (unlinkat): Declare replacement.
15911         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
15912
15913         openat: fix fstatat bugs on Solaris 9
15914         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
15915         stat.
15916         * doc/posix-functions/fstatat.texi (fstatat): Document this.
15917
15918         test-unlinkat: enhance test, to expose Solaris 9 bug
15919         * tests/test-unlink.c (main): Factor guts...
15920         * tests/test-unlink.h (test_rmdir_func): ...into new file.
15921         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
15922         * tests/test-rmdir.c (main): Adjust caller.
15923         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
15924         (unlinker): New helper function.
15925         (rmdirat): Enhance check.
15926         * modules/rmdir-tests (Depends-on): Add stdbool.
15927         * modules/unlink-tests (Depends-on): Likewise.
15928         (Files): Add test-unlink.h.
15929         * modules/openat-tests (Files): Likewise.
15930         (Depends-on): Add unlinkdir.
15931
15932         test-fstatat: new test, to expose Solaris 9 bugs
15933         * tests/test-stat.c (main): Factor guts...
15934         * tests/test-stat.h (test_stat_func): ...into new file.
15935         * tests/test-lstat.c (main): Factor guts...
15936         * tests/test-lstat.h (test_lstat_func): ...into new file.
15937         * tests/test-fstatat.c: New file.
15938         * modules/stat-tests (Files): Add test-stat.h.
15939         * modules/lstat-tests (Files): Add test-lstat.h.
15940         (Depends-on): Add stdbool.
15941         * modules/openat-tests (Depends-on): Add pathmax.
15942         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
15943         (Makefile.am): Run new test.
15944
15945         remove: new module, for mingw and Solaris 9 bugs
15946         * modules/remove: New file.
15947         * lib/remove.c: Likewise.
15948         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
15949         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
15950         * modules/stdio (Makefile.am): Use them.
15951         * lib/stdio.in.h (remove): Declare replacement.
15952         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15953         * doc/posix-functions/remove.texi (remove): Likewise.
15954         * modules/remove-tests: New test.
15955         * tests/test-remove.c: Likewise.
15956
15957         unlink: new module, for Solaris 9 bug
15958         * modules/unlink: New file.
15959         * lib/unlink.c: Likewise.
15960         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
15961         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
15962         * modules/unistd (Makefile.am): Use them.
15963         * lib/unistd.in.h (stat): Declare replacement.
15964         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15965         * doc/posix-functions/unlink.texi (unlink): Likewise.
15966         * modules/unlink-tests: New test.
15967         * tests/test-unlink.c: Likewise.
15968
15969         lstat: fix Solaris 9 bug
15970         * lib/lstat.c (lstat): Also check for trailing slash on
15971         non-symlink, non-directories.  Use stat module to simplify logic.
15972         * doc/posix-functions/lstat.texi (lstat): Document it.
15973         * modules/lstat-tests (Depends-on): Add errno, same-inode.
15974         (configure.ac): Check for symlink.
15975         * tests/test-lstat.c (main): Add more tests.
15976
15977         stat: add as dependency to other modules
15978         * modules/chown (Depends-on): Add stat.
15979         * modules/euidaccess (Depends-on): Likewise.
15980         * modules/fchdir (Depends-on): Likewise.
15981         * modules/isdir (Depends-on): Likewise.
15982         * modules/link (Depends-on): Likewise.
15983         * modules/lstat (Depends-on): Likewise.
15984         * modules/mkdir-p (Depends-on): Likewise.
15985         * modules/modechange (Depends-on): Likewise.
15986         * modules/open (Depends-on): Likewise.
15987         * modules/readlink (Depends-on): Likewise.
15988         * modules/same (Depends-on): Likewise.
15989
15990         stat: fix Solaris 9 bug
15991         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
15992         slash.
15993         * lib/stat.c (rpl_stat): Work around it.
15994         * doc/posix-functions/stat.texi (stat): Update documentation.
15995
15996         stat: new module, for mingw bug
15997         * modules/stat: New file.
15998         * lib/stat.c: Likewise.
15999         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
16000         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
16001         * modules/sys_stat (Makefile.am): Use them.
16002         * lib/sys_stat.in.h (stat): Declare replacement.
16003         * lib/openat.c (fstatat): Deal with lstat and stat being function
16004         macros.
16005         * modules/openat (Depends-on): Add inline.
16006         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
16007         * doc/posix-functions/stat.texi (stat): Likewise.
16008         * modules/stat-tests: New test.
16009         * tests/test-stat.c: Likewise.
16010
16011 2009-09-19  Jim Meyering  <meyering@redhat.com>
16012
16013         syntax-check: detect unnecessary inclusion of canonicalize.h
16014         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
16015
16016 2009-09-19  Eric Blake  <ebb9@byu.net>
16017
16018         canonicalize-lgpl: adjust clients to use correct header
16019         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
16020         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
16021         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
16022         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
16023         * lib/progreloc.c (includes): Likewise.
16024
16025 2009-09-19  Jim Meyering  <meyering@redhat.com>
16026
16027         test-posixtm.c: correct a comment
16028         * tests/test-posixtm.c: Correct first-line comment.
16029         Spotted by Eric Blake.
16030
16031 2009-09-16  Jim Meyering  <meyering@redhat.com>
16032
16033         posixtm-tests: make T const-correct; add a test case
16034         * tests/test-posixtm.c (T): Declare const.
16035         Add a test for -(2^31+1).
16036         Remove useless can-succeed-only-in-2002 test.
16037
16038         posixtm-tests: adjust the sole failing test
16039         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
16040         expected output matches what mktime now produces.  Cross-checked via
16041         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
16042
16043         posixtm: move #ifdef'd tests into a new module
16044         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
16045         * tests/test-posixtm.c: ... this new file.
16046         * modules/posixtm-tests: New module.
16047
16048 2009-09-19  Eric Blake  <ebb9@byu.net>
16049
16050         openat: simplify use of at-func.c
16051         * lib/at-func.c (includes): Include prerequisites here, to
16052         simplify requirements on client files.
16053         * lib/openat-priv.h: Add double-inclusion guard.
16054         * lib/faccessat.c (includes): Simplify.
16055         * lib/fchmodat.c (includes): Likewise.
16056         * lib/fchownat.c (includes): Likewise.
16057         * lib/mkdirat.c (includes): Likewise.
16058         * lib/mkfifoat.c (includes): Likewise.
16059         * lib/symlinkat.c (includes): Likewise.
16060
16061         openat: allow return of fd 0
16062         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
16063         * modules/save-cwd (Depends-on): Replace fcntl-safer with
16064         unistd-safer.
16065         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
16066         <fcntl.h>; this module does not leak fds.
16067         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
16068         must be allowed to return 0, leaving openat_safer to add the
16069         safety.
16070         (openat_permissive): Avoid writing to just-opened fd 2 if
16071         restoring the current directory fails.
16072         * lib/openat-die.c (openat_restore_fail): Add comment.
16073         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
16074         (save_cwd): Guarantee safe fd, but without use of open_safer.
16075         * tests/test-openat.c: New test.
16076         * modules/openat-tests (Files, Makefile.am): Distribute and build
16077         new file.
16078
16079         relocatable-prog-wrapper: fix build
16080         * modules/relocatable-prog-wrapper (Files): Update name of
16081         canonicalize m4 file, broken on 2009-09-17.
16082         Reported by emad hajjar <aleppos@hotmail.com>.
16083
16084 2009-09-19  Bruno Haible  <bruno@clisp.org>
16085
16086         * lib/safe-alloc.h: Use the standard header with GPL copyright.
16087         * lib/safe-alloc.c: Likewise.
16088         Reported by Ian Beckwith <ianb@erislabs.net>.
16089
16090 2009-09-18  Bruno Haible  <bruno@clisp.org>
16091
16092         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
16093         Reported by <erobles@sensacd.com.mx>.
16094
16095 2009-09-17  Eric Blake  <ebb9@byu.net>
16096
16097         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
16098         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
16099         slashes when checking if last component is missing.
16100         * tests/test-canonicalize.c (main): Test this.
16101
16102         canonicalize, canonicalize-lgpl: honor // if distinct from /
16103         * modules/canonicalize (Files): Add double-slash-root.m4.
16104         * modules/canonicalize-lgpl (Files): Likewise.
16105         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
16106         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
16107         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
16108         fallback definition.
16109         (canonicalize_filename_mode): Use it to protect //.
16110         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
16111         (__realpath): Likewise.
16112         * tests/test-canonicalize.c (main): Test this.
16113         * tests/test-canonicalize-lgpl.c (main): Likewise.
16114         * modules/canonicalize-tests (Depends-on): Add same-inode.
16115         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
16116
16117         canonicalize-lgpl: fix glibc bug with trailing slash
16118         * m4/canonicalize-lgpl.m4: Move contents...
16119         * m4/canonicalize.m4: ...here.
16120         (gl_CANONICALIZE_LGPL): Factor realpath check...
16121         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
16122         glibc 2.3.5 bug, fixed 2005-04-27.
16123         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
16124         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
16125         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
16126         * modules/canonicalize-lgpl (Files): Manage file rename.
16127         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
16128         * modules/stdlib (Makefile.am): Substitute witness.
16129         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
16130         is needed.
16131         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
16132         replacement is required.
16133         * lib/canonicalize.c (canonicalize_file_name): Likewise.
16134         * doc/glibc-functions/canonicalize_file_name.texi
16135         (canonicalize_file_name): Document this.
16136         * doc/posix-functions/realpath.texi (realpath): Likewise.
16137
16138         canonicalize-lgpl: reject non-directory with trailing slash
16139         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
16140         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
16141         catches failures in glibc 2.3.5.
16142         * tests/test-canonicalize.c (main): Likewise.
16143
16144         canonicalize-lgpl: use native realpath if it works
16145         * lib/canonicalize-lgpl.c (realpath): Guard with
16146         FUNC_REALPATH_WORKS.
16147         * lib/stdlib.in.h (realpath): Make declaration optional based on
16148         HAVE_REALPATH.
16149         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
16150         native realpath works.
16151         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
16152         * modules/stdlib (Makefile.am): Substitute witness.
16153
16154         canonicalize, canonicalize-lgpl: use <stdlib.h>
16155         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
16156         (Include): Mention <stdlib.h>.
16157         (configure.ac): Mention functions we provide.
16158         * modules/canonicalize (configure.ac): Likewise.
16159         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
16160         realpath if canonicalize_file_name is missing.
16161         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
16162         * modules/stdlib (Makefile.am): Substitute witnesses.
16163         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
16164         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
16165         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
16166         * NEWS: Document this.
16167         * doc/glibc-functions/canonicalize_file_name.texi
16168         (canonicalize_file_name): Likewise.
16169         * doc/posix-functions/realpath.texi (realpath): Likewise.
16170         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
16171
16172         test-canonicalize: consolidate into single C program
16173         * tests/test-canonicalize.sh: Delete; move setup into...
16174         * tests/test-canonicalize.c (main): ...the program, making it
16175         easier to run in debugger.  Add some tests.
16176         * modules/canonicalize-tests (Files): Remove unused file.
16177         (Depends-on): Add progname.
16178         (configure.ac, Makefile.am): Simplify.
16179
16180         test-canonicalize-lgpl: consolidate into single C program
16181         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
16182         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
16183         easier to run in debugger.  Add some tests.
16184         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
16185         (configure.ac, Makefile.am): Simplify.
16186
16187         canonicalize: avoid resolvepath
16188         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
16189         unnecessary checks.
16190         * lib/canonicalize.c (includes): Simplify.
16191         (canonicalize_file_name): Drop resolvepath implementation.
16192         * modules/canonicalize (Depends-on): Drop filenamecat.
16193
16194         canonicalize: don't lose errno
16195         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
16196         over calls to free.
16197
16198         canonicalize: simplify errno handling
16199         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
16200         assignment.
16201
16202         canonicalize, canonicalize-lgpl: update module dependencies
16203         * modules/canonicalize (Depends-on): Add extensions, lstat,
16204         pathmax, stdlib.
16205         (Files): Drop pathmax.h.
16206         (configure.ac): Adjust macro name.
16207         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
16208         lstat, stdlib, sys_stat.
16209         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
16210         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
16211         extensions.
16212         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
16213         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
16214         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
16215         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
16216         declaration, if available.
16217         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
16218         we can rely on the readlink module.
16219         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
16220         (includes): Use <unistd.h> unconditionally.
16221
16222 2009-09-17  Eric Blake  <ebb9@byu.net>
16223
16224         maint: make Include sections of modules consistent
16225         * modules/alloca: Use only header name; no need to list #include.
16226         * modules/alloca-opt: Likewise.
16227         * modules/arpa_inet: Likewise.
16228         * modules/canon-host: Likewise.
16229         * modules/configmake: Likewise.
16230         * modules/dirent: Likewise.
16231         * modules/eealloc: Likewise.
16232         * modules/environ: Likewise.
16233         * modules/fchdir: Likewise.
16234         * modules/fcntl: Likewise.
16235         * modules/fcntl-h: Likewise.
16236         * modules/gethrxtime: Likewise.
16237         * modules/gettime: Likewise.
16238         * modules/ignore-value: Likewise.
16239         * modules/inet_ntop: Likewise.
16240         * modules/inet_pton: Likewise.
16241         * modules/inttypes: Likewise.
16242         * modules/isnand-nolibm: Likewise.
16243         * modules/isnanf-nolibm: Likewise.
16244         * modules/mbchar: Likewise.
16245         * modules/mbfile: Likewise.
16246         * modules/mbiter: Likewise.
16247         * modules/mbuiter: Likewise.
16248         * modules/netdb: Likewise.
16249         * modules/netinet_in: Likewise.
16250         * modules/nproc: Likewise.
16251         * modules/pagealign_alloc: Likewise.
16252         * modules/poll: Likewise.
16253         * modules/printf-frexp: Likewise.
16254         * modules/pthread: Likewise.
16255         * modules/putenv: Likewise.
16256         * modules/random_r: Likewise.
16257         * modules/relocatable-prog: Likewise.
16258         * modules/search: Likewise.
16259         * modules/select: Likewise.
16260         * modules/selinux-h: Likewise.
16261         * modules/settime: Likewise.
16262         * modules/signal: Likewise.
16263         * modules/size_max: Likewise.
16264         * modules/socklen: Likewise.
16265         * modules/ssize_t: Likewise.
16266         * modules/stdarg: Likewise.
16267         * modules/stdbool: Likewise.
16268         * modules/stddef: Likewise.
16269         * modules/stdint: Likewise.
16270         * modules/stdio: Likewise.
16271         * modules/stdlib: Likewise.
16272         * modules/string: Likewise.
16273         * modules/strings: Likewise.
16274         * modules/sys_file: Likewise.
16275         * modules/sys_ioctl: Likewise.
16276         * modules/sys_select: Likewise.
16277         * modules/sys_socket: Likewise.
16278         * modules/sys_stat: Likewise.
16279         * modules/sys_time: Likewise.
16280         * modules/sys_times: Likewise.
16281         * modules/sys_utsname: Likewise.
16282         * modules/sys_wait: Likewise.
16283         * modules/sysexits: Likewise.
16284         * modules/time: Likewise.
16285         * modules/times: Likewise.
16286         * modules/tmpfile: Likewise.
16287         * modules/trim: Likewise.
16288         * modules/unistd: Likewise.
16289         * modules/wchar: Likewise.
16290         * modules/wctype: Likewise.
16291
16292 2009-09-17  Bruno Haible  <bruno@clisp.org>
16293
16294         Make getdate.y compile on QNX and NetBSD 5 / i386.
16295         * m4/getdate.m4 (gl_GETDATE): Conditionally define
16296         TIME_T_FITS_IN_LONG_INT.
16297         * lib/getdate.y (long_time_t): New type.
16298         (relative_time): Change type of 'seconds' field to long_time_t.
16299         (get_date): Update types of local variables. Check against overflow
16300         during conversion from long_time_t to time_t.
16301         Reported by Matt Kraai <kraai@ftbfs.org>
16302         and Hasso Tepper <hasso@netbsd.org>.
16303
16304 2009-09-17  Bruno Haible  <bruno@clisp.org>
16305
16306         * modules/COPYING: Update copyright years.
16307         * modules/README: Likeiwse.
16308         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
16309         Reported by Ian Beckwith <ianb@erislabs.net>.
16310
16311 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
16312
16313         * users.txt: Update references for gnuit package.
16314
16315 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
16316
16317         * m4/getdelim.m4: Fix typo in copyright line.
16318
16319 2009-09-17  Bruno Haible  <bruno@clisp.org>
16320
16321         * lib/atoll.c: Use the standard header with GPL copyright.
16322         * lib/argz.in.h: Likewise.
16323         * lib/glob.c: Likewise.
16324         * lib/glob-libc.h: Likewise.
16325         * lib/random_r.c: Likewise.
16326         * lib/siglist.h: Likewise.
16327         * lib/strsignal.c: Likewise.
16328         Reported by Ian Beckwith <ianb@erislabs.net>.
16329
16330 2009-09-17  Eric Blake  <ebb9@byu.net>
16331
16332         rmdir: ensure correct dependency order
16333         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
16334
16335 2009-09-17  Bruno Haible  <bruno@clisp.org>
16336
16337         Disable assertion that fails on NetBSD 5 / i386.
16338         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
16339         Reported by Sam Steingold <sds@gnu.org>
16340         and Hasso Tepper <hasso@netbsd.org>.
16341
16342 2009-09-16  Eric Blake  <ebb9@byu.net>
16343
16344         unlinkdir: port to mingw
16345         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
16346         on which no one can unlink a directory.
16347
16348         stdlib: sort witness names
16349         * modules/stdlib (Makefile.am): Sort replacements.
16350         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
16351         * lib/stdlib.in.h: Likewise.
16352
16353         parse-duration-tests: avoid link failure
16354         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
16355         LIBINTL.
16356         Reported by Tom G. Christensen.
16357
16358         openat-tests: ensure unlinkat behaves like rmdir
16359         * tests/test-rmdir.c (main): Factor guts...
16360         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
16361         * modules/rmdir-tests (Files): Ship new file.
16362         * modules/openat-tests: New test.
16363         * tests/test-unlinkat.c: Likewise.
16364
16365         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
16366         * modules/rmdir-errno (Status, Notice): Now obsolete.
16367
16368         rmdir: work around cygwin 1.5.x and mingw bugs
16369         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
16370         * lib/rmdir.c (rmdir): Work around it.
16371         * modules/rmdir (Status, Notice): No longer obsolete.
16372         (Files): Add dos.m4.
16373         (Depends-on): Add unistd.
16374         (configure.ac): Set witnesses.
16375         (License): Relax to LGPLv2+.
16376         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
16377         * modules/unistd (Makefile.am): Substitute witnesses.
16378         * lib/unistd.in.h (rmdir): Declare replacement.
16379         * doc/posix-functions/rmdir.texi (rmdir): Document this.
16380         * modules/rmdir-tests: New tests.
16381         * tests/test-rmdir.c: Likewise.
16382
16383 2009-09-15  Eric Blake  <ebb9@byu.net>
16384
16385         fchdir: improve use of replacement functions
16386         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
16387         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
16388         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
16389         REPLACE_CLOSEDIR.
16390         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
16391         * modules/sys_stat (Makefile.am): Substitute correct witness.
16392         * modules/dirent (Makefile.am): Likewise.
16393         * modules/unistd (Makefile.am): Likewise.
16394         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
16395         * lib/unistd.in.h (dup): Likewise.
16396         * lib/sys_stat.in.h (fstat): Likewise.
16397
16398         maint: ignore gnulib-tool temp files
16399         * .gitignore: Ignore files created during gnulib-tool --test.
16400
16401 2009-09-13  Jim Meyering  <meyering@redhat.com>
16402
16403         posixtm: don't reject a time that specify "60" as the number of seconds
16404         * lib/posixtm.c (posixtime): The code to reject invalid dates
16405         would also reject a time specified with the .60 suffix.
16406         But POSIX allows that, in order to accommodate leap seconds.
16407         So don't reject it.
16408         (main): Adjust tests accordingly.
16409         * modules/posixtm (Depends-on): Add stpcpy.
16410
16411 2009-09-11  Jim Meyering  <meyering@redhat.com>
16412
16413         announce-gen: include [$release_type] in emitted Subject:
16414         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
16415         e.g., [stable] in the emitted Subject: line.
16416
16417 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16418
16419         Remove obsolete macros from several modules.
16420         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
16421         obsolete Autoconf macros with their modern counterparts.
16422         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
16423         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
16424         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
16425         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
16426         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
16427         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
16428         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
16429         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
16430         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
16431         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
16432         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
16433         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
16434         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
16435         * m4/sockets.m4 (gl_SOCKETS): Likewise.
16436         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
16437         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
16438         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
16439         * m4/time_r.m4 (gl_TIME_R): Likewise.
16440         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
16441         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
16442         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
16443
16444         Fix copyright header in build-aux scripts.
16445         * build-aux/git-version-gen: Fix copyright header to match GPLv3
16446         recommendation.
16447         * build-aux/ncftpput-ftp: Likewise.
16448         * build-aux/update-copyright: Likewise.
16449
16450 2009-09-09  Eric Blake  <ebb9@byu.net>
16451
16452         test-link: allow Linux choice of errno
16453         * tests/test-link.c (main): Relax test for alternate error.
16454
16455         strndup: fix improper m4 caching
16456         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
16457         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
16458         (gl_PREREQ_STRNDUP): Delete.
16459         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
16460         * modules/string (Makefile.am): Substitute it.
16461         * lib/string.in.h (strndup): Modernize prototype.
16462
16463         getcwd: port to mingw
16464         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
16465         different from the POSIX assumptions made throughout the getcwd
16466         module; fortunately, the mingw getcwd does not need replacement.
16467         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
16468         * modules/getcwd-tests: New test.
16469         * tests/test-getcwd.c: Likewise.
16470
16471         link: fix platform bugs
16472         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
16473         * lib/link.c (link): Work around them.  Fix related mingw bug.
16474         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
16475         * modules/unistd (Makefile.am): Substitute it.
16476         * lib/unistd.in.h (link): Declare replacement.
16477         * doc/posix-functions/link.texi (link): Document this.
16478         * modules/link (Depends-on): Add strdup-posix, sys_stat.
16479
16480         test-link: consolidate into single C program, test more cases
16481         * tests/test-link.sh: Delete.
16482         * tests/test-link.c: Test more error conditions.  Exposes bugs on
16483         at least Cygwin and Solaris.
16484         * modules/link-tests (Files): Remove unused file.
16485         (Depends-on): Add errno, sys_stat.
16486         (Makefile.am): Simplify.
16487
16488 2009-09-08  Bruno Haible  <bruno@clisp.org>
16489
16490         Work around towlower, towupper bug on mingw.
16491         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
16492         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
16493         * doc/posix-functions/towlower.texi: Mention the mingw bug.
16494         * doc/posix-functions/towupper.texi: Likewise.
16495         Reported by Eric Blake.
16496
16497 2009-09-08  Jim Meyering  <meyering@redhat.com>
16498
16499         build: don't try to run autoheader if we don't use it
16500         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
16501         is not used in configure.ac.
16502
16503 2009-09-08  Eric Blake  <ebb9@byu.net>
16504
16505         euidaccess: fix compilation error
16506         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
16507
16508         rawmemchr: relax license
16509         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
16510         okay.
16511         Reported by Jim Meyering.
16512
16513         mkfifoat: new module
16514         * modules/mkfifoat: New file.
16515         * lib/mkfifoat.c: Likewise.
16516         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
16517         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
16518         * modules/sys_stat (Makefile.am): Use them.
16519         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
16520         * MODULES.html.sh (File system functions): Mention module.
16521         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
16522         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
16523         * modules/mkfifoat-tests: New test.
16524         * tests/test-mkfifoat.c: Likewise.
16525
16526         strchrnul: relax license
16527         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
16528         okay.
16529         Reported by Jim Meyering.
16530
16531 2009-09-08  Eric Blake  <ebb9@byu.net>
16532
16533         fstatat: fix compilation on Solaris
16534         * lib/fstatat.c (includes): Add fcntl.h.
16535         Reported by Pádraig Brady.
16536
16537 2009-09-07  Eric Blake  <ebb9@byu.net>
16538
16539         rename: modernize replacement
16540         * modules/rename (Depends-on): Add stdio.
16541         (configure.ac): Declare witness.
16542         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
16543         stdio take care of replacement.
16544         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
16545         * modules/stdio (Makefile.am): Substitute them.
16546         * lib/stdio.in.h (rename): Declare replacement.
16547         * lib/rename.c (includes): Allow cross-compilation to non-windows
16548         machines.
16549         * doc/posix-functions/rename.texi (rename): Improve
16550         documentation.
16551
16552         stdio: sort witness names
16553         * modules/stdio (Makefile.am): Sort replacements.
16554         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
16555         * lib/stdio.in.h: Likewise.
16556
16557         getcwd: minor cleanups
16558         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
16559         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
16560
16561         openat: provide more convenience names
16562         * modules/faccessat (configure.ac): Add C witness.
16563         * lib/unistd.in.h (readlinkat): Fix typo.
16564         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
16565         convenience wrappers.
16566         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
16567         wrappers in syntax checks.
16568
16569 2009-09-06  Eric Blake  <ebb9@byu.net>
16570
16571         doc: fix comments in recent patches
16572         * lib/faccessat.c: Mention correct function.
16573         * lib/fchmodat.c: Likewise.
16574         * lib/fchownat.c: Likewise.
16575         * lib/symlinkat.c: Likewise.
16576         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
16577         constants.
16578
16579         faccessat, symlinkat: continue cleanup of previous patch
16580         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
16581         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
16582         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
16583         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
16584         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
16585         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
16586         set.
16587
16588 2009-09-06  Bruno Haible  <bruno@clisp.org>
16589
16590         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
16591         (fstatat): Declare if GNULIB_FSTATAT is set.
16592         (mkdirat): Declare if GNULIB_MKDIRAT is set.
16593         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
16594         (unlinkat): Declare if GNULIB_UNLINKAT is set.
16595         * modules/fcntl-h (Files): Remove m4/openat.m4.
16596         * modules/sys_stat (Files): Remove m4/openat.m4.
16597         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
16598         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
16599         * modules/unistd (Files): Remove m4/openat.m4.
16600         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
16601         GNULIB_OPENAT.
16602         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
16603         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
16604         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
16605         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
16606         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
16607         gl_OPENAT_DEFAULTS.
16608         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
16609         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
16610         Don't require gl_OPENAT_DEFAULTS.
16611         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
16612         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
16613         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
16614         (gl_OPENAT_DEFAULTS): Remove macro.
16615
16616 2009-09-06  Bruno Haible  <bruno@clisp.org>
16617
16618         * modules/openat (configure.ac): Remove unneeded witness.
16619
16620 2009-09-06  Bruno Haible  <bruno@clisp.org>
16621
16622         Set errno to ENOSYS when a function is entirely unsupported.
16623         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
16624         EOPNOTSUPP.
16625         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
16626         * modules/chown (Depends-on): Remove errno.
16627
16628 2009-09-06  Bruno Haible  <bruno@clisp.org>
16629
16630         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
16631
16632 2009-09-06  Bruno Haible  <bruno@clisp.org>
16633
16634         * lib/sys_stat.in.h: Fix preprocessor command indentation.
16635
16636 2009-09-06  Ben Pfaff  <blp@gnu.org>
16637             Bruno Haible  <bruno@clisp.org>
16638
16639         Work around a glibc bug in strtok_r.
16640         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
16641         Undefine if UNDEFINE_STRTOK_R is set.
16642         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
16643         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
16644         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
16645         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
16646         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
16647         UNDEFINE_STRTOK_R.
16648         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
16649
16650 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
16651
16652         exclude: minor fix
16653         * lib/exclude.c: Include wctype.h
16654
16655 2009-09-06  Akim Demaille  <demaille@gostai.com>
16656
16657         bootstrap: improve error message
16658         * build-aux/bootstrap (find_tool): Upon failure, report the list
16659         of candidates.
16660         Honor the initial value of the envvar.
16661
16662 2009-09-05  Eric Blake  <ebb9@byu.net>
16663
16664         symlinkat: new module
16665         * modules/symlinkat: New file.
16666         * lib/symlinkat.c: Likewise.
16667         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
16668         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
16669         * modules/unistd (Makefile.am): Use them.
16670         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
16671         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
16672         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
16673         * MODULES.html.sh (File system functions): Mention module.
16674         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
16675         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
16676         * modules/symlinkat-tests: New test.
16677         * tests/test-symlinkat.c: Likewise.
16678
16679         test-openat-safer: add more checks
16680         * tests/test-openat-safer.c (main): Check more code paths.
16681
16682 2009-09-05  Jim Meyering  <meyering@redhat.com>
16683
16684         syntax-check: detect unnecessary inclusion of openat.h
16685         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
16686
16687 2009-09-05  Bruno Haible  <bruno@clisp.org>
16688
16689         Support towlower, towupper.
16690         * doc/posix-functions/towlower.texi: Mention module wctype.
16691         * doc/posix-functions/towupper.texi: Likewise.
16692         * lib/wctype.in.h (towlower, towupper): New functions.
16693         * tests/test-wctype.c: Include stdio.h, stdlib.h.
16694         (ASSERT): New macro.
16695         (e): New variable.
16696         (main): Test also towlower, towupper. Test WEOF argument.
16697         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
16698
16699 2009-09-05  Bruno Haible  <bruno@clisp.org>
16700
16701         Fix conversion behaviour when the input is invalid.
16702         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
16703         mark occurring in first pass of indirect conversion.
16704         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
16705         input.
16706         Found by clang's static analyzer.
16707
16708 2009-09-05  Bruno Haible  <bruno@clisp.org>
16709
16710         * tests/test-striconveh.c (main): Test indirect conversion on platforms
16711         where direct conversion is possible.
16712
16713 2009-09-04  Eric Blake  <ebb9@byu.net>
16714
16715         openat: fail with ENOENT on empty name
16716         * lib/openat-proc.c (openat_proc_name): Special-case the empty
16717         buffer.
16718
16719         link-follow: fix logic bug in prior patch
16720         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
16721         reversed sense of yes and no in prior patch.  Avoid confusing
16722         compilation failure with desired semantics.
16723
16724         link-follow: accomodate mingw and cross-compilation
16725         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
16726         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
16727         cross-compilation results to -1, to make linkat easier to
16728         implement when cross-compiling.  Trivially support mingw.
16729         * modules/link-follow (configure.ac): Call new name.
16730         * NEWS: Mention this.
16731
16732 2009-09-03  Eric Blake  <ebb9@byu.net>
16733
16734         faccessat: compile replacement
16735         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
16736         needed.
16737
16738         fts: fix compilation error
16739         * lib/fts.c (includes): Re-add "openat.h", for
16740         openat_needs_fchdir.
16741
16742         faccessat: new module
16743         * modules/faccessat: New file.
16744         * lib/faccessat.c: Likewise.
16745         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
16746         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
16747         * modules/unistd (Makefile.am): Use it.
16748         * lib/unistd.in.h (faccessat): Declare it.
16749         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
16750         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
16751         * MODULES.html.sh (File system functions): Mention it.
16752         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
16753         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
16754
16755         euidaccess: prefer POSIX over non-standard implementation
16756         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
16757         * lib/euidaccess.c (euidaccess): Use it if available.
16758
16759         openat: make template easier to use
16760         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
16761         AT_FUNC_F2 to be undefined.
16762         (VALIDATE_FLAG): New macro; use it to reject bad flags.
16763         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
16764         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
16765         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
16766         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
16767         Likewise.
16768         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
16769         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
16770         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
16771         Likewise.
16772
16773         openat: declare in POSIX headers
16774         * NEWS: Mention this.
16775         * modules/openat (configure.ac): Declare witnesses.
16776         (Depends-on): Add fcntl-h, sys_stat, unistd.
16777         (Include): Mention correct headers.
16778         * modules/fcntl-h (Depends-on): Add link-warning.
16779         (Files): Add openat.m4.
16780         (Makefile.am): Substitute witnesses.
16781         * modules/sys_stat (Files, Makefile.am): Likewise.
16782         * modules/unistd (Files, Makefile.am): Likewise.
16783         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
16784         (gl_OPENAT_DEFAULTS): New macro.
16785         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
16786         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
16787         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
16788         (SYS_STAT_H): Remove unused variable.
16789         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
16790         * lib/fcntl--.h (includes): Remove unneeded header.
16791         * lib/openat-safer.c (includes): Likewise.
16792         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
16793         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
16794         appropriate headers.
16795         (__OPENAT_PREFIX): Delete.
16796         * lib/fcntl.in.h (openat): Provide declaration.
16797         (AT_FDCWD): Fix Solaris bug.
16798         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
16799         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
16800         * lib/fchmodat.c (includes):  Adjust to find declaration.
16801         * lib/fchownat.c (includes): Likewise.
16802         * lib/mkdirat.c (includes): Likewise.
16803         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
16804         still visible.
16805
16806 2009-09-02  Eric Blake  <ebb9@byu.net>
16807
16808         errno: use consistently
16809         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
16810         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
16811         * lib/canonicalize.c (ELOOP): Likewise.
16812         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
16813         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
16814         * lib/lchown.c (EOPNOTSUPP): Likewise.
16815         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
16816         * lib/savewd.c (ESTALE): Likewise.
16817         * lib/settime.c (ENOSYS): Likewise.
16818         * lib/utimens.c (ENOSYS): Likewise.
16819         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
16820         * lib/chdir-safer.c (ELOOP): Likewise.
16821         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
16822         * modules/c-stack (Depends-on): Add errno.
16823         * modules/canonicalize (Depends-on): Likewise.
16824         * modules/chdir-safer (Depends-on): Likewise.
16825         * modules/fdopendir (Depends-on): Likewise.
16826         * modules/inet_ntop (Depends-on): Likewise.
16827         * modules/inet_pton (Depends-on): Likewise.
16828         * modules/lchown (Depends-on): Likewise.
16829         * modules/openat (Depends-on): Likewise.
16830         * modules/savewd (Depends-on): Likewise.
16831         * modules/settime (Depends-on): Likewise.
16832         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
16833
16834         fts: avoid leaking fds
16835         * modules/fts (Depends-on): Add cloexec.
16836         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
16837         flag.
16838
16839         fts: make directory fds more robust
16840         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
16841         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
16842
16843         backupfile, chdir-long, fts, savedir: make safer
16844         * lib/backupfile.c (includes): Use "dirent--.h", since
16845         numbered_backup can write to stderr during readdir.
16846         * lib/savedir.c (includes): Likewise.
16847         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
16848         emulation can write to stderr on failure.
16849         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
16850         * lib/getcwd.c: Document why opendir_safer is unused.
16851         * lib/glob.c: Likewise.
16852         * lib/scandir.c: Likewise.
16853         * lib/openat-proc.c: Likewise, for open_safer.
16854         * modules/backupfile (Depends-on): Add dirent-safer.
16855         * modules/savedir (Depends-on): Likewise.
16856         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
16857         * modules/chdir-long (Depends-on): Add openat-safer.
16858
16859         openat-safer: new module
16860         * modules/openat-safer: New file.
16861         * lib/openat-safer.c: Likewise.
16862         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
16863         * lib/fcntl-safer.h (openat_safer): Declare.
16864         * lib/fcntl--.h (openat): Override.
16865         * MODULES.html.sh (File descriptor based I/O): Mention it.
16866         * lib/openat.h: Add double-inclusion guards.
16867         * lib/openat.c (includes): Only include "fcntl-safer.h", not
16868         "fcntl--.h", so we can implement openat.
16869         * modules/openat-safer-tests: New test.
16870         * tests/test-openat-safer.c: New file.
16871
16872         dirent-safer: new module
16873         * modules/dirent-safer: New file.
16874         * lib/dirent--.h: Likewise.
16875         * lib/dirent-safer.h: Likewise.
16876         * lib/opendir-safer.c: Likewise.
16877         * m4/dirent-safer.m4: Likewise.
16878         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
16879         * modules/dirent-safer-tests: New test.
16880         * tests/test-dirent-safer.c: New file.
16881         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
16882
16883         fdopendir: optimize on mingw
16884         * lib/unistd.in.h (_gl_directory_name): New prototype.
16885         * lib/fchdir.c (_gl_directory_name): Implement it.
16886         (fchdir): Use it to simplify implementation.
16887         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
16888         fchdir, when available, to avoid calling [f]chdir().
16889
16890         fdopendir: split into its own module
16891         * lib/openat.c (fdopendir): Move...
16892         * lib/fdopendir.c: ...into new file.
16893         * modules/fdopendir: New module.
16894         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
16895         * modules/openat (Depends-on): Add fdopendir.
16896         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
16897         fdopendir here.
16898         * modules/savedir (Depends-on): Only need fdopendir, not full
16899         openat.
16900         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
16901         * lib/openat.h (fdopendir): Drop prototype.
16902         * lib/dirent.in.h (fdopendir): Provide prototype.
16903         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
16904         * modules/dirent (Makefile.am): Substitute them.
16905         * MODULES.html.sh (File system functions): Mention it.
16906         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
16907         * modules/fdopendir-tests: New file.
16908         * tests/test-fdopendir.c: Likewise.
16909
16910         fchdir: use more consistent macro convention
16911         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
16912         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
16913         REPLACE_FCHDIR, rather than relying on config.h macros.
16914         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
16915         inside a single make-time REPLACE_FCHDIR block, rather than using
16916         the config.h FCHDIR_REPLACEMENT.
16917         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
16918         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
16919         Manage fstat replacement.
16920         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
16921         REPLACE_FCHDIR.
16922         * modules/sys_stat (Files): Add m4/unistd_h.m4.
16923         (Makefile.am): Substitute REPLACE_FCHDIR.
16924         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
16925         FCHDIR_REPLACEMENT.
16926         * lib/dup-safer.c (dup_safer): Likewise.
16927         * lib/dup2.c (rpl_dup2): Likewise.
16928         * lib/dup3.c (rpl_dup3): Likewise.
16929         * lib/open.c (rpl_open): Likewise.
16930
16931         fchdir: simplify error handling, and support dup3
16932         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
16933         stdbool, malloc-posix, realloc-posix.
16934         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
16935         (ensure_dirs_slot): Return false on allocation failure.
16936         (rpl_dup2): Delete.
16937         (_gl_register_dup): New function.
16938         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
16939         (_gl_register_fd): Close fd on allocation failure.
16940         * lib/fcntl.in.h (_gl_register_fd): Update signature.
16941         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
16942         prototype.
16943         (rpl_dup2_fchdir): Delete prototype.
16944         * lib/open.c (open): Update caller.
16945         * lib/dup2.c (dup2): Track fchdir metadata.
16946         * lib/dup3.c (dup3): Likewise.
16947         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
16948         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
16949
16950 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16951
16952         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
16953         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
16954         don't pass arguments to AC_OUTPUT.
16955
16956 2009-09-02  Bruno Haible  <bruno@clisp.org>
16957
16958         * modules/mkdtemp (License): Relicense under LGPLv2+.
16959         Reported by Paolo Bonzini.
16960
16961 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16962
16963         Replace uses of obsolete autoconf macros in Jim's modules.
16964         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
16965         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
16966         can evoke a warning from autoconf when run with -Wobsolete
16967         enabled.  They were declared obsolete for good reasons (see
16968         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
16969         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
16970         should not continue using the deprecated macros.
16971         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
16972         obsolete Autoconf macros with modern counterparts.
16973         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
16974         * m4/dos.m4 (gl_AC_DOS): Likewise.
16975         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
16976         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
16977         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
16978         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
16979         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
16980         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
16981         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
16982         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
16983         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
16984         Likewise.
16985         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
16986         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
16987         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
16988         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
16989         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
16990         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
16991
16992 2009-09-01  Eric Blake  <ebb9@byu.net>
16993
16994         fchdir: fix off-by-one bug in previous patch
16995         * lib/fchdir.c (rpl_fstat): Use correct bounds.
16996         (_gl_unregister_fd): Delete useless if.
16997
16998 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
16999
17000         maint.mk: sort the list of syntax-check rules
17001         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
17002         easier to get a sense of progress when the rules are run sequentially
17003         and take a long time.
17004
17005 2009-09-01  Simon Josefsson  <simon@josefsson.org>
17006
17007         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
17008         * modules/netinet_in: Likewise.
17009         * modules/sys_file: Likewise.
17010         * modules/sys_ioctl: Likewise.
17011         * modules/sys_select: Likewise.
17012         * modules/sys_socket: Likewise.
17013         * modules/sys_stat: Likewise.
17014         * modules/sys_time: Likewise.
17015         * modules/sys_times: Likewise.
17016         * modules/sys_utsname: Likewise.
17017         * modules/sys_wait: Likewise.
17018
17019 2009-09-01  Jim Meyering  <meyering@redhat.com>
17020
17021         fts: help ensure that return values are not ignored
17022         * lib/fts_.h (__GNUC_PREREQ): Define.
17023         (__attribute_warn_unused_result__): Define.
17024         (fts_children, fts_close, fts_open, fts_read): Declare with
17025         __attribute_warn_unused_result__.
17026
17027         fts: fts_close now fails also when closing a dir file descriptor fails
17028         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
17029         and propagate to caller, along with errno.
17030
17031         announce-gen: correct formatting in --help output
17032         * build-aux/announce-gen (usage): Move the one-line description in
17033         --help output "up", to where it belongs, just after Usage:.
17034
17035 2009-08-31  Eric Blake  <ebb9@byu.net>
17036
17037         fchdir: port to mingw
17038         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
17039         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
17040         opened, then use a substitute.
17041         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
17042         replacement.
17043         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
17044         (_gl_register_fd): No need to check stat if open already filters
17045         all directories.
17046         (fchdir): Fix error condition to match POSIX.
17047         * modules/fchdir (Depends-on): Add sys_stat.
17048         * doc/posix-functions/open.texi (open): Document the limitation.
17049         * modules/fchdir-tests: New file.
17050         * tests/test-fchdir.c: Likewise.
17051
17052         canonicalize: allow cross-testing from cygwin to mingw
17053         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
17054         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
17055         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
17056         Likewise.
17057         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
17058         target does not support symlinks.
17059         * tests/test-canonicalize-lgpl.sh: Likewise.
17060
17061         chown: avoid compilation warning on mingw
17062         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
17063         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
17064         mingw.
17065         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
17066         * modules/chown (Depends-on): Add errno.
17067
17068 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
17069
17070         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
17071         command.
17072
17073 2009-08-31  Jim Meyering  <meyering@redhat.com>
17074
17075         canonicalize: remove useless initialization
17076         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
17077         initialization of local, "end".
17078
17079 2009-08-30  Bruno Haible  <bruno@clisp.org>
17080
17081         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
17082         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
17083         ENOSYS.
17084
17085 2009-08-30  Bruno Haible  <bruno@clisp.org>
17086
17087         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
17088         /usr/xpg4/bin/tr when it exists.
17089         * tests/test-pipe-filter-gi1.sh: Likewise.
17090
17091 2009-08-30  Bruno Haible  <bruno@clisp.org>
17092
17093         Work around deficient /usr/bin/id program on Solaris.
17094         * tests/test-file-has-acl.sh (ID): New variable.
17095         * tests/test-set-mode-acl.sh (ID): Likewise.
17096         * tests/test-copy-acl.sh (ID): Likewise.
17097         * tests/test-copy-file.sh (ID): Likewise.
17098
17099 2009-08-30  Bruno Haible  <bruno@clisp.org>
17100
17101         New module 'xstriconveh'.
17102         * lib/xstriconveh.h: New file.
17103         * lib/xstriconveh.c: New file.
17104         * modules/xstriconveh: New file.
17105
17106 2009-08-30  Bruno Haible  <bruno@clisp.org>
17107
17108         Make it easier to use mem_cd_iconveh.
17109         * lib/striconveh.h (iconveh_t): New type.
17110         (iconveh_open, iconveh_close): New declarations.
17111         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
17112         with a single 'const iconveh_t *' argument.
17113         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
17114         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
17115         with a single 'const iconveh_t *' argument.
17116         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
17117         * tests/test-striconveh.c (main): Update.
17118         * NEWS: Mention the change.
17119
17120 2009-08-30  Bruno Haible  <bruno@clisp.org>
17121
17122         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
17123         problem.
17124
17125 2009-08-30  Bruno Haible  <bruno@clisp.org>
17126
17127         Work around iconv_open problem on Solaris.
17128         * lib/iconv_open-solaris.gperf: New file.
17129         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
17130         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
17131         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
17132         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
17133         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
17134         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
17135
17136 2009-08-29  Jim Meyering  <meyering@redhat.com>
17137
17138         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
17139         * top/maint.mk (cvs-check): Remove target; it was just an alias
17140         to the better-named vc-diff-check.
17141         (maintainer-distcheck): Remove rule.  It was used only from
17142         the (alpha/beta/major) target, and all of its commands but one
17143         were coreutils-specific.
17144         (vc-dist): Remove rule.
17145         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
17146         Run vc-diff-check, not vc-dist.
17147         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
17148
17149 2009-08-27  Bruno Haible  <bruno@clisp.org>
17150
17151         * tests/test-bitrotate.c (main): Remove test that uses a shift count
17152         of 0.
17153
17154 2009-08-27  Bruno Haible  <bruno@clisp.org>
17155
17156         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
17157         compilers.
17158         * doc/func.texi: Document the SunPRO C bug.
17159
17160 2009-08-27  Bruno Haible  <bruno@clisp.org>
17161
17162         Fix link error on Solaris.
17163         * tests/test-parse-duration.c (xstrdup): Remove function.
17164
17165 2009-08-26  Pádraig Brady  <P@draigbrady.com>
17166
17167         ignore-value: handle pointer types, too
17168         * lib/ignore-value.h (__attribute__): Remove definition.
17169         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
17170         of a more concise and more-often effective "(void) i" statement.
17171         (ignore_ptr): New function to suppress warnings from functions that
17172         return pointers, and to make it explicit that one function doesn't
17173         handle all cases.
17174
17175 2009-08-25  Bruno Haible  <bruno@clisp.org>
17176
17177         dup2: work around a Linux bug.
17178         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
17179         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
17180         * doc/posix-functions/dup2.texi: Mention the Linux bug.
17181         Reported by Simon Josefsson.
17182
17183 2009-08-25  Jim Meyering  <meyering@redhat.com>
17184
17185         libguestfs uses gnulib
17186         * users.txt: Add libguestfs.
17187
17188 2009-08-24  Eric Blake  <ebb9@byu.net>
17189
17190         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
17191         * lib/pipe2.c (includes): Add binary-io.h.
17192         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
17193
17194 2009-08-24  Bruno Haible  <bruno@clisp.org>
17195
17196         Tolerate declared but missing accept4 syscall.
17197         * lib/accept4.c (accept4): Invoke original accept4 function first, if
17198         available.
17199         * lib/sys_socket.in.h (accept4): If the function is already present,
17200         override it.
17201         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
17202         * modules/accept4 (Makefile.am): Compile accept4.c always.
17203         Reported by Paolo Bonzini and Eric Blake.
17204
17205 2009-08-23  Bruno Haible  <bruno@clisp.org>
17206
17207         New module 'accept4'.
17208         * lib/sys_socket.in.h (accept4): New declaration.
17209         * lib/accept4.c: New file.
17210         * m4/accept4.m4: New file.
17211         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
17212         GNULIB_ACCEPT4, HAVE_ACCEPT4.
17213         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
17214         HAVE_ACCEPT4.
17215         * modules/accept4: New file.
17216         * doc/glibc-functions/accept4.texi: Mention the new module.
17217
17218 2009-08-24  Jim Meyering  <meyering@redhat.com>
17219
17220         progname: also set global program_invocation_name, when possible
17221         Before this change, a libtool-enabled program that calls glibc's
17222         error function would report the program name as
17223         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
17224         * modules/progname (configure.ac): Check for a declaration of
17225         program_invocation_name.
17226         * lib/progname.c:  Include <errno.h>.
17227         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
17228         Set program_invocation_name.
17229
17230 2009-08-23  Bruno Haible  <bruno@clisp.org>
17231
17232         * lib/dup3.c: Include <string.h>.
17233
17234 2009-08-23  Bruno Haible  <bruno@clisp.org>
17235
17236         * lib/dup3.c (dup3): Test only once whether the system actually exists.
17237         * lib/pipe2.c (pipe2): Likewise.
17238         Suggested by Eric Blake.
17239
17240 2009-08-23  Bruno Haible  <bruno@clisp.org>
17241
17242         Tolerate declared but missing dup3 syscall.
17243         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
17244         * lib/unistd.in.h (dup3): If the function is already present,
17245         override it.
17246         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
17247         * modules/dup3 (Makefile.am): Compile dup3.c always.
17248         Reported by Paolo Bonzini.
17249
17250 2009-08-23  Bruno Haible  <bruno@clisp.org>
17251
17252         Tolerate declared but missing pipe2 syscall.
17253         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
17254         available.
17255         * lib/unistd.in.h (pipe2): If the function is already present,
17256         override it.
17257         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
17258         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
17259         Reported by Paolo Bonzini.
17260
17261 2009-08-23  Bruno Haible  <bruno@clisp.org>
17262
17263         * lib/pipe2.c (pipe2): Move #ifs inside function.
17264
17265 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
17266
17267         quotearg: document limitations of quote_these_too
17268         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
17269         those limitations are created.
17270         * lib/quotearg.h (set_char_quoting): Document that digits and
17271         letters that are special after backslash are not permitted.
17272         (quotearg_char): Cross-reference set_char_quoting documentation.
17273
17274 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
17275
17276         quotearg: implement custom_quoting_style
17277         * lib/quotearg.c: (struct quoting_options): Add left_quote and
17278         right_quote fields.
17279         (set_custom_quoting): New public function.
17280         (quotearg_buffer_restyled): Add left_quote and right_quote
17281         arguments, handle them very much like locale quoting, and update
17282         all uses.
17283         (quotearg_n_custom): New public function.
17284         (quotearg_n_custom_mem): New public function.
17285         (quotearg_custom): New public function.
17286         (quotearg_custom_mem): New public function.
17287         * lib/quotearg.h: Prototype and document new public functions.
17288         (enum quoting_style): For escape_quoting_style and
17289         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
17290         ignored even though they're otherwise like c_quoting_style.
17291         Add custom_quoting_style member and document with comparison to
17292         clocale_quoting_style.
17293         * tests/test-quotearg.c (custom_quotes): New array.
17294         (custom_results): New array.
17295         (main): Extend to test custom quoting.
17296
17297 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
17298
17299         quotearg: fix right quote escaping when it's in quote_these_too
17300         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
17301         quote, be sure to prepend only one backslash.
17302         * tests/test-quotearg.c (use_quote_double_quotes): New function.
17303         (main): Test it.
17304
17305 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
17306
17307         quotearg-tests: test escaping of embedded locale quotes
17308         * tests/test-quotearg.c (struct result_strings): Add member for
17309         new input.
17310         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
17311         (inputs): Add new input.
17312         (results_g): Add expected results.
17313         (flag_results): Likewise.
17314         (locale_results): Likewise.
17315         (compare_strings): Check those.
17316
17317 2009-08-23  Bruno Haible  <bruno@clisp.org>
17318
17319         Tests for module 'dup3'.
17320         * modules/dup3-tests: New file.
17321         * tests/test-dup3.c: New file.
17322
17323         New module 'dup3'.
17324         * lib/unistd.in.h (dup3): New declaration.
17325         * lib/dup3.c: New file.
17326         * m4/dup3.m4: New file.
17327         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
17328         HAVE_DUP3.
17329         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
17330         * modules/dup3: New file.
17331         * doc/glibc-functions/dup3.texi: Mention the new module.
17332
17333 2009-08-23  Bruno Haible  <bruno@clisp.org>
17334
17335         Tweak the dup2 test.
17336         * tests/test-dup2.c (main): Create the test file empty. Verify that an
17337         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
17338         the test file is still empty. Fix argument order of lseek.
17339
17340 2009-08-23  Bruno Haible  <bruno@clisp.org>
17341
17342         Avoid test link errors when the modules getopt-gnu, gettext are used.
17343         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
17344         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17345
17346 2009-08-23  Bruno Haible  <bruno@clisp.org>
17347
17348         Fix getdtablesize() on mingw.
17349         * lib/getdtablesize.c (getdtablesize): Implement differently.
17350         * lib/unistd.in.h (getdtablesize): Improve comment.
17351
17352 2009-08-23  Bruno Haible  <bruno@clisp.org>
17353
17354         New module 'mkostemp'.
17355         Based on Ulrich Drepper's 2007-08-10 change in glibc.
17356         * lib/stdlib.in.h (mksotemp): New declaration.
17357         * lib/mkostemp.c: New file, from glibc with modifications.
17358         * lib/tempname.h (GT_FILE): Remove outdated comment.
17359         (gen_tempname): Add flags argument.
17360         * lib/tempname.c (__GT_BIGFILE): Remove macro.
17361         (__GT_FILE): Map to 1.
17362         (small_open, large_open): Remove macros.
17363         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
17364         * lib/mkstemp.c (mkstemp): Update.
17365         * lib/mkdtemp.c (mkdtemp): Likewise.
17366         * m4/mkostemp.m4: New file.
17367         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
17368         HAVE_MKOSTEMP.
17369         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
17370         HAVE_MKOSTEMP.
17371         * modules/mkostemp: New file, based on modules/mkstemp.
17372         * doc/glibc-functions/mkostemp.texi: Mention the new module.
17373         * NEWS: Mention the change.
17374
17375 2009-08-23  Bruno Haible  <bruno@clisp.org>
17376
17377         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
17378         Reported by Eric Blake.
17379
17380 2009-08-23  Bruno Haible  <bruno@clisp.org>
17381
17382         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
17383         Reported by Eric Blake.
17384
17385 2009-08-23  Bruno Haible  <bruno@clisp.org>
17386
17387         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
17388         * modules/pipe2 (Depends-on): Likewise.
17389
17390 2009-08-23  Eric Blake  <ebb9@byu.net>
17391
17392         fcntl-h: add O_TTY_INIT support
17393         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
17394         * tests/test-fcntl-h.c (o): Test it.
17395         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
17396
17397         fcntl-h: rename from fcntl, in preparation for fcntl(2)
17398         * modules/fcntl: Move <fcntl.h> header replacement...
17399         * modules/fcntl-h: ...to new name, so as not to collide with
17400         like-named function.
17401         * tests/test-fcntl.c: Rename...
17402         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
17403         * modules/fcntl-tests: Rename...
17404         * modules/fcntl-h-tests: ...to this.  Update test file name.
17405         * modules/chdir-long (Depends-on): Update clients.
17406         * modules/chdir-safer (Depends-on): Likewise.
17407         * modules/fcntl-safer (Depends-on): Likewise.
17408         * modules/fts (Depends-on): Likewise.
17409         * modules/mkancesdirs (Depends-on): Likewise.
17410         * modules/mkdir-p (Depends-on): Likewise.
17411         * modules/open (Depends-on): Likewise.
17412         * modules/savewd (Depends-on): Likewise.
17413         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
17414         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
17415
17416 2009-08-22  Bruno Haible  <bruno@clisp.org>
17417
17418         * modules/binary-io (License): Relicense under LGPL.
17419         * modules/pipe2 (License): Likewise.
17420
17421 2009-08-22  Bruno Haible  <bruno@clisp.org>
17422
17423         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
17424         return value.
17425         * lib/pipe-filter-gi.c (filter_init): Likewise.
17426         Reported by Eric Blake.
17427
17428 2009-08-22  Bruno Haible  <bruno@clisp.org>
17429
17430         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
17431         * modules/pipe (Depends-on): Add pipe2.
17432
17433 2009-08-22  Bruno Haible  <bruno@clisp.org>
17434
17435         Tests for module 'pipe2'.
17436         * modules/pipe2-tests: New file.
17437         * tests/test-pipe2.c: New file.
17438
17439         New module 'pipe2'.
17440         * lib/unistd.in.h (pipe2): New declaration.
17441         * lib/pipe2.c: New file.
17442         * m4/pipe2.m4: New file.
17443         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
17444         HAVE_PIPE2.
17445         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
17446         * modules/pipe2: New file.
17447         * doc/glibc-functions/pipe2.texi: Mention the new module.
17448
17449 2009-08-22  Bruno Haible  <bruno@clisp.org>
17450
17451         Reference some new glibc functions.
17452         * doc/glibc-functions/accept4.texi: New file.
17453         * doc/glibc-functions/dup3.texi: New file.
17454         * doc/glibc-functions/mkostemp.texi: New file.
17455         * doc/glibc-functions/pipe2.texi: New file.
17456         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
17457         (Glibc sys/socket.h): Refer to accept4.
17458         (Glibc unistd.h): Refer to dup3, pipe2.
17459         Reported by Eric Blake.
17460
17461 2009-08-22  Jim Meyering  <meyering@redhat.com>
17462             Bruno Haible  <bruno@clisp.org>
17463
17464         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
17465         This makes it so packages using automake-1.11's silent-rules option
17466         can print e.g., a single "GEN    configmake.h" line, rather than
17467         the 30+ statements that perform the job.  If you want to see the
17468         actual commands, you can still run "make V=1".
17469         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
17470         so that make output is abbreviated when those variables are defined
17471         appropriately.
17472         * modules/argz: Likewise.
17473         * modules/arpa_inet: Likewise.
17474         * modules/byteswap: Likewise.
17475         * modules/configmake: Likewise.
17476         * modules/dirent: Likewise.
17477         * modules/errno: Likewise.
17478         * modules/fcntl: Likewise.
17479         * modules/float: Likewise.
17480         * modules/fnmatch: Likewise.
17481         * modules/getopt-posix: Likewise.
17482         * modules/glob: Likewise.
17483         * modules/iconv_open: Likewise.
17484         * modules/inttypes: Likewise.
17485         * modules/localcharset: Likewise.
17486         * modules/locale: Likewise.
17487         * modules/math: Likewise.
17488         * modules/netdb: Likewise.
17489         * modules/netinet_in: Likewise.
17490         * modules/poll: Likewise.
17491         * modules/posix_spawnp-tests: Likewise.
17492         * modules/sched: Likewise.
17493         * modules/search: Likewise.
17494         * modules/selinux-h: Likewise.
17495         * modules/signal: Likewise.
17496         * modules/spawn: Likewise.
17497         * modules/stdarg: Likewise.
17498         * modules/stdbool: Likewise.
17499         * modules/stddef: Likewise.
17500         * modules/stdint: Likewise.
17501         * modules/stdio: Likewise.
17502         * modules/stdlib: Likewise.
17503         * modules/string: Likewise.
17504         * modules/strings: Likewise.
17505         * modules/sys_file: Likewise.
17506         * modules/sys_ioctl: Likewise.
17507         * modules/sys_select: Likewise.
17508         * modules/sys_socket: Likewise.
17509         * modules/sys_stat: Likewise.
17510         * modules/sys_time: Likewise.
17511         * modules/sys_times: Likewise.
17512         * modules/sys_utsname: Likewise.
17513         * modules/sys_wait: Likewise.
17514         * modules/sysexits: Likewise.
17515         * modules/time: Likewise.
17516         * modules/unistd: Likewise.
17517         * modules/wchar: Likewise.
17518         * modules/wctype: Likewise.
17519
17520 2009-08-22  Jim Meyering  <meyering@redhat.com>
17521
17522         announce-gen: detect write failure
17523         * build-aux/announce-gen: Add Coda at end.
17524         Remove equivalent-but-more-verbose block at top.
17525
17526 2009-08-19  Akim Demaille  <demaille@gostai.com>
17527
17528         bootstrap: --help to stdout.
17529         * bootstrap (usage): Don't send --help to stderr.
17530         Use a here doc instead of a long string.
17531
17532 2009-08-21  Eric Blake  <ebb9@byu.net>
17533
17534         test-popen-safer: split from test-popen
17535         * tests/test-popen.c (main): Move...
17536         * tests/test-popen.h: ...into new file.
17537         * tests/test-popen-safer2.c: New file.
17538         * modules/popen-tests (Files): Add test-popen.h.
17539         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
17540         Suggested by Bruno Haible.
17541
17542         test-fcntl-safer: split from test-open
17543         * tests/test-open.c (main): Move...
17544         * tests/test-open.h: ...into new file.
17545         * tests/test-fcntl-safer.c: New file.
17546         * modules/open-tests (Files): Add test-open.h.
17547         * modules/fcntl-safer-tests: New file.
17548         Suggested by Bruno Haible.
17549
17550         test-fopen-safer: split from test-fopen
17551         * tests/test-fopen.c (main): Move...
17552         * tests/test-fopen.h: ...into new file.
17553         * tests/test-fopen-safer.c: New file.
17554         * modules/fopen-tests (Files): Add test-fopen.h.
17555         * modules/fopen-safer-tests: New file.
17556         Suggested by Bruno Haible.
17557
17558 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
17559
17560         popen-safer: test O_CLOEXEC at run-time.
17561         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
17562
17563 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
17564
17565         fcntl: move more flags to the header
17566         * lib/cloexec.c: Do not define FD_CLOEXEC here.
17567         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
17568         * lib/fcntl.in.h: Do both things here.
17569
17570 2009-08-21  Jim Meyering  <meyering@redhat.com>
17571
17572         consistently remove $@-t before redirecting to it
17573         * modules/argz: Remove $@-t and $@ before redirecting to the former.
17574         * modules/alloca-opt: Likewise.
17575         * modules/byteswap: Likewise.
17576         * modules/fnmatch: Likewise.
17577         * modules/getopt-posix: Likewise.
17578         * modules/glob: Likewise.
17579         * modules/poll: Likewise.
17580         * modules/posix_spawnp-tests: Likewise.
17581         * modules/sys_socket: Likewise.
17582         * modules/sysexits: Likewise.
17583
17584 2009-08-21  Eric Blake  <ebb9@byu.net>
17585
17586         popen: simplify access to original popen
17587         * lib/popen.c (rpl_popen): No need to worry about popen being a
17588         macro.
17589         Reported by Bruno Haible.
17590
17591 2009-08-20  Eric Blake  <ebb9@byu.net>
17592
17593         build: avoid some compiler warnings
17594         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
17595         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
17596         type.
17597         (new_exclude_segment, excluded_file_pattern_p)
17598         (excluded_file_name_p): Reduce scope.
17599         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
17600         old-style declaration.
17601
17602 2009-08-20  Simon Josefsson  <simon@josefsson.org>
17603
17604         * tests/test-exclude1.sh: Handle Windows EOL.
17605         * tests/test-exclude2.sh: Likewise.
17606         * tests/test-exclude3.sh: Likewise.
17607         * tests/test-exclude4.sh: Likewise.
17608         * tests/test-exclude5.sh: Likewise.
17609         * tests/test-exclude6.sh: Likewise.
17610         * tests/test-exclude7.sh: Likewise.
17611
17612 2009-08-19  Akim Demaille  <demaille@gostai.com>
17613
17614         bootstrap: find sha1sum when named gsha1sum.
17615         * bootstrap (find_tool): New.
17616         ($SHA1SUM): New.
17617         Use it.
17618
17619 2009-08-20  Jim Meyering  <meyering@redhat.com>
17620
17621         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
17622         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
17623         expression that converts "." in a file name to "\." in the resulting
17624         regexp.  Start with a dummy statement, so that prior shell variable
17625         definitions are expanded portably.  Reported by Simon Josefsson.
17626
17627 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
17628
17629         Fix polling for writeability of a screen buffer.
17630         * lib/poll.c: Distinguish input and screen buffers for the
17631         Win32 implementation.
17632         * lib/select.c: Likewise.
17633
17634 2009-08-19  Eric Blake  <ebb9@byu.net>
17635
17636         popen-safer: prevent popen from clobbering std descriptors
17637         * modules/popen-safer: New file.
17638         * lib/popen-safer.c: Likewise.
17639         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
17640         * lib/stdio--.h (popen): Provide override.
17641         * lib/stdio-safer.h (popen_safer): Provide declaration.
17642         * tests/test-popen.c (includes): Partially test this.
17643         * modules/popen-safer-tests: New file, for more tests.
17644         * tests/test-popen-safer.c: Likewise.
17645         * MODULES.html.sh (file stream based Input/Output): Mention it.
17646
17647         tests: test some of the *-safer modules
17648         * modules/fopen-safer (Depends-on): Add fopen.
17649         * modules/fcntl-safer (Depends-on): Add fcntl.
17650         * modules/stdlib-safer (Depends-on): Add stdlib.
17651         (configure.ac): Set indicator.
17652         * modules/unistd-safer (configure.ac): Likewise.
17653         * modules/tmpfile-safer (configure.ac): Likewise.
17654         (Depends-on): Add tmpfile.
17655         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
17656         active.
17657         * tests/test-fopen.c (includes): Test safer versions when they are
17658         in use.
17659         * tests/test-open.c (includes): Likewise.
17660
17661         popen: fix cygwin 1.5 bug when stdin closed
17662         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
17663         * modules/popen: New file.
17664         * modules/popen-tests: Likewise.
17665         * tests/test-popen.c: Likewise.
17666         * m4/popen.m4: Likewise.
17667         * lib/popen.c: Likewise.
17668         * lib/stdio.in.h (popen): New declaration.
17669         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
17670         * modules/stdio (Makefile.am): Likewise.
17671         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
17672
17673 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
17674
17675         maint.mk: give full control over update-copyright exclusions
17676         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
17677         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
17678         (update-copyright): Don't force inclusion of top-level
17679         ChangeLog.  Don't force exclusion of all COPYING files, but make
17680         them the default exclusion instead.
17681
17682 2009-08-16  Bruno Haible  <bruno@clisp.org>
17683
17684         Fix test failures on Solaris 10.
17685         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
17686         tests when Solaris iconv() is used.
17687         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
17688         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
17689         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
17690         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
17691         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
17692
17693 2009-08-16  Bruno Haible  <bruno@clisp.org>
17694
17695         Fix test failures on Solaris 10.
17696         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
17697         'tr' program and pass it as first argument.
17698         * tests/test-pipe-filter-gi1.sh: Likewise.
17699         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
17700         program as first argument.
17701         * tests/test-pipe-filter-gi1.c (main): Likewise.
17702
17703 2009-08-16  Eric Blake  <ebb9@byu.net>
17704
17705         fpurge: fix previous commits
17706         * modules/fpurge (Makefile.am): Make replacement conditional,
17707         partially reverting 2007-04-29 change; missed in previous
17708         attempt.
17709         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
17710         is missing.
17711
17712 2009-08-16  Bruno Haible  <bruno@clisp.org>
17713
17714         Clarify fpurge's effect on the file position.
17715         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
17716         * tests/test-fpurge.c (main): Make a second pass for checking the file
17717         position.
17718
17719 2009-08-16  Bruno Haible  <bruno@clisp.org>
17720
17721         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
17722         declaration of fpurge is missing.
17723         * tests/test-fpurge.c (main): Check that the file has not more contents
17724         than expected. Close the file before removing it.
17725
17726 2009-08-15  Eric Blake  <ebb9@byu.net>
17727
17728         fpurge: don't wrap working cygwin implementation
17729         * lib/fpurge.c (fpurge): Fix comment typo.
17730         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
17731         1.7 to avoid replacement.
17732         * tests/test-fpurge.c (main): Enhance test.
17733
17734 2009-08-15  Eric Blake  <ebb9@byu.net>
17735         and Jim Meyering  <meyering@redhat.com>
17736
17737         test-update-copyright: skip if perl is insufficient
17738         * tests/test-update-copyright.sh: Failure to run maintainer tool
17739         should not cause testsuite failure on cygwin 1.5.
17740
17741 2009-08-14  Eric Blake  <ebb9@byu.net>
17742
17743         doc: mention more functions added in cygwin 1.7.0
17744         * doc/posix-headers/limits.texi (limits.h): Update for recent
17745         cygwin additions.
17746         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
17747         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
17748         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
17749         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
17750         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
17751
17752 2009-08-14  Eric Blake  <ebb9@byu.net>
17753
17754         maint.mk: simplify update-copyright rule
17755         * top/maint.mk (update-copyright-local): Delete, and document how
17756         to do it in cfg.mk instead.
17757         (update-copyright-exclude-regexp): Delete, and document how to do
17758         it in .x-update-copyright instead.
17759         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
17760         exclude ChangeLog.
17761
17762 2009-08-14  Bruno Haible  <bruno@clisp.org>
17763
17764         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
17765
17766 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
17767
17768         maint.mk: support update-copyright-env
17769         * top/maint.mk (update-copyright-env): Define place-holder.
17770         (update-copyright): Expand $(update-copyright-env) before
17771         invoking update-copyright.
17772
17773 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
17774
17775         update-copyright: implement forced reformatting
17776         * build-aux/update-copyright: Implement and document
17777         UPDATE_COPYRIGHT_FORCE.
17778         * tests/test-update-copyright.sh: Test it.
17779
17780 2009-08-14  Eric Blake  <ebb9@byu.net>
17781         and Bruno Haible  <bruno@clisp.org>
17782
17783         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
17784         * tests/test-locale.c: Revert previous patch related to NULL.
17785         * tests/test-stdio.c: Likewise.
17786         * tests/test-stdlib.c: Likewise.
17787         * tests/test-string.c: Likewise.
17788         * tests/test-unistd.c: Likewise.
17789         * modules/time-tests (Depends-on): Add verify.
17790         * modules/wchar-tests (Depends-on): Likewise.
17791         * tests/test-time.c: Test for NULL compliance.
17792         * tests/test-wchar.c: Likewise.
17793         * modules/locale (Depends-on): Add stddef.
17794         * modules/stdio (Depends-on): Likewise.
17795         * modules/stdlib (Depends-on): Likewise.
17796         * modules/string (Depends-on): Likewise.
17797         * modules/time (Depends-on): Likewise.
17798         * modules/unistd (Depends-on): Likewise.
17799         * modules/wchar (Depends-on): Likewise.
17800         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
17801         * lib/stdlib.in.h (includes): Likewise.
17802         * lib/string.in.h (includes): Likewise.
17803         * lib/time.in.h (includes): Likewise.
17804         * lib/unistd.in.h (includes): Likewise.
17805         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
17806         replaced.
17807         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
17808         * m4/stddef_h.m4: New file.
17809         * modules/stddef: Likewise.
17810         * lib/stddef.in.h: Likewise.
17811         * modules/stddef-tests: Likewise.
17812         * tests/test-stddef.c: Likewise.
17813         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
17814         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
17815         * doc/posix-headers/locale.texi (locale.h): Likewise.
17816         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
17817         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
17818         * doc/posix-headers/string.texi (string.h): Likewise.
17819         * doc/posix-headers/time.texi (time.h): Likewise.
17820         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
17821         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
17822
17823 2009-08-14  Eric Blake  <ebb9@byu.net>
17824
17825         doc: improve git diff of texinfo files
17826         * .gitattributes: Add rule for *.texi files, with hint on how to
17827         use it.
17828         Copied from m4, and based on a report by Bruno Haible.
17829
17830 2009-08-14  Bruno Haible  <bruno@clisp.org>
17831
17832         Disable multithread support by default on Cygwin 1.5.x for real.
17833         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
17834
17835 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
17836
17837         update-copyright: much ado about intervals
17838         * build-aux/update-copyright: Implement and document
17839         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
17840         of copyright year intervals.
17841         Also, document UPDATE_COPYRIGHT_YEAR.
17842         * tests/test-update-copyright.sh: Test it.
17843
17844         update-copyright: convert 2-digit to 4-digit years
17845         * build-aux/update-copyright: Implement and document.
17846         * tests/test-update-copyright.sh: Update.
17847
17848 2009-08-14  Jim Meyering  <meyering@redhat.com>
17849
17850         test-exclude: avoid coreutils "make check" failure
17851         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
17852         just as in test-argmatch.c.
17853
17854 2009-08-13  Eric Blake  <ebb9@byu.net>
17855
17856         test-dup2: fix bad assumption
17857         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
17858         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
17859
17860         test-version-etc: fix CRLF portability issue
17861         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
17862         recognize \r.
17863         * tests/test-argp-version-etc-1.sh: Likewise.
17864
17865         getopt: update client modules
17866         * modules/argp (Depends-on): Use getopt-gnu.
17867         * modules/git-merge-changelog (Depends-on): Likewise.
17868         * modules/long-options (Depends-on): Likewise.
17869         * modules/xstrtol (Depends-on): Likewise.
17870
17871 2009-08-13  Simon Josefsson  <simon@josefsson.org>
17872
17873         * tests/test-version-etc.sh: Don't fail on different
17874         project/version.  Don't fail on CRLF differences.  Rewrite to use
17875         multiple -e instead of multiple sed forks, suggested by Eric Blake
17876         <ebb9@byu.net>.
17877         * tests/test-argp-version-etc-1.sh: Likewise.
17878
17879 2009-08-13  Simon Josefsson  <simon@josefsson.org>
17880
17881         * tests/test-version-etc.sh: Don't fail on different
17882         project/version.
17883
17884 2009-08-12  Bruno Haible  <bruno@clisp.org>
17885
17886         Tests for modules 'getopt-posix', 'getopt-gnu'.
17887         * modules/getopt-posix-tests: New file.
17888         * tests/test-getopt.c: New file.
17889         * tests/test-getopt.h: New file.
17890         * tests/test-getopt_long.h: New file.
17891
17892         New modules 'getopt-posix', 'getopt-gnu'.
17893         * modules/getopt-gnu: New file, renamed from modules/getopt.
17894         * modules/getopt-posix: New file.
17895         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
17896         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
17897         (gl_GETOPT): Remove macro.
17898         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
17899         Disable the test against BSD systems that declare optreset. Test
17900         against mingw bug. Test against lack of support of optional arguments
17901         on many platforms.
17902         * doc/glibc-headers/getopt.texi: Update module name and list of
17903         relevant platforms.
17904         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
17905         'getopt-gnu' and more portability problems.
17906         * NEWS: Mention the changes.
17907
17908 2009-08-12  Bruno Haible  <bruno@clisp.org>
17909
17910         Ensure that optarg etc. get declared by <unistd.h>.
17911         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
17912         AC_USE_SYSTEM_EXTENSIONS.
17913         * modules/getopt (Depends-on): Add 'extensions'.
17914
17915 2009-08-12  Bruno Haible  <bruno@clisp.org>
17916
17917         Avoid test link errors.
17918         * modules/pipe-filter-ii-tests (Makefile.am): Define
17919         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
17920         * modules/pipe-filter-gi-tests (Makefile.am): Define
17921         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
17922         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17923
17924 2009-08-12  Bruno Haible  <bruno@clisp.org>
17925
17926         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
17927         gl_GETOPT_SUBSTITUTE before.
17928         (gl_GETOPT): Use it.
17929         * m4/argp.m4 (gl_ARGP): Update.
17930         Reported by Sergey Poznyakoff.
17931
17932         * m4/getopt.m4: Reorder macros.
17933         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
17934         (gl_GETOPT_SUBSTITUTE): Remove macro.
17935
17936 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
17937
17938         Minor improvement in gitlog-to-changelog
17939
17940         * build-aux/gitlog-to-changelog: New option `--format' makes
17941         output format string configurable.
17942
17943 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
17944
17945         Optimize exclude: use hash tables for non-wildcard patterns.
17946
17947         * lib/exclude.c: Include hash.h and mbuiter.h
17948         (struct exclude_pattern, exclude_segment): New data types.
17949         (struct exclude): Rewrite.
17950         (fnmatch_pattern_has_wildcards): New function.
17951         (new_exclude_segment, free_exclude_segment): New functions.
17952         (excluded_file_pattern_p, excluded_file_name_p): New functions.
17953         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
17954         * lib/exclude.h (is_fnmatch_pattern): New prototype.
17955         * modules/exclude: Depend on hash and mbuiter.
17956
17957         * modules/exclude-tests: New file.
17958         * tests/test-exclude.c: New file.
17959         * tests/test-exclude1.sh: New file.
17960         * tests/test-exclude2.sh: New file.
17961         * tests/test-exclude3.sh: New file.
17962         * tests/test-exclude4.sh: New file.
17963         * tests/test-exclude5.sh: New file.
17964         * tests/test-exclude6.sh: New file.
17965         * tests/test-exclude7.sh: New file.
17966
17967 2009-08-12  Bruno Haible  <bruno@clisp.org>
17968
17969         Ensure that getopt() gets declared by <unistd.h>.
17970         * lib/unistd.in.h: Conditionally include getopt.h.
17971         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
17972         Set GNULIB_UNISTD_H_GETOPT.
17973         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17974         GNULIB_UNISTD_H_GETOPT.
17975         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
17976
17977 2009-08-12  Bruno Haible  <bruno@clisp.org>
17978
17979         Clarify logic.
17980         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
17981         gl_replace_getopt instead of GETOPT_H.
17982
17983 2009-08-12  Bruno Haible  <bruno@clisp.org>
17984
17985         * m4/getopt.m4: Add comments.
17986
17987 2009-08-12  Bruno Haible  <bruno@clisp.org>
17988
17989         Disable multithread support by default on Cygwin 1.5.x.
17990         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
17991         set gl_use_threads=no if not specified otherwise.
17992
17993 2009-08-11  Bruno Haible  <bruno@clisp.org>
17994
17995         Avoid compilation error on NetBSD 5.0.
17996         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
17997         * tests/test-stdio.c: Likewise.
17998         * tests/test-stdlib.c: Likewise.
17999         * tests/test-string.c: Likewise.
18000         * tests/test-unistd.c: Likewise.
18001         Reported by Greg Troxel <gdt@ir.bbn.com>
18002         at <https://savannah.gnu.org/support/?106973>.
18003
18004 2009-08-11  Bruno Haible  <bruno@clisp.org>
18005
18006         * modules/dup2-tests (Depends-on): Remove close.
18007
18008         Undo 2009-07-19 commit.
18009         * modules/acl-tests (Depends-on): Remove close.
18010         * modules/binary-io-tests (Depends-on): Likewise.
18011         * modules/closein-tests (Depends-on): Likewise.
18012         * modules/flock-tests (Depends-on): Likewise.
18013         * modules/fsync-tests (Depends-on): Likewise.
18014         * modules/lseek-tests (Depends-on): Likewise.
18015         * modules/pipe-tests (Depends-on): Likewise.
18016         * modules/posix_spawn-tests (Depends-on): Likewise.
18017         * modules/posix_spawnp-tests (Depends-on): Likewise.
18018         * modules/stat-time-tests (Depends-on): Likewise.
18019         * modules/yesno-tests (Depends-on): Likewise.
18020
18021 2009-08-10  Bruno Haible  <bruno@clisp.org>
18022
18023         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
18024
18025 2009-08-10  Bruno Haible  <bruno@clisp.org>
18026
18027         Fix a gcc warning.
18028         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
18029
18030 2009-08-10  Bruno Haible  <bruno@clisp.org>
18031
18032         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
18033         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
18034         not only the first time.
18035         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
18036         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
18037         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
18038         is 1, not only the the first time.
18039
18040 2009-08-10  Bruno Haible  <bruno@clisp.org>
18041
18042         Make it possible to use module 'gethostname' without module 'close'.
18043         * lib/unistd.in.h (close): Evoke a link error only if
18044         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
18045         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18046         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
18047         * modules/unistd (Makefile.am): Substitute
18048         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
18049         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
18050         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
18051         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
18052         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
18053         * modules/sys_ioctl (Makefile.am): Substitute
18054         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
18055         * modules/socket (configure.ac): On native Windows, set
18056         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
18057         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
18058         Reported by Sam Steingold <sds@gnu.org>.
18059
18060 2009-08-10  Bruno Haible  <bruno@clisp.org>
18061
18062         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
18063         * modules/ioctl (configure.ac): Likewise.
18064
18065 2009-08-10  Bruno Haible  <bruno@clisp.org>
18066
18067         Avoid collision between gnulib wrapper and libintl wrapper.
18068         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
18069         already defined in intl/printf.c.
18070         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
18071         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
18072
18073 2009-08-09  Bruno Haible  <bruno@clisp.org>
18074
18075         Make <sys/select.h> really self-contained, also on Solaris 10.
18076         * lib/sys_select.in.h: Include <string.h>.
18077         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
18078         Solaris 10 problem.
18079         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
18080         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
18081         Reported by Jim Meyering.
18082
18083 2009-08-09  Bruno Haible  <bruno@clisp.org>
18084
18085         Avoid warnings from 'aclocal' that are due to a use of macro name
18086         AM_XGETTEXT_OPTION that is not defined in automake.
18087         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
18088         automake.
18089         * modules/error (configure.ac): Likewise.
18090         * modules/propername (configure.ac): Likewise.
18091         * modules/vasprintf (configure.ac): Likewise.
18092         * modules/verror (configure.ac): Likewise.
18093         * modules/xprintf (configure.ac): Likewise.
18094         * modules/xvasprintf (configure.ac): Likewise.
18095
18096 2009-08-08  Bruno Haible  <bruno@clisp.org>
18097
18098         Avoid compilation error in C++ mode.
18099         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
18100         Reported by Sam Steingold <sds@gnu.org>.
18101
18102 2009-08-08  Bruno Haible  <bruno@clisp.org>
18103
18104         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
18105         for the various Unix platforms.
18106         * doc/posix-headers/limits.texi: Update platforms list regarding
18107         HOST_NAME_MAX.
18108         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18109
18110 2009-08-07  Jim Meyering  <meyering@redhat.com>
18111
18112         selinux-at: fix typo in a comment
18113         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
18114         Spotted by Paolo Bonzini.
18115
18116         selinux-at: remove redundant m4 code, add documentation
18117         * modules/selinux-at (configure.ac): Remove redundant code.
18118         LIB_SELINUX is already set via the dependent module, selinux-h.
18119         (Include): Add quotes around selinux-at.h.
18120         * lib/selinux-at.h: Add documentation.
18121         Reported by Bruno Haible in
18122         http://marc.info/?l=gnulib-bug&m=124958988300749
18123
18124 2009-08-07  Bruno Haible  <bruno@clisp.org>
18125
18126         Avoid link error on MacOS X 10.3 and 10.4.
18127         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
18128         on non-ELF systems.
18129         * lib/argp-pv.c (argp_program_version): Likewise.
18130         Reported by Simon Josefsson.
18131
18132 2009-08-07  Simon Josefsson  <simon@josefsson.org>
18133
18134         * tests/test-version-etc.sh: Use $EXEEXT.
18135
18136 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
18137
18138         update-copyright: update documentation to point to maint.mk
18139         * build-aux/update-copyright: Here.
18140
18141 2009-08-06  Jim Meyering  <meyering@redhat.com>
18142
18143         maint.mk: support update-copyright-local
18144         * top/maint.mk (update-copyright-local): Define place-holder.
18145         (update-copyright): Depend on $(update-copyright-local).
18146
18147 2009-08-06  Jim Meyering  <meyering@redhat.com>
18148
18149         selinux-at: new module
18150         Initially written for coreutils, this module will soon be
18151         used by findutils, too.
18152         * MODULES.html.sh [Misc]: Add selinux-at.
18153         * lib/selinux-at.h: New file, from coreutils.
18154         * lib/selinux-at.c: Likewise.
18155         * modules/selinux-at: Likewise.
18156         (License): Change from LGPL to GPL, since it depends
18157         on the GPL'd openat module.
18158
18159         doc: update README
18160         * README: Remove references to cogito.
18161         Remove cvs-repo-updating instructions from 2007.
18162         Don't imply that CVS is better if you have limited disk space.
18163
18164 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
18165
18166         update-copyright: support C-style comments
18167         * build-aux/update-copyright: Implement and document.
18168         * tests/test-update-copyright.sh: Test.
18169
18170 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
18171
18172         update-copyright: support omitted "(C)"
18173         * build-aux/update-copyright: Implement and document.  Also,
18174         allow variable whitespace before "(C)".
18175         * tests/test-update-copyright.sh: Test.
18176
18177 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
18178
18179         update-copyright: don't trip on non-FSF copyright statements
18180         * build-aux/update-copyright: Fix so that the first correctly
18181         formatted FSF copyright statement is recognized no matter what
18182         appears before it.  Update documentation.
18183         * tests/test-update-copyright.sh: Test that.
18184
18185 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
18186
18187         update-copyright: clean up code a little
18188         * build-aux/update-copyright: Append "_re" to the name of any
18189         variable holding a regular expression.
18190         Replace "old" and "new" with "stmt" in variable names.
18191         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
18192         handled correctly.
18193         Format code more consistently.
18194
18195 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
18196
18197         update-copyright-tests: improve portability
18198         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
18199         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
18200
18201 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
18202
18203         update-copyright: support @copyright{} and &copy;
18204         * build-aux/update-copyright: Implement and document.
18205         * tests/test-update-copyright.sh: Test.
18206
18207 2009-08-04  Jim Meyering  <meyering@redhat.com>
18208
18209         update-copyright-tests: correctly test EOL=\r\n handling
18210         * tests/test-update-copyright.sh: Put \r at the end of some lines
18211         for the dos-eol tests.  Based on a patch by Joel E. Denny.
18212
18213         maint.mk: make update-copyright exclusion list more configurable
18214         * top/maint.mk (update-copyright): Default to excluding COPYING,
18215         but allow an override, in case someone does want to update that file.
18216
18217         maint.mk: don't update copyright date in COPYING
18218         * top/maint.mk (update-copyright): Exclude COPYING.
18219
18220         maint.mk: add a copyright-updating rule
18221         * top/maint.mk (update-copyright): New rule.
18222         Derived from coreutils/Makefile.am.
18223
18224         update-copyright: rename some variables
18225         * build-aux/update-copyright: Rename a few variables for clarity.
18226         Tweak syntax.  List Joel E. Denny as coauthor.
18227
18228 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
18229
18230         update-copyright: fix bug for 2-digit last year and add tests
18231         * build-aux/update-copyright: Fix bug.
18232         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
18233         specified.
18234         * modules/update-copyright-tests: New
18235         * tests/test-update-copyright.sh: New.
18236
18237 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
18238
18239         update-copyright: handle leading tabs in line prefix
18240         * build-aux/update-copyright: Count leading tabs as 8 spaces
18241         when computing margin.  This helps with the formatting of
18242         ChangeLogs, for example.
18243         Fix documentation a little.
18244
18245 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
18246
18247         update-copyright: support EOL=\r\n
18248         * build-aux/update-copyright: Implement that.
18249
18250 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
18251
18252         update-copyright: automatically format copyright statements
18253         * build-aux/update-copyright: Implement that.
18254         Also, be a little more predictable and safer by always failing
18255         when the full copyright format is not perfectly recognized as an
18256         unbroken whole.  Discussed at
18257         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
18258         Rewrite documentation.
18259
18260 2009-08-03  Bruno Haible  <bruno@clisp.org>
18261
18262         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
18263
18264 2009-08-02  Bruno Haible  <bruno@clisp.org>
18265
18266         Tests for module 'uname'.
18267         * modules/uname-tests: New file.
18268         * tests/test-uname.c: New file.
18269
18270         New module 'uname'.
18271         * lib/uname.c: New file.
18272         * m4/uname.m4: New file.
18273         * modules/uname: New file.
18274         * doc/posix-functions/uname.texi: Mention the new module.
18275
18276 2009-08-02  Bruno Haible  <bruno@clisp.org>
18277
18278         Tests for module 'sys_utsname'.
18279         * modules/sys_utsname-tests: New file.
18280         * tests/test-sys_utsname.c: New file.
18281
18282         New module 'sys_utsname'.
18283         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
18284         * m4/sys_utsname_h.m4: New file.
18285         * modules/sys_utsname: New file.
18286         * doc/posix-headers/sys_utsname.texi: Mention the new module.
18287
18288 2009-08-02  Bruno Haible  <bruno@clisp.org>
18289
18290         Implicitly initialize the sockets library.
18291         * lib/gethostname.c: Include sockets.h.
18292         (rpl_gethostname): Invoke gl_sockets_startup.
18293         * lib/socket.c: Include sockets.h.
18294         (rpl_socket): Invoke gl_sockets_startup.
18295         * modules/gethostname (Depends-on): Add sockets.
18296         * modules/socket (Depends-on): Likewise.
18297         * tests/test-poll.c: Don't include sockets.h.
18298         (main): Don't invoke gl_sockets_startup.
18299         * tests/test-select.c: Don't include sockets.h.
18300         (main): Don't invoke gl_sockets_startup.
18301
18302 2009-08-02  Bruno Haible  <bruno@clisp.org>
18303
18304         Allow multiple calls to gl_sockets_startup.
18305         * lib/sockets.c (initialized_sockets_version): New variable.
18306         (gl_sockets_startup): Do nothing if already called for this or a higher
18307         version.
18308         (gl_sockets_cleanup): Reset initialized_sockets_version.
18309
18310 2009-08-03  Simon Josefsson  <simon@josefsson.org>
18311
18312         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
18313         different project/version.
18314
18315 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
18316             Bruno Haible  <bruno@clisp.org>
18317
18318         Tests for module 'pipe-filter-gi'.
18319         * modules/pipe-filter-gi-tests: New file.
18320         * tests/test-pipe-filter-gi1.sh: New file.
18321         * tests/test-pipe-filter-gi1.c: New file.
18322         * tests/test-pipe-filter-gi2.sh: New file.
18323         * tests/test-pipe-filter-gi2-main.c: New file.
18324         * tests/test-pipe-filter-gi2-child.c: New file.
18325
18326         New module 'pipe-filter-gi'.
18327         * lib/pipe-filter-gi.c: New file.
18328         * modules/pipe-filter-gi: New file.
18329
18330 2009-08-02  Bruno Haible  <bruno@clisp.org>
18331             Paolo Bonzini  <bonzini@gnu.org>
18332
18333         Tests for module 'pipe-filter-ii'.
18334         * modules/pipe-filter-ii-tests: New file.
18335         * tests/test-pipe-filter-ii1.sh: New file.
18336         * tests/test-pipe-filter-ii1.c: New file.
18337         * tests/test-pipe-filter-ii2.sh: New file.
18338         * tests/test-pipe-filter-ii2-main.c: New file.
18339         * tests/test-pipe-filter-ii2-child.c: New file.
18340
18341         New module 'pipe-filter-ii'.
18342         * lib/pipe-filter.h: New file.
18343         * lib/pipe-filter-ii.c: New file.
18344         * lib/pipe-filter-aux.h: New file.
18345         * modules/pipe-filter-ii: New file.
18346
18347 2009-08-02  Simon Josefsson  <simon@josefsson.org>
18348
18349         * lib/gc-libgcrypt.c: Change copyright to FSF.
18350         * lib/gc-gnulib.c: Likewise.
18351
18352 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
18353
18354         * lib/gethostname.c: Include limits.h.
18355
18356 2009-08-02  Simon Josefsson  <simon@josefsson.org>
18357             Bruno Haible  <bruno@clisp.org>
18358
18359         Ensure HOST_NAME_MAX as part of the gethostname module.
18360         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
18361         define also HOST_NAME_MAX.
18362         * tests/test-gethostname.c: Include <limits.h>.
18363         (main): Check also HOST_NAME_MAX.
18364         * doc/posix-headers/limits.texi: Document the mingw problem.
18365
18366 2009-08-02  Bruno Haible  <bruno@clisp.org>
18367
18368         * lib/gethostname.c (gethostname): Fix handling of large len argument.
18369         Add comments.
18370
18371 2009-03-31  Simon Josefsson  <simon@josefsson.org>
18372
18373         * lib/gethostname.c: Add Windows wrapper.
18374         * m4/gethostname.m4: Look for gethostname in -lws2_32.
18375         * modules/gethostname: Depend on sys_socket & errno, for also
18376         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
18377         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
18378
18379 2009-07-31  Jim Meyering  <meyering@redhat.com>
18380
18381         getloadavg: fix symbol name in comment
18382         * lib/getloadavg.c: Correct a typo I introduced when adding
18383         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
18384         Matt Kraai spotted the problem.
18385
18386 2009-07-29  Matt Kraai  <mkraai@beckman.com>
18387
18388         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
18389         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
18390         code also if ! defined N_NAME_POINTER.
18391         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
18392         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
18393         but the n_name member is a 12-byte array.
18394
18395 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
18396
18397         update-copyright: generalize comment handling
18398         * build-aux/update-copyright: Handle copyright statements
18399         within more comment styles.
18400         Document usage.
18401         Report any file with an external copyright holder or parse failure.
18402
18403 2009-07-29  Jim Meyering  <meyering@redhat.com>
18404
18405         mktime: correct setting of REPLACE_MKTIME
18406         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
18407
18408         update-copyright: new module
18409         * modules/update-copyright: New file.
18410         * build-aux/update-copyright: New file.
18411         * MODULES.html.sh (maint+release support): Add update-copyright.
18412
18413 2009-07-27  Bruno Haible  <bruno@clisp.org>
18414
18415         Fix compilation error when <ctime> is used and mktime is replaced.
18416         * lib/time.in.h (mktime): New declaration.
18417         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
18418         REPLACE_MKTIME instead of defining mktime in config.h.
18419         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
18420         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
18421         Reported by Ross McFarland <rwmcfa1@neces.com>.
18422
18423 2009-07-27  Bruno Haible  <bruno@clisp.org>
18424
18425         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
18426         Reported by Matt Kraai <mkraai@beckman.com>.
18427
18428 2009-07-25  Jim Meyering  <meyering@redhat.com>
18429
18430         maint.mk: avoid warnings about missing files
18431         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
18432         diagnostic when .prev-version does not exist.
18433         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
18434         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
18435         nonexistent cfg.mk.
18436         Suggestions from Simon Josefsson.
18437
18438 2009-07-25  Bruno Haible  <bruno@clisp.org>
18439
18440         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
18441         defined as macros. Needed on QNX 6.4.1.
18442         Reported by Matt Kraai <mkraai@beckman.com>.
18443
18444 2009-07-23  Jim Meyering  <meyering@redhat.com>
18445
18446         maint.mk: invoke "make dist" with a working value of XZ_OPT
18447         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
18448
18449 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
18450
18451         Make fseeko.c compile on QNX.
18452         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
18453
18454 2009-07-22  Peter Simons  <simons@cryp.to>
18455
18456         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
18457         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
18458         * lib/md4.h: Likewise.
18459         * lib/md5.h: Likewise.
18460         * lib/sha1.h: Likewise.
18461         * lib/sha256.h: Likewise.
18462         * lib/sha512.h: Likewise.
18463
18464         tests-sha1: don't assign literal string to 'char *' variable
18465         * tests/test-sha1.c (main): Declare locals with "const" to match
18466         attributes of the right hand side.
18467
18468 2009-07-21  Eric Blake  <ebb9@byu.net>
18469
18470         dup2: fix more mingw problems
18471         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
18472         fd to itself.
18473         * doc/posix-functions/dup2.texi (dup2): Document the bug.
18474         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
18475         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
18476         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
18477         care of mingw bugs.
18478
18479 2009-07-21  Jim Meyering  <meyering@redhat.com>
18480
18481         vc-list-files: avoid failure when /bin/sh is dash
18482         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
18483         On some Debian based systems, /bin/sh is a symlink to dash, and running
18484         this command would omit the "/" following each 'tests' prefix:
18485           dash -x build-aux/vc-list-files -C . tests
18486         That is because bash and dash work differently:
18487           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
18488           bash ok
18489           dash odd
18490
18491 2009-07-21  Eric Blake  <ebb9@byu.net>
18492
18493         dup2-tests: test previous patch
18494         * modules/dup2-tests: New file.
18495         * tests/test-dup2.c: Likewise.
18496         * tests/test-open.c (main): Avoid unspecified behavior.
18497         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
18498         test.
18499
18500         dup2: work around mingw and cygwin 1.5 bug
18501         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
18502         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
18503         * modules/unistd (Makefile.am): Substitute it.
18504         * lib/unistd.in.h (dup2): Declare the replacement.
18505         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
18506         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
18507         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
18508         * modules/execute (Depends-on): Add dup2.
18509         * modules/fseterr (Depends-on): Likewise.
18510         * modules/pipe (Depends-on): Likewise.
18511         * modules/posix_spawn-internal (Depends-on): Likewise.
18512
18513 2009-07-21  Bruno Haible  <bruno@clisp.org>
18514
18515         * modules/.gitattributes: New file.
18516
18517 2009-07-20  Bruno Haible  <bruno@clisp.org>
18518
18519         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
18520         (main): Use it.
18521
18522 2009-07-20  Eric Blake  <ebb9@byu.net>
18523
18524         test-pipe: make a bit more robust.
18525         * tests/test-pipe.c (myerr): Allow error messages regardless of
18526         what we do to stderr.
18527         (test_pipe): Rearrange to avoid deadlock.
18528         (child_main): Try a larger read, to ensure we avoided deadlock.
18529         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
18530         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
18531         if misused.
18532
18533 2009-07-19  Jim Meyering  <meyering@redhat.com>
18534
18535         fts: avoid false-positive cycle-detection
18536         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
18537         for each new command line argument.
18538
18539 2009-07-19  Bruno Haible  <bruno@clisp.org>
18540
18541         Fix build error on mingw with the modules sys_select and unistd.
18542         * modules/acl-tests (Depends-on): Add close.
18543         * modules/binary-io-tests (Depends-on): Likewise.
18544         * modules/closein-tests (Depends-on): Likewise.
18545         * modules/flock-tests (Depends-on): Likewise.
18546         * modules/fsync-tests (Depends-on): Likewise.
18547         * modules/lseek-tests (Depends-on): Likewise.
18548         * modules/pipe-tests (Depends-on): Likewise.
18549         * modules/posix_spawn-tests (Depends-on): Likewise.
18550         * modules/posix_spawnp-tests (Depends-on): Likewise.
18551         * modules/stat-time-tests (Depends-on): Likewise.
18552         * modules/yesno-tests (Depends-on): Likewise.
18553
18554 2009-07-19  Bruno Haible  <bruno@clisp.org>
18555
18556         Unify conditionals.
18557         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
18558         macros, not at the compiler macros.
18559         * lib/pipe.c: Likewise.
18560         * lib/execute.c: Likewise.
18561         * lib/spawni.c: Likewise.
18562
18563 2009-07-19  Bruno Haible  <bruno@clisp.org>
18564
18565         Fix handling of closed stdin/stdout/stderr on mingw.
18566         * lib/w32spawn.h: Include unistd.h.
18567         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
18568         file descriptor with O_NOINHERIT flag.
18569         (fd_safer_noinherit): New function, based on fd-safer.c.
18570         (dup_safer_noinherit): New function, based on dup-safer.c.
18571         (undup_safer_noinherit): New function.
18572         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
18573         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
18574         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
18575         instead of fd_safer.
18576         * tests/test-pipe.c: Include <windows.h>.
18577         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
18578
18579         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
18580         from main.
18581         (test_pipe): Pass an extra argument for disambiguation.
18582         (main): Invoke parent_main or child_main.
18583
18584         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
18585         consistently.
18586
18587 2009-07-18  Eric Blake  <ebb9@byu.net>
18588
18589         test-pipe: fix mingw build
18590         * tests/test-pipe.c (main): Avoid fcntl on mingw.
18591
18592 2009-07-18  Bruno Haible  <bruno@clisp.org>
18593
18594         * modules/pipe-tests (Makefile.am): Fix typo.
18595
18596 2009-07-18  Eric Blake  <ebb9@byu.net>
18597
18598         error: fix mingw build
18599         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
18600         Reported by Bruno Haible.
18601
18602         error: avoid undefined use of stdout
18603         * lib/error.c (error, error_at_line): Check that fd 1 is open
18604         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
18605         is handling faults and the close_stdout module wants to report the
18606         detection of closed stdout as an error.
18607
18608 2009-07-17  Eric Blake  <ebb9@byu.net>
18609
18610         pipe: be robust in face of closed fds
18611         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
18612         should cause child to misbehave.
18613         * modules/pipe-tests: New module.
18614         * tests/test-pipe.c: New file.
18615         * tests/test-pipe.sh: New file.
18616         Reported by Akim Demaille.
18617
18618 2009-07-14  Bruno Haible  <bruno@clisp.org>
18619
18620         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
18621         Reported by anonymous kc.
18622
18623 2009-07-07  Jim Meyering  <meyering@redhat.com>
18624
18625         maint.mk: don't look for translatable strings in *.m4 or *.mk
18626         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
18627         when searching for translatable strings.
18628
18629 2009-07-05  Jim Meyering  <meyering@redhat.com>
18630
18631         remove superfluous parentheses in STREQ definition
18632         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
18633         * lib/getugroups.c (STREQ): Likewise.
18634         * lib/fnmatch.c (STREQ): Likewise.
18635         Spotted by Bruno Haible.
18636
18637 2009-07-04  Jim Meyering  <meyering@redhat.com>
18638
18639         argv-iter: new module
18640         * MODULES.html.sh: Add argv-iter.
18641         * lib/argv-iter.c, lib/argv-iter.h: New files.
18642         * modules/argv-iter: New file.
18643         * modules/argv-iter-tests: New file.
18644         * tests/test-argv-iter.c: Test it.
18645
18646 2009-07-04  Bruno Haible  <bruno@clisp.org>
18647
18648         Fix assertion.
18649         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
18650         contains more exact copies of a given entry than file2, leave the extra
18651         copies unpaired rather than aborting.
18652         Reported by Eric Blake.
18653
18654 2009-07-02  Bruno Haible  <bruno@clisp.org>
18655
18656         Speedup git-merge-changelog for git cherry-pick.
18657         * lib/git-merge-changelog.c (struct entries_mapping): New type.
18658         (entries_mapping_get): New function, extracted from compute_mapping.
18659         (entries_mapping_reverse_get): New function.
18660         (compute_mapping): Add a 'full' argument. Return the result in a
18661         'struct entries_mapping'.
18662         (main): Update. Access the mappings through entries_mapping_get.
18663         Reported by Eric Blake.
18664
18665 2009-07-02  Bruno Haible  <bruno@clisp.org>
18666
18667         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
18668         best_i.
18669
18670 2009-07-02  Bruno Haible  <bruno@clisp.org>
18671
18672         Speed up approximate search for matching ChangeLog entries.
18673         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
18674         argument. Call fstrcmp_bounded instead of fstrcmp.
18675         (compute_mapping, try_split_merged_entry, main): Update callers.
18676
18677 2009-07-02  Bruno Haible  <bruno@clisp.org>
18678
18679         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
18680
18681 2009-06-30  Bruno Haible  <bruno@clisp.org>
18682
18683         Reduce the number of uc_is_cased calls.
18684         * lib/unicase.h (casing_suffix_context_t): Add
18685         'first_char_except_ignorable' field.
18686         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
18687         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
18688         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
18689         Update initializer.
18690         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
18691         case-ignorable characters.
18692         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
18693         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
18694         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
18695         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
18696         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
18697
18698 2009-06-30  Bruno Haible  <bruno@clisp.org>
18699
18700         Tests for module 'unicase/ignorable'.
18701         * modules/unicase/ignorable-tests: New file.
18702         * tests/unicase/test-ignorable.c: New file, generated by
18703         gen-uni-tables.
18704
18705         Tests for module 'unicase/cased'.
18706         * modules/unicase/cased-tests: New file.
18707         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
18708         * tests/unicase/test-predicate-part1.h: New file, derived from
18709         tests/unictype/test-predicate-part1.h.
18710         * tests/unicase/test-predicate-part2.h: New file, same as
18711         tests/unictype/test-predicate-part2.h.
18712
18713         Fix evaluation of "Before C" condition of FINAL_SIGMA.
18714         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
18715         (output_casing_properties): New function.
18716         (main): Call it.
18717         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
18718         * lib/unicase/cased.c: Include unictype/bitmap.h.
18719         (uc_is_cased): Define through a bitmap lookup.
18720         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
18721         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
18722         (uc_is_case_ignorable): Define through a bitmap lookup.
18723         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
18724         lib/unictype/bitmap.h.
18725         (Depends-on): Add inline. Clean up.
18726         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
18727         lib/unictype/bitmap.h.
18728         (Depends-on): Add inline. Clean up.
18729         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
18730         recognition.
18731         * tests/unicase/test-u16-tolower.c (main): Likewise.
18732         * tests/unicase/test-u32-tolower.c (main): Likewise.
18733
18734 2009-06-30  Bruno Haible  <bruno@clisp.org>
18735
18736         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
18737         * lib/unicase/u16-casemap.c: Likewise.
18738         * lib/unicase/u32-casemap.c: Likewise.
18739
18740 2009-06-29  Bruno Haible  <bruno@clisp.org>
18741
18742         Define u32_casefold as a wrapper around u32_ct_casefold.
18743         * lib/unicase/u32-casefold.c: Update.
18744         * modules/unicase/u32-casefold (Depends-on): Add
18745         unicase/u32-ct-casefold, unicase/empty-prefix-context,
18746         unicase/empty-suffix-context. Clean up.
18747
18748         Define u16_casefold as a wrapper around u16_ct_casefold.
18749         * lib/unicase/u16-casefold.c: Update.
18750         * modules/unicase/u16-casefold (Depends-on): Add
18751         unicase/u16-ct-casefold, unicase/empty-prefix-context,
18752         unicase/empty-suffix-context. Clean up.
18753
18754         Define u8_casefold as a wrapper around u8_ct_casefold.
18755         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
18756         * lib/unicase/u8-casefold.c: Update.
18757         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
18758         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
18759
18760         Define u32_totitle as a wrapper around u32_ct_totitle.
18761         * lib/unicase/u32-totitle.c: Update.
18762         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
18763         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
18764
18765         Define u16_totitle as a wrapper around u16_ct_totitle.
18766         * lib/unicase/u16-totitle.c: Update.
18767         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
18768         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
18769
18770         Define u8_totitle as a wrapper around u8_ct_totitle.
18771         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
18772         functions.
18773         (FUNC): Delegate to U_CT_TOTITLE.
18774         * lib/unicase/u8-totitle.c: Update.
18775         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
18776         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
18777
18778         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
18779         invocation.
18780         * modules/unicase/u32-tolower (Depends-on): Add
18781         unicase/empty-prefix-context, unicase/empty-suffix-context.
18782
18783         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
18784         invocation.
18785         * modules/unicase/u16-tolower (Depends-on): Add
18786         unicase/empty-prefix-context, unicase/empty-suffix-context.
18787
18788         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
18789         * modules/unicase/u8-tolower (Depends-on): Add
18790         unicase/empty-prefix-context, unicase/empty-suffix-context.
18791
18792         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
18793         invocation.
18794         * modules/unicase/u32-toupper (Depends-on): Add
18795         unicase/empty-prefix-context, unicase/empty-suffix-context.
18796
18797         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
18798         invocation.
18799         * modules/unicase/u16-toupper (Depends-on): Add
18800         unicase/empty-prefix-context, unicase/empty-suffix-context.
18801
18802         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
18803         * modules/unicase/u8-toupper (Depends-on): Add
18804         unicase/empty-prefix-context, unicase/empty-suffix-context.
18805
18806         New module 'unicase/u32-ct-casefold'.
18807         * lib/unicase/u32-ct-casefold.c: New file.
18808         * modules/unicase/u32-ct-casefold: New file.
18809
18810         New module 'unicase/u16-ct-casefold'.
18811         * lib/unicase/u16-ct-casefold.c: New file.
18812         * modules/unicase/u16-ct-casefold: New file.
18813
18814         New module 'unicase/u8-ct-casefold'.
18815         * lib/unicase/u8-ct-casefold.c: New file.
18816         * lib/unicase/u-ct-casefold.h: New file, derived from
18817         lib/unicase/u-casefold.h.
18818         * modules/unicase/u8-ct-casefold: New file.
18819
18820         New module 'unicase/u32-ct-totitle'.
18821         * lib/unicase/u32-ct-totitle.c: New file.
18822         * modules/unicase/u32-ct-totitle: New file.
18823
18824         New module 'unicase/u16-ct-totitle'.
18825         * lib/unicase/u16-ct-totitle.c: New file.
18826         * modules/unicase/u16-ct-totitle: New file.
18827
18828         New module 'unicase/u8-ct-totitle'.
18829         * lib/unicase/u8-ct-totitle.c: New file.
18830         * lib/unicase/u-ct-totitle.h: New file, derived from
18831         lib/unicase/u-totitle.h.
18832         * modules/unicase/u8-ct-totitle: New file.
18833
18834         New module 'unicase/u32-ct-tolower'.
18835         * lib/unicase/u32-ct-tolower.c: New file.
18836         * modules/unicase/u32-ct-tolower: New file.
18837
18838         New module 'unicase/u16-ct-tolower'.
18839         * lib/unicase/u16-ct-tolower.c: New file.
18840         * modules/unicase/u16-ct-tolower: New file.
18841
18842         New module 'unicase/u8-ct-tolower'.
18843         * lib/unicase/u8-ct-tolower.c: New file.
18844         * modules/unicase/u8-ct-tolower: New file.
18845
18846         New module 'unicase/u32-ct-toupper'.
18847         * lib/unicase/u32-ct-toupper.c: New file.
18848         * modules/unicase/u32-ct-toupper: New file.
18849
18850         New module 'unicase/u16-ct-toupper'.
18851         * lib/unicase/u16-ct-toupper.c: New file.
18852         * modules/unicase/u16-ct-toupper: New file.
18853
18854         New module 'unicase/u8-ct-toupper'.
18855         * lib/unicase/u8-ct-toupper.c: New file.
18856         * modules/unicase/u8-ct-toupper: New file.
18857
18858         Add context arguments to u*_casemap functions.
18859         * lib/unicase/unicasemap.h: Include unicase.h.
18860         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
18861         suffix_context arguments.
18862         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
18863         functions.
18864         (FUNC): Add prefix_context and suffix_context arguments. Use
18865         uc_is_cased and uc_is_case_ignorable.
18866         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
18867         * lib/unicase/u16-casemap.c: Likewise.
18868         * lib/unicase/u32-casemap.c: Likewise.
18869         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
18870         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
18871         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
18872         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
18873         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
18874         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
18875
18876         New module 'unicase/u32-suffix-context'.
18877         * lib/unicase/u32-suffix-context.c: New file.
18878         * modules/unicase/u32-suffix-context: New file.
18879
18880         New module 'unicase/u16-suffix-context'.
18881         * lib/unicase/u16-suffix-context.c: New file.
18882         * modules/unicase/u16-suffix-context: New file.
18883
18884         New module 'unicase/u8-suffix-context'.
18885         * lib/unicase/u8-suffix-context.c: New file.
18886         * lib/unicase/u-suffix-context.h: New file.
18887         * modules/unicase/u8-suffix-context: New file.
18888
18889         New module 'unicase/empty-suffix-context'.
18890         * lib/unicase/empty-suffix-context.c: New file.
18891         * modules/unicase/empty-suffix-context: New file.
18892
18893         New module 'unicase/u32-prefix-context'.
18894         * lib/unicase/u32-prefix-context.c: New file.
18895         * modules/unicase/u32-prefix-context: New file.
18896
18897         New module 'unicase/u16-prefix-context'.
18898         * lib/unicase/u16-prefix-context.c: New file.
18899         * modules/unicase/u16-prefix-context: New file.
18900
18901         New module 'unicase/u8-prefix-context'.
18902         * lib/unicase/u8-prefix-context.c: New file.
18903         * lib/unicase/u-prefix-context.h: New file.
18904         * lib/unicase/context.h: New file.
18905         * modules/unicase/u8-prefix-context: New file.
18906
18907         New module 'unicase/empty-prefix-context'.
18908         * lib/unicase/empty-prefix-context.c: New file.
18909         * modules/unicase/empty-prefix-context: New file.
18910
18911         New module 'unicase/ignorable'.
18912         * lib/unicase/ignorable.c: New file.
18913         * modules/unicase/ignorable: New file.
18914
18915         New module 'unicase/cased'.
18916         * lib/unicase/caseprop.h: New file.
18917         * lib/unicase/cased.c: New file.
18918         * modules/unicase/cased: New file.
18919
18920         New functions for case mapping of substrings.
18921         * lib/unicase.h (casing_prefix_context_t): New type.
18922         (unicase_empty_prefix_context): New variable.
18923         (u8_casing_prefix_context, u16_casing_prefix_context,
18924         u32_casing_prefix_context, u8_casing_prefixes_context,
18925         u16_casing_prefixes_context, u32_casing_prefixes_context): New
18926         declarations.
18927         (casing_suffix_context_t): New type.
18928         (unicase_empty_suffix_context): New variable.
18929         (u8_casing_suffix_context, u16_casing_suffix_context,
18930         u32_casing_suffix_context, u8_casing_suffixes_context,
18931         u16_casing_suffixes_context, u32_casing_suffixes_context,
18932         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
18933         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
18934         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
18935         declarations.
18936
18937 2009-06-28  Jim Meyering  <meyering@redhat.com>
18938
18939         boostrap: indent only with spaces
18940         * build-aux/bootstrap: Indent only with spaces, never TABs.
18941
18942         bootstrap: split long lines
18943         * build-aux/bootstrap: Keep line length < 80.
18944
18945         bootstrap: sync from coreutils
18946         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
18947         just as autoreconf does.  Verify a list of prerequisite
18948         package-name,version-number pairs if defined in bootstrap.conf.
18949         Refer to README-prereq, if prerequisites are not satisfied.
18950
18951 2009-06-27  Eric Blake  <ebb9@byu.net>
18952
18953         tests: add test for bogus NULL definition
18954         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
18955         * tests/test-stdlib.c: Likewise.
18956         * tests/test-string.c: Likewise.
18957         * tests/test-locale.c: Likewise.
18958         * tests/test-unistd.c: Likewise.
18959         * modules/stdio-tests (Depends-on): Add verify.
18960         * modules/stdlib-tests (Depends-on): Likewise.
18961         * modules/string-tests (Depends-on): Likewise.
18962         * modules/locale-tests (Depends-on): Likewise.
18963         * modules/unistd-tests (Depends-on): Likewise.
18964
18965 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
18966
18967         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
18968         self-explaining comment.
18969         * m4/selinux-selinux-h: Update serial.
18970         (gl_LIBSELINUX): New macro, adding a warning for missing development
18971         packages to code extracted from...
18972         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
18973         Add warning for missing development packages here, too.
18974
18975 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
18976
18977         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
18978
18979 2009-06-25  Eric Blake  <ebb9@byu.net>
18980
18981         version-etc: fix regression
18982         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
18983         gcc.
18984         (version_etc): Use it, to catch bugs with trailing NULL.
18985         * lib/version-etc.c (version_etc_arn): Delete unused argument.
18986         (version_etc_va): Fix logic bug.
18987         * modules/version-etc-tests: Add test.
18988         * tests/test-version-etc.c: New file.
18989         * tests/test-version-etc.sh: Likewise.
18990
18991 2009-06-25  Sam Steingold  <sds@gnu.org>
18992
18993         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
18994         mbtowc declaration.
18995
18996 2009-06-25  Eric Blake  <ebb9@byu.net>
18997
18998         fpurge: migrate into <stdio.h>
18999         * lib/fpurge.h: Delete...
19000         * lib/stdio.in.h (fpurge): ...and declare here, instead.
19001         * lib/fpurge.c (fpurge): Change declaring header.
19002         * modules/fpurge (Files): Drop deleted file.
19003         (Depends-on): Add stdio.
19004         (configure.ac): Set witness.
19005         * modules/stdio (Makefile.am): Support fpurge macros.
19006         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
19007         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
19008         * lib/fflush.c: Update client.
19009         * tests/test-fpurge.c: Likewise.
19010         * NEWS: Mention the change.
19011
19012 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
19013
19014         * lib/argp-version-etc.c (program_authors): Add const
19015         qualifier.
19016         * lib/version-etc.c: Fix typos in the comments.
19017         * modules/argp-version-etc: Depends on version-etc.
19018
19019 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
19020
19021         argp-version-etc: new module.
19022
19023         * lib/argp-version-etc.c: New file.
19024         * lib/argp-version-etc.h: New file.
19025         * modules/argp-version-etc: New file.
19026         * modules/argp-version-etc-tests: New file.
19027         * tests/test-argp-version-etc.c: New test.
19028         * tests/test-argp-version-etc-1.sh: New test.
19029
19030 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
19031
19032         Provide additional interfaces and documentation for version-etc
19033         module.
19034
19035         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
19036         interfaces.
19037         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
19038         prototypes.
19039
19040 2009-06-24  Bruno Haible  <bruno@clisp.org>
19041
19042         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
19043         HAVE_LIB${NAME} macro.
19044         Reported by Sam Steingold <sds@gnu.org>.
19045
19046 2009-06-23  Simon Josefsson  <simon@josefsson.org>
19047
19048         * modules/hash-tests (test_hash_LDADD): Link to libintl when
19049         needed.
19050
19051 2009-06-21  Bruno Haible  <bruno@clisp.org>
19052
19053         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
19054         work.
19055         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
19056         together with LIB${NAME}, LTLIB${NAME}.
19057         Reported by Sam Steingold <sds@gnu.org>.
19058
19059 2009-06-20  Jim Meyering  <meyering@redhat.com>
19060
19061         tests: make sc_require_test_exit_idiom more generic
19062         * top/maint.mk (Exit_witness_file): New overridable variable.
19063         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
19064         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
19065
19066 2009-06-19  Jim Meyering  <meyering@redhat.com>
19067
19068         hash: reverse order of src/dst parameters in an internal interface
19069         * lib/hash.c (transfer_entries): Reverse order of parameters to
19070         put DST before SRC.  Adjust callers.
19071
19072         tests: test-hash: avoid wholesale duplication
19073         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
19074         Instead, use a loop and add a single conditional.
19075
19076         tests: test-hash: allow seed selection via a command line argument
19077         * tests/test-hash.c (get_seed): New function.
19078         (main): Use it.
19079
19080 2009-06-19  Eric Blake  <ebb9@byu.net>
19081
19082         hash: avoid memory leak on allocation failure
19083         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
19084         failure.  Factor repeated algorithm...
19085         (transfer_entries): ...into new helper routine.
19086         (hash_delete): React to hash_rehash return value.
19087
19088         hash: reduce memory pressure in hash_rehash no-op case
19089         * lib/hash.c (next_prime): Avoid overflow.
19090         (hash_initialize): Factor bucket size computation...
19091         (compute_bucket_size): ...into new helper function.
19092         (hash_rehash): Use new function and open coding to reduce memory
19093         pressure, and avoid a memory leak in USE_OBSTACK code.
19094         Reported by Jim Meyering.
19095
19096 2009-06-18  Eric Blake  <ebb9@byu.net>
19097
19098         hash: make rotation more obvious
19099         * modules/hash (Depends-on): Add bitrotate and stdint.
19100         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
19101         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
19102         (SIZE_MAX): Rely on headers for definition.
19103         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
19104         (raw_hasher): Use rotr_sz.
19105         Suggested by Jim Meyering.
19106
19107         hash: fix memory leak in last patch
19108         * lib/hash.c (hash_rehash): Avoid memory leak.
19109
19110         hash: avoid no-op rehashing
19111         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
19112
19113         hash: provide default callback functions
19114         * lib/hash.c (raw_hasher, raw_comparator): New functions.
19115         (hash_initialize): Use them as defaults.
19116         * tests/test-hash.c (main): Test this.
19117
19118         hash: minor optimization
19119         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
19120         when possible.
19121         (hash_initialize): Document this promise.
19122         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
19123         * tests/test-hash.c (hash_compare_strings): Test this.
19124
19125 2009-06-18  Bruno Haible  <bruno@clisp.org>
19126
19127         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
19128         going to be replaced anyway.
19129
19130 2009-06-18  Bruno Haible  <bruno@clisp.org>
19131
19132         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
19133         in one place.
19134         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
19135         be replaced anyway.
19136
19137 2009-06-18  Eric Blake  <ebb9@byu.net>
19138
19139         hash: check for resize before insertion
19140         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
19141         threshold before insertion, so that a pathological hash_rehash
19142         that fills every bucket can still trigger another rehash.
19143
19144 2009-06-18  Jim Meyering  <meyering@redhat.com>
19145
19146         hash-tests: add a loop around the small tests
19147         * tests/test-hash.c (main): Repeat small tests with selected
19148         small initial table sizes.
19149
19150 2009-06-17  Eric Blake  <ebb9@byu.net>
19151
19152         hash: minor cleanups
19153         * lib/hash.h (hash_entry): Make opaque, by moving...
19154         * lib/hash.c (hash_entry): ...here.
19155         (hash_insert): Clarify restrictions on what can be inserted.
19156         (hash_get_next): Clarify when it is safe to remove an element
19157         during traversal.
19158         (check_tuning): Skip verification when tuning is known safe.
19159         (hash_initialize): Clarify restrictions on tuning.
19160
19161 2009-06-17  Jim Meyering  <jim@meyering.net>
19162         and Eric Blake  <ebb9@byu.net>
19163
19164         hash-tests: new module
19165         * modules/hash-tests: New file.
19166         * tests/test-hash.c: New file.
19167
19168 2009-06-17  Eric Blake  <ebb9@byu.net>
19169
19170         strstr-simple: document new module
19171         * MODULES.html.sh: Document new module.
19172
19173         strstr, strcasestr: replace on platforms with broken memchr
19174         * modules/strstr: Split into...
19175         * modules/strstr-simple: ...new module that does not care about
19176         performance, but does care about glibc bug.
19177         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
19178         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
19179         if platform memchr is broken, per Debian bug 521737.
19180         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
19181         memchr.
19182         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
19183         * doc/posix-functions/strstr.texi (strstr): Document the fix.
19184         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
19185         * modules/mountlist (Depends-on): Add strstr-simple.
19186         * modules/gen-uni-tables (Depends-on): Likewise.
19187         * modules/argz (Depends-on): Add strstr.
19188
19189 2009-06-17  Bruno Haible  <bruno@clisp.org>
19190
19191         * modules/posix_spawn-internal (Depends-on): Add errno.
19192
19193 2009-06-17  Bruno Haible  <bruno@clisp.org>
19194
19195         Define missing ESTALE on Interix 3.5.
19196         * lib/errno.in.h (ESTALE): Assign a value if missing.
19197         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
19198         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
19199         missing.
19200         * doc/posix-headers/errno.texi: Mention the Interix bug.
19201         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
19202
19203 2009-06-15  Eric Blake  <ebb9@byu.net>
19204
19205         memchr, memchr2: add valgrind exception
19206         * lib/memchr.valgrind: New file.
19207         * lib/memchr2.valgrind: New file.
19208         * modules/memchr (Files): Distribute valgrind file.
19209         * modules/memchr2 (Files): Likewise.
19210
19211         docs: memchr is no longer obsolete
19212         * MODULES.html.sh: Move memchr from obsolete to string.h section.
19213         * lib/string.in.h (memchr): Simplify logic.
19214
19215 2009-06-14  Jim Meyering  <meyering@redhat.com>
19216
19217         link-follow: fix the "checking..." message to not mention trailing slash
19218         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
19219         never considered trailing slashes.
19220
19221 2009-06-14  Bruno Haible  <bruno@clisp.org>
19222
19223         * m4/memchr.m4: Mention also the bug on IA-64.
19224         * doc/posix-functions/memchr.texi: Likewise.
19225
19226 2009-06-12  Eric Blake  <ebb9@byu.net>
19227
19228         memchr: detect broken x86_64 and alpha implementations
19229         * modules/memchr-tests (Depends-on): Move mmap detection...
19230         * modules/memchr (Depends-on): ...here.
19231         (configure.ac): Set indicator.
19232         * lib/string.in.h (memchr): Declare replacement.
19233         * modules/string (Makefile.am): Trigger replacement.
19234         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
19235         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
19236         bugs.
19237         * doc/posix-functions/memchr.texi (memchr): Document the bug.
19238         * modules/getpagesize (License): Relax license.
19239
19240 2009-06-11  Bruno Haible  <bruno@clisp.org>
19241
19242         * lib/idpriv.h: Add more references.
19243
19244 2009-06-08  Bruno Haible  <bruno@clisp.org>
19245
19246         Tests for module 'idpriv-droptemp'.
19247         * modules/idpriv-droptemp-tests: New file.
19248         * tests/test-idpriv-droptemp.sh: New file.
19249         * tests/test-idpriv-droptemp.su.sh: New file.
19250         * tests/test-idpriv-droptemp.c: New file.
19251
19252         New module 'idpriv-droptemp'.
19253         * lib/idpriv-droptemp.c: New file.
19254         * modules/idpriv-droptemp: New file.
19255
19256 2009-06-08  Bruno Haible  <bruno@clisp.org>
19257
19258         Tests for module 'idpriv-drop'.
19259         * modules/idpriv-drop-tests: New file.
19260         * tests/test-idpriv-drop.sh: New file.
19261         * tests/test-idpriv-drop.su.sh: New file.
19262         * tests/test-idpriv-drop.c: New file.
19263
19264         New module 'idpriv-drop'.
19265         * lib/idpriv.h: New file.
19266         * lib-idpriv-drop.c: New file.
19267         * m4/idpriv.m4: New file.
19268         * modules/idpriv-drop: New file.
19269
19270 2009-06-08  Bruno Haible  <bruno@clisp.org>
19271
19272         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
19273         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
19274         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
19275         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
19276         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
19277         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
19278         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
19279
19280 2009-06-08  Eric Blake  <ebb9@byu.net>
19281
19282         test-strstr: use memory fence, when possible
19283         * tests/test-strstr.c (main): Use memory fence, in order to be
19284         more likely to trigger Debian bug 521737.
19285         * modules/strstr-tests (Files): Pull in additional files.
19286
19287         memchr: no longer obsolete, for wider field testing
19288         * modules/memchr (Status, Notice): Delete, this module is no
19289         longer obsolete.
19290         * modules/vasnprintf (Depends-on): Add memchr.
19291
19292 2009-06-07  Jim Meyering  <meyering@redhat.com>
19293
19294         hash: declare some functions with the warn_unused_result attribute
19295         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
19296
19297 2009-06-07  Bruno Haible  <bruno@clisp.org>
19298
19299         * tests/test-alignof.c: Don't test int64_t if it does not exist.
19300         Reported by Eric Blake.
19301
19302 2009-06-06  Eric Blake  <ebb9@byu.net>
19303
19304         test-alignof: fix typo with long double
19305         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
19306         compiler error.
19307
19308 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
19309
19310         Escape non-texinfo { and }s.
19311         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
19312         markup error.
19313
19314 2009-06-04  Jim Meyering  <meyering@redhat.com>
19315
19316         gitlog-to-changelog: don't infloop on an empty commit log
19317         * build-aux/gitlog-to-changelog: Warn about an empty log message.
19318         Reported by Boris Petersen <transacid@centerim.org>.
19319
19320 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
19321
19322         version-etc: extend for packagers
19323         Add three new configure options, intended for packagers:
19324           --with-packager="packager name"
19325           --with-packager-version="packager-specific version"
19326           --with-packager-bug-reports="packager bug reporting"
19327         An example with coreutils:
19328           $ ./configure \
19329             --with-packager=Gentoo \
19330             --with-packager-bug-report=http://bugs.gentoo.org/ \
19331             --with-packager-version="patchset 1.6"
19332           $ ./src/ls --version | head -n2
19333           ls (GNU coreutils) 7.1-dirty
19334           Packaged by Gentoo (patchset 1.6)
19335         Note that the bug reporting info via --help doesn't show up because
19336         coreutils uses its own custom emit_bug_reporting_address() implementation
19337         in src/system.h.  If it didn't, it'd look like:
19338           $ ./src/ls --help | tail -n4
19339           Report bugs to <bug-coreutils@gnu.org>.
19340           Report Gentoo bugs to <http://bugs.gentoo.org/>.
19341           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
19342           General help using GNU software: <http://www.gnu.org/gethelp/>.
19343         * lib/version-etc.c: Print new information, if provided.
19344         * m4/version-etc.m4: New file.
19345         * modules/version-etc (Files): Add m4/version-etc.m4.
19346         (configure.ac): Add gl_VERSION_ETC.
19347
19348 2009-05-31  Bruno Haible  <bruno@clisp.org>
19349
19350         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
19351         and 'int64_t'.
19352         * modules/alignof-tests (Dependencies): Add stdint.
19353         Reported by Eric Blake.
19354
19355 2009-05-31  Bruno Haible  <bruno@clisp.org>
19356
19357         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
19358         restriction due to compiler bugs.
19359         Reported by Eric Blake.
19360
19361 2009-05-31  Simon Josefsson  <simon@josefsson.org>
19362             Bruno Haible  <bruno@clisp.org>
19363
19364         Fix test-alignof failure.
19365         * lib/alignof.h (alignof_slot): New macro.
19366         (alignof_type): New macro, with the same semantics as the previous
19367         'alignof'.
19368         (alignof): Alias to alignof_slot.
19369         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
19370         check that the results are usable as constant expressions.
19371
19372 2009-05-31  Bruno Haible  <bruno@clisp.org>
19373
19374         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
19375         * tests/test-memchr.c (main): Check that memchr does not read past the
19376         first occurrence of the byte.
19377         * tests/test-strstr.c (main): Update comment.
19378         Suggested by Eric Blake.
19379
19380 2009-05-30  Bruno Haible  <bruno@clisp.org>
19381
19382         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
19383         detail how to use dumpbin.
19384         Reported by David Byron <dbyron@dbyron.com>.
19385
19386 2009-06-02  Simon Josefsson  <simon@josefsson.org>
19387
19388         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
19389
19390 2009-06-02  Simon Josefsson  <simon@josefsson.org>
19391
19392         * m4/manywarnings.m4: Add GCC 4.4 warnings.
19393
19394 2009-05-28  Bruno Haible  <bruno@clisp.org>
19395
19396         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
19397         build-aux/ files.
19398
19399 2009-05-28  Simon Josefsson  <simon@josefsson.org>
19400
19401         * gnulib-tool (func_import): Transform license on build-aux/ files too.
19402
19403 2009-05-27  Simon Josefsson  <simon@josefsson.org>
19404
19405         * gnulib-tool (sed_transform_main_lib_file)
19406         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
19407         regexps.
19408
19409 2009-05-26  Simon Josefsson  <simon@josefsson.org>
19410
19411         * tests/test-strstr.c: Add another self-test.
19412         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
19413         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
19414
19415 2009-05-23  Bruno Haible  <bruno@clisp.org>
19416
19417         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
19418         change.
19419
19420 2009-05-21  Bruno Haible  <bruno@clisp.org>
19421
19422         Simplify use of mode_t varargs.
19423         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
19424         uses 'mode_t' or 'int'.
19425         * lib/openat.c (openat): Likewise.
19426         * lib/open-safer.c (open_safer): Likewise.
19427         * m4/mode_t.m4: New file.
19428         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
19429         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
19430         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
19431         * modules/open (Files): Add m4/mode_t.m4.
19432         * modules/openat (Files): Likewise.
19433         * modules/fcntl-safer (Files): Likewise.
19434         Suggested by Eric Blake.
19435
19436 2009-05-21  Pádraig Brady  <P@draigbrady.com>
19437
19438         * doc/glibc-functions/fallocate.texi: New file.
19439         * doc/gnulib.texi: Include it.
19440
19441 2009-05-21  Eric Blake  <ebb9@byu.net>
19442             Bruno Haible  <bruno@clisp.org>
19443
19444         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
19445         invocations.
19446         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
19447
19448 2009-05-21  Eric Blake  <ebb9@byu.net>
19449             Bruno Haible  <bruno@clisp.org>
19450
19451         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
19452         include_next. Fix of 2008-11-20 commit.
19453         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
19454         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
19455         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
19456         NEXT_MATH_H.
19457         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
19458         instead of NEXT_MATH_H.
19459
19460 2009-05-21  Bruno Haible  <bruno@clisp.org>
19461
19462         Avoid redefinition warnings for SIZE_MAX.
19463         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
19464         Reported by Simon Josefsson.
19465
19466 2009-05-21  Bruno Haible  <bruno@clisp.org>
19467
19468         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
19469         AC_CACHE_VAL.
19470
19471 2009-05-20  Bruno Haible  <bruno@clisp.org>
19472
19473         Make zeroptr.h work on mingw.
19474         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
19475         mprotect.
19476         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
19477         * modules/memchr2-tests (configure.ac): Likewise.
19478         * modules/memcmp-tests (configure.ac): Likewise.
19479         * modules/memmem-tests (configure.ac): Likewise.
19480         * modules/memrchr-tests (configure.ac): Likewise.
19481         Reported by Simon Josefsson.
19482
19483 2009-05-20  Simon Josefsson  <simon@josefsson.org>
19484
19485         * tests/test-glob.c: Include string.h for strcmp prototype.
19486
19487 2009-05-20  Simon Josefsson  <simon@josefsson.org>
19488
19489         * modules/getdelim (Depends-on): Add explicit stdint, although it
19490         was implicitly already pulled in via realloc-posix.
19491         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
19492
19493 2009-05-20  Simon Josefsson  <simon@josefsson.org>
19494
19495         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
19496         G. Christensen" <tgc@jupiterrise.com>.
19497         * m4/sys_socket_h.m4: Check for sa_family_t.
19498         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
19499         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
19500         * tests/test-sys_socket.c: Check that sa_family_t works.
19501
19502 2009-05-18  Eric Blake  <ebb9@byu.net>
19503
19504         maint.mk: allow gnulib_dir in VPATH build
19505         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
19506
19507 2009-05-15  Jim Meyering  <meyering@redhat.com>
19508
19509         maint.mk: Give gnulib_dir a default definition.
19510         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
19511         Thus, most packages no longer need to specify this variable in cfg.mk
19512
19513 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
19514
19515         rename.m4: fix typos that would make non-mingw cross-configure fail
19516         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
19517
19518 2009-05-13  Eric Blake  <ebb9@byu.net>
19519
19520         mmap-anon: avoid out-of-order autoconf expansion
19521         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
19522         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
19523         * modules/memchr-tests (Depends-on): Add extensions.
19524         * modules/memchr2-tests (Depends-on): Add extensions.
19525         * modules/memcmp-tests (Depends-on): Add extensions.
19526         * modules/memmem-tests (Depends-on): Add extensions.
19527         * modules/memrchr-tests (Depends-on): Add extensions.
19528
19529 2009-05-13  Bruno Haible  <bruno@clisp.org>
19530
19531         Make some tests ISO C 99 compliant.
19532         * tests/zerosize-ptr.h: New file.
19533         * tests/test-memchr.c: Include zerosize-ptr.h.
19534         (main): Use a zero-size object pointer instead of NULL.
19535         * tests/test-memchr2.c: Include zerosize-ptr.h.
19536         (main): Use a zero-size object pointer instead of NULL.
19537         * tests/test-memcmp.c: Include zerosize-ptr.h.
19538         (main): Use a zero-size object pointer instead of NULL.
19539         * tests/test-memmem.c: Include zerosize-ptr.h.
19540         (main): Use a zero-size object pointer instead of NULL.
19541         * tests/test-memrchr.c: Include zerosize-ptr.h.
19542         (main): Use a zero-size object pointer instead of NULL.
19543         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
19544         m4/mmap-anon.m4.
19545         (Depends-on): Add getpagesize.
19546         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
19547         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
19548         m4/mmap-anon.m4.
19549         (Depends-on): Add getpagesize.
19550         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
19551         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
19552         m4/mmap-anon.m4.
19553         (Depends-on): Add getpagesize.
19554         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
19555         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
19556         m4/mmap-anon.m4.
19557         (Depends-on): Add getpagesize.
19558         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
19559         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
19560         m4/mmap-anon.m4.
19561         (Depends-on): Add getpagesize.
19562         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
19563
19564 2009-05-12  Bruno Haible  <bruno@clisp.org>
19565
19566         Tests for module 'alignof'.
19567         * modules/alignof-tests: New file.
19568         * tests/test-alignof.c: New file.
19569
19570 2009-05-12  Bruno Haible  <bruno@clisp.org>
19571
19572         Fix alignof macro.
19573         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
19574         vendor compilers that are always correct.
19575
19576 2009-05-12  Bruno Haible  <bruno@clisp.org>
19577
19578         Make the MAP_ANONYMOUS detection work on HP-UX 11.
19579         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
19580         not whether its fully works.
19581
19582 2009-05-12  Bruno Haible  <bruno@clisp.org>
19583
19584         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
19585
19586 2009-05-12  Jim Meyering  <meyering@redhat.com>
19587
19588         * top/maint.mk: Adjust backslash alignment.
19589
19590 2009-05-11  Simon Josefsson  <simon@josefsson.org>
19591
19592         * top/maint.mk: Make $(srcdir)/build-aux configurable.
19593
19594 2009-05-11  Eric Blake  <ebb9@byu.net>
19595
19596         argp: avoid undefined behavior
19597         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
19598         macros.
19599
19600 2009-05-08  Simon Josefsson  <simon@josefsson.org>
19601
19602         * tests/test-vc-list-files-git.sh: Do git config of user.email and
19603         user.name to prevent git commit from complaining.
19604
19605 2009-05-10  Bruno Haible  <bruno@clisp.org>
19606
19607         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
19608         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
19609         it rewrites every file name only once.
19610         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
19611
19612 2009-05-08  Bruno Haible  <bruno@clisp.org>
19613
19614         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
19615         instead of 'max'.
19616
19617 2009-05-08  Simon Josefsson  <simon@josefsson.org>
19618
19619         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
19620         sockaddr_storage test.
19621
19622 2009-05-07  Simon Josefsson  <simon@josefsson.org>
19623
19624         * modules/sys_socket (Makefile.am): Substitute
19625         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
19626         * m4/sys_socket_h.m4: Check for sockaddr_storage.
19627         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
19628         * tests/test-sys_socket.c: Check sockaddr_storage.
19629
19630 2009-05-08  Bruno Haible  <bruno@clisp.org>
19631
19632         New module 'alignof'.
19633         * lib/alignof.h: New file.
19634         * modules/alignof: New file.
19635
19636 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
19637             Bruno Haible  <bruno@clisp.org>
19638
19639         Fix test-file-has-acl on FreeBSD.
19640         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
19641         mask is implicitly added.
19642         * tests/test-file-has-acl.c: Include <signal.h>.
19643         (main): Terminate the test after 5 seconds.
19644         * modules/acl-tests (configure.ac): Check for alarm function.
19645
19646 2009-05-04  Bruno Haible  <bruno@clisp.org>
19647
19648         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
19649         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
19650         * modules/errno (configure.ac): Drop AC_REQUIRE.
19651         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
19652         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
19653
19654 2009-05-04  Simon Josefsson  <simon@josefsson.org>
19655
19656         * modules/glob-tests: New module.
19657         * tests/test-glob.c: Add.
19658
19659 2009-05-04  Simon Josefsson  <simon@josefsson.org>
19660
19661         * modules/fnmatch-tests: New module.
19662         * tests/test-fnmatch.c: Add.
19663
19664 2009-05-04  Eric Blake  <ebb9@byu.net>
19665
19666         maint: make the new no-submodule-changes rule VPATH-safe
19667         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
19668
19669 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
19670             Bruno Haible  <bruno@clisp.org>
19671
19672         acl: Fix infinite loop on FreeBSD.
19673         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
19674         of return value from acl_get_entry.
19675         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
19676         Likewise.
19677
19678 2009-05-03  Bruno Haible  <bruno@clisp.org>
19679
19680         * lib/acl-internal.h (acl_entries): Clarify return value.
19681         * lib/acl_entries.c (acl_entries): Likewise.
19682
19683 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
19684
19685         Bug fix in acl module.
19686         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
19687
19688 2009-05-03  Bruno Haible  <bruno@clisp.org>
19689
19690         Create gperf-generated file in the source dir, not in the build dir.
19691         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
19692         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
19693         * modules/unicase/locale-language (unicase/locale-languages.h):
19694         Likewise.
19695         * modules/unicase/special-casing (unicase/special-casing-table.h):
19696         Likewise.
19697         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
19698         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
19699         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
19700         Reported by Ralf Wildenhues.
19701
19702 2009-05-03  Bruno Haible  <bruno@clisp.org>
19703
19704         * modules/fnmatch (Description, configure.ac): Taken from
19705         fnmatch-posix.
19706         * modules/fnmatch-posix: Turn into a symbolic reference to the
19707         'fnmatch' module, and deprecate.
19708         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
19709
19710 2009-05-03  Bruno Haible  <bruno@clisp.org>
19711
19712         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
19713         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
19714         Reported by Ralf Wildenhues.
19715
19716 2009-05-04  Simon Josefsson  <simon@josefsson.org>
19717
19718         * m4/fnmatch.m4: Fix fnmatch re-define.
19719
19720 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
19721
19722         priv-set: new module and tests; adapt write-any-file
19723         * lib/priv-set.c: New file.
19724         * lib/priv-set.h: New file.
19725         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
19726         * lib/write-any-file.c: Simplify by using priv-set module.
19727         * m4/priv-set.m4: New file.
19728         * modules/priv-set: New file.
19729         * modules/unlinkdir: Add dependency on priv-set module.
19730         * modules/write-any-file: Likewise.
19731
19732         Tests for module 'priv-set'.
19733         * modules/priv-set-tests: New file.
19734         * tests/test-priv-set.c: New file.
19735
19736 2009-05-03  Jim Meyering  <meyering@redhat.com>
19737             Bruno Haible  <bruno@clisp.org>
19738
19739         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
19740         use the converted UTF-8 variant of the name instead.
19741
19742 2009-05-03  Jim Meyering  <meyering@redhat.com>
19743
19744         tests: tighten some getdate tests
19745         * tests/test-getdate.c (main): Tighten tests: require equality,
19746         not just greater than.  Set TZ envvar to UTC0.
19747
19748 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
19749
19750         getdate: correctly interpret "next monday" when run on a Monday
19751         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
19752         that e.g., "next tues" (when run on a tuesday) results in a date
19753         that is one week in the future, and not today's date.
19754         I.e., add a week when the wday is the same as the current one.
19755         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
19756         and earlier by Martin Bernreuther and Jan Minář.
19757         * tests/test-getdate.c (main): Check that "next DAY" is always in
19758         the future and that "last DAY" is always in the past.
19759
19760 2009-05-02  Jim Meyering  <meyering@redhat.com>
19761
19762         build: ensure that a release build fails when a submodule is unclean
19763         * top/maint.mk (no-submodule-changes): New rule.
19764         (alpha beta major): Depend on it.
19765
19766 2009-05-02  Bruno Haible  <bruno@clisp.org>
19767
19768         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
19769         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
19770         shell variable gl_fnmatch_required to detect which variant is
19771         requested.
19772         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
19773         gl_FUNC_FNMATCH_POSIX.
19774         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
19775         exclude fnmatch-posix.
19776
19777 2009-05-02  Bruno Haible  <bruno@clisp.org>
19778
19779         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
19780         * modules/mbsrtowcs (License): Change to LGPLv2+.
19781         * modules/strnlen1 (License): Likewise.
19782         Reported by Simon Josefsson.
19783
19784 2009-05-02  Bruno Haible  <bruno@clisp.org>
19785
19786         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
19787         "cross".
19788         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
19789         gnulib-tool was called with option --source-base=lib.
19790
19791 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19792
19793         Use automake *-local hooks without commands, for extensibility.
19794         * modules/localcharset (Makefile.am): Rename install-exec-local
19795         rule to install-exec-localcharset, and make it a prerequisite of
19796         install-exec-local.  Likewise, rename the uninstall-local rule to
19797         uninstall-localcharset, and make it a prerequisite of the former.
19798
19799 2009-05-01  Bruno Haible  <bruno@clisp.org>
19800
19801         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
19802         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
19803         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
19804         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
19805         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
19806         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
19807         m4/locale-zh.m4, m4/codeset.m4.
19808
19809         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
19810         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
19811         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
19812         m4/locale-zh.m4.
19813
19814         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
19815         REPLACE_WCRTOMB if mbstate_t must be replaced.
19816         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
19817         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
19818
19819 2009-05-01  Bruno Haible  <bruno@clisp.org>
19820
19821         Avoid compiler warnings when redefining macros defined by <libintl.h>.
19822         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
19823         dngettext, dcngettext, textdomain, bindtextdomain,
19824         bind_textdomain_codeset): Undefine before redefining.
19825
19826 2009-04-30  Bruno Haible  <bruno@clisp.org>
19827
19828         Fix bug introduced on 2009-04-25.
19829         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
19830         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
19831         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
19832         is defined.
19833         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
19834         is defined.
19835         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
19836         is defined.
19837         Reported by Elbert_Pol <elbert.pol@gmail.com>.
19838
19839 2009-04-28  Bruno Haible  <bruno@clisp.org>
19840
19841         Comment tweaks.
19842         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
19843         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
19844         * lib/unicase.h (u*_casexfrm): Likewise.
19845         Reported by Paolo Bonzini.
19846
19847 2009-04-28  Bruno Haible  <bruno@clisp.org>
19848
19849         Fix a compilation error.
19850         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
19851         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
19852         Reported by Jim Meyering.
19853
19854 2009-04-27  Bruno Haible  <bruno@clisp.org>
19855
19856         New module 'libunistring'.
19857         * modules/libunistring: New file.
19858         * m4/libunistring.m4: New file.
19859         * MODULES.html.sh (Unicode string functions): Add it.
19860
19861 2009-04-27  Eric Blake  <ebb9@byu.net>
19862
19863         maint.mk: allow package-specific header to provide <config.h>
19864         * top/maint.mk (sc_require_config_h): New variable.
19865         (sc_require_config_h, sc_require_config_h_first): Use it.
19866
19867 2009-04-27  Simon Josefsson  <simon@josefsson.org>
19868
19869         * top/maint.mk (sc_avoid_if_before_free): Except
19870         useless-if-before-free script.
19871
19872 2009-04-27  Eric Blake  <ebb9@byu.net>
19873
19874         maintainer-makefile: depend on all required helper scripts
19875         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
19876         useless-if-before-free.
19877         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
19878         version, rather than assuming gnulib checkout is available.
19879         Reported by Simen Josefsson.
19880
19881 2009-04-26  Bruno Haible  <bruno@clisp.org>
19882
19883         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
19884         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
19885         "../" or "..".
19886
19887 2009-04-26  Bruno Haible  <bruno@clisp.org>
19888
19889         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
19890         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
19891         AC_LIB_HAVE_LINKFLAGS.
19892
19893 2009-04-26  Bruno Haible  <bruno@clisp.org>
19894
19895         Simplify calling convention of u*_conv_from_encoding.
19896         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
19897         u32_conv_from_encoding): Expect a resultbuf argument and return the
19898         result directly as a pointer.
19899         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
19900         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
19901         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
19902         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
19903         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
19904         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
19905         Update.
19906         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
19907         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
19908         * lib/vasnprintf.c (VASNPRINTF): Update.
19909         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
19910         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
19911         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
19912         * NEWS: Mention the change.
19913
19914 2009-04-26  Bruno Haible  <bruno@clisp.org>
19915
19916         Simplify calling convention of u*_conv_to_encoding.
19917         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
19918         u32_conv_to_encoding): Expect a resultbuf argument and return the
19919         result directly as a pointer.
19920         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
19921         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
19922         freeing scaled_offsets if mem_iconveha failed.
19923         * lib/unicase/u-casexfrm.h (FUNC): Update.
19924         * lib/uninorm/u-normxfrm.h (FUNC): Update.
19925         * lib/vasnprintf.c (VASNPRINTF): Update.
19926         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
19927         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
19928         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
19929         * NEWS: Mention the change.
19930
19931 2009-04-26  Bruno Haible  <bruno@clisp.org>
19932
19933         Avoid test failures on AIX and OSF/1.
19934         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
19935         malloc(0).
19936         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
19937         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
19938         Likewise.
19939         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
19940         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
19941         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
19942         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
19943         * doc/posix-functions/malloc.texi: Document the portability problem
19944         related to malloc(0).
19945
19946 2009-04-26  Bruno Haible  <bruno@clisp.org>
19947
19948         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
19949         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
19950         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
19951
19952 2009-04-25  Bruno Haible  <bruno@clisp.org>
19953
19954         Avoid link error when creating a namespace clean library.
19955         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
19956         as macro with arguments if already defined as an alias.
19957         * lib/signbitf.c (gl_signbitf): Don't undefine.
19958         * lib/signbitd.c (gl_signbitd): Don't undefine.
19959         * lib/signbitl.c (gl_signbitl): Don't undefine.
19960
19961 2009-04-25  Jim Meyering  <meyering@redhat.com>
19962
19963         vc-list-files: fix another quoting bug
19964         * build-aux/vc-list-files: Avoid sed backslash expansion
19965         of pathological directory names.
19966
19967 2009-04-25  Eric Blake  <ebb9@byu.net>
19968
19969         vc-list-files: fix shell quoting error
19970         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
19971         timestamp.
19972
19973 2009-04-25  Jim Meyering  <meyering@redhat.com>
19974
19975         vc-list-files: restore lost functionality with subdir argument
19976         * build-aux/vc-list-files: When given a non-"." sub-directory
19977         argument, substitute the $dir/ prefix back onto each resulting name.
19978         Otherwise, coreutils' root_tests check would fail.
19979
19980 2009-04-24  Eric Blake  <ebb9@byu.net>
19981
19982         vc-list-files: ignore git symlinks
19983         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
19984         than ls-files, to ignore git symlinks.
19985
19986         maint.mk: import improvements from m4
19987         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
19988         (move_if_change): Delete unused macro.
19989         (news-date-check, vc-diff-check): Support VPATH builds.
19990         (announcement): Likewise.  Split --bootstrap-tools list...
19991         (boostrap-tools): ...into separate list, which can be overridden
19992         in cfg.mk.
19993         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
19994         requiring dependency on useless-if-before-free module.
19995         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
19996         Support VPATH builds.
19997
19998 2009-04-24  Jim Meyering  <meyering@redhat.com>
19999
20000         maint.mk: remove coreutils-specific rules and variables
20001         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
20002         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
20003         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
20004
20005         maint.mk: remove obsolete rule
20006         * top/maint.mk (rel-check): Remove rule.
20007         (WGET, WGETFLAGS): Remove now-unused variables.
20008
20009 2009-04-24  Simon Josefsson  <simon@josefsson.org>
20010
20011         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
20012         consistency.
20013
20014         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
20015         '$(PATH_SEPARATOR)' instead of ':'.
20016
20017 2009-04-24  Simon Josefsson  <simon@josefsson.org>
20018
20019         * lib/getopt1.c (main): Use 'const' for static array.
20020
20021 2009-04-24  Simon Josefsson  <simon@josefsson.org>
20022
20023         * top/maint.mk: Sync with coreutils.
20024         * NEWS: Explain incompatibilities.
20025
20026 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20027             Bruno Haible  <bruno@clisp.org>
20028
20029         Fix cross-compilation results.
20030         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
20031         statement, as third argument of AC_TRY_RUN.
20032         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
20033         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
20034         Likewise.
20035         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
20036         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
20037         Likewise.
20038         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
20039         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
20040         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
20041
20042 2009-04-20  Bruno Haible  <bruno@clisp.org>
20043
20044         Avoid test failure on mingw.
20045         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
20046
20047 2009-04-20  Bruno Haible  <bruno@clisp.org>
20048
20049         Avoid compilation error on mingw.
20050         * modules/localename-tests (Depends-on): Add locale.
20051
20052 2009-04-19  Bruno Haible  <bruno@clisp.org>
20053
20054         Support for building a shared library on Windows platforms.
20055         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
20056         (main): Test the presence of UNINORM_NFC here.
20057         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
20058         (main): Test the presence of UNINORM_NFD here.
20059         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
20060         (main): Test the presence of UNINORM_NFKC here.
20061         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
20062         (main): Test the presence of UNINORM_NFKD here.
20063
20064 2009-04-19  Bruno Haible  <bruno@clisp.org>
20065
20066         Avoid a compiler warning.
20067         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
20068         Change type of variable 'sequence'.
20069
20070 2009-04-19  Bruno Haible  <bruno@clisp.org>
20071
20072         * modules/configmake (Makefile.am): When the contents of configmake.h
20073         does not change, arrange to preserve its modification time.
20074
20075 2009-04-17  Simon Josefsson  <simon@josefsson.org>
20076
20077         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
20078         gettext domain.
20079
20080 2009-04-16  Jim Meyering  <meyering@redhat.com>
20081
20082         useless-if-before-free: improve conversion code
20083         * build-aux/useless-if-before-free: Adjust code-in-comment to match
20084         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
20085
20086 2009-04-14  Bruno Haible  <bruno@clisp.org>
20087
20088         * modules/fcntl (Depends-on): Add extensions.
20089         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
20090
20091 2009-04-12  Ben Pfaff  <blp@gnu.org>
20092
20093         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
20094         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
20095
20096 2009-03-20  Ben Pfaff  <blp@gnu.org>
20097
20098         Make rename replace existing destinations on Windows.
20099         * m4/rename.m4: Add test for Mingw.
20100         * lib/rename.c: Add rename replacement that uses MoveFileEx with
20101         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
20102         * doc/posix-functions/rename.texi: Document.
20103
20104 2009-04-10  Bruno Haible  <bruno@clisp.org>
20105
20106         New include file "iconveh.h".
20107         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
20108         * lib/striconveh.h: Include it.
20109         (enum iconv_ilseq_handler): Remove definition.
20110         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
20111         striconveh.h.
20112         * lib/striconveha.c: Include striconveh.h.
20113         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
20114         * modules/striconveh (Files): Add lib/iconveh.h.
20115         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
20116         lib/striconveh.h.
20117
20118 2009-04-10  Bruno Haible  <bruno@clisp.org>
20119
20120         * lib/uniconv.h: Update comment.
20121
20122 2009-04-10  Bruno Haible  <bruno@clisp.org>
20123
20124         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
20125         always.
20126         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
20127         * lib/unistr/u16-mbtouc-aux.c: Likewise.
20128         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
20129         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
20130         "unistring-notinline.h", so that the function gets defined always.
20131         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
20132         * lib/unistr/u8-uctomb.c: Likewise.
20133         * lib/unistr/u16-mbtouc.c: Likewise.
20134         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
20135         * lib/unistr/u16-uctomb.c: Likewise.
20136         * lib/unistr/u32-mbtouc.c: Likewise.
20137         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
20138         * lib/unistr/u32-uctomb.c: Likewise.
20139
20140 2009-04-10  Bruno Haible  <bruno@clisp.org>
20141
20142         Mark 'utime' obsolete.
20143         * modules/utime (Status, Notice): New sections.
20144         Suggested by Jim Meyering.
20145
20146         Fix cross-compile guess for utime test.
20147         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
20148         autoconf.
20149         * doc/posix-functions/utime.texi: Give more precisions.
20150         Reported by Jan <ipif@ymail.com>.
20151
20152 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
20153
20154         filevercmp: correct today's change
20155         * lib/filevercmp.c: Also handle coreutils' test inputs.
20156         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
20157
20158         Fix regression in 'filevercmp' module. Thanks Sven Joachim
20159         for reporting it.
20160         * lib/filevercmp.c: Special handle for "", "." and "..".
20161         * tests/test-filevercmp.c: Enlarge the set suite.
20162
20163 2009-04-07  Jim Meyering  <meyering@redhat.com>
20164
20165         useless-if-before-free: show how to remove braced useless free, too
20166         * build-aux/useless-if-before-free: still only in a comment, though.
20167
20168 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
20169
20170         maint.mk: import changes to syntax-check macros from coreutils
20171         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
20172         Use them in the relevant macros.
20173
20174 2009-04-06  Bruno Haible  <bruno@clisp.org>
20175
20176         Fix unportable use of bit-fields.
20177         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
20178         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
20179         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
20180
20181 2009-04-06  Bruno Haible  <bruno@clisp.org>
20182
20183         Avoid test failures on AIX and OSF/1.
20184         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
20185         that malloc(0) = NULL.
20186         * tests/unicase/test-u8-tolower.c (check): Likewise.
20187         * tests/unicase/test-u8-totitle.c (check): Likewise.
20188         * tests/unicase/test-u8-toupper.c (check): Likewise.
20189         * tests/unicase/test-u16-casefold.c (check): Likewise.
20190         * tests/unicase/test-u16-tolower.c (check): Likewise.
20191         * tests/unicase/test-u16-totitle.c (check): Likewise.
20192         * tests/unicase/test-u16-toupper.c (check): Likewise.
20193         * tests/unicase/test-u32-casefold.c (check): Likewise.
20194         * tests/unicase/test-u32-tolower.c (check): Likewise.
20195         * tests/unicase/test-u32-totitle.c (check): Likewise.
20196         * tests/unicase/test-u32-toupper.c (check): Likewise.
20197         * tests/uninorm/test-u8-nfc.c (check): Likewise.
20198         * tests/uninorm/test-u8-nfd.c (check): Likewise.
20199         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
20200         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
20201         * tests/uninorm/test-u16-nfc.c (check): Likewise.
20202         * tests/uninorm/test-u16-nfd.c (check): Likewise.
20203         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
20204         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
20205         * tests/uninorm/test-u32-nfc.c (check): Likewise.
20206         * tests/uninorm/test-u32-nfd.c (check): Likewise.
20207         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
20208         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
20209
20210 2009-04-05  Bruno Haible  <bruno@clisp.org>
20211
20212         Work around an autoconf limitation.
20213         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
20214         comment line if it would be longer than 3 KB.
20215
20216 2009-04-05  Bruno Haible  <bruno@clisp.org>
20217
20218         Avoid test failure with libiconv-1.13.
20219         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
20220         of the expected test results.
20221
20222 2009-04-05  Bruno Haible  <bruno@clisp.org>
20223
20224         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
20225         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
20226         that it should be installed.
20227
20228 2009-04-05  Bruno Haible  <bruno@clisp.org>
20229
20230         * gnulib-tool: New option --copy-file.
20231         (func_usage): Document it.
20232         (func_dest_tmpfilename): Moved out of func_import.
20233         (func_add_file, func_update_file): New functions, extracted from
20234         func_import.
20235         (func_import): Update.
20236
20237 2009-04-05  Karl Berry  <karl@gnu.org>
20238
20239         * README: prominently mention gnulib-tool.
20240         Rearrange sections so getting the code is near the top.
20241
20242 2009-04-05  Bruno Haible  <bruno@clisp.org>
20243
20244         * lib/unicase.h: Mention u*_cmp2.
20245         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
20246         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
20247         * lib/unicase/ulc-casecmp.c: Likewise.
20248         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
20249         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
20250         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
20251         unistr/u8-cmp.
20252         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
20253         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
20254         unistr/u16-cmp.
20255         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
20256         unistr/u32-cmp.
20257
20258         * lib/uninorm.h: Mention u*_cmp2.
20259         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
20260         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
20261         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
20262         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
20263         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
20264         unistr/u8-cmp.
20265         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
20266         unistr/u16-cmp.
20267         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
20268         unistr/u32-cmp.
20269
20270         New module 'unistr/u32-cmp2'.
20271         * lib/unistr/u32-cmp2.c: New file.
20272         * modules/unistr/u32-cmp2: New file.
20273
20274         New module 'unistr/u16-cmp2'.
20275         * lib/unistr/u16-cmp2.c: New file.
20276         * modules/unistr/u16-cmp2: New file.
20277
20278         New module 'unistr/u8-cmp2'.
20279         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
20280         * lib/unistr/u8-cmp2.c: New file.
20281         * lib/unistr/u-cmp2.h: New file.
20282         * modules/unistr/u8-cmp2: New file.
20283
20284 2009-04-05  Bruno Haible  <bruno@clisp.org>
20285
20286         * lib/unictype.h (uc_property_is_valid): New macro.
20287         * tests/unictype/test-pr_byname.c (main): Use it.
20288
20289         * lib/unistr.h: Doc fixes.
20290         * lib/uniconv.h: Doc fixes.
20291         * lib/unictype.h: Doc fixes.
20292
20293 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
20294
20295         Port coreutils 7.2 to Solaris 8.
20296
20297         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
20298         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
20299         for Solaris 8.  This is a bit of a hack, as it means it's the
20300         caller's responsibility to add -lnsl if needed, but most likely it
20301         won't be needed since only getaddrinfo uses this and getaddrinfo
20302         isn't needed on Solaris 8.
20303
20304         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
20305         problem to Solaris 8 encountered with coreutils 7.2, which
20306         resulted in a message "fnmatch.c:292: warning: passing argument 4
20307         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
20308         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
20309
20310 2009-04-03  Simon Josefsson  <simon@josefsson.org>
20311
20312         * m4/ld-version-script.m4: Add FIXME comment.
20313
20314 2009-04-02  Simon Josefsson  <simon@josefsson.org>
20315
20316         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
20317         SOVERSION variable.
20318
20319 2009-04-02  Bruno Haible  <bruno@clisp.org>
20320
20321         * Makefile (info, html, dvi, pdf): Combine the rules.
20322         Suggested by Jim Meyering.
20323
20324 2009-04-01  Bruno Haible  <bruno@clisp.org>
20325
20326         * Makefile (info, html, dvi, pdf): New targets.
20327         Reported by Reuben Thomas <rrt@sc3d.org>.
20328
20329 2009-04-01  Bruno Haible  <bruno@clisp.org>
20330
20331         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
20332         can be put into PATH.
20333         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
20334
20335 2009-04-01  Bruno Haible  <bruno@clisp.org>
20336
20337         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
20338
20339 2009-04-01  Bruno Haible  <bruno@clisp.org>
20340
20341         Rename module 'visibility'.
20342         * modules/lib-symbol-visibility: Renamed from modules/visibility.
20343         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
20344         * doc/gnulib.texi: Update.
20345         * MODULES.html.sh (Misc): Update.
20346         * NEWS: Mention the change.
20347
20348 2009-04-01  Simon Josefsson  <simon@josefsson.org>
20349
20350         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
20351         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
20352         Eric Blake <ebb9@byu.net> for review.
20353         * MODULES.html.sh: Add lib-msvc-compat.
20354         * doc/gnulib.texi: Link to new section.
20355         * m4/ld-output-def.m4: New file.
20356         * doc/ld-output-def.texi: New file.
20357
20358 2009-04-01  Simon Josefsson  <simon@josefsson.org>
20359
20360         Rename ld-version-script to lib-symbol-versions.  Suggested by
20361         Bruno Haible <bruno@clisp.org>.
20362         * modules/ld-version-script: Renamed to lib-symbol-versions.
20363         * doc/ld-version-script.texi: Fix module name.
20364         * MODULES.html.sh: Add lib-symbol-versions.
20365
20366 2009-03-31  Simon Josefsson  <simon@josefsson.org>
20367
20368         * modules/u64-tests: New file.
20369         * tests/test-u64.c: New file.
20370
20371 2009-03-04  Simon Josefsson  <simon@josefsson.org>
20372
20373         * MODULES.html.sh: Mention u64.
20374         * modules/u64: New module.
20375         * modules/crypto/sha512: Depend on u64 module instead of providing
20376         u64.h.
20377
20378 2009-03-27  Eric Blake  <ebb9@byu.net>
20379
20380         test-strerror: make debugging EAI_SYSTEM easier
20381         * modules/getaddrinfo-tests (Depends-on): Add strerror.
20382         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
20383         failure was EAI_SYSTEM.
20384
20385 2009-03-25  Bruno Haible  <bruno@clisp.org>
20386
20387         Fix a problem with --enable-relocatable on Solaris 7.
20388         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
20389         since 2008-02-24.
20390
20391 2009-03-25  Eric Blake  <ebb9@byu.net>
20392
20393         test-sockets: avoid gcc warning
20394         * tests/test-sockets.c (main): Silence compiler warning.
20395
20396 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
20397
20398         New modules nproc, pthread, contributed by Glen Lenker.
20399
20400         * MODULES.html.sh: Add pthread, nproc.
20401         * lib/nproc.c: New file.
20402         * lib/nproc.h: New file.
20403         * lib/pthread.in.h: New file.
20404         * m4/pthread.m4: New file.
20405         * modules/nproc: New file.
20406         * modules/pthread: New file.
20407
20408 2009-03-24  Simon Josefsson  <simon@josefsson.org>
20409
20410         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
20411         New variable.
20412
20413 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
20414
20415         filevercmp: handle simple~ and numbered.~3~ backup suffixes
20416         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
20417         * tests/test-filevercmp.c: Add tests for backup suffixes.
20418
20419 2009-03-24  Simon Josefsson  <simon@josefsson.org>
20420
20421         * modules/stdlib (Depends-on): Add stdint, needed when defining
20422         struct random_data on, for example, HP-UX 10.20.  Reported by
20423         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20424
20425 2009-03-24  Simon Josefsson  <simon@josefsson.org>
20426
20427         * lib/readline.c (readline): Call fflush on stdout after printing
20428         prompt.
20429
20430 2009-03-20  Bruno Haible  <bruno@clisp.org>
20431
20432         Remove dependency from 'close' module to -lws2_32 on native Windows.
20433         * lib/close-hook.h: New file.
20434         * lib/close-hook.c: New file.
20435         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
20436         w32sock.h.
20437         (_gl_close_fd_maybe_socket): Remove function.
20438         (rpl_close): Invoke execute_all_close_hooks instead of
20439         _gl_close_fd_maybe_socket.
20440         * lib/sockets.c: Include close-hook.h, w32sock.h.
20441         (close_fd_maybe_socket): New function, essentially from lib/close.c.
20442         (close_sockets_hook): New variable.
20443         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
20444         (gl_sockets_cleanup): Unregister it.
20445         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
20446         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
20447         * modules/close-hook: New file.
20448         * modules/close (Files): Remove lib/w32sock.h.
20449         (Depends-on): Add close-hook.
20450         (Link): Remove section.
20451         * modules/sockets (Files): Add lib/w32sock.h.
20452         (Depends-on): Add close-hook.
20453         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
20454         invocation.
20455         * NEWS: Mention that LIB_CLOSE is gone.
20456
20457 2009-03-23  Eric Blake  <ebb9@byu.net>
20458
20459         signal-tests: test previous patch
20460         * tests/test-signal.c: New file.
20461         * modules/signal-tests: Likewise.
20462
20463         signal.h: always support 'volatile sig_atomic_t'
20464         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
20465         (gl_SIGNAL_H_DEFAULTS): Add a default.
20466         * modules/signal (Makefile.am): Substitute if needed.
20467         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
20468         users can blindly add volatile.
20469         * doc/posix-headers/signal.texi (signal.h): Document it.
20470         Reported by Matthew Woehlke.
20471
20472 2009-03-23  Jim Meyering  <meyering@redhat.com>
20473
20474         pathmax: PATH_MAX: use pathconf only when available
20475         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
20476         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
20477         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
20478         This avoids a link failure in a PSP cross-compilation environment
20479         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
20480
20481         * lib/vasnprintf.c (divide): Fix typo in comment.
20482
20483 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20484
20485         * gnulib-tool (func_filter_filelist): Fix comment.
20486
20487 2009-03-20  Bruno Haible  <bruno@clisp.org>
20488
20489         Make sockets.h self-contained.
20490         * lib/sockets.c: Include sockets.h first.
20491         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
20492
20493 2009-03-19  Eric Blake  <ebb9@byu.net>
20494
20495         doc: mention more functions added in cygwin 1.7.0
20496         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
20497         addition.
20498         * doc/posix-functions/log2f.texi: Likewise.
20499
20500 2009-03-19  Jim Meyering  <meyering@redhat.com>
20501
20502         fsusage: avoid syntax error due to statement-before-declaration
20503         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
20504         after all declarations.  Reported by Matthew Woehlke in
20505         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
20506
20507 2009-03-18  Eric Blake  <ebb9@byu.net>
20508
20509         build-aux/compile: sync from automake
20510         * build-aux/compile: New file, from automake.
20511         * config/srclist.txt: Mention build-aux/compile.
20512
20513 2009-03-17  Bruno Haible  <bruno@clisp.org>
20514
20515         * lib/git-merge-changelog.c: Fix typo in comment.
20516         Reported by Reuben Thomas <rrt@sc3d.org>.
20517
20518 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
20519
20520         * m4/regex.m4: update and improve help for
20521         --without-included-regex.
20522
20523 2009-03-17  Simon Josefsson  <simon@josefsson.org>
20524
20525         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
20526         failure on missing include files.
20527
20528 2009-03-17  Eric Blake  <ebb9@byu.net>
20529
20530         doc: mention more functions added in cygwin 1.7.0
20531         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
20532         addition.
20533         * doc/posix-functions/fwscanf.texi: Likewise.
20534         * doc/posix-functions/swprintf.texi: Likewise.
20535         * doc/posix-functions/swscanf.texi: Likewise.
20536         * doc/posix-functions/vfwprintf.texi: Likewise.
20537         * doc/posix-functions/vfwscanf.texi: Likewise.
20538         * doc/posix-functions/vswprintf.texi: Likewise.
20539         * doc/posix-functions/vswscanf.texi: Likewise.
20540         * doc/posix-functions/vwprintf.texi: Likewise.
20541         * doc/posix-functions/vwscanf.texi: Likewise.
20542         * doc/posix-functions/wcscasecmp.texi: Likewise.
20543         * doc/posix-functions/wcsdup.texi: Likewise.
20544         * doc/posix-functions/wcsftime.texi: Likewise.
20545         * doc/posix-functions/wcsncasecmp.texi: Likewise.
20546         * doc/posix-functions/wprintf.texi: Likewise.
20547         * doc/posix-functions/wscanf.texi: Likewise.
20548         * doc/glibc-functions/gethostbyname2.texi: Likewise.
20549
20550 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20551
20552         maint.mk: really add $(AM_MAKEFLAGS)
20553         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
20554         was inadvertently omitted in the last commit.
20555         Spotted by Bruno Haible.
20556
20557         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
20558         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
20559         $(AM_MAKEFLAGS)' rather than plain `make'.
20560
20561         gnulib-tool: execute $MAKE not make
20562         * gnulib-tool: Default $MAKE to 'make'.
20563         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
20564         than make.  Initialize $MAKE in the do-autobuild script.
20565
20566         gnulib-tool: use $MAKE not make in generated files
20567         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
20568         make, in generated files.  Initialize $MAKE in the do-autobuild
20569         script.
20570
20571         * top/GNUmakefile (_have-git-version-gen): Fix typo.
20572
20573         GNUmakefile: disable parallelism only for multiple, recursive targets
20574         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
20575         additions in the Makefile.
20576         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
20577         by Automake.
20578         (.NOTPARALLEL): Only disable parallel builds if multiple targets
20579         are listed on the command line and at least one of them is
20580         listed in $(ALL_RECURSIVE_TARGETS).
20581
20582 2009-03-14  Bruno Haible  <bruno@clisp.org>
20583
20584         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
20585         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
20586         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
20587         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
20588         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
20589         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
20590         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
20591         unistr/u8-uctomb.
20592         * modules/unistr/u8-strchr (Depends-on): Likewise.
20593         * modules/unistr/u8-strrchr (Depends-on): Likewise.
20594         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
20595         unistr/u16-uctomb.
20596         * modules/unistr/u16-strchr (Depends-on): Likewise.
20597         * modules/unistr/u16-strrchr (Depends-on): Likewise.
20598
20599 2009-03-12  Bruno Haible  <bruno@clisp.org>
20600
20601         Work around select() bug on Interix 3.5.
20602         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
20603         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
20604         * m4/select.m4: New file.
20605         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
20606         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
20607         * modules/select (Files): Add m4/select.m4.
20608         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
20609         * modules/nanosleep (Depends-on): Add select.
20610         * modules/poll (Depends-on): Likewise.
20611         * doc/posix-functions/select.texi: Mention the Interix bug.
20612         Reported by Markus Duft <mduft@gentoo.org>.
20613
20614         * lib/select.c: Renamed from lib/winsock-select.c.
20615         * modules/select (Files): Add lib/select.c, remove
20616         lib/winsock-select.c.
20617         (configure.ac): Update.
20618
20619 2009-03-12  Jim Meyering  <meyering@redhat.com>
20620
20621         avoid gcc warnings about unused macro definitions
20622         * lib/readtokens.c (STREQ): Remove unused definition.
20623         * lib/xmalloc.c (SIZE_MAX): Likewise.
20624         * lib/openat-die.c (N_): Likewise.
20625         * lib/mountlist.c (SIZE_MAX): Remove definition.
20626         Instead, include <stdint.h>.
20627         * lib/readutmp.c: Likewise.
20628         * modules/readutmp (Depends-on): Add stdint.
20629         * modules/mountlist (Depends-on): Add stdint.
20630         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
20631
20632 2009-03-10  Bruno Haible  <bruno@clisp.org>
20633
20634         Tests for module 'mbmemcasecoll'.
20635         * modules/mbmemcasecoll-tests: New file.
20636         * tests/test-mbmemcasecoll1.sh: New file.
20637         * tests/test-mbmemcasecoll2.sh: New file.
20638         * tests/test-mbmemcasecoll3.sh: New file.
20639         * tests/test-mbmemcasecoll.c: New file.
20640
20641         New module 'mbmemcasecoll'.
20642         * lib/mbmemcasecoll.h: New file.
20643         * lib/mbmemcasecoll.c: New file.
20644         * modules/mbmemcasecoll: New file.
20645
20646         * tests/test-mbmemcasecmp.h: New file, extracted from
20647         tests/test-mbmemcasecmp.c.
20648         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
20649         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
20650         (main): Update.
20651         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
20652
20653 2009-03-09  Bruno Haible  <bruno@clisp.org>
20654
20655         Tests for module 'mbmemcasecmp'.
20656         * modules/mbmemcasecmp-tests: New file.
20657         * tests/test-mbmemcasecmp1.sh: New file.
20658         * tests/test-mbmemcasecmp2.sh: New file.
20659         * tests/test-mbmemcasecmp3.sh: New file.
20660         * tests/test-mbmemcasecmp.c: New file.
20661
20662         New module 'mbmemcasecmp'.
20663         * lib/mbmemcasecmp.h: New file.
20664         * lib/mbmemcasecmp.c: New file.
20665         * modules/mbmemcasecmp: New file.
20666
20667 2009-03-09  Bruno Haible  <bruno@clisp.org>
20668
20669         Tests for module 'unicase/ulc-casecoll'.
20670         * modules/unicase/ulc-casecoll-tests: New file.
20671         * tests/unicase/test-ulc-casecoll1.sh: New file.
20672         * tests/unicase/test-ulc-casecoll2.sh: New file.
20673         * tests/unicase/test-ulc-casecoll.c: New file.
20674
20675         New module 'unicase/ulc-casecoll'.
20676         * lib/unicase.h (ulc_casecoll): New declaration.
20677         * lib/unicase/ulc-casecoll.c: New file.
20678         * modules/unicase/ulc-casecoll: New file.
20679
20680         New module 'unicase/ulc-casexfrm'.
20681         * lib/unicase.h (ulc_casexfrm): New declaration.
20682         * lib/unicase/ulc-casexfrm.c: New file.
20683         * modules/unicase/ulc-casexfrm: New file.
20684
20685 2009-03-09  Bruno Haible  <bruno@clisp.org>
20686
20687         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
20688         invocations.
20689
20690         * m4/mbscasecmp.m4: Remove file.
20691         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
20692         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
20693
20694         * m4/mbscasestr.m4: Remove file.
20695         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
20696         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
20697
20698         * m4/mbschr.m4: Remove file.
20699         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
20700         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
20701
20702         * m4/mbscspn.m4: Remove file.
20703         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
20704         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
20705
20706         * m4/mbslen.m4: Remove file.
20707         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
20708         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
20709
20710         * m4/mbsncasecmp.m4: Remove file.
20711         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
20712         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
20713
20714         * m4/mbsnlen.m4: Remove file.
20715         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
20716         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
20717
20718         * m4/mbspbrk.m4: Remove file.
20719         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
20720         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
20721
20722         * m4/mbspcasecmp.m4: Remove file.
20723         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
20724         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
20725
20726         * m4/mbsrchr.m4: Remove file.
20727         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
20728         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
20729
20730         * m4/mbssep.m4: Remove file.
20731         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
20732         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
20733
20734         * m4/mbsspn.m4: Remove file.
20735         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
20736         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
20737
20738         * m4/mbsstr.m4: Remove file.
20739         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
20740         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
20741
20742         * m4/mbstok_r.m4: Remove file.
20743         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
20744         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
20745
20746         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
20747
20748         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
20749         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
20750
20751         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
20752
20753 2009-03-08  Bruno Haible  <bruno@clisp.org>
20754
20755         Tests for module 'unicase/ulc-casecmp'.
20756         * modules/unicase/ulc-casecmp-tests: New file.
20757         * tests/unicase/test-ulc-casecmp1.sh: New file.
20758         * tests/unicase/test-ulc-casecmp2.sh: New file.
20759         * tests/unicase/test-ulc-casecmp.c: New file.
20760
20761         New module 'unicase/ulc-casecmp'.
20762         * lib/unicase.h (ulc_casecmp): New declaration.
20763         * lib/unicase/ulc-casecmp.c: New file.
20764         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
20765         'const SRC_UNIT *'.
20766         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
20767         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
20768         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
20769         * modules/unicase/ulc-casecmp: New file.
20770
20771         Tests for module 'unicase/u32-is-cased'.
20772         * modules/unicase/u32-is-cased-tests: New file.
20773         * tests/unicase/test-u32-is-cased.c: New file.
20774
20775         Tests for module 'unicase/u16-is-cased'.
20776         * modules/unicase/u16-is-cased-tests: New file.
20777         * tests/unicase/test-u16-is-cased.c: New file.
20778
20779         Tests for module 'unicase/u8-is-cased'.
20780         * modules/unicase/u8-is-cased-tests: New file.
20781         * tests/unicase/test-u8-is-cased.c: New file.
20782         * tests/unicase/test-is-cased.h: New file.
20783
20784         New module 'unicase/u32-is-cased'.
20785         * lib/unicase/u32-is-cased.c: New file.
20786         * modules/unicase/u32-is-cased: New file.
20787
20788         New module 'unicase/u16-is-cased'.
20789         * lib/unicase/u16-is-cased.c: New file.
20790         * modules/unicase/u16-is-cased: New file.
20791
20792         New module 'unicase/u8-is-cased'.
20793         * lib/unicase/u8-is-cased.c: New file.
20794         * lib/unicase/u-is-cased.h: New file.
20795         * modules/unicase/u8-is-cased: New file.
20796
20797         Tests for module 'unicase/u32-is-casefolded'.
20798         * modules/unicase/u32-is-casefolded-tests: New file.
20799         * tests/unicase/test-u32-is-casefolded.c: New file.
20800
20801         Tests for module 'unicase/u16-is-casefolded'.
20802         * modules/unicase/u16-is-casefolded-tests: New file.
20803         * tests/unicase/test-u16-is-casefolded.c: New file.
20804
20805         Tests for module 'unicase/u8-is-casefolded'.
20806         * modules/unicase/u8-is-casefolded-tests: New file.
20807         * tests/unicase/test-u8-is-casefolded.c: New file.
20808         * tests/unicase/test-is-casefolded.h: New file.
20809
20810         New module 'unicase/u32-is-casefolded'.
20811         * lib/unicase/u32-is-casefolded.c: New file.
20812         * modules/unicase/u32-is-casefolded: New file.
20813
20814         New module 'unicase/u16-is-casefolded'.
20815         * lib/unicase/u16-is-casefolded.c: New file.
20816         * modules/unicase/u16-is-casefolded: New file.
20817
20818         New module 'unicase/u8-is-casefolded'.
20819         * lib/unicase/u8-is-casefolded.c: New file.
20820         * modules/unicase/u8-is-casefolded: New file.
20821
20822         Tests for module 'unicase/u32-is-titlecase'.
20823         * modules/unicase/u32-is-titlecase-tests: New file.
20824         * tests/unicase/test-u32-is-titlecase.c: New file.
20825
20826         Tests for module 'unicase/u16-is-titlecase'.
20827         * modules/unicase/u16-is-titlecase-tests: New file.
20828         * tests/unicase/test-u16-is-titlecase.c: New file.
20829
20830         Tests for module 'unicase/u8-is-titlecase'.
20831         * modules/unicase/u8-is-titlecase-tests: New file.
20832         * tests/unicase/test-u8-is-titlecase.c: New file.
20833         * tests/unicase/test-is-titlecase.h: New file.
20834
20835         New module 'unicase/u32-is-titlecase'.
20836         * lib/unicase/u32-is-titlecase.c: New file.
20837         * modules/unicase/u32-is-titlecase: New file.
20838
20839         New module 'unicase/u16-is-titlecase'.
20840         * lib/unicase/u16-is-titlecase.c: New file.
20841         * modules/unicase/u16-is-titlecase: New file.
20842
20843         New module 'unicase/u8-is-titlecase'.
20844         * lib/unicase/u8-is-titlecase.c: New file.
20845         * modules/unicase/u8-is-titlecase: New file.
20846
20847         Tests for module 'unicase/u32-is-lowercase'.
20848         * modules/unicase/u32-is-lowercase-tests: New file.
20849         * tests/unicase/test-u32-is-lowercase.c: New file.
20850
20851         Tests for module 'unicase/u16-is-lowercase'.
20852         * modules/unicase/u16-is-lowercase-tests: New file.
20853         * tests/unicase/test-u16-is-lowercase.c: New file.
20854
20855         Tests for module 'unicase/u8-is-lowercase'.
20856         * modules/unicase/u8-is-lowercase-tests: New file.
20857         * tests/unicase/test-u8-is-lowercase.c: New file.
20858         * tests/unicase/test-is-lowercase.h: New file.
20859
20860         New module 'unicase/u32-is-lowercase'.
20861         * lib/unicase/u32-is-lowercase.c: New file.
20862         * modules/unicase/u32-is-lowercase: New file.
20863
20864         New module 'unicase/u16-is-lowercase'.
20865         * lib/unicase/u16-is-lowercase.c: New file.
20866         * modules/unicase/u16-is-lowercase: New file.
20867
20868         New module 'unicase/u8-is-lowercase'.
20869         * lib/unicase/u8-is-lowercase.c: New file.
20870         * modules/unicase/u8-is-lowercase: New file.
20871
20872         Tests for module 'unicase/u32-is-uppercase'.
20873         * modules/unicase/u32-is-uppercase-tests: New file.
20874         * tests/unicase/test-u32-is-uppercase.c: New file.
20875
20876         Tests for module 'unicase/u16-is-uppercase'.
20877         * modules/unicase/u16-is-uppercase-tests: New file.
20878         * tests/unicase/test-u16-is-uppercase.c: New file.
20879
20880         Tests for module 'unicase/u8-is-uppercase'.
20881         * modules/unicase/u8-is-uppercase-tests: New file.
20882         * tests/unicase/test-u8-is-uppercase.c: New file.
20883         * tests/unicase/test-is-uppercase.h: New file.
20884
20885         New module 'unicase/u32-is-uppercase'.
20886         * lib/unicase/u32-is-uppercase.c: New file.
20887         * modules/unicase/u32-is-uppercase: New file.
20888
20889         New module 'unicase/u16-is-uppercase'.
20890         * lib/unicase/u16-is-uppercase.c: New file.
20891         * modules/unicase/u16-is-uppercase: New file.
20892
20893         New module 'unicase/u8-is-uppercase'.
20894         * lib/unicase/u8-is-uppercase.c: New file.
20895         * modules/unicase/u8-is-uppercase: New file.
20896
20897         New module 'unicase/u32-is-invariant'.
20898         * lib/unicase/u32-is-invariant.c: New file.
20899         * modules/unicase/u32-is-invariant: New file.
20900
20901         New module 'unicase/u16-is-invariant'.
20902         * lib/unicase/u16-is-invariant.c: New file.
20903         * modules/unicase/u16-is-invariant: New file.
20904
20905         New module 'unicase/u8-is-invariant'.
20906         * lib/unicase/u8-is-invariant.c: New file.
20907         * lib/unicase/invariant.h: New file.
20908         * lib/unicase/u-is-invariant.h: New file.
20909         * modules/unicase/u8-is-invariant: New file.
20910
20911         Tests for module 'unicase/u32-casecoll'.
20912         * modules/unicase/u32-casecoll-tests: New file.
20913         * tests/unicase/test-u32-casecoll.c: New file.
20914
20915         Tests for module 'unicase/u16-casecoll'.
20916         * modules/unicase/u16-casecoll-tests: New file.
20917         * tests/unicase/test-u16-casecoll.c: New file.
20918
20919         Tests for module 'unicase/u8-casecoll'.
20920         * modules/unicase/u8-casecoll-tests: New file.
20921         * tests/unicase/test-u8-casecoll.c: New file.
20922
20923         New module 'unicase/u32-casecoll'.
20924         * lib/unicase/u32-casecoll.c: New file.
20925         * modules/unicase/u32-casecoll: New file.
20926
20927         New module 'unicase/u16-casecoll'.
20928         * lib/unicase/u16-casecoll.c: New file.
20929         * modules/unicase/u16-casecoll: New file.
20930
20931         New module 'unicase/u8-casecoll'.
20932         * lib/unicase/u8-casecoll.c: New file.
20933         * lib/unicase/u-casecoll.h: New file.
20934         * modules/unicase/u8-casecoll: New file.
20935
20936         New module 'unicase/u32-casexfrm'.
20937         * lib/unicase/u32-casexfrm.c: New file.
20938         * modules/unicase/u32-casexfrm: New file.
20939
20940         New module 'unicase/u16-casexfrm'.
20941         * lib/unicase/u16-casexfrm.c: New file.
20942         * modules/unicase/u16-casexfrm: New file.
20943
20944         New module 'unicase/u8-casexfrm'.
20945         * lib/unicase/u8-casexfrm.c: New file.
20946         * lib/unicase/u-casexfrm.h: New file.
20947         * modules/unicase/u8-casexfrm: New file.
20948
20949         Tests for module 'unicase/u32-casecmp'.
20950         * modules/unicase/u32-casecmp-tests: New file.
20951         * tests/unicase/test-u32-casecmp.c: New file.
20952
20953         Tests for module 'unicase/u16-casecmp'.
20954         * modules/unicase/u16-casecmp-tests: New file.
20955         * tests/unicase/test-u16-casecmp.c: New file.
20956
20957         Tests for module 'unicase/u8-casecmp'.
20958         * modules/unicase/u8-casecmp-tests: New file.
20959         * tests/unicase/test-u8-casecmp.c: New file.
20960         * tests/unicase/test-casecmp.h: New file.
20961
20962         New module 'unicase/u32-casecmp'.
20963         * lib/unicase/u32-casecmp.c: New file.
20964         * modules/unicase/u32-casecmp: New file.
20965
20966         New module 'unicase/u16-casecmp'.
20967         * lib/unicase/u16-casecmp.c: New file.
20968         * modules/unicase/u16-casecmp: New file.
20969
20970         New module 'unicase/u8-casecmp'.
20971         * lib/unicase/u8-casecmp.c: New file.
20972         * lib/unicase/u-casecmp.h: New file.
20973         * modules/unicase/u8-casecmp: New file.
20974
20975         Tests for module 'unicase/u32-casefold'.
20976         * modules/unicase/u32-casefold-tests: New file.
20977         * tests/unicase/test-u32-casefold.c: New file.
20978
20979         Tests for module 'unicase/u16-casefold'.
20980         * modules/unicase/u16-casefold-tests: New file.
20981         * tests/unicase/test-u16-casefold.c: New file.
20982
20983         Tests for module 'unicase/u8-casefold'.
20984         * modules/unicase/u8-casefold-tests: New file.
20985         * tests/unicase/test-u8-casefold.c: New file.
20986
20987         New module 'unicase/u32-casefold'.
20988         * lib/unicase/u32-casefold.c: New file.
20989         * modules/unicase/u32-casefold: New file.
20990
20991         New module 'unicase/u16-casefold'.
20992         * lib/unicase/u16-casefold.c: New file.
20993         * modules/unicase/u16-casefold: New file.
20994
20995         New module 'unicase/u8-casefold'.
20996         * lib/unicase/u8-casefold.c: New file.
20997         * lib/unicase/u-casefold.h: New file.
20998         * modules/unicase/u8-casefold: New file.
20999
21000         New module 'unicase/tocasefold'.
21001         * lib/unicase/casefold.h: New file.
21002         * lib/unicase/tocasefold.c: New file.
21003         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
21004         * modules/unicase/tocasefold: New file.
21005
21006         Tests for module 'unicase/u32-totitle'.
21007         * modules/unicase/u32-totitle-tests: New file.
21008         * tests/unicase/test-u32-totitle.c: New file.
21009
21010         Tests for module 'unicase/u16-totitle'.
21011         * modules/unicase/u16-totitle-tests: New file.
21012         * tests/unicase/test-u16-totitle.c: New file.
21013
21014         Tests for module 'unicase/u8-totitle'.
21015         * modules/unicase/u8-totitle-tests: New file.
21016         * tests/unicase/test-u8-totitle.c: New file.
21017
21018         New module 'unicase/u32-totitle'.
21019         * lib/unicase/u32-totitle.c: New file.
21020         * modules/unicase/u32-totitle: New file.
21021
21022         New module 'unicase/u16-totitle'.
21023         * lib/unicase/u16-totitle.c: New file.
21024         * modules/unicase/u16-totitle: New file.
21025
21026         New module 'unicase/u8-totitle'.
21027         * lib/unicase/u8-totitle.c: New file.
21028         * lib/unicase/u-totitle.h: New file.
21029         * modules/unicase/u8-totitle: New file.
21030
21031         Tests for module 'unicase/u32-tolower'.
21032         * modules/unicase/u32-tolower-tests: New file.
21033         * tests/unicase/test-u32-tolower.c: New file.
21034
21035         Tests for module 'unicase/u16-tolower'.
21036         * modules/unicase/u16-tolower-tests: New file.
21037         * tests/unicase/test-u16-tolower.c: New file.
21038
21039         Tests for module 'unicase/u8-tolower'.
21040         * modules/unicase/u8-tolower-tests: New file.
21041         * tests/unicase/test-u8-tolower.c: New file.
21042
21043         New module 'unicase/u32-tolower'.
21044         * lib/unicase/u32-tolower.c: New file.
21045         * modules/unicase/u32-tolower: New file.
21046
21047         New module 'unicase/u16-tolower'.
21048         * lib/unicase/u16-tolower.c: New file.
21049         * modules/unicase/u16-tolower: New file.
21050
21051         New module 'unicase/u8-tolower'.
21052         * lib/unicase/u8-tolower.c: New file.
21053         * modules/unicase/u8-tolower: New file.
21054
21055         Tests for module 'unicase/u32-toupper'.
21056         * modules/unicase/u32-toupper-tests: New file.
21057         * tests/unicase/test-u32-toupper.c: New file.
21058
21059         Tests for module 'unicase/u16-toupper'.
21060         * modules/unicase/u16-toupper-tests: New file.
21061         * tests/unicase/test-u16-toupper.c: New file.
21062
21063         Tests for module 'unicase/u8-toupper'.
21064         * modules/unicase/u8-toupper-tests: New file.
21065         * tests/unicase/test-u8-toupper.c: New file.
21066
21067         New module 'unicase/u32-toupper'.
21068         * lib/unicase/u32-toupper.c: New file.
21069         * modules/unicase/u32-toupper: New file.
21070
21071         New module 'unicase/u16-toupper'.
21072         * lib/unicase/u16-toupper.c: New file.
21073         * modules/unicase/u16-toupper: New file.
21074
21075         New module 'unicase/u8-toupper'.
21076         * lib/unicase/u8-toupper.c: New file.
21077         * modules/unicase/u8-toupper: New file.
21078
21079         New module 'unicase/u32-casemap'.
21080         * lib/unicase/u32-casemap.c: New file.
21081         * modules/unicase/u32-casemap: New file.
21082
21083         New module 'unicase/u16-casemap'.
21084         * lib/unicase/u16-casemap.c: New file.
21085         * modules/unicase/u16-casemap: New file.
21086
21087         New module 'unicase/u8-casemap'.
21088         * lib/unicase/unicasemap.h: New file.
21089         * lib/unicase/u8-casemap.c: New file.
21090         * lib/unicase/u-casemap.h: New file.
21091         * modules/unicase/u8-casemap: New file.
21092
21093         New module 'unicase/special-casing'.
21094         * lib/unicase/special-casing.h: New file.
21095         * lib/unicase/special-casing.c: New file.
21096         * lib/unicase/special-casing-table.gperf: New file, generated by
21097         gen-uni-tables.c.
21098         * modules/unicase/special-casing: New file.
21099
21100         Tests for module 'unicase/locale-language'.
21101         * modules/unicase/locale-language-tests: New file.
21102         * tests/unicase/test-locale-language.sh: New file.
21103         * tests/unicase/test-locale-language.c: New file.
21104
21105         New module 'unicase/locale-language'.
21106         * lib/unicase/locale-language.c: New file.
21107         * lib/unicase/locale-languages.gperf: New file.
21108         * modules/unicase/locale-language: New file.
21109
21110         Generate more tables for case conversion and case folding.
21111         * lib/gen-uni-tables.c (SCC_*): New enum items.
21112         (struct special_casing_rule): New type.
21113         (casing_rules, num_casing_rules, allocated_casing_rules): New
21114         variables.
21115         (add_casing_rule, fill_casing_rules): New functions.
21116         (struct casefold_rule): New type.
21117         (casefolding_rules, num_casefolding_rules,
21118         allocated_casefolding_rules): New variables.
21119         (fill_casefolding_rules): New function.
21120         (unicode_casefold): New variable.
21121         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
21122         sort_casing_rules, output_casing_rules): New functions.
21123         (main): Accept to more arguments: SpecialCasing.txt and
21124         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
21125         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
21126         Output mapping for casefolding.
21127
21128         * lib/unicase.h: Include stdbool.h, uninorm.h.
21129         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
21130         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
21131         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
21132         arguments.
21133         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
21134         resultp arguments.
21135         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
21136         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
21137         resultp arguments.
21138         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
21139         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
21140         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
21141         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
21142         declarations.
21143         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
21144
21145 2009-03-08  Bruno Haible  <bruno@clisp.org>
21146
21147         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
21148         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
21149         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
21150         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
21151
21152 2009-03-07  Bruno Haible  <bruno@clisp.org>
21153
21154         Adjust u*_normcmp, u*_normcoll API.
21155         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
21156         u16_normcoll, u32_normcoll): Change failure conventions.
21157         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
21158         errno and return -1.
21159         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
21160
21161 2009-03-07  Bruno Haible  <bruno@clisp.org>
21162
21163         Tests for module 'uninorm/u32-normcoll'.
21164         * modules/uninorm/u32-normcoll-tests: New file.
21165         * tests/uninorm/test-u32-normcoll.c: New file.
21166
21167         Tests for module 'uninorm/u16-normcoll'.
21168         * modules/uninorm/u16-normcoll-tests: New file.
21169         * tests/uninorm/test-u16-normcoll.c: New file.
21170
21171         Tests for module 'uninorm/u8-normcoll'.
21172         * modules/uninorm/u8-normcoll-tests: New file.
21173         * tests/uninorm/test-u8-normcoll.c: New file.
21174
21175 2009-03-07  Bruno Haible  <bruno@clisp.org>
21176
21177         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
21178         tests/uninorm/test-u32-normcmp.c.
21179         * tests/uninorm/test-u32-normcmp.c: Include it.
21180         (test_nonascii): New function, extracted from main. Add some more
21181         tests.
21182         (main): Invoke test_ascii and test_nonascii.
21183         * modules/uninorm/u32-normcmp-tests (Files): Add
21184         tests/uninorm/test-u32-normcmp.h.
21185         (Depends-on): Remove uninorm/u32-normcmp.
21186
21187         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
21188         tests/uninorm/test-u16-normcmp.c.
21189         * tests/uninorm/test-u16-normcmp.c: Include it.
21190         (test_nonascii): New function, extracted from main. Add some more
21191         tests.
21192         (main): Invoke test_ascii and test_nonascii.
21193         * modules/uninorm/u16-normcmp-tests (Files): Add
21194         tests/uninorm/test-u16-normcmp.h.
21195         (Depends-on): Remove uninorm/u16-normcmp.
21196
21197         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
21198         tests/uninorm/test-u8-normcmp.c.
21199         * tests/uninorm/test-u8-normcmp.c: Include it.
21200         (test_nonascii): New function, extracted from main. Add some more
21201         tests.
21202         (main): Invoke test_ascii and test_nonascii.
21203         * modules/uninorm/u8-normcmp-tests (Files): Add
21204         tests/uninorm/test-u8-normcmp.h.
21205         (Depends-on): Remove uninorm/u8-normcmp.
21206
21207 2009-03-07  Bruno Haible  <bruno@clisp.org>
21208
21209         New module 'uninorm/u32-normcoll'.
21210         * lib/uninorm/u32-normcoll.c: New file.
21211         * modules/uninorm/u32-normcoll: New file.
21212
21213         New module 'uninorm/u16-normcoll'.
21214         * lib/uninorm/u16-normcoll.c: New file.
21215         * modules/uninorm/u16-normcoll: New file.
21216
21217         New module 'uninorm/u8-normcoll'.
21218         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
21219         declarations.
21220         * lib/uninorm/u8-normcoll.c: New file.
21221         * lib/uninorm/u-normcoll.h: New file.
21222         * modules/uninorm/u8-normcoll: New file.
21223
21224         New module 'uninorm/u32-normxfrm'.
21225         * lib/uninorm/u32-normxfrm.c: New file.
21226         * modules/uninorm/u32-normxfrm: New file.
21227
21228         New module 'uninorm/u16-normxfrm'.
21229         * lib/uninorm/u16-normxfrm.c: New file.
21230         * modules/uninorm/u16-normxfrm: New file.
21231
21232         New module 'uninorm/u8-normxfrm'.
21233         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
21234         declarations.
21235         * lib/uninorm/u8-normxfrm.c: New file.
21236         * lib/uninorm/u-normxfrm.h: New file.
21237         * modules/uninorm/u8-normxfrm: New file.
21238
21239 2009-03-07  Bruno Haible  <bruno@clisp.org>
21240
21241         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
21242         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
21243         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
21244
21245 2009-03-07  Bruno Haible  <bruno@clisp.org>
21246
21247         New module 'memxfrm'.
21248         * lib/memxfrm.h: New file.
21249         * lib/memxfrm.c: New file.
21250         * modules/memxfrm: New file.
21251
21252 2009-03-07  Bruno Haible  <bruno@clisp.org>
21253
21254         New module 'memcmp2'.
21255         * lib/memcmp2.h: New file.
21256         * lib/memcmp2.c: New file.
21257         * modules/memcmp2: New file.
21258
21259 2009-03-07  Bruno Haible  <bruno@clisp.org>
21260
21261         Tests for module 'uninorm/decomposing-form'.
21262         * modules/uninorm/decomposing-form-tests: New file.
21263         * tests/uninorm/test-decomposing-form.c: New file.
21264
21265         New module 'uninorm/decomposing-form'.
21266         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
21267         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
21268         Add 'decomposing_variant' field.
21269         * lib/uninorm/decomposing-form.c: New file.
21270         * lib/uninorm/nfc.c (uninorm_nfc): Update.
21271         * lib/uninorm/nfd.c (uninorm_nfd): Update.
21272         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
21273         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
21274         * modules/uninorm/decomposing-form: New file.
21275         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
21276         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
21277
21278 2009-03-07  Bruno Haible  <bruno@clisp.org>
21279
21280         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
21281         strings.
21282
21283 2009-03-06  Bruno Haible  <bruno@clisp.org>
21284
21285         Tests for module 'uninorm/u32-normcmp'.
21286         * tests/uninorm/test-u32-normcmp.c: New file.
21287         * modules/uninorm/u32-normcmp-tests: New file.
21288
21289         Tests for module 'uninorm/u16-normcmp'.
21290         * tests/uninorm/test-u16-normcmp.c: New file.
21291         * modules/uninorm/u16-normcmp-tests: New file.
21292
21293         Tests for module 'uninorm/u8-normcmp'.
21294         * tests/uninorm/test-u8-normcmp.c: New file.
21295         * modules/uninorm/u8-normcmp-tests: New file.
21296
21297         New module 'uninorm/u32-normcmp'.
21298         * lib/uninorm/u32-normcmp.c: New file.
21299         * modules/uninorm/u32-normcmp: New file.
21300
21301         New module 'uninorm/u16-normcmp'.
21302         * lib/uninorm/u16-normcmp.c: New file.
21303         * modules/uninorm/u16-normcmp: New file.
21304
21305         New module 'uninorm/u8-normcmp'.
21306         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
21307         declarations.
21308         * lib/uninorm/u8-normcmp.c: New file.
21309         * lib/uninorm/u-normcmp.h: New file.
21310         * modules/uninorm/u8-normcmp: New file.
21311
21312 2009-03-06  Bruno Haible  <bruno@clisp.org>
21313
21314         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
21315         Reported by Eric Blake.
21316
21317 2009-03-06  Eric Blake  <ebb9@byu.net>
21318             Bruno Haible  <bruno@clisp.org>
21319
21320         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
21321         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
21322         condition.
21323         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
21324         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
21325         condition.
21326         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
21327
21328 2009-03-06  Eric Blake  <ebb9@byu.net>
21329
21330         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
21331         to avoid compiler warnings.
21332         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
21333
21334 2009-03-05  Bruno Haible  <bruno@clisp.org>
21335
21336         * tests/test-ftell.c (main): Disable test beyond end of file on
21337         FreeMiNT.
21338         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
21339
21340 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
21341
21342         * lib/filevercmp.c: Move hidden files up in ordering.
21343         * tests/test-filevercmp.c: Add tests for hidden files.
21344
21345 2009-03-04  Bruno Haible  <bruno@clisp.org>
21346
21347         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
21348         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
21349         AM_CFLAGS.
21350         Reported by Simon Josefsson.
21351
21352 2009-03-03  Bruno Haible  <bruno@clisp.org>
21353
21354         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
21355         Reported by Simon Josefsson.
21356
21357         * doc/ld-version-script.texi: Update node reference.
21358
21359 2009-03-03  Bruno Haible  <bruno@clisp.org>
21360
21361         * modules/visibility (License): Change to 'unlimited'.
21362         Suggested by Simon Josefsson.
21363
21364 2009-03-03  Jim Meyering  <meyering@redhat.com>
21365
21366         unlinkdir: cannot_unlink_dir may modify process state
21367         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
21368         it's neither thread-safe nor appropriate for use in a library.
21369
21370 2009-03-03  Eric Blake  <ebb9@byu.net>
21371
21372         test-closein: silence test under Darwin
21373         * tests/test-closein.sh: Ignore stderr from cat, since we don't
21374         care if it dies from EPIPE or EBADF.
21375
21376 2009-03-03  Bruno Haible  <bruno@clisp.org>
21377
21378         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
21379         earlier.
21380         * doc/visibility.texi: Fix @node and @section.
21381
21382 2009-03-03  Simon Josefsson  <simon@josefsson.org>
21383
21384         * doc/gnulib.texi: Link to sections for ld version script and
21385         visibility.
21386         * doc/visibility.texi: Add @node and @section.
21387         * modules/ld-version-script: New module.
21388         * m4/ld-version-script.m4: New file.
21389         * doc/ld-version-script.texi: New file.
21390
21391 2009-03-02  David Lutterkort  <lutter@redhat.com>
21392
21393         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
21394         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21395
21396 2009-03-02  Bruno Haible  <bruno@clisp.org>
21397
21398         * doc/visibility.texi: Mention libtool's -export-symbols option.
21399
21400 2009-03-02  Jim Meyering  <meyering@redhat.com>
21401
21402         announce-gen: new option: --no-print-checksums
21403         * build-aux/announce-gen (usage): Describe it.
21404         (print_checksums): Print a newline here, not in the [*] footnote.
21405         (main): Honor it.
21406
21407 2009-03-01  Bruno Haible  <bruno@clisp.org>
21408
21409         Use socklen_t in the native Windows replacements prototypes.
21410         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
21411         instead of 'int'.
21412         * lib/getsockopt.c (rpl_getsockopt): Likewise.
21413         * lib/setsockopt.c (rpl_setsockopt): Likewise.
21414         * modules/getsockopt (Depends-on): Add socklen.
21415         * modules/setsockopt (Depends-on): Add socklen.
21416
21417 2009-03-01  Bruno Haible  <bruno@clisp.org>
21418
21419         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
21420         least 4.2.
21421
21422 2009-03-01  Eric Blake  <ebb9@byu.net>
21423             Bruno Haible  <bruno@clisp.org>
21424
21425         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
21426         error messages.
21427         * lib/wait-process.c (wait_subprocess): Omit error message about
21428         deadly signal sent to the child of termsigp != NULL.
21429
21430 2009-03-01  Eric Blake  <ebb9@byu.net>
21431
21432         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
21433
21434 2009-03-01  Bruno Haible  <bruno@clisp.org>
21435
21436         Avoid a gcc warning.
21437         * tests/test-sched.c (b): Make global.
21438         Reported by Eric Blake.
21439
21440 2009-01-19  Martin Lambers  <marlam@marlam.de>
21441
21442         Provide POSIX semantics for socket timeout options on W32.
21443         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
21444         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
21445         * modules/setsockopt: Depend on sys_time module for struct timeval.
21446         * modules/getsockopt: Depend on sys_time module for struct timeval.
21447
21448 2009-03-01  Simon Josefsson  <simon@josefsson.org>
21449
21450         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
21451         __USE_GNU, for consistency with netdb.in.h.
21452         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
21453
21454 2009-03-01  Bruno Haible  <bruno@clisp.org>
21455
21456         More support for FreeMiNT.
21457         * lib/fseeko.c (rpl_fseeko): Complete last commit.
21458         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
21459
21460 2009-03-01  Bruno Haible  <bruno@clisp.org>
21461
21462         More support for FreeMiNT.
21463         * lib/fpurge.c (fpurge): Correct last commit.
21464         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
21465
21466 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21467
21468         Fix unportable awk script in vc-list-files.
21469         * build-aux/vc-list-files: In the replacement awk script, use
21470         substr with a second argument of 1, not zero.
21471         Report by Simon Josefsson.
21472
21473 2009-02-28  Bruno Haible  <bruno@clisp.org>
21474
21475         More support for FreeMiNT.
21476         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
21477         to FreeMiNT today.
21478         * lib/fwriting.c (fwriting): Likewise.
21479         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
21480
21481 2009-02-28  Bruno Haible  <bruno@clisp.org>
21482
21483         * tests/test-freadseek.c (main): Disable test beyond end of file on
21484         FreeMiNT.
21485         * tests/test-ftello.c (main): Likewise.
21486         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
21487
21488 2009-02-28  Bruno Haible  <bruno@clisp.org>
21489
21490         Add tentative support for FreeMiNT.
21491         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
21492         * lib/fpurge.c (fpurge): Likewise.
21493         * lib/freadable.c (freadable): Likewise.
21494         * lib/freading.c (freading): Likewise.
21495         * lib/freadptr.c (freadptr): Likewise.
21496         * lib/freadseek.c (freadptrinc): Likewise.
21497         * lib/fseeko.c (rpl_fseeko): Likewise.
21498         * lib/fseterr.c (fseterr): Likewise.
21499         * lib/fwritable.c (fwritable): Likewise.
21500         * lib/fwriting.c (fwriting): Likewise.
21501         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
21502         Hourihane.
21503         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
21504
21505 2009-02-28  Bruno Haible  <bruno@clisp.org>
21506
21507         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
21508         SIGCHLD.
21509         Reported by Jim Meyering.
21510
21511 2009-02-28  Bruno Haible  <bruno@clisp.org>
21512
21513         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
21514         Mention the results of these tests on various platforms.
21515         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
21516         order.
21517         * doc/posix-functions/printf.texi: Likewise.
21518         * doc/posix-functions/snprintf.texi: Likewise.
21519         * doc/posix-functions/sprintf.texi: Likewise.
21520         * doc/posix-functions/vfprintf.texi: Likewise.
21521         * doc/posix-functions/vprintf.texi: Likewise.
21522         * doc/posix-functions/vsnprintf.texi: Likewise.
21523         * doc/posix-functions/vsprintf.texi: Likewise.
21524         * doc/glibc-functions/obstack_printf.texi: Likewise.
21525         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
21526
21527 2009-02-28  Bruno Haible  <bruno@clisp.org>
21528
21529         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
21530         Reported by Loïc Minier <lool@dooz.org>.
21531
21532 2009-02-27  Bruno Haible  <bruno@clisp.org>
21533
21534         * gnulib-tool (func_import): Make the sed expression used to create the
21535         sed script for updating the .gitignore file POSIX compliant.
21536         Reported by Eric Blake.
21537
21538 2009-02-27  Bruno Haible  <bruno@clisp.org>
21539
21540         * gnulib-tool (sed): Don't alias as "sed --posix".
21541         Reported by Eric Blake.
21542
21543 2009-02-27  Bruno Haible  <bruno@clisp.org>
21544
21545         Avoid test link errors.
21546         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
21547         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
21548         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
21549         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
21550         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21551
21552 2009-02-27  Bruno Haible  <bruno@clisp.org>
21553
21554         Avoid spurious "(cached)" in configure output.
21555         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
21556         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
21557         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
21558         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
21559         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
21560         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
21561         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
21562         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
21563         Reported by Eric Blake.
21564
21565 2009-02-27  Eric Blake  <ebb9@byu.net>
21566
21567         printf: fix regression in previous patch
21568         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
21569
21570 2009-02-27  Bruno Haible  <bruno@clisp.org>
21571
21572         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
21573         value.
21574         * lib/stdint.in.h: Likewise.
21575         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
21576
21577 2009-02-27  Eric Blake  <ebb9@byu.net>
21578
21579         doc: mention more functions added in cygwin 1.7.0
21580         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
21581         addition.
21582         * doc/posix-functions/open_wmemstream.texi: Likewise.
21583         * doc/posix-functions/wcsnlen.texi: Likewise.
21584         * doc/posix-functions/wcsnrtombs.texi: Likewise.
21585         * doc/posix-functions/wcstod.texi: Likewise.
21586         * doc/posix-functions/wcstof.texi: Likewise.
21587         * doc/posix-functions/wcstoimax.texi: Likewise.
21588         * doc/posix-functions/wcstok.texi: Likewise.
21589         * doc/posix-functions/wcstoumax.texi: Likewise.
21590
21591         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
21592         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
21593         * doc/posix-functions/fprintf.texi: Update.
21594         * doc/posix-functions/printf.texi: Update.
21595         * doc/posix-functions/snprintf.texi: Update.
21596         * doc/posix-functions/sprintf.texi: Update.
21597         * doc/posix-functions/vfprintf.texi: Update.
21598         * doc/posix-functions/vprintf.texi: Update.
21599         * doc/posix-functions/vsnprintf.texi: Update.
21600         * doc/posix-functions/vsprintf.texi: Update.
21601         * doc/glibc-functions/obstack_printf.texi: Update.
21602         * doc/glibc-functions/obstack_vprintf.texi: Update.
21603
21604 2009-02-26  Eric Blake  <ebb9@byu.net>
21605
21606         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
21607         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
21608         compilation bug by using runtime conversion.
21609         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
21610         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
21611         * modules/ceill-tests (Files): Use nan.h.
21612         * modules/floorl-tests (Files): Likewise.
21613         * modules/frexpl-tests (Files): Likewise.
21614         * modules/isnanl-tests (Files): Likewise.
21615         * modules/ldexpl-tests (Files): Likewise.
21616         * modules/roundl-tests (Files): Likewise.
21617         * modules/truncl-tests (Files): Likewise.
21618         * tests/test-ceill.c (main): Use a working NaN.
21619         * tests/test-floorl.c (main): Likewise.
21620         * tests/test-frexpl.c (main): Likewise.
21621         * tests/test-isnan.c (test_long_double): Likewise.
21622         * tests/test-isnanl.h (main): Likewise.
21623         * tests/test-ldexpl.h (main): Likewise.
21624         * tests/test-roundl.h (main): Likewise.
21625         * tests/test-truncl.h (main): Likewise.
21626         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
21627
21628 2009-02-26  Eric Blake  <ebb9@byu.net>
21629             Bruno Haible  <bruno@clisp.org>
21630
21631         Work around a *printf bug with %ls on Solaris.
21632         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
21633         precision is specified, sprintf stops converting the wide string
21634         argument when the number of bytes that have been produced by this
21635         conversion equals or exceeds the precision.
21636         * doc/posix-functions/fprintf.texi: Update.
21637         * doc/posix-functions/printf.texi: Update.
21638         * doc/posix-functions/snprintf.texi: Update.
21639         * doc/posix-functions/sprintf.texi: Update.
21640         * doc/posix-functions/vfprintf.texi: Update.
21641         * doc/posix-functions/vprintf.texi: Update.
21642         * doc/posix-functions/vsnprintf.texi: Update.
21643         * doc/posix-functions/vsprintf.texi: Update.
21644         * doc/glibc-functions/obstack_printf.texi: Update.
21645         * doc/glibc-functions/obstack_vprintf.texi: Update.
21646
21647 2009-02-26  Eric Blake  <ebb9@byu.net>
21648
21649         stdlib: favor compiler check of random.h
21650         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
21651         to avoid an ObjC random.h installed by Swarm.
21652
21653 2009-02-26  Bruno Haible  <bruno@clisp.org>
21654
21655         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
21656         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
21657         Reported by Gary V. Vaughan <gary@gnu.org>.
21658
21659 2009-02-26  Bruno Haible  <bruno@clisp.org>
21660
21661         Fix *printf behaviour regarding the %ls directive.
21662         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
21663         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
21664         NEED_PRINTF_DIRECTIVE_LS.
21665         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
21666         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
21667         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
21668         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
21669         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
21670         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
21671         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
21672         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
21673         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
21674         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
21675         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
21676         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
21677         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
21678         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
21679         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
21680         * doc/posix-functions/fprintf.texi: Update.
21681         * doc/posix-functions/printf.texi: Update.
21682         * doc/posix-functions/snprintf.texi: Update.
21683         * doc/posix-functions/sprintf.texi: Update.
21684         * doc/posix-functions/vfprintf.texi: Update.
21685         * doc/posix-functions/vprintf.texi: Update.
21686         * doc/posix-functions/vsnprintf.texi: Update.
21687         * doc/posix-functions/vsprintf.texi: Update.
21688         * doc/glibc-functions/obstack_printf.texi: Update.
21689         * doc/glibc-functions/obstack_vprintf.texi: Update.
21690         Reported by Eric Blake.
21691
21692 2009-02-25  Bruno Haible  <bruno@clisp.org>
21693
21694         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
21695         with known value.
21696         Reported by Gary V. Vaughan <gary@gnu.org>.
21697
21698 2009-02-25  Bruno Haible  <bruno@clisp.org>
21699
21700         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
21701         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
21702         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
21703         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
21704         Reported by Gary V. Vaughan <gary@gnu.org>.
21705
21706 2009-02-25  Bruno Haible  <bruno@clisp.org>
21707
21708         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
21709         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
21710         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
21711         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
21712         Reported by Gary V. Vaughan <gary@gnu.org>.
21713
21714 2009-02-25  Eric Blake  <ebb9@byu.net>
21715
21716         tests: skip fseek/ftell tests if ungetc is broken
21717         * m4/ungetc.m4: New file.
21718         * modules/fseek-tests: Split test, so ungetc dependency is
21719         separate from rest of test.
21720         * modules/fseeko-tests: Likewise.
21721         * modules/ftell-tests: Likewise.
21722         * modules/ftello-tests: Likewise.
21723         * tests/test-fseek.c (main): Isolate ungetc dependency.
21724         * tests/test-fseeko.c (main): Likewise.
21725         * tests/test-ftell.c (main): Likewise.
21726         * tests/test-ftello.c (main): Likewise.
21727         * tests/test-fseek2.sh: New file.
21728         * tests/test-fseeko2.sh: Likewise.
21729         * tests/test-ftell2.sh: Likewise.
21730         * tests/test-ftello2.sh: Likewise.
21731
21732 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
21733
21734         test-getaddrinfo: fix usage of skip return code 77
21735         * tests/test-gettaddrinfo.c: Return skip code 77 only
21736         for first occurance of skip (4x77 is not 77)
21737
21738 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
21739
21740         strtod: avoid C99 decl-after-statement
21741         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
21742
21743 2009-02-24  Eric Blake  <ebb9@byu.net>
21744
21745         strtod: detect HP-UX 11.31 bug
21746         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
21747         Reported by Gary V. Vaughan.
21748
21749 2009-02-23  Bruno Haible  <bruno@clisp.org>
21750
21751         Fix invalid read past end of memory block.
21752         * lib/vasnprintf.c (DCHAR_SET): Define.
21753         (local_wcslen): Define only when needed.
21754         (local_strnlen, local_wcsnlen): New functions.
21755         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
21756         directives that involve a conversion ourselves.
21757         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
21758         wcsnlen, mbrtowc, wcrtomb.
21759         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
21760         * tests/test-vasprintf-posix.c (test_function): Likewise.
21761         * tests/test-snprintf-posix.h (test_function): Likewise.
21762         * tests/test-sprintf-posix.h (test_function): Likewise.
21763         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21764
21765 2009-02-22  Bruno Haible  <bruno@clisp.org>
21766
21767         Implement new clarified decomposition of Hangul syllables.
21768         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
21769         of type LTV, return only a pairwise decomposition.
21770         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
21771         Likewise.
21772         * tests/uninorm/test-decomposition.c (main): Updated expected result.
21773         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
21774         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
21775
21776 2009-02-22  Bruno Haible  <bruno@clisp.org>
21777
21778         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
21779         zero-length results and shrink excess allocated memory.
21780         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
21781         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
21782         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
21783         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
21784         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
21785         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
21786         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
21787         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
21788         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
21789         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
21790         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
21791         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
21792
21793 2009-02-21  Bruno Haible  <bruno@clisp.org>
21794
21795         * doc/gnulib.texi: Include safe-alloc.texi earlier.
21796         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
21797         spaces after a period. Put a space between a macro name and its
21798         argument list. Trivial rewordings.
21799         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
21800         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
21801         (main): Return 0 explicitly.
21802
21803 2009-02-21  Bruno Haible  <bruno@clisp.org>
21804
21805         Tests for module 'uninorm/filter'.
21806         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
21807         * modules/uninorm/filter-tests: New file.
21808
21809         New module 'uninorm/filter'.
21810         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
21811         uninorm_filter_flush, uninorm_filter_free): New declarations.
21812         * lib/uninorm/uninorm-filter.c: New file.
21813         * modules/uninorm/filter: New file.
21814
21815 2009-02-21  Bruno Haible  <bruno@clisp.org>
21816
21817         Tests for module 'uninorm/nfkc'.
21818         * tests/uninorm/test-nfkc.c: New file.
21819         * tests/uninorm/test-u8-nfkc.c: New file.
21820         * tests/uninorm/test-u16-nfkc.c: New file.
21821         * tests/uninorm/test-u32-nfkc.c: New file.
21822         * tests/uninorm/test-u32-nfkc-big.sh: New file.
21823         * tests/uninorm/test-u32-nfkc-big.c: New file.
21824         * modules/uninorm/nfkc-tests: New file.
21825
21826         New module 'uninorm/nfkc'.
21827         * lib/uninorm/nfkc.c: New file.
21828         * modules/uninorm/nfkc: New file.
21829
21830         Tests for module 'uninorm/nfkd'.
21831         * tests/uninorm/test-nfkd.c: New file.
21832         * tests/uninorm/test-u8-nfkd.c: New file.
21833         * tests/uninorm/test-u16-nfkd.c: New file.
21834         * tests/uninorm/test-u32-nfkd.c: New file.
21835         * tests/uninorm/test-u32-nfkd-big.sh: New file.
21836         * tests/uninorm/test-u32-nfkd-big.c: New file.
21837         * modules/uninorm/nfkd-tests: New file.
21838
21839         New module 'uninorm/nfkd'.
21840         * lib/uninorm/nfkd.c: New file.
21841         * modules/uninorm/nfkd: New file.
21842
21843         Tests for module 'uninorm/nfc'.
21844         * tests/uninorm/test-nfc.c: New file.
21845         * tests/uninorm/test-u8-nfc.c: New file.
21846         * tests/uninorm/test-u16-nfc.c: New file.
21847         * tests/uninorm/test-u32-nfc.c: New file.
21848         * tests/uninorm/test-u32-nfc-big.sh: New file.
21849         * tests/uninorm/test-u32-nfc-big.c: New file.
21850         * modules/uninorm/nfc-tests: New file.
21851
21852         New module 'uninorm/nfc'.
21853         * lib/uninorm/nfc.c: New file.
21854         * modules/uninorm/nfc: New file.
21855
21856         Tests for module 'uninorm/nfd'.
21857         * tests/uninorm/test-nfd.c: New file.
21858         * tests/uninorm/test-u8-nfd.c: New file.
21859         * tests/uninorm/test-u16-nfd.c: New file.
21860         * tests/uninorm/test-u32-nfd.c: New file.
21861         * tests/uninorm/test-u32-nfd-big.sh: New file.
21862         * tests/uninorm/test-u32-nfd-big.c: New file.
21863         * tests/uninorm/test-u32-normalize-big.h: New file.
21864         * tests/uninorm/test-u32-normalize-big.c: New file.
21865         * tests/uninorm/NormalizationTest.txt: New file, created from
21866         Unicode 5.1.0 NormalizationTest.txt.
21867         * modules/uninorm/nfd-tests: New file.
21868
21869         New module 'uninorm/nfd'.
21870         * lib/uninorm/nfd.c: New file.
21871         * modules/uninorm/nfd: New file.
21872
21873         New module 'uninorm/u32-normalize'.
21874         * lib/uninorm/u32-normalize.c: New file.
21875         * modules/uninorm/u32-normalize: New file.
21876
21877         New module 'uninorm/u16-normalize'.
21878         * lib/uninorm/u16-normalize.c: New file.
21879         * modules/uninorm/u16-normalize: New file.
21880
21881         New module 'uninorm/u8-normalize'.
21882         * lib/uninorm/u8-normalize.c: New file.
21883         * lib/uninorm/normalize-internal.h: New file.
21884         * lib/uninorm/u-normalize-internal.h: New file.
21885         * modules/uninorm/u8-normalize: New file.
21886
21887         New module 'uninorm/decompose-internal'.
21888         * lib/uninorm/decompose-internal.c: New file.
21889         * modules/uninorm/decompose-internal: New file.
21890
21891         Tests for module 'uninorm/composition'.
21892         * tests/uninorm/test-composition.c: New file.
21893         * modules/uninorm/composition-tests: New file.
21894
21895         New module 'uninorm/composition'.
21896         * lib/uninorm/composition.c: New file.
21897         * lib/uninorm/composition-table.gperf: New file, generated by
21898         gen-uni-tables.
21899         * modules/uninorm/composition: New file.
21900
21901         Tests for module 'uninorm/compat-decomposition'.
21902         * tests/uninorm/test-compat-decomposition.c: New file.
21903         * modules/uninorm/compat-decomposition-tests: New file.
21904
21905         New module 'uninorm/compat-decomposition'.
21906         * lib/uninorm/decompose-internal.h: New file.
21907         * lib/uninorm/compat-decomposition.c: New file.
21908         * modules/uninorm/compat-decomposition: New file.
21909
21910         Tests for module 'uninorm/canonical-decomposition'.
21911         * tests/uninorm/test-canonical-decomposition.c: New file.
21912         * modules/uninorm/canonical-decomposition-tests: New file.
21913
21914         New module 'uninorm/canonical-decomposition'.
21915         * lib/uninorm/canonical-decomposition.c: New file.
21916         * modules/uninorm/canonical-decomposition: New file.
21917
21918         Tests for module 'uninorm/decomposition'.
21919         * tests/uninorm/test-decomposition.c: New file.
21920         * modules/uninorm/decomposition-tests: New file.
21921
21922         New module 'uninorm/decomposition'.
21923         * lib/uninorm/decomposition.c: New file.
21924         * modules/uninorm/decomposition: New file.
21925
21926         New module 'uninorm/decomposition-table'.
21927         * lib/uninorm/decomposition-table.h: New file.
21928         * lib/uninorm/decomposition-table.c: New file.
21929         * lib/uninorm/decomposition-table1.h: New file, generated by
21930         gen-uni-tables.
21931         * lib/uninorm/decomposition-table2.h: New file, generated by
21932         gen-uni-tables.
21933         * modules/uninorm/decomposition-table: New file.
21934
21935         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
21936         (UC_DECOMP_*): New enumeration items.
21937         (get_decomposition): New function.
21938         (struct decomp_table): New type.
21939         (output_decomposition, output_decomposition_tables): New functions.
21940         (unicode_composition_exclusions): New variable.
21941         (fill_composition_exclusions, debug_output_composition_tables): New
21942         functions.
21943         (main): Accept one more argument. Invoke fill_composition_exclusions.
21944         Output decomposition and composition tables.
21945
21946         New module 'uninorm/base'.
21947         * lib/uninorm.h: New file.
21948         * lib/unictype.h: Update comment.
21949         * modules/uninorm/base: New file.
21950
21951 2009-02-21  David Lutterkort  <lutter@redhat.com>
21952
21953         Tests for module 'safe-alloc'.
21954         * tests/test-safe-alloc.c: New file.
21955         * modules/safe-alloc-tests: New file.
21956
21957         New module 'safe-alloc'.
21958         * lib/safe-alloc.h: New file.
21959         * lib/safe-alloc.c: New file.
21960         * m4/safe-alloc.m4: New file.
21961         * modules/safe-alloc: New file.
21962         * doc/safe-alloc.texi: New file.
21963         * doc/gnulib.texi: Include it.
21964         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
21965         safe-alloc.
21966
21967 2009-02-18  Bruno Haible  <bruno@clisp.org>
21968
21969         Fix link error on non-glibc systems.
21970         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
21971         variable.
21972         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21973
21974 2009-02-18  Jim Meyering  <meyering@redhat.com>
21975
21976         fts: avoid used-uninitialized error due to recent change
21977         * lib/fts.c (fts_read): Guard uses of the new member,
21978         parent->fts_n_dirs_remaining, since it's not relevant for
21979         the parent of a directory specified on the command-line.
21980
21981 2009-02-17  James Youngman  <jay@gnu.org>
21982             Bruno Haible  <bruno@clisp.org>
21983
21984         * m4/include_next.m4: Reformulate comment.
21985
21986 2009-02-16  Jim Meyering  <meyering@redhat.com>
21987
21988         fts: add #if guards so that the fts_lgpl module still builds
21989         * lib/fts.c: Guard just-added hash-table-using parts with
21990         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
21991         Reported by Simon Josefsson.
21992
21993 2009-02-15  Bruno Haible  <bruno@clisp.org>
21994
21995         * modules/array-mergesort-tests: New file.
21996         * tests/test-array-mergesort.c: New file.
21997
21998         New module 'array-mergesort'.
21999         * modules/array-mergesort: New file.
22000         * lib/array-mergesort.h: New file.
22001
22002 2009-02-15  Bruno Haible  <bruno@clisp.org>
22003
22004         Fix 2009-02-07 commit.
22005         * lib/gen-uni-tables.c (output_predicate, output_category,
22006         output_combclass, output_bidi_category, output_decimal_digit,
22007         output_digit, output_numeric, output_mirror, output_scripts,
22008         output_ident_category, output_simple_mapping): Fix format directives.
22009         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
22010
22011 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
22012
22013         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
22014         fixes are available from IBM.
22015
22016 2009-02-13  Jim Meyering  <meyering@redhat.com>
22017
22018         fts: arrange not to stat non-directories in more cases
22019         This makes GNU find (when it doesn't need to stat each file)
22020         *much* more efficient at traversing reiserfs file systems.
22021         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
22022         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
22023         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
22024         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
22025         (leaf_optimization_applies): New function.
22026         (LCO_hash, LCO_compare): New helper functions.
22027         (link_count_optimize_ok): New function.
22028         (fts_stat): Initialize new member (if dir).
22029         (fts_read): Decrement parent's fts_n_dirs_remaining count if
22030         we've just stat'ed a directory.  Skip the stat call when possible.
22031         ---
22032         Note this AFS-related exchange:
22033         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
22034         and note find's pioctl call in find/fstype.c.
22035         But that is necessary only if you want to enable the
22036         optimization for AFS, and for now, I don't.
22037
22038         fts: move a function definition "up" (no semantic change)
22039         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
22040         "up" to precede upcoming use of a related function.
22041
22042 2009-02-11  Jim Meyering  <meyering@redhat.com>
22043
22044         fts: correct internal computation of nlinks (optimization-related)
22045         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
22046         whether the current entry is a directory, so don't test it.
22047
22048 2009-02-10  Bruno Haible  <bruno@clisp.org>
22049
22050         Tests for module 'uniwbrk/ulc-wordbreaks'.
22051         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
22052         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
22053         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
22054
22055         Tests for module 'uniwbrk/u32-wordbreaks'.
22056         * modules/uniwbrk/u32-wordbreaks-tests: New file.
22057         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
22058
22059         Tests for module 'uniwbrk/u16-wordbreaks'.
22060         * modules/uniwbrk/u16-wordbreaks-tests: New file.
22061         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
22062
22063         Tests for module 'uniwbrk/u8-wordbreaks'.
22064         * modules/uniwbrk/u8-wordbreaks-tests: New file.
22065         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
22066
22067 2009-02-10  Bruno Haible  <bruno@clisp.org>
22068
22069         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
22070         property.
22071         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
22072         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
22073         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
22074
22075 2009-02-10  Simon Josefsson  <simon@josefsson.org>
22076
22077         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
22078         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
22079
22080 2009-02-10  Bruno Haible  <bruno@clisp.org>
22081
22082         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
22083         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
22084         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
22085         * lib/unilbrk/u8-possible-linebreaks.c: Update.
22086         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
22087         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
22088
22089 2009-02-09  Simon Josefsson  <simon@josefsson.org>
22090
22091         * lib/sockets.h (gl_fd_to_handle): New function.
22092
22093         * tests/test-sockets.c: Call gl_fd_to_handle.
22094
22095 2009-02-09  Bruno Haible  <bruno@clisp.org>
22096
22097         * doc/havelib.texi: Document the conventions on bi-arch systems.
22098
22099 2009-02-08  Bruno Haible  <bruno@clisp.org>
22100
22101         Document the AC_LIB_LINKFLAGS macro.
22102         * doc/havelib.texi: New file, mostly written on 2005-05-24.
22103         * doc/gnulib.texi: Include it.
22104
22105 2009-02-08  Bruno Haible  <bruno@clisp.org>
22106
22107         Fix wrong order of sections, compared to TOC.
22108         * doc/gnulib.texi: Include relocatable-maint.texi after the
22109         "Regular expressions" node, not before.
22110
22111 2009-02-08  Bruno Haible  <bruno@clisp.org>
22112
22113         Tests for module 'unicase/totitle'.
22114         * modules/unicase/totitle-tests: New file.
22115
22116         Tests for module 'unicase/tolower'.
22117         * modules/unicase/tolower-tests: New file.
22118
22119         Tests for module 'unicase/toupper'.
22120         * modules/unicase/toupper-tests: New file.
22121         * tests/unicase/test-mapping-part1.h: New file.
22122         * tests/unicase/test-mapping-part2.h: New file.
22123
22124         New module 'unicase/totitle'.
22125         * modules/unicase/totitle: New file.
22126         * lib/unicase/totitle.c: New file.
22127
22128         New module 'unicase/tolower'.
22129         * modules/unicase/tolower: New file.
22130         * lib/unicase/tolower.c: New file.
22131
22132         New module 'unicase/toupper'.
22133         * modules/unicase/toupper: New file.
22134         * lib/unicase/toupper.c: New file.
22135         * lib/unicase/simple-mapping.h: New file.
22136
22137         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
22138         (mapping_table): New structure.
22139         (output_simple_mapping): New function.
22140         (main): Invoke output_simple_mapping_test and output_simple_mapping.
22141         * modules/gen-uni-tables (Description): Update.
22142         * lib/unicase/toupper.h: New file, automatically generated by
22143         gen-uni-tables.
22144         * lib/unicase/tolower.h: New file, automatically generated by
22145         gen-uni-tables.
22146         * lib/unicase/totitle.h: New file, automatically generated by
22147         gen-uni-tables.
22148         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
22149         gen-uni-tables.
22150         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
22151         gen-uni-tables.
22152         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
22153         gen-uni-tables.
22154
22155         New module 'unicase/base'.
22156         * modules/unicase/base: New file.
22157         * lib/unicase.h: New file.
22158
22159 2009-02-08  Bruno Haible  <bruno@clisp.org>
22160
22161         New module 'uniwbrk/ulc-wordbreaks'.
22162         * modules/uniwbrk/ulc-wordbreaks: New file.
22163         * lib/uniwbrk/ulc-wordbreaks.c: New file.
22164
22165         New module 'uniwbrk/u32-wordbreaks'.
22166         * modules/uniwbrk/u32-wordbreaks: New file.
22167         * lib/uniwbrk/u32-wordbreaks.c: New file.
22168
22169         New module 'uniwbrk/u16-wordbreaks'.
22170         * modules/uniwbrk/u16-wordbreaks: New file.
22171         * lib/uniwbrk/u16-wordbreaks.c: New file.
22172
22173         New module 'uniwbrk/u8-wordbreaks'.
22174         * modules/uniwbrk/u8-wordbreaks: New file.
22175         * lib/uniwbrk/u8-wordbreaks.c: New file.
22176         * lib/uniwbrk/u-wordbreaks.h: New file.
22177
22178         New module 'uniwbrk/table'.
22179         * modules/uniwbrk/table: New file.
22180         * lib/uniwbrk/wbrktable.h: New file.
22181         * lib/uniwbrk/wbrktable.c: New file.
22182
22183         New module 'uniwbrk/wordbreak-property'.
22184         * modules/uniwbrk/wordbreak-property: New file.
22185         * lib/uniwbrk/wordbreak-property.c: New file.
22186
22187         * lib/gen-uni-tables.c (WBP_*): New enum items.
22188         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
22189         (unicode_org_wbp): New variable.
22190         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
22191         New functions.
22192         (wbp_table): New structure.
22193         (output_wbp, output_wbrk_tables): New functions.
22194         (main): Accept additional argument. Invoke fill_org_wbp,
22195         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
22196         output_wbrk_tables.
22197         * modules/gen-uni-tables (Description): Update.
22198         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
22199         gen-uni-tables.
22200
22201         New module 'uniwbrk/base'.
22202         * modules/uniwbrk/base: New file.
22203         * lib/uniwbrk.h: New file.
22204
22205 2009-02-08  Bruno Haible  <bruno@clisp.org>
22206
22207         Update to Unicode 5.1.0.
22208         * lib/gen-uni-tables.c (is_property_alphabetic): Include
22209         U+2185..U+2188.
22210         (is_property_default_ignorable_code_point): Don't include characters
22211         of category Cc or Cs and not-a-characters.
22212         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
22213         U+0D79, U+109E, U+109F, U+A60C.
22214         * lib/unictype/bidi_of.h: Regenerated.
22215         * lib/unictype/blocks.h: Regenerated.
22216         * lib/unictype/categ_C.h: Regenerated.
22217         * lib/unictype/categ_Cf.h: Regenerated.
22218         * lib/unictype/categ_Cn.h: Regenerated.
22219         * lib/unictype/categ_L.h: Regenerated.
22220         * lib/unictype/categ_Ll.h: Regenerated.
22221         * lib/unictype/categ_Lm.h: Regenerated.
22222         * lib/unictype/categ_Lo.h: Regenerated.
22223         * lib/unictype/categ_Lu.h: Regenerated.
22224         * lib/unictype/categ_M.h: Regenerated.
22225         * lib/unictype/categ_Mc.h: Regenerated.
22226         * lib/unictype/categ_Me.h: Regenerated.
22227         * lib/unictype/categ_Mn.h: Regenerated.
22228         * lib/unictype/categ_N.h: Regenerated.
22229         * lib/unictype/categ_Nd.h: Regenerated.
22230         * lib/unictype/categ_Nl.h: Regenerated.
22231         * lib/unictype/categ_No.h: Regenerated.
22232         * lib/unictype/categ_P.h: Regenerated.
22233         * lib/unictype/categ_Pd.h: Regenerated.
22234         * lib/unictype/categ_Pe.h: Regenerated.
22235         * lib/unictype/categ_Pf.h: Regenerated.
22236         * lib/unictype/categ_Pi.h: Regenerated.
22237         * lib/unictype/categ_Po.h: Regenerated.
22238         * lib/unictype/categ_Ps.h: Regenerated.
22239         * lib/unictype/categ_S.h: Regenerated.
22240         * lib/unictype/categ_Sk.h: Regenerated.
22241         * lib/unictype/categ_Sm.h: Regenerated.
22242         * lib/unictype/categ_So.h: Regenerated.
22243         * lib/unictype/categ_of.h: Regenerated.
22244         * lib/unictype/combining.h: Regenerated.
22245         * lib/unictype/ctype_alnum.h: Regenerated.
22246         * lib/unictype/ctype_alpha.h: Regenerated.
22247         * lib/unictype/ctype_graph.h: Regenerated.
22248         * lib/unictype/ctype_lower.h: Regenerated.
22249         * lib/unictype/ctype_print.h: Regenerated.
22250         * lib/unictype/ctype_punct.h: Regenerated.
22251         * lib/unictype/ctype_upper.h: Regenerated.
22252         * lib/unictype/decdigit.h: Regenerated.
22253         * lib/unictype/digit.h: Regenerated.
22254         * lib/unictype/mirror.h: Regenerated.
22255         * lib/unictype/numeric.h: Regenerated.
22256         * lib/unictype/pr_alphabetic.h: Regenerated.
22257         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
22258         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
22259         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
22260         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
22261         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
22262         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
22263         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
22264         * lib/unictype/pr_combining.h: Regenerated.
22265         * lib/unictype/pr_dash.h: Regenerated.
22266         * lib/unictype/pr_decimal_digit.h: Regenerated.
22267         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
22268         * lib/unictype/pr_deprecated.h: Regenerated.
22269         * lib/unictype/pr_diacritic.h: Regenerated.
22270         * lib/unictype/pr_extender.h: Regenerated.
22271         * lib/unictype/pr_format_control.h: Regenerated.
22272         * lib/unictype/pr_grapheme_base.h: Regenerated.
22273         * lib/unictype/pr_grapheme_extend.h: Regenerated.
22274         * lib/unictype/pr_grapheme_link.h: Regenerated.
22275         * lib/unictype/pr_id_continue.h: Regenerated.
22276         * lib/unictype/pr_id_start.h: Regenerated.
22277         * lib/unictype/pr_ideographic.h: Regenerated.
22278         * lib/unictype/pr_ignorable_control.h: Regenerated.
22279         * lib/unictype/pr_lowercase.h: Regenerated.
22280         * lib/unictype/pr_math.h: Regenerated.
22281         * lib/unictype/pr_numeric.h: Regenerated.
22282         * lib/unictype/pr_other_alphabetic.h: Regenerated.
22283         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
22284         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
22285         * lib/unictype/pr_other_id_continue.h: Regenerated.
22286         * lib/unictype/pr_other_lowercase.h: Regenerated.
22287         * lib/unictype/pr_other_math.h: Regenerated.
22288         * lib/unictype/pr_punctuation.h: Regenerated.
22289         * lib/unictype/pr_sentence_terminal.h: Regenerated.
22290         * lib/unictype/pr_soft_dotted.h: Regenerated.
22291         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
22292         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
22293         * lib/unictype/pr_unified_ideograph.h: Regenerated.
22294         * lib/unictype/pr_uppercase.h: Regenerated.
22295         * lib/unictype/pr_xid_continue.h: Regenerated.
22296         * lib/unictype/pr_xid_start.h: Regenerated.
22297         * lib/unictype/pr_zero_width.h: Regenerated.
22298         * lib/unictype/scripts.h: Regenerated.
22299         * lib/unictype/scripts_byname.gperf: Regenerated.
22300         * lib/unictype/sy_java_ident.h: Regenerated.
22301         * lib/unilbrk/lbrkprop1.h: Regenerated.
22302         * lib/unilbrk/lbrkprop2.h: Regenerated.
22303         * tests/unictype/test-categ_C.c: Regenerated.
22304         * tests/unictype/test-categ_Cf.c: Regenerated.
22305         * tests/unictype/test-categ_Cn.c: Regenerated.
22306         * tests/unictype/test-categ_L.c: Regenerated.
22307         * tests/unictype/test-categ_Ll.c: Regenerated.
22308         * tests/unictype/test-categ_Lm.c: Regenerated.
22309         * tests/unictype/test-categ_Lo.c: Regenerated.
22310         * tests/unictype/test-categ_Lu.c: Regenerated.
22311         * tests/unictype/test-categ_M.c: Regenerated.
22312         * tests/unictype/test-categ_Mc.c: Regenerated.
22313         * tests/unictype/test-categ_Me.c: Regenerated.
22314         * tests/unictype/test-categ_Mn.c: Regenerated.
22315         * tests/unictype/test-categ_N.c: Regenerated.
22316         * tests/unictype/test-categ_Nd.c: Regenerated.
22317         * tests/unictype/test-categ_Nl.c: Regenerated.
22318         * tests/unictype/test-categ_No.c: Regenerated.
22319         * tests/unictype/test-categ_P.c: Regenerated.
22320         * tests/unictype/test-categ_Pd.c: Regenerated.
22321         * tests/unictype/test-categ_Pe.c: Regenerated.
22322         * tests/unictype/test-categ_Pf.c: Regenerated.
22323         * tests/unictype/test-categ_Pi.c: Regenerated.
22324         * tests/unictype/test-categ_Po.c: Regenerated.
22325         * tests/unictype/test-categ_Ps.c: Regenerated.
22326         * tests/unictype/test-categ_S.c: Regenerated.
22327         * tests/unictype/test-categ_Sk.c: Regenerated.
22328         * tests/unictype/test-categ_Sm.c: Regenerated.
22329         * tests/unictype/test-categ_So.c: Regenerated.
22330         * tests/unictype/test-ctype_alnum.c: Regenerated.
22331         * tests/unictype/test-ctype_alpha.c: Regenerated.
22332         * tests/unictype/test-ctype_graph.c: Regenerated.
22333         * tests/unictype/test-ctype_lower.c: Regenerated.
22334         * tests/unictype/test-ctype_print.c: Regenerated.
22335         * tests/unictype/test-ctype_punct.c: Regenerated.
22336         * tests/unictype/test-ctype_upper.c: Regenerated.
22337         * tests/unictype/test-decdigit.h: Regenerated.
22338         * tests/unictype/test-digit.h: Regenerated.
22339         * tests/unictype/test-numeric.h: Regenerated.
22340         * tests/unictype/test-pr_alphabetic.c: Regenerated.
22341         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
22342         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
22343         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
22344         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
22345         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
22346         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
22347         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
22348         * tests/unictype/test-pr_combining.c: Regenerated.
22349         * tests/unictype/test-pr_dash.c: Regenerated.
22350         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
22351         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
22352         * tests/unictype/test-pr_deprecated.c: Regenerated.
22353         * tests/unictype/test-pr_diacritic.c: Regenerated.
22354         * tests/unictype/test-pr_extender.c: Regenerated.
22355         * tests/unictype/test-pr_format_control.c: Regenerated.
22356         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
22357         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
22358         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
22359         * tests/unictype/test-pr_id_continue.c: Regenerated.
22360         * tests/unictype/test-pr_id_start.c: Regenerated.
22361         * tests/unictype/test-pr_ideographic.c: Regenerated.
22362         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
22363         * tests/unictype/test-pr_lowercase.c: Regenerated.
22364         * tests/unictype/test-pr_math.c: Regenerated.
22365         * tests/unictype/test-pr_numeric.c: Regenerated.
22366         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
22367         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
22368         Regenerated.
22369         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
22370         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
22371         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
22372         * tests/unictype/test-pr_other_math.c: Regenerated.
22373         * tests/unictype/test-pr_punctuation.c: Regenerated.
22374         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
22375         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
22376         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
22377         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
22378         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
22379         * tests/unictype/test-pr_uppercase.c: Regenerated.
22380         * tests/unictype/test-pr_xid_continue.c: Regenerated.
22381         * tests/unictype/test-pr_xid_start.c: Regenerated.
22382         * tests/unictype/test-pr_zero_width.c: Regenerated.
22383
22384         Update to Unicode 5.1.0.
22385         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
22386         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
22387         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
22388         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
22389         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
22390         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
22391         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
22392         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
22393         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
22394         (nonspacing_table_ind): Update.
22395         * tests/uniwidth/test-uc_width2.sh: Update expected result.
22396
22397         Update to Unicode 5.1.0.
22398         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
22399         code transform.
22400         * lib/uniname/uniname.c (unicode_character_name,
22401         unicode_name_character): Add the range 0x1Fxxx to the code transform.
22402         * lib/uniname/uninames.h: Regenerated.
22403         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
22404
22405 2009-02-07  Bruno Haible  <bruno@clisp.org>
22406
22407         Merge gen-ctype and gen-lbrk into a single program.
22408         * lib/gen-uni-tables.c: New file, incorporating
22409         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
22410         Add directory prefixes to the names of the generated files.
22411         * lib/unictype/gen-ctype.c: Remove file.
22412         * lib/unilbrk/gen-lbrk.c: Remove file.
22413         * modules/gen-uni-tables: New file.
22414         * modules/unictype/gen-ctype: Remove file.
22415         * modules/unilbrk/gen-lbrk: Remove file.
22416
22417 2009-02-07  Bruno Haible  <bruno@clisp.org>
22418
22419         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
22420
22421         New module 'unistr/u32-strcoll'.
22422         * modules/unistr/u32-strcoll: New file.
22423         * lib/unistr/u32-strcoll.c: New file.
22424
22425         New module 'unistr/u16-strcoll'.
22426         * modules/unistr/u16-strcoll: New file.
22427         * lib/unistr/u16-strcoll.c: New file.
22428
22429         New module 'unistr/u8-strcoll'.
22430         * modules/unistr/u8-strcoll: New file.
22431         * lib/unistr/u8-strcoll.c: New file.
22432         * lib/unistr/u-strcoll.h: New file.
22433
22434 2009-02-07  Bruno Haible  <bruno@clisp.org>
22435
22436         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
22437         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
22438         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
22439         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
22440         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
22441         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
22442
22443 2009-02-07  Bruno Haible  <bruno@clisp.org>
22444
22445         Make 64-bit clean.
22446         * lib/unictype/gen-ctype.c (output_predicate, output_category,
22447         output_combclass, output_bidi_category, output_decimal_digit,
22448         output_digit, output_numeric, output_mirror, output_scripts,
22449         output_ident_category): Use proper width specifier in format strings.
22450
22451 2009-02-07  Bruno Haible  <bruno@clisp.org>
22452
22453         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
22454         failure behaviour.
22455
22456 2009-02-07  Jim Meyering  <meyering@redhat.com>
22457
22458         regex: avoid compilation failure with upcoming gcc-4.4
22459         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
22460         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
22461         "... error: integer overflow in preprocessor expression".
22462
22463 2009-02-05  Ben Pfaff  <blp@gnu.org>
22464
22465         Fix link errors on Windows when close module is used.
22466         * modules/close: Add $(LIB_CLOSE) to Link section.
22467         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
22468         $(LIB_CLOSE) on Windows.
22469
22470 2009-02-05  Jim Meyering  <meyering@redhat.com>
22471
22472         still avoid unused-parameter warnings, but do it cleanly
22473         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
22474         (get_fs_usage): Cast to void instead.
22475         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
22476         (dev_from_mount_options, read_file_system_list): Cast to void.
22477         Prompted by Bruno Haible.
22478
22479 2009-02-04  Jim Meyering  <meyering@redhat.com>
22480
22481         fsusage.c: correct copyright year
22482         * lib/fsusage.c: Reflect year in which the change is pushed into
22483
22484         avoid misc. warnings
22485         * lib/fsusage.c (UNUSED_PARAM): Define.
22486         (get_fs_usage): Mark parameter "disk" as unused.
22487         * lib/getugroups.c (getgrent): Use "void" in prototype.
22488         * lib/mountlist.c: Mark unused parameters.
22489         (read_file_system_list): Declare a local with "const".
22490         * lib/nanosleep.c (getnow): Declare static.
22491         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
22492
22493         dirfd: set errno upon failure
22494         * lib/dirfd.c: Include <errno.h>.
22495         Set errno to ENOTSUP when returning -1.
22496         * modules/dirfd (Depends-on): Add errno.
22497         Suggested by John Kodis <kodis@comcast.net>.
22498
22499 2009-02-01  Bruno Haible  <bruno@clisp.org>
22500
22501         Don't assume sizeof (long) >= sizeof (void *).
22502         * lib/memcmp.c: Include stdint.h.
22503         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
22504         srcp2 to 'const byte *'.
22505         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
22506         types to uintptr_t.
22507         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
22508         * modules/memcmp (Depends-on): Add stdint.
22509         Reported by Ozkan Sezer <sezeroz@gmail.com>.
22510
22511 2009-01-30  Eric Blake  <ebb9@byu.net>
22512
22513         fix more require-before-expand issues
22514         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
22515         expand, AC_PROG_AWK.
22516         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
22517
22518 2009-01-28  Eric Blake  <ebb9@byu.net>
22519
22520         version-etc: use consistent URL formatting
22521         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
22522         Improve formatting.  Use fputs for string without %.
22523
22524 2009-01-28  Jim Meyering  <meyering@redhat.com>
22525
22526         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
22527         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
22528         "underquoted definition of NAME" from autoconf-2.59.
22529
22530 2009-01-28  Bruno Haible  <bruno@clisp.org>
22531
22532         * doc/gnulib.texi: Add "Obsolete modules" to index.
22533
22534 2009-01-28  Jim Meyering  <meyering@redhat.com>
22535
22536         useless-if-before-free: recognize more variants
22537         * build-aux/useless-if-before-free: Also recognize e.g.,
22538         if (NULL != p) free (p);
22539
22540 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
22541
22542         test-getaddrinfo: skip (don't fail) this test when there's no network
22543         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
22544         on the presumption that it means you lack network access.
22545
22546 2009-01-26  Jim Meyering  <meyering@redhat.com>
22547
22548         fflush: avoid warnings on modern systems
22549         * lib/fflush.c (rpl_fflush): Move declarations of locals,
22550         pos and result, into scopes where they're used.
22551
22552 2009-01-26  Eric Blake  <ebb9@byu.net>
22553
22554         Silence warning reintroduced by recent extensions patch.
22555         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
22556         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
22557         autoconf.
22558
22559         Backport improved autoconf semantics of AC_DEFUN_ONCE.
22560         * m4/00gnulib.m4: New file.
22561         * gnulib-tool (func_get_filelist): Always use it.
22562         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
22563         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
22564
22565 2009-01-25  Bruno Haible  <bruno@clisp.org>
22566
22567         Make test-quotearg work on MacOS X and AIX.
22568         * tests/test-quotearg.sh: New file.
22569         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
22570         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
22571         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
22572         include <libintl.h>.
22573         (fake_locale): Remove variable.
22574         (gettext, dgettext, dcgettext): Remove functions.
22575         (main): Instead of setting a fake locale, set a real locale. Call
22576         textdomain and bindtextdomain.
22577         * modules/quotearg-tests (Files): Add the new files.
22578         (Depends-on): Add gettext, setenv, unsetenv.
22579         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
22580         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
22581         Augment TESTS_ENVIRONMENT.
22582
22583 2009-01-25  Bruno Haible  <bruno@clisp.org>
22584
22585         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
22586         fr_FR.ISO8859-1 locale on MacOS X.
22587         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
22588         ja_JP.eucJP locale on MacOS X.
22589         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
22590         zh_CN.GB18030 locale on MacOS X.
22591
22592 2009-01-25  Bruno Haible  <bruno@clisp.org>
22593
22594         Avoid link errors on MacOS X 10.3.
22595         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
22596         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
22597
22598 2009-01-25  Bruno Haible  <bruno@clisp.org>
22599
22600         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
22601         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
22602         * modules/pipe (Files): Remove m4/posix_spawn.m4.
22603         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
22604         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
22605         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
22606         posix_spawnattr_init, posix_spawnattr_setsigmask,
22607         posix_spawnattr_setflags, posix_spawnattr_destroy.
22608
22609         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
22610         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
22611         * modules/execute (Files): Remove m4/posix_spawn.m4.
22612         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
22613         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
22614         posix_spawnattr_init, posix_spawnattr_setsigmask,
22615         posix_spawnattr_setflags, posix_spawnattr_destroy.
22616
22617 2009-01-25  Bruno Haible  <bruno@clisp.org>
22618
22619         * lib/glthread/threadlib.c: Include <stdlib.h>.
22620
22621 2009-01-25  Bruno Haible  <bruno@clisp.org>
22622
22623         * lib/glthread/threadlib.c (dummy): New declaration.
22624
22625 2009-01-25  Bruno Haible  <bruno@clisp.org>
22626
22627         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
22628         multibyte characters also for the GB18030 encoding. Don't crash when
22629         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
22630
22631 2009-01-25  Bruno Haible  <bruno@clisp.org>
22632
22633         Avoid redefining 'struct random_data' on OSF/1 5.1.
22634         * lib/stdlib.in.h: Include <random.h> if it exists.
22635         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
22636         HAVE_RANDOM_H. Include <random.h> when testing whether
22637         'struct random_data' exists.
22638         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
22639
22640 2009-01-25  Bruno Haible  <bruno@clisp.org>
22641
22642         Don't install charset.alias on MacOS X >= 10.3.
22643         * lib/localcharset.c (DARWIN7): New macro.
22644         (get_charset_aliases): Hardcode the result for Darwin7.
22645         * modules/localcharset (install-exec-local): Don't install
22646         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
22647
22648 2009-01-25  Bruno Haible  <bruno@clisp.org>
22649
22650         Don't install charset.alias on mingw and Cygwin.
22651         * modules/localcharset (install-exec-local): Don't install
22652         charset.alias on mingw and Cygwin, if the file does not yet exist.
22653         The result for these platforms is hardcoded in localcharset.c.
22654
22655 2009-01-25  Bruno Haible  <bruno@clisp.org>
22656
22657         Make it possible again to use AC_GNU_SOURCE together with gnulib.
22658         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
22659         before requiring AC_USE_SYSTEM_EXTENSIONS.
22660
22661 2009-01-25  Jim Meyering  <meyering@redhat.com>
22662
22663         c-strtod: avoid warnings
22664         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
22665         "assignment discards qualifiers from pointer target type" warnings.
22666
22667 2009-01-24  Bruno Haible  <bruno@clisp.org>
22668
22669         Add support for non-UTF-8 locales on MacOS X.
22670         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
22671         canonical encodings. For Darwin 7 and newer, don't map traditional
22672         encodings to UTF-8.
22673         Reported by Vincent Lefevre <vincent@vinc17.org>
22674         at <http://savannah.gnu.org/bugs/?25235>.
22675
22676 2009-01-24  Bruno Haible  <bruno@clisp.org>
22677
22678         * doc/gnulib.texi (Obsolete modules): New section.
22679         Reported by Mike Frysinger <vapier@gentoo.org>.
22680
22681 2009-01-24  Bruno Haible  <bruno@clisp.org>
22682
22683         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
22684         (%.dvi): New rule.
22685
22686 2009-01-24  Bruno Haible  <bruno@clisp.org>
22687
22688         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
22689         Reported by Eric Blake.
22690
22691 2009-01-24  Bruno Haible  <bruno@clisp.org>
22692
22693         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
22694         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
22695         Reported by Gary V. Vaughan <gary@gnu.org>.
22696
22697 2009-01-24  Bruno Haible  <bruno@clisp.org>
22698
22699         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
22700
22701 2009-01-23  Bruno Haible  <bruno@clisp.org>
22702
22703         Make c-strtod, c-strtold usable in libraries.
22704         * lib/c-strtod.c: Include string.h instead of xalloc.h.
22705         (C_STRTOD): Call strdup instead of xstrdup.
22706         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
22707         * modules/c-strtold (Depends-on): Likewise.
22708         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
22709         * NEWS: Mention the change.
22710         Reported by Michael Gold <mgold@ncf.ca>.
22711
22712 2009-01-23  Jim Meyering  <meyering@redhat.com>
22713
22714         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
22715         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
22716         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
22717
22718 2009-01-23  Simon Josefsson  <simon@josefsson.org>
22719
22720         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
22721         GNU CoreUtils.
22722         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
22723         * modules/version-etc (Description): Update.
22724
22725 2009-01-22  Bruno Haible  <bruno@clisp.org>
22726
22727         Cache the C locale object.
22728         * lib/c-strtod.c (c_locale_cache): New variable.
22729         (c_locale): New function.
22730         (C_STRTOD): Use it, and don't call freelocale.
22731         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
22732         Suggested by Paolo Bonzini.
22733
22734 2009-01-21  Bruno Haible  <bruno@clisp.org>
22735
22736         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
22737         conditions other than overflow.
22738
22739 2009-01-21  Bruno Haible  <bruno@clisp.org>
22740
22741         * lib/c-strtod.c: Include errno.h.
22742         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
22743         value from STRTOD_L and STRTOD.
22744
22745 2009-01-21  Bruno Haible  <bruno@clisp.org>
22746         and Jim Meyering  <meyering@redhat.com>
22747
22748         nanosleep: skip configure test (fail it) for apple universal builds
22749         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
22750         universal builds, assume that nanosleep does not work.
22751         * modules/nanosleep (Depends-on): Add multiarch.
22752
22753         mktime: skip configure test (fail it) for apple universal builds
22754         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
22755         universal builds, assume that mktime does not work.
22756         * modules/mktime (Depends-on): Add multiarch.
22757
22758 2009-01-21  Eric Blake  <ebb9@byu.net>
22759
22760         multiarch: avoid expand-before-require warning
22761         * modules/multiarch (configure.ac): Require, rather than expand,
22762         gl_MULTIARCH.
22763         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
22764         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
22765         enforce that all clients require it.  Partial reversion of
22766         2008-12-29 patch.
22767
22768         error: avoid expand-before-require warning
22769         * modules/errno (configure.ac): Require, rather than expand,
22770         gl_HEADER_ERRNO_H.
22771         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
22772         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
22773         enforce that all clients require it.
22774
22775         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
22776         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
22777         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
22778         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
22779
22780 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
22781
22782         Revert:
22783         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
22784
22785         regex: do not depend on obsolete modules.
22786         * modules/regex: Remove memcmp and memmove.
22787
22788 2009-01-20  Bruno Haible  <bruno@clisp.org>
22789
22790         Make the 'link' module link on Windows NT 4.
22791         * lib/link.c (_WIN32_WINNT): Don't define.
22792         (CreateHardLinkFuncType): New type.
22793         (CreateHardLinkFunc, initialized): New variables.
22794         (initialize): New function.
22795         (link): Invoke CreateHardLink indirectly through the function pointer.
22796
22797 2009-01-20  Bruno Haible  <bruno@clisp.org>
22798
22799         Fix compilation failure on mingw.
22800         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
22801
22802 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
22803
22804         * doc/c-strtod.texi: Mention a couple of restrictions.
22805
22806 2009-01-20  Jim Meyering  <meyering@redhat.com>
22807
22808         gettimeofday: move more declarations out of functions
22809         * lib/gettimeofday.c: Move extern declarations of tzset and
22810         gmtime out of containing functions.  Prompted by Bruno Haible.
22811
22812 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
22813
22814         regex: do not depend on obsolete modules.
22815         * modules/regex: Remove memcmp and memmove.
22816
22817 2009-01-19  Bruno Haible  <bruno@clisp.org>
22818
22819         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
22820         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
22821         gl_BIGENDIAN, not AC_C_BIGENDIAN.
22822         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
22823         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
22824
22825 2009-01-19  Bruno Haible  <bruno@clisp.org>
22826
22827         * tests/test-link.c: Include <errno.h>.
22828         (main): Exit with code 77 when a hard link cannot be created due to
22829         the file system.
22830         * tests/test-link.sh: Skip test when a hard link cannot be created due
22831         to the file system.
22832         Suggested by Eric Blake.
22833
22834 2009-01-19  Martin Lambers  <marlam@marlam.de>
22835
22836         * modules/link-tests: New file.
22837         * tests/test-link.sh: New file.
22838         * tests/test-link.c: New file.
22839
22840 2009-01-19  Eric Blake  <ebb9@byu.net>
22841
22842         doc: mention another function added in cygwin 1.7.0
22843         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
22844         Another new function in cygwin 1.7.
22845
22846 2009-01-19  Bruno Haible  <bruno@clisp.org>
22847
22848         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
22849         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
22850         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
22851         gl_BIGENDIAN, not AC_C_BIGENDIAN.
22852         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
22853         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
22854         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
22855         * m4/md4.m4 (gl_MD4): Likewise.
22856         * m4/md5.m4 (gl_MD5): Likewise.
22857         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
22858         * m4/sha1.m4 (gl_SHA1): Likewise.
22859         * m4/sha256.m4 (gl_SHA256): Likewise.
22860         * m4/sha512.m4 (gl_SHA512): Likewise.
22861
22862 2009-01-19  Bruno Haible  <bruno@clisp.org>
22863
22864         * modules/uniname/uniname-tests (Depends-on): Add progname.
22865         * tests/uniname/test-uninames.c: Include progname.h.
22866         (main): Call set_program_name.
22867
22868         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
22869         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
22870         (main): Call set_program_name.
22871
22872         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
22873         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
22874         (main): Call set_program_name.
22875
22876         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
22877         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
22878         (main): Call set_program_name.
22879
22880         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
22881         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
22882         (main): Call set_program_name.
22883
22884         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
22885         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
22886         (main): Call set_program_name.
22887
22888         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
22889         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
22890         (main): Call set_program_name.
22891
22892         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
22893         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
22894         (main): Call set_program_name.
22895
22896         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
22897         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
22898         (main): Call set_program_name.
22899
22900 2009-01-19  Eric Blake  <ebb9@byu.net>
22901
22902         test-unistd: test previous patch
22903         * tests/test-unistd.c: Test *_FILENO macros.
22904
22905         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
22906         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
22907         Guarantee a definition.
22908         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
22909         * modules/unistd-safer (Depends-on): Add dependency on unistd.
22910         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
22911         * lib/dup-safer.c (STDERR_FILENO): Likewise.
22912         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
22913         Likewise.
22914         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
22915         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
22916         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
22917         Likewise.
22918         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
22919         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
22920         (STDERR_FILENO): Likewise.
22921         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
22922         (STDERR_FILENO): Likewise.
22923         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
22924         (STDERR_FILENO): Likewise.
22925         Reported by Elbert Pol.
22926
22927 2009-01-19  Eric Blake  <ebb9@byu.net>
22928
22929         doc: mention more functions added in cygwin 1.7.0
22930         * doc/posix-functions/abort.texi (abort): Update wording related
22931         to cygwin.
22932         * doc/posix-functions/daylight.texi (daylight): Likewise.
22933         * doc/posix-functions/optarg.texi (optarg): Likewise.
22934         * doc/posix-functions/optarg.texi (opterr): Likewise.
22935         * doc/posix-functions/optarg.texi (optind): Likewise.
22936         * doc/posix-functions/optarg.texi (optopt): Likewise.
22937         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
22938         worked in 1.5.x, and was withdrawn in 1.7.
22939         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
22940         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
22941         cygwin versions.
22942         * doc/posix-functions/perror.texi (perror): Likewise.
22943         * doc/posix-functions/printf.texi (printf): Likewise.
22944         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
22945         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
22946         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
22947         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
22948         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
22949         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
22950         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
22951         Likewise.
22952         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
22953         Likewise.
22954         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
22955         this function.
22956         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
22957         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
22958         Likewise.
22959         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
22960         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
22961         * doc/posix-functions/confstr.texi (confstr): Likewise.
22962         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
22963         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
22964         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
22965         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
22966         * doc/posix-functions/fputws.texi (fputws): Likewise.
22967         * doc/posix-functions/fwide.texi (fwide): Likewise.
22968         * doc/posix-functions/getwc.texi (getwc): Likewise.
22969         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
22970         * doc/posix-functions/putwc.texi (putwc): Likewise.
22971         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
22972         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
22973         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
22974         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
22975         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
22976         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
22977         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
22978         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
22979         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
22980         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
22981         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
22982
22983 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
22984
22985         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
22986         * lib/ioctl.c: Include <sys/ioctl.h>.
22987
22988 2009-01-19  Simon Josefsson  <simon@josefsson.org>
22989
22990         * modules/getdate-tests (Depends-on): Add progname.
22991         * tests/test-getdate.c: Use progname module, to avoid link errors
22992         on non-glibc systems.
22993
22994 2009-01-18  Simon Josefsson  <simon@josefsson.org>
22995
22996         * modules/filenamecat-tests (Depends-on): Add progname.
22997         * modules/fstrcmp-tests (Depends-on): Likewise.
22998
22999         * tests/test-filenamecat.c: Use progname module, to avoid link
23000         errors on non-glibc systems.
23001         * tests/test-fstrcmp.c: Likewise.
23002
23003 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
23004
23005         gettimeofday: avoid warning: nested extern declaration of 'localtime'
23006         * lib/gettimeofday.c: Move extern declaration out of function.
23007
23008 2009-01-18  Bruno Haible  <bruno@clisp.org>
23009
23010         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
23011         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
23012         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
23013
23014 2009-01-18  Bruno Haible  <bruno@clisp.org>
23015
23016         * lib/strftime.c (MEMPCPY): Remove unused macro.
23017         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
23018
23019 2009-01-18  Martin Lambers  <marlam@marlam.de>
23020
23021         New module 'link'.
23022         * lib/unistd.in.h (link): New declaration.
23023         * lib/link.c: New file.
23024         * m4/link.m4: New file.
23025         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
23026         HAVE_LINK.
23027         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
23028         * modules/link: New file.
23029         * doc/posix-functions/link.texi: Mention the new module.
23030
23031 2009-01-18  Bruno Haible  <bruno@clisp.org>
23032
23033         * tests/test-avltree_list.c (main): Call set_program_name.
23034         * tests/test-avltree_oset.c (main): Likewise.
23035         * tests/test-obstack-printf.c: Include progname.h.
23036         (main): Call set_program_name.
23037         * tests/test-quotearg.c: Include progname.h.
23038         (main): Call set_program_name.
23039         * tests/test-xmemdup0.c: Include progname.h.
23040         (main): Call set_program_name.
23041
23042 2009-01-18  Bruno Haible  <bruno@clisp.org>
23043
23044         New module 'alphasort'.
23045         * lib/dirent.in.h (alphasort): New declaration.
23046         * lib/alphasort.c: New file, from glibc with modifications.
23047         * m4/alphasort.m4: New file.
23048         * modules/alphasort: New file.
23049         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
23050         HAVE_ALPHASORT.
23051         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
23052         HAVE_ALPHASORT.
23053         * doc/posix-functions/alphasort.texi: Mention the new module and the
23054         portability problems.
23055
23056 2009-01-18  Bruno Haible  <bruno@clisp.org>
23057
23058         New module 'scandir'.
23059         * lib/dirent.in.h (scandir): New declaration.
23060         * lib/scandir.c: New file, from glibc with modifications.
23061         * m4/scandir.m4: New file.
23062         * modules/scandir: New file.
23063         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
23064         HAVE_SCANDIR.
23065         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
23066         HAVE_SCANDIR.
23067         * doc/posix-functions/scandir.texi: Mention the new module and the
23068         portability problems.
23069
23070 2009-01-17  Bruno Haible  <bruno@clisp.org>
23071
23072         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
23073         Update documentation.
23074         (func_remove_suffix): Escape all dots in the suffix. Update
23075         documentation.
23076         (func_filter_filelist): Update documentation.
23077         Reported by Ralf Wildenhues.
23078
23079 2009-01-17  Bruno Haible  <bruno@clisp.org>
23080
23081         * modules/dprintf-posix-tests: New file.
23082         * tests/test-dprintf-posix.sh: New file.
23083         * tests/test-dprintf-posix.c: New file.
23084
23085         New modules 'dprintf', 'dprintf-posix'.
23086         * lib/stdio.in.h (dprintf): New declaration.
23087         * lib/dprintf.c: New file.
23088         * m4/dprintf.m4: New file.
23089         * m4/dprintf-posix.m4: New file.
23090         * modules/dprintf: New file.
23091         * modules/dprintf-posix: New file.
23092         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
23093         HAVE_DPRINTF, REPLACE_DPRINTF.
23094         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
23095         HAVE_DPRINTF, REPLACE_DPRINTF.
23096         * doc/posix-functions/dprintf.texi: Mention the new modules.
23097
23098 2009-01-17  Bruno Haible  <bruno@clisp.org>
23099
23100         * modules/vdprintf-posix-tests: New file.
23101         * tests/test-vdprintf-posix.sh: New file.
23102         * tests/test-vdprintf-posix.c: New file.
23103
23104         New modules 'vdprintf', 'vdprintf-posix'.
23105         * lib/stdio.in.h (vdprintf): New declaration.
23106         * lib/vdprintf.c: New file.
23107         * m4/vdprintf.m4: New file.
23108         * m4/vdprintf-posix.m4: New file.
23109         * modules/vdprintf: New file.
23110         * modules/vdprintf-posix: New file.
23111         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
23112         HAVE_VDPRINTF, REPLACE_VDPRINTF.
23113         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
23114         HAVE_VDPRINTF, REPLACE_VDPRINTF.
23115         * doc/posix-functions/vdprintf.texi: Mention the new modules.
23116
23117 2009-01-17  Bruno Haible  <bruno@clisp.org>
23118
23119         Fix replacement of fopen on mingw.
23120         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
23121         mingw.
23122
23123 2009-01-17  Bruno Haible  <bruno@clisp.org>
23124
23125         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
23126         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
23127
23128 2009-01-17  Bruno Haible  <bruno@clisp.org>
23129
23130         Avoid test-fflush2.sh failure on mingw.
23131         * tests/test-fflush2.c: Include binary-io.h.
23132         (main): Put standard input into binary mode.
23133         * modules/fflush-tests (Depends-on): Add binary-io.
23134
23135 2009-01-17  Bruno Haible  <bruno@clisp.org>
23136
23137         * lib/wchar.in.h: In another particular situation, include only the
23138         system's <wchar.h> file.
23139         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
23140         Reported by Albert Chin-A-Young <china@thewrittenword.com>
23141         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
23142
23143 2009-01-17  Bruno Haible  <bruno@clisp.org>
23144
23145         Support for stripping executables in --enable-relocatable.
23146         * build-aux/install-reloc: Expect one more argument, or an environment
23147         variable RELOC_STRIP_PROG. If set, strip the destination program and
23148         its wrapper.
23149         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
23150         RELOC_STRIP_PROG.
23151         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
23152         to set RELOCATABLE_STRIP.
23153         * NEWS: Mention the new Makefile requirement.
23154
23155 2009-01-17  Bruno Haible  <bruno@clisp.org>
23156
23157         * build-aux/install-reloc: Remove debugging information left over by
23158         C compiler on MacOS X.
23159
23160 2009-01-17  Bruno Haible  <bruno@clisp.org>
23161
23162         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
23163         * lib/progreloc.c (find_executable): Fix type of pointer passed to
23164         _NSGetExecutablePath.
23165
23166 2009-01-16  Jim Meyering  <meyering@redhat.com>
23167
23168         strerror: avoid warnings about discarding "const"
23169         * lib/strerror.c (rpl_strerror): Instead of returning a const
23170         string from each and every "case", use a variable, and add a single
23171         cast after the switch.
23172
23173 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
23174
23175         * lib/arpa_inet.in.h: Add extern "C" block for C++.
23176
23177 2009-01-16  Bruno Haible  <bruno@clisp.org>
23178
23179         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
23180         array initializer syntax that also works in C++ mode.
23181         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23182
23183 2009-01-16  Jim Meyering  <meyering@redhat.com>
23184
23185         poll: suppress a warning
23186         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
23187         to ignore "...unsigned expression < 0 is always false" warnings.
23188
23189 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
23190
23191         poll: remove declarations of unused variables
23192         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
23193         sockbuf and optlen.
23194
23195 2009-01-15  Bruno Haible  <bruno@clisp.org>
23196
23197         Make fflush-after-ungetc POSIX compliant on BSD systems.
23198         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
23199         (clear_ungetc_buffer): Implement also for other systems.
23200         (rpl_fflush): On glibc systems, invoke
23201         clear_ungetc_buffer_preserving_position. Otherwise, invoke
23202         clear_ungetc_buffer after fetching the stream's position, not before.
23203
23204 2009-01-15  Bruno Haible  <bruno@clisp.org>
23205
23206         Make fflush-after-ungetc POSIX compliant on glibc systems.
23207         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
23208         after ungetc.
23209         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
23210         (rpl_fflush): On glibc systems, simply call the system's fflush
23211         function after clearing the ungetc buffer.
23212         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
23213         Instead, lseek only to the end of file, then use the system's fseeko
23214         for the rest. On glibc systems, reset the EOF indicator bit.
23215
23216 2009-01-15  Jim Meyering  <meyering@redhat.com>
23217
23218         openmp.m4: revert quote-adding change, for portability to older autoconf
23219         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
23220         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
23221         Simon Josefsson noticed the problem when using autoconf-2.61.
23222
23223 2009-01-15  Bruno Haible  <bruno@clisp.org>
23224
23225         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
23226         * tests/test-fflush2.c (ASSERT): Always fail.
23227         (main): Add two tests for fflush() after ungetc(), taking into account
23228         the Austin Group's clarification.
23229         Suggested by Eric Blake.
23230
23231 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
23232
23233         mktime.m4: remove K&R-style function prototypes
23234         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
23235         for the Sun C++ compiler.
23236
23237 2009-01-14  Bruno Haible  <bruno@clisp.org>
23238
23239         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
23240         while including <wchar.h>.
23241         * lib/wchar.in.h: In two particular situations on HP-UX, include only
23242         the system's <wchar.h> file.
23243         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
23244
23245 2009-01-14  Bruno Haible  <bruno@clisp.org>
23246
23247         * m4/csharp.m4: Don't mention gettext on the serial number line.
23248         * m4/csharpexec.m4: Likewise.
23249         * m4/eaccess.m4: Likewise.
23250         * m4/javaexec.m4: Likewise.
23251         * m4/sig_atomic_t.m4: Likewise.
23252         * m4/tmpdir.m4: Likewise.
23253         * m4/intldir.m4: Bump gettext version.
23254         * m4/lib-ld.m4: Likewise.
23255
23256 2009-01-14  Bruno Haible  <bruno@clisp.org>
23257
23258         * lib/progname.c (set_program_name): Add more comments.
23259         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
23260
23261 2009-01-14  Simon Josefsson  <simon@josefsson.org>
23262
23263         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
23264         were sys/stat.h does not define it.
23265
23266 2009-01-14  Jim Meyering  <meyering@redhat.com>
23267
23268         many *.m4 files: improve m4 quoting
23269         99% of this change was performed by running the following commands:
23270         git ls-files | grep '\.m4$' | xargs perl -pi \
23271           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
23272           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
23273           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
23274           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
23275         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
23276         The remainder were to add Copyright dates, increment serial numbers,
23277         undo some changes in comments, exclude m4/intl.m4, and add quotes
23278         around the "1" in ",1" where the unusual spacing prohibited the
23279         above regexps from doing the job.  For more details, see
23280         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
23281         * m4/acl.m4: Modified.
23282         * m4/afs.m4: Likewise.
23283         * m4/alloca.m4: Likewise.
23284         * m4/argp.m4: Likewise.
23285         * m4/argz.m4: Likewise.
23286         * m4/atexit.m4: Likewise.
23287         * m4/bison-i18n.m4: Likewise.
23288         * m4/bison.m4: Likewise.
23289         * m4/byteswap.m4: Likewise.
23290         * m4/c-stack.m4: Likewise.
23291         * m4/c-strtod.m4: Likewise.
23292         * m4/calloc.m4: Likewise.
23293         * m4/canonicalize-lgpl.m4: Likewise.
23294         * m4/chown.m4: Likewise.
23295         * m4/clock_time.m4: Likewise.
23296         * m4/codeset.m4: Likewise.
23297         * m4/copy-file.m4: Likewise.
23298         * m4/csharp.m4: Likewise.
23299         * m4/csharpcomp.m4: Likewise.
23300         * m4/csharpexec.m4: Likewise.
23301         * m4/d-ino.m4: Likewise.
23302         * m4/d-type.m4: Likewise.
23303         * m4/dirfd.m4: Likewise.
23304         * m4/double-slash-root.m4: Likewise.
23305         * m4/eaccess.m4: Likewise.
23306         * m4/eealloc.m4: Likewise.
23307         * m4/environ.m4: Likewise.
23308         * m4/errno_h.m4: Likewise.
23309         * m4/euidaccess.m4: Likewise.
23310         * m4/execute.m4: Likewise.
23311         * m4/fatal-signal.m4: Likewise.
23312         * m4/fchdir.m4: Likewise.
23313         * m4/fcntl_h.m4: Likewise.
23314         * m4/fileblocks.m4: Likewise.
23315         * m4/filenamecat.m4: Likewise.
23316         * m4/findprog.m4: Likewise.
23317         * m4/flexmember.m4: Likewise.
23318         * m4/fnmatch.m4: Likewise.
23319         * m4/fopen.m4: Likewise.
23320         * m4/fpending.m4: Likewise.
23321         * m4/fprintf-posix.m4: Likewise.
23322         * m4/free.m4: Likewise.
23323         * m4/frexp.m4: Likewise.
23324         * m4/frexpl.m4: Likewise.
23325         * m4/fsusage.m4: Likewise.
23326         * m4/ftruncate.m4: Likewise.
23327         * m4/gc-camellia.m4: Likewise.
23328         * m4/gc-random.m4: Likewise.
23329         * m4/gc.m4: Likewise.
23330         * m4/getaddrinfo.m4: Likewise.
23331         * m4/getcwd-abort-bug.m4: Likewise.
23332         * m4/getcwd-path-max.m4: Likewise.
23333         * m4/getdate.m4: Likewise.
23334         * m4/getdomainname.m4: Likewise.
23335         * m4/getgroups.m4: Likewise.
23336         * m4/gethostname.m4: Likewise.
23337         * m4/gethrxtime.m4: Likewise.
23338         * m4/getline.m4: Likewise.
23339         * m4/getloadavg.m4: Likewise.
23340         * m4/getndelim2.m4: Likewise.
23341         * m4/getpass.m4: Likewise.
23342         * m4/gettext.m4: Likewise.
23343         * m4/gettime.m4: Likewise.
23344         * m4/gettimeofday.m4: Likewise.
23345         * m4/gnulib-common.m4: Likewise.
23346         * m4/group-member.m4: Likewise.
23347         * m4/host-os.m4: Likewise.
23348         * m4/iconv.m4: Likewise.
23349         * m4/iconv_open.m4: Likewise.
23350         * m4/inet_ntop.m4: Likewise.
23351         * m4/inet_pton.m4: Likewise.
23352         * m4/inline.m4: Likewise.
23353         * m4/intldir.m4: Likewise.
23354         * m4/intlmacosx.m4: Likewise.
23355         * m4/intmax.m4: Likewise.
23356         * m4/intmax_t.m4: Likewise.
23357         * m4/inttypes.m4: Likewise.
23358         * m4/inttypes_h.m4: Likewise.
23359         * m4/inttypes-pri.m4: Likewise.
23360         * m4/isapipe.m4: Likewise.
23361         * m4/isnand.m4: Likewise.
23362         * m4/isnanf.m4: Likewise.
23363         * m4/isnanl.m4: Likewise.
23364         * m4/javacomp.m4: Likewise.
23365         * m4/javaexec.m4: Likewise.
23366         * m4/jm-winsz1.m4: Likewise.
23367         * m4/jm-winsz2.m4: Likewise.
23368         * m4/lchown.m4: Likewise.
23369         * m4/lcmessage.m4: Likewise.
23370         * m4/ldexpl.m4: Likewise.
23371         * m4/lib-ld.m4: Likewise.
23372         * m4/lib-link.m4: Likewise.
23373         * m4/libsigsegv.m4: Likewise.
23374         * m4/link-follow.m4: Likewise.
23375         * m4/localcharset.m4: Likewise.
23376         * m4/locale-fr.m4: Likewise.
23377         * m4/locale-ja.m4: Likewise.
23378         * m4/locale-tr.m4: Likewise.
23379         * m4/locale-zh.m4: Likewise.
23380         * m4/lock.m4: Likewise.
23381         * m4/longlong.m4: Likewise.
23382         * m4/ls-mntd-fs.m4: Likewise.
23383         * m4/lstat.m4: Likewise.
23384         * m4/malloc.m4: Likewise.
23385         * m4/mathl.m4: Likewise.
23386         * m4/mbrtowc.m4: Likewise.
23387         * m4/mbstate_t.m4: Likewise.
23388         * m4/mbswidth.m4: Likewise.
23389         * m4/memchr.m4: Likewise.
23390         * m4/memcmp.m4: Likewise.
23391         * m4/memcpy.m4: Likewise.
23392         * m4/memmem.m4: Likewise.
23393         * m4/memmove.m4: Likewise.
23394         * m4/mempcpy.m4: Likewise.
23395         * m4/memrchr.m4: Likewise.
23396         * m4/memset.m4: Likewise.
23397         * m4/minmax.m4: Likewise.
23398         * m4/mkdir-slash.m4: Likewise.
23399         * m4/mkdtemp.m4: Likewise.
23400         * m4/mktime.m4: Likewise.
23401         * m4/mmap-anon.m4: Likewise.
23402         * m4/mountlist.m4: Likewise.
23403         * m4/nanosleep.m4: Likewise.
23404         * m4/nls.m4: Likewise.
23405         * m4/nocrash.m4: Likewise.
23406         * m4/open.m4: Likewise.
23407         * m4/openat.m4: Likewise.
23408         * m4/openmp.m4: Likewise.
23409         * m4/pathmax.m4: Likewise.
23410         * m4/perl.m4: Likewise.
23411         * m4/physmem.m4: Likewise.
23412         * m4/pipe.m4: Likewise.
23413         * m4/po.m4: Likewise.
23414         * m4/poll.m4: Likewise.
23415         * m4/posixtm.m4: Likewise.
23416         * m4/posixver.m4: Likewise.
23417         * m4/printf-frexp.m4: Likewise.
23418         * m4/printf-frexpl.m4: Likewise.
23419         * m4/printf-posix.m4: Likewise.
23420         * m4/printf-posix-rpl.m4: Likewise.
23421         * m4/printf.m4: Likewise.
23422         * m4/progtest.m4: Likewise.
23423         * m4/putenv.m4: Likewise.
23424         * m4/readline.m4: Likewise.
23425         * m4/readlink.m4: Likewise.
23426         * m4/readutmp.m4: Likewise.
23427         * m4/realloc.m4: Likewise.
23428         * m4/regex.m4: Likewise.
23429         * m4/relocatable.m4: Likewise.
23430         * m4/relocatable-lib.m4: Likewise.
23431         * m4/rename-dest-slash.m4: Likewise.
23432         * m4/rename.m4: Likewise.
23433         * m4/rmdir-errno.m4: Likewise.
23434         * m4/rmdir.m4: Likewise.
23435         * m4/roundf.m4: Likewise.
23436         * m4/roundl.m4: Likewise.
23437         * m4/rpmatch.m4: Likewise.
23438         * m4/save-cwd.m4: Likewise.
23439         * m4/selinux-selinux-h.m4: Likewise.
23440         * m4/setenv.m4: Likewise.
23441         * m4/settime.m4: Likewise.
23442         * m4/sig2str.m4: Likewise.
23443         * m4/sig_atomic_t.m4: Likewise.
23444         * m4/signalblocking.m4: Likewise.
23445         * m4/signbit.m4: Likewise.
23446         * m4/sigpipe.m4: Likewise.
23447         * m4/sockets.m4: Likewise.
23448         * m4/sockpfaf.m4: Likewise.
23449         * m4/st_dm_mode.m4: Likewise.
23450         * m4/stat-time.m4: Likewise.
23451         * m4/stdbool.m4: Likewise.
23452         * m4/stdint.m4: Likewise.
23453         * m4/stdint_h.m4: Likewise.
23454         * m4/stpcpy.m4: Likewise.
23455         * m4/stpncpy.m4: Likewise.
23456         * m4/strcase.m4: Likewise.
23457         * m4/strchrnul.m4: Likewise.
23458         * m4/strcspn.m4: Likewise.
23459         * m4/strdup.m4: Likewise.
23460         * m4/strftime.m4: Likewise.
23461         * m4/strndup.m4: Likewise.
23462         * m4/strnlen.m4: Likewise.
23463         * m4/strpbrk.m4: Likewise.
23464         * m4/strptime.m4: Likewise.
23465         * m4/strsep.m4: Likewise.
23466         * m4/strtod.m4: Likewise.
23467         * m4/strtoimax.m4: Likewise.
23468         * m4/strtok_r.m4: Likewise.
23469         * m4/strtol.m4: Likewise.
23470         * m4/strtoll.m4: Likewise.
23471         * m4/strtoul.m4: Likewise.
23472         * m4/strtoull.m4: Likewise.
23473         * m4/strtoumax.m4: Likewise.
23474         * m4/strverscmp.m4: Likewise.
23475         * m4/threadlib.m4: Likewise.
23476         * m4/timegm.m4: Likewise.
23477         * m4/tm_gmtoff.m4: Likewise.
23478         * m4/tmpdir.m4: Likewise.
23479         * m4/tmpfile.m4: Likewise.
23480         * m4/tzset.m4: Likewise.
23481         * m4/uintmax_t.m4: Likewise.
23482         * m4/unlinkdir.m4: Likewise.
23483         * m4/unlocked-io.m4: Likewise.
23484         * m4/uptime.m4: Likewise.
23485         * m4/userspec.m4: Likewise.
23486         * m4/utimbuf.m4: Likewise.
23487         * m4/utime.m4: Likewise.
23488         * m4/utimes-null.m4: Likewise.
23489         * m4/utimes.m4: Likewise.
23490         * m4/vararrays.m4: Likewise.
23491         * m4/vasnprintf.m4: Likewise.
23492         * m4/vfprintf-posix.m4: Likewise.
23493         * m4/vprintf-posix.m4: Likewise.
23494         * m4/wait-process.m4: Likewise.
23495         * m4/wchar_t.m4: Likewise.
23496         * m4/wint_t.m4: Likewise.
23497         * m4/write-any-file.m4: Likewise.
23498         * m4/yield.m4: Likewise.
23499
23500 2009-01-13  Bruno Haible  <bruno@clisp.org>
23501
23502         Avoid test-copy-file.sh failures when ACL support insufficient.
23503         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
23504         TESTS_ENVIRONMENT.
23505         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
23506         Reported by Jim Meyering.
23507
23508 2009-01-13  Bruno Haible  <bruno@clisp.org>
23509
23510         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
23511         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
23512         * modules/unistdio/u8-printf-parse (Files): Likewise.
23513         * modules/unistdio/u32-printf-parse (Files): Likewise.
23514         * modules/unistdio/ulc-printf-parse (Files): Likewise.
23515
23516 2009-01-13  Simon Josefsson  <simon@josefsson.org>
23517
23518         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
23519         and m4/inttypes_h.m4 too.
23520
23521 2009-01-12  Eric Blake  <ebb9@byu.net>
23522
23523         tests: IRIX 6.2 cc can't compile -0.0 into .data
23524         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
23525         rather than at compile-time.
23526         * tests/test-floorl.c (minus_zero): Likewise.
23527         * tests/test-frexpl.c (minus_zero): Likewise.
23528         * tests/test-isnan.c (minus_zerol): Likewise.
23529         * tests/test-isnanl.h (minus_zero): Likewise.
23530         * tests/test-ldexpl.c (minus_zero): Likewise.
23531         * tests/test-roundl.c (minus_zero): Likewise.
23532         * tests/test-signbit.c (minus_zerol): Likewise.
23533         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
23534         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
23535         * tests/test-truncl.c (minus_zero): Likewise.
23536         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
23537         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
23538         Reported by Tom G. Christensen and Nelson H. F. Beebe.
23539
23540 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
23541
23542         regex: fix glibc bug 9697
23543         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
23544         handling.
23545
23546 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
23547
23548         regex: fix glibc bug 697
23549         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
23550         being NULL also if there are no backreferences.
23551
23552 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
23553
23554         regex: merge glibc changes
23555         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
23556         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
23557         re_string_skip_chars, re_string_reconstruct): Likewise.
23558         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
23559
23560 2009-01-07  Jim Meyering  <meyering@redhat.com>
23561
23562         poll: filter through cppi
23563         * lib/poll.c: Indent cpp directives to reflect nesting.
23564
23565 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
23566
23567         poll: don't return uninitialized
23568         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
23569
23570 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
23571
23572         avoid compile failure on AIX 6.1
23573         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
23574         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
23575
23576 2009-01-04  Jim Meyering  <meyering@redhat.com>
23577
23578         remove duplicate inclusion of <stdio.h>
23579         * tests/test-fprintf-posix.c: Likewise.
23580         * tests/test-printf-posix.c: Likewise.
23581         * tests/test-snprintf-posix.c: Likewise.
23582         * tests/test-sprintf-posix.c: Likewise.
23583         * tests/test-vasprintf-posix.c: Likewise.
23584         * tests/test-vfprintf-posix.c: Likewise.
23585         * tests/test-vprintf-posix.c: Likewise.
23586         * tests/test-vsnprintf-posix.c: Likewise.
23587         * tests/test-vsprintf-posix.c: Likewise.
23588
23589 2009-01-03  Jim Meyering  <meyering@redhat.com>
23590
23591         gnulib-tool: fix sed-based filtering
23592         * gnulib-tool (func_filter_filelist): Remove extra backslash
23593         in sed_fff_filter definition.
23594
23595 2009-01-02  Jim Meyering  <meyering@redhat.com>
23596
23597         strftime: avoid compilation failure on Solaris 2.6
23598         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
23599         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
23600         Don't #define mbrlen or mbsinit, since now they're guaranteed to
23601         be available.  Reported by Tom G. Christensen.  Details in
23602         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
23603
23604 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23605             Bruno Haible  <bruno@clisp.org>
23606
23607         Speed up gnulib-tool by doing more string processing through shell
23608         built-ins.
23609         * gnulib-tool (fast_func_append): New variable.
23610         (func_remove_prefix, func_remove_suffix): New functions.
23611         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
23612         (func_filter_filelist): New function.
23613         (func_get_dependencies): Use func_remove_suffix instead of sed.
23614         (func_get_automake_snippet): Use func_filter_filelist instead of a
23615         subshell and sed invocation.
23616
23617 2009-01-01  Bruno Haible  <bruno@clisp.org>
23618
23619         Fix a security bug.
23620         * gnulib-tool (func_import, import, update): Don't allow the characters
23621         '"', '$', '`', '\' in macro arguments that become part of commands that
23622         are evaluated.
23623
23624 2009-01-01  Bruno Haible  <bruno@clisp.org>
23625
23626         * gnulib-tool (func_reset_sigpipe): Add more comments.
23627
23628 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23629
23630         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
23631         func_emit_tests_Makefile_am, func_import): Abort loops early if we
23632         already know the answer.
23633
23634 2009-01-01  Jim Meyering  <meyering@redhat.com>
23635
23636         * lib/version-etc.c (version_etc_va): Update copyright year.
23637
23638 2008-12-30  Bruno Haible  <bruno@clisp.org>
23639
23640         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
23641         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
23642         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
23643
23644 2008-12-29  Eric Blake  <ebb9@byu.net>
23645
23646         multiarch: avoid autoconf AC_REQUIRE bug
23647         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
23648         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
23649         2.63 and older.
23650         Reported by Bruno Haible, and analyzed in
23651         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
23652
23653 2008-12-29  Bruno Haible  <bruno@clisp.org>
23654
23655         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
23656         files in subdirectories correctly.
23657         Reported by Ralf Wildenhues.
23658
23659 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23660
23661         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
23662         rather than 'join FILE -', for Solaris join.
23663
23664 2008-12-29  Bruno Haible  <bruno@clisp.org>
23665
23666         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
23667         quoting.
23668         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
23669         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
23670         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
23671         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
23672         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
23673         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
23674         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
23675         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
23676         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
23677         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
23678         * m4/nls.m4 (AM_NLS): Likewise.
23679         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
23680         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
23681         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
23682         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
23683         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
23684         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
23685         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
23686         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
23687         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
23688         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
23689         * m4/xsize.m4 (gl_XSIZE): Likewise.
23690         Suggested by Jim Meyering.
23691
23692 2008-11-17  Bruce Korb  <bkorb@gnu.org>
23693
23694         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
23695         * lib/parse-duration.c: use a switch instead of cascading if's.
23696
23697 2008-12-29  Eric Blake  <ebb9@byu.net>
23698
23699         wchar.h: supply WEOF on Irix 5.3
23700         * lib/wchar.in.h (wint_t): Also supply WEOF.
23701         * lib/wctype.in.h (wint_t): Likewise.
23702         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
23703         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
23704         Reported by Tom G. Christensen.
23705
23706 2008-12-26  Bruno Haible  <bruno@clisp.org>
23707
23708         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
23709         i486, i586, i686.
23710
23711 2008-12-26  Bruno Haible  <bruno@clisp.org>
23712
23713         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
23714
23715 2008-12-26  Bruno Haible  <bruno@clisp.org>
23716
23717         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
23718         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
23719         not __STDC_CONSTANT_MACROS.
23720         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
23721
23722 2008-12-25  Bruno Haible  <bruno@clisp.org>
23723
23724         Add support for universal builds to vasnprintf.
23725         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
23726         universal builds, guess no.
23727         * modules/vasnprintf-posix (Depends-on): Add multiarch.
23728         * modules/vasprintf-posix (Depends-on): Likewise.
23729         * modules/fprintf-posix (Depends-on): Likewise.
23730         * modules/vfprintf-posix (Depends-on): Likewise.
23731         * modules/snprintf-posix (Depends-on): Likewise.
23732         * modules/vsnprintf-posix (Depends-on): Likewise.
23733         * modules/sprintf-posix (Depends-on): Likewise.
23734         * modules/vsprintf-posix (Depends-on): Likewise.
23735         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
23736         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
23737         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
23738         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
23739         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
23740         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
23741         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
23742
23743         Add support for universal builds to <inttypes.h>.
23744         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
23745         _SCNu64_PREFIX): In Apple
23746         universal builds, define directly, using _LP64.
23747         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
23748         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
23749         * modules/inttypes (Depends-on): Add multiarch.
23750         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
23751
23752         Add support for universal builds to <stdint.h>.
23753         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
23754         universal builds, define directly, using _LP64.
23755         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
23756         Apple universal builds, don't test for the size and suffix of ptrdiff_t
23757         and size_t.
23758         * modules/stdint (Depends-on): Add multiarch.
23759         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
23760
23761         New module 'multiarch'.
23762         * modules/multiarch: New file.
23763         * m4/multiarch.m4: New file.
23764
23765 2008-12-25  Bruno Haible  <bruno@clisp.org>
23766
23767         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
23768
23769 2008-12-25  Bruno Haible  <bruno@clisp.org>
23770
23771         * modules/btowc (License): Relicense under LGPLv2+.
23772         * modules/mbsinit (License): Likewise.
23773         * modules/mbrtowc (License): Likewise.
23774         * modules/wcrtomb (License): Likewise.
23775         * modules/streq (License): Likewise.
23776         Reported by David Lutterkort <lutter@redhat.com>.
23777
23778 2008-12-23  Bruno Haible  <bruno@clisp.org>
23779
23780         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
23781
23782 2008-12-23  Bruno Haible  <bruno@clisp.org>
23783
23784         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
23785         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
23786         GETADDRINFO_LIB, not in LIBS.
23787         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
23788         * modules/canon-host (Link): Likewise.
23789         * NEWS: Mention the change.
23790         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
23791         GETADDRINFO_LIB.
23792
23793 2008-12-22  Bruno Haible  <bruno@clisp.org>
23794
23795         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
23796         * doc/posix-functions/iswalpha_l.texi: Likewise.
23797         * doc/posix-functions/iswblank_l.texi: Likewise.
23798         * doc/posix-functions/iswcntrl_l.texi: Likewise.
23799         * doc/posix-functions/iswctype_l.texi: Likewise.
23800         * doc/posix-functions/iswdigit_l.texi: Likewise.
23801         * doc/posix-functions/iswgraph_l.texi: Likewise.
23802         * doc/posix-functions/iswlower_l.texi: Likewise.
23803         * doc/posix-functions/iswprint_l.texi: Likewise.
23804         * doc/posix-functions/iswpunct_l.texi: Likewise.
23805         * doc/posix-functions/iswspace_l.texi: Likewise.
23806         * doc/posix-functions/iswupper_l.texi: Likewise.
23807         * doc/posix-functions/iswxdigit_l.texi: Likewise.
23808         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
23809         * doc/posix-functions/open_wmemstream.texi: Likewise.
23810         * doc/posix-functions/swscanf.texi: Likewise.
23811         * doc/posix-functions/towctrans_l.texi: Likewise.
23812         * doc/posix-functions/towlower.texi: Likewise.
23813         * doc/posix-functions/towlower_l.texi: Likewise.
23814         * doc/posix-functions/towupper.texi: Likewise.
23815         * doc/posix-functions/towupper_l.texi: Likewise.
23816         * doc/posix-functions/vfwprintf.texi: Likewise.
23817         * doc/posix-functions/vfwscanf.texi: Likewise.
23818         * doc/posix-functions/vswscanf.texi: Likewise.
23819         * doc/posix-functions/vwprintf.texi: Likewise.
23820         * doc/posix-functions/vwscanf.texi: Likewise.
23821         * doc/posix-functions/wcpcpy.texi: Likewise.
23822         * doc/posix-functions/wcpncpy.texi: Likewise.
23823         * doc/posix-functions/wcscasecmp.texi: Likewise.
23824         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
23825         * doc/posix-functions/wcscoll_l.texi: Likewise.
23826         * doc/posix-functions/wcsdup.texi: Likewise.
23827         * doc/posix-functions/wcsncasecmp.texi: Likewise.
23828         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
23829         * doc/posix-functions/wcsnlen.texi: Likewise.
23830         * doc/posix-functions/wcsnrtombs.texi: Likewise.
23831         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
23832         * doc/posix-functions/wctrans_l.texi: Likewise.
23833         * doc/posix-functions/wctype_l.texi: Likewise.
23834         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
23835         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
23836         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
23837         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
23838         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
23839         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
23840         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
23841         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
23842         * doc/glibc-functions/wcschrnul.texi: Likewise.
23843         * doc/glibc-functions/wcsftime_l.texi: Likewise.
23844         * doc/glibc-functions/wcstod_l.texi: Likewise.
23845         * doc/glibc-functions/wcstof_l.texi: Likewise.
23846         * doc/glibc-functions/wcstol_l.texi: Likewise.
23847         * doc/glibc-functions/wcstold_l.texi: Likewise.
23848         * doc/glibc-functions/wcstoll_l.texi: Likewise.
23849         * doc/glibc-functions/wcstoq.texi: Likewise.
23850         * doc/glibc-functions/wcstoul_l.texi: Likewise.
23851         * doc/glibc-functions/wcstoull_l.texi: Likewise.
23852         * doc/glibc-functions/wcstouq.texi: Likewise.
23853         * doc/glibc-functions/wmempcpy.texi: Likewise.
23854
23855 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
23856             Eric Blake  <ebb9@byu.net>
23857             Paolo Bonzini  <bonzini@gnu.org>
23858             Bruno Haible  <bruno@clisp.org>
23859
23860         Make c-stack work on Haiku.
23861         * lib/c-stack.c (SA_ONSTACK): Define fallback.
23862         (c_stack_action): Use SA_ONSTACK flag.
23863
23864 2008-12-22  Bruno Haible  <bruno@clisp.org>
23865
23866         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
23867
23868 2008-12-22  Bruno Haible  <bruno@clisp.org>
23869
23870         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
23871         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
23872         being overridden.
23873         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
23874         New macros.
23875         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
23876         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
23877         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
23878         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
23879
23880 2008-12-22  Bruno Haible  <bruno@clisp.org>
23881
23882         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
23883         from test code.
23884
23885 2008-12-22  Eric Blake  <ebb9@byu.net>
23886
23887         Avoid gcc warnings on cygwin.
23888         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
23889         Avoid unused variable.
23890         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
23891         Likewise.
23892
23893 2008-12-22  Bruno Haible  <bruno@clisp.org>
23894
23895         Remove HAVE_MBRTOWC conditionals.
23896         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
23897         (mbscasecmp): Assume mbrtowc function.
23898         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
23899         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
23900         * lib/mbschr.c: Include mbuiter.h unconditionally.
23901         (mbschr): Assume mbrtowc function.
23902         * lib/mbscspn.c: Include mbuiter.h unconditionally.
23903         (mbscspn): Assume mbrtowc function.
23904         * lib/mbslen.c: Include mbuiter.h unconditionally.
23905         (mbslen): Assume mbrtowc function.
23906         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
23907         (mbsncasecmp): Assume mbrtowc function.
23908         * lib/mbsnlen.c: Include mbiter.h unconditionally.
23909         (mbsnlen): Assume mbrtowc function.
23910         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
23911         (mbspbrk): Assume mbrtowc function.
23912         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
23913         (mbspcasecmp): Assume mbrtowc function.
23914         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
23915         (mbsrchr): Assume mbrtowc function.
23916         * lib/mbssep.c: Include mbuiter.h unconditionally.
23917         (mbssep): Assume mbrtowc function.
23918         * lib/mbsspn.c: Include mbuiter.h unconditionally.
23919         (mbsspn): Assume mbrtowc function.
23920         * lib/mbsstr.c: Include mbuiter.h unconditionally.
23921         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
23922         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
23923         (mbstok_r): Assume mbrtowc function.
23924         * lib/propername.c: Include mbuiter.h unconditionally.
23925         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
23926         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
23927         (trim2): Assume mbrtowc function.
23928         * lib/mbswidth.c (mbsinit): Remove fallback definition.
23929         (mbsnwidth): Assume mbrtowc function.
23930         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
23931         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
23932         fallback definitions.
23933         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
23934
23935 2008-12-22  Bruno Haible  <bruno@clisp.org>
23936
23937         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
23938
23939 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
23940
23941         * modules/regex: Request emulations for the mb*/wc* functions we need.
23942         * m4/regex.m4: Don't look for those functions here.
23943         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
23944
23945 2008-12-22  Bruno Haible  <bruno@clisp.org>
23946
23947         * modules/fnmatch (Depends-on): Remove duplicated dependency.
23948
23949 2008-12-21  Bruno Haible  <bruno@clisp.org>
23950
23951         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
23952         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
23953         (Include): Remove conditionalization.
23954         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
23955         (Include): Remove conditionalization.
23956         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
23957         (Include): Remove conditionalization.
23958         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
23959         * m4/mbfile.m4 (gl_MBFILE): Likewise.
23960         * NEWS: Mention the change.
23961         Reported by Alan Hourihane <alanh@fairlite.co.uk>
23962         via Sergey Poznyakoff <gray@gnu.org.ua>.
23963
23964 2008-12-21  Bruno Haible  <bruno@clisp.org>
23965
23966         * MODULES.html.sh (Extended multibyte and wide character utilities
23967         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
23968         wcrtomb, wcsrtombs.
23969         (Support for systems lacking POSIX:2008): Add accept, bind, close,
23970         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
23971         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
23972         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
23973
23974 2008-12-21  Bruno Haible  <bruno@clisp.org>
23975
23976         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
23977
23978 2008-12-21  Bruno Haible  <bruno@clisp.org>
23979
23980         * modules/wcsnrtombs-tests: New file.
23981         * tests/test-wcsnrtombs1.sh: New file.
23982         * tests/test-wcsnrtombs2.sh: New file.
23983         * tests/test-wcsnrtombs3.sh: New file.
23984         * tests/test-wcsnrtombs4.sh: New file.
23985         * tests/test-wcsnrtombs.c: New file.
23986
23987         New module 'wcsnrtombs'.
23988         * lib/wchar.in.h (wcsnrtombs): New declaration.
23989         * lib/wcsnrtombs.c: New file.
23990         * lib/wcsrtombs-state.c: New file.
23991         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
23992         (internal_state): Remove variable.
23993         * m4/wcsnrtombs.m4: New file.
23994         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
23995         compilation units.
23996         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
23997         HAVE_WCSNRTOMBS.
23998         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
23999         HAVE_WCSNRTOMBS.
24000         * modules/wcsnrtombs: New file.
24001         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
24002         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
24003
24004 2008-12-21  Bruno Haible  <bruno@clisp.org>
24005
24006         * modules/wcsrtombs-tests: New file.
24007         * tests/test-wcsrtombs1.sh: New file.
24008         * tests/test-wcsrtombs2.sh: New file.
24009         * tests/test-wcsrtombs3.sh: New file.
24010         * tests/test-wcsrtombs4.sh: New file.
24011         * tests/test-wcsrtombs.c: New file.
24012
24013         New module 'wcsrtombs'.
24014         * lib/wchar.in.h (wcsrtombs): New declaration.
24015         * lib/wcsrtombs.c: New file.
24016         * m4/wcsrtombs.m4: New file.
24017         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
24018         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
24019         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
24020         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
24021         * modules/wcsrtombs: New file.
24022         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
24023         bugs.
24024
24025 2008-12-21  Bruno Haible  <bruno@clisp.org>
24026
24027         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
24028         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
24029         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
24030         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
24031         if not correct.
24032         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
24033         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
24034         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
24035         m4/locale-zh.m4, m4/codeset.m4.
24036         * doc/posix-functions/wcrtomb.texi: Document the bug.
24037
24038 2008-12-21  Bruno Haible  <bruno@clisp.org>
24039
24040         Work around a btowc() bug on IRIX 6.5.
24041         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
24042         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
24043         REPLACE_WTOBC if not.
24044         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
24045         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
24046         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
24047
24048 2008-12-21  Bruno Haible  <bruno@clisp.org>
24049
24050         * modules/wcrtomb-tests: New file.
24051         * tests/test-wcrtomb.sh: New file.
24052         * tests/test-wcrtomb.c: New file.
24053
24054         New module 'wcrtomb'.
24055         * lib/wchar.in.h (wcrtomb): New declaration.
24056         * lib/wcrtomb.c: New file.
24057         * m4/wcrtomb.m4: New file.
24058         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
24059         HAVE_WCRTOMB.
24060         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
24061         HAVE_WCRTOMB.
24062         * modules/wcrtomb: New file.
24063         * doc/posix-functions/wcrtomb.texi: Mention the new module.
24064
24065 2008-12-21  Bruno Haible  <bruno@clisp.org>
24066
24067         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
24068         * modules/mbsrtowcs (Files): Likewise.
24069         * modules/wctob (Files): Likewise.
24070         * modules/c-strcase-tests (Files): Likewise.
24071         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
24072         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
24073         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
24074         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
24075         * modules/vasnprintf-posix-tests (Files): Likewise.
24076
24077 2008-12-21  William Pursell  <bill.pursell@gmail.com>
24078
24079         gitlog-to-changelog: pass all command-line arguments to git-log
24080         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
24081         it is sometimes convenient to filter the commits in various ways.
24082         gitlog-to-changelog only allows --since to specify a start date,
24083         but git-log itself supports many other filtering mechanisms.
24084         At the moment, I want to filter by branch name.  Rather than
24085         adding a --branch option to gitlog-to-changelog, it seems more
24086         flexible to simply pass all options directly to git-log and let
24087         git do the work.  Notice that this effectively makes --since a
24088         redundant option for gitlog-to-changelog, but removing it would
24089         require current usage to change since calls would then require
24090         an additional '--'.
24091
24092 2008-12-21  Bruno Haible  <bruno@clisp.org>
24093
24094         * modules/mbsnrtowcs-tests: New file.
24095         * tests/test-mbsnrtowcs1.sh: New file.
24096         * tests/test-mbsnrtowcs2.sh: New file.
24097         * tests/test-mbsnrtowcs3.sh: New file.
24098         * tests/test-mbsnrtowcs4.sh: New file.
24099         * tests/test-mbsnrtowcs.c: New file.
24100
24101         New module 'mbsnrtowcs'.
24102         * lib/wchar.in.h (mbsnrtowcs): New declaration.
24103         * lib/mbsnrtowcs.c: New file.
24104         * lib/mbsrtowcs-state.c: New file.
24105         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
24106         (internal_state): Remove variable.
24107         * m4/mbsnrtowcs.m4: New file.
24108         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
24109         compilation units.
24110         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
24111         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
24112         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
24113         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
24114         * modules/mbsnrtowcs: New file.
24115         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
24116         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
24117         portability problem.
24118
24119 2008-12-21  Bruno Haible  <bruno@clisp.org>
24120
24121         Work around mbsrtowcs bug.
24122         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
24123         (gl_FUNC_MBSRTOWCS): Invoke it.
24124         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
24125         m4/locale-zh.m4.
24126         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
24127
24128 2008-12-21  Bruno Haible  <bruno@clisp.org>
24129
24130         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
24131
24132 2008-12-21  Bruno Haible  <bruno@clisp.org>
24133
24134         Update doc for AIX.
24135         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
24136         16-bit wchar_t type.
24137         * doc/posix-functions/btowc.texi: Likewise.
24138         * doc/posix-functions/fgetwc.texi: Likewise.
24139         * doc/posix-functions/fgetws.texi: Likewise.
24140         * doc/posix-functions/fputwc.texi: Likewise.
24141         * doc/posix-functions/fputws.texi: Likewise.
24142         * doc/posix-functions/fwide.texi: Likewise.
24143         * doc/posix-functions/fwprintf.texi: Likewise.
24144         * doc/posix-functions/fwscanf.texi: Likewise.
24145         * doc/posix-functions/getwchar.texi: Likewise.
24146         * doc/posix-functions/getwc.texi: Likewise.
24147         * doc/posix-functions/iswalnum.texi: Likewise.
24148         * doc/posix-functions/iswalpha.texi: Likewise.
24149         * doc/posix-functions/iswblank.texi: Likewise.
24150         * doc/posix-functions/iswcntrl.texi: Likewise.
24151         * doc/posix-functions/iswctype.texi: Likewise.
24152         * doc/posix-functions/iswdigit.texi: Likewise.
24153         * doc/posix-functions/iswgraph.texi: Likewise.
24154         * doc/posix-functions/iswlower.texi: Likewise.
24155         * doc/posix-functions/iswprint.texi: Likewise.
24156         * doc/posix-functions/iswpunct.texi: Likewise.
24157         * doc/posix-functions/iswspace.texi: Likewise.
24158         * doc/posix-functions/iswupper.texi: Likewise.
24159         * doc/posix-functions/iswxdigit.texi: Likewise.
24160         * doc/posix-functions/mbrtowc.texi: Likewise.
24161         * doc/posix-functions/mbsrtowcs.texi: Likewise.
24162         * doc/posix-functions/mbstowcs.texi: Likewise.
24163         * doc/posix-functions/mbtowc.texi: Likewise.
24164         * doc/posix-functions/putwchar.texi: Likewise.
24165         * doc/posix-functions/putwc.texi: Likewise.
24166         * doc/posix-functions/swprintf.texi: Likewise.
24167         * doc/posix-functions/tolower.texi: Likewise.
24168         * doc/posix-functions/toupper.texi: Likewise.
24169         * doc/posix-functions/towctrans.texi: Likewise.
24170         * doc/posix-functions/ungetwc.texi: Likewise.
24171         * doc/posix-functions/vswprintf.texi: Likewise.
24172         * doc/posix-functions/wcrtomb.texi: Likewise.
24173         * doc/posix-functions/wcscat.texi: Likewise.
24174         * doc/posix-functions/wcschr.texi: Likewise.
24175         * doc/posix-functions/wcscmp.texi: Likewise.
24176         * doc/posix-functions/wcscoll.texi: Likewise.
24177         * doc/posix-functions/wcscpy.texi: Likewise.
24178         * doc/posix-functions/wcscspn.texi: Likewise.
24179         * doc/posix-functions/wcsftime.texi: Likewise.
24180         * doc/posix-functions/wcslen.texi: Likewise.
24181         * doc/posix-functions/wcsncat.texi: Likewise.
24182         * doc/posix-functions/wcsncmp.texi: Likewise.
24183         * doc/posix-functions/wcsncpy.texi: Likewise.
24184         * doc/posix-functions/wcspbrk.texi: Likewise.
24185         * doc/posix-functions/wcsrchr.texi: Likewise.
24186         * doc/posix-functions/wcsrtombs.texi: Likewise.
24187         * doc/posix-functions/wcsspn.texi: Likewise.
24188         * doc/posix-functions/wcsstr.texi: Likewise.
24189         * doc/posix-functions/wcstod.texi: Likewise.
24190         * doc/posix-functions/wcstof.texi: Likewise.
24191         * doc/posix-functions/wcstoimax.texi: Likewise.
24192         * doc/posix-functions/wcstok.texi: Likewise.
24193         * doc/posix-functions/wcstold.texi: Likewise.
24194         * doc/posix-functions/wcstoll.texi: Likewise.
24195         * doc/posix-functions/wcstol.texi: Likewise.
24196         * doc/posix-functions/wcstombs.texi: Likewise.
24197         * doc/posix-functions/wcstoull.texi: Likewise.
24198         * doc/posix-functions/wcstoul.texi: Likewise.
24199         * doc/posix-functions/wcstoumax.texi: Likewise.
24200         * doc/posix-functions/wcswidth.texi: Likewise.
24201         * doc/posix-functions/wcsxfrm.texi: Likewise.
24202         * doc/posix-functions/wctob.texi: Likewise.
24203         * doc/posix-functions/wctomb.texi: Likewise.
24204         * doc/posix-functions/wctrans.texi: Likewise.
24205         * doc/posix-functions/wctype.texi: Likewise.
24206         * doc/posix-functions/wcwidth.texi: Likewise.
24207         * doc/posix-functions/wmemchr.texi: Likewise.
24208         * doc/posix-functions/wmemcmp.texi: Likewise.
24209         * doc/posix-functions/wmemcpy.texi: Likewise.
24210         * doc/posix-functions/wmemmove.texi: Likewise.
24211         * doc/posix-functions/wmemset.texi: Likewise.
24212         * doc/posix-functions/wprintf.texi: Likewise.
24213         * doc/posix-functions/wscanf.texi: Likewise.
24214
24215 2008-12-21  Bruno Haible  <bruno@clisp.org>
24216
24217         Update doc for HP-UX 11.11.
24218         * doc/posix-functions/btowc.texi: Clarify that the function is missing
24219         in HP-UX version 11.00, not in all versions of HP-UX 11.
24220         * doc/posix-functions/fwide.texi: Likewise.
24221         * doc/posix-functions/fwprintf.texi: Likewise.
24222         * doc/posix-functions/fwscanf.texi: Likewise.
24223         * doc/posix-functions/inet_ntop.texi: Likewise.
24224         * doc/posix-functions/inet_pton.texi: Likewise.
24225         * doc/posix-functions/mbrlen.texi: Likewise.
24226         * doc/posix-functions/mbrtowc.texi: Likewise.
24227         * doc/posix-functions/mbsinit.texi: Likewise.
24228         * doc/posix-functions/mbsrtowcs.texi: Likewise.
24229         * doc/posix-functions/swprintf.texi: Likewise.
24230         * doc/posix-functions/swscanf.texi: Likewise.
24231         * doc/posix-functions/towctrans.texi: Likewise.
24232         * doc/posix-functions/vfwprintf.texi: Likewise.
24233         * doc/posix-functions/vswprintf.texi: Likewise.
24234         * doc/posix-functions/vwprintf.texi: Likewise.
24235         * doc/posix-functions/wcrtomb.texi: Likewise.
24236         * doc/posix-functions/wcsrtombs.texi: Likewise.
24237         * doc/posix-functions/wcsstr.texi: Likewise.
24238         * doc/posix-functions/wctob.texi: Likewise.
24239         * doc/posix-functions/wctrans.texi: Likewise.
24240         * doc/posix-functions/wmemchr.texi: Likewise.
24241         * doc/posix-functions/wmemcmp.texi: Likewise.
24242         * doc/posix-functions/wmemcpy.texi: Likewise.
24243         * doc/posix-functions/wmemmove.texi: Likewise.
24244         * doc/posix-functions/wmemset.texi: Likewise.
24245         * doc/posix-functions/wprintf.texi: Likewise.
24246         * doc/posix-functions/wscanf.texi: Likewise.
24247
24248 2008-12-21  Bruno Haible  <bruno@clisp.org>
24249
24250         Work around a portability problem.
24251         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
24252         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
24253
24254 2008-12-20  Bruno Haible  <bruno@clisp.org>
24255
24256         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
24257         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
24258         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
24259         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
24260         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
24261
24262         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
24263         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
24264         set.
24265         (GNULIB_defined_mbstate_t): New macro.
24266         (mbsinit): Redefine if REPLACE_MBSINIT is set.
24267         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
24268         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
24269         reuses the system's mbrtowc function but works around the bugs.
24270         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
24271         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
24272         macros.
24273         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
24274         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
24275         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
24276         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
24277         REPLACE_MBSINIT if mbsinit needs to be overridden.
24278         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
24279         REPLACE_MBSINIT, REPLACE_MBRTOWC.
24280         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
24281         REPLACE_MBSINIT, REPLACE_MBRTOWC.
24282         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
24283         m4/locale-zh.m4.
24284         (Depends): Add mbsinit.
24285         * modules/mbsinit (Depends): Add mbrtowc.
24286         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
24287
24288 2008-12-20  Bruno Haible  <bruno@clisp.org>
24289
24290         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
24291         so that there are no conversion errors on AIX.
24292         * tests/test-mbsrtowcs.c (main): LIkewise.
24293
24294 2008-12-20  Bruno Haible  <bruno@clisp.org>
24295
24296         Work around wctob bug on Solaris <= 9.
24297         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
24298         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
24299         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
24300         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
24301         * modules/wctob (Files): Add m4/locale-fr.m4.
24302         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
24303
24304 2008-12-20  Bruno Haible  <bruno@clisp.org>
24305
24306         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
24307         /dev/null.
24308         * tests/test-select-in.sh: Likewise.
24309         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24310
24311 2008-12-20  Bruno Haible  <bruno@clisp.org>
24312
24313         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
24314         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
24315         Cygwin 1.5.x.
24316
24317 2008-12-20  Bruno Haible  <bruno@clisp.org>
24318
24319         Ensure mbstate_t is defined on HP-UX 11.11.
24320         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
24321         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
24322         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
24323         AC_USE_SYSTEM_EXTENSIONS.
24324         * modules/fnmatch (Depends-on): Add extensions.
24325         * modules/mbrlen (Depends-on): Likewise.
24326         * modules/mbrtowc (Depends-on): Likewise.
24327         * modules/mbsinit (Depends-on): Likewise.
24328         * modules/mbsrtowcs (Depends-on): Likewise.
24329         * modules/mbswidth (Depends-on): Likewise.
24330         * modules/quotearg (Depends-on): Likewise.
24331         * modules/strftime (Depends-on): Likewise.
24332
24333 2008-12-20  Bruno Haible  <bruno@clisp.org>
24334
24335         Ensure wctob is declared on IRIX 6.5.
24336         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
24337         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
24338         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
24339         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
24340         of HAVE_WCTOB.
24341         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
24342         HAVE_WCTOB.
24343         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
24344
24345 2008-12-19  Bruno Haible  <bruno@clisp.org>
24346
24347         * modules/mbsrtowcs-tests: New file.
24348         * tests/test-mbsrtowcs1.sh: New file.
24349         * tests/test-mbsrtowcs2.sh: New file.
24350         * tests/test-mbsrtowcs3.sh: New file.
24351         * tests/test-mbsrtowcs4.sh: New file.
24352         * tests/test-mbsrtowcs.c: New file.
24353
24354         New module 'mbsrtowcs'.
24355         * lib/wchar.in.h (mbsrtowcs): New declaration.
24356         * lib/mbsrtowcs.c: New file.
24357         * m4/mbsrtowcs.m4: New file.
24358         * modules/mbsrtowcs: New file.
24359         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
24360         HAVE_MBSRTOWCS.
24361         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
24362         HAVE_MBSRTOWCS.
24363         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
24364
24365 2008-12-19  Bruno Haible  <bruno@clisp.org>
24366
24367         New module 'mbrlen'.
24368         * lib/wchar.in.h (mbrlen): New declaration.
24369         * lib/mbrlen.c: New file.
24370         * m4/mbrlen.m4: New file.
24371         * modules/mbrlen: New file.
24372         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
24373         HAVE_MBRLEN.
24374         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
24375         HAVE_MBRLEN.
24376         * doc/posix-functions/mbrlen.texi: Document the new module.
24377
24378 2008-12-19  Bruno Haible  <bruno@clisp.org>
24379
24380         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
24381         * modules/mbrtowc (Depends-on): Add verify.
24382         Suggested by Paul Eggert.
24383
24384 2008-12-18  Bruno Haible  <bruno@clisp.org>
24385
24386         * modules/mbsinit-tests: New file.
24387         * tests/test-mbsinit.sh: New file.
24388         * tests/test-mbsinit.c: New file.
24389
24390 2008-12-18  Bruno Haible  <bruno@clisp.org>
24391
24392         * modules/mbrtowc-tests: New file.
24393         * tests/test-mbrtowc1.sh: New file.
24394         * tests/test-mbrtowc2.sh: New file.
24395         * tests/test-mbrtowc3.sh: New file.
24396         * tests/test-mbrtowc4.sh: New file.
24397         * tests/test-mbrtowc.c: New file.
24398
24399         New module 'mbrtowc'.
24400         * lib/wchar.in.h (mbstate_t): Override when the system does not have
24401         mbsinit and mbrtowc.
24402         (mbrtowc): New declaration.
24403         * lib/mbrtowc.c: New file.
24404         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
24405         * modules/mbrtowc: New file.
24406         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
24407         HAVE_MBRTOWC.
24408         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
24409         HAVE_MBRTOWC.
24410         * doc/posix-functions/mbrtowc.texi: Document the new module.
24411
24412 2008-12-18  Bruno Haible  <bruno@clisp.org>
24413
24414         New module 'wctob'.
24415         * lib/wchar.in.h (wctob): New declaration.
24416         * lib/wctob.c: New file.
24417         * m4/wctob.m4: New file.
24418         * modules/wctob: New file.
24419         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
24420         HAVE_WCTOB.
24421         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
24422         * doc/posix-functions/wctob.texi: Document the new module.
24423
24424 2008-12-18  Bruno Haible  <bruno@clisp.org>
24425
24426         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
24427         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
24428
24429 2008-12-18  Simon Josefsson  <simon@josefsson.org>
24430
24431         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
24432         G. Christensen" <tgc@jupiterrise.com>.
24433
24434         * lib/flock.c: Need to include errno.h.  Reported by "Tom
24435         G. Christensen" <tgc@jupiterrise.com>.
24436
24437         * lib/flock.c: Need to include string.h.  Reported by "Tom
24438         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
24439         <ebb9@byu.net>.
24440
24441 2008-12-18  Bruno Haible  <bruno@clisp.org>
24442
24443         * m4/locale-ja.m4: New file, from GNU gettext.
24444
24445 2008-12-17  Bruno Haible  <bruno@clisp.org>
24446
24447         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
24448         Suggested by Eric Blake.
24449
24450 2008-12-17  Bruno Haible  <bruno@clisp.org>
24451
24452         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
24453
24454 2008-12-17  Bruno Haible  <bruno@clisp.org>
24455
24456         * lib/mbsinit.c: Include verify.h. Verify an assumption.
24457         * modules/mbsinit (Depends-on): Add verify.
24458         Suggested by Paul Eggert.
24459
24460 2008-12-17  Bruno Haible  <bruno@clisp.org>
24461
24462         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
24463         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
24464         gl_FUNC_MBRTOWC.
24465         * m4/mbiter.m4 (gl_MBITER): LIkewise.
24466         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
24467         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
24468         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
24469         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
24470         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
24471         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
24472         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
24473         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
24474         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
24475         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
24476         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
24477         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
24478         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
24479         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
24480         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
24481         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
24482         * modules/trim (configure.ac): Likewise.
24483
24484 2008-12-17  Bruno Haible  <bruno@clisp.org>
24485
24486         * modules/btowc-tests: New file.
24487         * tests/test-btowc1.sh: New file.
24488         * tests/test-btowc2.sh: New file.
24489         * tests/test-btowc.c: New file.
24490
24491         New module 'btowc'.
24492         * lib/wchar.in.h (btowc): New declaration.
24493         * lib/btowc.c: New file.
24494         * m4/btowc.m4: New file.
24495         * modules/btowc: New file.
24496         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
24497         HAVE_BTOWC.
24498         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
24499         * doc/posix-functions/btowc.texi: Document the new module.
24500
24501 2008-12-17  Bruno Haible  <bruno@clisp.org>
24502
24503         New module 'mbsinit'.
24504         * lib/wchar.in.h (mbsinit): New declaration.
24505         * lib/mbsinit.c: New file.
24506         * m4/mbsinit.m4: New file.
24507         * modules/mbsinit: New file.
24508         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
24509         HAVE_MBSINIT.
24510         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
24511         HAVE_MBSINIT.
24512         * doc/posix-functions/mbsinit.texi: Document the new module.
24513
24514 2008-12-16  Bruno Haible  <bruno@clisp.org>
24515
24516         * lib/unistd.in.h: Add comment.
24517         * tests/test-environ.c: Don't include <stdlib.h>.
24518
24519 2008-12-16  Bruno Haible  <bruno@clisp.org>
24520
24521         * lib/parse-duration.h (parse_duration): Document return value
24522         convention.
24523         * lib/parse-duration.c: Include specification header first. Add
24524         comments.
24525         (_): Remove macro.
24526         (parse_year_month_day, parse_hour_minute_second): Move side effects
24527         outside of strchr call.
24528         (parse_non_iso8601): Move side effects outside of isspace call.
24529         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
24530         call.
24531
24532 2008-12-16  Bruno Haible  <bruno@clisp.org>
24533
24534         * tests/test-parse-duration.sh: Produce no output when the test
24535         succeeds.
24536
24537 2008-12-16  Bruno Haible  <bruno@clisp.org>
24538
24539         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
24540         expressions.
24541
24542 2008-12-15  Bruno Haible  <bruno@clisp.org>
24543
24544         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
24545         * doc/glibc-functions/flistxattr.texi: Likewise.
24546         * doc/glibc-functions/fopencookie.texi: Likewise.
24547         * doc/glibc-functions/fremovexattr.texi: Likewise.
24548         * doc/glibc-functions/fsetxattr.texi: Likewise.
24549         * doc/glibc-functions/getxattr.texi: Likewise.
24550         * doc/glibc-functions/lgetxattr.texi: Likewise.
24551         * doc/glibc-functions/listxattr.texi: Likewise.
24552         * doc/glibc-functions/llistxattr.texi: Likewise.
24553         * doc/glibc-functions/lremovexattr.texi: Likewise.
24554         * doc/glibc-functions/lsetxattr.texi: Likewise.
24555         * doc/glibc-functions/removexattr.texi: Likewise.
24556         * doc/glibc-functions/setxattr.texi: Likewise.
24557         * doc/posix-functions/open_memstream.texi: Likewise.
24558
24559 2008-12-15  Eric Blake  <ebb9@byu.net>
24560
24561         Update doc for cygwin 1.7.
24562         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
24563         functions.
24564         * doc/posix-functions/fchmodat.texi: Likewise.
24565         * doc/posix-functions/fchownat.texi: Likewise.
24566         * doc/posix-functions/fdopendir.texi: Likewise.
24567         * doc/posix-functions/fmemopen.texi: Likewise.
24568         * doc/posix-functions/freeaddrinfo.texi: Likewise.
24569         * doc/posix-functions/fstatat.texi: Likewise.
24570         * doc/posix-functions/futimens.texi: Likewise.
24571         * doc/posix-functions/gai_strerror.texi: Likewise.
24572         * doc/posix-functions/getaddrinfo.texi: Likewise.
24573         * doc/posix-functions/getnameinfo.texi: Likewise.
24574         * doc/posix-functions/if_freenameindex.texi: Likewise.
24575         * doc/posix-functions/if_indextoname.texi: Likewise.
24576         * doc/posix-functions/if_nameindex.texi: Likewise.
24577         * doc/posix-functions/if_nametoindex.texi: Likewise.
24578         * doc/posix-functions/insque.texi: Likewise.
24579         * doc/posix-functions/linkat.texi: Likewise.
24580         * doc/posix-functions/llrint.texi: Likewise.
24581         * doc/posix-functions/llrintf.texi: Likewise.
24582         * doc/posix-functions/llrintl.texi: Likewise.
24583         * doc/posix-functions/lockf.texi: Likewise.
24584         * doc/posix-functions/lrintl.texi: Likewise.
24585         * doc/posix-functions/mkdirat.texi: Likewise.
24586         * doc/posix-functions/mkfifoat.texi: Likewise.
24587         * doc/posix-functions/mknodat.texi: Likewise.
24588         * doc/posix-functions/mq_close.texi: Likewise.
24589         * doc/posix-functions/mq_getattr.texi: Likewise.
24590         * doc/posix-functions/mq_notify.texi: Likewise.
24591         * doc/posix-functions/mq_open.texi: Likewise.
24592         * doc/posix-functions/mq_receive.texi: Likewise.
24593         * doc/posix-functions/mq_send.texi: Likewise.
24594         * doc/posix-functions/mq_setattr.texi: Likewise.
24595         * doc/posix-functions/mq_timedreceive.texi: Likewise.
24596         * doc/posix-functions/mq_timedsend.texi: Likewise.
24597         * doc/posix-functions/mq_unlink.texi: Likewise.
24598         * doc/posix-functions/open_memstream.texi: Likewise.
24599         * doc/posix-functions/openat.texi: Likewise.
24600         * doc/posix-functions/posix_fadvise.texi: Likewise.
24601         * doc/posix-functions/posix_fallocate.texi: Likewise.
24602         * doc/posix-functions/posix_madvise.texi: Likewise.
24603         * doc/posix-functions/posix_memalign.texi: Likewise.
24604         * doc/posix-functions/posix_openpt.texi: Likewise.
24605         * doc/posix-functions/readlinkat.texi: Likewise.
24606         * doc/posix-functions/remque.texi: Likewise.
24607         * doc/posix-functions/renameat.texi: Likewise.
24608         * doc/posix-functions/rintl.texi: Likewise.
24609         * doc/posix-functions/sem_unlink.texi: Likewise.
24610         * doc/posix-functions/shm_open.texi: Likewise.
24611         * doc/posix-functions/shm_unlink.texi: Likewise.
24612         * doc/posix-functions/signgam.texi: Likewise.
24613         * doc/posix-functions/sigset.texi: Likewise.
24614         * doc/posix-functions/stpcpy.texi: Likewise.
24615         * doc/posix-functions/stpncpy.texi: Likewise.
24616         * doc/posix-functions/strerror.texi: Likewise.
24617         * doc/posix-functions/strtod.texi: Likewise.
24618         * doc/posix-functions/symlinkat.texi: Likewise.
24619         * doc/posix-functions/unlinkat.texi: Likewise.
24620         * doc/posix-functions/utimensat.texi: Likewise.
24621         * doc/glibc-functions/bindresvport.texi: Likewise.
24622         * doc/glibc-functions/dn_expand.texi: Likewise.
24623         * doc/glibc-functions/exp10.texi: Likewise.
24624         * doc/glibc-functions/exp10f.texi: Likewise.
24625         * doc/glibc-functions/fgetxattr.texi: Likewise.
24626         * doc/glibc-functions/flistxattr.texi: Likewise.
24627         * doc/glibc-functions/fopencookie.texi: Likewise.
24628         * doc/glibc-functions/freeifaddrs.texi: Likewise.
24629         * doc/glibc-functions/fremovexattr.texi: Likewise.
24630         * doc/glibc-functions/fsetxattr.texi: Likewise.
24631         * doc/glibc-functions/getifaddrs.texi: Likewise.
24632         * doc/glibc-functions/getxattr.texi: Likewise.
24633         * doc/glibc-functions/lgetxattr.texi: Likewise.
24634         * doc/glibc-functions/listxattr.texi: Likewise.
24635         * doc/glibc-functions/llistxattr.texi: Likewise.
24636         * doc/glibc-functions/lremovexattr.texi: Likewise.
24637         * doc/glibc-functions/lsetxattr.texi: Likewise.
24638         * doc/glibc-functions/pow10.texi: Likewise.
24639         * doc/glibc-functions/pow10f.texi: Likewise.
24640         * doc/glibc-functions/rcmd_af.texi: Likewise.
24641         * doc/glibc-functions/removexattr.texi: Likewise.
24642         * doc/glibc-functions/res_init.texi: Likewise.
24643         * doc/glibc-functions/res_mkquery.texi: Likewise.
24644         * doc/glibc-functions/res_query.texi: Likewise.
24645         * doc/glibc-functions/res_querydomain.texi: Likewise.
24646         * doc/glibc-functions/res_send.texi: Likewise.
24647         * doc/glibc-functions/rresvport_af.texi: Likewise.
24648         * doc/glibc-functions/setxattr.texi: Likewise.
24649         * doc/glibc-functions/strcasestr.texi: Likewise.
24650
24651 2008-12-15  Bruno Haible  <bruno@clisp.org>
24652
24653         Fix compilation error on OSF/1 4.0.
24654         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
24655         <sys/time.h>, simply delegate to the system header.
24656         Reported by Daniel Richard G. <oss@teragram.com>.
24657
24658 2008-12-15  Bruno Haible  <bruno@clisp.org>
24659
24660         * doc/posix-functions/openat.texi: Mention the 'openat' module.
24661         * doc/posix-functions/fchmodat.texi: Likewise.
24662         * doc/posix-functions/fchownat.texi: Likewise.
24663         * doc/posix-functions/fdopendir.texi: Likewise.
24664         * doc/posix-functions/fstatat.texi: Likewise.
24665         * doc/posix-functions/mkdirat.texi: Likewise.
24666         * doc/posix-functions/unlinkat.texi: Likewise.
24667
24668 2008-12-14  Bruno Haible  <bruno@clisp.org>
24669
24670         Update doc for POSIX:2008.
24671         * doc/posix-functions/faccessat.texi: New file.
24672         * doc/posix-functions/fchmodat.texi: New file.
24673         * doc/posix-functions/fchownat.texi: New file.
24674         * doc/posix-functions/fdopendir.texi: New file.
24675         * doc/posix-functions/fstatat.texi: New file.
24676         * doc/posix-functions/futimens.texi: New file.
24677         * doc/posix-functions/linkat.texi: New file.
24678         * doc/posix-functions/mkdirat.texi: New file.
24679         * doc/posix-functions/mkfifoat.texi: New file.
24680         * doc/posix-functions/mknodat.texi: New file.
24681         * doc/posix-functions/open_wmemstream.texi: New file.
24682         * doc/posix-functions/openat.texi: New file.
24683         * doc/posix-functions/psiginfo.texi: New file.
24684         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
24685         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
24686         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
24687         * doc/posix-functions/readlinkat.texi: New file.
24688         * doc/posix-functions/renameat.texi: New file.
24689         * doc/posix-functions/strerror_l.texi: New file.
24690         * doc/posix-functions/symlinkat.texi: New file.
24691         * doc/posix-functions/unlinkat.texi: New file.
24692         * doc/posix-functions/utimensat.texi: New file.
24693         * doc/gnulib.texi (Function Substitutes): Add these subsections.
24694
24695 2008-12-14  Bruno Haible  <bruno@clisp.org>
24696
24697         Update doc for POSIX:2008.
24698         * doc/posix-functions/alphasort.texi: Renamed from
24699         doc/glibc-functions/alphasort.texi.
24700         * doc/posix-functions/dirfd.texi: Renamed from
24701         doc/glibc-functions/dirfd.texi.
24702         * doc/posix-functions/dprintf.texi: Renamed from
24703         doc/glibc-functions/dprintf.texi.
24704         * doc/posix-functions/duplocale.texi: Renamed from
24705         doc/glibc-functions/duplocale.texi.
24706         * doc/posix-functions/fexecve.texi: Renamed from
24707         doc/glibc-functions/fexecve.texi.
24708         * doc/posix-functions/fmemopen.texi: Renamed from
24709         doc/glibc-functions/fmemopen.texi.
24710         * doc/posix-functions/freelocale.texi: Renamed from
24711         doc/glibc-functions/freelocale.texi.
24712         * doc/posix-functions/getdate_err.texi: Renamed from
24713         doc/glibc-functions/getdate_err.texi.
24714         * doc/posix-functions/isalnum_l.texi: Renamed from
24715         doc/glibc-functions/isalnum_l.texi.
24716         * doc/posix-functions/isalpha_l.texi: Renamed from
24717         doc/glibc-functions/isalpha_l.texi.
24718         * doc/posix-functions/isblank_l.texi: Renamed from
24719         doc/glibc-functions/isblank_l.texi.
24720         * doc/posix-functions/iscntrl_l.texi: Renamed from
24721         doc/glibc-functions/iscntrl_l.texi.
24722         * doc/posix-functions/isdigit_l.texi: Renamed from
24723         doc/glibc-functions/isdigit_l.texi.
24724         * doc/posix-functions/isgraph_l.texi: Renamed from
24725         doc/glibc-functions/isgraph_l.texi.
24726         * doc/posix-functions/islower_l.texi: Renamed from
24727         doc/glibc-functions/islower_l.texi.
24728         * doc/posix-functions/isprint_l.texi: Renamed from
24729         doc/glibc-functions/isprint_l.texi.
24730         * doc/posix-functions/ispunct_l.texi: Renamed from
24731         doc/glibc-functions/ispunct_l.texi.
24732         * doc/posix-functions/isspace_l.texi: Renamed from
24733         doc/glibc-functions/isspace_l.texi.
24734         * doc/posix-functions/isupper_l.texi: Renamed from
24735         doc/glibc-functions/isupper_l.texi.
24736         * doc/posix-functions/iswalnum_l.texi: Renamed from
24737         doc/glibc-functions/iswalnum_l.texi.
24738         * doc/posix-functions/iswalpha_l.texi: Renamed from
24739         doc/glibc-functions/iswalpha_l.texi.
24740         * doc/posix-functions/iswblank_l.texi: Renamed from
24741         doc/glibc-functions/iswblank_l.texi.
24742         * doc/posix-functions/iswcntrl_l.texi: Renamed from
24743         doc/glibc-functions/iswcntrl_l.texi.
24744         * doc/posix-functions/iswctype_l.texi: Renamed from
24745         doc/glibc-functions/iswctype_l.texi.
24746         * doc/posix-functions/iswdigit_l.texi: Renamed from
24747         doc/glibc-functions/iswdigit_l.texi.
24748         * doc/posix-functions/iswgraph_l.texi: Renamed from
24749         doc/glibc-functions/iswgraph_l.texi.
24750         * doc/posix-functions/iswlower_l.texi: Renamed from
24751         doc/glibc-functions/iswlower_l.texi.
24752         * doc/posix-functions/iswprint_l.texi: Renamed from
24753         doc/glibc-functions/iswprint_l.texi.
24754         * doc/posix-functions/iswpunct_l.texi: Renamed from
24755         doc/glibc-functions/iswpunct_l.texi.
24756         * doc/posix-functions/iswspace_l.texi: Renamed from
24757         doc/glibc-functions/iswspace_l.texi.
24758         * doc/posix-functions/iswupper_l.texi: Renamed from
24759         doc/glibc-functions/iswupper_l.texi.
24760         * doc/posix-functions/iswxdigit_l.texi: Renamed from
24761         doc/glibc-functions/iswxdigit_l.texi.
24762         * doc/posix-functions/isxdigit_l.texi: Renamed from
24763         doc/glibc-functions/isxdigit_l.texi.
24764         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
24765         doc/glibc-functions/mbsnrtowcs.texi.
24766         * doc/posix-functions/mkdtemp.texi: Renamed from
24767         doc/glibc-functions/mkdtemp.texi.
24768         * doc/posix-functions/newlocale.texi: Renamed from
24769         doc/glibc-functions/newlocale.texi.
24770         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
24771         doc/glibc-functions/nl_langinfo_l.texi.
24772         * doc/posix-functions/open_memstream.texi: Renamed from
24773         doc/glibc-functions/open_memstream.texi.
24774         * doc/posix-functions/opterr.texi: Renamed from
24775         doc/glibc-functions/opterr.texi.
24776         * doc/posix-functions/optind.texi: Renamed from
24777         doc/glibc-functions/optind.texi.
24778         * doc/posix-functions/optopt.texi: Renamed from
24779         doc/glibc-functions/optopt.texi.
24780         * doc/posix-functions/psignal.texi: Renamed from
24781         doc/glibc-functions/psignal.texi.
24782         * doc/posix-functions/scandir.texi: Renamed from
24783         doc/glibc-functions/scandir.texi.
24784         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
24785         doc/glibc-functions/sched_get_priority_min.texi.
24786         * doc/posix-functions/signgam.texi: Renamed from
24787         doc/glibc-functions/signgam.texi.
24788         * doc/posix-functions/stpcpy.texi: Renamed from
24789         doc/glibc-functions/stpcpy.texi.
24790         * doc/posix-functions/stpncpy.texi: Renamed from
24791         doc/glibc-functions/stpncpy.texi.
24792         * doc/posix-functions/strcasecmp_l.texi: Renamed from
24793         doc/glibc-functions/strcasecmp_l.texi.
24794         * doc/posix-functions/strcoll_l.texi: Renamed from
24795         doc/glibc-functions/strcoll_l.texi.
24796         * doc/posix-functions/strfmon_l.texi: Renamed from
24797         doc/glibc-functions/strfmon_l.texi.
24798         * doc/posix-functions/strftime_l.texi: Renamed from
24799         doc/glibc-functions/strftime_l.texi.
24800         * doc/posix-functions/strncasecmp_l.texi: Renamed from
24801         doc/glibc-functions/strncasecmp_l.texi.
24802         * doc/posix-functions/strndup.texi: Renamed from
24803         doc/glibc-functions/strndup.texi.
24804         * doc/posix-functions/strnlen.texi: Renamed from
24805         doc/glibc-functions/strnlen.texi.
24806         * doc/posix-functions/strsignal.texi: Renamed from
24807         doc/glibc-functions/strsignal.texi.
24808         * doc/posix-functions/strxfrm_l.texi: Renamed from
24809         doc/glibc-functions/strxfrm_l.texi.
24810         * doc/posix-functions/timer_gettime.texi: Renamed from
24811         doc/glibc-functions/timer_gettime.texi.
24812         * doc/posix-functions/tolower_l.texi: Renamed from
24813         doc/glibc-functions/tolower_l.texi.
24814         * doc/posix-functions/toupper_l.texi: Renamed from
24815         doc/glibc-functions/toupper_l.texi.
24816         * doc/posix-functions/towctrans_l.texi: Renamed from
24817         doc/glibc-functions/towctrans_l.texi.
24818         * doc/posix-functions/towlower_l.texi: Renamed from
24819         doc/glibc-functions/towlower_l.texi.
24820         * doc/posix-functions/towupper_l.texi: Renamed from
24821         doc/glibc-functions/towupper_l.texi.
24822         * doc/posix-functions/uselocale.texi: Renamed from
24823         doc/glibc-functions/uselocale.texi.
24824         * doc/posix-functions/vdprintf.texi: Renamed from
24825         doc/glibc-functions/vdprintf.texi.
24826         * doc/posix-functions/wcpcpy.texi:
24827         Renamed from doc/glibc-functions/wcpcpy.texi.
24828         * doc/posix-functions/wcpncpy.texi: Renamed from
24829         doc/glibc-functions/wcpncpy.texi.
24830         * doc/posix-functions/wcscasecmp.texi: Renamed from
24831         doc/glibc-functions/wcscasecmp.texi.
24832         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
24833         doc/glibc-functions/wcscasecmp_l.texi.
24834         * doc/posix-functions/wcscoll_l.texi: Renamed from
24835         doc/glibc-functions/wcscoll_l.texi.
24836         * doc/posix-functions/wcsdup.texi: Renamed from
24837         doc/glibc-functions/wcsdup.texi.
24838         * doc/posix-functions/wcsncasecmp.texi: Renamed from
24839         doc/glibc-functions/wcsncasecmp.texi.
24840         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
24841         doc/glibc-functions/wcsncasecmp_l.texi.
24842         * doc/posix-functions/wcsnlen.texi: Renamed from
24843         doc/glibc-functions/wcsnlen.texi.
24844         * doc/posix-functions/wcsnrtombs.texi: Renamed from
24845         doc/glibc-functions/wcsnrtombs.texi.
24846         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
24847         doc/glibc-functions/wcsxfrm_l.texi.
24848         * doc/posix-functions/wctrans_l.texi: Renamed from
24849         doc/glibc-functions/wctrans_l.texi.
24850         * doc/posix-functions/wctype_l.texi: Renamed from
24851         doc/glibc-functions/wctype_l.texi.
24852         * doc/gnulib.texi (Function Substitutes): Add these subsections.
24853         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
24854         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
24855         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
24856         these subsections.
24857         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
24858         Remove sections.
24859
24860 2008-12-14  Bruno Haible  <bruno@clisp.org>
24861
24862         Update doc for POSIX:2008.
24863         * doc/posix-functions/*.texi: Update URL of POSIX specification.
24864
24865 2008-12-14  Bruno Haible  <bruno@clisp.org>
24866
24867         Update doc for POSIX:2008.
24868         * doc/pastposix-functions/bcmp.texi: Renamed from
24869         doc/posix-functions/bcmp.texi.
24870         * doc/pastposix-functions/bcopy.texi: Renamed from
24871         doc/posix-functions/bcopy.texi.
24872         * doc/pastposix-functions/bsd_signal.texi: Renamed from
24873         doc/posix-functions/bsd_signal.texi.
24874         * doc/pastposix-functions/bzero.texi: Renamed from
24875         doc/posix-functions/bzero.texi.
24876         * doc/pastposix-functions/ecvt.texi: Renamed from
24877         doc/posix-functions/ecvt.texi.
24878         * doc/pastposix-functions/fcvt.texi: Renamed from
24879         doc/posix-functions/fcvt.texi.
24880         * doc/pastposix-functions/ftime.texi: Renamed from
24881         doc/posix-functions/ftime.texi.
24882         * doc/pastposix-functions/gcvt.texi: Renamed from
24883         doc/posix-functions/gcvt.texi.
24884         * doc/pastposix-functions/getcontext.texi: Renamed from
24885         doc/posix-functions/getcontext.texi.
24886         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
24887         doc/posix-functions/gethostbyaddr.texi.
24888         * doc/pastposix-functions/gethostbyname.texi: Renamed from
24889         doc/posix-functions/gethostbyname.texi.
24890         * doc/pastposix-functions/getwd.texi: Renamed from
24891         doc/posix-functions/getwd.texi.
24892         * doc/pastposix-functions/h_errno.texi: Renamed from
24893         doc/posix-functions/h_errno.texi.
24894         * doc/pastposix-functions/index.texi: Renamed from
24895         doc/posix-functions/index.texi.
24896         * doc/pastposix-functions/makecontext.texi: Renamed from
24897         doc/posix-functions/makecontext.texi.
24898         * doc/pastposix-functions/mktemp.texi: Renamed from
24899         doc/posix-functions/mktemp.texi.
24900         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
24901         doc/posix-functions/pthread_attr_getstackaddr.texi.
24902         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
24903         doc/posix-functions/pthread_attr_setstackaddr.texi.
24904         * doc/pastposix-functions/rindex.texi: Renamed from
24905         doc/posix-functions/rindex.texi.
24906         * doc/pastposix-functions/scalb.texi: Renamed from
24907         doc/posix-functions/scalb.texi.
24908         * doc/pastposix-functions/setcontext.texi: Renamed from
24909         doc/posix-functions/setcontext.texi.
24910         * doc/pastposix-functions/swapcontext.texi: Renamed from
24911         doc/posix-functions/swapcontext.texi.
24912         * doc/pastposix-functions/ualarm.texi: Renamed from
24913         doc/posix-functions/ualarm.texi.
24914         * doc/pastposix-functions/usleep.texi: Renamed from
24915         doc/posix-functions/usleep.texi.
24916         * doc/pastposix-functions/vfork.texi: Renamed from
24917         doc/posix-functions/vfork.texi.
24918         * doc/pastposix-functions/wcswcs.texi: Renamed from
24919         doc/posix-functions/wcswcs.texi.
24920         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
24921         (Function Substitutes): Update.
24922
24923 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24924
24925         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
24926         m4/strerror.m4.
24927
24928 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24929             Bruno Haible  <bruno@clisp.org>
24930
24931         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
24932
24933 2008-12-13  Bruno Haible  <bruno@clisp.org>
24934
24935         * modules/strtoull (Depends-on): Remove unistd.
24936
24937 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24938
24939         * modules/strtoull (Depends-on): Add stdlib.
24940
24941 2008-12-11  Simon Josefsson  <simon@josefsson.org>
24942
24943         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
24944
24945 2008-12-10  Jim Meyering  <meyering@redhat.com>
24946
24947         gl_ASSERT: don't say assertions are disabled when they're not
24948         * m4/assert.m4 (gl_ASSERT): Do not make configure report
24949         "checking whether to enable assertions... no", when they are in
24950         fact enabled.  This is solely a bug in the output of configure.
24951         In spite of saying "no", NDEBUG was not defined in that case.
24952         Also, as noted by Eric Blake, leave assertions enabled upon
24953         --enable-assert=INVALID.
24954
24955 2008-12-10  Bruno Haible  <bruno@clisp.org>
24956
24957         Change MODULES.html to refer to POSIX:2008 where possible.
24958         * MODULES.html.sh (POSIX2008_URL): New variable.
24959         (posix_headers): Remove sys/timeb, ucontext.
24960         (posix2001_headers): New variable.
24961         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
24962         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
24963         index, makecontext, mktemp, pthread_attr_getstackaddr,
24964         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
24965         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
24966         (posix2001_functions): New variable.
24967         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
24968         otherwise.
24969
24970 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24971
24972         add missing include to parse-duration.c
24973         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
24974         * modules/parse-duration (Depends-on): Add xalloc.
24975
24976         fix sed script reading maint.mk
24977         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
24978         (syntax-check-rules): Use it.
24979
24980 2008-12-09  Bruno Haible  <bruno@clisp.org>
24981
24982         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
24983         MacOS X 10.4/PowerPC.
24984         Reported by Simon Josefsson.
24985
24986 2008-12-08  Jim Meyering  <meyering@redhat.com>
24987
24988         work around mingw's lack of some S_IF definitions
24989         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
24990         Reported by Simon Josefsson.
24991
24992 2008-12-08  Bruno Haible  <bruno@clisp.org>
24993
24994         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
24995         applied to variables. Needed on MacOS X 10.4/PowerPC.
24996         Reported by Simon Josefsson.
24997
24998 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
24999         and Eric Blake  <ebb9@byu.net>
25000
25001         assert: honor --enable-assert
25002         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
25003         order to honor --enable-assert, rather than treating it as a
25004         synonym for --disable-assert.
25005
25006 2008-12-08  Jim Meyering  <meyering@redhat.com>
25007
25008         * lib/posixtm.c: Remove now-useless declaration of mktime.
25009
25010         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
25011
25012 2008-12-07  Bruno Haible  <bruno@clisp.org>
25013
25014         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
25015         test_once): Mark functions as static.
25016         * tests/test-tls.c (test_tls): Likewise.
25017
25018 2008-12-07  Bruno Haible  <bruno@clisp.org>
25019
25020         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
25021         iconv_register_autodetect.
25022
25023 2008-12-07  Jim Meyering  <meyering@redhat.com>
25024
25025         posixtm.c: avoid a warning
25026         * lib/posixtm.c (posixtime): Don't initialize tm0.
25027         It's no longer needed to placate gcc4's -Wuninitialized,
25028         and the attempt to placate would elicit a new warning.
25029
25030         unicodeio.c: mark unused parameters
25031         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
25032         (fallback_failure_callback): Likewise.
25033
25034 2008-12-07  Bruno Haible  <bruno@clisp.org>
25035
25036         * gnulib-tool (func_create_testdir): When building the tests
25037         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
25038         Reported by Simon Josefsson.
25039
25040 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25041
25042         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
25043
25044 2008-12-06  Bruno Haible  <bruno@clisp.org>
25045
25046         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
25047         Suggested by Eric Blake.
25048
25049 2008-12-06  Bruno Haible  <bruno@clisp.org>
25050
25051         Fix a c-stack test failure on MacOS X.
25052         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
25053         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
25054         handler for SIGBUS as well.
25055         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
25056         install a signal handler for SIGBUS as well.
25057         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
25058
25059 2008-12-06  Bruno Haible  <bruno@clisp.org>
25060
25061         Advocacy documentation.
25062         * doc/gnulib-intro.texi (Benefits): New section.
25063         * doc/gnulib.texi: Update.
25064
25065 2008-12-06  Bruno Haible  <bruno@clisp.org>
25066
25067         Document the 'manywarnings' module.
25068         * doc/manywarnings.texi: New file.
25069         * doc/gnulib.texi: Include it.
25070
25071 2008-12-05  Eric Blake  <ebb9@byu.net>
25072
25073         tests: silence some gcc warnings
25074         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
25075         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
25076         type mismatches.
25077
25078 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25079             Bruno Haible  <bruno@clisp.org>
25080
25081         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
25082
25083 2008-11-29  Jim Meyering  <meyering@redhat.com>
25084
25085         unicodeio.c: mark unused parameters
25086         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
25087         (fallback_failure_callback): Likewise.
25088
25089         fts: fix a thinko
25090         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
25091         (set_stat_type): Return S_IF*-valued "type" directly.
25092         Prompted by James Youngman's spotting a related bug.
25093         Confirmed by further testing through find.
25094
25095         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
25096         * lib/fts.c (D_TYPE): Define.
25097         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
25098         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
25099         (s_ifmt_shift_bits): New function.
25100         (set_stat_type): New function.
25101         (fts_build): When not calling fts_stat, call set_stat_type
25102         to propagate dirent.d_type info to fts_read caller.
25103         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
25104         fts_statp->st_mode type information may be valid.
25105
25106 2008-11-28  Simon Josefsson  <simon@josefsson.org>
25107
25108         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
25109         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
25110         <sds@gnu.org>.
25111
25112 2008-11-20  Bruno Haible  <bruno@clisp.org>
25113
25114         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
25115         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
25116         INCLUDE_NEXT.
25117         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
25118         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
25119         * modules/math (Makefile.am): Substitute
25120         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
25121         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25122
25123 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
25124             Bruno Haible  <bruno@clisp.org>
25125
25126         * lib/stdint.in.h: Define all type macros so that their expansion is
25127         a single typedef'ed token. Fixes a compilation failure in Boost which
25128         does "using ::int8_t;".
25129
25130 2008-11-18  Simon Josefsson  <simon@josefsson.org>
25131
25132         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
25133         gl_MANYWARN_ALL_GCC.
25134         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
25135         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
25136         * modules/manywarnings: New file.
25137         * MODULES.html.sh: Mention manywarnings module.
25138
25139 2008-11-18  Bruno Haible  <bruno@clisp.org>
25140
25141         * doc/gnulib-tool.texi (Unit tests): New section.
25142
25143 2008-11-18  Simon Josefsson  <simon@josefsson.org>
25144
25145         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
25146         paths like 'lib/po/foo.po'.
25147
25148 2008-11-17  Simon Josefsson  <simon@josefsson.org>
25149
25150         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
25151         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
25152
25153 2008-11-17  Simon Josefsson  <simon@josefsson.org>
25154
25155         * m4/warnings.m4: Use CPPFLAGS to really check whether the
25156         parameter works.
25157
25158 2008-11-17  Simon Josefsson  <simon@josefsson.org>
25159
25160         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
25161
25162 2008-11-17  Bruce Korb  <bkorb@gnu.org>
25163
25164         * modules/parse-duration-tests: New file.
25165         * tests/test-parse-duration.sh: New file.
25166         * tests/test-parse-duration.c: New file.
25167
25168         New module 'parse-duration'.
25169         * lib/parse-duration.h: New file.
25170         * lib/parse-duration.c: New file.
25171         * modules/parse-duration: New file.
25172
25173 2008-11-17  Bruno Haible  <bruno@clisp.org>
25174
25175         * tests/test-select-out.sh: Comment out the first pipe test.
25176         Reported by Simon Josefsson.
25177
25178 2008-11-17  Bruno Haible  <bruno@clisp.org>
25179
25180         * modules/getaddrinfo (Depends-on): Add servent, hostent.
25181         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
25182         gl_HOSTENT.
25183
25184 2008-11-17  Bruno Haible  <bruno@clisp.org>
25185
25186         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
25187         -lnetwork and -lnet. Needed for Haiku and BeOS.
25188
25189 2008-11-16  Bruno Haible  <bruno@clisp.org>
25190
25191         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
25192
25193 2008-11-16  Bruno Haible  <bruno@clisp.org>
25194
25195         Avoid test failure on Haiku.
25196         * tests/test-fsync.c: Include <errno.h>.
25197         (main): Don't require that fsync (0) fails.
25198
25199 2008-11-15  Bruno Haible  <bruno@clisp.org>
25200
25201         New module 'hostent'.
25202         * modules/hostent: New file.
25203         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
25204
25205 2008-11-15  Bruno Haible  <bruno@clisp.org>
25206
25207         New module 'servent'.
25208         * modules/servent: New file.
25209         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
25210
25211 2008-11-15  Bruno Haible  <bruno@clisp.org>
25212
25213         Avoid generating same test program with two different rules.
25214         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
25215         test-frexp to test-frexp-nolibm.
25216         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
25217         test-frexpl to test-frexpl-nolibm.
25218
25219 2008-11-15  Bruno Haible  <bruno@clisp.org>
25220
25221         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
25222         $(FREXPL_LIBM).
25223
25224 2008-11-15  Bruno Haible  <bruno@clisp.org>
25225
25226         * lib/netdb.in.h: Activate the definitions also when the system's
25227         <netdb.h> has 'struct addrinfo'.
25228         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
25229         EAI_OVERFLOW or AI_NUMERICSERV.
25230         * doc/posix-headers/netdb.texi: Document the problem.
25231
25232 2008-11-15  Bruno Haible  <bruno@clisp.org>
25233
25234         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
25235
25236         Make the 'sched' module work on platforms where <sched.h> exists but
25237         is incomplete (such as Haiku).
25238         * lib/sched.in.h; Include the system's <sched.h> if it exists.
25239         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
25240         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
25241         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
25242         HAVE_STRUCT_SCHED_PARAM.
25243         * modules/sched (Depends-on): Add include_next.
25244         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
25245         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
25246         * doc/posix-headers/sched.texi: Document the issue.
25247
25248 2008-11-13  Jim Meyering  <meyering@redhat.com>
25249
25250         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
25251         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
25252         test would fail due to the difference in the Report bugs to ...
25253         line.  The expected address is empty, "<>", while the actual
25254         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
25255
25256 2008-11-12  Bruno Haible  <bruno@clisp.org>
25257
25258         lstat: don't compile lstat.c on systems lacking lstat
25259         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
25260         which don't have lstat; this is handled by lib/sys_stat.in.h already.
25261         Reported by Daniel P. Berrange via Jim Meyering.
25262
25263 2008-11-12  Jim Meyering  <meyering@redhat.com>
25264
25265         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
25266
25267 2008-11-12  Simon Josefsson  <simon@josefsson.org>
25268
25269         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
25270         instead.
25271
25272 2008-11-12  Bruno Haible  <bruno@clisp.org>
25273
25274         * lib/unicodeio.c: Include unistr.h.
25275         (utf8_wctomb): Remove function.
25276         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
25277
25278 2008-11-12  Simon Josefsson  <simon@josefsson.org>
25279
25280         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
25281         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
25282         <bruno@clisp.org>.
25283         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
25284
25285 2008-11-12  Simon Josefsson  <simon@josefsson.org>
25286
25287         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
25288         * doc/gnulib.texi: Add section for warnings.
25289
25290 2008-11-11  Bruno Haible  <bruno@clisp.org>
25291
25292         * lib/sockets.h: Add a comment.
25293
25294 2008-11-11  Karl Berry  <karl@gnu.org>
25295
25296         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
25297
25298 2008-11-11  Eric Blake  <ebb9@byu.net>
25299
25300         fdl.texi: avoid git symlinks
25301         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
25302
25303 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
25304
25305         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
25306
25307 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
25308
25309         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
25310         (gl_WARN_ADD): Substitute $2 if literal.
25311
25312 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
25313
25314         * m4/warning.m4: Remove.
25315
25316 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
25317
25318         * m4/warnings.m4: Almost complete rewrite. :-)
25319
25320 2008-11-10  Simon Josefsson  <simon@josefsson.org>
25321
25322         * modules/warnings: New module.
25323         * m4/warnings.m4: New file.
25324         * MODULES.html.sh: Mention warnings module.
25325         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
25326         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25327
25328 2008-11-10  Eric Blake  <ebb9@byu.net>
25329
25330         fdl.texi: make a symlink to the latest version
25331         * doc/standards.texi: Revert today's earlier change.
25332         * doc/fdl-1.2.texi: Rename from old fdl.texi...
25333         * doc/fdl.texi: ...and replace this with a symlink to the newer
25334         fdl-1.3.texi.
25335
25336 2008-11-10  Bruno Haible  <bruno@clisp.org>
25337
25338         * tests/test-select-fd.c (main): Accept the result file name as fourth
25339         argument.
25340         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
25341         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
25342
25343 2008-11-10  Bruno Haible  <bruno@clisp.org>
25344
25345         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
25346         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
25347         as autoconf-substituted macros.
25348         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
25349         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
25350         gl_NETDB_H_DEFAULTS. Set these variables.
25351         * modules/netdb (Makefile.am): Substitute these variables.
25352
25353 2008-11-10  Eric Blake  <ebb9@byu.net>
25354
25355         standards.texi: include correct file for FDL 1.3
25356         * doc/standards.texi (GNU Free Documentation License): Change
25357         include file to pull in FDL 1.3, not 1.2.
25358
25359         fdl.texi: revert accidental change to license
25360         * doc/fdl.texi: This is FDL 1.2, not 1.3.
25361
25362 2008-11-10  Bruno Haible  <bruno@clisp.org>
25363
25364         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
25365         cross-compiling guesses also when the native compile gives no result.
25366
25367 2008-11-10  Bruno Haible  <bruno@clisp.org>
25368
25369         * lib/spawni.c (__spawni): Force variable into the stack.
25370
25371 2008-11-10  Bruno Haible  <bruno@clisp.org>
25372
25373         Add support for Haiku.
25374         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
25375         glibc and BeOS, but also on Haiku.
25376         * lib/fpurge.c (fpurge): Likewise.
25377         * lib/freadable.c (freadable): Likewise.
25378         * lib/freadahead.c (freadahead): Likewise.
25379         * lib/freading.c (freading): Likewise.
25380         * lib/freadptr.c (freadptr): Likewise.
25381         * lib/freadseek.c (freadptrinc): Likewise.
25382         * lib/fseeko.c (rpl_fseeko): Likewise.
25383         * lib/fseterr.c (fseterr): Likewise.
25384         * lib/fwritable.c (fwritable): Likewise.
25385         * lib/fwriting.c (fwriting): Likewise.
25386         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
25387
25388 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
25389
25390         * lib/config.charset: Treat Haiku like BeOS.
25391
25392 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
25393
25394         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
25395         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
25396
25397 2008-11-08  Bruno Haible  <bruno@clisp.org>
25398
25399         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
25400         AC_CACHE_CHECK.
25401
25402 2008-11-08  Bruno Haible  <bruno@clisp.org>
25403
25404         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
25405
25406 2008-11-08  Bruno Haible  <bruno@clisp.org>
25407
25408         * tests/test-select-fd.c: New file.
25409         * tests/test-select-in.sh: New file.
25410         * tests/test-select-out.sh: New file.
25411         * tests/test-select-stdin.c: New file.
25412         * modules/select-tests (Files): Add the new files.
25413         (Depends-on): Add gettimeofday.
25414         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
25415         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
25416         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
25417
25418 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
25419             Bruno Haible  <bruno@clisp.org>
25420
25421         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
25422
25423 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
25424
25425         * build-aux/pmccabe2html: Added support for C++ source files.
25426
25427 2008-11-05  Ben Pfaff  <blp@gnu.org>
25428
25429         Fix lib/close.c build on Windows.
25430         * modules/close (Files): Add lib/w32sock.h.
25431
25432 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
25433
25434         Accept Bison's NEWS format.
25435         * build-aux/announce-gen (print_news_deltas): Tweak
25436         $re_prefix.
25437
25438 2008-11-04  Bruno Haible  <bruno@clisp.org>
25439
25440         * modules/random_r (Maintainer): Add glibc.
25441
25442 2008-11-04  Simon Josefsson  <simon@josefsson.org>
25443
25444         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
25445         by karl@freefriends.org (Karl Berry).
25446         * doc/alloca.texi: Likewise.
25447         * doc/c-ctype.texi: Likewise.
25448         * doc/c-strcase.texi: Likewise.
25449         * doc/c-strcaseeq.texi: Likewise.
25450         * doc/c-strcasestr.texi: Likewise.
25451         * doc/c-strstr.texi: Likewise.
25452         * doc/c-strtod.texi: Likewise.
25453         * doc/c-strtold.texi: Likewise.
25454         * doc/ctime.texi: Likewise.
25455         * doc/error.texi: Likewise.
25456         * doc/fdl.texi: Likewise.
25457         * doc/gcd.texi: Likewise.
25458         * doc/getdate.texi: Likewise.
25459         * doc/gnulib-intro.texi: Likewise.
25460         * doc/gnulib-tool.texi: Likewise.
25461         * doc/gnulib.texi: Likewise.
25462         * doc/inet_ntoa.texi: Likewise.
25463         * doc/maintain.texi: Likewise.
25464         * doc/make-stds.texi: Likewise.
25465         * doc/quote.texi: Likewise.
25466         * doc/regexprops-generic.texi: Likewise.
25467         * doc/standards.texi: Likewise.
25468         * doc/verify.texi: Likewise.
25469         * doc/visibility.texi: Likewise.
25470         * doc/gnulib.texi (GNU Free Documentation License): Include
25471         fdl-1.3.texi instead of fdl.texi.
25472
25473 2008-11-04  Simon Josefsson  <simon@josefsson.org>
25474
25475         * doc/fdl-1.3.texi: New file, from
25476         <http://www.gnu.org/licenses/fdl-1.3.texi>.
25477         * modules/fdl-1.3: Add.
25478         * MODULES.html.sh: Add fdl-1.3.
25479
25480 2008-11-03  Bruno Haible  <bruno@clisp.org>
25481
25482         Make determination of absolute name of header file work with AIX xlc.
25483         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
25484         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
25485         preprocessing.
25486         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
25487         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
25488
25489 2008-11-03  Simon Josefsson  <simon@josefsson.org>
25490
25491         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
25492         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
25493         <ludo@gnu.org>.
25494
25495 2008-11-02  Bruno Haible  <bruno@clisp.org>
25496
25497         Mark 'strpbrk' obsolete.
25498         * modules/strpbrk (Status, Notice): New sections.
25499         * modules/strtok_r (Depends-on): Add strpbrk.
25500
25501 2008-11-02  Bruno Haible  <bruno@clisp.org>
25502
25503         Mark 'strdup' obsolete.
25504         * modules/strdup (Status, Notice): New sections.
25505         * modules/findprog (Depends-on): Add strdup.
25506         * modules/getaddrinfo (Depends-on): Likewise.
25507         * modules/localename (Depends-on): Likewise.
25508         * modules/relocatable-lib (Depends-on): Likewise.
25509         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
25510         * modules/relocatable-prog (Depends-on): Likewise.
25511         * modules/trim (Depends-on): Likewise.
25512         * modules/unictype/gen-ctype (Depends-on): Likewise.
25513         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
25514
25515 2008-11-02  Bruno Haible  <bruno@clisp.org>
25516
25517         Mark 'strcspn' obsolete.
25518         * modules/strcspn (Status, Notice): New sections.
25519
25520 2008-11-02  Bruno Haible  <bruno@clisp.org>
25521
25522         Mark 'rmdir' obsolete.
25523         * modules/rmdir (Status, Notice): New sections.
25524         * modules/clean-temp (Depends-on): Add rmdir.
25525         * modules/openat (Depends-on): Likewise.
25526
25527 2008-11-02  Bruno Haible  <bruno@clisp.org>
25528
25529         Mark 'raise' obsolete.
25530         * modules/raise (Status, Notice): New sections.
25531         (Include): Specify <signal.h>.
25532         * modules/stdio (Depends-on): Add raise.
25533         * modules/write (Depends-on): Likewise.
25534
25535 2008-11-02  Bruno Haible  <bruno@clisp.org>
25536
25537         Mark 'memset' obsolete.
25538         * modules/memset (Status, Notice): New sections.
25539
25540 2008-11-02  Bruno Haible  <bruno@clisp.org>
25541
25542         Mark 'memmove' obsolete.
25543         * modules/memmove (Status, Notice): New sections.
25544         * modules/argp (Depends-on): Add memmove.
25545         * modules/argz (Depends-on): Likewise.
25546         * modules/canonicalize (Depends-on): Likewise.
25547         * modules/canonicalize-lgpl (Depends-on): Likewise.
25548         * modules/fts (Depends-on): Likewise.
25549         * modules/getcwd (Depends-on): Likewise.
25550         * modules/human (Depends-on): Likewise.
25551         * modules/regex (Depends-on): Likewise.
25552         * modules/striconveh (Depends-on): Likewise.
25553         * modules/trim (Depends-on): Likewise.
25554         * modules/unistr/u8-move (Depends-on): Likewise.
25555         * modules/unistr/u16-move (Depends-on): Likewise.
25556         * modules/unistr/u32-move (Depends-on): Likewise.
25557
25558 2008-11-02  Bruno Haible  <bruno@clisp.org>
25559
25560         Mark 'memcpy' obsolete.
25561         * modules/memcpy (Status, Notice): New sections.
25562
25563 2008-11-02  Bruno Haible  <bruno@clisp.org>
25564
25565         Mark 'memcmp' obsolete.
25566         * modules/memcmp (Status, Notice): New sections.
25567         * modules/argmatch (Depends-on): Add memchr.
25568         * modules/backupfile (Depends-on): Likewise.
25569         * modules/c-strcasestr (Depends-on): Likewise.
25570         * modules/crypto/des (Depends-on): Likewise.
25571         * modules/csharpcomp (Depends-on): Likewise.
25572         * modules/fnmatch (Depends-on): Likewise.
25573         * modules/git-merge-changelog (Depends-on): Likewise.
25574         * modules/isnand (Depends-on): Likewise.
25575         * modules/isnand-nolibm (Depends-on): Likewise.
25576         * modules/isnanf (Depends-on): Likewise.
25577         * modules/isnanf-nolibm (Depends-on): Likewise.
25578         * modules/isnanl (Depends-on): Likewise.
25579         * modules/isnanl-nolibm (Depends-on): Likewise.
25580         * modules/mbchar (Depends-on): Likewise.
25581         * modules/memcoll (Depends-on): Likewise.
25582         * modules/quotearg (Depends-on): Likewise.
25583         * modules/regex (Depends-on): Likewise.
25584         * modules/relocatable-prog (Depends-on): Likewise.
25585         * modules/same (Depends-on): Likewise.
25586         * modules/signbit (Depends-on): Likewise.
25587         * modules/strcasestr-simple (Depends-on): Likewise.
25588         * modules/unictype/gen-ctype (Depends-on): Likewise.
25589         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
25590         * modules/uniname/uniname (Depends-on): Likewise.
25591         * modules/unistr/u8-cmp (Depends-on): Likewise.
25592
25593 2008-11-02  Bruno Haible  <bruno@clisp.org>
25594
25595         Mark 'memchr' obsolete.
25596         * modules/memchr (Status, Notice): New sections.
25597         * modules/argp (Depends-on): Add memchr.
25598         * modules/base64 (Depends-on): Likewise.
25599         * modules/c-strcasestr (Depends-on): Likewise.
25600         * modules/chdir-long (Depends-on): Likewise.
25601         * modules/fnmatch (Depends-on): Likewise.
25602         * modules/getsubopt (Depends-on): Likewise.
25603         * modules/git-merge-changelog (Depends-on): Likewise.
25604         * modules/glob (Depends-on): Likewise.
25605         * modules/strcasestr-simple (Depends-on): Likewise.
25606         * modules/strnlen (Depends-on): Likewise.
25607
25608 2008-11-02  Bruno Haible  <bruno@clisp.org>
25609
25610         Mark 'atexit' obsolete.
25611         * modules/atexit (Status, Notice): New sections.
25612         * modules/chdir-long (Depends-on): Add atexit.
25613         * modules/wait-process (Depends-on): Likewise.
25614
25615 2008-11-02  Bruno Haible  <bruno@clisp.org>
25616
25617         * gnulib-tool: New option --with-obsolete.
25618         (func_usage): Document it.
25619         (func_modules_transitive_closure): Drop obsolete dependencies if
25620         incobsolete is not true.
25621         (func_import): Read and save the incobsolete variable to the cache.
25622
25623 2008-11-02  Bruno Haible  <bruno@clisp.org>
25624
25625         * modules/TEMPLATE-EXTENDED: New field 'Status'.
25626         * gnulib-tool: New option --extract-status.
25627         (func_usage): Document it.
25628         (sed_extract_prog): Recognize it.
25629         (func_get_status): New function.
25630
25631 2008-10-30  Simon Josefsson  <simon@josefsson.org>
25632
25633         * modules/sockets (License): Change from LGPL to LGPLv2+.
25634
25635 2008-10-28  Simon Josefsson  <simon@josefsson.org>
25636
25637         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
25638
25639 2008-10-28  Simon Josefsson  <simon@josefsson.org>
25640
25641         * MODULES.html.sh (Support for systems lacking POSIX:2001):
25642         Mention times and sys_times.
25643         * modules/sys_times, modules/sys_times-tests: New modules.
25644         * modules/times, modules/times-tests: Likewise
25645         * m4/sys_times_h.m4: New file.
25646         * lib/sys_times.in.h: Likewise
25647         * lib/times.c: Likewise.
25648         * tests/test-sys_times.c: Likewise.
25649         * tests/test-times.c: Likewise.
25650         * doc/posix-headers/sys_times.texi: Update.
25651         * doc/posix-functions/times.texi: Update.
25652
25653 2008-10-28  Jim Meyering  <meyering@redhat.com>
25654
25655         * modules/tempname (Depends-on): Add lstat.
25656
25657         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
25658
25659 2008-10-28  Simon Josefsson  <simon@josefsson.org>
25660
25661         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
25662         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
25663         using idiom used elsewhere in gnulib.
25664
25665 2008-10-27  Jim Meyering  <meyering@redhat.com>
25666
25667         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
25668
25669 2008-10-27  Simon Josefsson  <simon@josefsson.org>
25670
25671         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
25672         TESTS_ENVIRONMENT, for shell scripts that needs to call built
25673         programs.
25674         * tests/test-argp-2.sh: Use $EXEEXT when needed.
25675
25676 2008-10-27  Simon Josefsson  <simon@josefsson.org>
25677
25678         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
25679
25680 2008-10-27  Bruno Haible  <bruno@clisp.org>
25681
25682         * tests/test-lstat.c: Include <stdio.h>.
25683
25684 2008-10-27  Simon Josefsson  <simon@josefsson.org>
25685
25686         * modules/lstat-tests: New module.
25687         * tests/test-lstat.c: New file.
25688
25689 2008-10-26  Jim Meyering  <meyering@redhat.com>
25690
25691         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
25692
25693 2008-10-26  Simon Josefsson  <simon@josefsson.org>
25694             Bruno Haible  <bruno@clisp.org>
25695
25696         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
25697         * modules/configmake (Include): Add a note that the include must come
25698         after all system headers.
25699         * lib/javaversion.c: Include configmake.h after all other includes.
25700
25701 2008-10-26  Bruno Haible  <bruno@clisp.org>
25702
25703         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
25704         HAVE_STRUCT_RANDOM_DATA to 1.
25705         (gl_STDLIB_H): Simplify.
25706
25707 2008-10-26  Simon Josefsson  <simon@josefsson.org>
25708
25709         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
25710         substitute HAVE_STRUCT_RANDOM_DATA.
25711         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
25712         random_data.
25713         * modules/stdlib (Makefile.am): Substitute
25714         HAVE_STRUCT_RANDOM_DATA.
25715
25716 2008-10-26  Simon Josefsson  <simon@josefsson.org>
25717
25718         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
25719         * doc/gnulib-intro.texi (Copyright): Likewise.
25720
25721 2008-10-26  Simon Josefsson  <simon@josefsson.org>
25722
25723         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
25724         findings.
25725
25726 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
25727             Bruno Haible  <bruno@clisp.org>
25728
25729         * lib/unistd.in.h: Include <winsock2.h>.
25730         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
25731         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
25732         Provide dummy declarations.
25733         (gethostname): Override.
25734         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
25735         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
25736         gl_PREREQ_SYS_H_WINSOCK2.
25737         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
25738         * doc/posix-functions/gethostname.texi: More details.
25739
25740 2008-10-25  Bruno Haible  <bruno@clisp.org>
25741
25742         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
25743         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
25744         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
25745
25746         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
25747         here ...
25748         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
25749         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
25750         gl_UNISTD_H_DEFAULTS.
25751
25752 2008-10-25  Eric Blake  <ebb9@byu.net>
25753
25754         signbit: avoid spurious compiler failure
25755         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
25756         declarations inside function.
25757
25758 2008-10-24  Simon Josefsson  <simon@josefsson.org>
25759             Bruno Haible  <bruno@clisp.org>
25760
25761         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
25762         * modules/random_r (Depends-on): Add stdint.
25763
25764 2008-10-24  Bruno Haible  <bruno@clisp.org>
25765
25766         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
25767         Eggert.
25768         * modules/strerror (License): Likewise.
25769
25770 2008-10-24  Jim Meyering  <meyering@redhat.com>
25771
25772         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
25773         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
25774
25775 2008-10-24  Eric Blake  <ebb9@byu.net>
25776
25777         getgroups: fix compilation when getgroups is available
25778         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
25779         but with <config.h> override of getgroups disabled.
25780
25781 2008-10-24  Simon Josefsson  <simon@josefsson.org>
25782
25783         * doc/gnulib.texi (Header files): Add note about C++ problems.
25784         Explained by Bruno Haible <bruno@clisp.org>.
25785
25786 2008-10-23  Bruno Haible  <bruno@clisp.org>
25787
25788         Define a dummy SA_NODEFER macro on Interix.
25789         * lib/signal.in.h (SA_NODEFER): Define fallback.
25790         Reported by Aleksey Cheusov <cheusov@tut.by> via
25791         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
25792
25793 2008-10-23  Bruno Haible  <bruno@clisp.org>
25794
25795         * modules/freadahead (License): Change to LGPLv2+.
25796         Suggested by Simon Josefsson.
25797
25798 2008-10-23  Jim Meyering  <meyering@redhat.com>
25799
25800         random_r: new module
25801         * modules/random_r: New file.
25802         * m4/random_r.m4: New file.
25803         * lib/random_r.c: New file, from glibc.
25804         * modules/random_r-tests: New file.
25805         * tests/test-random_r.c: New file.
25806         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
25807          Declare.
25808         (RAND_MAX): Define.
25809         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
25810         * modules/stdlib: Substitute them, too.
25811         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
25812         * doc/glibc-functions/initstate_r.texi: Mention the new module.
25813         * doc/glibc-functions/random_r.texi: Likewise.
25814         * doc/glibc-functions/setstate_r.texi: Likewise.
25815         * doc/glibc-functions/srandom_r.texi: Likewise.
25816         * config/srclist.txt: Mention it.
25817
25818 2008-10-23  David Lutterkort  <lutter@redhat.com>
25819
25820         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
25821         link requirement
25822
25823 2008-10-23  Jim Meyering  <meyering@redhat.com>
25824
25825         selinux-h: mark parameters of stub functions as intentionally unused
25826         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
25827         * lib/se-context.in.h: Likewise.
25828
25829 2008-10-22  Simon Josefsson  <simon@josefsson.org>
25830
25831         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
25832
25833 2008-10-22  Simon Josefsson  <simon@josefsson.org>
25834
25835         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
25836
25837 2008-10-22  Eric Blake  <ebb9@byu.net>
25838
25839         glthread/thread: avoid compiler warning
25840         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
25841         Add unreachable abort to silence compiler.
25842
25843 2008-10-22  Eric Blake  <ebb9@byu.net>
25844
25845         netdb: also supply struct addrinfo for cygwin 1.5.x
25846         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
25847         older cygwin.
25848         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
25849         cygwin.
25850         * doc/posix-headers/netdb.texi (netdb.h): Document this.
25851
25852 2008-10-22  Bruno Haible  <bruno@clisp.org>
25853
25854         * users.txt: Update entry about pspp.
25855
25856 2008-10-21  Bruno Haible  <bruno@clisp.org>
25857
25858         Simplification.
25859         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
25860         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
25861
25862         Simplification.
25863         * lib/ioctl.c (ioctl): Don't undefine.
25864         * lib/socket.c (socket): Don't undefine.
25865
25866         Remove unused module indicator macros.
25867         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
25868         GNULIB_$1 as a C macro.
25869
25870         * doc/posix-functions/close.texi: Undo last change.
25871         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
25872         Windows platforms.
25873
25874 2008-10-21  Bruno Haible  <bruno@clisp.org>
25875
25876         Add gethostname() declaration to <unistd.h>.
25877         * lib/unistd.in.h (gethostname): New declaration.
25878         * lib/gethostname.c: Include <unistd.h>.
25879         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
25880         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
25881         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
25882         and HAVE_GETHOSTNAME.
25883         * modules/gethostname (Depends-on): Add unistd.
25884         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25885         (Include): Specify <unistd.h>.
25886         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
25887         HAVE_GETHOSTNAME.
25888         * tests/test-gethostname.c: Include <unistd.h> first.
25889
25890 2008-10-21  Bruno Haible  <bruno@clisp.org>
25891
25892         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
25893         * modules/select-tests (Depends-on): Likewise.
25894         Reported by Simon Josefsson.
25895
25896 2008-10-21  Simon Josefsson  <simon@josefsson.org>
25897
25898         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
25899         * lib/accept.c: New file, based on winsock.c.
25900         * lib/bind.c: New file, based on winsock.c.
25901         * lib/connect.c: New file, based on winsock.c.
25902         * lib/getpeername.c: New file, based on winsock.c.
25903         * lib/getsockname.c: New file, based on winsock.c.
25904         * lib/getsockopt.c: New file, based on winsock.c.
25905         * lib/ioctl.c: New file, based on winsock.c.
25906         * lib/listen.c: New file, based on winsock.c.
25907         * lib/recv.c: New file, based on winsock.c.
25908         * lib/recvfrom.c: New file, based on winsock.c.
25909         * lib/send.c: New file, based on winsock.c.
25910         * lib/sendto.c: New file, based on winsock.c.
25911         * lib/setsockopt.c: New file, based on winsock.c.
25912         * lib/shutdown.c: New file, based on winsock.c.
25913         * lib/socket.c: New file, based on winsock.c.
25914         * lib/w32sock.h: New file, based on winsock.c.
25915         * lib/winsock.c: Remove file.
25916         * modules/accept: Likewise.
25917         * modules/bind: Likewise.
25918         * modules/connect: Likewise.
25919         * modules/getpeername: Likewise.
25920         * modules/getsockname: Likewise.
25921         * modules/getsockopt: Likewise.
25922         * modules/ioctl: Likewise.
25923         * modules/listen: Likewise.
25924         * modules/recv: Likewise.
25925         * modules/recvfrom: Likewise.
25926         * modules/send: Likewise.
25927         * modules/sendto: Likewise.
25928         * modules/setsockopt: Likewise.
25929         * modules/shutdown: Likewise.
25930         * modules/socket: Use socket.c instead of winsock.c.
25931         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
25932         * doc/posix-functions/accept.texi: Doc fix.
25933         * doc/posix-functions/bind.texi: Doc fix.
25934         * doc/posix-functions/close.texi: Doc fix.
25935         * doc/posix-functions/connect.texi: Doc fix.
25936         * doc/posix-functions/getpeername.texi: Doc fix.
25937         * doc/posix-functions/getsockname.texi: Doc fix.
25938         * doc/posix-functions/getsockopt.texi: Doc fix.
25939         * doc/posix-functions/ioctl.texi: Doc fix.
25940         * doc/posix-functions/listen.texi: Doc fix.
25941         * doc/posix-functions/recv.texi: Doc fix.
25942         * doc/posix-functions/recvfrom.texi: Doc fix.
25943         * doc/posix-functions/send.texi: Doc fix.
25944         * doc/posix-functions/sendto.texi: Doc fix.
25945         * doc/posix-functions/setsockopt.texi: Doc fix.
25946         * doc/posix-functions/shutdown.texi: Doc fix.
25947         * doc/posix-functions/socket.texi: Doc fix.
25948
25949 2008-10-20  Bruno Haible  <bruno@clisp.org>
25950
25951         Take into account the role of SIGABRT_COMPAT on Windows 2008.
25952         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
25953         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
25954         as an alias for SIGABRT.
25955         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
25956         (sigaction): Map it to SIGABRT.
25957         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
25958
25959 2008-10-20  Bruno Haible  <bruno@clisp.org>
25960
25961         * lib/fts.c: Don't include lstat.h.
25962         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
25963
25964         Move the lstat() declaration to <sys/stat.h>.
25965         * lib/lstat.h: Remove file.
25966         * lib/sys_stat.in.h: Add special invocation convention.
25967         (lstat): New declaration.
25968         * lib/lstat.c (orig_lstat): New function.
25969         (rpl_lstat): Use orig_lstat instead of lstat.
25970         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
25971         AC_C_INLINE. Set REPLACE_LSTAT.
25972         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
25973         and REPLACE_LSTAT.
25974         * modules/lstat (Files): Remove lib/lstat.h.
25975         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
25976         (Include): Specify <sys/stat.h> instead of lstat.h.
25977         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
25978         REPLACE_LSTAT.
25979         * NEWS: Mention the change.
25980
25981 2008-10-20  Bruno Haible  <bruno@clisp.org>
25982
25983         * modules/posix_spawn-tests: New file.
25984         * tests/test-posix_spawn3.c: New file.
25985
25986 2008-10-20  Bruno Haible  <bruno@clisp.org>
25987
25988         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
25989         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
25990         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
25991         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
25992         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
25993
25994 2008-10-20  Bruno Haible  <bruno@clisp.org>
25995
25996         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
25997         of posix_spawn on AIX 5.3.
25998
25999 2008-10-20  Bruno Haible  <bruno@clisp.org>
26000
26001         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
26002
26003 2008-10-20  Bruno Haible  <bruno@clisp.org>
26004
26005         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
26006         of AC_LANG_PROGRAM.
26007
26008 2008-10-20  Simon Josefsson  <simon@josefsson.org>
26009
26010         * lib/netdb.in.h: Don't define GNU specific constants until they
26011         are supported or needed.  Reported by Bruno Haible
26012         <bruno@clisp.org>.
26013
26014 2008-10-20  Simon Josefsson  <simon@josefsson.org>
26015
26016         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
26017
26018 2008-10-20  Simon Josefsson  <simon@josefsson.org>
26019
26020         * lib/getaddrinfo.h: Remove file.
26021         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
26022         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
26023         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
26024         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
26025         * modules/netdb: Substitute GNULIB_GETADDRINFO.
26026         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
26027         * tests/test-getaddrinfo.c: Likewise.
26028         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
26029         * NEWS: Mention change.
26030
26031 2008-10-19  Bruno Haible  <bruno@clisp.org>
26032
26033         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
26034
26035 2008-10-19  Bruno Haible  <bruno@clisp.org>
26036
26037         * lib/wait-process.c: Include simply <sys/wait.h>.
26038         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
26039         WIFSTOPPED): Remove fallback definitions.
26040         * modules/wait-process (Depends-on): Add sys_wait.
26041
26042         New module 'sys_wait'.
26043         * modules/sys_wait: New file.
26044         * lib/sys_wait.in.h: New file, partially copied from
26045         lib/wait-process.c.
26046         * m4/sys_wait_h.m4: New file.
26047         * doc/posix-headers/sys_wait.texi: Mention the new module.
26048
26049 2008-10-19  Bruno Haible  <bruno@clisp.org>
26050
26051         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
26052
26053 2008-10-19  Bruno Haible  <bruno@clisp.org>
26054
26055         Assume that waitpid() fills an 'int' status, not a 'union wait'.
26056         * lib/wait-process.c (WAIT_T): Remove type.
26057         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
26058         (wait_subprocess): Update.
26059
26060 2008-10-19  Bruno Haible  <bruno@clisp.org>
26061
26062         New module 'atoll'.
26063         * modules/atoll: New file.
26064         * lib/stdlib.in.h (atoll): New declaration.
26065         * lib/atoll.c: New file, from glibc with modifications.
26066         * m4/atoll.m4: New file.
26067         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
26068         HAVE_ATOLL.
26069         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
26070         * doc/posix-functions/atoll.texi: Mention the new module.
26071
26072 2008-10-19  Bruno Haible  <bruno@clisp.org>
26073
26074         Add strtoull() declaration to <stdlib.h>.
26075         * lib/stdlib.in.h (strtoull): New declaration.
26076         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
26077         Set HAVE_STRTOULL.
26078         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
26079         HAVE_STRTOULL.
26080         * modules/strtoull (Depends-on): Add stdlib.
26081         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
26082         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
26083         HAVE_STRTOULL.
26084
26085 2008-10-19  Bruno Haible  <bruno@clisp.org>
26086
26087         Add strtoll() declaration to <stdlib.h>.
26088         * lib/stdlib.in.h (strtoll): New declaration.
26089         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
26090         Set HAVE_STRTOLL.
26091         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
26092         HAVE_STRTOLL.
26093         * modules/strtoll (Depends-on): Add stdlib.
26094         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
26095         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
26096
26097 2008-10-19  Bruno Haible  <bruno@clisp.org>
26098
26099         * modules/bcopy (Depends-on): Add strings.
26100         (Include): Specify <strings.h>.
26101
26102 2008-10-19  Bruno Haible  <bruno@clisp.org>
26103
26104         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
26105
26106 2008-10-19  Bruno Haible  <bruno@clisp.org>
26107
26108         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
26109         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
26110         mingw.
26111
26112 2008-10-19  Bruno Haible  <bruno@clisp.org>
26113
26114         * lib/atanl.c: Don't include isnanl.h.
26115         * lib/cosl.c: Likewise.
26116         * lib/ldexpl.c: Likewise.
26117         * lib/logl.c: Likewise.
26118         * lib/sinl.c: Likewise.
26119         * lib/sqrtl.c: Likewise.
26120         * lib/tanl.c: Likewise.
26121
26122         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
26123         * lib/isnanf.h: Remove file.
26124         * lib/isnand.h: Remove file.
26125         * lib/isnanl.h: Remove file.
26126         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
26127         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
26128         macros.
26129         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
26130         HAVE_ISNANF, don't define it as a C macro.
26131         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
26132         HAVE_ISNAND, don't define it as a C macro.
26133         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
26134         HAVE_ISNANL, don't define it as a C macro.
26135         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
26136         HAVE_ISNAN[FDL].
26137         * modules/isnanf (Files): Remove lib/isnanf.h.
26138         (Depends-on): Add math.
26139         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26140         (Include): Specify <math.h> instead of isnanf.h.
26141         * modules/isnand (Files): Remove lib/isnand.h.
26142         (Depends-on): Add math.
26143         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26144         (Include): Specify <math.h> instead of isnand.h.
26145         * modules/isnanl (Files): Remove lib/isnanl.h.
26146         (Depends-on): Add math.
26147         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26148         (Include): Specify <math.h> instead of isnanl.h.
26149         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
26150         HAVE_ISNAN[FDL].
26151         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
26152         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
26153         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
26154         * NEWS: Mention the change.
26155
26156 2008-10-18  Bruno Haible  <bruno@clisp.org>
26157
26158         Add getusershell(), setusershell(), endusershell() declarations to
26159         <unistd.h>.
26160         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
26161         declarations.
26162         * lib/getusershell.c: Include unistd.h.
26163         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
26164         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
26165         HAVE_GETUSERSHELL.
26166         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
26167         and HAVE_GETUSERSHELL.
26168         * modules/getusershell (Depends-on): Add unistd, extensions.
26169         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26170         (Include): Specify <unistd.h>.
26171         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
26172         HAVE_GETUSERSHELL.
26173
26174 2008-10-18  Bruno Haible  <bruno@clisp.org>
26175
26176         Add a getloadavg() declaration to <stdlib.h>.
26177         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
26178         getloadavg declaration.
26179         (getloadavg): New declaration.
26180         * lib/getloadavg.c: Include <stdlib.h> first.
26181         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
26182         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
26183         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
26184         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
26185         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
26186         * modules/getloadavg (Depends-on): Add stdlib, extensions.
26187         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
26188         (Include): Specify <stdlib.h>.
26189         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
26190         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
26191
26192 2008-10-18  Bruno Haible  <bruno@clisp.org>
26193
26194         * lib/dirchownmod.c: Don't include lchmod.h.
26195
26196         Move the lchmod() declaration to <sys/stat.h>.
26197         * lib/lchmod.h: Remove file.
26198         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
26199         (lchmod): New declaration, moved here from lib/lchown.h.
26200         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
26201         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
26202         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
26203         and HAVE_LCHMOD.
26204         * modules/lchmod (Files): Remove lib/lchmod.h.
26205         (Depends-on): Add sys_stat, extensions.
26206         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
26207         (Include): Specify <sys/stat.h> instead of lchmod.h.
26208         * modules/sys_stat (Depends-on): Add link-warning.
26209         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
26210         definition of GL_LINK_WARNING.
26211         * NEWS: Mention the change.
26212
26213 2008-10-18  Bruno Haible  <bruno@clisp.org>
26214
26215         * lib/fchdir.c: Don't include dirfd.h.
26216         * lib/fts.c: Likewise.
26217         * lib/getcwd.c: Likewise.
26218         * lib/glob.c: Likewise.
26219
26220         Move the dirfd() declaration to <dirent.h>.
26221         * lib/dirfd.h: Remove file.
26222         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
26223         (dirfd): New declaration.
26224         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
26225         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
26226         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
26227         HAVE_DECL_DIRFD.
26228         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
26229         HAVE_DECL_DIRFD.
26230         * modules/dirfd (Files): Remove lib/dirfd.h.
26231         (Depends-on): Add dirent, extensions.
26232         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
26233         (Include): Specify <dirent.h> instead of dirfd.h.
26234         * modules/dirent (Depends-on): Add link-warning.
26235         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
26236         definition of GL_LINK_WARNING.
26237         * NEWS: Mention the change.
26238
26239 2008-10-18  Bruno Haible  <bruno@clisp.org>
26240
26241         Move the euidaccess() declaration to <unistd.h>.
26242         * lib/euidaccess.h: Remove file.
26243         * lib/unistd.in.h (euidaccess): New declaration.
26244         * lib/euidaccess.c: Don't include euidaccess.h.
26245         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
26246         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
26247         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
26248         and HAVE_EUIDACCESS.
26249         * modules/euidaccess (Files): Remove lib/euidaccess.h.
26250         (Depends-on): Add unistd.
26251         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26252         (Include): Specify <unistd.h> instead of euidaccess.h.
26253         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
26254         HAVE_EUIDACCESS.
26255         * NEWS: Mention the change.
26256
26257 2008-10-18  Bruno Haible  <bruno@clisp.org>
26258
26259         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
26260
26261         Move the getdomainname() declaration to <unistd.h>.
26262         * lib/getdomainname.h: Remove file.
26263         * lib/unistd.in.h (getdomainname): New declaration.
26264         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
26265         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
26266         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
26267         HAVE_GETDOMAINNAME.
26268         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26269         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
26270         * modules/getdomainname (Files): Remove lib/getdomainname.h.
26271         (Depends-on): Add unistd, extensions.
26272         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26273         (Includes): Specify <unistd.h> instead of getdomainname.h.
26274         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
26275         HAVE_GETDOMAINNAME.
26276         * NEWS: Mention the change.
26277
26278 2008-10-18  Bruno Haible  <bruno@clisp.org>
26279
26280         * modules/dirent: New file.
26281         * m4/dirent_h.m4: New file.
26282         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
26283         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
26284         * modules/fchdir (Files): Remove lib/dirent.in.h.
26285         (Depends-on): Add dirent.
26286         (Makefile.am): Move rules to modules/dirent.
26287         * doc/posix-headers/dirent.texi: Mention the new module.
26288
26289 2008-10-18  Bruno Haible  <bruno@clisp.org>
26290
26291         Avoid -Wunused-parameter warnings in public gnulib header files.
26292         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
26293         macro.
26294         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
26295
26296 2008-10-18  Bruno Haible  <bruno@clisp.org>
26297
26298         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
26299         * doc/glibc-functions/error.texi: Mention the module 'error'.
26300         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
26301         * doc/glibc-functions/getdomainname.texi: Mention the module
26302         'getdomainname'.
26303         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
26304         * doc/glibc-functions/getpagesize.texi: Mention the module
26305         'getpagesize'.
26306         * doc/glibc-functions/getusershell.texi: Mention the module
26307         'getusershell'.
26308         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
26309         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
26310         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
26311         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
26312         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
26313         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
26314         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
26315         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
26316         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
26317         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
26318         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
26319         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
26320         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
26321         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
26322
26323 2008-10-17  Bruno Haible  <bruno@clisp.org>
26324
26325         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
26326         HP-UX and IRIX, use -0.0L.
26327         * tests/test-ceill.c (minus_zero): Likewise.
26328         * tests/test-floorl.c (minus_zero): Likewise.
26329         * tests/test-frexpl.c (minus_zero): Likewise.
26330         * tests/test-isnan.c (minus_zerol): Likewise.
26331         * tests/test-isnanl.h (minus_zero): Likewise.
26332         * tests/test-ldexpl.c (minus_zero): Likewise.
26333         * tests/test-roundl.c (minus_zero): Likewise.
26334         * tests/test-signbit.c (minus_zerol): Likewise.
26335         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
26336         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
26337         * tests/test-truncl.c (minus_zero): Likewise.
26338         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
26339         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
26340         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
26341         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
26342
26343 2008-10-17  Bruno Haible  <bruno@clisp.org>
26344
26345         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
26346         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
26347         that it gets activated only for gcc >= 3.0.
26348         * lib/dirent.in.h: Likewise.
26349         * lib/errno.in.h: Likewise.
26350         * lib/fcntl.in.h: Likewise.
26351         * lib/float.in.h: Likewise.
26352         * lib/iconv.in.h: Likewise.
26353         * lib/inttypes.in.h: Likewise.
26354         * lib/locale.in.h: Likewise.
26355         * lib/math.in.h: Likewise.
26356         * lib/netdb.in.h: Likewise.
26357         * lib/netinet_in.in.h: Likewise.
26358         * lib/search.in.h: Likewise.
26359         * lib/signal.in.h: Likewise.
26360         * lib/spawn.in.h: Likewise.
26361         * lib/stdarg.in.h: Likewise.
26362         * lib/stdint.in.h: Likewise.
26363         * lib/stdio.in.h: Likewise.
26364         * lib/stdlib.in.h: Likewise.
26365         * lib/string.in.h: Likewise.
26366         * lib/strings.in.h: Likewise.
26367         * lib/sys_file.in.h: Likewise.
26368         * lib/sys_ioctl.in.h: Likewise.
26369         * lib/sys_select.in.h: Likewise.
26370         * lib/sys_socket.in.h: Likewise.
26371         * lib/sys_stat.in.h: Likewise.
26372         * lib/sys_time.in.h: Likewise.
26373         * lib/sysexits.in.h: Likewise.
26374         * lib/time.in.h: Likewise.
26375         * lib/unistd.in.h: Likewise.
26376         * lib/wchar.in.h: Likewise.
26377         * lib/wctype.in.h: Likewise.
26378         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
26379
26380 2008-10-17  Jim Meyering  <meyering@redhat.com>
26381
26382         ignore-value: don't depend on inline module
26383         * modules/ignore-value (Depends-on): Remove 'inline'.
26384         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
26385         Suggestion from Bruno Haible.
26386
26387 2008-10-17  Bruno Haible  <bruno@clisp.org>
26388
26389         New implementation of condition variables for Win32.
26390         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
26391         (gl_linked_waitqueue_t): New type.
26392         (gl_cond_t): Use it.
26393         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
26394         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
26395         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
26396         (glthread_cond_init_func, glthread_cond_wait_func,
26397         glthread_cond_timedwait_func, glthread_cond_signal_func,
26398         glthread_cond_broadcast_func, glthread_cond_destroy_func):
26399         Reimplemented on the basis of gl_linked_waitqueue_t.
26400         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
26401         gl_waitqueue_t.
26402         (gl_rwlock_t): Update.
26403         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
26404
26405 2008-10-17  Simon Josefsson  <simon@josefsson.org>
26406
26407         * modules/recvfrom (Depends-on): Add dependency on getpeername.
26408         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
26409
26410 2008-10-17  Jim Meyering  <meyering@redhat.com>
26411
26412         ignore-value: new module
26413         * modules/ignore-value: New file.
26414         * lib/ignore-value.h: New file.
26415         * MODULES.html.sh (Compiler warning management): New section,
26416         just for this module.  More to come.
26417
26418 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
26419
26420         open-safer.c: avoid 'signed and unsigned in conditional...' warning
26421         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
26422         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
26423
26424 2008-10-16  Jim Meyering  <meyering@redhat.com>
26425
26426         openat-die.c: avoid 'no previous prototype' warning
26427         * lib/openat-die.c: Include "openat.h".
26428         Reported by Reuben Thomas <rrt@sc3d.org>.
26429
26430 2008-10-16  Simon Josefsson  <simon@josefsson.org>
26431
26432         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
26433         * lib/netdb.in.h: Fix typo.
26434         Reported by Bruno Haible  <bruno@clisp.org>
26435
26436         * lib/netdb.in.h: Include sys/socket.h for platforms without
26437         netdb.h, to get structures like hostent on MinGW.
26438         * modules/netdb (Depends-on): Add sys_socket.
26439
26440 2008-10-15  Simon Josefsson  <simon@josefsson.org>
26441
26442         * modules/netdb, modules/netdb-tests: New file.
26443         * m4/netdb_h.m4: New file.
26444         * lib/netdb.in.h: Add, currently just an empty file pending
26445         definitions.
26446         * tests/test-netdb.c: New file.
26447         * doc/posix-headers/netdb.texi: Mention that we replace it if
26448         needed.
26449         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
26450         netdb.
26451
26452 2008-10-15  Simon Josefsson  <simon@josefsson.org>
26453
26454         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
26455         with code.
26456
26457 2008-10-13  Bruno Haible  <bruno@clisp.org>
26458
26459         * lib/glthread/cond.c (glthread_cond_wait_func,
26460         glthread_cond_timedwait_func): Add a comment.
26461
26462 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
26463
26464         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
26465         * tests/test-select.c: Likewise,
26466
26467 2008-10-13  Bruno Haible  <bruno@clisp.org>
26468
26469         * lib/glthread/cond.c (glthread_cond_wait_func,
26470         glthread_cond_timedwait_func): Fix variable name.
26471         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
26472
26473 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
26474
26475         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
26476         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
26477         struct sockaddr.sa_len.
26478         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
26479
26480 2008-10-13  Simon Josefsson  <simon@josefsson.org>
26481
26482         * build-aux/pmccabe2html: Add css and css_url parameters.
26483
26484 2008-10-12  Bruno Haible  <bruno@clisp.org>
26485
26486         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
26487         calling aclx_get.
26488         Reported by Rainer Tammer <tammer@tammer.net>.
26489
26490 2008-10-12  Bruno Haible  <bruno@clisp.org>
26491
26492         Use msvcrt aware primitives for creation/termination of Win32 threads.
26493         * lib/glthread/thread.c: Include <process.h>.
26494         (glthread_create_func): Use _beginthreadex instead of CreateThread.
26495         (wrapper_func): Update signature.
26496         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
26497
26498 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
26499             Bruno Haible  <bruno@clisp.org>
26500
26501         Provide a Win32 implementation of the 'cond' module.
26502         * lib/glthread/cond.h [USE_WIN32]: New implementation.
26503         * lib/glthread/cond.c (glthread_cond_init_func,
26504         glthread_cond_wait_func, glthread_cond_timedwait_func,
26505         glthread_cond_signal_func, glthread_cond_broadcast_func,
26506         glthread_cond_destroy_func) [USE_WIN32]: New functions.
26507         * modules/cond (Dependencies): Add gettimeofday.
26508
26509 2008-10-11  Bruno Haible  <bruno@clisp.org>
26510
26511         Make sleep work on older versions of mingw.
26512         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
26513         only whether it exists.
26514         * doc/posix-functions/sleep.texi: Mention the problem with older
26515         versions of mingw.
26516
26517 2008-10-11  Bruno Haible  <bruno@clisp.org>
26518
26519         New module 'shutdown'.
26520         * modules/shutdown: New file.
26521         * lib/sys_socket.in.h (shutdown): New declaration.
26522         * lib/winsock.c (shutdown): New function.
26523         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
26524         GNULIB_SHUTDOWN.
26525         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
26526         * doc/posix-functions/shutdown.texi: Document the new module.
26527
26528 2008-10-11  Jim Meyering  <meyering@redhat.com>
26529
26530         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
26531
26532 2008-10-11  Bruno Haible  <bruno@clisp.org>
26533
26534         New module 'fclose'.
26535         * modules/fclose: New file.
26536         * lib/stdio.in.h (fclose): New declaration.
26537         * lib/fclose.c: New file.
26538         * m4/fclose.m4: New file.
26539         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
26540         REPLACE_FCLOSE.
26541         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
26542         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
26543         REPLACE_FCLOSE.
26544         * modules/close (Depends-on): fclose.
26545         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
26546
26547 2008-10-11  Bruno Haible  <bruno@clisp.org>
26548
26549         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
26550         set errno and don't call _close.
26551
26552 2008-10-10  Bruno Haible  <bruno@clisp.org>
26553
26554         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
26555         ACL, not afterwards. Fixes test failure on Cygwin.
26556
26557 2008-10-09  Ben Pfaff  <blp@gnu.org>
26558
26559         * build-aux/announce-gen: Fix gnulib version related part of usage
26560         message.  Die with a useful error message if no tarballs are
26561         found.
26562
26563 2008-10-10  Jim Meyering  <meyering@redhat.com>
26564
26565         bootstrap: use git's --depth=N option only if it's supported
26566         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
26567         recognize the --depth option.  Reported by Pádraig Brady.
26568
26569 2008-10-09  Bruno Haible  <bruno@clisp.org>
26570
26571         New module 'ioctl'.
26572         * modules/ioctl: New file.
26573         * lib/sys_socket.in.h (ioctl): Remove declaration.
26574         * lib/winsock.c: Include <sys/ioctl.h>.
26575         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
26576         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
26577         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
26578         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
26579         * doc/posix-functions/ioctl.texi: Mention the new module.
26580
26581 2008-10-09  Bruno Haible  <bruno@clisp.org>
26582
26583         New module 'sys_ioctl'.
26584         * lib/sys_ioctl.in.h: New file.
26585         * m4/sys_ioctl_h.m4: New file.
26586         * modules/sys_ioctl: New file.
26587         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
26588
26589 2008-10-09  Bruno Haible  <bruno@clisp.org>
26590
26591         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
26592         * lib/winsock.c: Include <stdarg.h>.
26593         (rpl_ioctl): Change to second argument 'int' and then varargs.
26594
26595 2008-10-09  Bruno Haible  <bruno@clisp.org>
26596
26597         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
26598         when the sys_socket module is present and the system has <winsock2.h>.
26599
26600 2008-10-09  Bruno Haible  <bruno@clisp.org>
26601
26602         * doc/posix-functions/close.texi: Mention module 'close' instead of
26603         module 'sys_socket'.
26604
26605 2008-10-09  Bruno Haible  <bruno@clisp.org>
26606
26607         * doc/glibc-headers/sys_ioctl.texi: New file.
26608         * doc/gnulib.texi: Include it.
26609
26610 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
26611             Bruno Haible  <bruno@clisp.org>
26612
26613         Combine the two replacements of 'close'.
26614         * lib/sys_socket.in.h (close): Define to a reminder to include
26615         <unistd.h>.
26616         (_gl_close_fd_maybe_socket): New declaration.
26617         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
26618         * lib/winsock.c (close): Remove undefinition.
26619         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
26620         needed for the gnulib module 'close'.
26621         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
26622         define to an error symbol or to a warning, if suitable.
26623         * lib/close.c: Include <sys/socket.h>.
26624         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
26625         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
26626         UNISTD_H_HAVE_WINSOCK2_H.
26627         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
26628         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26629         UNISTD_H_HAVE_WINSOCK2_H.
26630         * modules/sys_socket (Files): Add m4/unistd_h.m4.
26631         (configure.ac): Set a module indicator.
26632         (Makefile.am): Substitute GNULIB_CLOSE.
26633         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
26634         * modules/poll-tests (Depends-on): Add close.
26635         * modules/select-tests (Depends-on): Likewise.
26636
26637 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
26638             Bruno Haible  <bruno@clisp.org>
26639
26640         New module 'close'.
26641         * modules/close: New file.
26642         * lib/unistd.in.h (close): Move declaration out of the
26643         FCHDIR_REPLACEMENT scope.
26644         (_gl_unregister_fd): New declaration.
26645         * lib/close.c: New file.
26646         * lib/fchdir.c (rpl_close): Remove function.
26647         * m4/close.m4: New file.
26648         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
26649         close.
26650         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
26651         REPLACE_CLOSE.
26652         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
26653         REPLACE_CLOSE.
26654         * modules/fchdir (Depends-on): Add close.
26655
26656 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
26657             Bruno Haible  <bruno@clisp.org>
26658
26659         * lib/fcntl.in.h (open): Simplify conditionals.
26660         (_gl_register_fd): New declaration.
26661         * lib/fchdir.c (rpl_open): Remove function.
26662         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
26663         also.
26664         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
26665         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
26666         open.
26667
26668 2008-10-09  Jim Meyering  <meyering@redhat.com>
26669
26670         GNUmakefile: use the more name-space-friendly "_version"
26671         * top/GNUmakefile (_dummy): Update.
26672         (_version): Rename from "version".
26673
26674 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
26675             Bruno Haible  <bruno@clisp.org>
26676
26677         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
26678         rpl_close.
26679         (_gl_register_fd): New function, extracted from rpl_open.
26680         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
26681         (rpl_open, rpl_opendir): Use _gl_register_fd.
26682
26683 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
26684
26685         Fix organization of 'open' replacement.
26686         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
26687         (gl_FUNC_OPEN): Use it.
26688         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
26689
26690 2008-10-08  Bruno Haible  <bruno@clisp.org>
26691
26692         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
26693
26694 2008-10-08  Simon Josefsson  <simon@josefsson.org>
26695
26696         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
26697         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
26698         listen).
26699
26700 2008-10-08  Eric Blake  <ebb9@byu.net>
26701
26702         GNUmakefile: add 'make version' target
26703         * top/GNUmakefile (_curr-ver): Split version update rules...
26704         (version): ...into a target.
26705
26706 2008-10-07  Bruno Haible  <bruno@clisp.org>
26707
26708         Use a more portable replacement expression for -0.0L.
26709         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
26710         instead of -0.0L. Fix m4 quotation.
26711
26712         * tests/test-signbit.c: Include <float.h>.
26713         (minus_zero): New variable.
26714         (test_signbitl): Use minus_zero instead of -zero.
26715         * modules/signbit-tests (Depends-on): Add float.
26716
26717         * tests/test-ceill.c: Include <float.h>.
26718         (zero): Remove variable.
26719         (minus_zero): New variable.
26720         (main): Use minus_zero instead of -zero.
26721         * modules/ceill-tests (Depends-on): Add float.
26722
26723         * tests/test-floorl.c: Include <float.h>.
26724         (zero): Remove variable.
26725         (minus_zero): New variable.
26726         (main): Use minus_zero instead of -zero.
26727         * modules/floorl-tests (Depends-on): Add float.
26728
26729         * tests/test-roundl.c: Include <float.h>.
26730         (zero): Remove variable.
26731         (minus_zero): New variable.
26732         (main): Use minus_zero instead of -zero.
26733         * modules/roundl-tests (Depends-on): Add float.
26734
26735         * tests/test-truncl.c: Include <float.h>.
26736         (zero): Remove variable.
26737         (minus_zero): New variable.
26738         (main): Use minus_zero instead of -zero.
26739         * modules/truncl-tests (Depends-on): Add float.
26740
26741         * tests/test-frexpl.c (zero): Remove variable.
26742         (minus_zero): New variable.
26743         (main): Use minus_zero instead of -zero.
26744         * modules/frexpl-tests (Depends-on): Add float.
26745
26746         * tests/test-isnan.c (zerol): Remove variable.
26747         (minus_zerol): New variable.
26748         (test_long_double): Use minus_zerol instead of -zerol.
26749         * modules/isnan-tests (Depends-on): Add float.
26750
26751         * tests/test-isnanl.h (zero): Remove variable.
26752         (minus_zero): New variable.
26753         (main): Use minus_zero instead of -zero.
26754         * modules/isnanl-nolibm-tests (Depends-on): Add float.
26755         * modules/isnanl-tests (Depends-on): Add float.
26756
26757         * tests/test-ldexpl.c (zero): Remove variable.
26758         (minus_zero): New variable.
26759         (main): Use minus_zero instead of -zero.
26760         * modules/ldexpl-tests (Depends-on): Add float.
26761
26762         * tests/test-snprintf-posix.h (zerol): Remove variable.
26763         (minus_zerol): New variable.
26764         (test_function): Use minus_zerol instead of -zerol.
26765         * modules/snprintf-posix-tests (Depends-on): Add float.
26766         * modules/vsnprintf-posix-tests (Depends-on): Add float.
26767
26768         * tests/test-sprintf-posix.h (zerol): Remove variable.
26769         (minus_zerol): New variable.
26770         (test_function): Use minus_zerol instead of -zerol.
26771         * modules/sprintf-posix-tests (Depends-on): Add float.
26772         * modules/vsprintf-posix-tests (Depends-on): Add float.
26773
26774         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
26775         (minus_zerol): New variable.
26776         (test_function): Use minus_zerol instead of -zerol.
26777         * modules/vasnprintf-posix-tests (Depends-on): Add float.
26778
26779         * tests/test-vasprintf-posix.c (zerol): Remove variable.
26780         (minus_zerol): New variable.
26781         (test_function): Use minus_zerol instead of -zerol.
26782         * modules/vasprintf-posix-tests (Depends-on): Add float.
26783
26784 2008-10-07  Simon Josefsson  <simon@josefsson.org>
26785
26786         * MODULES.html.sh (Support for building documentation): Mention
26787         pmccabe2html.  Sort entries.
26788
26789         Add pmccabe2html module, from gnupdf.
26790         * build-aux/pmccabe.css: New file.
26791         * build-aux/pmccabe2html: New file.
26792         * m4/pmccabe2html.m4: New file.
26793         * modules/pmccabe2html: New file.
26794
26795 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
26796
26797         flock: new module
26798         * MODULES.html.sh: Add to list of modules.
26799         * lib/flock.c: flock implementation for Windows and Unix systems
26800         which have fcntl.
26801         * doc/glibc-functions/flock.texi: Update documentation.
26802         * lib/sys_file.in.h: <sys/file.h> header file.
26803         * m4/flock.m4: M4 macros.
26804         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
26805         * modules/flock: flock module.
26806         * modules/flock-tests: flock tests module.
26807         * modules/sys_file: sys/file.h module.
26808         * tests/test-flock.c: test suite for flock.
26809
26810 2008-10-06  Jim Meyering  <meyering@redhat.com>
26811
26812         bootstrap: check for LT_INIT more portably still ;-)
26813         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
26814         Spotted by Bruno Haible.
26815
26816 2008-10-06  Eric Blake  <ebb9@byu.net>
26817
26818         test-signbit: avoid tripping Irix cc bug on -0.0L
26819         * tests/test-signbit.c (minus_zerol): Delete, and replace with
26820         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
26821         entire testsuite consistent and avoids an Irix 6.2 bug.
26822
26823 2008-10-05  Bruno Haible  <bruno@clisp.org>
26824             Jim Meyering  <jim@meyering.net>
26825
26826         Add an option for ignoring EPIPE during close_stdout.
26827         * lib/closeout.h: Include <stdbool.h>.
26828         (close_stdout_set_ignore_EPIPE): New declaration.
26829         * lib/closeout.c: Include <stdbool.h>.
26830         (ignore_EPIPE): New variable.
26831         (close_stdout_set_ignore_EPIPE): New function.
26832         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
26833         * lib/close-stream.c (close_stream): Mention the possible EPIPE
26834         failure.
26835         * modules/closeout (Depends-on): Add stdbool.
26836
26837 2008-10-05  Bruno Haible  <bruno@clisp.org>
26838
26839         * modules/accept: New file.
26840         * modules/bind: New file.
26841         * modules/connect: New file.
26842         * modules/getpeername: New file.
26843         * modules/getsockname: New file.
26844         * modules/getsockopt: New file.
26845         * modules/listen: New file.
26846         * modules/recv: New file.
26847         * modules/recvfrom: New file.
26848         * modules/send: New file.
26849         * modules/sendto: New file.
26850         * modules/setsockopt: New file.
26851         * modules/socket: New file.
26852         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
26853         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
26854         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
26855         the particular module is requested. Add a link warning when the
26856         particular module is not requested.
26857         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
26858         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
26859         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
26860         the particular module is requested.
26861         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
26862         gl_SYS_SOCKET_H_DEFAULTS): New macros.
26863         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
26864         * modules/sys_socket (Depends-on): Add link-warning.
26865         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
26866         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
26867         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
26868         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
26869         GL_LINK_WARNING.
26870         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
26871         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
26872         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
26873         * doc/posix-functions/getpeername.texi: Mention the new module
26874         'getpeername'.
26875         * doc/posix-functions/getsockname.texi: Mention the new module
26876         'getsockname'.
26877         * doc/posix-functions/getsockopt.texi: Mention the new module
26878         'getsockopt'.
26879         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
26880         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
26881         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
26882         * doc/posix-functions/send.texi: Mention the new module 'send'.
26883         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
26884         * doc/posix-functions/setsockopt.texi: Mention the new module
26885         'setsockopt'.
26886         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
26887         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
26888         listen, connect, accept.
26889         * modules/select-tests (Depends-on): Likewise.
26890
26891 2008-10-05  Bruno Haible  <bruno@clisp.org>
26892
26893         * lib/winsock.c (strerror): Remove unused #undef.
26894         (rpl_close): Remove unused local variable.
26895
26896         * modules/sys_socket (Depends-on); Add errno.
26897
26898 2008-10-05  Bruno Haible  <bruno@clisp.org>
26899
26900         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
26901         (select): Add a link warning when the 'select' module is not used.
26902         * modules/sys_select (Depends-on): Add link-warning.
26903         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
26904         Suggested by Paolo Bonzini.
26905
26906 2008-10-05  Jim Meyering  <meyering@redhat.com>
26907
26908         bootstrap: check for LT_INIT more portably
26909         * build-aux/bootstrap: Avoid using grep -E, since it's not
26910         portable enough.  Suggestion from Bruno Haible.
26911
26912 2008-10-05  Bruno Haible  <bruno@clisp.org>
26913
26914         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
26915         as being fixed by gnulib.
26916
26917 2008-10-05  Bruno Haible  <bruno@clisp.org>
26918
26919         * modules/select-tests: New file, mostly copied from
26920         modules/sys_select-tests.
26921         * tests/test-select.c: New file, mostly copied from
26922         tests/test-sys_select.c.
26923         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
26924         * modules/sys_select-tests (Depends-on): Remove all dependencies.
26925         (Makefile.am): Remove test_sys_select_LDADD.
26926
26927         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
26928         to an undefined symbol, for an error message.
26929         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
26930         (gl_SYS_SELECT_H_DEFAULTS): New macro.
26931         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
26932         winsock-select.c here.
26933         * modules/sys_select (Files): Remove lib/winsock-select.c.
26934         (Depends-on): Remove alloca.
26935         (Makefile.am): Substitute GNULIB_SELECT.
26936         * modules/select: New file.
26937         * doc/posix-functions/select.texi: Update.
26938
26939 2008-10-05  Bruno Haible  <bruno@clisp.org>
26940
26941         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
26942         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
26943         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
26944         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
26945         getdtablesize.
26946         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
26947         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
26948
26949 2008-10-05  Bruno Haible  <bruno@clisp.org>
26950
26951         * modules/getdtablesize-tests: New file.
26952         * tests/test-getdtablesize.c: New file.
26953
26954         New module 'getdtablesize'.
26955         * lib/unistd.in.h (getdtablesize): New declaration.
26956         * lib/getdtablesize.c: New file.
26957         * m4/getdtablesize.m4: New file.
26958         * modules/getdtablesize: New file.
26959         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26960         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
26961         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
26962         HAVE_GETDTABLESIZE.
26963         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
26964
26965 2008-10-05  Bruno Haible  <bruno@clisp.org>
26966
26967         * modules/sched (Makefile.am): Fix typo.
26968         Reported by Simon Josefsson.
26969
26970 2008-10-05  Jim Meyering  <meyering@redhat.com>
26971
26972         bootstrap: check for LT_INIT, too
26973         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
26974         are deprecated.  Suggestion from Ralf Wildenhues.
26975
26976 2008-10-05  Bruno Haible  <bruno@clisp.org>
26977
26978         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
26979         overriding them by ours.
26980         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
26981
26982 2008-10-05  Jim Meyering  <meyering@redhat.com>
26983
26984         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
26985         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
26986         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
26987
26988 2008-10-04  Bruno Haible  <bruno@clisp.org>
26989
26990         * modules/dup2 (License): Change to LGPLv2+.
26991         * modules/sleep (License): Likewise.
26992         * modules/perror (License): Likewise.
26993         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
26994         Blake.
26995         * modules/signal (License): Likewise.
26996         * modules/sigprocmask (License): Likewise.
26997         * modules/raise (License): Change to LGPLv2+, with approval by Jim
26998         Meyering.
26999
27000 2008-10-04  Bruno Haible  <bruno@clisp.org>
27001
27002         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
27003         Reported by Rainer Tammer <tammer@tammer.net>.
27004
27005 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
27006             Bruno Haible  <bruno@clisp.org>
27007
27008         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
27009         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
27010         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
27011
27012 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
27013
27014         filevercmp: new module
27015         * lib/filevercmp.h: New function filevercmp comparing version strings.
27016         * lib/filevercmp.c: Implementation of filevercmp function.
27017         * modules/filevercmp: Module metadata.
27018         * tests/test-filevercmp.c: Unit test for new module.
27019         * modules/filevercmp-tests: Unit test metadata.
27020         * MODULES.html.sh: Add filevercmp module.
27021
27022 2008-10-03  Bruno Haible  <bruno@clisp.org>
27023
27024         * lib/c-ctype.h: Add comment.
27025         Reported by Jim Meyering.
27026
27027 2008-10-02  Bruno Haible  <bruno@clisp.org>
27028
27029         * modules/posix_spawn-internal (Depends-on): Add 'open'.
27030
27031 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
27032
27033         * build-aux/bootstrap: Allow renaming bootstrap, and change the
27034         name of bootstrap.conf accordingly.
27035
27036 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
27037
27038         * build-aux/bootstrap: Install git-merge-changelog configuration
27039         items into .gitconfig if needed.
27040
27041 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
27042
27043         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
27044         git repository, and initialize/update it accordingly.
27045
27046 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
27047
27048         * modules/fsync-tests: New file.
27049         * tests/test-fsync.c: New file.
27050
27051         New module 'fsync'.
27052         * lib/fsync.c: New file.
27053         * m4/fsync.m4: New file.
27054         * modules/fsync: New file.
27055         * lib/unistd.in.h (fsync): New declaration.
27056         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
27057         GNULIB_FSYNC and HAVE_FSYNC.
27058         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
27059         * MODULES.html.sh (posix_functions): Add fsync.
27060         * doc/posix-functions/fsync.texi: Mention the new module.
27061
27062 2008-10-02  Jim Meyering  <meyering@redhat.com>
27063
27064         fts.c: sync with similar code from coreutils' remove.c
27065         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
27066         Guard also with "#if defined __linux__", since for now at least,
27067         this code is Linux-kernel-specific.
27068
27069 2008-10-02  Jim Meyering  <meyering@redhat.com>
27070
27071         fts: bug fixes
27072         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
27073         Include <sys/vfs.h>, not <sys/statfs.h>.
27074
27075         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
27076         Include <sys/vfs.h>, not <sys/statfs.h>.
27077
27078 2008-10-01  Bruno Haible  <bruno@clisp.org>
27079
27080         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
27081         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
27082         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
27083         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
27084         * doc/posix-functions/posix_spawnp.texi: Likewise.
27085         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
27086         whether posix_spawn actually works.
27087         * m4/pipe.m4 (gl_PIPE): Likewise.
27088         * modules/execute (Files): Add m4/posix_spawn.m4.
27089         * modules/pipe (Files): Add m4/posix_spawn.m4.
27090         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
27091
27092 2008-10-01  Jim Meyering  <meyering@redhat.com>
27093
27094         remove trailing spaces
27095         * NEWS: Likewise.
27096         * lib/poll.c (poll): Likewise.
27097         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
27098         * lib/winsock.c (rpl_close): Likewise.
27099         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
27100         * modules/yield: Likewise.
27101         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
27102         * tests/test-sys_select.c (connect_to_socket): Likewise.
27103
27104         fts.c: adjust a new interface to be more generally useful
27105         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
27106         (fts_build): Adjust caller.
27107
27108 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27109
27110         * modules/cond-tests: New file.
27111         * tests/test-cond.c: New file.
27112
27113 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27114             Bruno Haible  <bruno@clisp.org>
27115
27116         * modules/cond (Dependencies): Add errno, time.
27117         * lib/glthread/cond.h: Include <time.h>.
27118         (gl_cond_define, gl_cond_define_initialized): Use the same definition
27119         across platforms.
27120
27121 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27122             Bruno Haible  <bruno@clisp.org>
27123
27124         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
27125
27126 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27127             Bruno Haible  <bruno@clisp.org>
27128
27129         * modules/tls-tests (Depends-on): Add thread, yield.
27130         (configure.ac): Remove all checks.
27131         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
27132         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
27133         gl_thread_self): Remove definitions. Include glthread/thread.h and
27134         glthread/yield.h instead.
27135         (test_tls): Pass an additional NULL argument to gl_thread_join.
27136
27137 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27138             Bruno Haible  <bruno@clisp.org>
27139
27140         * modules/lock-tests (Depends-on): Add thread, yield.
27141         (configure.ac): Remove all checks.
27142         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
27143         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
27144         gl_thread_self): Remove definitions. Include glthread/thread.h and
27145         glthread/yield.h instead.
27146         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
27147         additional NULL argument to gl_thread_join.
27148
27149 2008-09-30  Bruno Haible  <bruno@clisp.org>
27150
27151         Fix the Win32 implementation of the 'thread' module.
27152         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
27153         pointer type.
27154         (gl_thread_self): Invoke gl_thread_self_func.
27155         (gl_thread_self_func): New declaration.
27156         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
27157         (do_init_self_key, init_self_key): New functions.
27158         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
27159         Remove some fields.
27160         (running_threads, running_lock): Remove variables.
27161         (get_current_thread_handle): New function.
27162         (gl_thread_self_func, wrapper_func, glthread_create_func,
27163         glthread_join_func, gl_thread_exit_func): Largely rewritten and
27164         simplified.
27165
27166 2008-09-30  Bruno Haible  <bruno@clisp.org>
27167
27168         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
27169         files.
27170
27171 2008-09-30  Jim Meyering  <meyering@redhat.com>
27172
27173         fts.m4: correct the test for statfs.f_type
27174         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
27175         when checking for statfs.f_type.
27176
27177 2008-09-15  Simon Josefsson  <simon@josefsson.org>
27178
27179         tests: avoid some compiler warnings
27180         * tests/test-memchr.c (main): Pass NULL indirectly.
27181         * tests/test-getdate.c (main): Remove unused variable 'ret'.
27182
27183 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
27184
27185         getdate.y: disallow countable dayshifts like "4 yesterday ago"
27186         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
27187         exactly specified dayshifts.
27188         (dayshift): New rule.
27189         (rel): Add dayshift.
27190         (relative_time_table) [tomorrow, yesterday, today, now]:
27191         Use tDAY_SHIFT in place of tDAY_UNIT.
27192         * tests/test-getdate.c: Add tests for now-disallowed countable
27193         dayshifts, e.g., "4 yesterday ago".
27194
27195 2008-09-29  Bruno Haible  <bruno@clisp.org>
27196
27197         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
27198         * tests/test-posix_spawn1.in.sh: Renamed from
27199         tests/test-posix_spawn.in.sh.
27200         * tests/test-posix_spawn2.c: New file.
27201         * tests/test-posix_spawn2.in.sh: New file.
27202         * modules/posix_spawnp-tests (Files): Update.
27203         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
27204
27205 2008-09-29  Bruno Haible  <bruno@clisp.org>
27206
27207         Propagate effects of putenv/setenv/unsetenv to child processes.
27208         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
27209         * lib/pipe.c (create_pipe): Likewise.
27210
27211 2008-09-29  Bruno Haible  <bruno@clisp.org>
27212
27213         Enable use of shell scripts as executables in mingw.
27214         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
27215         run the program as a shell script.
27216         * lib/pipe.c (create_pipe): Likewise.
27217         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
27218         resulting array.
27219
27220 2008-09-29  Eric Blake  <ebb9@byu.net>
27221
27222         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
27223
27224 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
27225
27226         * doc/posix-functions/accept.texi: Update mingw problems.
27227         * doc/posix-functions/bind.texi: Update mingw problems.
27228         * doc/posix-functions/close.texi: Update mingw problems.
27229         * doc/posix-functions/connect.texi: Update mingw problems.
27230         * doc/posix-functions/getpeername.texi: Update mingw problems.
27231         * doc/posix-functions/getsockname.texi: Update mingw problems.
27232         * doc/posix-functions/getsockopt.texi: Update mingw problems.
27233         * doc/posix-functions/ioctl.texi: Update mingw problems.
27234         * doc/posix-functions/listen.texi: Update mingw problems.
27235         * doc/posix-functions/recv.texi: Update mingw problems.
27236         * doc/posix-functions/recvfrom.texi: Update mingw problems.
27237         * doc/posix-functions/select.texi: Update mingw problems.
27238         * doc/posix-functions/send.texi: Update mingw problems.
27239         * doc/posix-functions/sendto.texi: Update mingw problems.
27240         * doc/posix-functions/setsockopt.texi: Update mingw problems.
27241         * doc/posix-functions/socket.texi: Update mingw problems.
27242
27243 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
27244             Bruno Haible  <bruno@clisp.org>
27245
27246         * lib/sys_select.in.h: Include sys/time.h.
27247         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
27248         * modules/sys_select: Depend on sys_time.
27249         * tests/test-sys_select.c: Test that sys/select.h defines struct
27250         timeval fully.
27251
27252 2008-09-29  Bruno Haible  <bruno@clisp.org>
27253
27254         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
27255         * lib/sys_select.in.h: Likewise.
27256
27257 2008-09-29  Bruno Haible  <bruno@clisp.org>
27258
27259         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
27260
27261 2008-09-29  Bruno Haible  <bruno@clisp.org>
27262
27263         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
27264         Set LIBSOCKET instead of augmenting LIBS.
27265         * modules/sockets (Link): New section.
27266         * modules/sockets-tests (test_sockets_LDADD): New variable.
27267         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
27268         * modules/poll-tests (test_poll_LDADD): New variable.
27269         * NEWS: Document the change.
27270
27271 2008-09-29  Bruno Haible  <bruno@clisp.org>
27272
27273         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
27274         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
27275         ARPA_INET_H directly.
27276         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
27277
27278 2008-09-28  Bruno Haible  <bruno@clisp.org>
27279
27280         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
27281         from gl_HEADER_SYS_SOCKET.
27282         (gl_HEADER_SYS_SOCKET): Invoke it.
27283         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27284
27285 2008-09-28  Bruno Haible  <bruno@clisp.org>
27286
27287         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
27288         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
27289         Needed on OSF/1 4.0.
27290
27291 2008-09-28  Bruno Haible  <bruno@clisp.org>
27292
27293         Override open more carefully.
27294         * lib/open.c (orig_open): New function.
27295         (rpl_open): Use orig_open instead of open.
27296         * lib/fcntl.in.h: Add special invocation convention.
27297         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
27298         (gl_FUNC_OPEN): Invoke it.
27299
27300         Override freopen more carefully.
27301         * lib/freopen.c (orig_freopen): New function.
27302         (rpl_freopen): Use orig_freopen instead of freopen.
27303         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
27304         (gl_FUNC_FREOPEN): Invoke it.
27305
27306         Override fopen more carefully.
27307         * lib/fopen.c (orig_fopen): New function.
27308         (rpl_fopen): Use orig_fopen instead of fopen.
27309         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
27310         (gl_FUNC_FOPEN): Invoke it.
27311         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
27312
27313 2008-09-28  Bruno Haible  <bruno@clisp.org>
27314
27315         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
27316         SIGPIPE.
27317
27318 2008-09-28  Bruno Haible  <bruno@clisp.org>
27319
27320         * tests/test-sigaction.c (handler, main): Disable the check whether
27321         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
27322         glibc systems with LinuxThreads.
27323
27324 2008-09-28  Bruno Haible  <bruno@clisp.org>
27325
27326         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
27327
27328         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
27329         with AIX xlc.
27330         * lib/fcntl.in.h (open): Likewise.
27331         Reported by Rainer Tammer <tammer@tammer.net>.
27332
27333 2008-09-28  Bruno Haible  <bruno@clisp.org>
27334
27335         * modules/posix_spawnp-tests: New file.
27336         * tests/test-posix_spawn.c: New file.
27337         * tests/test-posix_spawn.in.sh: New file.
27338
27339         New module 'posix_spawnp'.
27340         * modules/posix_spawnp: New file.
27341         * lib/spawnp.c: New file, from GNU libc with modifications.
27342         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
27343
27344         New module 'posix_spawn'.
27345         * modules/posix_spawn: New file.
27346         * lib/spawn.c: New file, from GNU libc with modifications.
27347         * doc/posix-functions/posix_spawn.texi: Mention the new module.
27348
27349         New module 'posix_spawnattr_destroy'.
27350         * modules/posix_spawnattr_destroy: New file.
27351         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
27352         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
27353         module.
27354
27355         New module 'posix_spawnattr_setsigmask'.
27356         * modules/posix_spawnattr_setsigmask: New file.
27357         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
27358         modifications.
27359         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
27360         new module.
27361
27362         New module 'posix_spawnattr_getsigmask'.
27363         * modules/posix_spawnattr_getsigmask: New file.
27364         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
27365         modifications.
27366         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
27367         new module.
27368
27369         New module 'posix_spawnattr_setsigdefault'.
27370         * modules/posix_spawnattr_setsigdefault: New file.
27371         * lib/spawnattr_setdefault.c: New file, from GNU libc with
27372         modifications.
27373         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
27374         new module.
27375
27376         New module 'posix_spawnattr_getsigdefault'.
27377         * modules/posix_spawnattr_getsigdefault: New file.
27378         * lib/spawnattr_getdefault.c: New file, from GNU libc with
27379         modifications.
27380         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
27381         new module.
27382
27383         New module 'posix_spawnattr_setschedpolicy'.
27384         * modules/posix_spawnattr_setschedpolicy: New file.
27385         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
27386         modifications.
27387         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
27388         new module.
27389
27390         New module 'posix_spawnattr_getschedpolicy'.
27391         * modules/posix_spawnattr_getschedpolicy: New file.
27392         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
27393         modifications.
27394         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
27395         new module.
27396
27397         New module 'posix_spawnattr_setschedparam'.
27398         * modules/posix_spawnattr_setschedparam: New file.
27399         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
27400         modifications.
27401         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
27402         new module.
27403
27404         New module 'posix_spawnattr_getschedparam'.
27405         * modules/posix_spawnattr_getschedparam: New file.
27406         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
27407         modifications.
27408         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
27409         new module.
27410
27411         New module 'posix_spawnattr_setpgroup'.
27412         * modules/posix_spawnattr_setpgroup: New file.
27413         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
27414         modifications.
27415         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
27416         module.
27417
27418         New module 'posix_spawnattr_getpgroup'.
27419         * modules/posix_spawnattr_getpgroup: New file.
27420         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
27421         modifications.
27422         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
27423         module.
27424
27425         New module 'posix_spawnattr_setflags'.
27426         * modules/posix_spawnattr_setflags: New file.
27427         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
27428         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
27429         module.
27430
27431         New module 'posix_spawnattr_getflags'.
27432         * modules/posix_spawnattr_getflags: New file.
27433         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
27434         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
27435         module.
27436
27437         New module 'posix_spawnattr_init'.
27438         * modules/posix_spawnattr_init: New file.
27439         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
27440         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
27441         module.
27442
27443         New module 'posix_spawn_file_actions_destroy'.
27444         * modules/posix_spawn_file_actions_destroy: New file.
27445         * lib/spawn_faction_destroy.c: New file, from GNU libc with
27446         modifications.
27447         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
27448         the new module.
27449
27450         New module 'posix_spawn_file_actions_addopen'.
27451         * modules/posix_spawn_file_actions_addopen: New file.
27452         * lib/spawn_faction_addopen.c: New file, from GNU libc with
27453         modifications.
27454         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
27455         the new module.
27456
27457         New module 'posix_spawn_file_actions_adddup2'.
27458         * modules/posix_spawn_file_actions_adddup2: New file.
27459         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
27460         modifications.
27461         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
27462         the new module.
27463
27464         New module 'posix_spawn_file_actions_addclose'.
27465         * modules/posix_spawn_file_actions_addclose: New file.
27466         * lib/spawn_faction_addclose.c: New file, from GNU libc with
27467         modifications.
27468         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
27469         the new module.
27470
27471         New module 'posix_spawn_file_actions_init'.
27472         * modules/posix_spawn_file_actions_init: New file.
27473         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
27474         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
27475         new module.
27476
27477         New module 'posix_spawn-internal'.
27478         * modules/posix_spawn-internal: New file.
27479         * lib/spawn_int.h: New file, from GNU libc with modifications.
27480         * lib/spawni.c: New file, from GNU libc with modifications.
27481         * m4/posix_spawn.m4: New file.
27482
27483         New module 'spawn'.
27484         * modules/spawn: New file.
27485         * lib/spawn.in.h: New file, from GNU libc with modifications.
27486         * m4/spawn_h.m4: New file.
27487         * doc/posix-headers/spawn.texi: Mention the new module.
27488
27489 2008-09-28  Bruno Haible  <bruno@clisp.org>
27490
27491         * modules/sched-tests: New file.
27492         * tests/test-sched.c: New file.
27493
27494         New module 'sched'.
27495         * modules/sched: New file.
27496         * lib/sched.in.h: New file.
27497         * m4/sched_h.m4: New file.
27498         * doc/posix-headers/sched.texi: Mention the new module.
27499
27500 2008-09-27  Eric Blake  <ebb9@byu.net>
27501
27502         Fix previous patch, and tweak references to $0.
27503         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
27504         (func_version, func_gnulib_dir): Don't call this program
27505         gnulib-tool.
27506         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
27507         with using $0 in function.
27508         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
27509         (func_fatal_error): Reuse the name the user invoked us with.
27510
27511 2008-09-27  Bruno Haible  <bruno@clisp.org>
27512
27513         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
27514         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
27515         (gl_ICONV_H): Not here.
27516         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
27517         instead of assigning ICONV_H directly.
27518
27519         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
27520         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
27521         WCHAR_H directly.
27522
27523 2008-09-27  Bruno Haible  <bruno@clisp.org>
27524
27525         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
27526         * modules/arpa_inet (Depends-on): Add link-warning.
27527         (Makefile.am): Insert the definition of GL_LINK-WARNING.
27528         * modules/unistd (Makefile.am): Likewise.
27529
27530 2008-09-26  Bruno Haible  <bruno@clisp.org>
27531
27532         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
27533         variables.
27534         (func_version): Essentially copied from gnulib-tool.
27535         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
27536         func_readlink): Copied from gnulib-tool.
27537
27538 2008-09-26  Bruno Haible  <bruno@clisp.org>
27539
27540         * gnulib-tool (func_version): Change directory to $gnulib_dir before
27541         invoking git-version-gen.
27542
27543 2008-09-26  Bruno Haible  <bruno@clisp.org>
27544
27545         * posix-modules: Update to directory names changed on 2008-01-19.
27546         Remove commas in output before splitting into words. No more need to
27547         avoid 'ftruncate' since 2007-02-19.
27548
27549 2008-09-26  Bruno Haible  <bruno@clisp.org>
27550
27551         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
27552
27553 2008-09-26  Bruno Haible  <bruno@clisp.org>
27554
27555         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
27556         * modules/fwriteerror (Depends-on): Add errno.
27557
27558 2008-09-26  Bruno Haible  <bruno@clisp.org>
27559
27560         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
27561         * tests/test-vc-list-files-cvs.sh: Likewise.
27562
27563 2008-09-26  Bruno Haible  <bruno@clisp.org>
27564
27565         * doc/posix-headers/sys_resource.texi: Reorder items.
27566
27567 2008-09-26  Jim Meyering  <meyering@redhat.com>
27568
27569         fts: tweak inode comparison function
27570         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
27571         inode numbers, as documented.
27572
27573         fts: sort dirent entries on inode number before traversing
27574         This avoids a quadratic, seek-related performance penalty when
27575         operating on a directory containing many entries (measurable at 10k;
27576         3.5 hours at 2 million entries with a cold cache) on certain types
27577         of file systems, including ext3 and ext4, but not tmpfs.
27578         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
27579         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
27580         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
27581         (fs_handles_readdir_ordered_dirents_efficiently): New function.
27582         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
27583         (fts_build): Set the stat.st_ino member from D_INO.
27584         If it is likely to be useful, sort dirent entries on inode number.
27585
27586         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
27587         and the struct statfs.f_type member.
27588         * modules/fts (Depends-on): Add d-ino.
27589
27590 2008-09-26  Bruno Haible  <bruno@clisp.org>
27591
27592         * modules/sigpipe-die (Depends-on): Add sigpipe.
27593
27594         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
27595         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
27596         and GNULIB_STDIO_H_SIGPIPE are set.
27597         * lib/stdio-write.c: New file.
27598         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
27599         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
27600         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
27601         REPLACE_STDIO_WRITE_FUNCS.
27602         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
27603         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
27604         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
27605         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
27606         * modules/stdio (Files): Add lib/stdio-write.c.
27607         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
27608         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
27609         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
27610         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
27611         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
27612         REPLACE_FPRINTF_POSIX.
27613         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
27614         REPLACE_PRINTF_POSIX.
27615         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
27616         REPLACE_VFPRINTF_POSIX.
27617         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
27618         REPLACE_VPRINTF_POSIX.
27619         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
27620         SIGPIPE issue.
27621         * doc/posix-functions/fputc.texi: Likewise.
27622         * doc/posix-functions/fputs.texi: Likewise.
27623         * doc/posix-functions/fwrite.texi: Likewise.
27624         * doc/posix-functions/printf.texi: Likewise.
27625         * doc/posix-functions/putc.texi: Likewise.
27626         * doc/posix-functions/putchar.texi: Likewise.
27627         * doc/posix-functions/puts.texi: Likewise.
27628         * doc/posix-functions/vfprintf.texi: Likewise.
27629         * doc/posix-functions/vprintf.texi: Likewise.
27630
27631         * modules/safe-write (Depends-on): Add write.
27632
27633         * modules/sigpipe-tests: New file.
27634         * tests/test-sigpipe.c: New file.
27635         * tests/test-sigpipe.sh: New file.
27636
27637         * modules/write: New file.
27638         * lib/unistd.in.h: Include <sys/types.h>.
27639         (write): New declaration.
27640         * lib/write.c: New file.
27641         * m4/write.m4: New file.
27642         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27643         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
27644         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
27645         GNULIB_WRITE, REPLACE_WRITE.
27646         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
27647         and the SIGPIPE issue.
27648
27649         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
27650         (raise): New declaration.
27651         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
27652         (ext_signal): New function.
27653         (rpl_raise): New function.
27654         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
27655         GNULIB_SIGNAL_H_SIGPIPE.
27656         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
27657         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
27658
27659         * modules/sigpipe: New file.
27660         * m4/sigpipe.m4: New file.
27661
27662 2008-09-25  Derek Price  <derek@ximbiot.com>
27663             Bruno Haible  <bruno@clisp.org>
27664
27665         * gnulib-tool (func_import): Report all license incompatibilities, not
27666         just the first one.
27667
27668 2008-09-25  Bruno Haible  <bruno@clisp.org>
27669
27670         * gnulib-tool (func_import): When computing the edits, consider not
27671         only the Makefile.ams that exist but also those that will be generated.
27672
27673 2008-09-25  Simon Josefsson  <simon@josefsson.org>
27674
27675         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
27676         fixes gnulib-tool --test warning about duplicate dependency.
27677
27678 2008-09-25  Bruno Haible  <bruno@clisp.org>
27679
27680         * gnulib-tool: Don't ask the user to perform edits in the generated
27681         Makefile.ams.
27682         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
27683         apply to the Makefile.am being generated.
27684         (func_emit_tests_Makefile_am): Execute edits that apply to the
27685         Makefile.am being generated.
27686         (func_import): Setup list of Makefile.am edits before emitting the
27687         Makefile.ams, not at the end.
27688         (func_create_testdir): Update.
27689         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
27690
27691 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27692
27693         * gnulib-tool (func_import): Store the --tests-base option in the
27694         comment in gnulib-cache.m4.
27695
27696 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
27697
27698         * NEWS: Document increased portability that sys_select now provides.
27699
27700         * lib/sys_select.in.h: Install select wrapper.
27701         * lib/sys_socket.in.h: Use more descriptive name when there is no
27702         select wrapper.
27703         * lib/winsock-select.c: New.
27704         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
27705         Require gl_HEADER_SYS_SOCKET.
27706         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
27707         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
27708         * tests/test-sys_select.c: Add functional tests.
27709
27710 2008-09-24  Eric Blake  <ebb9@byu.net>
27711
27712         open, fopen: close fd leak in last patch
27713         * lib/open.c (rpl_open): Close fd before returning error.
27714         * lib/fopen.c (rpl_fopen): Close fd before returning error.
27715         * doc/posix-functions/open.texi (open): Document that Irix also
27716         has the bug.
27717         * doc/posix-functions/fopen.texi (fopen): Likewise.
27718         Reported by Paolo Bonzini.
27719
27720 2008-09-24  Bruno Haible  <bruno@clisp.org>
27721
27722         Ensure that a filename ending in a slash cannot be used to access a
27723         non-directory.
27724         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
27725         to check whether it's really a directory.
27726         * lib/fopen.c: Include fcntl.h, unistd.h.
27727         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
27728         and fdopen().
27729         * modules/fopen (Depends-on): Add unistd.
27730         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
27731         * tests/test-fopen.c (main): Likewise.
27732         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
27733         * doc/posix-functions/fopen.texi: Likewise.
27734         Reported by Eric Blake.
27735
27736 2008-09-23  Eric Blake  <ebb9@byu.net>
27737
27738         c-stack: avoid compiler optimizations when provoking overflow
27739         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
27740         recursion harder to optimize, to ensure a stack overflow occurs.
27741         * tests/test-c-stack.c (recurse): Likewise.
27742         Borrowed from libsigsegv.
27743
27744         c-stack: work around Irix sigaltstack bug
27745         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
27746         whether sigaltstack uses wrong end of stack_t (copied in part from
27747         libsigsegv).
27748         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
27749         Irix bug, without requiring an over-allocation.
27750         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
27751         bug.
27752
27753         fopen: document mingw bug on directories
27754         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
27755         not allowing a stream visiting a directory, even though reading
27756         from such a stream is not portable.
27757
27758 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
27759
27760         * lib/poll.c: Rewrite.
27761         * modules/poll: Depend on alloca.
27762
27763 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
27764
27765         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
27766         instead define prototypes for a full set of wrappers.  Ensure
27767         that Cygwin does not use the compatibility code, which is only
27768         for MinGW.
27769         * lib/winsock.c: New.
27770         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
27771         * modules/sys_socket: Add lib/winsock.c.
27772
27773         * modules/poll-tests: Add errno and perror.
27774         * tests/test-poll.c: Use ioctl, not ioctlsocket.
27775
27776 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
27777
27778         * tests/test-poll.c: Downgrade minimum needed Winsock version.
27779
27780 2008-09-23  Bruno Haible  <bruno@clisp.org>
27781
27782         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
27783         * doc/glibc-functions/*: Likewise.
27784
27785 2008-09-23  Simon Josefsson  <simon@josefsson.org>
27786
27787         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
27788         success.
27789
27790 2008-09-22  Eric Blake  <ebb9@byu.net>
27791             Bruno Haible  <bruno@clisp.org>
27792
27793         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
27794         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
27795         supply %A but mishandle pseudo-NaN.
27796         Reported by Simon Josefsson.
27797
27798 2008-09-21  Bruno Haible  <bruno@clisp.org>
27799
27800         * tests/test-lock.c (main): Tweak skip message.
27801         * tests/test-tls.c (main): Likewise.
27802
27803 2008-09-21  Bruno Haible  <bruno@clisp.org>
27804
27805         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
27806         whether 'struct sigaction' has sa_sigaction here...
27807         (gl_PREREQ_SIG_HANDLER_H): ... not here.
27808         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
27809
27810 2008-09-21  Bruno Haible  <bruno@clisp.org>
27811
27812         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
27813         section.
27814         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
27815         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
27816         the new section.
27817         (Support for obsolete systems lacking POSIX:2001): New section.
27818         (String handling <string.h>): Move strdup to the new section.
27819         Suggested by Simon Josefsson and Paolo Bonzini.
27820
27821 2008-09-21  Bruno Haible  <bruno@clisp.org>
27822
27823         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
27824         exponents in %e and %g results on 'long double'. Needed for mingw's
27825         improved *printf functions.
27826         * tests/test-vasprintf-posix.c (test_function): Likewise.
27827         * tests/test-snprintf-posix.h (test_function): Likewise.
27828         * tests/test-sprintf-posix.h (test_function): Likewise.
27829         Reported by Eric Blake.
27830
27831 2008-09-21  Bruno Haible  <bruno@clisp.org>
27832
27833         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
27834         * tests/test-sprintf-posix.h (test_function): Likewise.
27835
27836 2008-09-21  Bruno Haible  <bruno@clisp.org>
27837
27838         * modules/getpass (Depends-on): Add strdup-posix.
27839
27840         New module 'strdup-posix'.
27841         * modules/strdup-posix: New file.
27842         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
27843         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
27844         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27845         REPLACE_STRDUP.
27846         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
27847         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
27848         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
27849         strdup-posix.
27850
27851         * modules/strdup (Depends-on): Remove malloc-posix.
27852
27853 2008-09-20  Bruno Haible  <bruno@clisp.org>
27854
27855         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
27856         Wildenhues.
27857
27858 2008-09-20  Bruno Haible  <bruno@clisp.org>
27859
27860         Ensure that wint_t gets defined on IRIX 5.3.
27861         * lib/wchar.in.h (wint_t): Define if not defined by the system.
27862         * lib/wctype.in.h (wint_t): Likewise.
27863         (__wctype_wint_t): Remove type.
27864         (isw*): Use wint_t instead of __wctype_wint_t.
27865         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
27866         * modules/wchar (Files): Add m4/wint_t.m4.
27867         (Makefile.am): Substitute HAVE_WINT_T.
27868         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
27869         * tests/test-wctype.c: Check that wint_t is defined.
27870         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
27871         * doc/posix-headers/wctype.texi: Likewise.
27872         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27873
27874 2008-09-18  Bruno Haible  <bruno@clisp.org>
27875
27876         * gnulib-tool (func_exit): Update comment.
27877
27878 2008-09-18  Simon Josefsson  <simon@josefsson.org>
27879
27880         * modules/getaddrinfo (Depends-on): Remove strdup, this module
27881         assumes strdup exists and does not depend on strdup to return
27882         ENOMEM on out of memory conditions.
27883
27884 2008-09-18  Bruno Haible  <bruno@clisp.org>
27885
27886         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
27887         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
27888         digits for the exponent.
27889
27890 2008-09-18  Jim Meyering  <meyering@redhat.com>
27891             Bruno Haible  <bruno@clisp.org>
27892
27893         * lib/vasnprintf.c (decimal_point_char): Define also if
27894         NEED_PRINTF_INFINITE_LONG_DOUBLE.
27895
27896 2008-09-16  Bruno Haible  <bruno@clisp.org>
27897         and Eric Blake  <ebb9@byu.net>
27898
27899         vasnprintf: support Irix 5.3
27900         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
27901         that mishandle long double infinity.
27902         Reported by Tom G. Christensen.
27903
27904 2008-09-16  Bruno Haible  <bruno@clisp.org>
27905
27906         * doc/glibc-functions/scandir.texi: Mention the function is missing on
27907         Solaris 9.
27908         * doc/glibc-functions/alphasort.texi: Likewise.
27909         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
27910
27911 2008-09-16  Jim Meyering  <meyering@redhat.com>
27912
27913         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
27914         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
27915         a umask modification leak out of a subshell.  Otherwise, the
27916         opensolaris /bin/sh would be accepted and thus cause unwarranted
27917         failures in the coreutils test suite.
27918
27919 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
27920
27921         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
27922         to succeed.
27923
27924 2008-09-16  Jim Meyering  <meyering@redhat.com>
27925
27926         avoid spurious test failure when library is built without ACL support
27927         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
27928         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
27929         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
27930         * tests/test-copy-acl.sh: Likewise.
27931
27932 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27933
27934         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
27935         based on character occurrence counts.
27936
27937 2008-09-15  Eric Blake  <ebb9@byu.net>
27938
27939         tests: avoid some compiler warnings
27940         * tests/test-memchr.c (main): Pass NULL indirectly.
27941         * tests/test-closein.c (main): Avoid unused variable.
27942
27943 2008-09-15  Bruno Haible  <bruno@clisp.org>
27944
27945         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
27946         are missing on OpenBSD 4.0 individually.
27947         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
27948
27949 2008-09-15  Bruno Haible  <bruno@clisp.org>
27950
27951         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
27952         * doc/posix-functions/strerror.texi: Mention also Cygwin.
27953         * doc/posix-functions/perror.texi: Likewise.
27954         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
27955         is missing.
27956         Reported by Eric Blake.
27957
27958         * lib/errno.in.h: Use replacement values >= 2000.
27959         Reported by Eric Blake.
27960
27961 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27962
27963         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
27964         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
27965         limit.
27966         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
27967         compareseq was aborted.
27968
27969 2008-09-14  Bruno Haible  <bruno@clisp.org>
27970
27971         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
27972         yvec_edit_count.
27973         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
27974         (fstrcmp_bounded): Simplify result computation accordingly.
27975
27976 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27977
27978         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
27979         (fstrcmp): Define in terms of fstrcmp_bounded.
27980         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
27981         lower_bound argument.
27982         Return quickly if the result is certainly < lower_bound.
27983         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
27984
27985 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27986
27987         * lib/diffseq.h (EARLY_ABORT): New macro.
27988         (compareseq): Change return type to bool. Return true when EARLY_ABORT
27989         evaluates to true.
27990
27991 2008-09-14  Bruno Haible  <bruno@clisp.org>
27992
27993         * modules/perror-tests: New file.
27994         * tests/test-perror.sh: New file.
27995         * tests/test-perror.c: New file.
27996
27997         New module 'perror'.
27998         * lib/stdio.in.h (perror): New declaration.
27999         * lib/perror.c: New file.
28000         * m4/perror.m4: New file.
28001         * modules/perror: New file.
28002         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
28003         * doc/posix-functions/perror.texi: Mention the perror module.
28004         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
28005         REPLACE_PERROR.
28006         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
28007         REPLACE_PERROR.
28008
28009 2008-09-14  Bruno Haible  <bruno@clisp.org>
28010
28011         * modules/stdio (Makefile.am): Reorder to match the order in
28012         lib/stdio.in.h.
28013         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
28014
28015 2008-09-13  Bruno Haible  <bruno@clisp.org>
28016
28017         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
28018
28019 2008-09-13  Bruno Haible  <bruno@clisp.org>
28020
28021         Extend strerror to cover the added errno values.
28022         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
28023         (rpl_strerror): Provide error messages for the added errno values and
28024         for the WSA* values.
28025         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
28026         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
28027         strerror.
28028         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
28029         * modules/strerror (Depends-on): Add errno.
28030         * doc/posix-functions/strerror.texi: Document the change.
28031         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
28032         and EOVERFLOW.
28033
28034 2008-09-13  Bruno Haible  <bruno@clisp.org>
28035
28036         * modules/EOVERFLOW: Remove file.
28037         * m4/eoverflow.m4: Remove file.
28038         * modules/EOVERFLOW-tests: Remove file.
28039         * tests/test-EOVERFLOW.c: Remove file.
28040         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
28041         * modules/ftell (Depends-on): Likewise.
28042         * modules/getdelim (Depends-on): Likewise.
28043         * modules/getugroups (Depends-on): Likewise.
28044         * modules/poll (Depends-on): Likewise.
28045         * modules/snprintf (Depends-on): Likewise.
28046         * modules/sprintf-posix (Depends-on): Likewise.
28047         * modules/vasnprintf (Depends-on): Likewise.
28048         * modules/vasprintf (Depends-on): Likewise.
28049         * modules/vfprintf-posix (Depends-on): Likewise.
28050         * modules/vsnprintf (Depends-on): Likewise.
28051         * modules/vsprintf-posix (Depends-on): Likewise.
28052         * modules/xvasprintf (Depends-on): Likewise.
28053         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
28054         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
28055         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
28056         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
28057         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
28058         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
28059         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
28060         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
28061         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
28062         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
28063         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
28064         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
28065         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
28066         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
28067         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
28068         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
28069         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
28070         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
28071         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
28072         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
28073         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
28074         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
28075         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
28076         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
28077         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
28078         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
28079         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
28080         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
28081         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
28082         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
28083         * MODULES.html.sh: Remove EOVERFLOW.
28084         * NEWS: Mention the change.
28085
28086 2008-09-13  Bruno Haible  <bruno@clisp.org>
28087
28088         * modules/errno-tests: New file.
28089         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
28090
28091         * lib/errno.in.h: New file.
28092         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
28093         * modules/errno: New file.
28094         * doc/posix-headers/errno.texi: Update documentation.
28095         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
28096
28097 2008-09-13  Bruno Haible  <bruno@clisp.org>
28098
28099         * tests/test-poll.c: Use #if for native Windows, rather than testing
28100         __MSVCRT__.
28101
28102 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28103             Bruno Haible  <bruno@clisp.org>
28104
28105         * lib/glob.c: Don't include <pwd.h> on native Windows.
28106         (WINDOWS32): New macro.
28107         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
28108
28109 2008-09-13  Bruno Haible  <bruno@clisp.org>
28110
28111         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
28112         (ETIMEDOUT): Remove macro.
28113         (glthread_cond_timedwait_multithreaded): New declaration.
28114         (glthread_cond_timedwait): Use it.
28115         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
28116         (glthread_cond_timedwait_multithreaded): New function.
28117
28118 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
28119
28120         * modules/poll-tests: Do not check for io.h.
28121         * tests/test-poll.c: Check for __MSVCRT__ instead.
28122
28123 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
28124
28125         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
28126         * modules/poll-tests: Add inet_pton, stdbool, sockets.
28127         * tests/test-poll.c: Use them.  Use _pipe on Windows.
28128
28129 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
28130
28131         * modules/poll-tests: New.
28132         * tests/test-poll.c: New.
28133
28134 2008-09-12  Eric Blake  <ebb9@byu.net>
28135
28136         frexp: test for NetBSD failure on -0.0
28137         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
28138         not all, bugs from NetBSD 3.0 have been fixed.
28139         * doc/posix-functions/frexp.texi (frexp): Document bug.
28140         Reported by Thomas Klausner.
28141
28142         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
28143         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
28144         literal -0.0.
28145         Reported by Jonathan C. Patschke <jp@centtech.com>.
28146
28147 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28148
28149         * lib/glthread/cond.h: Use dummy implementation also if
28150         USE_WIN32_THREADS.
28151
28152 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28153
28154         * modules/fnmatch-posix (License): Change to LGPLv2+.
28155         * modules/fnmatch-gnu (License): Likewise.
28156
28157 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28158
28159         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
28160
28161 2008-09-11  Jim Meyering  <meyering@redhat.com>
28162
28163         * users.txt: Add gtk-vnc.
28164
28165 2008-09-08  Simon Josefsson  <simon@josefsson.org>
28166
28167         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
28168         rotate amounts.
28169
28170         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
28171         required for 16-bit and 8-bit rotates.
28172         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
28173         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
28174         UINT8_MAX instead of hard-coded constants.
28175         Suggested by Paul Eggert.
28176
28177 2008-09-07  Bruno Haible  <bruno@clisp.org>
28178
28179         * tests/test-striconveh.c (main): Check behaviour when converting from
28180         UTF-7.
28181
28182         Make striconveh work better with stateful encodings.
28183         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
28184         that iconv does not increment the inptr when returning -1/EINVAL.
28185
28186 2008-09-07  Bruno Haible  <bruno@clisp.org>
28187
28188         * build-aux/config.rpath: Update according to libtool-2.2.6.
28189         * build-aux/config.libpath: Likewise.
28190
28191 2008-09-06  Bruno Haible  <bruno@clisp.org>
28192
28193         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
28194         * lib/freadptr.c (freadptr): Likewise.
28195         * lib/freadseek.c (freadptrinc): Likewise.
28196         Reported by Simon Josefsson.
28197
28198 2008-09-06  Bruno Haible  <bruno@clisp.org>
28199
28200         * modules/freadptr (License): Change to LGPLv2+.
28201         * modules/freadseek (License): Likewise.
28202         Suggested by Eric Blake.
28203
28204         * modules/memchr2 (License): Change to LGPLv2+.
28205         Approved by Eric Blake.
28206
28207 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28208             Bruno Haible  <bruno@clisp.org>
28209
28210         Make gnulib-tool work with native 'sed' on AIX.
28211         * gnulib-tool (sed_noop): New variable.
28212         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
28213         func_add_or_update, func_create_testdir): Use it to initialize sed
28214         script variables.
28215         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28216
28217 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
28218             Bruno Haible  <bruno@clisp.org>
28219
28220         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
28221         also works after #include directives.
28222
28223 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
28224
28225         getdate.y: reject an out-of-range timezone value
28226         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
28227         the range [-24...+24].  When specified with only one or two digits,
28228         * tests/test-getdate.c: Tests for the fix.
28229         * doc/getdate.texi: Document this change.
28230
28231 2008-09-03  Bruno Haible  <bruno@clisp.org>
28232
28233         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
28234
28235 2008-09-02  Simon Josefsson  <simon@josefsson.org>
28236
28237         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
28238         <bruce.korb@gmail.com> with ideas from Ben Pfaff
28239         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
28240         Blake <ebb9@byu.net>.
28241
28242         * tests/test-bitrotate.c: Add more test vectors.
28243
28244 2008-09-02  Eric Blake  <ebb9@byu.net>
28245
28246         vasnprintf-posix: handle large precision via %.*d
28247         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
28248         when handling it ourselves.
28249         * tests/test-vasnprintf-posix.c (test_function): Add test.
28250         * tests/test-snprintf-posix.h (test_function): Likewise.
28251         * tests/test-sprintf-posix.h (test_function): Likewise.
28252         * tests/test-vasprintf-posix.c (test_function): Likewise.
28253         Reported by Alain Guibert.
28254
28255 2008-09-01  Eric Blake  <ebb9@byu.net>
28256
28257         c-stack: make configure-time check more robust
28258         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
28259         successful sigaction call.
28260         Reported by Tom G. Christensen.
28261
28262 2008-09-01  Bruno Haible  <bruno@clisp.org>
28263
28264         New module 'findprog-lgpl'.
28265         * modules/findprog-lgpl: New file.
28266         * lib/findprog-lgpl.c: New file.
28267         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
28268         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
28269         to decide whether to use strdup or xstrdup, concatenated_filename or
28270         xconcatenated_filename.
28271
28272 2008-09-01  Bruno Haible  <bruno@clisp.org>
28273
28274         Split module 'concat-filename' into 'concat-filename' (LGPL) and
28275         'xconcat-filename' (GPL).
28276         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
28277         (License): Change to LGPLv2+.
28278         * modules/xconcat-filename: New file.
28279         * lib/concat-filename.h (concatenated_filename): Change specification.
28280         (xconcatenated_filename): New declaration.
28281         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
28282         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
28283         memory situations.
28284         * lib/xconcat-filename.c: New file.
28285         * NEWS: Mention the change.
28286         * lib/findprog.c: Include concat-filename.h, not filename.h.
28287         (find_in_path): Use xconcatenated_filename instead of
28288         concatenated_filename.
28289         * lib/javacomp.c: Include concat-filename.h, not filename.h.
28290         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
28291         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
28292         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
28293         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
28294         instead of concatenated_filename.
28295         * lib/javaexec.c: Include concat-filename.h, not filename.h.
28296         (execute_java_class): Use xconcatenated_filename instead of
28297         concatenated_filename.
28298         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
28299         * modules/javacomp (Depends-on): Likewise.
28300         * modules/javaexec (Depends-on): Likewise.
28301
28302 2008-09-01  Bruno Haible  <bruno@clisp.org>
28303
28304         Split module 'filename' into 'filename' and 'concat-filename'.
28305         * modules/filename: Keep only lib/filename.h.
28306         (License): Change to LGPLv2+.
28307         * modules/concat-filename: New file, extracted from modules/filename.
28308         * lib/filename.h (concatenated_filename): Remove declaration.
28309         * lib/concat-filename.h: New file, extracted from lib/filename.h.
28310         * lib/concat-filename.c: Include concat-filename.h.
28311         * NEWS: Mention the change.
28312
28313 2008-09-01  Simon Josefsson  <simon@josefsson.org>
28314
28315         * lib/bitrotate.h (rotl8, rotr8): Add.
28316
28317         * modules/bitrotate (configure.ac): Need
28318         AC_REQUIRE([AC_C_INLINE]).
28319         (Description): Mention stdint.h.  Reported by Bruno Haible
28320         <bruno@clisp.org>.
28321
28322         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
28323         Paolo Bonzini <bonzini@gnu.org>.
28324
28325 2008-08-31  Bruno Haible  <bruno@clisp.org>
28326
28327         Assume Solaris specific bi-arch conventions on Solaris systems.
28328         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
28329         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
28330         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
28331         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
28332         like acl_libdirstem.
28333         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
28334         acl_libdirstem.
28335         * NEWS: Mention the change.
28336         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
28337
28338 2008-08-31  Jim Meyering  <meyering@redhat.com>
28339
28340         * lib/strftime.h: Add comments describing the two added arguments.
28341
28342         remove duplicate #include directives
28343         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
28344         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
28345
28346 2008-08-31  Bruno Haible  <bruno@clisp.org>
28347
28348         New module 'sigpipe-die'.
28349         * modules/sigpipe-die: New file.
28350         * lib/sigpipe-die.h: New file.
28351         * lib/sigpipe-die.c: New file.
28352         * MODULES.html.sh (Signal handling): Add sigpipe-die.
28353
28354 2008-08-31  Bruno Haible  <bruno@clisp.org>
28355
28356         Don't override previously installed signal handlers.
28357         * lib/fatal-signal.c (saved_sigactions): New variable.
28358         (uninstall_handlers): Reset the signal to the saved handler, not
28359         to SIG_DFL (except when ignored).
28360         (install_handlers): Save the previous handlers.
28361
28362 2008-08-30  Bruno Haible  <bruno@clisp.org>
28363
28364         * gnulib-tool (func_reset_sigpipe): New function.
28365         (func_get_automake_snippet, func_modules_transitive_closure,
28366         func_import): Invoke it before a join command that reads from stdin,
28367         to avoid "echo: write error: Broken pipe" error messages on stderr.
28368         Reported by Sam Steingold <sds@gnu.org>.
28369
28370 2008-08-30  Bruno Haible  <bruno@clisp.org>
28371
28372         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
28373         Code copied from m4/open.m4.
28374         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
28375         access and the filename ends in a slash. Code copied from lib/open.c.
28376         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
28377         * tests/test-fopen.c (main): Check against bug with trailing slash.
28378
28379 2008-08-29  Bruno Haible  <bruno@clisp.org>
28380
28381         Avoid some "gcc -pedantic" warnings.
28382         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
28383         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
28384         * lib/dirent.in.h: Likewise.
28385         * lib/fcntl.in.h: Likewise.
28386         * lib/float.in.h: Likewise.
28387         * lib/iconv.in.h: Likewise.
28388         * lib/inttypes.in.h: Likewise.
28389         * lib/locale.in.h: Likewise.
28390         * lib/math.in.h: Likewise.
28391         * lib/netinet_in.in.h: Likewise.
28392         * lib/search.in.h: Likewise.
28393         * lib/signal.in.h: Likewise.
28394         * lib/stdarg.in.h: Likewise.
28395         * lib/stdint.in.h: Likewise.
28396         * lib/stdio.in.h: Likewise.
28397         * lib/stdlib.in.h: Likewise.
28398         * lib/string.in.h: Likewise.
28399         * lib/strings.in.h: Likewise.
28400         * lib/sys_select.in.h: Likewise.
28401         * lib/sys_socket.in.h: Likewise.
28402         * lib/sys_stat.in.h: Likewise.
28403         * lib/sys_time.in.h: Likewise.
28404         * lib/sysexits.in.h: Likewise.
28405         * lib/time.in.h: Likewise.
28406         * lib/unistd.in.h: Likewise.
28407         * lib/wchar.in.h: Likewise.
28408         * lib/wctype.in.h: Likewise.
28409         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
28410         * modules/fchdir (Makefile.am): Likewise.
28411         * modules/fcntl (Makefile.am): Likewise.
28412         * modules/float (Makefile.am): Likewise.
28413         * modules/iconv_open (Makefile.am): Likewise.
28414         * modules/inttypes (Makefile.am): Likewise.
28415         * modules/locale (Makefile.am): Likewise.
28416         * modules/math (Makefile.am): Likewise.
28417         * modules/netinet_in (Makefile.am): Likewise.
28418         * modules/search (Makefile.am): Likewise.
28419         * modules/signal (Makefile.am): Likewise.
28420         * modules/stdarg (Makefile.am): Likewise.
28421         * modules/stdint (Makefile.am): Likewise.
28422         * modules/stdio (Makefile.am): Likewise.
28423         * modules/stdlib (Makefile.am): Likewise.
28424         * modules/string (Makefile.am): Likewise.
28425         * modules/strings (Makefile.am): Likewise.
28426         * modules/sys_select (Makefile.am): Likewise.
28427         * modules/sys_socket (Makefile.am): Likewise.
28428         * modules/sys_stat (Makefile.am): Likewise.
28429         * modules/sys_time (Makefile.am): Likewise.
28430         * modules/sysexits (Makefile.am): Likewise.
28431         * modules/time (Makefile.am): Likewise.
28432         * modules/unistd (Makefile.am): Likewise.
28433         * modules/wchar (Makefile.am): Likewise.
28434         * modules/wctype (Makefile.am): Likewise.
28435         Reported by Reuben Thomas <rrt@sc3d.org>.
28436
28437 2008-08-29  Bruno Haible  <bruno@clisp.org>
28438
28439         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
28440         any more.
28441
28442 2008-08-29  Simon Josefsson  <simon@josefsson.org>
28443
28444         * MODULES.html.sh (Misc): Add bitrotate.
28445
28446         * modules/bitrotate: New file.
28447
28448         * lib/bitrotate.h: New file.
28449
28450         * modules/bitrotate-tests: New file.
28451
28452         * tests/test-bitrotate.c: New file.
28453
28454         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
28455         on the bitrotate module.
28456
28457         * lib/arctwo.c: Use new bitrotate module.
28458
28459 2008-08-29  Jim Meyering  <meyering@redhat.com>
28460
28461         bootstrap: merge changes from coreutils
28462         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
28463         of copied files.  Remove a kludge, now that this is fixed.
28464         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
28465         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
28466         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
28467
28468 2008-08-29  Bruno Haible  <bruno@clisp.org>
28469
28470         * MODULES.html.sh: Remove --cvs-urls option.
28471
28472 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
28473
28474         maint.mk: adjust to file name change
28475         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
28476
28477 2008-08-28  Jim Meyering  <meyering@redhat.com>
28478
28479         * modules/getndelim2 (License): Relicense to LGPLv2+.
28480         Approved by Richard Stallman for the version of 1995, and by
28481         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
28482
28483 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
28484
28485         * lib/getdelim.c (flockfile, funlockfile): Make all of them
28486         dummy if one is not available.  Do not touch them if
28487         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
28488         (getc_maybe_unlocked): New.
28489         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
28490
28491 2008-08-26  Eric Blake  <ebb9@byu.net>
28492
28493         doc/INSTALL: resync from autoconf
28494         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
28495         (INSTALL_PRELUDE): Delete; this is done more efficiently by
28496         moving...
28497         * install.texi [!autoconf]: ...here.  Resync from autoconf.
28498         * INSTALL: Regenerate.
28499         * INSTALL.ISO: New file.
28500         * INSTALL.UTF-8: Likewise.
28501
28502 2008-08-26  Jim Meyering  <meyering@redhat.com>
28503
28504         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
28505         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
28506         these definitions conditional, so that they may be overridden, too.
28507
28508 2008-08-26  Bruno Haible  <bruno@clisp.org>
28509
28510         Generate INSTALL file variants with prettier quotes.
28511         * doc/Makefile (INSTALL_PRELUDE): New macro.
28512         (INSTALL): Use it.
28513         (INSTALL.ISO, INSTALL.UTF-8): New rules.
28514
28515 2008-08-26  Bruno Haible  <bruno@clisp.org>
28516
28517         Run makeinfo in an English locale.
28518         * doc/Makefile (MAKEINFO): New variable.
28519
28520 2008-08-26  Bruno Haible  <bruno@clisp.org>
28521
28522         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
28523         Suggested by Eric Blake.
28524
28525 2008-08-25  Bruno Haible  <bruno@clisp.org>
28526
28527         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
28528
28529 2008-08-25  Eric Blake  <ebb9@byu.net>
28530
28531         c-stack: test that stack overflow can be caught
28532         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
28533         that platform allows handling stack overflow; at least OS/2 EMX
28534         has sigaltstack, but crashes before transferring control to
28535         handler on stack overflow.
28536         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
28537         check for HAVE_STACK_OVERFLOW_HANDLING.
28538         Reported by Elbert Pol.
28539
28540 2008-08-25  Bruno Haible  <bruno@clisp.org>
28541
28542         * doc/posix-functions/strftime.texi: Fix description of strftime
28543         module.
28544
28545 2008-08-24  Bruno Haible  <bruno@clisp.org>
28546
28547         * tests/uniwidth/test-uc_width2.c: New file.
28548         * tests/uniwidth/test-uc_width2.sh: New file.
28549         * modules/uniwidth/width-tests (Files): Add the new files.
28550         (TESTS): Add uniwidth/test-uc_width2.sh.
28551         (TESTS_ENVIRONMENT): New variable.
28552         (check_PROGRAMS): Add test-uc_width2.
28553         (test_uc_width2_SOURCES): New variable.
28554
28555         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
28556         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
28557         not 0x00AB.
28558         Reported by Alexander V. Lukyanov <lav@netis.ru>.
28559
28560 2008-08-22  Eric Blake  <ebb9@byu.net>
28561
28562         test-lock, test-tls: mention why a test is skipped
28563         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
28564         skipped.
28565         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
28566
28567         count-one-bits: relax license
28568         * modules/count-one-bits (License): Relicense to LGPLv2+.
28569         Suggested by Ludovic Courtès, approved by Ben Pfaff.
28570
28571 2008-08-22  Andreas Schwab  <schwab@suse.de>
28572
28573         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
28574         Remove spurious space in assignment.
28575
28576 2008-08-21  Simon Josefsson  <simon@josefsson.org>
28577
28578         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
28579         Paul Eggert <eggert@CS.UCLA.EDU>.
28580
28581 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
28582
28583         * modules/gettext: Add m4/threadlib.m4.
28584
28585 2008-08-19  Eric Blake  <ebb9@byu.net>
28586
28587         test-c-stack: fix compilation failure on FreeBSD 5.0
28588         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
28589         headers before <sys/resource.h>.
28590         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
28591         the bug.
28592         Reported by Nelson H. F. Beebe.
28593
28594         strverscmp: migrate from "strverscmp.h" to <string.h>
28595         * modules/string (Makefile.am): Add new hooks.
28596         * modules/strverscmp (Files): Remove strverscmp.h.
28597         (Depends-on): Add string.
28598         (configure.ac): Add indicator.
28599         (Include): Mention new header.
28600         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
28601         defaults.
28602         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
28603         results.
28604         * lib/strverscmp.h: Delete.
28605         * lib/string.in.h (strverscmp): Provide declaration, when needed.
28606         * tests/test-strverscmp.c (includes): Adjust client.
28607         * lib/check-version.c (includes): Likewise.
28608         * NEWS: Document the change.
28609
28610         strverscmp: add unit test
28611         * modules/strverscmp-tests: New file.
28612         * tests/test-strverscmp.c: Likewise.
28613
28614 2008-08-19  Simon Josefsson  <simon@josefsson.org>
28615
28616         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
28617         regarding Windows crypto stuff, from Mono.
28618
28619 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
28620
28621         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
28622         if present, for intel RND.  Return error on failures.
28623
28624 2008-08-18  Ben Pfaff  <blp@gnu.org>
28625
28626         gitlog-to-changelog: give better diagnostic for failed pipe-open
28627         * build-aux/gitlog-to-changelog: Improve error message: suggest
28628         that the version of Git may be too old.
28629
28630 2008-08-18  Simon Josefsson  <simon@josefsson.org>
28631
28632         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
28633         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
28634
28635 2008-08-18  Bruno Haible  <bruno@clisp.org>
28636
28637         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
28638         pthread_in_use().
28639
28640 2008-08-18  Bruno Haible  <bruno@clisp.org>
28641
28642         * lib/glthread/threadlib.c: Include <pthread.h>.
28643
28644 2008-08-18  Bruno Haible  <bruno@clisp.org>
28645
28646         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
28647         glthread_recursive_lock_* macros.
28648         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
28649         Fix syntax error.
28650
28651 2008-08-18  Bruno Haible  <bruno@clisp.org>
28652
28653         * lib/glthread/thread.c: Avoid forcing a context switch right after
28654         thread creation.
28655
28656 2008-08-17  Bruno Haible  <bruno@clisp.org>
28657
28658         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
28659         * lib/glthread/thread.h: Provide Win32 specific implementation.
28660         * modules/thread (Files): Add lib/glthread/thread.c.
28661         (Depends-on): Add lock.
28662         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
28663
28664 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28665
28666         New module 'yield'.
28667         * modules/yield: New file.
28668         * lib/glthread/yield.h: New file.
28669         * m4/yield.m4: New file.
28670         * MODULES.html.sh (Multithreading): Add yield.
28671
28672 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28673
28674         New module 'thread'.
28675         * modules/thread: New file.
28676         * lib/glthread/thread.h: New file.
28677         * m4/thread.m4: New file.
28678         * MODULES.html.sh (Multithreading): Add thread.
28679
28680 2008-08-17  Bruno Haible  <bruno@clisp.org>
28681
28682         * lib/glthread/lock.h: Include <stdlib.h> always.
28683         * lib/glthread/tls.h: Likewise.
28684         * lib/glthread/cond.h: Likewise.
28685
28686 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28687
28688         New module 'cond'.
28689         * modules/cond: New file.
28690         * lib/glthread/cond.h: New file.
28691         * lib/glthread/cond.c: New file.
28692         * m4/cond.m4: New file.
28693         * MODULES.html.sh (Multithreading): Add cond.
28694
28695 2008-08-16  Eric Blake  <ebb9@byu.net>
28696
28697         c-stack: fix regression on Irix 5.3 from 2008-06-21
28698         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
28699         sa_sigaction...
28700         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
28701         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
28702         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
28703         * modules/signal (Makefile.am): Use the value.
28704         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
28705         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
28706         * doc/posix-headers/signal.texi (signal.h): Document this
28707         portability issue.
28708         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
28709         Reported by Tom G. Christensen.
28710
28711 2008-08-17  Bruno Haible  <bruno@clisp.org>
28712
28713         New module 'threadlib'.
28714         * modules/threadlib: New file.
28715         * lib/glthread/threadlib.c: New file, extracted from
28716         lib/glthread/lock.c.
28717         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
28718         functions.
28719         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
28720         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
28721         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
28722         macros.
28723         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
28724         (gl_DISABLE_THREADS): Remove macro.
28725         * modules/lock (Files): Remove build-aux/config.rpath.
28726         (Depends-on): Remove havelib. Add threadlib.
28727         (configure.ac-early): Remove section.
28728         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
28729         * modules/tls (Depends-on): Remove lock. Add threadlib.
28730         (Link): New section, copied from threadlib.
28731         * MODULES.html.sh (Multithreading): Add threadlib.
28732
28733 2008-08-14  Bruno Haible  <bruno@clisp.org>
28734
28735         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
28736         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
28737         glthread_rwlock_unlock, glthread_rwlock_destroy,
28738         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
28739         glthread_recursive_lock_destroy): Define as macros always.
28740         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
28741         glthread_lock_lock.
28742         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
28743         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
28744         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
28745         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
28746         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
28747         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
28748         (glthread_recursive_lock_lock_func): Renamed from
28749         glthread_recursive_lock_lock.
28750         (glthread_recursive_lock_unlock_func): Renamed from
28751         glthread_recursive_lock_unlock.
28752         (glthread_recursive_lock_destroy_func): Renamed from
28753         glthread_recursive_lock_destroy.
28754
28755 2008-08-14  Bruno Haible  <bruno@clisp.org>
28756
28757         * lib/glthread/lock.h: Renamed from lib/lock.h.
28758         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
28759         * lib/glthread/tls.h: Renamed from lib/tls.h.
28760         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
28761         * lib/fstrcmp.c: Update includes.
28762         * lib/strsignal.c: Update includes.
28763         * modules/lock (Files, Makefile.am): Update.
28764         (Include): Change to "glthread/lock.h".
28765         * modules/tls (Files, Makefile.am): Update.
28766         (Include): Change to "glthread/tls.h".
28767         * tests/test-lock.c: Update includes.
28768         * tests/test-tls.c: Update includes.
28769         * NEWS: Mention the renamed header files.
28770
28771 2008-08-11  Jim Meyering  <meyering@redhat.com>
28772
28773         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
28774
28775 2008-08-11  Eric Blake  <ebb9@byu.net>
28776
28777         test-c-stack: avoid C99-ism
28778         * tests/test-c-stack.c (main): Fix whitespace, move declaration
28779         before statement.
28780         Reported by Alain Guibert.
28781
28782 2008-08-10  Jim Meyering  <meyering@redhat.com>
28783
28784         ensure that return value of uinttostr et al are not ignored
28785         * lib/inttostr.h (__GNUC_PREREQ): Define.
28786         (__attribute_warn_unused_result__): Define.
28787         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
28788
28789 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
28790
28791         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
28792         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
28793
28794 2008-08-07  Jim Meyering  <meyering@redhat.com>
28795
28796         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
28797
28798         * modules/mkstemp (License): Relicense under LGPLv2+.
28799         * modules/tempname (License): Likewise.
28800
28801 2008-08-06  Bruno Haible  <bruno@clisp.org>
28802
28803         * lib/poll.c (poll): Further micro-optimization.
28804
28805 2008-08-06  Jim Meyering  <meyering@redhat.com>
28806
28807         inet_pton.c: use locale-independent tolower
28808         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
28809         (inet_pton6): Use c_tolower rather than tolower.
28810         * modules/inet_pton (Depends-on): Add c-ctype.
28811
28812 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
28813
28814         * lib/poll.c (poll): Avoid division when timeout is 0, cache
28815         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
28816
28817 2008-08-06  Jim Meyering  <meyering@redhat.com>
28818
28819         * modules/inet_pton (License): Relicense under LGPLv2+.
28820
28821 2008-08-03  Bruno Haible  <bruno@clisp.org>
28822
28823         Additional non-aborting API for lock and tls.
28824         * lib/lock.h: Include <errno.h>.
28825         (glthread_lock_init): New macro/function.
28826         (gl_lock_init): Define as wrapper around glthread_lock_init.
28827         (glthread_lock_lock): New macro/function.
28828         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
28829         (glthread_lock_unlock): New macro/function.
28830         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
28831         (glthread_lock_destroy): New macro/function.
28832         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
28833         (glthread_rwlock_init): New macro/function.
28834         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
28835         (glthread_rwlock_rdlock): New macro/function.
28836         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
28837         (glthread_rwlock_wrlock): New macro/function.
28838         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
28839         (glthread_rwlock_unlock): New macro/function.
28840         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
28841         (glthread_rwlock_destroy): New macro/function.
28842         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
28843         (glthread_recursive_lock_init): New macro/function.
28844         (gl_recursive_lock_init): Define as wrapper around
28845         glthread_recursive_lock_init.
28846         (glthread_recursive_lock_lock): New macro/function.
28847         (gl_recursive_lock_lock): Define as wrapper around
28848         glthread_recursive_lock_lock.
28849         (glthread_recursive_lock_unlock): New macro/function.
28850         (gl_recursive_lock_unlock): Define as wrapper around
28851         glthread_recursive_lock_unlock.
28852         (glthread_recursive_lock_destroy): New macro/function.
28853         (gl_recursive_lock_destroy): Define as wrapper around
28854         glthread_recursive_lock_destroy.
28855         (glthread_once): New macro/function.
28856         (gl_once): Define as wrapper around glthread_once.
28857         Update function declarations.
28858         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
28859         glthread_rwlock_init. Return error code.
28860         (glthread_rwlock_rdlock_multithreaded): Renamed from
28861         glthread_rwlock_rdlock. Return error code.
28862         (glthread_rwlock_wrlock_multithreaded): Renamed from
28863         glthread_rwlock_wrlock. Return error code.
28864         (glthread_rwlock_unlock_multithreaded): Renamed from
28865         glthread_rwlock_unlock. Return error code.
28866         (glthread_rwlock_destroy_multithreaded): Renamed from
28867         glthread_rwlock_destroy. Return error code.
28868         (glthread_recursive_lock_init_multithreaded): Renamed from
28869         glthread_recursive_lock_init. Return error code.
28870         (glthread_recursive_lock_lock_multithreaded): Renamed from
28871         glthread_recursive_lock_lock. Return error code.
28872         (glthread_recursive_lock_unlock_multithreaded): Renamed from
28873         glthread_recursive_lock_unlock. Return error code.
28874         (glthread_recursive_lock_destroy_multithreaded): Renamed from
28875         glthread_recursive_lock_destroy. Return error code.
28876         (glthread_once_call): Make static.
28877         (glthread_once_multithreaded): Renamed from glthread_once.
28878         * lib/tls.h: Include <errno.h>.
28879         (glthread_tls_key_init): New macro/function.
28880         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
28881         (glthread_tls_set): New macro/function.
28882         (gl_tls_set): Define as wrapper around glthread_tls_set.
28883         (glthread_tls_key_destroy): New macro/function.
28884         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
28885         Update function declarations.
28886         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
28887         glthread_tls_get.
28888         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
28889
28890 2008-08-04  Eric Blake  <ebb9@byu.net>
28891
28892         gnumakefile: use space, not TAB, outside of targets
28893         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
28894
28895 2008-08-02  Jim Meyering  <meyering@redhat.com>
28896
28897         getdate.y: avoid locale-dependent date parsing failure
28898         In Turkish locales, getdate would fail to recognize keywords
28899         containing a lowercase "i".  The solution is not to rely on
28900         locale-sensitive case-conversion.
28901         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
28902         (lookup_word): Use c_toupper in place of toupper.
28903         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
28904         Reported by Vefa Bicakci <bicave@superonline.com> in
28905         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
28906         * modules/getdate (Depends-on): Add c-ctype.
28907
28908 2008-08-02  Bruno Haible  <bruno@clisp.org>
28909
28910         * gnulib-tool (func_import): When updating or creating a .gitignore
28911         file, prepend each added line with a slash, and ignore leading slashes
28912         from the existing lines.
28913         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
28914
28915 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28916
28917         Portability fix for GNU make 3.79.1.
28918         * top/GNUmakefile: Avoid 'else COND', which older GNU make
28919         versions do not understand.
28920
28921 2008-08-01  Bruno Haible  <bruno@clisp.org>
28922
28923         Work around bug of HP-UX 10.20 cc with -0.0 literal.
28924         * tests/test-isnanf.h (zero): New variable.
28925         (main): Avoid literal -0.0f.
28926         * tests/test-isnand.h (zero): New variable.
28927         (main): Avoid literal -0.0.
28928         * tests/test-isnanl.h (zero): New variable.
28929         (main): Avoid literal -0.0L.
28930         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
28931         (test_float, test_double, test_long_double): Avoid literals -0.0f,
28932         -0.0, -0.0L.
28933         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
28934         (test_signbitd): Avoid literal -0.0.
28935         (test_signbitl): Avoid literal -0.0L.
28936         * tests/test-ceilf1.c (zero): New variable.
28937         (main): Avoid literal -0.0f.
28938         * tests/test-ceill.c (zero): New variable.
28939         (main): Avoid literal -0.0L.
28940         * tests/test-floorf1.c (zero): New variable.
28941         (main): Avoid literal -0.0f.
28942         * tests/test-floorl.c (zero): New variable.
28943         (main): Avoid literal -0.0L.
28944         * tests/test-roundf1.c (zero): New variable.
28945         (main): Avoid literal -0.0f.
28946         * tests/test-round1.c (zero): New variable.
28947         (main): Avoid literal -0.0.
28948         * tests/test-roundl.c (zero): New variable.
28949         (main): Avoid literal -0.0L.
28950         * tests/test-truncf1.c (zero): New variable.
28951         (main): Avoid literal -0.0f.
28952         * tests/test-trunc1.c (zero): New variable.
28953         (main): Avoid literal -0.0.
28954         * tests/test-truncl.c (zero): New variable.
28955         (main): Avoid literal -0.0L.
28956         * tests/test-frexp.c (zero): New variable.
28957         (main): Avoid literal -0.0.
28958         * tests/test-frexpl.c (zero): New variable.
28959         (main): Avoid literal -0.0L.
28960         * tests/test-ldexpl.c (zero): New variable.
28961         (main): Avoid literal -0.0L.
28962         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
28963         (zerod, zerol): New variables.
28964         (test_function): Avoid literals -0.0, -0.0L.
28965         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
28966         (zerod, zerol): New variables.
28967         (test_function): Avoid literals -0.0, -0.0L.
28968         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
28969         (zerod, zerol): New variables.
28970         (test_function): Avoid literals -0.0, -0.0L.
28971         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
28972         (zerod, zerol): New variables.
28973         (test_function): Avoid literals -0.0, -0.0L.
28974         * tests/test-strtod.c (zero): New variable.
28975         (main): Avoid literal -0.0.
28976         Reported by Jonathan C. Patschke <jp@centtech.com>.
28977
28978 2008-07-31  Jim Meyering  <meyering@redhat.com>
28979
28980         sha256.h: correct definition of SHA224_DIGEST_SIZE
28981         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
28982         Reported by Paulie Pena IV <paulie4@gmail.com>.
28983         Define as 224 / 8, rather than as a literal.
28984         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
28985         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
28986         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
28987
28988 2008-07-31  Bruno Haible  <bruno@clisp.org>
28989
28990         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
28991         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
28992         Reported by Jonathan Patschke <jp@centtech.com>.
28993
28994 2008-07-31  Bruno Haible  <bruno@clisp.org>
28995
28996         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
28997         Reported by Paolo Bonzini <bonzini@gnu.org>.
28998
28999 2008-07-30  Eric Blake  <ebb9@byu.net>
29000
29001         test-strtod: allow compilation without -lm
29002         * tests/test-strtod.c (main): Avoid link dependence on fabs.
29003         Reported by Dennis Clarke <blastwave@gmail.com>.
29004
29005 2008-07-28  Jim Meyering  <meyering@redhat.com>
29006
29007         bootstrap: work also when there are no .po files in po/
29008         * build-aux/bootstrap (update_po_files): Complete the change
29009         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
29010
29011 2008-07-27  Jim Meyering  <meyering@redhat.com>
29012
29013         * users.txt: Add zile.
29014
29015 2008-07-26  Ben Pfaff  <blp@gnu.org>
29016
29017         Add missing dependencies on new m4/exponent[fdl].m4 files.
29018         * modules/isnanf-nolibm: Add m4/exponentf.m4.
29019         * modules/isnand-nolibm: Add m4/exponentd.m4.
29020         * modules/isnanl-nolibm: Add m4/exponentl.m4.
29021         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
29022         m4/isnan[fdl].m4, because the macros actually used moved.
29023         Reported by Jim Meyering.
29024
29025 2008-07-14  Ben Pfaff  <blp@gnu.org>
29026
29027         Add isinf module.
29028         * lib/isinf.c: New file.
29029         * lib/math.in.h: Define isinf macro if we have decided to replace
29030         it.
29031         * m4/isinf.m4: New file.
29032         * m4/math_h.m4: Initialize and substitute variables for isinf
29033         module.
29034         * modules/isinf: New file.
29035         * modules/isinf-tests: New file.
29036         * modules/math: Add substitutions for new module.
29037         * tests/test-isinf.c: New file.
29038         * doc/posix-functions/isinf.texi: Mention new module.
29039         * MODULES.html.sh: Mention new module.
29040
29041 2008-07-14  Ben Pfaff  <blp@gnu.org>
29042
29043         Factor out some macros for use by additional modules.
29044         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
29045         exponentf.m4.
29046         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
29047         exponentd.m4.
29048         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
29049         file exponentl.m4.
29050         * m4/exponentf.m4: New file.
29051         * m4/exponentd.m4: New file.
29052         * m4/exponentl.m4: New file.
29053         * modules/isnanf: Use new file m4/exponentf.m4.
29054         * modules/isnand: Use new file m4/exponentd.m4.
29055         * modules/isnanl: Use new file m4/exponentl.m4.
29056
29057 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
29058
29059         mktime.c: normalize tp->tm_isdst value to -1/0/1.
29060         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
29061         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
29062         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
29063
29064         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
29065         readlink on platforms without PATH_MAX.
29066
29067 2008-07-21  Eric Blake  <ebb9@byu.net>
29068
29069         Warn, not fail, on stale version.
29070         * top/GNUmakefile (_curr-ver): Tone down previous patch.
29071
29072         Don't allow installation with stale devel version number.
29073         * top/GNUmakefile (_is-install-target): New macro.
29074         (_curr-ver): Forbid installation with stale version number.
29075
29076 2008-07-20  Bruno Haible  <bruno@clisp.org>
29077
29078         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
29079         TESTS_ENVIRONMENT.
29080         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
29081
29082 2008-07-20  Bruno Haible  <bruno@clisp.org>
29083
29084         * lib/c-stack.h (c_stack_action): Add documentation.
29085         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
29086
29087 2008-07-20  Bruno Haible  <bruno@clisp.org>
29088
29089         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
29090         * modules/readlink (License): Likewise.
29091
29092 2008-07-17  Eric Blake  <ebb9@byu.net>
29093
29094         * modules/c-stack (Link): Fix typo.
29095
29096         Make c-stack use libsigsegv, when available.
29097         * modules/c-stack (Depends-on): Add libsigsegv.
29098         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
29099         needed.
29100         * lib/c-stack.c (SIGSTKSZ): Define fallback.
29101         (segv_handler, overflow_handler, c_stack_action)
29102         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
29103         implementation when libsigsegv is available, but only when using
29104         the library is necessary.
29105         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
29106         comment, explaining why XSI check fails on Linux.
29107         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
29108         * tests/test-c-stack2.sh: Tweak skip message.
29109         * NEWS: Document new link-time requirements.
29110
29111 2008-07-16  Eric Blake  <ebb9@byu.net>
29112
29113         c-stack: Expose false positives when not using libsigsegv.
29114         * modules/c-stack-tests (Files): Expand test.
29115         * tests/test-c-stack.c (main): Add means to conditionally trigger
29116         non-overflow SIGSEGV.
29117         * tests/test-c-stack2.sh: New file.
29118
29119 2008-07-14  Bruno Haible  <bruno@clisp.org>
29120
29121         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
29122         Reported by Eric Blake.
29123
29124 2008-07-14  Sam Steingold  <sds@gnu.org>
29125             Bruno Haible  <bruno@clisp.org>
29126
29127         New module libsigsegv.
29128         * modules/libsigsegv: New file.
29129         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
29130         modifications.
29131         * MODULES.html.sh (Signal handling): New section.
29132
29133 2008-07-14  Bruno Haible  <bruno@clisp.org>
29134
29135         * modules/unictype/ctype-* (Description): Add the word "function".
29136         Improves the resulting doc in MODULES.html.
29137
29138 2008-07-12  Ben Pfaff  <blp@gnu.org>
29139
29140         Add longlong module.
29141         * modules/longlong: New file.
29142
29143 2008-07-12  Bruno Haible  <bruno@clisp.org>
29144
29145         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
29146         to empty.
29147
29148 2008-07-10  Ben Pfaff  <blp@gnu.org>
29149
29150         Add isnan module.
29151         * doc/posix-functions/isnan.texi: Mention new module.
29152         * lib/math.in.h: Define isnan macro if we have decided to replace
29153         it.
29154         * m4/isnan.m4: New file.
29155         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
29156         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
29157         also.
29158         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
29159         redundancy.
29160         * m4/math_h.m4: Initialize and substitute variables for isnan
29161         module.
29162         * modules/isnan: New file.
29163         * modules/isnan-tests: New file.
29164         * modules/math: Add substitutions for new module.
29165         * tests/test-isnan.c: New file.
29166         * MODULES.html.sh: Mention new module.
29167
29168 2008-07-10  Ben Pfaff  <blp@gnu.org>
29169
29170         Add isnanf module.
29171         * lib/isnanf.m4: New file.
29172         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
29173         (gl_HAVE_ISNANF_IN_LIBM): New macro.
29174         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
29175         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
29176         * modules/isnanf: New file.
29177         * modules/isnanf-tests: New file.
29178         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
29179         files.
29180         * tests/test-isnanf-nolibm.c: factored most of its contents into
29181         new file tests/test-isnanf.h.
29182         * tests/test-isnanf.h: New file.
29183         * tests/test-isnanf.c: New file.
29184         * MODULES.html.sh: Mention new module.
29185         * doc/glibc-functions/isnanf.texi: Mention new module.
29186
29187 2008-07-10  Ben Pfaff  <blp@gnu.org>
29188
29189         Add isnand module.
29190         * lib/isnand.h: New file.
29191         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
29192         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
29193         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
29194         functionality also.
29195         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
29196         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
29197         (gl_HAVE_ISNAND_IN_LIBM): New macro.
29198         * modules/isnand: New file.
29199         * modules/isnand-tests: New file.
29200         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
29201         files.
29202         * tests/test-isnand-nolibm.c: factored most of its contents into
29203         new file tests/test-isnand.h.
29204         * tests/test-isnand.h: New file.
29205         * tests/test-isnand.c: New file.
29206         * MODULES.html.sh: Mention new module.
29207
29208 2008-07-10  Ben Pfaff  <blp@gnu.org>
29209
29210         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
29211         * lib/isnand.h: Rename lib/isnand-nolibm.h.
29212         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
29213         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
29214         * modules/isnanf-nolibm: Update references to renamed files.
29215         * modules/isnand-nolibm: Likewise.
29216         * modules/isnanf-nolibm-tests: Likewise.
29217         * modules/isnand-nolibm-tests: Likewise.
29218         * lib/frexp.c: Likewise.
29219         * lib/isfinite.c: Likewise.
29220         * lib/signbitd.c: Likewise.
29221         * lib/signbitf.c: Likewise.
29222         * lib/vasnprintf.c: Likewise.
29223         * tests/test-ceilf1.c: Likewise.
29224         * tests/test-ceilf2.c: Likewise.
29225         * tests/test-floorf1.c: Likewise.
29226         * tests/test-floorf2.c: Likewise.
29227         * tests/test-frexp.c: Likewise.
29228         * tests/test-round1.c: Likewise.
29229         * tests/test-round2.c: Likewise.
29230         * tests/test-roundf1.c: Likewise.
29231         * tests/test-strtod.c: Likewise.
29232         * tests/test-trunc1.c: Likewise.
29233         * tests/test-trunc2.c: Likewise.
29234         * tests/test-truncf1.c: Likewise.
29235         * tests/test-truncf2.c: Likewise.
29236         * NEWS: Mention the renamed header files.
29237
29238 2008-07-11  Jim Meyering  <meyering@redhat.com>
29239
29240         vc-list-files: make the last-resort awk code more portable
29241         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
29242         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
29243         does not support it.
29244
29245 2008-07-10  Eric Blake  <ebb9@byu.net>
29246
29247         Work with tar's bootstrap.
29248         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
29249         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
29250         an m4 comment.
29251
29252 2008-07-09  Jim Meyering  <meyering@redhat.com>
29253
29254         posix-shell.m4: fix typo that made this test malfunction
29255         * m4/posix-shell.m4: Remove capitalization in variable name.
29256
29257 2008-07-08  Bruno Haible  <bruno@clisp.org>
29258
29259         * m4/onceonly.m4: Update comments.
29260         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29261
29262 2008-07-04  Jim Meyering  <meyering@redhat.com>
29263
29264         * users.txt: Add vc-dwim.
29265         (bison, coreutils): Use the gitweb URL.
29266
29267 2008-07-03  Jim Meyering  <meyering@redhat.com>
29268
29269         * users.txt: Add libffcall.  From Sam Steingold.
29270
29271 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
29272
29273         getdate.y: do not ignore TZ with relative day, month or year offset
29274         * lib/getdate.y (get_date): Move the tz-handling block to follow the
29275         relative-date-handling, since otherwise, the latter would clobber the
29276         sole output (an updated Start value) of the tz-handling block.
29277         * tests/test-getdate.c: Tests for the fix
29278
29279 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29280
29281         Recognize 'foo_LIBRARIES += libgnu.a'.
29282         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
29283         makefile snippet has already specified an installation location,
29284         also using '+='.
29285
29286 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
29287
29288         getdate.y: factor out common actions
29289         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
29290         Use them in place of open-coded actions.
29291
29292 2008-07-01  Simon Josefsson  <simon@josefsson.org>
29293
29294         Add self-test for getdate module.
29295         * modules/getdate-tests: New file.
29296         * tests/test-getdate.c: New file.
29297
29298 2008-06-29  Bruno Haible  <bruno@clisp.org>
29299
29300         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
29301         .gitignore.
29302         Reported by Sylvain Beucler <beuc@beuc.net>.
29303
29304 2008-06-29  Bruno Haible  <bruno@clisp.org>
29305
29306         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
29307         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
29308
29309 2008-06-29  Bruno Haible  <bruno@clisp.org>
29310
29311         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
29312         EXTRA_DIST.
29313         Reported by Sylvain Beucler <beuc@beuc.net>.
29314
29315 2008-06-26  Jim Meyering  <meyering@redhat.com>
29316
29317         make several modules depend on the "open" module
29318         This provides slightly increased consistency when opening-for-write
29319         the name of a non-directory spelled with a trailing slash.
29320         * modules/chdir-safer: Likewise.
29321         * modules/chown: Likewise.
29322         * modules/clean-temp: Likewise.
29323         * modules/copy-file: Likewise.
29324         * modules/fchdir: Likewise.
29325         * modules/fcntl-safer: Likewise.
29326         * modules/pipe: Likewise.
29327         * modules/utime: Likewise.
29328         Prompted by Eric Blake and Bruno Haible.
29329
29330 2008-06-24  Andreas Schwab  <schwab@suse.de>
29331
29332         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
29333         literals can be used as initializers for global variables.
29334
29335 2008-06-23  Eric Blake  <ebb9@byu.net>
29336
29337         Make gnulib-cache.m4 easier to diff.
29338         * gnulib-tool (func_import): Allow newlines when reading cached
29339         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
29340
29341 2008-06-23  Bruno Haible  <bruno@clisp.org>
29342
29343         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
29344         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
29345         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
29346         m4/signalblocking.m4.
29347         (gl_PREREQ_SIGACTION): Don't invoke it.
29348         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
29349         gl_PREREQ_SIG_HANDLER_H.
29350         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
29351         Don't check for sigaction here.
29352
29353 2008-06-23  Bruno Haible  <bruno@clisp.org>
29354
29355         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
29356         (install_handlers): Don't set the SA_RESETHAND flag.
29357
29358 2008-06-23  Bruno Haible  <bruno@clisp.org>
29359
29360         * m4/sigaction.m4: Comment fixes.
29361         * lib/signal.in.h: Likewise.
29362
29363 2008-06-23  Eric Blake  <ebb9@byu.net>
29364
29365         Fix typo.
29366         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
29367
29368         Avoid SA_ namespace.
29369         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
29370         Reported by Ralf Wildenhues.
29371
29372         Avoid test failure due to SA_RESTORER.
29373         * tests/test-sigaction.c (SA_MASK): New macro.
29374         (main): Avoid failing due to extension flags being set.
29375         Reported by Jim Meyering.
29376
29377         Revert use of sig-handler.h in sigprocmask.c.
29378         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
29379         it requires the existence of struct sigaction.
29380         * lib/sigprocmask.c (handler_t): Restore typedef.
29381         (rpl_signal, old_handlers): Use local type.
29382
29383 2008-06-22  Bruno Haible  <bruno@clisp.org>
29384
29385         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
29386         conditionally.
29387         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
29388
29389 2008-06-22  Bruno Haible  <bruno@clisp.org>
29390
29391         * doc/posix-functions/siginterrupt.texi: Move note.
29392
29393         * lib/signal.in.h (SA_RESTART): New macro.
29394         * lib/sigaction.c: Update comment.
29395
29396         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
29397
29398         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
29399         (gl_PREREQ_SIGPROCMASK): Invoke it.
29400         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
29401
29402         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
29403
29404         * lib/sigprocmask.c: Update a comment.
29405
29406 2008-06-21  Eric Blake  <ebb9@byu.net>
29407
29408         Use sigaction module rather than signal().
29409         * modules/c-stack (Depends-on): Add sigaction.
29410         * modules/fatal-signal (Depends-on): Likewise.
29411         * modules/nanosleep (Depends-on): Likewise.
29412         * modules/sigprocmask (Files): Add sig-handler.h.
29413         * modules/sigaction (Files): Likewise.
29414         * lib/sig-handler.h (get_handler): New file, suggested by Paul
29415         Eggert.
29416         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
29417         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
29418         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
29419         (init_fatal_signals): Likewise.
29420         * lib/nanosleep.c (rpl_nanosleep): Likewise.
29421         (siginterrupt): Delete fallback.
29422         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
29423         instead.
29424         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
29425         siginterrupt.
29426
29427         New module sigaction, for mingw.
29428         * modules/sigaction: New module...
29429         * modules/sigaction-tests: ...and its test.
29430         * m4/sigaction.m4: New file.
29431         * lib/sigaction.c: Likewise.
29432         * tests/test-sigaction.c: Likewise.
29433         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
29434         * modules/signal (Makefile.am): Likewise.
29435         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
29436         needed.
29437         * doc/posix-headers/signal.texi (signal.h): Mention provided
29438         types.
29439         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
29440         that sigaction is preferable.
29441         * doc/posix-functions/sigaction.texi (sigaction): Mention new
29442         module.
29443         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
29444         sigaction.
29445
29446         Improve robustness of sigprocmask by overriding signal.
29447         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
29448         is in use.
29449         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
29450         (SIGKILL, SIGSTOP): Provide fallbacks.
29451         (rpl_signal): Implement.
29452         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
29453         signal can be called inside handlers.
29454
29455         Fix nanosleep module on mingw.
29456         * modules/nanosleep (Depends-on): Add sys_select.
29457         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
29458
29459         Fix licensing of sigprocmask.
29460         * modules/raise (License): Relicense as LGPL.
29461
29462 2008-06-21  Bruno Haible  <bruno@clisp.org>
29463
29464         * lib/propername.c (proper_name_utf8): Don't use the transliterated
29465         result if it contains question marks.
29466         Reported by Michael Geng <linux@michaelgeng.de>.
29467
29468 2008-06-19  Bruno Haible  <bruno@clisp.org>
29469
29470         Fix CVS-ism.
29471         * doc/gnulib.texi: Include updated-stamp.texi.
29472         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
29473         (updated-stamp.texi): New rule.
29474         (gnulib.info): Depend on it.
29475         * doc/.gitignore: Add updated-stamp.texi.
29476         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
29477
29478 2008-06-19  Bruno Haible  <bruno@clisp.org>
29479
29480         * doc/Makefile (gnulib.info): Update and simplify dependencies.
29481         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
29482
29483 2008-06-19  Eric Blake  <ebb9@byu.net>
29484
29485         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
29486         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
29487         Reported by Stepan Kasal.
29488
29489 2008-06-18  Bruno Haible  <bruno@clisp.org>
29490
29491         * lib/fatal-signal.c (init_fatal_signals): Add comment.
29492         Reported by Eric Blake.
29493
29494 2008-06-18  Eric Blake  <ebb9@byu.net>
29495
29496         Work around cygwin 1.5.25 strsignal bug.
29497         * tests/test-strsignal.c: Allow for const char *.
29498         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
29499
29500 2008-06-18  Simon Josefsson  <simon@josefsson.org>
29501
29502         * users.txt: Update URL to article and add author/date
29503         information.
29504
29505 2008-06-17  Bruno Haible  <bruno@clisp.org>
29506
29507         New macro gl_DISABLE_THREADS.
29508         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
29509         if the user did not pass --enable-threads or --disable-threads option.
29510         (gl_DISABLE_THREADS): New macro.
29511         Reported by Eric Blake <ebb9@byu.net>.
29512
29513 2008-06-17  Bruno Haible  <bruno@clisp.org>
29514
29515         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
29516         when the macro ignores it.
29517         Based on a patch by Eric Blake <ebb9@byu.net>.
29518
29519 2008-06-17  Bruno Haible  <bruno@clisp.org>
29520
29521         * modules/tls (License): Change to LGPLv2+.
29522         Reported by Eric Blake.
29523
29524 2008-06-17  Eric Blake  <ebb9@byu.net>
29525
29526         Simplify c-stack prerequisites.
29527         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
29528         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
29529         no longer requires <ucontext.h> to exist.  Optimize setrlimit
29530         check.
29531         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
29532         <sys/resource.h>.
29533
29534         Move c-stack test into testsuite.
29535         * modules/c-stack-tests: New file.
29536         * lib/c-stack.c [DEBUG]: Move test program...
29537         * tests/test-c-stack.c: ...into this new file.  Skip rather than
29538         fail test if sigaltstack is lacking.
29539         * tests/test-c-stack.sh: New driver file.
29540
29541 2008-06-16  Eric Blake  <ebb9@byu.net>
29542
29543         Use raise module consistently.
29544         * modules/fatal-signal (Depends-on): Add raise.
29545         * modules/sigprocmask (Depends-on): Likewise.
29546         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
29547         * lib/sigprocmask.c (sigprocmask): Likewise.
29548         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
29549         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
29550
29551         Fix compliance bug in sigpending.
29552         * lib/sigprocmask.c (sigpending): Return pending array via
29553         parameter, not return value.
29554
29555 2008-06-14  Eric Blake  <ebb9@byu.net>
29556
29557         Improve obstack-printf test code.
29558         * tests/test-obstack-printf.c (test_function): Fix comment, and
29559         simplify usage of obstack_* in macros.  Add a test for coverage.
29560         Reported by Bruno Haible.
29561
29562 2008-06-14  Bruno Haible  <bruno@clisp.org>
29563
29564         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
29565         array size as a constant, not as a const variable.
29566         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
29567         AC_USE_SYSTEM_EXTENSIONS.
29568         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
29569         Test whether the obstack_printf function actually exists.
29570         * modules/obstack-printf (Depends-on): Add extensions.
29571         (Include): Remove obstack.h.
29572         * modules/obstack-printf-posix (Depends-on): Add extensions.
29573         (Include): Remove obstack.h.
29574
29575 2008-06-13  Eric Blake  <ebb9@byu.net>
29576
29577         Add obstack-printf and obstack-printf-posix modules.
29578         * modules/obstack-printf: New file.
29579         * modules/obstack-printf-posix: Likewise.
29580         * MODULES.html.sh (Misc): Mention them.
29581         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
29582         Likewise.
29583         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
29584         Likewise.
29585         * modules/stdio (Makefile.am): Accomodate new modules.
29586         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
29587         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
29588         Declare.
29589         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
29590         functions.
29591         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
29592         (gl_REPLACE_OBSTACK_PRINTF): New macros
29593         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
29594         * tests/test-obstack-printf.c: New file.
29595         * modules/obstack-printf-tests: Likewise.
29596         * modules/obstack-printf-posix-tests: Likewise.
29597
29598 2008-06-11  Bruno Haible  <bruno@clisp.org>
29599
29600         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
29601         * lib/open.c: Include errno.h.
29602         (open): Fail when attempting to write to a file that has a trailing
29603         slash.
29604         * tests/test-open.c (main): Test against trailing slash bug.
29605         * doc/posix-functions/open.texi: Mention the trailing slash bug.
29606
29607 2008-06-10  Bruno Haible  <bruno@clisp.org>
29608
29609         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
29610         for $? to work inside the trap command, with various /bin/sh-s.
29611         * tests/test-vc-list-files-cvs.sh: Likewise.
29612
29613 2008-06-10  Bruno Haible  <bruno@clisp.org>
29614
29615         * lib/acl-internal.h: Don't include gettext.h here.
29616         * lib/set-mode-acl.c: Include gettext.h here.
29617         * lib/copy-acl.c: Likewise.
29618
29619 2008-06-10  Bruno Haible  <bruno@clisp.org>
29620
29621         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
29622         * lib/wait-process.c (wait_subprocess): Likewise.
29623         * lib/execute.h (execute): Add termsigp argument.
29624         * lib/execute.c (execute): Likewise.
29625         * lib/csharpcomp.c (compile_csharp_using_pnet,
29626         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
29627         * lib/csharpexec.c (execute_csharp_using_pnet,
29628         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
29629         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
29630         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
29631         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
29632         is_jikes_present): Update.
29633         * lib/javaexec.c (execute_java_class): Update.
29634         * lib/javaversion.c (execute_and_read_line): Update.
29635         * NEWS: Document the changes.
29636         Reported by Eric Blake.
29637
29638 2008-06-10  Eric Blake  <ebb9@byu.net>
29639
29640         Add missing include.
29641         * tests/test-strstr.c (includes): Add <signal.h>.
29642         * tests/test-strcasestr.c (includes): Likewise.
29643         * tests/test-memmem.c (includes): Likewise.
29644
29645 2008-06-10  Bruno Haible  <bruno@clisp.org>
29646
29647         * lib/wait-process.c (wait_subprocess): Add an assertion.
29648
29649 2008-06-10  Bruno Haible  <bruno@clisp.org>
29650
29651         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
29652
29653 2008-06-10  Bruno Haible  <bruno@clisp.org>
29654
29655         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
29656         using alarm().
29657         * tests/test-strcasestr.c (main): Likewise.
29658         * tests/test-strstr.c (main): Likewise.
29659
29660 2008-06-09  Bruno Haible  <bruno@clisp.org>
29661
29662         Work around the Solaris 10 ACE ACLs ABI change.
29663         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
29664         declare if ACL_NO_TRIVIAL is present.
29665         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
29666         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
29667         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
29668         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
29669         define if ACL_NO_TRIVIAL is present.
29670         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
29671         and use the current ABI.
29672         (file_has_acl): Use same #if condition as elsewhere.
29673         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
29674         in use, and use the current ABI.
29675         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
29676         Reported by Jim Meyering.
29677
29678 2008-06-09  Eric Blake  <ebb9@byu.net>
29679
29680         Work around environments that (stupidly) ignore SIGALRM.
29681         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
29682         before using alarm().
29683         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29684         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
29685         Reported by Ian Beckwith <ianb@erislabs.net>.
29686
29687         Produce autobuild blurb earlier in log.
29688         * modules/autobuild (configure.ac-early): Move AB_INIT here.
29689
29690 2008-06-09  Jim Meyering  <meyering@redhat.com>
29691         and OndÅ™ej Vašík  <ovasik@redhat.com>
29692
29693         utimens.c: correct kernel bug work-around
29694         OndÅ™ej Vašík found that the invalid return value of 280 indicates
29695         failure, not success, and the kernel bug we're trying to work
29696         around affects not just the utimensat call, but also the fallback
29697         futimens call.
29698         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
29699         not success.
29700         [HAVE_FUTIMENS]: Use the same work-around, here.
29701
29702 2008-06-09  Jim Meyering  <meyering@redhat.com>
29703
29704         add more guards around definition of ACE_-related code
29705         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
29706         ALLOW and ACE_OWNER are also defined.
29707
29708 2008-06-08  Bruno Haible  <bruno@clisp.org>
29709
29710         * lib/acl-internal.h: Add me as co-author.
29711         * lib/file-has-acl.c: Likewise.
29712         * lib/set-mode-acl.c: Likewise.
29713         * lib/copy-acl.c: Likewise.
29714
29715 2008-06-08  Bruno Haible  <bruno@clisp.org>
29716
29717         Add support for AIX ACLs.
29718         * lib/acl-internal.h (acl_nontrivial): New declaration.
29719         * lib/file-has-acl.c (acl_nontrivial): New function.
29720         (file_has_acl): Add implementation using AIX 4 ACL API.
29721         * lib/set-mode-acl.c (qset_acl): Likewise.
29722         * lib/copy-acl.c (qcopy_acl): Likewise.
29723
29724 2008-06-08  Bruno Haible  <bruno@clisp.org>
29725
29726         Add support for HP-UX ACLs.
29727         * lib/acl-internal.h (acl_nontrivial): New declaration.
29728         * lib/file-has-acl.c (acl_nontrivial): New function.
29729         (file_has_acl): Add implementation using HP-UX 11 ACL API.
29730         * lib/set-mode-acl.c (qset_acl): Likewise.
29731         * lib/copy-acl.c (qcopy_acl): Likewise.
29732
29733 2008-06-08  Bruno Haible  <bruno@clisp.org>
29734
29735         Add support for Cygwin ACLs.
29736         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
29737         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
29738         the chmod_or_fchmod call.
29739         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
29740
29741 2008-06-08  Bruno Haible  <bruno@clisp.org>
29742
29743         Fix bug with setuid modes in Solaris 10+ code.
29744         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
29745         succeeded, when the mode contains some special bits.
29746
29747 2008-06-08  Bruno Haible  <bruno@clisp.org>
29748
29749         Add support for Solaris 7..10 ACLs.
29750         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
29751         declarations.
29752         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
29753         functions.
29754         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
29755         * lib/set-mode-acl.c (qset_acl): Likewise.
29756         * lib/copy-acl.c (qcopy_acl): Likewise.
29757
29758 2008-06-08  Bruno Haible  <bruno@clisp.org>
29759
29760         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
29761         declaration.
29762         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
29763         (acl_access_nontrivial): Remove MacOS X case.
29764         (file_has_acl): Use acl_extended_nontrivial.
29765         * lib/copy-acl.c (qcopy_acl): Likewise.
29766
29767 2008-06-08  Bruno Haible  <bruno@clisp.org>
29768
29769         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
29770
29771 2008-06-08  Jim Meyering  <meyering@redhat.com>
29772
29773         * modules/acl (Maintainer): Add Bruno Haible.
29774
29775 2008-06-07  Bruno Haible  <bruno@clisp.org>
29776
29777         Improve support for Tru64 ACLs.
29778         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
29779         ACL on OSF/1.
29780
29781 2008-06-07  Bruno Haible  <bruno@clisp.org>
29782
29783         Add support for MacOS X ACLs.
29784         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
29785         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
29786         * lib/set-mode-acl.c (qset_acl): Likewise.
29787         * lib/copy-acl.c (qcopy_acl): Likewise.
29788
29789 2008-06-07  Bruno Haible  <bruno@clisp.org>
29790
29791         Fix memory leak introduced on 2008-05-22.
29792         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
29793         use.
29794
29795 2008-06-07  Bruno Haible  <bruno@clisp.org>
29796
29797         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
29798         to construct an empty ACL.
29799
29800 2008-06-07  Bruno Haible  <bruno@clisp.org>
29801
29802         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
29803         precisely.
29804         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
29805
29806 2008-06-07  Bruno Haible  <bruno@clisp.org>
29807
29808         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
29809         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
29810
29811 2008-06-07  Bruno Haible  <bruno@clisp.org>
29812
29813         * doc/posix-functions/_setjmp.texi: Explain the use of this function
29814         regardless of POSIX.
29815         * doc/posix-functions/_longjmp.texi: Likewise.
29816         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
29817         SystemV platform in this case.
29818
29819 2008-06-06  Eric Blake  <ebb9@byu.net>
29820
29821         Document abort() bugs.
29822         * doc/posix-functions/abort.texi (abort): Mention anomalies.
29823
29824         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
29825         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
29826         sigsetjmp.
29827         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
29828         siglongjmp, but only as a macro.
29829         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
29830         is obsolete.
29831         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
29832
29833         Tweak documentation to cover cygwin argz bugs.
29834         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
29835         argz bug fix; no code change needed since no cygwin releases
29836         occurred between the last fix and the bug being tested.
29837         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
29838         module and recently fixed cygwin bugs.
29839         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
29840         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
29841         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
29842         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
29843         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
29844         Likewise.
29845         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
29846         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
29847         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
29848         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
29849         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
29850         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
29851         Likewise.
29852
29853         Avoid gcc warning on cygwin.
29854         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
29855         !ACL_NO_TRIVIAL]: Avoid unused variable.
29856
29857 2008-06-05  Eric Blake  <ebb9@byu.net>
29858
29859         Be tolerant of UNKNOWN version in gnulib-tool test dir.
29860         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
29861         git-version-gen fails to come up with a version.
29862         Reported by Simon Josefsson.
29863
29864 2008-06-05  Jim Meyering  <meyering@redhat.com>
29865             Paul Eggert  <eggert@cs.ucla.edu>
29866
29867         utimens.c: work around a probable Linux kernel bug
29868         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
29869         appears to be a kernel bug that causes utimensat to return 280
29870         instead of 0, indicating success.
29871
29872 2008-06-04  Bruno Haible  <bruno@clisp.org>
29873
29874         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
29875         2008-06-01 commit.
29876
29877 2008-06-04  Bruno Haible  <bruno@clisp.org>
29878
29879         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
29880         * lib/file-has-acl.c (acl_access_nontrivial): New function.
29881         (file_has_acl): Use it. Save errno afterwards.
29882         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
29883
29884 2008-06-03  Bruno Haible  <bruno@clisp.org>
29885
29886         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
29887         draft code. Simplify #ifs.
29888         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
29889         Put Solaris code after POSIX-draft code. Fix comments regarding
29890         Solaris 10, HP-UX. Mention Cygwin.
29891         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
29892
29893 2008-06-03  Eric Blake  <ebb9@byu.net>
29894
29895         Provide fallback for older kernels.
29896         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
29897         Provide runtime fallback if kernel lacks support.
29898         Reported by Mike Frysinger.
29899
29900 2008-06-02  Bruno Haible  <bruno@clisp.org>
29901
29902         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
29903         it exists.
29904
29905 2008-06-02  Bruno Haible  <bruno@clisp.org>
29906
29907         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
29908         * lib/copy-acl.c (qcopy_acl): Update comment.
29909
29910 2008-06-02  Bruno Haible  <bruno@clisp.org>
29911
29912         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
29913         like ACL APIs.
29914
29915 2008-06-02  Bruno Haible  <bruno@clisp.org>
29916
29917         * tests/test-file-has-acl.sh: Use different code for Cygwin.
29918         * tests/test-set-mode-acl.sh: Likewise.
29919         * tests/test-copy-acl.sh: Likewise.
29920         * tests/test-copy-file.sh: Likewise.
29921
29922 2008-06-02  Bruno Haible  <bruno@clisp.org>
29923
29924         * tests/test-file-has-acl.sh: Remove unused code.
29925
29926 2008-06-01  Bruno Haible  <bruno@clisp.org>
29927
29928         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
29929         (copy_acl): Just a wrapper around qcopy_acl that emits the error
29930         messages.
29931         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
29932
29933 2008-06-01  Bruno Haible  <bruno@clisp.org>
29934
29935         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
29936         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
29937         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
29938         APIs.
29939         * modules/acl-tests (configure.ac): Remove tests now contained in
29940         m4/acl.m4.
29941
29942 2008-06-02  Jim Meyering  <meyering@redhat.com>
29943
29944         announce-gen: use a better key-server host name
29945         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
29946         it may be more consistently reliable.  Suggested by Werner Koch
29947         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
29948
29949 2008-06-01  Bruno Haible  <bruno@clisp.org>
29950
29951         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
29952         Reported by Voroskoi Andras <voroskoi@gmail.com>.
29953
29954 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
29955
29956         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
29957
29958 2008-06-01  Bruno Haible  <bruno@clisp.org>
29959
29960         New ACL tests.
29961         * tests/test-file-has-acl.sh: New file.
29962         * tests/test-file-has-acl.c: New file.
29963         * tests/test-set-mode-acl.sh: New file.
29964         * tests/test-set-mode-acl.c: New file.
29965         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
29966         * tests/test-copy-acl.c: New file.
29967         * modules/acl-tests: New file, based on modules/copy-file-tests.
29968         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
29969         (Depends-on): Add acl-tests.
29970         (configure.ac): Remove checks.
29971         (Makefile.am): Don't create test-sameacls program here any more.
29972
29973 2008-06-01  Bruno Haible  <bruno@clisp.org>
29974
29975         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
29976         * tests/test-sameacls.c: Include progname.h.
29977         (main): Invoke set_program_name. Portability fixes for MacOS X,
29978         Solaris, HP-UX.
29979
29980 2008-06-01  Bruno Haible  <bruno@clisp.org>
29981
29982         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
29983         function.
29984         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
29985
29986 2008-06-01  Bruno Haible  <bruno@clisp.org>
29987
29988         * modules/rpmatch (Depends-on): Add strdup.
29989
29990 2008-06-01  Bruno Haible  <bruno@clisp.org>
29991
29992         * lib/pipe.c: Include unistd-safer.h.
29993         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
29994         * modules/pipe (Depends-on): Add unistd-safer.
29995
29996 2008-05-30  Simon Josefsson  <simon@josefsson.org>
29997
29998         * modules/autobuild (configure.ac): Call AB_INIT.
29999
30000 2008-05-30  Simon Josefsson  <simon@josefsson.org>
30001
30002         * tests/test-getaddrinfo.c: Don't print debug messages by default.
30003         Suggested by Bruno Haible <bruno@clisp.org>.
30004
30005 2008-05-30  Simon Josefsson  <simon@josefsson.org>
30006
30007         * tests/test-base64.c: Cast size_t to unsigned long when invoking
30008         printf.  Use %lu instead of %d.  Reported by Bruno Haible
30009         <bruno@clisp.org>.
30010
30011 2008-05-29  Eric Blake  <ebb9@byu.net>
30012
30013         Prefer new POSIX 200x interfaces over futimesat.
30014         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
30015         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
30016         when available.
30017         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
30018
30019 2008-05-28  Bruno Haible  <bruno@clisp.org>
30020
30021         * modules/stpcpy (License): Change to LGPLv2+.
30022         Requested by David Lutterkort <dlutter@redhat.com>.
30023
30024 2008-05-27  Bruno Haible  <bruno@clisp.org>
30025
30026         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
30027         current mingw.
30028         Reported by Jose E. Marchesi <jemarch@gnu.org>.
30029
30030 2008-05-27  Bruno Haible  <bruno@clisp.org>
30031
30032         * modules/iconv_open (Link): New section, from module 'iconv'.
30033         * modules/striconv (Link): Likewise.
30034         * modules/striconveh (Link): Likewise.
30035         * modules/xstriconv (Link): Likewise.
30036         * modules/unicodeio (Link): Likewise.
30037         * modules/propername (Link): Likewise.
30038         Reported by Jim Meyering.
30039
30040 2008-05-26  Jim Meyering  <meyering@redhat.com>
30041
30042         sha256: do not artificially restrict buffer length to be < 2^32
30043         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
30044         uint32_t to size_t.
30045         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
30046         to match.
30047
30048         avoid unaligned access errors, e.g., on sparc
30049         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
30050         direct access through a possibly-unaligned uint64* pointer.
30051         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
30052         direct access through a possibly-unaligned uint32* pointer.
30053         Prompted by this patch from Tom "spot" Callaway:
30054         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
30055
30056         sha512.c: fix typo in comment
30057         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
30058
30059 2008-05-25  Bruno Haible  <bruno@clisp.org>
30060
30061         * lib/set-mode-acl.c: Renamed from lib/acl.c.
30062         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
30063         (Makefile.am): Update lib_SOURCES.
30064
30065 2008-05-25  Bruno Haible  <bruno@clisp.org>
30066
30067         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
30068
30069 2008-05-25  Jim Meyering  <meyering@redhat.com>
30070
30071         useless-if-before-free: freed expr may have white-space differences
30072         * build-aux/useless-if-before-free: Recognize cases in which the
30073         freed expression differs from the tested one in embedded white
30074         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
30075         $1 was used, so we can't make any regexp shy.  Improved tests now
30076         detect this.
30077
30078         useless-if-before-free: accept white space in the expression.
30079         * build-aux/useless-if-before-free: For now, any white space
30080         in the expression must be identical in the free argument.
30081
30082         useless-if-before-free: efficiency tweak
30083         * build-aux/useless-if-before-free: Make the expression-matching
30084         regexp "shy".
30085         Make the *outer* regexp shy, not the expr-matching one.
30086
30087         update code-in-comment to accept cast of free arg
30088         * build-aux/useless-if-before-free: Update regexp.
30089
30090 2008-05-25  Bruno Haible  <bruno@clisp.org>
30091
30092         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
30093         * modules/copy-file-tests (Files, Makefile.am): Update.
30094         * tests/test-copy-file.c (func_test_copy): Update.
30095
30096 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
30097
30098         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
30099
30100 2008-05-23  Bruno Haible  <bruno@clisp.org>
30101
30102         Improve support for ACLs on OSF/1.
30103         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
30104         Remove fallback for unknown flavors of ACLs.
30105
30106 2008-05-22  Bruno Haible  <bruno@clisp.org>
30107
30108         Add support for ACLs on OSF/1.
30109         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
30110         replacements.
30111         (acl_free_text): New macro fallback.
30112         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
30113         acl_free.
30114         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
30115         acl_free_text function. Require AC_C_INLINE.
30116
30117 2008-05-22  Bruno Haible  <bruno@clisp.org>
30118
30119         Make copy_acl work on MacOS X 10.5.
30120         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
30121         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
30122         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
30123         If MODE_INSIDE_ACL, don't assume that every system has the same text
30124         representation for ACLs as FreeBSD.
30125         * lib/copy-acl.c (copy_acl): Add support for platforms with
30126         !MODE_INSIDE_ACL.
30127         * lib/file-has-acl.c (file_has_acl): Likewise.
30128         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
30129         FreeBSD, MacOS X, or IRIX, respectively.
30130
30131 2008-05-22  Bruno Haible  <bruno@clisp.org>
30132
30133         * lib/acl.h: Don't include <sys/acl.h>.
30134         (GETACLCNT): Move fallback to lib/acl-internal.h.
30135         * lib/acl-internal.h: Include <sys/acl.h> here.
30136         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
30137
30138 2008-05-22  Bruno Haible  <bruno@clisp.org>
30139
30140         Split off copy_acl function to separate file.
30141         * lib/copy-acl.c: New file, extracted from lib/acl.c.
30142         * lib/acl.c (copy_acl): Moved function to separate file.
30143         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
30144         * modules/acl (Files): Add lib/copy-acl.c.
30145         (Makefiles.am): Augment lib_SOURCES.
30146
30147 2008-05-22  Bruno Haible  <bruno@clisp.org>
30148
30149         * modules/copy-file-tests: New file.
30150         * tests/test-copy-file.sh: New file.
30151         * tests/test-copy-file.c: New file.
30152         * tests/test-copy-file-sameacls.c: New file.
30153
30154 2008-05-22  Eric Blake  <ebb9@byu.net>
30155
30156         Avoid gcc warning.
30157         * tests/test-memcmp.c (main): Pass NULL indirectly.
30158
30159 2008-05-21  Bruno Haible  <bruno@clisp.org>
30160
30161         Add reference doc about ACLs.
30162         * doc/acl-resources.txt: New file.
30163         * doc/acl-cygwin.txt: New file.
30164
30165 2008-05-21  Bruno Haible  <bruno@clisp.org>
30166
30167         Avoid one more warning from gcc.
30168         * lib/vasnprintf.c (IF_LINT): Update comments.
30169         (VASNPRINTF): Use it also for the 'prefix' array initializer.
30170
30171 2008-05-21  Jim Meyering  <meyering@redhat.com>
30172
30173         avoid a warning from gcc
30174         * lib/vasnprintf.c (IF_LINT): Define.
30175         (scale10_round_decimal_long_double):
30176         Use it to avoid a "may be used uninitialized" warning.
30177         (scale10_round_decimal_double): Likewise.
30178
30179 2008-05-21  Simon Josefsson  <simon@josefsson.org>
30180
30181         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
30182         declared.
30183
30184 2008-05-20  Bruno Haible  <bruno@clisp.org>
30185
30186         * tests/test-memcmp.c (main): Test also the sign of the result. Test
30187         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
30188
30189 2008-05-20  Simon Josefsson  <simon@josefsson.org>
30190
30191         * modules/memcmp-tests: New file.
30192         * tests/test-memcmp.c: New file.
30193
30194 2008-05-19  Bruno Haible  <bruno@clisp.org>
30195
30196         * modules/propername (Notice, configure.ac): Put quoted "..." into
30197         --keyword option.
30198         * lib/propername.h: Update comments accordingly.
30199         Reported by Eric Blake.
30200
30201 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
30202
30203         * modules/getpass-gnu (Depends-on): Add fseeko.
30204
30205 2008-05-19  Simon Josefsson  <simon@josefsson.org>
30206
30207         * modules/base64-tests: New file.
30208
30209 2008-05-19  Bo Borgerson <gigabo@gmail.com>
30210
30211         * lib/base64.c (base64_decode_ctx): If a decode context structure
30212         was passed in use it to ignore newlines.  If a context structure
30213         was _not_ passed in, continue to treat newlines as garbage (this
30214         is the historical behavior).  Formerly base64_decode.
30215         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
30216         takes a decode context structure.
30217         * lib/base64.h (base64_decode): Macro for four-argument calls.
30218         (base64_decode_alloc): Likewise.
30219         * lib/base64.c (base64_decode_ctx): If a decode context structure
30220         was passed in use it to ignore newlines.  If a context structure
30221         was _not_ passed in, continue to treat newlines as garbage (this
30222         is the historical behavior).  Formerly base64_decode.
30223         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
30224         takes a decode context structure.
30225         * lib/base64.h (base64_decode): Macro for four-argument calls.
30226         (base64_decode_alloc): Likewise.
30227
30228 2008-05-19  Jim Meyering  <meyering@redhat.com>
30229
30230         avoid a warning from gcc
30231         * lib/trim.c (IF_LINT): Define.
30232         (trim2): Use it to avoid a "may be used uninitialized" warning.
30233
30234         Fix doc typo.
30235         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
30236
30237 2008-05-19  Bruno Haible  <bruno@clisp.org>
30238
30239         * doc/glibc-functions/getpass.texi: Document limits of other
30240         implementations.
30241
30242 2008-05-19  Simon Josefsson  <simon@josefsson.org>
30243             Bruno Haible <bruno@clisp.org>
30244
30245         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
30246
30247 2008-05-18  Bruno Haible  <bruno@clisp.org>
30248
30249         * modules/propername: New file, from GNU gettext.
30250         * lib/propername.h: New file, from GNU gettext.
30251         * lib/propername.c: New file, from GNU gettext.
30252         * MODULES.html.sh (Internationalization functions): Add propername.
30253
30254 2008-05-16  Jim Meyering  <meyering@redhat.com>
30255             Bruno Haible  <bruno@clisp.org>
30256
30257         Avoid some warnings from "gcc -Wshadow".
30258         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
30259
30260 2008-05-15  Eric Blake  <ebb9@byu.net>
30261
30262         Extend previous patch to cygwin 1.7.0.
30263         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
30264         fast implementation in cygwin >= 1.7.0.
30265         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
30266         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30267
30268 2008-05-15  Bruno Haible  <bruno@clisp.org>
30269
30270         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
30271         implementation in glibc >= 2.9.
30272         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
30273         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30274
30275 2008-05-15  Bruno Haible  <bruno@clisp.org>
30276
30277         * MODULES.html.sh (Internationalization functions): Remove linebreak.
30278         (Unicode string functions): Add unilbrk/*.
30279         Reported by Karl Berry.
30280
30281 2008-05-15  Eric Blake  <ebb9@byu.net>
30282
30283         Fix violation of <stdbool.h> replacement in regex.
30284         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
30285         * lib/regexec.c (re_search_internal): Likewise.
30286         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
30287
30288 2008-05-15  Jim Meyering  <meyering@redhat.com>
30289
30290         avoid distracting test output when git or cvs is not found
30291         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
30292         * tests/test-vc-list-files-git.sh: Likewise.
30293
30294 2008-05-15  Eric Blake  <ebb9@byu.net>
30295
30296         Glibc finally accepted the memmem speedup code, bugzilla #5514.
30297         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
30298         glibc version.
30299         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
30300         * doc/posix-functions/strstr.texi (strstr): Likewise.
30301         * lib/str-two-way.h (MAX): Sychronize with glibc.
30302
30303 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
30304
30305         * lib/regcomp.c (optimize_utf8): Add a note on why we test
30306         opr.ctx_type.
30307         (calc_first): Initialize constraint field.
30308         (duplicate_node_closure): Use it instead of special casing ANCHORS.
30309         Fix grammar.
30310         (duplicate_node): Merge constraint field for all node types.
30311         (calc_eclosure_iter): Look at constraint field for all node types.
30312         * lib/regex_internal.c (create_cd_newstate): Don't look at
30313         opr.ctx_type.
30314
30315 2008-05-14  Bruno Haible  <bruno@clisp.org>
30316
30317         Help GCC to do better code generation.
30318         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
30319         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
30320         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
30321         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
30322         Declare with attribute 'malloc' if supported.
30323
30324 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
30325
30326         use "echo STR|wc -c" rather than unportable "expr length STR"
30327         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
30328         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
30329
30330 2008-05-14  Jim Meyering  <meyering@redhat.com>
30331
30332         use dd ibs=$n count=1 ... rather than less-portable head -c$n
30333         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
30334         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
30335         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
30336         via Collin Lasse.
30337
30338 2008-05-14  Eric Blake  <ebb9@byu.net>
30339
30340         Avoid quadratic growth in gl_LIBSOURCES.
30341         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
30342         Suggested by Bruno Haible.
30343
30344         Test xmemdup0.
30345         * modules/xmemdup0-tests: New file.
30346         * tests/test-xmemdup0.c: Likewise.
30347
30348 2008-05-13  Eric Blake  <ebb9@byu.net>
30349
30350         Split xmemdup0 into its own module.
30351         * modules/xmemdup0: New file.
30352         * lib/xmemdup0.h: Likewise.
30353         * lib/xmemdup0.c: Likewise.
30354         * MODULES.html.sh (Memory management functions): Add xmemdup0.
30355         * lib/xalloc.h (xmemdup0): Remove.
30356         * lib/xmalloc.c (xmemdup0): Likewise.
30357
30358 2008-05-13  Eric Blake  <ebb9@byu.net>
30359             Bruno Haible  <bruno@clisp.org>
30360
30361         Reduce number of forks required during autoconf.
30362         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
30363         and gl_LIBSOURCES_DIR.
30364         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
30365         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
30366         m4_syscmd per file.
30367         <m4_foreach_w>: Move...
30368         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
30369
30370 2008-05-13  Eric Blake  <ebb9@byu.net>
30371
30372         * gnulib-tool: Fix various comment typos.
30373
30374 2008-05-12  Bruno Haible  <bruno@clisp.org>
30375
30376         Tailor the linebreaking algorithm.
30377         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
30378
30379 2008-05-12  Bruno Haible  <bruno@clisp.org>
30380
30381         Update to Unicode 5.0.0.
30382         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
30383         LBP_JV, LBP_JT. Redistribute values.
30384         (unilbrk_table): Change size.
30385         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
30386         Unicode TR#14 rev. 22.
30387         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
30388         LBP_JV, LBP_JT. Redistribute values.
30389         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
30390         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
30391         Update.
30392         * lib/unilbrk/lbrkprop1.h: Regenerated.
30393         * lib/unilbrk/lbrkprop2.h: Regenerated.
30394         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
30395         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
30396         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
30397         Likewise.
30398         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
30399         Likewise.
30400         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
30401         result.
30402         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
30403         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
30404         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
30405         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
30406         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
30407         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
30408
30409 2008-05-11  Bruno Haible  <bruno@clisp.org>
30410
30411         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
30412
30413 2008-05-11  Bruno Haible  <bruno@clisp.org>
30414
30415         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
30416         * modules/unilbrk/gen-lbrk: New file.
30417
30418 2008-05-11  Bruno Haible  <bruno@clisp.org>
30419
30420         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
30421         * m4/sha512.m4 (gl_SHA512): Likewise.
30422
30423 2008-05-11  Jim Meyering  <meyering@redhat.com>
30424
30425         New modules: crypto/sha256, crypto/sha512 (from coreutils)
30426         * modules/crypto/sha256: New file.
30427         * modules/crypto/sha512: Likewise.
30428         * lib/sha256.c: Likewise.
30429         * lib/sha256.h: Likewise.
30430         * lib/sha512.c: Likewise.
30431         * lib/sha512.h: Likewise.
30432         * lib/u64.h: Likewise.
30433         * m4/sha256.m4: Likewise.
30434         * m4/sha512.m4: Likewise.
30435         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
30436
30437 2008-05-10  Bruno Haible  <bruno@clisp.org>
30438
30439         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
30440         (Input/Output <stdio.h>): Add xprintf.
30441         (Signal handling <signal.h>): Add strsignal.
30442         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
30443         (Core language properties): Add func.
30444         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
30445         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
30446         strings.
30447         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
30448         (Input/output): New section.
30449         (File system functions): Add openat-die, stat-macros.
30450         (Networking functions): Add sockets.
30451         (Unicode string functions): Add unictype/*.
30452         (Support for building libraries and executables): Add gperf.
30453         (Support for building documentation): Add agpl-3.0.
30454         (Misc): Add nocrash.
30455
30456 2008-05-10  Bruno Haible  <bruno@clisp.org>
30457
30458         * modules/unictype/gen-ctype: New file.
30459
30460 2008-05-10  Jim Meyering  <meyering@redhat.com>
30461
30462         Make chdir-safer.c more efficient on a system with no symlinks.
30463         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
30464         also if ELOOP is zero.  Suggested by Bruno Haible.
30465
30466         Make chdir-safer.c slightly safer.
30467         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
30468         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
30469
30470         Avoid compile failure on systems without ELOOP (like mingw).
30471         * lib/chdir-safer.c (ELOOP): Define if not already defined.
30472         Reported by Bruno Haible.
30473
30474 2008-05-10  Bruno Haible  <bruno@clisp.org>
30475
30476         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
30477         (is_utf8_encoding): Use a case-insensitive comparison.
30478         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
30479         streq.
30480
30481 2008-05-10  Bruno Haible  <bruno@clisp.org>
30482
30483         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
30484         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
30485         * lib/unilbrk/ulc-common.h (iconv_string_length,
30486         iconv_string_keeping_offsets): Remove declarations.
30487         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
30488         Don't include <iconv.h>, streq.h, xsize.h.
30489         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
30490         conversion.
30491         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
30492         <iconv.h>, streq.h, xsize.h.
30493         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
30494         conversion.
30495         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
30496         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
30497         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
30498         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
30499
30500 2008-05-10  Bruno Haible  <bruno@clisp.org>
30501
30502         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
30503         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
30504
30505         * modules/unilbrk/u32-width-linebreaks-tests: New file.
30506         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
30507
30508         * modules/unilbrk/u16-width-linebreaks-tests: New file.
30509         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
30510
30511         * modules/unilbrk/u8-width-linebreaks-tests: New file.
30512         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
30513
30514         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
30515         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
30516
30517         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
30518         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
30519
30520         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
30521         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
30522
30523         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
30524         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
30525
30526 2008-05-10  Bruno Haible  <bruno@clisp.org>
30527
30528         Split up 'linebreak' module.
30529         * lib/unilbrk.h: New file, based on lib/linebreak.h.
30530         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
30531         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
30532         modifications.
30533         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
30534         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
30535         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
30536         lib/linebreak.c.
30537         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
30538         lib/linebreak.c.
30539         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
30540         lib/linebreak.c.
30541         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
30542         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
30543         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
30544         lib/linebreak.c.
30545         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
30546         lib/linebreak.c.
30547         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
30548         lib/linebreak.c.
30549         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
30550         lib/linebreak.c.
30551         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
30552         lib/linebreak.c.
30553         * modules/unilbrk/base: New file.
30554         * modules/unilbrk/tables: New file.
30555         * modules/unilbrk/u8-possible-linebreaks: New file.
30556         * modules/unilbrk/u16-possible-linebreaks: New file.
30557         * modules/unilbrk/u32-possible-linebreaks: New file.
30558         * modules/unilbrk/ulc-common: New file.
30559         * modules/unilbrk/ulc-possible-linebreaks: New file.
30560         * modules/unilbrk/u8-width-linebreaks: New file.
30561         * modules/unilbrk/u16-width-linebreaks: New file.
30562         * modules/unilbrk/u32-width-linebreaks: New file.
30563         * modules/unilbrk/ulc-width-linebreaks: New file.
30564         * lib/linebreak.h: Remove file.
30565         * lib/linebreak.c: Remove file.
30566         * m4/linebreak.m4: Remove file.
30567         * modules/linebreak: Remove file.
30568         * NEWS: Mention the changes.
30569
30570 2008-05-09  Eric Blake  <ebb9@byu.net>
30571
30572         Add xmemdup0.
30573         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
30574         implementation.
30575         * lib/xmalloc.c (xmemdup0): New C implementation.
30576
30577 2008-05-08  Bruno Haible  <bruno@clisp.org>
30578
30579         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
30580
30581 2008-05-07  Eric Blake  <ebb9@byu.net>
30582
30583         Support cross-compilation of <wctype.h>.
30584         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
30585         AC_CACHE_CHECK.
30586
30587 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
30588
30589         * build-aux/vc-list-files: Add support for bzr.
30590
30591 2008-05-03  Jim Meyering  <meyering@redhat.com>
30592
30593         avoid failed assertion with tight malloc
30594         * tests/test-getndelim2.c: Correct an off-by-one assertion.
30595
30596 2008-05-03  Simon Josefsson  <simon@josefsson.org>
30597
30598         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
30599         are needed from arpa/inet.h.
30600         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
30601         Reported by Bruno Haible.
30602
30603 2008-05-02  Jim Meyering  <meyering@redhat.com>
30604
30605         avoid compilation error on FreeBSD 6
30606         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
30607
30608 2008-05-01  Jim Meyering  <meyering@redhat.com>
30609
30610         useless-if-before-free: correct --help's exit status description
30611         * build-aux/useless-if-before-free (usage): Like grep, exit 0
30612         for one or more matches, etc.  Reported by Bruno Haible.
30613
30614         vc-list-files: make the stand-alone gnulib test work
30615         * modules/vc-list-files-tests (configure.ac):
30616         Define and AC_SUBST abs_aux_dir.
30617         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
30618         $(abs_top_srcdir) to each script and having each of them
30619         duplicate the work of setting PATH, set PATH here, using
30620         the new variable, abs_aux_dir instead.
30621         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
30622         * tests/test-vc-list-files-git.sh: Likewise.
30623         Reported by Bruno Haible.
30624
30625 2008-05-01  Bruno Haible  <bruno@clisp.org>
30626
30627         * lib/getndelim2.c (getndelim2): Fix newsize computation during
30628         reallocation. Rename 'done' to 'found_delimiter'.
30629
30630 2008-05-01  Jim Meyering  <meyering@redhat.com>
30631
30632         vc-list-files: accommodate /bin/sh like the one from Solaris 10
30633         * build-aux/vc-list-files: Use `...`, not $(...).
30634
30635 2008-04-30  Jim Meyering  <meyering@redhat.com>
30636
30637         add tests for vc-list-files
30638         * modules/vc-list-files-tests: New module.
30639         * tests/test-vc-list-files-cvs.sh: New file.
30640         * tests/test-vc-list-files-git.sh: New file.
30641
30642         avoid a warning from gcc
30643         * lib/getndelim2.c (IF_LINT): Define.
30644         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
30645
30646         vc-list-files: work properly with build-aux/cvsu, too
30647         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
30648         to all cvs-based clauses.
30649
30650         vc-list-files: work properly in the CVS+awk case, too
30651         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
30652
30653         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
30654         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
30655         take more than one file argument, so .  Add quotes, just in case $dir
30656         ever contains a shell meta-character.  Prompted by Soren Hansen in
30657         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
30658
30659 2008-04-29  Eric Blake  <ebb9@byu.net>
30660
30661         Optimize getndelim2 to use block operations when possible.
30662         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
30663         freadseek, and memchr2.
30664         * lib/getndelim2.c (getndelim2): Use them for block reads.
30665
30666 2008-04-29  Bruno Haible  <bruno@clisp.org>
30667
30668         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
30669         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
30670         * modules/inet_ntop (Depends-on): Add extensions.
30671         * modules/inet_pton (Depends-on): Likewise.
30672         Reported by Simon Josefsson.
30673
30674 2008-04-29  Jim Meyering  <meyering@redhat.com>
30675
30676         When the is more than one match in a block, match all of them.
30677         * build-aux/useless-if-before-free: Iterate through each block
30678         until there are no more matches.
30679
30680         Fix broken useless-if-before-free script.
30681         * build-aux/useless-if-before-free: Fix typo: missing "?" after
30682         the expression to match cast of argument to free-like function.
30683
30684 2008-04-29  Eric Blake  <ebb9@byu.net>
30685
30686         Use new header.
30687         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
30688
30689 2008-04-29  Jim Meyering  <meyering@redhat.com>
30690
30691         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
30692         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
30693         by gnulib to exist and to declare e.g., inet_ntop.
30694         Don't include "inet_ntop.h", now removed.
30695
30696         * m4/arpa_inet_h.m4: Remove trailing blanks.
30697
30698 2008-04-29  Eric Blake  <ebb9@byu.net>
30699
30700         Silence valgrind on safe reads beyond potential array bounds.
30701         * lib/rawmemchr.valgrind: New file.
30702         * lib/strchrnul.valgrind: Likewise.
30703         * modules/rawmemchr (Files): Distribute new file.
30704         * modules/strchrnul (Files): Likewise.
30705         Suggested by Bruno Haible.
30706
30707 2008-04-29  Bruno Haible  <bruno@clisp.org>
30708
30709         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
30710         (inet_ntop, inet_pton): Change portability warning's wording.
30711         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
30712         Invoke gl_CHECK_NEXT_HEADERS.
30713         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
30714         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
30715         set ARPA_INET_H.
30716         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
30717         * modules/arpa_inet (Description): No longer only for systems that
30718         lack it.
30719         (Depends-on): Add include_next.
30720         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
30721         HAVE_ARPA_INET_H.
30722
30723 2008-04-29  Jim Meyering  <meyering@redhat.com>
30724
30725         * modules/mkdir (License): Re-license as LGPLv2+.
30726
30727 2008-04-29  Bruno Haible  <bruno@clisp.org>
30728
30729         * modules/rawmemchr (Maintainer): Set to Eric.
30730         * modules/strchrnul (Maintainer): Likewise.
30731
30732 2008-04-29  Simon Josefsson  <simon@josefsson.org>
30733
30734         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
30735         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
30736
30737         * modules/arpa_inet (arpa/inet.h): Use them.
30738
30739 2008-04-28  Eric Blake  <ebb9@byu.net>
30740
30741         Test getndelim2.
30742         * modules/getndelim2-tests: New file.
30743         * tests/test-getndelim2.c: Likewise.
30744         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
30745         stream.
30746         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
30747
30748         * MODULES.html.sh: Document new module.
30749
30750 2008-04-20  Bruno Haible  <bruno@clisp.org>
30751
30752         * lib/c-stack.c (die): Use raise.
30753         * modules/c-stack (Depends-on): Add raise.
30754
30755 2008-04-28  Bruno Haible  <bruno@clisp.org>
30756
30757         Expect rpmatch to be declared.
30758         * lib/yesno.c (rpmatch): Remove declaration.
30759
30760         Declare rpmatch.
30761         * lib/stdlib.in.h (rpmatch): New declaration.
30762         * lib/rpmatch.c: Include <stdlib.h> first.
30763         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
30764         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
30765         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
30766         HAVE_RPMATCH.
30767         * modules/rpmatch (Depends-on): Add stdlib, extensions.
30768         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
30769         (Include): Set to <stdlib.h>.
30770         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
30771         HAVE_RPMATCH.
30772         * NEWS: Document the change.
30773
30774 2008-04-28  Bruno Haible  <bruno@clisp.org>
30775
30776         Change rpmatch to use nl_langinfo when appropriate.
30777         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
30778         (N_): New macro.
30779         (localized_pattern): New function/macro.
30780         (try): Remove match, nomatch arguments. Copy the pattern into safe
30781         memory before caching it.
30782         (rpmatch): Use localized_pattern. Add translator comments.
30783         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
30784         Suggested by Eric Blake.
30785         * modules/rpmatch (Depends-on): Add stdbool.
30786
30787 2008-04-28  Eric Blake  <ebb9@byu.net>
30788
30789         Add rawmemchr module, matching glibc.
30790         * modules/string (Makefile.am): New indicator.
30791         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
30792         * lib/string.in.h (rawmemchr): Declare when appropriate.
30793         * modules/rawmemchr: New file.
30794         * m4/rawmemchr.m4: Likewise.
30795         * lib/rawmemchr.c: Likewise.
30796         * modules/rawmemchr-tests: Likewise.
30797         * tests/test-rawmemchr.c: Likewise.
30798         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
30799         module.
30800         * modules/strchrnul (Depends-on): Add rawmemchr.
30801         * lib/strchrnul.c (strchrnul): Optimize a corner case.
30802
30803         Whitespace cleanup.
30804         * tests/test-strchrnul.c: Reindent.
30805         * lib/strchrnul.c: Likewise.
30806
30807         Optimize and test strchrnul.
30808         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
30809         * modules/strchrnul-tests: New file.
30810         * tests/test-strchrnul.c: Likewise.
30811
30812         Remove intprops dependency.
30813         * modules/memchr (Depends-on): Remove intprops.
30814         * modules/memrchr (Depends-on): Likewise.
30815         * modules/memchr2 (Depends-on): Likewise.
30816         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
30817         * lib/memrchr.c (__memrchr): Likewise.
30818         * lib/memrchr2.c (memchr2): Likewise.
30819         Reported by Simon Josefsson.
30820
30821 2008-04-28  Simon Josefsson  <simon@josefsson.org>
30822
30823         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
30824         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30825
30826 2008-04-28  Simon Josefsson  <simon@josefsson.org>
30827
30828         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
30829
30830         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
30831
30832         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
30833
30834         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
30835         declarations.
30836         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
30837
30838         * m4/inet_pton.m4: Don't check for header files.
30839
30840         * m4/inet_ntop.m4: Don't check for header files.
30841
30842 2008-04-28  Simon Josefsson  <simon@josefsson.org>
30843
30844         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
30845         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
30846         trigger for cygwin).
30847         Reported by Bruno Haible  <bruno@clisp.org>.
30848
30849 2008-04-28  Bruno Haible  <bruno@clisp.org>
30850
30851         * doc/posix-functions/strdup.texi: Mention mingw problem.
30852
30853 2008-04-27  Bruno Haible  <bruno@clisp.org>
30854
30855         * modules/stat-time-tests (Depends-on): Add sleep.
30856         * tests/test-stat-time.c (force_unlink): New function.
30857         (cleanup): Use it.
30858         (test_mtime): Remove the ctime related tests.
30859         (test_ctime): New function, containing the ctime related tests.
30860         (main): Call test_ctime, except on native Windows platforms.
30861
30862 2008-04-27  Bruno Haible  <bruno@clisp.org>
30863
30864         * lib/rpmatch.c (rpmatch): Add some comments.
30865         Reported by James Youngman <jay@gnu.org>.
30866
30867 2008-04-27  Bruno Haible  <bruno@clisp.org>
30868
30869         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
30870         quiet NaNs.
30871
30872 2008-04-27  Bruno Haible  <bruno@clisp.org>
30873
30874         Make test-yesno.sh work on mingw.
30875         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
30876         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
30877         (main): Set stdin to binary mode.
30878         * modules/yesno-tests (Depends-on): Add binary-io.
30879
30880 2008-04-27  Bruno Haible  <bruno@clisp.org>
30881
30882         Fix 'isfinite' on x86, x86_64, ia64 platforms.
30883         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
30884         argument that lie outside the IEEE 854 domain.
30885         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
30886         (gl_ISFINITE): Use it.
30887         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
30888
30889 2008-04-27  Bruno Haible  <bruno@clisp.org>
30890
30891         Allow local renaming in config.h.
30892         * lib/memrchr.c (memrchr): Don't undefine outside libc.
30893
30894 2008-04-27  Bruno Haible  <bruno@clisp.org>
30895
30896         * lib/memchr.c (__memchr): Change type of 'i'.
30897         * lib/memchr2.c (memchr2): Likewise.
30898
30899 2008-04-26  Eric Blake  <ebb9@byu.net>
30900         and Bruno Haible  <bruno@clisp.org>
30901
30902         Optimize and test memrchr.
30903         * modules/memrchr (Depends-on): Add intprops.
30904         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
30905         * modules/memrchr-tests: New file.
30906         * tests/test-memrchr.c: New file.
30907
30908 2008-04-26  Bruno Haible  <bruno@clisp.org>
30909
30910         Add tentative support for DragonFly BSD.
30911         * lib/stdio-impl.h: Add macros for DragonFly BSD.
30912         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
30913         fp.
30914         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
30915         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
30916         * lib/fpurge.c (fpurge): Likewise.
30917         * lib/freadable.c (freaadable): Likewise.
30918         * lib/freadahead.c (freadahead): Likewise.
30919         * lib/freading.c (freading): Likewise.
30920         * lib/freadptr.c (freadptr): Likewise.
30921         * lib/freadseek.c (freadptrinc): Likewise.
30922         * lib/fseeko.c (fseeko): Likewise.
30923         * lib/fseterr.c (fseterr): Likewise.
30924         * lib/fwritable.c (fwritable): Likewise.
30925         * lib/fwriting.c (fwriting): Likewise.
30926
30927 2008-04-26  Bruno Haible  <bruno@clisp.org>
30928
30929         * lib/stdio-impl.h: New file.
30930         * lib/fbufmode.c: Include stdio-impl.h.
30931         (fbufmode): Use fp_, remove redundant #defines.
30932         * lib/fflush.c: Include stdio-impl.h.
30933         (clear_ungetc_buffer): Remove redundant #defines.
30934         * lib/fpurge.c: Include stdio-impl.h.
30935         (fpurge): Remove redundant #defines.
30936         * lib/freadable.c: Include stdio-impl.h.
30937         (freadable): Remove redundant #defines.
30938         * lib/freadahead.c: Include stdio-impl.h.
30939         (freadahead): Remove redundant #defines.
30940         * lib/freading.c: Include stdio-impl.h.
30941         (freading): Remove redundant #defines.
30942         * lib/freadptr.c: Include stdio-impl.h.
30943         (freadptr): Remove redundant #defines.
30944         * lib/freadseek.c: Include stdio-impl.h.
30945         (freadptrinc): Remove redundant #defines.
30946         * lib/fseeko.c: Include stdio-impl.h.
30947         (rpl_fseeko): Remove redundant #defines.
30948         * lib/fseterr.c: Include stdio-impl.h.
30949         (fseterr): Remove redundant #defines.
30950         * lib/fwritable.c: Include stdio-impl.h.
30951         (fwritable: Remove redundant #defines.
30952         * lib/fwriting.c: Include stdio-impl.h.
30953         (fwriting): Remove redundant #defines.
30954         * modules/fbufmode (Files): Add lib/stdio-impl.h.
30955         * modules/fflush (Files): Likewise.
30956         * modules/fpurge (Files): Likewise.
30957         * modules/freadable (Files): Likewise.
30958         * modules/freadahead (Files): Likewise.
30959         * modules/freading (Files): Likewise.
30960         * modules/freadptr (Files): Likewise.
30961         * modules/freadseek (Files): Likewise.
30962         * modules/fseeko (Files): Likewise.
30963         * modules/fseterr (Files): Likewise.
30964         * modules/fwritable (Files): Likewise.
30965         * modules/fwriting (Files): Likewise.
30966
30967 2008-04-26  Bruno Haible  <bruno@clisp.org>
30968
30969         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
30970         restore_seek_optimization, update_fpos_cache): New functions, extracted
30971         from rpl_fflush.
30972         (rpl_fflush): Use them.
30973         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
30974         (gl_REPLACE_FFLUSH): Use it.
30975
30976 2008-04-26  Bruno Haible  <bruno@clisp.org>
30977
30978         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
30979         on Solaris.
30980         * tests/test-xstrtoimax.sh: Likewise.
30981         * tests/test-xstrtoumax.sh: Likewise.
30982         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30983
30984 2008-04-26  Bruno Haible  <bruno@clisp.org>
30985
30986         * modules/memchr-tests: New file.
30987         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
30988
30989 2008-04-26  Eric Blake  <ebb9@byu.net>
30990             Bruno Haible  <bruno@clisp.org>
30991
30992         * lib/memchr.c: Include intprops.h.
30993         (__memchr): Optimize parallel detection of matching bytes. Rename local
30994         variables. Add explanatory comments.
30995
30996 2008-04-26  Bruno Haible  <bruno@clisp.org>
30997
30998         Fix module 'memchr', broken since 2000-10-28.
30999         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
31000
31001 2008-04-26  Bruno Haible  <bruno@clisp.org>
31002
31003         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
31004         comments.
31005
31006 2008-04-25  Eric Blake  <ebb9@byu.net>
31007
31008         Use native fstatat on cygwin 1.7.0.
31009         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
31010         first.
31011
31012 2008-04-23  Eric Blake  <ebb9@byu.net>
31013
31014         Improve memchr2 performance.
31015         * lib/memchr2.c (memchr2): Further optimize parallel detection of
31016         NUL bytes.
31017         * modules/memchr2 (Depends-on): Use intprops.h.
31018
31019 2008-04-23  Simon Josefsson  <simon@josefsson.org>
31020
31021         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
31022         an inline function instead of a CPP macro.  Patch by Ben Pfaff
31023         <blp@cs.stanford.edu>.
31024
31025 2008-04-23  Simon Josefsson  <simon@josefsson.org>
31026
31027         * lib/arpa_inet.in.h: New file.
31028
31029         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
31030         (Makefile.am): Sed in substitute header file.
31031
31032         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
31033         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
31034
31035         * modules/inet_ntop (configure.ac): Use
31036         gl_ARPA_INET_MODULE_INDICATOR.
31037
31038         * modules/inet_pton (configure.ac): Use
31039         gl_ARPA_INET_MODULE_INDICATOR.
31040
31041 2008-04-22  Jim Meyering  <meyering@redhat.com>
31042
31043         * modules/verify (License): Re-license as LGPLv2+.
31044
31045 2008-04-22  Simon Josefsson  <simon@josefsson.org>
31046
31047         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
31048         parameter to void* as per POSIX standard (MinGW uses char*).
31049
31050 2008-04-21  Bruno Haible  <bruno@clisp.org>
31051
31052         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
31053         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
31054         Define to replacements if REPLACE_ISWCNTRL is 1.
31055         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
31056         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
31057         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
31058         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
31059         what it fixes.
31060         * doc/posix-functions/iswalpha.texi: Likewise.
31061         * doc/posix-functions/iswblank.texi: Likewise.
31062         * doc/posix-functions/iswcntrl.texi: Likewise.
31063         * doc/posix-functions/iswdigit.texi: Likewise.
31064         * doc/posix-functions/iswgraph.texi: Likewise.
31065         * doc/posix-functions/iswlower.texi: Likewise.
31066         * doc/posix-functions/iswprint.texi: Likewise.
31067         * doc/posix-functions/iswpunct.texi: Likewise.
31068         * doc/posix-functions/iswspace.texi: Likewise.
31069         * doc/posix-functions/iswupper.texi: Likewise.
31070         * doc/posix-functions/iswxdigit.texi: Likewise.
31071         Reported by Alain Guibert.
31072
31073 2008-04-21  Bruno Haible  <bruno@clisp.org>
31074
31075         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
31076         Patch by Alain Guibert.
31077
31078 2008-04-21  Bruno Haible  <bruno@clisp.org>
31079
31080         Fix test failures on mingw.
31081         * tests/test-xstrtol.c (print_no_progname): New function.
31082         (main): Install it in error_print_progname hook.
31083         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
31084         * tests/test-xstrtoimax.sh: Likewise.
31085         * tests/test-xstrtoumax.sh: Likewise.
31086
31087 2008-04-21  Bruno Haible  <bruno@clisp.org>
31088
31089         Fix test failure on mingw.
31090         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
31091
31092 2008-04-21  Bruno Haible  <bruno@clisp.org>
31093
31094         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
31095         Actually assign a value.
31096
31097 2008-04-20  Bruno Haible  <bruno@clisp.org>
31098
31099         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
31100         take 2.
31101         * lib/canonicalize.c (canonicalize_file_name): Elide if the
31102         'canonicalize-lgpl' module is also used.
31103         * lib/canonicalize-lgpl.c: Undo last change.
31104         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
31105
31106 2008-04-20  Bruno Haible  <bruno@clisp.org>
31107
31108         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
31109         config.h. Provide _mkdir based fallback for mingw.
31110         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
31111         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
31112         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
31113         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
31114         rather than defining mkdir in config.h.
31115         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
31116         (gl_SYS_STAT_H_DEFAULTS): New macro.
31117         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
31118         HAVE_IO_H any more.
31119         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
31120         HAVE_DECL_MKDIR and HAVE_IO_H.
31121
31122 2008-04-20  Bruno Haible  <bruno@clisp.org>
31123
31124         * lib/isapipe.c: Port to native Windows platforms.
31125
31126 2008-04-20  Bruno Haible  <bruno@clisp.org>
31127
31128         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
31129
31130 2008-04-21  Eric Blake  <ebb9@byu.net>
31131
31132         Work around preprocessors that don't handle UINTMAX_MAX.
31133         * lib/memchr2.c (memchr2): Avoid embedded #if.
31134         Reported by Alain Guibert, fix suggested by Bruno Haible.
31135
31136 2008-04-21  Simon Josefsson  <simon@josefsson.org>
31137
31138         * doc/posix-functions/strftime.texi (strftime): Explain better
31139         Windows incompatibility.  Suggested by Micah Cowan
31140         <micah@cowan.name>.
31141
31142 2008-04-20  Bruno Haible  <bruno@clisp.org>
31143
31144         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
31145         unistr/u8-mblen.
31146
31147 2008-04-20  Bruno Haible  <bruno@clisp.org>
31148
31149         Fix test failure on platforms with non-GNU iconv.
31150         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
31151         (U_TO_U8): Use it, rather than u16_to_u8.
31152         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
31153         units at the end of the input string.
31154         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
31155
31156 2008-04-20  Bruno Haible  <bruno@clisp.org>
31157
31158         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
31159         when the resulting length is 0.
31160         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
31161
31162 2008-04-20  Bruno Haible  <bruno@clisp.org>
31163
31164         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
31165         works.
31166         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
31167
31168 2008-04-20  Bruno Haible  <bruno@clisp.org>
31169
31170         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
31171         * modules/tsearch-tests (configure.ac): Test for initstate function.
31172
31173 2008-04-20  Bruno Haible  <bruno@clisp.org>
31174
31175         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
31176         for nlink_t if missing.
31177         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
31178
31179 2008-04-19  Bruno Haible  <bruno@clisp.org>
31180
31181         Work around snprintf bug on Linux libc5.
31182         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
31183         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
31184         gl_SNPRINTF_SIZE1.
31185         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
31186         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
31187         that test failed.
31188         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
31189         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
31190         * modules/snprintf (Files): Add m4/printf.m4.
31191         * modules/vsnprintf (Files): Likewise.
31192         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
31193         * doc/posix-functions/vsnprintf.texi: Likewise.
31194
31195 2008-04-19  Bruno Haible  <bruno@clisp.org>
31196
31197         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
31198         from 0.0058 to less than 10^-7.
31199
31200 2008-04-19  Bruno Haible  <bruno@clisp.org>
31201
31202         Fix rounding when a precision is given.
31203         * lib/vasnprintf.c (is_borderline): New function.
31204         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
31205         9...9x.
31206         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
31207         %e, %g.
31208         * tests/test-vasprintf-posix.c (test_function): Likewise.
31209         * tests/test-snprintf-posix.h (test_function): Likewise.
31210         * tests/test-sprintf-posix.h (test_function): Likewise.
31211         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
31212         * tests/test-printf-posix.h (test_function): Likewise.
31213         * tests/test-printf-posix.output: Update.
31214         Reported by John Darrington <john@darrington.wattle.id.au> via
31215         Ben Pfaff <blp@cs.stanford.edu>.
31216
31217 2008-04-18  Simon Josefsson  <simon@josefsson.org>
31218
31219         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
31220         Suggested by Bruno Haible <bruno@clisp.org>.
31221
31222 2008-04-17  Bruno Haible  <bruno@clisp.org>
31223
31224         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
31225         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
31226         implementation.
31227         Patch by Bruce Merry <bmerry@gmail.com>.
31228
31229 2008-04-17  Simon Josefsson  <simon@josefsson.org>
31230
31231         * doc/posix-functions/strftime.texi (strftime): Mention that %e
31232         doesn't work under Windows.
31233
31234 2008-04-16  Bruno Haible  <bruno@clisp.org>
31235
31236         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
31237         New macros.
31238         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
31239         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
31240         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
31241         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
31242         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
31243         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
31244         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
31245         macros.
31246         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
31247         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
31248         Northern Sotho, Uighur.
31249
31250 2008-04-16  Bruno Haible  <bruno@clisp.org>
31251
31252         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
31253         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
31254         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
31255         Reported by Daniel Bergström <daniel@octocode.com>.
31256
31257 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
31258             Bruno Haible  <bruno@clisp.org>
31259
31260         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
31261         function.
31262         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
31263         New functions, mostly extracted from gl_locale_name_default.
31264         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
31265
31266 2008-04-16  Eric Blake  <ebb9@byu.net>
31267
31268         Adjust strtod detection to catch glibc 2.7 bug.
31269         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
31270         Reported by John Gatewood Ham.
31271
31272 2008-04-16  Bruno Haible  <bruno@clisp.org>
31273
31274         Add tentative support for Linux libc5.
31275         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
31276         * lib/fpurge.c (fpurge): Likewise.
31277         * lib/freadable.c (freadable): Likewise.
31278         * lib/freadahead.c (freadahead): Likewise.
31279         * lib/freading.c (freading): Likewise.
31280         * lib/freadptr.c (freadptr): Likewise.
31281         * lib/freadseek.c (freadptrinc): Likewise.
31282         * lib/fseeko.c (rpl_fseeko): Likewise.
31283         * lib/fseterr.c (fseterr): Likewise.
31284         * lib/fwritable.c (fwritable): Likewise.
31285         * lib/fwriting.c (fwriting): Likewise.
31286         Reported by Alain Guibert <alguibert+bts@free.fr>.
31287
31288 2008-04-15  Bruno Haible  <bruno@clisp.org>
31289
31290         * modules/mathl (configure.ac): Define module indicator.
31291
31292 2008-04-15  Bruno Haible  <bruno@clisp.org>
31293
31294         * lib/logl.c (logl): Remove unused variables.
31295
31296 2008-04-15  Bruno Haible  <bruno@clisp.org>
31297
31298         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
31299         fails.
31300
31301 2008-04-15  Bruno Haible  <bruno@clisp.org>
31302
31303         * lib/trim.c (trim2): Fix argument of isspace() macro.
31304
31305 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
31306
31307         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
31308         to 0.
31309         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
31310
31311 2008-04-14  Bruno Haible  <bruno@clisp.org>
31312
31313         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
31314         AC_LANG_PROGRAM argument.
31315         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
31316         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
31317         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
31318         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
31319         * m4/math_h.m4 (gl_MATH_H): Likewise.
31320         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
31321         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
31322         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
31323         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
31324         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
31325         * m4/regex.m4 (gl_REGEX): Likewise.
31326         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
31327         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
31328         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
31329         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
31330         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
31331         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
31332         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
31333         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
31334
31335 2008-04-14  Jim Meyering  <meyering@redhat.com>
31336
31337         test-strtod: fix typos: s/abs/fabs/
31338         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
31339
31340 2008-04-13  Bruno Haible  <bruno@clisp.org>
31341
31342         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
31343         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
31344         module is also used and while not building the reloc-wrapper.
31345
31346 2008-04-13  Bruno Haible  <bruno@clisp.org>
31347
31348         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
31349
31350 2008-04-13  Bruno Haible  <bruno@clisp.org>
31351
31352         Fix AIX compilation failure introduced on 2008-04-02.
31353         * tests/test-frexp.c (exp): Undefine before redefining.
31354         * tests/test-frexpl.c (exp): Likewise.
31355
31356 2008-04-13  Bruno Haible  <bruno@clisp.org>
31357
31358         Work around a HP-UX stdio bug.
31359         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
31360         * tests/test-ftello.c (main): Likewise.
31361         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
31362         * doc/posix-functions/ftello.texi: Likewise.
31363
31364 2008-04-13  Bruno Haible  <bruno@clisp.org>
31365
31366         Make test-signbit pass on HP-UX/hppa.
31367         * tests/test-signbit.c (minus_zerol): New variable.
31368         (test_signbitl): Use it.
31369
31370 2008-04-13  Bruno Haible  <bruno@clisp.org>
31371
31372         Make truncl work on OSF/1 4.0.
31373         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
31374         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
31375         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
31376         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
31377         HAVE_DECL_TRUNCL.
31378         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
31379         HAVE_DECL_TRUNCL.
31380         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
31381
31382 2008-04-13  Bruno Haible  <bruno@clisp.org>
31383
31384         * lib/unictype.h: Remove trailing comma from enumeration definitions.
31385
31386 2008-04-13  Bruno Haible  <bruno@clisp.org>
31387
31388         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
31389         expression, so as to avoid HP-UX 11 cc compiler bug.
31390
31391 2008-04-13  Bruno Haible  <bruno@clisp.org>
31392
31393         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
31394
31395 2008-04-13  Bruno Haible  <bruno@clisp.org>
31396
31397         * lib/git-merge-changelog.c: Remove empty declaration outside of
31398         functions.
31399
31400 2008-04-13  Bruno Haible  <bruno@clisp.org>
31401
31402         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
31403
31404 2008-04-13  Bruno Haible  <bruno@clisp.org>
31405
31406         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
31407         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
31408         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
31409         also if it exists but lacks definitions of the SHUT_* macros.
31410         * modules/sys_socket (Description): Update.
31411         Reported by Elbert Pol <e.pol@chello.nl>.
31412
31413 2008-04-13  Bruno Haible  <bruno@clisp.org>
31414
31415         * lib/localcharset.c (OS2): Don't redefine if already defined.
31416         Reported by Elbert Pol <e.pol@chello.nl>.
31417
31418 2008-04-13  Bruno Haible  <bruno@clisp.org>
31419
31420         * lib/binary-io.h [__EMX__]: Include <io.h>.
31421         Reported by Elbert Pol <e.pol@chello.nl>.
31422
31423 2008-04-12  Bruno Haible  <bruno@clisp.org>
31424
31425         * lib/fpucw.h: Enable the definitions also for x86_64.
31426         Needed for NetBSD/x86_64.
31427         Reported by Thomas Klausner <tk@giga.or.at>.
31428
31429 2008-04-12  Bruno Haible  <bruno@clisp.org>
31430
31431         * tests/test-strtod.c: Include isnand.h.
31432         (main): Use isnand instead of isnan.
31433         Reported by Jim Meyering.
31434
31435 2008-04-12  Bruno Haible  <bruno@clisp.org>
31436
31437         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
31438         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
31439
31440 2008-04-12  Jim Meyering  <meyering@redhat.com>
31441
31442         * m4/math_h.m4 (gl_MATH_H): Fix typos.
31443
31444 2008-04-12  Bruno Haible  <bruno@clisp.org>
31445
31446         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
31447         Reported by Elbert Pol <e.pol@chello.nl>.
31448
31449 2008-04-12  Eric Blake  <ebb9@byu.net>
31450
31451         Work around Solaris 10 math.h bug.
31452         * m4/math_h.m4 (gl_MATH_H): Check for bug.
31453         (gl_MATH_H_DEFAULTS): Set up default.
31454         * modules/math (Makefile.am): Replace new indicators.
31455         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
31456         * tests/test-math.c (main): Test this.
31457         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
31458         * doc/posix-headers/math.texi (math.h): Mention bug.
31459         Reported by Nelson H. F. Beebe and Jim Meyering.
31460
31461 2008-04-11  Bruno Haible  <bruno@clisp.org>
31462
31463         Adapt to future versions of Apple GCC.
31464         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
31465         Reported by Peter O'Gorman <peter@pogma.com>.
31466
31467 2008-04-11  Bruno Haible  <bruno@clisp.org>
31468
31469         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
31470
31471 2008-04-11  Bruno Haible  <bruno@clisp.org>
31472
31473         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
31474
31475         * modules/getaddrinfo-tests (Makefile.am): Define
31476         test_getaddrinfo_LDADD.
31477
31478 2008-04-11  Bruno Haible  <bruno@clisp.org>
31479
31480         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
31481         (init): Fix syntax error.
31482         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
31483         is declared.
31484
31485 2008-04-11  Bruno Haible  <bruno@clisp.org>
31486
31487         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
31488         * modules/glob (Depends-on): Add stdbool.
31489
31490 2008-04-11  Bruno Haible  <bruno@clisp.org>
31491
31492         * lib/trim.c: Include <string.h>.
31493
31494 2008-04-11  Eric Blake  <ebb9@byu.net>
31495
31496         Avoid compile failure on OS/2.
31497         * lib/regex_internal.h (internal_function): Disable optimization
31498         on OS/2 (__EMX__), where it caused compiler error.
31499         Reported by Elbert Pol.
31500
31501 2008-04-11  Bruno Haible  <bruno@clisp.org>
31502
31503         Flush the standard error stream before aborting. Needed on mingw.
31504         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
31505         * tests/test-array_list.c (ASSERT): Likewise.
31506         * tests/test-array_oset.c (ASSERT): Likewise.
31507         * tests/test-avltree_list.c (ASSERT): Likewise.
31508         * tests/test-avltree_oset.c (ASSERT): Likewise.
31509         * tests/test-avltreehash_list.c (ASSERT): Likewise.
31510         * tests/test-binary-io.c (ASSERT): Likewise.
31511         * tests/test-byteswap.c (ASSERT): Likewise.
31512         * tests/test-c-ctype.c (ASSERT): Likewise.
31513         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
31514         * tests/test-c-strcasestr.c (ASSERT): Likewise.
31515         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
31516         * tests/test-c-strstr.c (ASSERT): Likewise.
31517         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
31518         * tests/test-canonicalize.c (ASSERT): Likewise.
31519         * tests/test-carray_list.c (ASSERT): Likewise.
31520         * tests/test-ceilf1.c (ASSERT): Likewise.
31521         * tests/test-ceilf2.c (ASSERT): Likewise.
31522         * tests/test-ceill.c (ASSERT): Likewise.
31523         * tests/test-count-one-bits.c (ASSERT): Likewise.
31524         * tests/test-fbufmode.c (ASSERT): Likewise.
31525         * tests/test-fflush2.c (ASSERT): Likewise.
31526         * tests/test-floorf1.c (ASSERT): Likewise.
31527         * tests/test-floorf2.c (ASSERT): Likewise.
31528         * tests/test-floorl.c (ASSERT): Likewise.
31529         * tests/test-fopen.c (ASSERT): Likewise.
31530         * tests/test-fpending.c (ASSERT): Likewise.
31531         * tests/test-fprintf-posix.c (ASSERT): Likewise.
31532         * tests/test-fpurge.c (ASSERT): Likewise.
31533         * tests/test-freadable.c (ASSERT): Likewise.
31534         * tests/test-freadahead.c (ASSERT): Likewise.
31535         * tests/test-freading.c (ASSERT): Likewise.
31536         * tests/test-freadptr.c (ASSERT): Likewise.
31537         * tests/test-freadptr2.c (ASSERT): Likewise.
31538         * tests/test-freadseek.c (ASSERT): Likewise.
31539         * tests/test-freopen.c (ASSERT): Likewise.
31540         * tests/test-frexp.c (ASSERT): Likewise.
31541         * tests/test-frexpl.c (ASSERT): Likewise.
31542         * tests/test-fseek.c (ASSERT): Likewise.
31543         * tests/test-fseeko.c (ASSERT): Likewise.
31544         * tests/test-fstrcmp.c (ASSERT): Likewise.
31545         * tests/test-ftell.c (ASSERT): Likewise.
31546         * tests/test-ftello.c (ASSERT): Likewise.
31547         * tests/test-func.c (ASSERT): Likewise.
31548         * tests/test-fwritable.c (ASSERT): Likewise.
31549         * tests/test-fwriting.c (ASSERT): Likewise.
31550         * tests/test-getdelim.c (ASSERT): Likewise.
31551         * tests/test-getline.c (ASSERT): Likewise.
31552         * tests/test-i-ring.c (ASSERT): Likewise.
31553         * tests/test-iconv-utf.c (ASSERT): Likewise.
31554         * tests/test-iconv.c (ASSERT): Likewise.
31555         * tests/test-isfinite.c (ASSERT): Likewise.
31556         * tests/test-isnand.c (ASSERT): Likewise.
31557         * tests/test-isnanf.c (ASSERT): Likewise.
31558         * tests/test-isnanl.h (ASSERT): Likewise.
31559         * tests/test-ldexpl.c (ASSERT): Likewise.
31560         * tests/test-linked_list.c (ASSERT): Likewise.
31561         * tests/test-linkedhash_list.c (ASSERT): Likewise.
31562         * tests/test-localename.c (ASSERT): Likewise.
31563         * tests/test-lseek.c (ASSERT): Likewise.
31564         * tests/test-mbscasecmp.c (ASSERT): Likewise.
31565         * tests/test-mbscasestr1.c (ASSERT): Likewise.
31566         * tests/test-mbscasestr2.c (ASSERT): Likewise.
31567         * tests/test-mbscasestr3.c (ASSERT): Likewise.
31568         * tests/test-mbscasestr4.c (ASSERT): Likewise.
31569         * tests/test-mbschr.c (ASSERT): Likewise.
31570         * tests/test-mbscspn.c (ASSERT): Likewise.
31571         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
31572         * tests/test-mbspbrk.c (ASSERT): Likewise.
31573         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
31574         * tests/test-mbsrchr.c (ASSERT): Likewise.
31575         * tests/test-mbsspn.c (ASSERT): Likewise.
31576         * tests/test-mbsstr1.c (ASSERT): Likewise.
31577         * tests/test-mbsstr2.c (ASSERT): Likewise.
31578         * tests/test-mbsstr3.c (ASSERT): Likewise.
31579         * tests/test-memchr2.c (ASSERT): Likewise.
31580         * tests/test-memmem.c (ASSERT): Likewise.
31581         * tests/test-open.c (ASSERT): Likewise.
31582         * tests/test-printf-frexp.c (ASSERT): Likewise.
31583         * tests/test-printf-frexpl.c (ASSERT): Likewise.
31584         * tests/test-printf-posix.c (ASSERT): Likewise.
31585         * tests/test-quotearg.c (ASSERT): Likewise.
31586         * tests/test-rbtree_list.c (ASSERT): Likewise.
31587         * tests/test-rbtree_oset.c (ASSERT): Likewise.
31588         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
31589         * tests/test-round1.c (ASSERT): Likewise.
31590         * tests/test-roundf1.c (ASSERT): Likewise.
31591         * tests/test-roundl.c (ASSERT): Likewise.
31592         * tests/test-signbit.c (ASSERT): Likewise.
31593         * tests/test-sleep.c (ASSERT): Likewise.
31594         * tests/test-snprintf-posix.c (ASSERT): Likewise.
31595         * tests/test-snprintf.c (ASSERT): Likewise.
31596         * tests/test-sprintf-posix.c (ASSERT): Likewise.
31597         * tests/test-stat-time.c (ASSERT): Likewise.
31598         * tests/test-strcasestr.c (ASSERT): Likewise.
31599         * tests/test-strerror.c (ASSERT): Likewise.
31600         * tests/test-striconv.c (ASSERT): Likewise.
31601         * tests/test-striconveh.c (ASSERT): Likewise.
31602         * tests/test-striconveha.c (ASSERT): Likewise.
31603         * tests/test-strsignal.c (ASSERT): Likewise.
31604         * tests/test-strstr.c (ASSERT): Likewise.
31605         * tests/test-strtod.c (ASSERT): Likewise.
31606         * tests/test-trunc1.c (ASSERT): Likewise.
31607         * tests/test-trunc2.c (ASSERT): Likewise.
31608         * tests/test-truncf1.c (ASSERT): Likewise.
31609         * tests/test-truncf2.c (ASSERT): Likewise.
31610         * tests/test-truncl.c (ASSERT): Likewise.
31611         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
31612         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
31613         * tests/test-vasnprintf.c (ASSERT): Likewise.
31614         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
31615         * tests/test-vasprintf.c (ASSERT): Likewise.
31616         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
31617         * tests/test-vprintf-posix.c (ASSERT): Likewise.
31618         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
31619         * tests/test-vsnprintf.c (ASSERT): Likewise.
31620         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
31621         * tests/test-wcwidth.c (ASSERT): Likewise.
31622         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
31623         * tests/test-xprintf-posix.c (ASSERT): Likewise.
31624         * tests/test-xvasprintf.c (ASSERT): Likewise.
31625         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
31626         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
31627         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
31628         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
31629         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
31630         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
31631         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
31632         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
31633         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
31634         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
31635         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
31636         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
31637         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
31638         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
31639         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
31640         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
31641         * tests/unictype/test-block_list.c (ASSERT): Likewise.
31642         * tests/unictype/test-block_of.c (ASSERT): Likewise.
31643         * tests/unictype/test-block_test.c (ASSERT): Likewise.
31644         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
31645         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
31646         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
31647         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
31648         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
31649         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
31650         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
31651         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
31652         * tests/unictype/test-combining.c (ASSERT): Likewise.
31653         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
31654         * tests/unictype/test-digit.c (ASSERT): Likewise.
31655         * tests/unictype/test-mirror.c (ASSERT): Likewise.
31656         * tests/unictype/test-numeric.c (ASSERT): Likewise.
31657         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
31658         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
31659         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
31660         * tests/unictype/test-scripts.c (ASSERT): Likewise.
31661         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
31662         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
31663         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
31664         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
31665         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
31666         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
31667         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
31668         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
31669         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
31670         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
31671         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
31672         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
31673         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
31674         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
31675         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
31676         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
31677         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
31678         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
31679         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
31680         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
31681         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
31682         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
31683         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
31684         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
31685         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
31686         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
31687         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
31688         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
31689         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
31690         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
31691         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
31692         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
31693         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
31694         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
31695         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
31696         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
31697         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
31698         Reported by Eric Blake.
31699
31700 2008-04-11  Bruno Haible  <bruno@clisp.org>
31701
31702         * lib/wchar.in.h: Tweak comment.
31703
31704 2008-04-11  Bruno Haible  <bruno@clisp.org>
31705
31706         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
31707         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
31708         gl_COMMON.
31709         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
31710
31711 2008-04-11  Bruno Haible  <bruno@clisp.org>
31712
31713         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
31714
31715 2008-04-11  Simon Josefsson  <simon@josefsson.org>
31716
31717         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
31718         of attempting to use non-existing /dev/*random.  Based on patch
31719         from Adam Strzelecki <ono@java.pl> in
31720         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
31721
31722 2008-04-08  Bruno Haible  <bruno@clisp.org>
31723
31724         Add tentative support for emx+gcc.
31725         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
31726         * lib/fpurge.c (fpurge): Likewise.
31727         * lib/freadable.c (freadable): Likewise.
31728         * lib/freadahead.c (freadahead): Likewise.
31729         * lib/freading.c (freading): Likewise.
31730         * lib/freadptr.c (freadptr): Likewise.
31731         * lib/freadseek.c (freadptrinc): Likewise.
31732         * lib/fseeko.c (rpl_fseeko): Likewise.
31733         * lib/fseterr.c (fseterr): Likewise.
31734         * lib/fwritable.c (fwritable): Likewise.
31735         * lib/fwriting.c (fwriting): Likewise.
31736         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
31737
31738 2008-04-09  Eric Blake  <ebb9@byu.net>
31739
31740         Avoid some autoconf warnings.
31741         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
31742         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
31743         * m4/afs.m4 (gl_AFS): Likewise.
31744         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
31745         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
31746         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
31747         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
31748         (gl_INTEGER_TYPE_SUFFIX): Likewise.
31749         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
31750         (AC_CHECK_DECLS_ONCE): Likewise.
31751         Rename file...
31752         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
31753         gnulib-tool requires autoconf 2.59 or better.
31754         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
31755
31756 2008-04-08  Eric Blake  <ebb9@byu.net>
31757
31758         Use 'git describe --match' if present (added in git 1.5.5).
31759         * build-aux/git-version-gen: Limit result to tags that match 'v*'
31760         if possible.
31761
31762 2008-04-08  Bruno Haible  <bruno@clisp.org>
31763
31764         Add tentative support for OpenServer.
31765         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
31766         _ptr, _cnt.
31767         * lib/fpurge.c (fpurge): Likewise.
31768         * lib/freadable.c (freadable): Likewise.
31769         * lib/freadahead.c (freadahead): Likewise.
31770         * lib/freading.c (freading): Likewise.
31771         * lib/freadptr.c (freadptr): Likewise.
31772         * lib/freadseek.c (freadptrinc): Likewise.
31773         * lib/fseeko.c (rpl_fseeko): Likewise.
31774         * lib/fseterr.c (fseterr): Likewise.
31775         * lib/fwritable.c (fwritable): Likewise.
31776         * lib/fwriting.c (fwriting): Likewise.
31777         Reported by Roger Cornelius <rac@tenzing.org> and
31778         Brian K. White <brian@aljex.com>.
31779
31780 2008-04-06  Jim Meyering  <meyering@redhat.com>
31781
31782         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
31783
31784 2008-04-06  Bruno Haible  <bruno@clisp.org>
31785
31786         Avoid possible error with non-ASCII bytes in UTF-8 locales.
31787         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
31788         * tests/test-printf-posix.sh: Likewise.
31789         * tests/test-vfprintf-posix.sh: Likewise.
31790         * tests/test-vprintf-posix.sh: Likewise.
31791         * tests/test-xprintf-posix.sh: Likewise.
31792
31793 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31794
31795         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
31796         hide error from 'ls', needed on OS/2.
31797         Report by Elbert Pol <elbert.pol@gmail.com>.
31798
31799 2008-04-04  Eric Blake  <ebb9@byu.net>
31800
31801         Make test-fseeko.c failures meaningful.
31802         * tests/test-fseeko.c: Print line number on failure.
31803         * tests/test-fseek.c: Likewise.
31804         Reported by Nelson H. F. Beebe.
31805
31806         Improve strtod bug detection check.
31807         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
31808         required for Solaris 10.
31809         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
31810
31811 2008-04-04  Bruno Haible  <bruno@clisp.org>
31812
31813         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
31814         by m4/setenv.m4.
31815
31816 2008-04-03  Eric Blake  <ebb9@byu.net>
31817
31818         Ensure sane .version contents.
31819         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
31820         version string.
31821         * build-aux/git-version-gen: Improve documentation.
31822
31823         Make GNU make output nicer.
31824         * top/GNUmakefile [!_have-Makefile]: Add dependency on
31825         MAKECMDGOALS to enforce message for all command line targets.  Set
31826         srcdir for use in maint.mk.
31827
31828         Another maintainer tweak.
31829         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
31830         a target that regenerates version.
31831
31832 2008-04-03  Jim Meyering  <meyering@redhat.com>
31833
31834         vc-list-files: don't cause coreutils "make po-check" failure
31835         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
31836
31837 2008-04-03  Eric Blake  <ebb9@byu.net>
31838
31839         Allow VPATH usage of vc-list-files.
31840         * build-aux/vc-list-files (scriptversion): Add timestamp.
31841         (options): Add --help, --version, -C.
31842         (CVS): Support installed cvsu.
31843
31844 2008-04-02  Bruno Haible  <bruno@clisp.org>
31845
31846         Avoid some "statement with no effect" warnings from gcc.
31847         * tests/test-wctype.c (main): Explicitly ignore unused values.
31848         Reported by Jim Meyering.
31849
31850 2008-04-02  Jim Meyering  <meyering@redhat.com>
31851
31852         Avoid some warnings from "gcc -Wshadow".
31853         * tests/test-frexp.c (exp): Define to a different identifier.
31854         * tests/test-frexpl.c (exp): Likewise.
31855
31856 2008-04-03  Jim Meyering  <meyering@redhat.com>
31857
31858         bootstrap: remove dangling *.[ch] symlinks from lib
31859         * build-aux/bootstrap [dangling symlink removal]: Move find's
31860         -depth option to precede all others, to avoid a warning.
31861         Remove *.[ch] files too, and from "$source_base" (usually lib/).
31862
31863 2008-04-02  Bruno Haible  <bruno@clisp.org>
31864
31865         Avoid some warnings from "gcc -Wshadow".
31866         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
31867         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
31868         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
31869         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
31870         Reported by Jim Meyering.
31871
31872 2008-04-01  Bruno Haible  <bruno@clisp.org>
31873
31874         Fix test to work on IRIX 6.5 with cc.
31875         * tests/test-math.c (numeric_equal): New function.
31876         (main): Use it.
31877
31878 2008-04-01  Bruno Haible  <bruno@clisp.org>
31879
31880         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
31881
31882 2008-04-01  Bruno Haible  <bruno@clisp.org>
31883
31884         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
31885         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
31886         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
31887         (Depends-on): Remove math.
31888
31889         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
31890         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
31891         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
31892         (Depends-on): Remove math.
31893
31894         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
31895         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
31896         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
31897         (Depends-on): Remove math.
31898         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
31899         (Depends-on): Remove math.
31900
31901         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
31902         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
31903         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
31904         (Depends-on): Remove math.
31905         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
31906         (Depends-on): Remove math.
31907
31908         * tests/test-round1.c: Include nan.h.
31909         (main): Use NaNd instead of NAN.
31910         * modules/round-tests (Files): Add tests/nan.h.
31911
31912         * tests/test-trunc1.c: Include nan.h.
31913         (main): Use NaNd instead of NAN.
31914         * modules/trunc-tests (Files): Add tests/nan.h.
31915
31916         * tests/test-roundf1.c: Include nan.h.
31917         (main): Use NaNf instead of NAN.
31918         * modules/roundf-tests (Files): Add tests/nan.h.
31919
31920         * tests/test-truncf1.c: Include nan.h.
31921         (main): Use NaNf instead of NAN.
31922         * modules/truncf-tests (Files): Add tests/nan.h.
31923
31924         * tests/test-ceilf1.c: Include nan.h.
31925         (main): Use NaNf instead of NAN.
31926         * modules/ceilf-tests (Files): Add tests/nan.h.
31927
31928         * tests/test-floorf1.c: Include nan.h.
31929         (main): Use NaNf instead of NAN.
31930         * modules/floorf-tests (Files): Add tests/nan.h.
31931
31932         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
31933         (main): Use NaNf instead of NAN.
31934         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
31935
31936         * tests/test-isnand.c: Include nan.h instead of <math.h>.
31937         (main): Use NaNd instead of NAN.
31938         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
31939
31940         * tests/test-frexp.c: Include nan.h.
31941         (main): Use NaNd instead of NAN.
31942         * modules/frexp-tests (Files): Add tests/nan.h.
31943
31944         * lib/isnan.c: Don't include <math.h>.
31945         (FUNC): Don't use NAN macro.
31946         * modules/isnand-nolibm (Depends-on): Remove math.
31947         * modules/isnanf-nolibm (Depends-on): Remove math.
31948         * modules/isnanl (Depends-on): Remove math.
31949         * modules/isnanl-nolibm (Depends-on): Remove math.
31950
31951         * tests/nan.h: New file.
31952
31953 2008-04-01  Eric Blake  <ebb9@byu.net>
31954
31955         Fix typos.
31956         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
31957         values to be the right type.
31958
31959         For now, cater to gnulib strtod inaccuracies.
31960         * tests/test-strtod.c (main): Allow 1-ulp error on expected
31961         fractional results.  While not as nice from a QoI perspective, it
31962         is a quicker patch than correctly implementing decimal to binary
31963         rounding.
31964
31965 2008-03-31  Eric Blake  <ebb9@byu.net>
31966
31967         Guarantee a definition of NAN.
31968         * lib/math.in.h (NAN): Define if missing.
31969         * tests/test-math.c (main): Test it.
31970         * doc/posix-headers/math.texi (math.h): Document this.
31971         * lib/isnan.c (rpl_isnand): Use it.
31972         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
31973         * tests/test-floorf1.c (NaN): Likewise.
31974         * tests/test-frexp.c (NaN): Likewise.
31975         * tests/test-isnand.c (NaN): Likewise.
31976         * tests/test-isnanf.c (NaN): Likewise.
31977         * tests/test-round1.c (NaN): Likewise.
31978         * tests/test-roundf1.c (NaN): Likewise.
31979         * tests/test-snprintf-posix.h (NaN): Likewise.
31980         * tests/test-sprintf-posix.h (NaN): Likewise.
31981         * tests/test-trunc1.c (NaN): Likewise.
31982         * tests/test-truncf1.c (NaN): Likewise.
31983         * tests/test-vasnprintf-posix.c (NaN): Likewise.
31984         * tests/test-vasprintf-posix.c (NaN): Likewise.
31985         * modules/isnand-nolibm (Depends-on): Add math.
31986         * modules/isnanf-nolibm (Depends-on): Likewise.
31987         * modules/isnanl (Depends-on): Likewise.
31988         * modules/isnanl-nolibm (Depends-on): Likewise.
31989         * modules/snprintf-posix-tests (Depends-on): Likewise.
31990         * modules/sprintf-posix-tests (Depends-on): Likewise.
31991         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
31992         * modules/vsprintf-posix-tests (Depends-on): Likewise.
31993         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
31994         * modules/vasprintf-posix-tests (Depends-on): Likewise.
31995
31996 2008-03-31  Bruno Haible  <bruno@clisp.org>
31997
31998         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
31999         * doc/posix-functions/strtod.texi: Likewise.
32000
32001 2008-03-31  Bruno Haible  <bruno@clisp.org>
32002
32003         * tests/test-strtod.c (main): Don't use C99 syntax.
32004
32005 2008-03-31  Bruno Haible  <bruno@clisp.org>
32006
32007         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
32008         Reported by Eric Blake.
32009
32010 2008-03-31  Jim Meyering  <meyering@redhat.com>
32011
32012         Don't compare actual signbit return values.
32013         * tests/test-strtod.c (main): Rather, compare only their
32014         zero/non-zero nature.
32015
32016 2008-03-31  Eric Blake  <ebb9@byu.net>
32017
32018         More strtod documentation.
32019         * doc/posix-functions/strtod.texi (strtod): Interpret more test
32020         failures as distinct bugs.
32021
32022 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
32023
32024         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
32025         Problem reported by Erik Benada in
32026         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
32027
32028 2008-03-30  Bruno Haible  <bruno@clisp.org>
32029
32030         * tests/test-strtod.c: Add comments about which assertion fails on which
32031         platform.
32032         * doc/posix-functions/strtod.texi: Add info about many more platforms.
32033
32034 2008-03-30  Eric Blake  <ebb9@byu.net>
32035
32036         Test signbit behavior on zeros.
32037         * tests/test-signbit.c (test_signbitf): Add tests for zero.
32038         (test_signbitd, test_signbitl): Likewise.
32039
32040         More strtod touchups.
32041         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
32042         sign of negative underflow, for now.  Use .5, not .1.
32043         * doc/posix-functions/strtod.texi (strtod): Mention these
32044         limitations.
32045         Reported by Jim Meyering.
32046
32047 2008-03-30  Bruno Haible  <bruno@clisp.org>
32048
32049         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
32050         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
32051
32052 2008-03-30  Bruno Haible  <bruno@clisp.org>
32053
32054         Avoid failure when attempting to return empty iconv results on some
32055         platforms.
32056         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
32057         allocation, don't report ENOMEM when the resulting string is empty.
32058
32059 2008-03-30  Bruno Haible  <bruno@clisp.org>
32060
32061         Fix buffer overrun.
32062         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
32063         Don't consider the width for tmp_length. Check count against tmp_length
32064         before doing the padding. Ensure enough allocation during padding.
32065
32066 2008-03-30  Eric Blake  <ebb9@byu.net>
32067
32068         strtod touchups.
32069         * lib/strtod.c (strtod): Avoid compiler warnings.
32070         Reported by Jim Meyering.
32071
32072 2008-03-30  Bruno Haible  <bruno@clisp.org>
32073
32074         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
32075         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
32076         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
32077         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
32078         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
32079         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
32080         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
32081         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
32082
32083         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
32084         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
32085         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
32086         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
32087         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
32088         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
32089         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
32090         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
32091
32092         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
32093         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
32094         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
32095         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
32096         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
32097         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
32098         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
32099         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
32100
32101         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
32102         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
32103
32104         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
32105         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
32106
32107         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
32108         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
32109
32110         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
32111         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
32112         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
32113
32114         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
32115         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
32116         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
32117
32118         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
32119         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
32120         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
32121
32122         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
32123         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
32124         * modules/vasprintf (Depends-on): Add EOVERFLOW.
32125
32126         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
32127         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
32128         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
32129         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
32130         (Depends-on): Add EOVERFLOW.
32131         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
32132         (Depends-on): Add EOVERFLOW.
32133         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
32134         (Depends-on): Add EOVERFLOW.
32135         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
32136         (Depends-on): Add EOVERFLOW.
32137         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
32138         (Depends-on): Add EOVERFLOW.
32139         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
32140         (Depends-on): Add EOVERFLOW.
32141         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
32142         (Depends-on): Add EOVERFLOW.
32143         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
32144         (Depends-on): Add EOVERFLOW.
32145
32146         * lib/sprintf.c (EOVERFLOW): Remove fallback.
32147         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
32148         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
32149
32150         * lib/snprintf.c (EOVERFLOW): Remove fallback.
32151         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
32152         * modules/snprintf (Depends-on): Add EOVERFLOW.
32153
32154         * lib/poll.c (EOVERFLOW): Remove fallback.
32155         * modules/poll (Depends-on): Add EOVERFLOW.
32156
32157         * lib/getugroups.c (EOVERFLOW): Remove fallback.
32158         * modules/getugroups (Depends-on): Add EOVERFLOW.
32159
32160         * lib/getdelim.c (EOVERFLOW): Remove fallback.
32161         * modules/getdelim (Depends-on): Add EOVERFLOW.
32162
32163         * lib/ftell.c (EOVERFLOW): Remove fallback.
32164         * modules/ftell (Depends-on): Add EOVERFLOW.
32165
32166         * lib/fprintf.c (EOVERFLOW): Remove fallback.
32167         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
32168         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
32169
32170         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
32171
32172         * modules/EOVERFLOW-tests: New file.
32173         * tests/test-EOVERFLOW.c: New file.
32174
32175         * modules/EOVERFLOW: New file.
32176         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
32177
32178 2008-03-30  Bruno Haible  <bruno@clisp.org>
32179
32180         Fix bug introduced on 2007-06-10.
32181         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
32182         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
32183
32184 2008-03-30  Bruno Haible  <bruno@clisp.org>
32185
32186         Improve freadseek's efficiency after ungetc.
32187         * lib/freadseek.c: Include freadahead.h.
32188         (freadptrinc): New function, extracted from freadseek.
32189         (freadseek): Use it in a loop. Use freadahead to determine the number
32190         of loop iterations.
32191         * modules/freadseek (Depends-on): Add freadahead.
32192         (configure.ac): Require AC_C_INLINE.
32193
32194 2008-03-30  Bruno Haible  <bruno@clisp.org>
32195
32196         * lib/freadseek.c (freadseek): Don't ignore the return value of
32197         freadptr.
32198
32199 2008-03-29  Eric Blake  <ebb9@byu.net>
32200
32201         Add hex float support.
32202         * modules/strtod (Depends-on): Add c-ctype.
32203         (Link): Mention POW_LIB.
32204         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
32205         whitespace between 'e' and exponent.
32206         * tests/test-strtod.c (main): Enable hex float tests.
32207         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
32208         now provides.
32209
32210         Document various strtod bugs, with some fixes.
32211         * doc/posix-functions/strtod.texi (strtod): Document bugs with
32212         "-0x", "inf", "nan", and hex constants.
32213         * doc/posix-functions/atof.texi (atof): Likewise.
32214         * modules/stdlib (Makefile.am): Support strtod.
32215         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
32216         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
32217         detect additional strtod bugs.
32218         * lib/stdlib.in.h (rpl_strtod): Add declarations.
32219         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
32220         bool where appropriate.  Parse 'inf' and 'nan'.
32221         * tests/test-strtod.c: New file.
32222         * modules/strtod (Depends-on): Add stdbool, stdlib.
32223         (configure.ac): Turn on module indicator.
32224         * modules/strtod-tests: New module.
32225
32226 2008-03-29  Eric Blake  <ebb9@byu.net>
32227
32228         Fix ftell on mingw.
32229         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
32230         * modules/ftell-tests (Depends-on): Add binary-io.
32231         * modules/ftello-tests (Depends-on): Likewise.
32232         * tests/test-ftell.c (main): Enhance test to cover behavior after
32233         ungetc.  Enforce binary mode.
32234         * tests/test-ftello.c (main): Likewise.
32235
32236         Pass test-freadseek on cygwin.
32237         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
32238         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
32239         ungetc buffer.
32240
32241         * tests/test-fflush2.c (main): Fix typo.
32242
32243 2008-03-29  Bruno Haible  <bruno@clisp.org>
32244
32245         * tests/test-fflush2.c (main): Temporarily disable the contents of
32246         this test.
32247         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
32248         Reported by Eric Blake.
32249
32250 2008-03-28  Simon Josefsson  <simon@josefsson.org>
32251
32252         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
32253         (GC_SHA224_DIGEST_SIZE): Add.
32254
32255         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
32256         (gc_hash_digest_length): Likewise.
32257         (gc_hash_buffer): Likewise.
32258
32259 2008-03-25  Bruno Haible  <bruno@clisp.org>
32260
32261         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
32262         detail which gettext release to use.
32263         Reported by Simon Josefsson.
32264
32265 2008-03-26  Jim Meyering  <meyering@redhat.com>
32266
32267         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
32268         * modules/gnumakefile (clean-GNUmakefile): Also, use
32269         test ... && ... || : syntax rather than if-then ... fi.
32270
32271         gnumakefile: Don't double-quote-expand $(VPATH) value.
32272         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
32273
32274 2008-03-24  Eric Blake  <ebb9@byu.net>
32275
32276         Alter GNUmakefile to install into top directory.
32277         * modules/maintainer-makefile: Split, and add dependency...
32278         * modules/gnumakefile: to this new module.
32279         * build-aux/GNUmakefile: Move...
32280         * top/GNUmakefile: ...here.
32281         * build-aux/maint.mk: Move...
32282         * top/maint.mk: ...here.
32283         * MODULES.html.sh (Support for maintaining...): Document new
32284         module.
32285
32286 2008-03-23  Bruno Haible  <bruno@clisp.org>
32287
32288         * gnulib-tool: New options --vc-files, --no-vc-files.
32289         (func_usage): Document them.
32290         (vc_files): New variable.
32291         (func_import): Consider vc_files.
32292         (func_create_testdir): Set vc_files to empty.
32293         Suggested by Jim Meyering and Karl Berry.
32294
32295 2008-03-23  Bruno Haible  <bruno@clisp.org>
32296
32297         Fix regex compilation error on HP-UX 11.
32298         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
32299         * modules/regex (Files): Add m4/mbstate_t.m4.
32300         Reported by Ton Voon <ton.voon@altinity.com>.
32301
32302 2008-03-23  Bruno Haible  <bruno@clisp.org>
32303
32304         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
32305
32306 2008-03-23  Eric Blake  <ebb9@byu.net>
32307             Bruno Haible  <bruno@clisp.org>
32308
32309         Install files from top/ in the destination directory.
32310         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
32311         augmentation also for the files from top/.
32312         (func_import, func_create_testdir): Rewrite file names:
32313         top/filename -> filename.
32314
32315 2008-03-23  Bruno Haible  <bruno@clisp.org>
32316
32317         Tweak "gnulib --version" output.
32318         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
32319
32320 2008-03-23  Bruno Haible  <bruno@clisp.org>
32321
32322         Tweak "gnulib --version" output.
32323         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
32324         rather than contents of ChangeLog, when possible.
32325
32326 2008-03-21  Eric Blake  <ebb9@byu.net>
32327
32328         More --version tweaks.
32329         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
32330         date of last ChangeLog entry.
32331
32332 2008-03-21  Jim Meyering  <meyering@redhat.com>
32333
32334         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
32335
32336 2008-03-20  Eric Blake  <ebb9@byu.net>
32337
32338         VPATH fix.
32339         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
32340
32341 2008-03-20  Simon Josefsson  <simon@josefsson.org>
32342
32343         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
32344         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
32345
32346 2008-03-20  Eric Blake  <ebb9@byu.net>
32347
32348         Sync GNUmakefile with coreutils.
32349         * build-aux/GNUmakefile (have-Makefile): Rename...
32350         (_have-Makefile): ...to this, for namespace consideration.
32351         (GNUmakefile.cfg): Include, if present.
32352         (_autoreconf): Define a default.
32353         (_is-dist-target): New rule for rebuilds to pick up intra-release
32354         version.
32355         (maint-cfg.mk): Rename...
32356         (cfg.mk): ...to this.
32357
32358 2008-03-18  Jim Meyering  <meyering@redhat.com>
32359
32360         New script and module: mktempd
32361         * MODULES.html.sh (maint+release support): Add mktempd.
32362         * build-aux/mktempd: New file.
32363         * modules/mktempd: New file.
32364
32365 2008-03-15  Jim Meyering  <meyering@redhat.com>
32366
32367         Undo last change.
32368         * lib/sha1.c, lib/md5.c: 63 != ~63.
32369         Reported by Andreas Schwab.
32370
32371         sha1.c, md5.c: Hoist a redundant expression.
32372         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
32373         "ctx->buflen" only once, before calling *_process_block.
32374         * lib/md5.c (md5_process_bytes): Likewise.
32375
32376 2008-03-14  Eric Blake  <ebb9@byu.net>
32377
32378         Bump copyright year in files generated by gnulib-tool.
32379         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
32380         gnulib-tool, rather than hard-coding it.
32381
32382         Fix 'gnulib-tool --version' output to work with git.
32383         * gnulib-tool (func_gnulib_dir): New function, extracted from...
32384         (startup): ...here.
32385         (func_version): Use it to invoke git-version-gen, rather than
32386         relying on CVS keyword expansion.  Modernize wording.
32387         (cvsdatestamp, last_checkin_date, version): Kill unused
32388         variables.
32389
32390 2008-03-12  Jim Meyering  <meyering@redhat.com>
32391
32392         Recognize optional cast of the argument to free.
32393         * build-aux/useless-if-before-free: Update regexps.
32394
32395         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
32396
32397 2008-03-11  Bruno Haible  <bruno@clisp.org>
32398
32399         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
32400         by a single package.
32401         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
32402         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
32403         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
32404         Reported by Sam Steingold <sds@gnu.org>.
32405
32406 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
32407
32408         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
32409         repositories.
32410
32411 2008-03-11  Bruno Haible  <bruno@clisp.org>
32412
32413         Avoid conflicts between local macro definitions.
32414         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
32415         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
32416
32417 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
32418             Bruno Haible  <bruno@clisp.org>
32419
32420         Make va_copy work with some version of xlc on AIX 5.1.
32421         * lib/stdarg.in.h: New file.
32422         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
32423         On AIX, use a <stdarg.h> file substitute.
32424         * modules/stdarg (Files): Add lib/stdarg.in.h.
32425         (Depends-on): Add include_next.
32426         (Makefile.am): Build a stdarg.h substitute if requested.
32427         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
32428
32429 2008-03-10  Bruno Haible  <bruno@clisp.org>
32430
32431         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
32432         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
32433         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
32434
32435 2008-03-10  Bruno Haible  <bruno@clisp.org>
32436
32437         * modules/stdlib (Depends-on): Add include_next, remove
32438         absolute-header.
32439
32440 2008-03-09  Bruno Haible  <bruno@clisp.org>
32441
32442         * lib/freadahead.h (freadahead): Document more precisely.
32443         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
32444         the sum of both buffer sizes.
32445         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
32446         * NEWS: Document the change.
32447
32448 2008-03-09  Bruno Haible  <bruno@clisp.org>
32449
32450         Extend freadptr to return also the buffer size.
32451         * lib/freadptr.h (freadptr): Add sizep argument.
32452         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
32453         (freadptr): Add sizep argument. Determine buffer size like freadahead
32454         does.
32455         * tests/test-freadptr.c: Don't include freadahead.h.
32456         (main): Adapt for new calling convention of freadptr.
32457         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
32458         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
32459         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
32460         tests/test-freadptr2.sh.
32461         (Depends): Remove freadahead.
32462         (TESTS): Add test-freadptr2.sh.
32463         (check_PROGRAMS): Add test-freadptr2.
32464
32465 2008-03-09  Bruno Haible  <bruno@clisp.org>
32466
32467         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
32468         Report and solution by Simon Josefsson.
32469
32470 2008-03-06  Bruno Haible  <bruno@clisp.org>
32471
32472         Make fflush after ungetc work on BSD platforms.
32473         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
32474         * tests/test-fflush2.c: New file.
32475         * tests/test-fflush2.sh: New file.
32476         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
32477         tests/test-fflush2.c.
32478         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
32479         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
32480
32481 2008-03-06  Eric Blake  <ebb9@byu.net>
32482
32483         Likewise for ftello.
32484         * modules/ftello (Dependencies): Add extensions.
32485         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
32486
32487 2008-03-06  Bruno Haible  <bruno@clisp.org>
32488
32489         * modules/fseeko (Dependencies): Add extensions.
32490         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
32491         Needed on glibc systems.
32492
32493 2008-03-06  Bruno Haible  <bruno@clisp.org>
32494
32495         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
32496         email address.
32497         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
32498
32499 2008-03-06  Bruno Haible  <bruno@clisp.org>
32500
32501         * users.txt: Add libgnupdf.
32502
32503 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
32504
32505         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
32506         (Header File Substitutes, Function Substitutes,
32507         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
32508         (Build robot for gnulib): Fix typo.
32509
32510 2008-03-06  Bruno Haible  <bruno@clisp.org>
32511
32512         * doc/gnulib-tool.texi (VCS Issues): Small updates.
32513         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
32514
32515 2008-03-06  Bruno Haible  <bruno@clisp.org>
32516
32517         * doc/func.texi: New file, extracted from doc/gnulib.texi.
32518         * doc/gnulib.texi: Include it.
32519
32520 2008-03-06  Simon Josefsson  <simon@josefsson.org>
32521
32522         * modules/func (License): Change license to unlimited; there was
32523         no LGPL parts in the module anyway.
32524
32525 2008-03-06  Simon Josefsson  <simon@josefsson.org>
32526
32527         * modules/__func__: Renamed to modules/func.
32528         * modules/__func__-tests: Renamed to modules/func-tests.
32529         * tests/test-__func__.c: Renamed to tests/test-func.c.
32530         * m4/__func__.m4: Renamed to m4/func.m4.
32531         * doc/gnulib.texi (__func__): Section renamed to func.
32532         Suggested by Eric Blake <ebb9@byu.net>.
32533
32534 2008-03-06  Simon Josefsson  <simon@josefsson.org>
32535
32536         * doc/gnulib.texi (__func__): Use C99 terminology when talking
32537         about __func__.  Make example self-contained.  Suggested by Eric
32538         Blake <ebb9@byu.net>.
32539
32540         * tests/test-__func__.c (main): Avoid extraneous () around __func.
32541         Suggested by Eric Blake <ebb9@byu.net>.
32542
32543 2008-03-06  Simon Josefsson  <simon@josefsson.org>
32544
32545         * modules/__func__: New file.
32546         * modules/__func__-tests: New file.
32547         * tests/test-__func__.c: New file.
32548         * m4/__func__.m4: New file.
32549         * doc/gnulib.texi (__func__): Document __func__ module.
32550
32551 2008-03-05  Simon Josefsson  <simon@josefsson.org>
32552
32553         * modules/byteswap (License): Re-license as LGPLv2+.
32554
32555 2008-03-05  Simon Josefsson  <simon@josefsson.org>
32556
32557         * doc/Makefile: Add pdf target.
32558
32559 2008-03-05  Simon Josefsson  <simon@josefsson.org>
32560
32561         * modules/inline (License): Use 'unlimited', since there are only
32562         *.m4 files in this module.
32563
32564 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
32565             Bruno Haible  <bruno@clisp.org>
32566
32567         Add support for HP C 7.1 on OpenVMS 8.3.
32568         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
32569
32570 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
32571
32572         Update VMS specifics.
32573         * lib/getopt.c [VMS]: Remove include of unixlib.h.
32574
32575 2008-03-02  Jim Meyering  <meyering@redhat.com>
32576
32577         Remove the last dependency on the "free" module.
32578         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
32579         Reported by Bob Proulx.
32580
32581         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
32582
32583         Remove useless "if" tests before free.  Deprecate "free" module.
32584         * doc/posix-functions/free.texi: Mention that this
32585         module is no longer useful.
32586         * modules/free (Notice): Say this module is obsolete.
32587         * modules/readutmp (Depends-on): Remove free.
32588         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
32589         * lib/putenv.c (putenv): Likewise.
32590         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
32591         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
32592         * tests/test-c-strcasestr.c (main): Likewise.
32593         * tests/test-c-strstr.c (main): Likewise.
32594         * tests/test-mbscasestr1.c (main): Likewise.
32595         * tests/test-mbscasestr2.c (main): Likewise.
32596         * tests/test-mbsstr1.c (main): Likewise.
32597         * tests/test-mbsstr2.c (main): Likewise.
32598         * tests/test-memmem.c (main): Likewise.
32599         * tests/test-strcasestr.c (main): Likewise.
32600         * tests/test-striconv.c (main): Likewise.
32601         * tests/test-striconveh.c (main): Likewise.
32602         * tests/test-striconveha.c (main): Likewise.
32603         * tests/test-strstr.c (main): Likewise.
32604
32605         * build-aux/git-version-gen: Adjust a comment and the Usage string.
32606
32607         bootstrap: sync from coreutils again
32608         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
32609
32610 2008-03-01  Jim Meyering  <meyering@redhat.com>
32611
32612         bootstrap: sync from coreutils
32613         * build-aux/bootstrap (update_po_files): Copy a .po file into place
32614         also when the target doesn't exist.
32615
32616 2008-03-01  Eric Blake  <ebb9@byu.net>
32617
32618         Fix bugs in last patch.
32619         * lib/memchr2.c (memchr2): Fix typo.
32620         * tests/test-memchr2.c: Test previous bug, and don't use GNU
32621         extension.
32622         Reported by Bruce Korb.
32623
32624         New module 'memchr2'.
32625         * modules/memchr2: New file.
32626         * modules/memchr2-tests: Likewise.
32627         * lib/memchr2.h: Likewise.
32628         * lib/memchr2.c: Likewise, based on memchr.c.
32629         * tests/test-memchr2.c: New test.
32630         * MODULES.html.sh (String handling): Add memchr2.
32631
32632 2008-02-29  Bruno Haible  <bruno@clisp.org>
32633
32634         * modules/freadseek-tests: New file.
32635         * tests/test-freadseek.sh: New file.
32636         * tests/test-freadseek.c: New file.
32637
32638         New module 'freadseek'.
32639         * modules/freadseek: New file.
32640         * lib/freadseek.h: New file.
32641         * lib/freadseek.c: New file.
32642         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
32643
32644 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
32645
32646         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
32647         wydawca.
32648
32649         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
32650         program_invocation_name and program_invocation_short_name are
32651         present.
32652
32653 2008-02-28  Bruno Haible  <bruno@clisp.org>
32654
32655         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
32656         * tests/test-freadptr.sh: Also test non-seekable stdin.
32657
32658 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
32659
32660         * build-aux/bootstrap (source_base, m4_base)
32661         (doc_base, tests_base): New variables.
32662         (gnulib_tool_options): Do not hardcode base directories, use
32663         the above variables instead.
32664
32665 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
32666
32667         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
32668
32669 2008-02-28  Bruno Haible  <bruno@clisp.org>
32670
32671         * modules/freadptr-tests: New file.
32672         * tests/test-freadptr.sh: New file.
32673         * tests/test-freadptr.c: New file.
32674
32675         New module 'freadptr'.
32676         * modules/freadptr: New file.
32677         * lib/freadptr.h: New file.
32678         * lib/freadptr.c: New file.
32679         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
32680
32681 2008-02-26  Karl Berry  <karl@freefriends.org>
32682
32683         Sync from Libtool:
32684         * libltdl/argz.c (argz_add, argz_count): New functions.
32685         * libltdl/argz.in.h: Declare them.
32686         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
32687
32688 2008-02-22  Bruno Haible  <bruno@clisp.org>
32689
32690         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
32691         is a pointer type.  Needed for HP-UX 10.
32692         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
32693         * doc/posix-functions/gmtime_r.texi: Likewise.
32694         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
32695
32696 2008-02-24  Bruno Haible  <bruno@clisp.org>
32697
32698         * modules/environ-tests: New file.
32699         * tests/test-environ.c: New file.
32700
32701         New module 'environ'.
32702         * modules/environ: New file.
32703         * lib/unistd.in.h (environ): New declaration.
32704         * m4/environ.m4: New file.
32705         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
32706         after use.
32707         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
32708         HAVE_DECL_ENVIRON.
32709         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
32710         HAVE_DECL_ENVIRON.
32711         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
32712         wrong claim that 'environ' is missing on some systems.
32713         * modules/execute (Depends-on): Add environ.
32714         * lib/execute.c (environ): Remove fallback declaration.
32715         * modules/pipe (Depends-on): Add environ.
32716         * lib/pipe.c (environ): Remove fallback declaration.
32717         * modules/setenv (Depends-on): Add environ.
32718         * lib/setenv.c (environ): Remove fallback declaration.
32719         * modules/unsetenv (Depends-on): Add environ.
32720         * lib/unsetenv.c (environ): Remove fallback declaration.
32721         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
32722         m4/environ.m4.
32723         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
32724         (gl_PREREQ_UNSETENV): Likewise.
32725
32726 2008-02-24  Bruno Haible  <bruno@clisp.org>
32727
32728         * doc/posix-functions/environ.texi: Document the MacOS X problem.
32729
32730 2008-02-20  Bob Proulx  <bob@proulx.com>
32731
32732         Enable use of older two part flavor 'git describe'.
32733         * build-aux/git-version-gen: If using the older two part flavor of
32734         git version then recreate the third part now present in the
32735         newer three part flavor of git describe.
32736
32737 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
32738
32739         * lib/fts.c (fts_build): Typo correction to comment.
32740
32741 2008-02-17  Bruno Haible  <bruno@clisp.org>
32742
32743         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
32744         generating no-op conflicts.
32745
32746 2008-02-17  Bruno Haible  <bruno@clisp.org>
32747
32748         Speed up by 10%.
32749         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
32750         result_entries, rather than an index-based loop.
32751
32752 2008-02-17  Bruno Haible  <bruno@clisp.org>
32753
32754         Speed up by 25%.
32755         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
32756         'hashcode_cached'.
32757         (entry_create): New function.
32758         (entry_hashcode): Use the cached hashcode if possible.
32759         (read_changelog_file, try_split_merged_entry): Use entry_create.
32760
32761 2008-02-17  Bruno Haible  <bruno@clisp.org>
32762
32763         Speed up from O(n^2) to O(n) for long ChangeLog files.
32764         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
32765         (read_changelog_file): Change implementation of entries_reversed list
32766         to rbtreehash.
32767         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
32768
32769 2008-02-17  Bruno Haible  <bruno@clisp.org>
32770
32771         New option --split-merged-entry.
32772         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
32773         (find_paragraph_end, try_split_merged_entry): New functions.
32774         (long_options): Add option --split-merged-entry.
32775         (usage): Document option --split-merged-entry.
32776         (main): Implement option --split-merged-entry.
32777         Reported by Eric Blake.
32778
32779 2008-02-17  Bruno Haible  <bruno@clisp.org>
32780
32781         * lib/git-merge-changelog.c: Include c-strstr.h.
32782         (main): Support the "git pull --rebase" situation.
32783         * modules/git-merge-changelog (Depends-on): Add c-strstr.
32784         Reported by Eric Blake.
32785
32786 2008-02-16  Eric Blake  <ebb9@byu.net>
32787
32788         Avoid doubling \ in common case of "c-maybe" quoting style.
32789         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
32790         eliding outer quotes.
32791         * lib/quotearg.h: Document this.
32792         * tests/test-quotearg.c (result_strings, inputs, results_g)
32793         (flag_results, locale_results): Test it by adding a new string to
32794         each test group.
32795         (compare_strings): Test new string.
32796
32797 2008-02-13  Eric Blake  <ebb9@byu.net>
32798
32799         Avoid trigraph quoting in default output.
32800         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
32801         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
32802         unless explicitly requested.
32803         * tests/test-quotearg.c (flag_results, main): Add additional tests.
32804
32805 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
32806
32807         Don't rely on signed integer overflowing to negative value.
32808         * lib/getugroups.c (getugroups): Include <limits.h>.
32809         Instead, compare against INT_MAX, and increment only if the test passes.
32810
32811 2008-02-13  Jim Meyering  <meyering@redhat.com>
32812         and Eric Blake  <ebb9@byu.net>
32813
32814         Avoid shadowing warning and compile errors on Linux.
32815         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
32816         forwarding macros on Linux.
32817         (dcgettext): Define a stub, for Linux.
32818         (results_g, main): Avoid warnings.
32819
32820 2008-02-12  Eric Blake  <ebb9@byu.net>
32821
32822         Silence warning in last patch.
32823         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
32824
32825         Quotearg part 4: add tests, fix c-maybe colon quoting.
32826         * lib/quotearg.h: Improve documentation.
32827         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
32828         escapes when adding outer quotes.  When quoting trigraphs, use
32829         valid C notation.  When quoting NUL, omit extra characters if next
32830         character is not digit.  Alter prototype.
32831         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
32832         callers.
32833         * modules/quotearg-tests: New module.
32834         * tests/test-quotearg.c: New test.
32835
32836 2008-02-07  Eric Blake  <ebb9@byu.net>
32837
32838         Quotearg part 3: add flag to control outer quote elision.
32839         * lib/quotearg.h (c_maybe_quoting_style): New style.
32840         (enum quoting_flags): Better documentation of flags.
32841         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
32842         c-maybe style.
32843         (quotearg_buffer_restyled): Handle new flag to elide outer
32844         quotes.
32845
32846         Quotearg part 2: add flag that can control NUL elision.
32847         * lib/quotearg.h (set_quoting_flags): New prototype.
32848         * lib/quotearg.c (struct quoting_options): Add flag field.
32849         (set_quoting_flags): New function.
32850         (quotearg_buffer_restyled): Add flags parameter.
32851         (quotearg_alloc_mem): Set the flag if length cannot be returned.
32852         (quotearg_n_options): Set the flag, since length cannot be
32853         returned.
32854         (quoting_options_from_style): Default flags correctly.
32855
32856         Quotearg part 1: more wrappers, restore quotearg_char state.
32857         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
32858         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
32859         (quotearg_colon_mem): New wrappers.
32860         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
32861         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
32862         functions.
32863         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
32864         (quotearg_colon_mem): New functions.
32865
32866 2008-02-11  Bruno Haible  <bruno@clisp.org>
32867
32868         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
32869         library in the current directory: it does not work with parallel make.
32870         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32871
32872 2008-02-11  Bruno Haible  <bruno@clisp.org>
32873
32874         * .gitattributes: New file.
32875
32876 2008-02-11  Jim Meyering  <meyering@redhat.com>
32877
32878         useless-if-before-free: Fix reversed exit values.
32879         * build-aux/useless-if-before-free: Use correct values
32880         for EXIT_MATCH and EXIT_NO_MATCH.
32881
32882         * build-aux/useless-if-before-free: Close stdout carefully.
32883
32884 2008-02-10  Bruno Haible  <bruno@clisp.org>
32885
32886         New module 'git-merge-changelog'.
32887         * modules/git-merge-changelog: New file.
32888         * lib/git-merge-changelog.c: New file.
32889
32890 2008-02-10  Jim Meyering  <meyering@redhat.com>
32891
32892         useless-if-before-free: New option: --list (-l).
32893
32894         useless-if-before-free: Don't exit immediately upon open failure.
32895         * build-aux/useless-if-before-free: Exit 2 for errors.
32896         Upon failure to open a file, don't exit immediately.
32897         Rather, just warn and continue with any remaining files.
32898
32899 2008-02-10  Bruno Haible  <bruno@clisp.org>
32900
32901         New abstract list operation 'node_set_value'.
32902         * lib/gl_list.h (gl_list_node_set_value): New function.
32903         (struct gl_list_implementation): New field node_set_value.
32904         * lib/gl_list.c (gl_list_node_set_value): New function.
32905         * lib/gl_array_list.c (gl_array_node_set_value): New function.
32906         (gl_array_list_implementation): Update.
32907         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
32908         (gl_carray_list_implementation): Update.
32909         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
32910         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
32911         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
32912         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
32913         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
32914         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
32915         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
32916         Update.
32917         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
32918         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
32919         (gl_sublist_list_implementation): Update.
32920
32921 2008-02-10  Bruno Haible  <bruno@clisp.org>
32922
32923         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
32924         Needed when ELEMENT is #defined to 'some_type *'.
32925
32926 2008-02-10  Jim Meyering  <meyering@redhat.com>
32927
32928         New script and module: useless-if-before-free
32929         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
32930         * build-aux/useless-if-before-free: New file.
32931         * modules/useless-if-before-free: New file.
32932
32933         * build-aux/gitlog-to-changelog: Use committer date, not author date.
32934
32935         xstrtol_error: Fix typo.
32936         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
32937         s/exit_failure/exit_status/.
32938
32939 2008-02-09  Jim Meyering  <meyering@redhat.com>
32940
32941         New script and module: gitlog-to-changelog
32942         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
32943         * modules/gitlog-to-changelog: New file.
32944         * build-aux/gitlog-to-changelog: New file.
32945
32946 2008-02-08  Jim Meyering  <meyering@redhat.com>
32947
32948         Avoid two "parameter unused" warnings.
32949         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
32950         Mark "st" as used.
32951
32952         Use "git COMMAND", not "git-COMMAND".
32953         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
32954         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
32955         * build-aux/git-version-gen: Use "git status", not "git-status".
32956
32957 2008-02-07  Bruno Haible  <bruno@clisp.org>
32958
32959         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
32960         Avoids a crash on Windows Vista.
32961         Reported by Adam Strzelecki <ono@java.pl> via
32962         Simon Josefsson <simon@josefsson.org>.
32963
32964 2008-02-06  Bruno Haible  <bruno@clisp.org>
32965
32966         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
32967         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
32968         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
32969         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
32970         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
32971         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32972         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
32973         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
32974         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32975         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32976         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32977         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32978         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32979         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32980         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32981         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
32982         left-adjust flag.
32983         * tests/test-snprintf-posix.h (test_function): Likewise.
32984         * tests/test-sprintf-posix.h (test_function): Likewise.
32985         * tests/test-vasprintf-posix.c (test_function): Likewise.
32986         * doc/posix-functions/fprintf.texi: Update.
32987         * doc/posix-functions/printf.texi: Update.
32988         * doc/posix-functions/snprintf.texi: Update.
32989         * doc/posix-functions/sprintf.texi: Update.
32990         * doc/posix-functions/vfprintf.texi: Update.
32991         * doc/posix-functions/vprintf.texi: Update.
32992         * doc/posix-functions/vsnprintf.texi: Update.
32993         * doc/posix-functions/vsprintf.texi: Update.
32994         Reported by Peter Fales <psfales@alcatel-lucent.com>.
32995
32996 2008-02-06  Bruno Haible  <bruno@clisp.org>
32997
32998         Fix bug introduced on 2008-01-26.
32999         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
33000
33001 2008-02-06  Bruno Haible  <bruno@clisp.org>
33002
33003         Fix bug introduced on 2007-06-10.
33004         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
33005         !NEED_PRINTF_FLAG_ZERO.
33006
33007 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
33008
33009         getloadavg: use libperfstat on AIX5
33010         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
33011
33012 2008-02-03  Bruno Haible  <bruno@clisp.org>
33013
33014         * lib/diffseq.h: Add comments about required #includes.
33015         Reported by Michael Biggs <gnulib@doubleplum.net>.
33016
33017 2008-02-01  Bruno Haible  <bruno@clisp.org>
33018
33019         * users.txt: Add gnuit.
33020
33021 2008-01-31  Bruno Haible  <bruno@clisp.org>
33022
33023         * lib/md4.c (set_uint32): Mark as inline.
33024         * lib/md5.c (set_uint32): Likewise.
33025         * lib/sha1.c (set_uint32): Likewise.
33026         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
33027         * m4/md5.m4 (gl_MD5): Likewise.
33028         * m4/sha1.m4 (gl_SHA1): Likewise.
33029
33030 2008-01-31  Jim Meyering  <meyering@redhat.com>
33031
33032         Use "sizeof VAR", rather than a literal "4".
33033         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
33034         * lib/md4.c (md4_read_ctx): Likewise.
33035         * lib/sha1.c (sha1_read_ctx): Likewise.
33036
33037 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33038
33039         * tests/test-sha1.c: New file, based on test-md5.c.
33040
33041         * modules/crypto/sha1-tests: New file.
33042
33043 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33044
33045         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
33046
33047 2008-01-31  Jim Meyering  <meyering@redhat.com>
33048
33049         Prefer "sizeof v" over the equivalent "4".
33050         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
33051         * lib/md5.c (set_uint32): Likewise.
33052         * lib/sha1.c (set_uint32): Likewise.
33053
33054 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33055
33056         * lib/sha1.c (set_uint32): Mark function as static.
33057
33058 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33059
33060         md2: clarify comments to say that alignment is not required.
33061         * lib/md2.h: Remove warning about alignment in comment.
33062         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
33063         never been required.
33064
33065 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33066
33067         md4: adapt alignment constraint fix from sha1.
33068         * lib/md4.c (set_uint32): New function, from sha1.c
33069         (md4_read_ctx): Use it.
33070         (md4_finish_ctx): Doc fix.
33071         * lib/md4.h: Doc fix.
33072
33073 2008-01-31  Simon Josefsson  <simon@josefsson.org>
33074
33075         md5: adapt alignment constraint fix from sha1.
33076         * lib/md5.c (set_uint32): New function, from sha1.c
33077         (md5_read_ctx): Use it.
33078         (md5_finish_ctx): Doc fix.
33079         * lib/md5.h: Doc fix.
33080
33081 2008-01-30  Peter Palfrader  <weasel@debian.org>
33082
33083         sha1: remove the result buffer alignment constraint
33084         * lib/sha1.c (set_uint32): New function.
33085         (sha1_read_ctx): Rewrite to remove the result buffer alignment
33086         constraint.
33087         (sha1_finish_ctx): Remove comment warning about alignment constraint.
33088         * lib/sha1.h: Likewise.
33089
33090 2008-01-30  Andreas Schwab  <schwab@suse.de>
33091             Bruno Haible  <bruno@clisp.org>
33092
33093         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
33094         correct definition of LDBL_MIN_EXP.
33095
33096 2008-01-30  Karl Berry  <karl@gnu.org>
33097
33098         * config/srclist-update: try to preserve x bit on updates.
33099         * config/srclistvars.sh: update for karl.
33100
33101 2008-01-29  Jim Meyering  <meyering@redhat.com>
33102
33103         vasnprintf.c: Avoid warning about unused label
33104         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
33105         "overflow" label definition and associated code with the
33106         same cpp condition that guards the sole use of that label.
33107
33108 2008-01-26  Bruno Haible  <bruno@clisp.org>
33109
33110         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
33111         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
33112         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
33113         * lib/isnanl-nolibm.h (isnanl): Likewise.
33114         Reported by Paul Eggert <eggert@cs.ucla.edu>.
33115
33116 2008-01-26  Bruno Haible  <bruno@clisp.org>
33117
33118         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
33119         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
33120
33121 2008-01-26  Bruno Haible  <bruno@clisp.org>
33122
33123         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
33124         GCC >= 4.0 built-in.
33125         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
33126
33127 2008-01-26  Bruno Haible  <bruno@clisp.org>
33128
33129         Rename isnan, applicable to 'double' only, to isnand.
33130         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
33131         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
33132         (configure.ac): Update.
33133         (Include): Replace "isnan.h" with "isnand.h".
33134         * m4/isnand.m4: Renamed from m4/isnan.m4.
33135         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
33136         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
33137         instead of isnan.c.
33138         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
33139         instead of HAVE_ISNAN_IN_LIBC.
33140         (isnand): Renamed from isnan.
33141         * lib/isnand.c: New file.
33142         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
33143         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
33144         (Makefile.am): Update.
33145         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
33146         Include isnand.h instead of isnan.h.
33147         (main): Test isnand instead of isnan.
33148         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
33149         isnan-nolibm.
33150         * modules/frexp (Depends-on): Likewise.
33151         * modules/frexp-tests (Depends-on): Likewise.
33152         * modules/frexp-nolibm (Depends-on): Likewise.
33153         * modules/frexp-nolibm-tests (Depends-on): Likewise.
33154         * modules/isfinite (Depends-on): Likewise.
33155         * modules/round-tests (Depends-on): Likewise.
33156         * modules/signbit (Depends-on): Likewise.
33157         * modules/signbit-tests (Depends-on): Likewise.
33158         * modules/snprintf-posix (Depends-on): Likewise.
33159         * modules/sprintf-posix (Depends-on): Likewise.
33160         * modules/trunc-tests (Depends-on): Likewise.
33161         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
33162         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
33163         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
33164         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
33165         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
33166         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
33167         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
33168         * modules/vasnprintf-posix (Depends-on): Likewise.
33169         * modules/vasprintf-posix (Depends-on): Likewise.
33170         * modules/vfprintf-posix (Depends-on): Likewise.
33171         * modules/vsnprintf-posix (Depends-on): Likewise.
33172         * modules/vsprintf-posix (Depends-on): Likewise.
33173         * lib/frexp.c: Include isnand.h instead of isnan.h.
33174         (ISNAN): Set to isnand instead of isnan.
33175         * lib/isfinite.c: Include isnand.h instead of isnan.h.
33176         (gl_isfinited): Use isnand instead of isnan.
33177         * lib/signbitd.c: Include isnand.h instead of isnan.h.
33178         (gl_signbitd): Use isnand instead of isnan.
33179         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
33180         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
33181         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
33182         (main): Use isnand instead of isnan.
33183         * tests/test-round1.c: Include isnand.h.
33184         (main): Use isnand instead of isnan.
33185         * tests/test-round2.c: Include isnand.h instead of isnan.h.
33186         (ISNAN): Set to isnand instead of isnan.
33187         * tests/test-trunc1.c: Include isnand.h.
33188         (main): Use isnand instead of isnan.
33189         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
33190         (equal): Use isnand instead of isnan.
33191         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
33192         isnand-nolibm.
33193         * NEWS: Mention the change.
33194
33195 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
33196             Bruno Haible  <bruno@clisp.org>
33197
33198         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
33199         the GCC builtins for signbits are present and set
33200         REPLACE_SIGNBIT_USING_GCC if so.
33201         * lib/math.in.h (signbit): Define using GCC builtins if
33202         REPLACE_SIGNBIT_USING_GCC is set.
33203         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
33204         REPLACE_SIGNBIT_USING_GCC.
33205         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
33206
33207 2008-01-25  Jim Meyering  <meyering@redhat.com>
33208
33209         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
33210         * lib/poll.c: Include <config.h>, not "config.h".
33211         * tests/test-getaddrinfo.c: Likewise.
33212
33213 2008-01-25  Simon Josefsson  <simon@josefsson.org>
33214
33215         * modules/sockets-tests: New file.
33216
33217 2008-01-24  Simon Josefsson  <simon@josefsson.org>
33218
33219         * modules/sockets: New module, can be used to call WSA_Startup and
33220         WSA_Cleanup when needed.
33221
33222         * lib/sockets.h, lib/sockets.c: New files.
33223
33224         * m4/sockets.m4: New file.
33225
33226         * tests/test-sockets.c: New file.
33227
33228 2008-01-19  Bruno Haible  <bruno@clisp.org>
33229
33230         * doc/posix-headers: Renamed from doc/headers.
33231         * doc/posix-functions: Renamed from doc/functions.
33232         * doc/gnulib.texi: Update.
33233
33234 2008-01-19  Bruno Haible  <bruno@clisp.org>
33235
33236         * doc/glibc-functions/strcasestr.texi: Include contents of
33237         doc/functions/strcasestr.texi, fixing the list of platforms.
33238         * doc/functions/strcasestr.texi: Remove file.
33239
33240 2008-01-19  Bruno Haible  <bruno@clisp.org>
33241
33242         * doc/glibc-functions/memmem.texi: Include contents of
33243         doc/functions/memmem.texi.
33244         * doc/functions/memmem.texi: Remove file.
33245
33246 2008-01-18  Bruno Haible  <bruno@clisp.org>
33247
33248         * doc/glibc-functions/*.texi: New files.
33249         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
33250         to use the new files.
33251
33252 2008-01-17  Bruno Haible  <bruno@clisp.org>
33253
33254         * tests/test-gethostname.c (main): Fix printf statement.
33255
33256 2008-01-17  Simon Josefsson  <simon@josefsson.org>
33257
33258         * modules/gethostname-tests: New file.
33259
33260         * tests/test-gethostname.c: New file.
33261
33262 2008-01-17  Simon Josefsson  <simon@josefsson.org>
33263
33264         * lib/gethostname.c: Include string.h unconditionally, strncpy is
33265         used by the UNAME case.  Reported by Bruno Haible
33266         <bruno@clisp.org>.
33267
33268 2008-01-17  Eric Blake  <ebb9@byu.net>
33269
33270         Convert c-strcasestr to be more efficient.
33271         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
33272         (Depends-on): Add c-strcase, remove malloca, strnlen.
33273         * tests/test-c-strcasestr.c (main): Enhance test.
33274         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
33275
33276 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
33277
33278         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
33279         Use it in creating po/Makevars.
33280
33281 2008-01-15  Simon Josefsson  <simon@josefsson.org>
33282
33283         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
33284         Applications that requires it should initialize libgcrypt
33285         manually.
33286
33287 2008-01-16  Simon Josefsson  <simon@josefsson.org>
33288
33289         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
33290
33291 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
33292
33293         Fix problem with getdate on mingw32 reported by Simon Josefsson
33294         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
33295         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
33296         tzname", when deciding whether to declare tzname.
33297         * lib/strftime.c (tzname): Likewise.
33298
33299 2008-01-15  Bruno Haible  <bruno@clisp.org>
33300
33301         Work around a MacOS X 10.5 bug in frexpl().
33302         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
33303         * doc/functions/frexpl.texi: Document the bug.
33304         Reported by Elias Pipping <pipping@gentoo.org>.
33305
33306 2008-01-14  Eric Blake  <ebb9@byu.net>
33307
33308         Touch up previous patch.
33309         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
33310         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
33311
33312         Convert strcasestr module to use Two-Way algorithm.
33313         * modules/strcasestr-simple: New module, based on the old
33314         strcasestr, but with Two-Way rather than KMP.
33315         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
33316         * lib/string.in.h (rpl_strcasestr): Declare.
33317         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
33318         performance.
33319         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
33320         * modules/string (Makefile.am): Support strcasestr.
33321         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
33322         * modules/strcasestr-tests (Depends-on): Check for alarm.
33323         * tests/test-strcasestr.c: Augment test.
33324         * lib/str-two-way.h: Clean up stray macro.
33325         * NEWS: Document new module.
33326         * MODULES.html.sh (string handling): Likewise.
33327         * doc/functions/strcasestr.texi: New file.
33328         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
33329         here, since it is not a POSIX function.
33330
33331 2008-01-14  Colin Watson  <cjwatson@debian.org>
33332             Bruno Haible  <bruno@clisp.org>
33333
33334         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
33335         works fine; if not, set REPLACE_STRSIGNAL.
33336         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
33337         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33338         REPLACE_STRSIGNAL.
33339         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
33340         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
33341         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
33342
33343 2008-01-14  Bruno Haible  <bruno@clisp.org>
33344
33345         * modules/strsignal (Include): Change to <string.h>.
33346
33347 2008-01-14  Colin Watson  <cjwatson@debian.org>
33348
33349         * modules/argp (Notice): Add a notice recommending to change
33350         XGETTEXT_OPTIONS.
33351         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
33352
33353 2008-01-13  Colin Watson  <cjwatson@debian.org>
33354
33355         * modules/strsignal-tests: New file.
33356         * tests/test-strsignal.c: New file.
33357
33358         * lib/strsignal.c: New file, from glibc with modifications.
33359         * lib/siglist.h: New file, from glibc with modifications.
33360         * lib/string.in.h (strsignal): New declaration.
33361         * m4/strsignal.m4: New file.
33362         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33363         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
33364         * modules/strsignal: New file.
33365         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
33366         HAVE_DECL_STRSIGNAL.
33367
33368 2008-01-13  Bruno Haible  <bruno@clisp.org>
33369
33370         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
33371         locale encoding is not ASCII. Needed for OpenBSD 4.0.
33372         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
33373         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
33374
33375 2008-01-13  Bruno Haible  <bruno@clisp.org>
33376
33377         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
33378         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
33379         * lib/argp.h (__attribute__): Likewise.
33380         * lib/c-stack.c (__attribute__): Likewise.
33381         * lib/error.h (__attribute__): Likewise.
33382         * lib/fts.c (__attribute__): Likewise.
33383         * lib/openat.h (__attribute__): Likewise.
33384         * lib/stdio.in.h (__attribute__): Likewise.
33385         * lib/string.in.h (__attribute__): Likewise.
33386         * lib/utimens.c (__attribute__): Likewise.
33387         * lib/vasnprintf.h (__attribute__): Likewise.
33388         * lib/xalloc.h (__attribute__): Likewise.
33389         * lib/xprintf.h (__attribute__): Likewise.
33390         * lib/xstrtol.h (__attribute__): Likewise.
33391         * lib/xvasprintf.h (__attribute__): Likewise.
33392
33393 2008-01-12  Bruno Haible  <bruno@clisp.org>
33394
33395         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
33396         * doc/glibc-headers/a.out.texi: New file.
33397         * doc/glibc-headers/aliases.texi: New file.
33398         * doc/glibc-headers/alloca.texi: New file.
33399         * doc/glibc-headers/ar.texi: New file.
33400         * doc/glibc-headers/argp.texi: New file.
33401         * doc/glibc-headers/argz.texi: New file.
33402         * doc/glibc-headers/byteswap.texi: New file.
33403         * doc/glibc-headers/crypt.texi: New file.
33404         * doc/glibc-headers/endian.texi: New file.
33405         * doc/glibc-headers/envz.texi: New file.
33406         * doc/glibc-headers/err.texi: New file.
33407         * doc/glibc-headers/error.texi: New file.
33408         * doc/glibc-headers/execinfo.texi: New file.
33409         * doc/glibc-headers/fpu_control.texi: New file.
33410         * doc/glibc-headers/fstab.texi: New file.
33411         * doc/glibc-headers/fts.texi: New file.
33412         * doc/glibc-headers/getopt.texi: New file.
33413         * doc/glibc-headers/ieee754.texi: New file.
33414         * doc/glibc-headers/ifaddrs.texi: New file.
33415         * doc/glibc-headers/libintl.texi: New file.
33416         * doc/glibc-headers/mcheck.texi: New file.
33417         * doc/glibc-headers/mntent.texi: New file.
33418         * doc/glibc-headers/obstack.texi: New file.
33419         * doc/glibc-headers/paths.texi: New file.
33420         * doc/glibc-headers/printf.texi: New file.
33421         * doc/glibc-headers/pty.texi: New file.
33422         * doc/glibc-headers/resolv.texi: New file.
33423         * doc/glibc-headers/shadow.texi: New file.
33424         * doc/glibc-headers/sysexits.texi: New file.
33425         * doc/glibc-headers/ttyent.texi: New file.
33426
33427 2008-01-12  Jim Meyering  <meyering@redhat.com>
33428
33429         announce-gen: emit Gnulib's git-based version string.
33430         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
33431         New option --gnulib-version=V, where V is expected to be
33432         the output of running git describe in the gnulib directory.
33433         (get_tool_versions): Request feedback on xdelta.  I suspect it's
33434         not useful, and plan to stop publishing an xdelta file with each
33435         coreutils release.
33436
33437         * build-aux/announce-gen: Also check for lzma-compressed files.
33438
33439 2008-01-11  Bruno Haible  <bruno@clisp.org>
33440
33441         * tests/test-memmem.c (main): Increase maximum allowed time.
33442         * tests/test-strstr.c (main): Likewise.
33443
33444 2008-01-11  Bruno Haible  <bruno@clisp.org>
33445
33446         * doc/functions/memmem.texi: Add more precisions about platforms.
33447         * doc/functions/strstr.texi: Likewise.
33448
33449 2008-01-10  Eric Blake  <ebb9@byu.net>
33450
33451         * m4/strstr.m4: Delete cruft from copy-n-paste.
33452         Reported by Bruno Haible.
33453
33454 2008-01-10  Bruno Haible  <bruno@clisp.org>
33455
33456         Make c-strstr rely on strstr.
33457         * lib/c-strstr.c: Don't include str-kmp.h.
33458         (c_strstr): Define in terms of strstr.
33459         * modules/c-strstr (Files): Remove lib/str-kmp.h.
33460         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
33461
33462 2008-01-10  Bruno Haible  <bruno@clisp.org>
33463
33464         * doc/gnulib.texi (String Functions in C Locale): New section.
33465         * doc/c-ctype.texi: New file.
33466         * doc/c-strcase.texi: New file.
33467         * doc/c-strcaseeq.texi: New file.
33468         * doc/c-strcasestr.texi: New file.
33469         * doc/c-strstr.texi: New file.
33470         * doc/c-strtod.texi: New file.
33471         * doc/c-strtold.texi: New file.
33472
33473 2008-01-10  Eric Blake  <ebb9@byu.net>
33474
33475         * lib/relocatable.h: Fix a comment.
33476
33477 2008-01-10  Eric Blake  <ebb9@byu.net>
33478
33479         Share two-way algorithm.
33480         * lib/str-two-way.h: New file, merged from...
33481         * lib/memmem.c: ...here...
33482         * lib/strstr.c: ...and here.
33483         * modules/memmem (Files): Use it.
33484         * modules/strstr (Files): Likewise.
33485
33486         Avoid quadratic strstr implementations.
33487         * lib/strstr.c: New file.
33488         * m4/strstr.m4: Likewise.
33489         * modules/strstr: Likewise.
33490         * modules/strstr-tests: Likewise.
33491         * tests/test-strstr.c: Likewise.
33492         * lib/string.in.h (rpl_strstr): Declare.
33493         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
33494         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
33495         * modules/string (Makefile.am): Likewise.
33496         * MODULES.html.sh (string handling): Mention new module.
33497         * doc/functions/strstr.texi (strstr): Document the bug.
33498
33499 2008-01-10  Bruno Haible  <bruno@clisp.org>
33500
33501         * lib/relocatable.h (relocate): State whether result is freshly
33502         allocated or not.
33503         * lib/relocatable.c (relocate): Return a freshly allocated string
33504         instead of a pointer to a privately held string.
33505         Reported by Sylvain Beucler <beuc@gnu.org>.
33506
33507 2008-01-10  Colin Watson  <cjwatson@debian.org>
33508
33509         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
33510         s/S_ISNLK/S_ISLNK/.
33511
33512 2008-01-09  Bruno Haible  <bruno@clisp.org>
33513
33514         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
33515         and other files.
33516         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
33517         if it's only a guess.
33518         * modules/memmem: Simplify by depending on memmem-simple.
33519
33520 2008-01-09  Bruno Haible  <bruno@clisp.org>
33521
33522         Work around OpenBSD 4.0 tdelete() bug.
33523         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
33524         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
33525         macros and don't redefine the enum values.
33526         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
33527         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
33528         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
33529
33530 2008-01-09  Bruno Haible  <bruno@clisp.org>
33531
33532         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
33533         (main): Don't perform the tests if setlocale did not install a UTF-8
33534         locale. Needed on OpenBSD 4.0.
33535         * modules/wcwidth-tests (Depends-on): Add localcharset.
33536
33537 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
33538
33539         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
33540         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
33541         * NEWS: announce this.
33542         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
33543
33544 2008-01-09  Simon Josefsson  <simon@josefsson.org>
33545         and Eric Blake  <ebb9@byu.net>
33546
33547         Add memmem-simple module.
33548         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
33549         (gl_FUNC_MEMMEM): Separate performance from presence checks.
33550         * modules/memmem-simple: New file.
33551         * modules/memmem (Description): Tweak.
33552         * MODULES.html.sh (string handling): Mention new module.
33553         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
33554         addressed by memmem-simple.
33555         * NEWS: Document the difference.
33556
33557 2008-01-09  Eric Blake  <ebb9@byu.net>
33558
33559         Give gcc some memmem optimization hints.
33560         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
33561         (strcasestr): Declare as pure.
33562         * modules/memmem (Maintainer): Claim my implementation.
33563
33564 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33565
33566         Support AIX 6.1 and higher.
33567         * build-aux/config.libpath: Likewise.
33568         * build-aux/config.rpath: Likewise.
33569
33570 2008-01-08  Jim Meyering  <meyering@redhat.com>
33571             Bruno Haible  <bruno@clisp.org>
33572
33573         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
33574         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
33575         Reported by Peter Fales in
33576         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
33577
33578 2008-01-08  Bruno Haible  <bruno@clisp.org>
33579
33580         * modules/unictype/category-of (Depends-on): Add
33581         unictype/category-none.
33582         * modules/unictype/category-and-tests (Depends-on): Add
33583         unictype/category-{L,N,Lu,Nd}.
33584         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
33585         * modules/unictype/category-or-tests (Depends-on): Add
33586         unictype/category-{L,N}.
33587         * modules/unictype/category-name-tests (Depends-on): Add
33588         unictype/category-{Z,Nl}.
33589         Reported by Simon Josefsson.
33590
33591 2008-01-08  Bruno Haible  <bruno@clisp.org>
33592
33593         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
33594         convention better.
33595         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
33596         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
33597         Reported by Peter Miller <millerp@canb.auug.org.au>.
33598
33599 2008-01-08  Eric Blake  <ebb9@byu.net>
33600
33601         Rewrite memmem to guarantee linear complexity without malloc.
33602         * lib/memmem.c (memmem): Use Two-Way rather than
33603         Knuth-Morris-Pratt, to allow O(1) space usage.
33604         (critical_factorization, two_way_short_needle)
33605         (two_way_long_needle): New functions.
33606         (knuth_morris_pratt): Delete.
33607         * modules/memmem (Depends-on): No longer need malloca or stdbool.
33608         Add stdint.
33609         * tests/test-memmem.c (main): Add tests for periodic needle and
33610         sublinear performance.
33611         * doc/functions/memmem.texi (memmem): Document other deficiencies
33612         in cygwin and older glibc.
33613
33614 2008-01-08  Bruno Haible  <bruno@clisp.org>
33615
33616         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
33617         augmentation.
33618
33619 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
33620
33621         Add a configure time option: --disable-acl.
33622         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
33623         AC_ARG_ENABLE(acl).
33624
33625 2008-01-06  Simon Josefsson  <simon@josefsson.org>
33626
33627         * tests/test-localename.c: Don't include obsolete "setenv.h".
33628
33629         * modules/localename-tests (Depends-on): Need unsetenv.
33630
33631 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33632
33633         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
33634
33635 2008-01-06  Colin Watson  <cjwatson@debian.org>
33636
33637         * users.txt: Add man-db.
33638
33639 2008-01-07  Bruno Haible  <bruno@clisp.org>
33640
33641         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
33642         previous section name.
33643
33644 2008-01-07  Bruno Haible  <bruno@clisp.org>
33645
33646         * lib/progname.c (set_program_name): Don't strip off a leading
33647         "lt-" prefix outside a .libs directory.
33648         Suggested by Paul Eggert.
33649
33650 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
33651             Bruno Haible  <bruno@clisp.org>
33652
33653         Improve memory cleanup in 'relocatable' module.
33654         * lib/relocatable.h (compute_curr_prefix): Change return type to
33655         'char *'.
33656         * lib/relocatable.c (compute_curr_prefix): Change return type to
33657         'char *'. Free curr_installdir after use.
33658         (relocate): Free curr_prefix_better after use.
33659         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
33660
33661 2008-01-01  Bruno Haible  <bruno@clisp.org>
33662
33663         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
33664         failure on older glibc systems.
33665         Reported by Peter Fales <psfales@alcatel-lucent.com>.
33666
33667 2008-01-05  Eric Blake  <ebb9@byu.net>
33668
33669         Avoid quadratic system memmem.
33670         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
33671         Reported by Ralf Wildenhues.
33672
33673         Fix memmem test for mingw.
33674         * modules/memmem-tests (configure.ac): Check for alarm.
33675         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
33676         it.
33677         * doc/functions/memmem.texi: New file.
33678         * doc/gnulib.texi (Function Substitutes): Add memmem.
33679         Reported by Bruno Haible.
33680
33681 2008-01-04  Bruno Haible  <bruno@clisp.org>
33682
33683         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
33684         Require gl_HEADER_STRINGS_H_DEFAULTS, not
33685         gl_HEADER_STRING_H_DEFAULTS.
33686
33687 2008-01-04  Eric Blake  <ebb9@byu.net>
33688
33689         Shorten duration of memmem test.
33690         * tests/test-memmem.c (main): Use alarm to declare failure if test
33691         is taking too long.
33692         Reported by Ralf Wildenhues.
33693
33694 2007-12-21  Simon Josefsson  <simon@josefsson.org>
33695
33696         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
33697         string, needed by strerror.
33698
33699 2008-01-03  Colin Watson  <cjwatson@debian.org>
33700             Bruno Haible  <bruno@clisp.org>
33701
33702         * doc/gnulib-tool.texi (Localization): New section.
33703
33704 2008-01-02  Bruno Haible  <bruno@clisp.org>
33705
33706         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
33707         variables to 'unsigned char *' type.
33708         Reported by Paul Eggert.
33709
33710 2008-01-02  Jim Meyering  <jim@meyering.net>
33711
33712         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
33713
33714 2007-12-31  Jim Meyering  <jim@meyering.net>
33715
33716         Avoid use of private FTS type name.
33717         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
33718
33719 2007-12-30  Karl Berry  <karl@gnu.org>
33720
33721         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
33722         work around defect in Texinfo and/or the standalone Info browser.
33723
33724 2007-12-30  Bruno Haible  <bruno@clisp.org>
33725
33726         Unify 5 copies of the KMP code.
33727         * lib/str-kmp.h: New file.
33728         * lib/c-strcasestr.c: Include str-kmp.h.
33729         (knuth_morris_pratt): Remove function.
33730         (c_strcasestr): Update.
33731         * lib/c-strstr.c: Include str-kmp.h.
33732         (knuth_morris_pratt): Remove function.
33733         (c_strcasestr): Update.
33734         * lib/mbscasestr.c: Include str-kmp.h.
33735         (knuth_morris_pratt_unibyte): Remove function.
33736         * lib/mbsstr.c: Include str-kmp.h.
33737         (knuth_morris_pratt_unibyte): Remove function.
33738         * lib/strcasestr.c: Include str-kmp.h.
33739         (knuth_morris_pratt): Remove function.
33740         (strcasestr): Update.
33741         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
33742         * modules/c-strstr (Files): Likewise.
33743         * modules/mbscasestr (Files): Likewise.
33744         * modules/mbsstr (Files): Likewise.
33745         * modules/strcasestr (Files): Likewise.
33746         Suggested by Paul Eggert.
33747
33748 2007-12-30  Bruno Haible  <bruno@clisp.org>
33749
33750         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
33751         defined.
33752
33753 2007-12-30  Bruno Haible  <bruno@clisp.org>
33754
33755         * lib/xmalloca.h: Include xalloc.h.
33756         (xnmalloca): New macro.
33757
33758 2007-12-30  Bruno Haible  <bruno@clisp.org>
33759
33760         * lib/malloca.h (nmalloca): New macro.
33761         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
33762         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
33763         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
33764         knuth_morris_pratt_multibyte): Likewise.
33765         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
33766         knuth_morris_pratt_multibyte): Likewise.
33767         * lib/memmem.c (knuth_morris_pratt): Likewise.
33768         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
33769
33770 2007-12-25  Bruno Haible  <bruno@clisp.org>
33771
33772         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
33773         * lib/glob.c: Don't include openat.h.
33774         (link_exists2_p): Add back the code that deals with the
33775         !GLOB_ALTDIRFUNC case.
33776         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
33777         let it do the filename concatenation.
33778         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
33779         * modules/glob (Depends-on): Remove openat.
33780
33781 2007-12-31  Bruno Haible  <bruno@clisp.org>
33782
33783         * modules/dirfd (License): Change to LGPLv2+.
33784         Approved by Jim Meyering.
33785
33786 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
33787
33788         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
33789         when multiplying M by sizeof (size_t).
33790
33791 2007-12-10  Martin Lambers  <marlam@marlam.de>
33792
33793         Override getpagesize on mingw.
33794         * lib/getpagesize.c: New file.
33795         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
33796         * modules/getpagesize (Files): Add lib/getpagesize.c.
33797         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
33798         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33799         REPLACE_GETPAGESIZE.
33800         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
33801
33802 2007-12-25  Bruno Haible  <bruno@clisp.org>
33803
33804         * modules/localcharset (Notice): New field.
33805         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
33806         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
33807
33808 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
33809             Bruno Haible  <bruno@clisp.org>
33810
33811         Avoid using the syntax symbol() in formatted documentation.
33812         * MODULES.html.sh (func_module): When replacing symbol() with a
33813         hyperlink, remove the parentheses. Show an error if some remain.
33814         Recognize and render the '...' syntax.
33815         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
33816         Rework. Add paragraph about GCC's inlining.
33817         * doc/alloca.texi: Likewise.
33818         * doc/error.texi: Remove parentheses from symbol reference.
33819         * doc/gnulib-intro.texi: Likewise.
33820         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
33821         * modules/fnmatch (Description): Reword to say "the ... function".
33822         * modules/full-read (Description): Likewise.
33823         * modules/full-write (Description): Likewise.
33824         * modules/safe-read (Description): Likewise.
33825         * modules/safe-write (Description): Likewise.
33826         * modules/strchrnul (Description): Likewise.
33827         * modules/trim (Description): Likewise.
33828         * modules/error (Description): Remove parentheses from symbol
33829         references.
33830         * modules/verror (Description): Likewise.
33831         Reported by Karl Berry.
33832
33833 2007-12-25  Bruno Haible  <bruno@clisp.org>
33834
33835         Fixup after 2007-10-16 commit.
33836         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
33837
33838 2007-12-24  Bruno Haible  <bruno@clisp.org>
33839
33840         Make --enable-relocatable work with DESTDIR.
33841         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
33842         to compute installdir from destprog.
33843         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
33844         also set the RELOC_DESTDIR variable.
33845         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
33846
33847 2007-12-24  Bruno Haible  <bruno@clisp.org>
33848
33849         Fix link error due to xalloc_die().
33850         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
33851         of xreadlink.
33852         * lib/relocwrapper.c: Update comments.
33853         * build-aux/install-reloc: Remove xreadlink.c from file list.
33854         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
33855         xreadlink.c.
33856         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
33857
33858 2007-12-24  Bruno Haible  <bruno@clisp.org>
33859
33860         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
33861         * lib/setenv.h: Remove file.
33862         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
33863         lib/setenv.h.
33864         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
33865         (Depends-on): Add stdlib.
33866         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
33867         gl_FUNC_UNSETENV.
33868         (Include): Replace setenv.h with <stdlib.h>.
33869         * modules/unsetenv: New file.
33870         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
33871         * lib/unsetenv.c: Include <stdlib.h> first.
33872         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
33873         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
33874         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
33875         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
33876         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
33877         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
33878         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
33879         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
33880         * doc/functions/unsetenv.texi: Update.
33881         * modules/xsetenv (Depends-on): Add unsetenv.
33882         * modules/getdate (Depends-on): Likewise.
33883         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
33884         * lib/xsetenv.c: Don't include setenv.h.
33885         * lib/getdate.y: Likewise.
33886         * lib/relocwrapper.c: Likewise.
33887         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
33888         (Depends-on): Add stdlib.
33889         * NEWS: Mention the changes.
33890         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
33891
33892 2007-12-23  Bruno Haible  <bruno@clisp.org>
33893
33894         * lib/memmem.c (memmem): Use lowercase variable names. Tab
33895         indentation.
33896
33897 2007-12-23  Bruno Haible  <bruno@clisp.org>
33898
33899         * lib/c-strcasestr.c: Add more comments.
33900         * lib/c-strstr.c: Likewise.
33901         * lib/mbscasestr.c: Likewise.
33902         * lib/mbsstr.c: Likewise.
33903         * lib/strcasestr.c: Likewise.
33904         * lib/memmem.c: Likewise.
33905
33906 2007-12-23  Bruno Haible  <bruno@clisp.org>
33907
33908         * tests/test-memmem.c: Include <string.h> first.
33909
33910 2007-12-22  Bruno Haible  <bruno@clisp.org>
33911
33912         * gnulib-tool (func_create_testdir): Change $auxdir while generating
33913         the contents of $testsbase.
33914         Reported by Ralf Wildenhues.
33915
33916 2007-12-22  Bruno Haible  <bruno@clisp.org>
33917
33918         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
33919         two variables local_ldadd_before, local_ldadd_last.
33920
33921 2007-12-20  Eric Blake  <ebb9@byu.net>
33922
33923         Work around circular library issue when cross-compiling.
33924         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
33925         that progname.o does not need to pull in rpl_memcmp.
33926
33927 2007-12-19  Eric Blake  <ebb9@byu.net>
33928
33929         Fix memmem to avoid O(n^2) worst-case complexity.
33930         * lib/memmem.c (knuth_morris_pratt): New function.
33931         (memmem): Use it if first few naive iterations fail.
33932         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
33933         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
33934         * modules/memchr (License): Likewise.
33935         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
33936         malloca.
33937         * tests/test-memmem.c: Rewrite, borrowing ideas from
33938         test-mbsstr1.c; the old version wouldn't even compile!
33939         * modules/memmem-tests: New file.
33940         * lib/string.in.h (rpl_memmem): Add declaration.
33941         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
33942         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
33943         REPLACE_MEMMEM.
33944
33945 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
33946
33947         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
33948         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
33949         before any system include files, and undef after them all.  This
33950         should fix a problem on VMS reported by John E. Malmberg in
33951         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
33952
33953 2007-12-17  Eric Blake  <ebb9@byu.net>
33954
33955         Revert addition of verify, for BSD/OS.
33956         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
33957         can't handle large files, for the sake of obsolete platforms.
33958         * modules/fseeko (Depends-on): Remove verify.
33959         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
33960         * doc/functions/ftello.texi (ftello): Likewise.
33961         * doc/functions/fgetpos.texi (fgetpos): Likewise.
33962         Reported by Larry Jones.
33963
33964 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
33965
33966         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
33967         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
33968
33969 2007-12-17  Jim Meyering  <meyering@redhat.com>
33970
33971         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
33972         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
33973         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
33974         * modules/getcwd (Depends-on): Add openat.
33975         Reported by Petr Salinger.
33976
33977 2007-12-17  Bruno Haible  <bruno@clisp.org>
33978
33979         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
33980         avoid a segmentation fault of the configure test on x86_64 systems.
33981
33982 2007-12-15  Jim Meyering  <meyering@redhat.com>
33983
33984         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
33985
33986 2007-12-13  Eric Blake  <ebb9@byu.net>
33987
33988         Another fseek test.
33989         * tests/test-fseek.c (main): Also test ungetc handling.
33990         * tests/test-fseeko.c (main): Likewise.
33991         * modules/fseeko (Depends-on): Add verify.
33992         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
33993         large.
33994         Reported by Larry Jones.
33995
33996         Fix fseeko on mingw.
33997         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
33998         seek.
33999
34000         Beef up fseek tests.
34001         * tests/test-fseek.c (main): Also test eof handling.
34002         * tests/test-fseeko.c (main): Likewise.
34003         Reported by Larry Jones.
34004
34005 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
34006
34007         Fix fseeko on BSD-based platforms.
34008         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
34009         successful seek.
34010
34011 2007-12-12  Eric Blake  <ebb9@byu.net>
34012
34013         Allow circular dependency of separate libtests.a
34014         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
34015         when use_libtests.
34016
34017 2007-12-11  Eric Blake  <ebb9@byu.net>
34018
34019         Fix bug with -0.0L in previous patch.
34020         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
34021         * tests/test-isnan.c (main): Also test on zeroes.
34022         * tests/test-isnanf.c (main): Likewise.
34023         * tests/test-isnanl.h (main): Likewise.
34024
34025         Detect pseudo-denormals on x86 even when cross-compiling.
34026         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
34027         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
34028         invalid bit patterns that happen to satisfy ==.
34029
34030         Avoid link failures with separate libtests.a.
34031         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
34032         last, to satisfy circular dependencies.
34033
34034 2007-12-11  Eric Blake  <ebb9@byu.net>
34035         and Bruno Haible  <bruno@clisp.org>
34036
34037         Fix OpenBSD 4.0 <float.h> handling of long double.
34038         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
34039         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
34040         * doc/headers/float.texi (float.h): Document OpenBSD bug.
34041
34042 2007-12-11  Jim Meyering  <meyering@redhat.com>
34043
34044         * users.txt: Add libvirt.
34045
34046         Support versions of autoconf prior to 2.59c.
34047         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
34048         if it is not already defined.
34049
34050 2007-12-09  Bruno Haible  <bruno@clisp.org>
34051
34052         Let 'gnulib-tool --import' collect sources needed for the tests in
34053         tests/ rather than in lib/.
34054         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
34055         argument. If true, add rules to generate libtests.a, and put libtests.a
34056         into $(LDADD). Consider source files in subdirectories and set
34057         uses_subdirs.
34058         (func_emit_initmacro_start, func_emit_initmacro_end,
34059         func_emit_initmacro_done): Pass all arguments explicitly.
34060         (func_import): Determine two module lists main_modules,
34061         testsrelated_modules. Determine use_libtests. Determine two variables
34062         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
34063         instead of just sed_transform_lib_file. Determine two variables
34064         main_files and testsrelated_files. Compute 'files' as the union of
34065         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
34066         func_add_or_update. In the generated gnulib-comp.m4, collect the
34067         object files for tests/ in different variables than those for lib/.
34068         Substitute LIBTESTS_LIBDEPS.
34069         (func_create_testdir): Combine the uses_subdirs results from
34070         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
34071
34072 2007-12-09  Bruno Haible  <bruno@clisp.org>
34073
34074         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
34075         the build-aux directory.
34076
34077 2007-12-09  Bruno Haible  <bruno@clisp.org>
34078
34079         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
34080         introduced on 2006-09-09.
34081
34082 2007-12-07  Jim Meyering  <meyering@redhat.com>
34083
34084         Let these macros work also with autoconf-2.59.
34085         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
34086         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
34087         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
34088
34089 2007-12-06  Jim Meyering  <meyering@redhat.com>
34090
34091         Avoid a configure-time syntax error in gl_FUNC_ACL.
34092         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
34093         function in each branch, before testing the cache variable.
34094
34095 2007-12-04  Eric Blake  <ebb9@byu.net>
34096
34097         Make scripts executable.
34098         * build-aux/config.guess: Add execute permissions.
34099         * build-aux/config.sub: Likewise.
34100         * build-aux/gendocs.sh: Likewise.
34101
34102         Fix frexp on mingw.
34103         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
34104         cross-compiling.
34105         * doc/functions/frexp.texi (frexp): Document the bug.
34106
34107         Make cygwin fseeko check more reliable.
34108         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
34109         version numbers, rather than unrelated feature check.
34110         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
34111         * doc/functions/ftello.texi (ftello): Likewise.
34112         Reported by Bruno Haible.
34113
34114         * m4/strerror.m4: Bump version number.
34115
34116 2007-12-03  Bruno Haible  <bruno@clisp.org>
34117
34118         * doc/functions/mprotect.texi: Mention the mingw problem.
34119
34120 2007-12-03  Eric Blake  <ebb9@byu.net>
34121
34122         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
34123         REPLACE_STRERROR is initialized before this macro.
34124
34125 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
34126
34127         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
34128         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
34129         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
34130         put -lsec in even for programs other than 'ls'.  This fixes a problem
34131         for gettext reported by Bruno Haible in
34132         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
34133         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
34134         Add support for Solaris 10.  This isn't efficient, but should get the
34135         job done for now.
34136
34137 2007-12-03  James Youngman  <jay@gnu.org>
34138
34139         * doc/regexprops-generic.texi: change "an close-group" to "a
34140         close-group" and "illegal" to "not allowed".
34141
34142 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34143
34144         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
34145         pr_byname.h. Needed for the rare case when the maintainer has done
34146         "make maintainer-clean" in the source directory and then attempts a
34147         build outside the source directory.
34148         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
34149         scripts_byname.h.
34150
34151 2007-12-02  Martin Lambers <marlam@marlam.de>
34152             Bruno Haible  <bruno@clisp.org>
34153
34154         * lib/getpagesize.h: Remove file.
34155         * lib/unistd.in.h: Include declaration of getpagesize here.
34156         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
34157         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
34158         HAVE_SYS_PARAM_H.
34159         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
34160         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
34161         * modules/getpagesize (Files): Remove lib/getpagesize.h.
34162         (Depends-on): Add unistd.
34163         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
34164         (Include): Use <unistd.h> instead of getpagesize.h.
34165         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
34166         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
34167         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
34168         gl_GETPAGESIZE invocation, already handled by module dependency.
34169         * lib/pagealign_alloc.c: Don't include getpagesize.h.
34170
34171 2007-12-02  Bruno Haible  <bruno@clisp.org>
34172
34173         * modules/strings-tests: New file.
34174         * tests/test-strings.c: New file.
34175
34176         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
34177         * lib/strings.in.h: New file.
34178         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
34179         * m4/strings_h.m4: New file.
34180         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
34181         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
34182         * modules/strings: New file.
34183         * modules/string (Makefile.am): Update.
34184         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
34185         Reported by Karl Berry.
34186
34187 2007-12-01  Eric Blake  <ebb9@byu.net>
34188
34189         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
34190         accomodate fix in cygwin 1.5.25.
34191
34192 2007-12-01  Jim Meyering  <meyering@redhat.com>
34193
34194         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
34195         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
34196         that would inhibit utf8-optimization of a regexp containing line-
34197         or buffer-anchors, e.g., `^', `$'.
34198
34199 2007-11-30  Bruno Haible  <bruno@clisp.org>
34200
34201         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
34202         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
34203         glthread_recursive_lock_init.
34204         * lib/lock.c (glthread_recursive_lock_init)
34205         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
34206         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
34207
34208 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
34209
34210         New function qset_acl, like set_acl but with syscall semantics.
34211         * lib/acl.h (qset_acl): New decl.
34212         * lib/acl.c (qset_acl): New function.
34213         (set_acl): Use new function.  Use more-consistent diagnostics.
34214
34215 2007-11-28  Jim Meyering  <meyering@redhat.com>
34216
34217         * modules/physmem (License): Change from GPL to LGPLv2+.
34218
34219 2007-11-26  Bruno Haible  <bruno@clisp.org>
34220
34221         * lib/vasnprintf.c (decode_long_double): Don't abort if the
34222         'long double' type has excess precision.
34223         Reported by Jim Meyering in
34224         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
34225
34226 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34227
34228         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
34229         Sync from <http://gnu.org/licenses>.
34230         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
34231         with license text from same location.
34232         * doc/maintain.texi, doc/standards.texi:  Sync from
34233         <http://savannah.gnu.org/projects/gnustandards>.
34234
34235 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
34236         and Jim Meyering  <meyering@redhat.com>
34237
34238         Adjust getdate' grammar to accept a slightly more regular language.
34239         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
34240         Before, the former was rejected.
34241         * lib/getdate.y (digits_to_date_time): New function, factored
34242         out of ...
34243         (number): ...here.  Just call digits_to_date_time.
34244         (hybrid): New non-terminal to handle an <unsigned number,
34245         signed relative offset> sequence consistently.
34246
34247 2007-11-18  Jim Meyering  <meyering@redhat.com>
34248
34249         Pull my changes from coreutils:
34250         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
34251         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
34252         use of $gnulib_tool_option_extras, so that it's separated from the
34253         preceding argument.
34254
34255         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
34256         * build-aux/bootstrap (cp_mark_as_generated): Create any required
34257         parent destination directories before copying a file into place.
34258
34259 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
34260
34261         bootstrap: work also with 4-argument variant of AC_INIT
34262         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
34263
34264 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
34265
34266         Port test-getaddrinfo to Solaris.
34267         Problem reported by Bruno Haible in
34268         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
34269         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
34270         explanation of setting 'hints'.
34271         Don't reject an implementation merely because it returns EAI_SERVICE.
34272         (EAI_SERVICE): Define to 0 if not defined.
34273
34274 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
34275
34276         The license of gnu-make and posix-shell is now "GPLed build tool".
34277         * modules/gnu-make (License): Likewise.
34278         * modules/posix-shell (License): Likewise.
34279
34280         New module posix-shell, for determining a POSIX shell
34281         or perhaps something that is close enough to a POSIX shell.
34282         * m4/posix-shell.m4: New file.
34283         * modules/posix-shell: New file.
34284
34285         * MODULES.html.sh: Mention new module.
34286
34287         New module gnu-make, for determining whether we're using GNU Make.
34288         * m4/gnu-make.m4: New file.
34289         * modules/gnu-make: New file.
34290         * MODULES.html.sh: Mention new module.
34291
34292 2007-11-14  Jim Meyering  <meyering@redhat.com>
34293
34294         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
34295         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
34296         use this macro to create a function _definition_.
34297         Remove useless "#undef ARGMATCH_DIE".
34298
34299 2007-11-14  Bruno Haible  <bruno@clisp.org>
34300
34301         * lib/config.charset: Update for OpenBSD 4.1.
34302         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
34303
34304 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
34305
34306         Document 64-bit #if problems in stdint.texi.
34307         * doc/headers/stdint.texi (stdint.h): Mention problems with
34308         64-bit-#if, and how to work around them.
34309
34310         Don't insist on 'long long int' support in the preprocessor.  It
34311         breaks too many things.  For example, PRIdMAX still uses a 'long
34312         long int' format with the latest Sun compiler, even though
34313         HAVE_LONG_LONG_INT isn't defined due to that compiler's
34314         preprocessor problem.  This causes the latest coreutils to dump
34315         core on Solaris 10 sparc with the Sun C compiler.
34316         Instead, fix the 2007-10-16 problem in a different way, by evaluating
34317         the troublesome expressions at configure-time, not at #if-time.
34318         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
34319         preprocessor.
34320         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
34321         compile-time C checks, done at 'configure'-time.
34322         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
34323         * modules/inttypes (Makefile): Substitute the new symbols that
34324         gl_INTTYPES_H now generates.
34325         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
34326
34327 2007-11-12  Bruno Haible  <bruno@clisp.org>
34328
34329         Tests for Unicode character classification functions.
34330
34331         * modules/unictype/bidicategory-byname-tests: New file.
34332         * modules/unictype/bidicategory-name-tests: New file.
34333         * modules/unictype/bidicategory-of-tests: New file.
34334         * modules/unictype/bidicategory-test-tests: New file.
34335         * modules/unictype/block-list-tests: New file.
34336         * modules/unictype/block-of-tests: New file.
34337         * modules/unictype/block-test-tests: New file.
34338         * modules/unictype/category-C-tests: New file.
34339         * modules/unictype/category-Cc-tests: New file.
34340         * modules/unictype/category-Cf-tests: New file.
34341         * modules/unictype/category-Cn-tests: New file.
34342         * modules/unictype/category-Co-tests: New file.
34343         * modules/unictype/category-Cs-tests: New file.
34344         * modules/unictype/category-L-tests: New file.
34345         * modules/unictype/category-Ll-tests: New file.
34346         * modules/unictype/category-Lm-tests: New file.
34347         * modules/unictype/category-Lo-tests: New file.
34348         * modules/unictype/category-Lt-tests: New file.
34349         * modules/unictype/category-Lu-tests: New file.
34350         * modules/unictype/category-M-tests: New file.
34351         * modules/unictype/category-Mc-tests: New file.
34352         * modules/unictype/category-Me-tests: New file.
34353         * modules/unictype/category-Mn-tests: New file.
34354         * modules/unictype/category-N-tests: New file.
34355         * modules/unictype/category-Nd-tests: New file.
34356         * modules/unictype/category-Nl-tests: New file.
34357         * modules/unictype/category-No-tests: New file.
34358         * modules/unictype/category-P-tests: New file.
34359         * modules/unictype/category-Pc-tests: New file.
34360         * modules/unictype/category-Pd-tests: New file.
34361         * modules/unictype/category-Pe-tests: New file.
34362         * modules/unictype/category-Pf-tests: New file.
34363         * modules/unictype/category-Pi-tests: New file.
34364         * modules/unictype/category-Po-tests: New file.
34365         * modules/unictype/category-Ps-tests: New file.
34366         * modules/unictype/category-S-tests: New file.
34367         * modules/unictype/category-Sc-tests: New file.
34368         * modules/unictype/category-Sk-tests: New file.
34369         * modules/unictype/category-Sm-tests: New file.
34370         * modules/unictype/category-So-tests: New file.
34371         * modules/unictype/category-Z-tests: New file.
34372         * modules/unictype/category-Zl-tests: New file.
34373         * modules/unictype/category-Zp-tests: New file.
34374         * modules/unictype/category-Zs-tests: New file.
34375         * modules/unictype/category-and-not-tests: New file.
34376         * modules/unictype/category-and-tests: New file.
34377         * modules/unictype/category-byname-tests: New file.
34378         * modules/unictype/category-name-tests: New file.
34379         * modules/unictype/category-none-tests: New file.
34380         * modules/unictype/category-of-tests: New file.
34381         * modules/unictype/category-or-tests: New file.
34382         * modules/unictype/category-test-withtable-tests: New file.
34383         * modules/unictype/combining-class-tests: New file.
34384         * modules/unictype/ctype-alnum-tests: New file.
34385         * modules/unictype/ctype-alpha-tests: New file.
34386         * modules/unictype/ctype-blank-tests: New file.
34387         * modules/unictype/ctype-cntrl-tests: New file.
34388         * modules/unictype/ctype-digit-tests: New file.
34389         * modules/unictype/ctype-graph-tests: New file.
34390         * modules/unictype/ctype-lower-tests: New file.
34391         * modules/unictype/ctype-print-tests: New file.
34392         * modules/unictype/ctype-punct-tests: New file.
34393         * modules/unictype/ctype-space-tests: New file.
34394         * modules/unictype/ctype-upper-tests: New file.
34395         * modules/unictype/ctype-xdigit-tests: New file.
34396         * modules/unictype/decimal-digit-tests: New file.
34397         * modules/unictype/digit-tests: New file.
34398         * modules/unictype/mirror-tests: New file.
34399         * modules/unictype/numeric-tests: New file.
34400         * modules/unictype/property-alphabetic-tests: New file.
34401         * modules/unictype/property-ascii-hex-digit-tests: New file.
34402         * modules/unictype/property-bidi-arabic-digit-tests: New file.
34403         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
34404         * modules/unictype/property-bidi-block-separator-tests: New file.
34405         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
34406         * modules/unictype/property-bidi-common-separator-tests: New file.
34407         * modules/unictype/property-bidi-control-tests: New file.
34408         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
34409         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
34410         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
34411         * modules/unictype/property-bidi-european-digit-tests: New file.
34412         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
34413         * modules/unictype/property-bidi-left-to-right-tests: New file.
34414         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
34415         * modules/unictype/property-bidi-other-neutral-tests: New file.
34416         * modules/unictype/property-bidi-pdf-tests: New file.
34417         * modules/unictype/property-bidi-segment-separator-tests: New file.
34418         * modules/unictype/property-bidi-whitespace-tests: New file.
34419         * modules/unictype/property-byname-tests: New file.
34420         * modules/unictype/property-combining-tests: New file.
34421         * modules/unictype/property-composite-tests: New file.
34422         * modules/unictype/property-currency-symbol-tests: New file.
34423         * modules/unictype/property-dash-tests: New file.
34424         * modules/unictype/property-decimal-digit-tests: New file.
34425         * modules/unictype/property-default-ignorable-code-point-tests: New file.
34426         * modules/unictype/property-deprecated-tests: New file.
34427         * modules/unictype/property-diacritic-tests: New file.
34428         * modules/unictype/property-extender-tests: New file.
34429         * modules/unictype/property-format-control-tests: New file.
34430         * modules/unictype/property-grapheme-base-tests: New file.
34431         * modules/unictype/property-grapheme-extend-tests: New file.
34432         * modules/unictype/property-grapheme-link-tests: New file.
34433         * modules/unictype/property-hex-digit-tests: New file.
34434         * modules/unictype/property-hyphen-tests: New file.
34435         * modules/unictype/property-id-continue-tests: New file.
34436         * modules/unictype/property-id-start-tests: New file.
34437         * modules/unictype/property-ideographic-tests: New file.
34438         * modules/unictype/property-ids-binary-operator-tests: New file.
34439         * modules/unictype/property-ids-trinary-operator-tests: New file.
34440         * modules/unictype/property-ignorable-control-tests: New file.
34441         * modules/unictype/property-iso-control-tests: New file.
34442         * modules/unictype/property-join-control-tests: New file.
34443         * modules/unictype/property-left-of-pair-tests: New file.
34444         * modules/unictype/property-line-separator-tests: New file.
34445         * modules/unictype/property-logical-order-exception-tests: New file.
34446         * modules/unictype/property-lowercase-tests: New file.
34447         * modules/unictype/property-math-tests: New file.
34448         * modules/unictype/property-non-break-tests: New file.
34449         * modules/unictype/property-not-a-character-tests: New file.
34450         * modules/unictype/property-numeric-tests: New file.
34451         * modules/unictype/property-other-alphabetic-tests: New file.
34452         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
34453         * modules/unictype/property-other-grapheme-extend-tests: New file.
34454         * modules/unictype/property-other-id-continue-tests: New file.
34455         * modules/unictype/property-other-id-start-tests: New file.
34456         * modules/unictype/property-other-lowercase-tests: New file.
34457         * modules/unictype/property-other-math-tests: New file.
34458         * modules/unictype/property-other-uppercase-tests: New file.
34459         * modules/unictype/property-paired-punctuation-tests: New file.
34460         * modules/unictype/property-paragraph-separator-tests: New file.
34461         * modules/unictype/property-pattern-syntax-tests: New file.
34462         * modules/unictype/property-pattern-white-space-tests: New file.
34463         * modules/unictype/property-private-use-tests: New file.
34464         * modules/unictype/property-punctuation-tests: New file.
34465         * modules/unictype/property-quotation-mark-tests: New file.
34466         * modules/unictype/property-radical-tests: New file.
34467         * modules/unictype/property-sentence-terminal-tests: New file.
34468         * modules/unictype/property-soft-dotted-tests: New file.
34469         * modules/unictype/property-space-tests: New file.
34470         * modules/unictype/property-terminal-punctuation-tests: New file.
34471         * modules/unictype/property-test-tests: New file.
34472         * modules/unictype/property-titlecase-tests: New file.
34473         * modules/unictype/property-unassigned-code-value-tests: New file.
34474         * modules/unictype/property-unified-ideograph-tests: New file.
34475         * modules/unictype/property-uppercase-tests: New file.
34476         * modules/unictype/property-variation-selector-tests: New file.
34477         * modules/unictype/property-white-space-tests: New file.
34478         * modules/unictype/property-xid-continue-tests: New file.
34479         * modules/unictype/property-xid-start-tests: New file.
34480         * modules/unictype/property-zero-width-tests: New file.
34481         * modules/unictype/scripts-tests: New file.
34482         * modules/unictype/syntax-c-ident-tests: New file.
34483         * modules/unictype/syntax-c-whitespace-tests: New file.
34484         * modules/unictype/syntax-java-ident-tests: New file.
34485         * modules/unictype/syntax-java-whitespace-tests: New file.
34486         * tests/unictype/test-bidi_byname.c: New file.
34487         * tests/unictype/test-bidi_name.c: New file.
34488         * tests/unictype/test-bidi_of.c: New file.
34489         * tests/unictype/test-bidi_test.c: New file.
34490         * tests/unictype/test-block_list.c: New file.
34491         * tests/unictype/test-block_of.c: New file.
34492         * tests/unictype/test-block_test.c: New file.
34493         * tests/unictype/test-categ_and.c: New file.
34494         * tests/unictype/test-categ_and_not.c: New file.
34495         * tests/unictype/test-categ_byname.c: New file.
34496         * tests/unictype/test-categ_name.c: New file.
34497         * tests/unictype/test-categ_none.c: New file.
34498         * tests/unictype/test-categ_of.c: New file.
34499         * tests/unictype/test-categ_or.c: New file.
34500         * tests/unictype/test-categ_test_withtable.c: New file.
34501         * tests/unictype/test-combining.c: New file.
34502         * tests/unictype/test-decdigit.c: New file.
34503         * tests/unictype/test-digit.c: New file.
34504         * tests/unictype/test-mirror.c: New file.
34505         * tests/unictype/test-numeric.c: New file.
34506         * tests/unictype/test-pr_byname.c: New file.
34507         * tests/unictype/test-pr_test.c: New file.
34508         * tests/unictype/test-predicate-part1.h: New file.
34509         * tests/unictype/test-predicate-part2.h: New file.
34510         * tests/unictype/test-scripts.c: New file.
34511         * tests/unictype/test-sy_c_ident.c: New file.
34512         * tests/unictype/test-sy_java_ident.c: New file.
34513
34514         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
34515         for Unicode 5.0.0.
34516         * tests/unictype/test-categ_Cc.c: Likewise.
34517         * tests/unictype/test-categ_Cf.c: Likewise.
34518         * tests/unictype/test-categ_Cn.c: Likewise.
34519         * tests/unictype/test-categ_Co.c: Likewise.
34520         * tests/unictype/test-categ_Cs.c: Likewise.
34521         * tests/unictype/test-categ_L.c: Likewise.
34522         * tests/unictype/test-categ_Ll.c: Likewise.
34523         * tests/unictype/test-categ_Lm.c: Likewise.
34524         * tests/unictype/test-categ_Lo.c: Likewise.
34525         * tests/unictype/test-categ_Lt.c: Likewise.
34526         * tests/unictype/test-categ_Lu.c: Likewise.
34527         * tests/unictype/test-categ_M.c: Likewise.
34528         * tests/unictype/test-categ_Mc.c: Likewise.
34529         * tests/unictype/test-categ_Me.c: Likewise.
34530         * tests/unictype/test-categ_Mn.c: Likewise.
34531         * tests/unictype/test-categ_N.c: Likewise.
34532         * tests/unictype/test-categ_Nd.c: Likewise.
34533         * tests/unictype/test-categ_Nl.c: Likewise.
34534         * tests/unictype/test-categ_No.c: Likewise.
34535         * tests/unictype/test-categ_P.c: Likewise.
34536         * tests/unictype/test-categ_Pc.c: Likewise.
34537         * tests/unictype/test-categ_Pd.c: Likewise.
34538         * tests/unictype/test-categ_Pe.c: Likewise.
34539         * tests/unictype/test-categ_Pf.c: Likewise.
34540         * tests/unictype/test-categ_Pi.c: Likewise.
34541         * tests/unictype/test-categ_Po.c: Likewise.
34542         * tests/unictype/test-categ_Ps.c: Likewise.
34543         * tests/unictype/test-categ_S.c: Likewise.
34544         * tests/unictype/test-categ_Sc.c: Likewise.
34545         * tests/unictype/test-categ_Sk.c: Likewise.
34546         * tests/unictype/test-categ_Sm.c: Likewise.
34547         * tests/unictype/test-categ_So.c: Likewise.
34548         * tests/unictype/test-categ_Z.c: Likewise.
34549         * tests/unictype/test-categ_Zl.c: Likewise.
34550         * tests/unictype/test-categ_Zp.c: Likewise.
34551         * tests/unictype/test-categ_Zs.c: Likewise.
34552         * tests/unictype/test-ctype_alnum.c: Likewise.
34553         * tests/unictype/test-ctype_alpha.c: Likewise.
34554         * tests/unictype/test-ctype_blank.c: Likewise.
34555         * tests/unictype/test-ctype_cntrl.c: Likewise.
34556         * tests/unictype/test-ctype_digit.c: Likewise.
34557         * tests/unictype/test-ctype_graph.c: Likewise.
34558         * tests/unictype/test-ctype_lower.c: Likewise.
34559         * tests/unictype/test-ctype_print.c: Likewise.
34560         * tests/unictype/test-ctype_punct.c: Likewise.
34561         * tests/unictype/test-ctype_space.c: Likewise.
34562         * tests/unictype/test-ctype_upper.c: Likewise.
34563         * tests/unictype/test-ctype_xdigit.c: Likewise.
34564         * tests/unictype/test-decdigit.h: Likewise.
34565         * tests/unictype/test-digit.h: Likewise.
34566         * tests/unictype/test-numeric.h: Likewise.
34567         * tests/unictype/test-pr_alphabetic.c: Likewise.
34568         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
34569         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
34570         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
34571         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
34572         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
34573         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
34574         * tests/unictype/test-pr_bidi_control.c: Likewise.
34575         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
34576         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
34577         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
34578         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
34579         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
34580         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
34581         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
34582         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
34583         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
34584         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
34585         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
34586         * tests/unictype/test-pr_combining.c: Likewise.
34587         * tests/unictype/test-pr_composite.c: Likewise.
34588         * tests/unictype/test-pr_currency_symbol.c: Likewise.
34589         * tests/unictype/test-pr_dash.c: Likewise.
34590         * tests/unictype/test-pr_decimal_digit.c: Likewise.
34591         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
34592         * tests/unictype/test-pr_deprecated.c: Likewise.
34593         * tests/unictype/test-pr_diacritic.c: Likewise.
34594         * tests/unictype/test-pr_extender.c: Likewise.
34595         * tests/unictype/test-pr_format_control.c: Likewise.
34596         * tests/unictype/test-pr_grapheme_base.c: Likewise.
34597         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
34598         * tests/unictype/test-pr_grapheme_link.c: Likewise.
34599         * tests/unictype/test-pr_hex_digit.c: Likewise.
34600         * tests/unictype/test-pr_hyphen.c: Likewise.
34601         * tests/unictype/test-pr_id_continue.c: Likewise.
34602         * tests/unictype/test-pr_id_start.c: Likewise.
34603         * tests/unictype/test-pr_ideographic.c: Likewise.
34604         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
34605         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
34606         * tests/unictype/test-pr_ignorable_control.c: Likewise.
34607         * tests/unictype/test-pr_iso_control.c: Likewise.
34608         * tests/unictype/test-pr_join_control.c: Likewise.
34609         * tests/unictype/test-pr_left_of_pair.c: Likewise.
34610         * tests/unictype/test-pr_line_separator.c: Likewise.
34611         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
34612         * tests/unictype/test-pr_lowercase.c: Likewise.
34613         * tests/unictype/test-pr_math.c: Likewise.
34614         * tests/unictype/test-pr_non_break.c: Likewise.
34615         * tests/unictype/test-pr_not_a_character.c: Likewise.
34616         * tests/unictype/test-pr_numeric.c: Likewise.
34617         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
34618         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
34619         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
34620         * tests/unictype/test-pr_other_id_continue.c: Likewise.
34621         * tests/unictype/test-pr_other_id_start.c: Likewise.
34622         * tests/unictype/test-pr_other_lowercase.c: Likewise.
34623         * tests/unictype/test-pr_other_math.c: Likewise.
34624         * tests/unictype/test-pr_other_uppercase.c: Likewise.
34625         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
34626         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
34627         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
34628         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
34629         * tests/unictype/test-pr_private_use.c: Likewise.
34630         * tests/unictype/test-pr_punctuation.c: Likewise.
34631         * tests/unictype/test-pr_quotation_mark.c: Likewise.
34632         * tests/unictype/test-pr_radical.c: Likewise.
34633         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
34634         * tests/unictype/test-pr_soft_dotted.c: Likewise.
34635         * tests/unictype/test-pr_space.c: Likewise.
34636         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
34637         * tests/unictype/test-pr_titlecase.c: Likewise.
34638         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
34639         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
34640         * tests/unictype/test-pr_uppercase.c: Likewise.
34641         * tests/unictype/test-pr_variation_selector.c: Likewise.
34642         * tests/unictype/test-pr_white_space.c: Likewise.
34643         * tests/unictype/test-pr_xid_continue.c: Likewise.
34644         * tests/unictype/test-pr_xid_start.c: Likewise.
34645         * tests/unictype/test-pr_zero_width.c: Likewise.
34646         * tests/unictype/test-sy_c_whitespace.c: Likewise.
34647         * tests/unictype/test-sy_java_whitespace.c: Likewise.
34648
34649 2007-11-12  Bruno Haible  <bruno@clisp.org>
34650
34651         Unicode character classification functions.
34652         * lib/unictype.h: New file.
34653         * modules/unictype/base: New file.
34654         * modules/unictype/category-L: New file.
34655         * modules/unictype/category-Lu: New file.
34656         * modules/unictype/category-Ll: New file.
34657         * modules/unictype/category-Lt: New file.
34658         * modules/unictype/category-Lm: New file.
34659         * modules/unictype/category-Lo: New file.
34660         * modules/unictype/category-M: New file.
34661         * modules/unictype/category-Mn: New file.
34662         * modules/unictype/category-Mc: New file.
34663         * modules/unictype/category-Me: New file.
34664         * modules/unictype/category-N: New file.
34665         * modules/unictype/category-Nd: New file.
34666         * modules/unictype/category-Nl: New file.
34667         * modules/unictype/category-No: New file.
34668         * modules/unictype/category-P: New file.
34669         * modules/unictype/category-Pc: New file.
34670         * modules/unictype/category-Pd: New file.
34671         * modules/unictype/category-Ps: New file.
34672         * modules/unictype/category-Pe: New file.
34673         * modules/unictype/category-Pi: New file.
34674         * modules/unictype/category-Pf: New file.
34675         * modules/unictype/category-Po: New file.
34676         * modules/unictype/category-S: New file.
34677         * modules/unictype/category-Sm: New file.
34678         * modules/unictype/category-Sc: New file.
34679         * modules/unictype/category-Sk: New file.
34680         * modules/unictype/category-So: New file.
34681         * modules/unictype/category-Z: New file.
34682         * modules/unictype/category-Zs: New file.
34683         * modules/unictype/category-Zl: New file.
34684         * modules/unictype/category-Zp: New file.
34685         * modules/unictype/category-C: New file.
34686         * modules/unictype/category-Cc: New file.
34687         * modules/unictype/category-Cf: New file.
34688         * modules/unictype/category-Cs: New file.
34689         * modules/unictype/category-Co: New file.
34690         * modules/unictype/category-Cn: New file.
34691         * modules/unictype/category-or: New file.
34692         * modules/unictype/category-of: New file.
34693         * modules/unictype/category-test: New file.
34694         * modules/unictype/category-test-withtable: New file.
34695         * modules/unictype/category-byname: New file.
34696         * modules/unictype/category-none: New file.
34697         * modules/unictype/category-and: New file.
34698         * modules/unictype/category-and-not: New file.
34699         * modules/unictype/category-name: New file.
34700         * modules/unictype/combining-class: New file.
34701         * modules/unictype/category-all: New file.
34702         * modules/unictype/bidicategory-all: New file.
34703         * modules/unictype/bidicategory-byname: New file.
34704         * modules/unictype/bidicategory-name: New file.
34705         * modules/unictype/bidicategory-of: New file.
34706         * modules/unictype/bidicategory-test: New file.
34707         * modules/unictype/decimal-digit: New file.
34708         * modules/unictype/digit: New file.
34709         * modules/unictype/numeric: New file.
34710         * modules/unictype/mirror: New file.
34711         * modules/unictype/property-white-space: New file.
34712         * modules/unictype/property-alphabetic: New file.
34713         * modules/unictype/property-other-alphabetic: New file.
34714         * modules/unictype/property-not-a-character: New file.
34715         * modules/unictype/property-default-ignorable-code-point: New file.
34716         * modules/unictype/property-other-default-ignorable-code-point: New
34717         file.
34718         * modules/unictype/property-deprecated: New file.
34719         * modules/unictype/property-logical-order-exception: New file.
34720         * modules/unictype/property-variation-selector: New file.
34721         * modules/unictype/property-private-use: New file.
34722         * modules/unictype/property-unassigned-code-value: New file.
34723         * modules/unictype/property-uppercase: New file.
34724         * modules/unictype/property-other-uppercase: New file.
34725         * modules/unictype/property-lowercase: New file.
34726         * modules/unictype/property-other-lowercase: New file.
34727         * modules/unictype/property-titlecase: New file.
34728         * modules/unictype/property-soft-dotted: New file.
34729         * modules/unictype/property-id-start: New file.
34730         * modules/unictype/property-other-id-start: New file.
34731         * modules/unictype/property-id-continue: New file.
34732         * modules/unictype/property-other-id-continue: New file.
34733         * modules/unictype/property-xid-start: New file.
34734         * modules/unictype/property-xid-continue: New file.
34735         * modules/unictype/property-pattern-white-space: New file.
34736         * modules/unictype/property-pattern-syntax: New file.
34737         * modules/unictype/property-join-control: New file.
34738         * modules/unictype/property-grapheme-base: New file.
34739         * modules/unictype/property-grapheme-extend: New file.
34740         * modules/unictype/property-other-grapheme-extend: New file.
34741         * modules/unictype/property-grapheme-link: New file.
34742         * modules/unictype/property-bidi-control: New file.
34743         * modules/unictype/property-bidi-left-to-right: New file.
34744         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
34745         * modules/unictype/property-bidi-arabic-right-to-left: New file.
34746         * modules/unictype/property-bidi-european-digit: New file.
34747         * modules/unictype/property-bidi-eur-num-separator: New file.
34748         * modules/unictype/property-bidi-eur-num-terminator: New file.
34749         * modules/unictype/property-bidi-arabic-digit: New file.
34750         * modules/unictype/property-bidi-common-separator: New file.
34751         * modules/unictype/property-bidi-block-separator: New file.
34752         * modules/unictype/property-bidi-segment-separator: New file.
34753         * modules/unictype/property-bidi-whitespace: New file.
34754         * modules/unictype/property-bidi-non-spacing-mark: New file.
34755         * modules/unictype/property-bidi-boundary-neutral: New file.
34756         * modules/unictype/property-bidi-pdf: New file.
34757         * modules/unictype/property-bidi-embedding-or-override: New file.
34758         * modules/unictype/property-bidi-other-neutral: New file.
34759         * modules/unictype/property-hex-digit: New file.
34760         * modules/unictype/property-ascii-hex-digit: New file.
34761         * modules/unictype/property-ideographic: New file.
34762         * modules/unictype/property-unified-ideograph: New file.
34763         * modules/unictype/property-radical: New file.
34764         * modules/unictype/property-ids-binary-operator: New file.
34765         * modules/unictype/property-ids-trinary-operator: New file.
34766         * modules/unictype/property-zero-width: New file.
34767         * modules/unictype/property-space: New file.
34768         * modules/unictype/property-non-break: New file.
34769         * modules/unictype/property-iso-control: New file.
34770         * modules/unictype/property-format-control: New file.
34771         * modules/unictype/property-dash: New file.
34772         * modules/unictype/property-hyphen: New file.
34773         * modules/unictype/property-punctuation: New file.
34774         * modules/unictype/property-line-separator: New file.
34775         * modules/unictype/property-paragraph-separator: New file.
34776         * modules/unictype/property-quotation-mark: New file.
34777         * modules/unictype/property-sentence-terminal: New file.
34778         * modules/unictype/property-terminal-punctuation: New file.
34779         * modules/unictype/property-currency-symbol: New file.
34780         * modules/unictype/property-math: New file.
34781         * modules/unictype/property-other-math: New file.
34782         * modules/unictype/property-paired-punctuation: New file.
34783         * modules/unictype/property-left-of-pair: New file.
34784         * modules/unictype/property-combining: New file.
34785         * modules/unictype/property-composite: New file.
34786         * modules/unictype/property-decimal-digit: New file.
34787         * modules/unictype/property-numeric: New file.
34788         * modules/unictype/property-diacritic: New file.
34789         * modules/unictype/property-extender: New file.
34790         * modules/unictype/property-ignorable-control: New file.
34791         * modules/unictype/property-test: New file.
34792         * modules/unictype/property-byname: New file.
34793         * modules/unictype/property-all: New file.
34794         * modules/unictype/scripts: New file.
34795         * modules/unictype/scripts-all: New file.
34796         * modules/unictype/block-of: New file.
34797         * modules/unictype/block-test: New file.
34798         * modules/unictype/block-list: New file.
34799         * modules/unictype/block-all: New file.
34800         * modules/unictype/syntax-c-whitespace: New file.
34801         * modules/unictype/syntax-java-whitespace: New file.
34802         * modules/unictype/syntax-c-ident: New file.
34803         * modules/unictype/syntax-java-ident: New file.
34804         * modules/unictype/ctype-alnum: New file.
34805         * modules/unictype/ctype-alpha: New file.
34806         * modules/unictype/ctype-cntrl: New file.
34807         * modules/unictype/ctype-digit: New file.
34808         * modules/unictype/ctype-graph: New file.
34809         * modules/unictype/ctype-lower: New file.
34810         * modules/unictype/ctype-print: New file.
34811         * modules/unictype/ctype-punct: New file.
34812         * modules/unictype/ctype-space: New file.
34813         * modules/unictype/ctype-upper: New file.
34814         * modules/unictype/ctype-xdigit: New file.
34815         * modules/unictype/ctype-blank: New file.
34816         * lib/unictype/bidi_byname.c: New file.
34817         * lib/unictype/bidi_name.c: New file.
34818         * lib/unictype/bidi_of.c: New file.
34819         * lib/unictype/bidi_test.c: New file.
34820         * lib/unictype/bitmap.h: New file.
34821         * lib/unictype/block_test.c: New file.
34822         * lib/unictype/blocks.c: New file.
34823         * lib/unictype/categ_C.c: New file.
34824         * lib/unictype/categ_Cc.c: New file.
34825         * lib/unictype/categ_Cf.c: New file.
34826         * lib/unictype/categ_Cn.c: New file.
34827         * lib/unictype/categ_Co.c: New file.
34828         * lib/unictype/categ_Cs.c: New file.
34829         * lib/unictype/categ_L.c: New file.
34830         * lib/unictype/categ_Ll.c: New file.
34831         * lib/unictype/categ_Lm.c: New file.
34832         * lib/unictype/categ_Lo.c: New file.
34833         * lib/unictype/categ_Lt.c: New file.
34834         * lib/unictype/categ_Lu.c: New file.
34835         * lib/unictype/categ_M.c: New file.
34836         * lib/unictype/categ_Mc.c: New file.
34837         * lib/unictype/categ_Me.c: New file.
34838         * lib/unictype/categ_Mn.c: New file.
34839         * lib/unictype/categ_N.c: New file.
34840         * lib/unictype/categ_Nd.c: New file.
34841         * lib/unictype/categ_Nl.c: New file.
34842         * lib/unictype/categ_No.c: New file.
34843         * lib/unictype/categ_P.c: New file.
34844         * lib/unictype/categ_Pc.c: New file.
34845         * lib/unictype/categ_Pd.c: New file.
34846         * lib/unictype/categ_Pe.c: New file.
34847         * lib/unictype/categ_Pf.c: New file.
34848         * lib/unictype/categ_Pi.c: New file.
34849         * lib/unictype/categ_Po.c: New file.
34850         * lib/unictype/categ_Ps.c: New file.
34851         * lib/unictype/categ_S.c: New file.
34852         * lib/unictype/categ_Sc.c: New file.
34853         * lib/unictype/categ_Sk.c: New file.
34854         * lib/unictype/categ_Sm.c: New file.
34855         * lib/unictype/categ_So.c: New file.
34856         * lib/unictype/categ_Z.c: New file.
34857         * lib/unictype/categ_Zl.c: New file.
34858         * lib/unictype/categ_Zp.c: New file.
34859         * lib/unictype/categ_Zs.c: New file.
34860         * lib/unictype/categ_and.c: New file.
34861         * lib/unictype/categ_and_not.c: New file.
34862         * lib/unictype/categ_byname.c: New file.
34863         * lib/unictype/categ_name.c: New file.
34864         * lib/unictype/categ_none.c: New file.
34865         * lib/unictype/categ_of.c: New file.
34866         * lib/unictype/categ_or.c: New file.
34867         * lib/unictype/categ_test.c: New file.
34868         * lib/unictype/combining.c: New file.
34869         * lib/unictype/ctype_alnum.c: New file.
34870         * lib/unictype/ctype_alpha.c: New file.
34871         * lib/unictype/ctype_blank.c: New file.
34872         * lib/unictype/ctype_cntrl.c: New file.
34873         * lib/unictype/ctype_digit.c: New file.
34874         * lib/unictype/ctype_graph.c: New file.
34875         * lib/unictype/ctype_lower.c: New file.
34876         * lib/unictype/ctype_print.c: New file.
34877         * lib/unictype/ctype_punct.c: New file.
34878         * lib/unictype/ctype_space.c: New file.
34879         * lib/unictype/ctype_upper.c: New file.
34880         * lib/unictype/ctype_xdigit.c: New file.
34881         * lib/unictype/decdigit.c: New file.
34882         * lib/unictype/digit.c: New file.
34883         * lib/unictype/identsyntaxmap.h: New file.
34884         * lib/unictype/mirror.c: New file.
34885         * lib/unictype/numeric.c: New file.
34886         * lib/unictype/pr_alphabetic.c: New file.
34887         * lib/unictype/pr_ascii_hex_digit.c: New file.
34888         * lib/unictype/pr_bidi_arabic_digit.c: New file.
34889         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
34890         * lib/unictype/pr_bidi_block_separator.c: New file.
34891         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
34892         * lib/unictype/pr_bidi_common_separator.c: New file.
34893         * lib/unictype/pr_bidi_control.c: New file.
34894         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
34895         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
34896         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
34897         * lib/unictype/pr_bidi_european_digit.c: New file.
34898         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
34899         * lib/unictype/pr_bidi_left_to_right.c: New file.
34900         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
34901         * lib/unictype/pr_bidi_other_neutral.c: New file.
34902         * lib/unictype/pr_bidi_pdf.c: New file.
34903         * lib/unictype/pr_bidi_segment_separator.c: New file.
34904         * lib/unictype/pr_bidi_whitespace.c: New file.
34905         * lib/unictype/pr_byname.c: New file.
34906         * lib/unictype/pr_byname.gperf: New file.
34907         * lib/unictype/pr_combining.c: New file.
34908         * lib/unictype/pr_composite.c: New file.
34909         * lib/unictype/pr_currency_symbol.c: New file.
34910         * lib/unictype/pr_dash.c: New file.
34911         * lib/unictype/pr_decimal_digit.c: New file.
34912         * lib/unictype/pr_default_ignorable_code_point.c: New file.
34913         * lib/unictype/pr_deprecated.c: New file.
34914         * lib/unictype/pr_diacritic.c: New file.
34915         * lib/unictype/pr_extender.c: New file.
34916         * lib/unictype/pr_format_control.c: New file.
34917         * lib/unictype/pr_grapheme_base.c: New file.
34918         * lib/unictype/pr_grapheme_extend.c: New file.
34919         * lib/unictype/pr_grapheme_link.c: New file.
34920         * lib/unictype/pr_hex_digit.c: New file.
34921         * lib/unictype/pr_hyphen.c: New file.
34922         * lib/unictype/pr_id_continue.c: New file.
34923         * lib/unictype/pr_id_start.c: New file.
34924         * lib/unictype/pr_ideographic.c: New file.
34925         * lib/unictype/pr_ids_binary_operator.c: New file.
34926         * lib/unictype/pr_ids_trinary_operator.c: New file.
34927         * lib/unictype/pr_ignorable_control.c: New file.
34928         * lib/unictype/pr_iso_control.c: New file.
34929         * lib/unictype/pr_join_control.c: New file.
34930         * lib/unictype/pr_left_of_pair.c: New file.
34931         * lib/unictype/pr_line_separator.c: New file.
34932         * lib/unictype/pr_logical_order_exception.c: New file.
34933         * lib/unictype/pr_lowercase.c: New file.
34934         * lib/unictype/pr_math.c: New file.
34935         * lib/unictype/pr_non_break.c: New file.
34936         * lib/unictype/pr_not_a_character.c: New file.
34937         * lib/unictype/pr_numeric.c: New file.
34938         * lib/unictype/pr_other_alphabetic.c: New file.
34939         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
34940         * lib/unictype/pr_other_grapheme_extend.c: New file.
34941         * lib/unictype/pr_other_id_continue.c: New file.
34942         * lib/unictype/pr_other_id_start.c: New file.
34943         * lib/unictype/pr_other_lowercase.c: New file.
34944         * lib/unictype/pr_other_math.c: New file.
34945         * lib/unictype/pr_other_uppercase.c: New file.
34946         * lib/unictype/pr_paired_punctuation.c: New file.
34947         * lib/unictype/pr_paragraph_separator.c: New file.
34948         * lib/unictype/pr_pattern_syntax.c: New file.
34949         * lib/unictype/pr_pattern_white_space.c: New file.
34950         * lib/unictype/pr_private_use.c: New file.
34951         * lib/unictype/pr_punctuation.c: New file.
34952         * lib/unictype/pr_quotation_mark.c: New file.
34953         * lib/unictype/pr_radical.c: New file.
34954         * lib/unictype/pr_sentence_terminal.c: New file.
34955         * lib/unictype/pr_soft_dotted.c: New file.
34956         * lib/unictype/pr_space.c: New file.
34957         * lib/unictype/pr_terminal_punctuation.c: New file.
34958         * lib/unictype/pr_test.c: New file.
34959         * lib/unictype/pr_titlecase.c: New file.
34960         * lib/unictype/pr_unassigned_code_value.c: New file.
34961         * lib/unictype/pr_unified_ideograph.c: New file.
34962         * lib/unictype/pr_uppercase.c: New file.
34963         * lib/unictype/pr_variation_selector.c: New file.
34964         * lib/unictype/pr_white_space.c: New file.
34965         * lib/unictype/pr_xid_continue.c: New file.
34966         * lib/unictype/pr_xid_start.c: New file.
34967         * lib/unictype/pr_zero_width.c: New file.
34968         * lib/unictype/scripts.c: New file.
34969         * lib/unictype/sy_c_ident.c: New file.
34970         * lib/unictype/sy_c_whitespace.c: New file.
34971         * lib/unictype/sy_java_ident.c: New file.
34972         * lib/unictype/sy_java_whitespace.c: New file.
34973
34974         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
34975         Unicode 5.0.0.
34976         * lib/unictype/blocks.h: Likewise.
34977         * lib/unictype/categ_C.h: Likewise.
34978         * lib/unictype/categ_Cc.h: Likewise.
34979         * lib/unictype/categ_Cf.h: Likewise.
34980         * lib/unictype/categ_Cn.h: Likewise.
34981         * lib/unictype/categ_Co.h: Likewise.
34982         * lib/unictype/categ_Cs.h: Likewise.
34983         * lib/unictype/categ_L.h: Likewise.
34984         * lib/unictype/categ_Ll.h: Likewise.
34985         * lib/unictype/categ_Lm.h: Likewise.
34986         * lib/unictype/categ_Lo.h: Likewise.
34987         * lib/unictype/categ_Lt.h: Likewise.
34988         * lib/unictype/categ_Lu.h: Likewise.
34989         * lib/unictype/categ_M.h: Likewise.
34990         * lib/unictype/categ_Mc.h: Likewise.
34991         * lib/unictype/categ_Me.h: Likewise.
34992         * lib/unictype/categ_Mn.h: Likewise.
34993         * lib/unictype/categ_N.h: Likewise.
34994         * lib/unictype/categ_Nd.h: Likewise.
34995         * lib/unictype/categ_Nl.h: Likewise.
34996         * lib/unictype/categ_No.h: Likewise.
34997         * lib/unictype/categ_P.h: Likewise.
34998         * lib/unictype/categ_Pc.h: Likewise.
34999         * lib/unictype/categ_Pd.h: Likewise.
35000         * lib/unictype/categ_Pe.h: Likewise.
35001         * lib/unictype/categ_Pf.h: Likewise.
35002         * lib/unictype/categ_Pi.h: Likewise.
35003         * lib/unictype/categ_Po.h: Likewise.
35004         * lib/unictype/categ_Ps.h: Likewise.
35005         * lib/unictype/categ_S.h: Likewise.
35006         * lib/unictype/categ_Sc.h: Likewise.
35007         * lib/unictype/categ_Sk.h: Likewise.
35008         * lib/unictype/categ_Sm.h: Likewise.
35009         * lib/unictype/categ_So.h: Likewise.
35010         * lib/unictype/categ_Z.h: Likewise.
35011         * lib/unictype/categ_Zl.h: Likewise.
35012         * lib/unictype/categ_Zp.h: Likewise.
35013         * lib/unictype/categ_Zs.h: Likewise.
35014         * lib/unictype/categ_of.h: Likewise.
35015         * lib/unictype/combining.h: Likewise.
35016         * lib/unictype/ctype_alnum.h: Likewise.
35017         * lib/unictype/ctype_alpha.h: Likewise.
35018         * lib/unictype/ctype_blank.h: Likewise.
35019         * lib/unictype/ctype_cntrl.h: Likewise.
35020         * lib/unictype/ctype_digit.h: Likewise.
35021         * lib/unictype/ctype_graph.h: Likewise.
35022         * lib/unictype/ctype_lower.h: Likewise.
35023         * lib/unictype/ctype_print.h: Likewise.
35024         * lib/unictype/ctype_punct.h: Likewise.
35025         * lib/unictype/ctype_space.h: Likewise.
35026         * lib/unictype/ctype_upper.h: Likewise.
35027         * lib/unictype/ctype_xdigit.h: Likewise.
35028         * lib/unictype/decdigit.h: Likewise.
35029         * lib/unictype/digit.h: Likewise.
35030         * lib/unictype/mirror.h: Likewise.
35031         * lib/unictype/numeric.h: Likewise.
35032         * lib/unictype/pr_alphabetic.h: Likewise.
35033         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
35034         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
35035         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
35036         * lib/unictype/pr_bidi_block_separator.h: Likewise.
35037         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
35038         * lib/unictype/pr_bidi_common_separator.h: Likewise.
35039         * lib/unictype/pr_bidi_control.h: Likewise.
35040         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
35041         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
35042         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
35043         * lib/unictype/pr_bidi_european_digit.h: Likewise.
35044         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
35045         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
35046         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
35047         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
35048         * lib/unictype/pr_bidi_pdf.h: Likewise.
35049         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
35050         * lib/unictype/pr_bidi_whitespace.h: Likewise.
35051         * lib/unictype/pr_combining.h: Likewise.
35052         * lib/unictype/pr_composite.h: Likewise.
35053         * lib/unictype/pr_currency_symbol.h: Likewise.
35054         * lib/unictype/pr_dash.h: Likewise.
35055         * lib/unictype/pr_decimal_digit.h: Likewise.
35056         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
35057         * lib/unictype/pr_deprecated.h: Likewise.
35058         * lib/unictype/pr_diacritic.h: Likewise.
35059         * lib/unictype/pr_extender.h: Likewise.
35060         * lib/unictype/pr_format_control.h: Likewise.
35061         * lib/unictype/pr_grapheme_base.h: Likewise.
35062         * lib/unictype/pr_grapheme_extend.h: Likewise.
35063         * lib/unictype/pr_grapheme_link.h: Likewise.
35064         * lib/unictype/pr_hex_digit.h: Likewise.
35065         * lib/unictype/pr_hyphen.h: Likewise.
35066         * lib/unictype/pr_id_continue.h: Likewise.
35067         * lib/unictype/pr_id_start.h: Likewise.
35068         * lib/unictype/pr_ideographic.h: Likewise.
35069         * lib/unictype/pr_ids_binary_operator.h: Likewise.
35070         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
35071         * lib/unictype/pr_ignorable_control.h: Likewise.
35072         * lib/unictype/pr_iso_control.h: Likewise.
35073         * lib/unictype/pr_join_control.h: Likewise.
35074         * lib/unictype/pr_left_of_pair.h: Likewise.
35075         * lib/unictype/pr_line_separator.h: Likewise.
35076         * lib/unictype/pr_logical_order_exception.h: Likewise.
35077         * lib/unictype/pr_lowercase.h: Likewise.
35078         * lib/unictype/pr_math.h: Likewise.
35079         * lib/unictype/pr_non_break.h: Likewise.
35080         * lib/unictype/pr_not_a_character.h: Likewise.
35081         * lib/unictype/pr_numeric.h: Likewise.
35082         * lib/unictype/pr_other_alphabetic.h: Likewise.
35083         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
35084         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
35085         * lib/unictype/pr_other_id_continue.h: Likewise.
35086         * lib/unictype/pr_other_id_start.h: Likewise.
35087         * lib/unictype/pr_other_lowercase.h: Likewise.
35088         * lib/unictype/pr_other_math.h: Likewise.
35089         * lib/unictype/pr_other_uppercase.h: Likewise.
35090         * lib/unictype/pr_paired_punctuation.h: Likewise.
35091         * lib/unictype/pr_paragraph_separator.h: Likewise.
35092         * lib/unictype/pr_pattern_syntax.h: Likewise.
35093         * lib/unictype/pr_pattern_white_space.h: Likewise.
35094         * lib/unictype/pr_private_use.h: Likewise.
35095         * lib/unictype/pr_punctuation.h: Likewise.
35096         * lib/unictype/pr_quotation_mark.h: Likewise.
35097         * lib/unictype/pr_radical.h: Likewise.
35098         * lib/unictype/pr_sentence_terminal.h: Likewise.
35099         * lib/unictype/pr_soft_dotted.h: Likewise.
35100         * lib/unictype/pr_space.h: Likewise.
35101         * lib/unictype/pr_terminal_punctuation.h: Likewise.
35102         * lib/unictype/pr_titlecase.h: Likewise.
35103         * lib/unictype/pr_unassigned_code_value.h: Likewise.
35104         * lib/unictype/pr_unified_ideograph.h: Likewise.
35105         * lib/unictype/pr_uppercase.h: Likewise.
35106         * lib/unictype/pr_variation_selector.h: Likewise.
35107         * lib/unictype/pr_white_space.h: Likewise.
35108         * lib/unictype/pr_xid_continue.h: Likewise.
35109         * lib/unictype/pr_xid_start.h: Likewise.
35110         * lib/unictype/pr_zero_width.h: Likewise.
35111         * lib/unictype/scripts.h: Likewise.
35112         * lib/unictype/scripts_byname.gperf: Likewise.
35113         * lib/unictype/sy_c_ident.h: Likewise.
35114         * lib/unictype/sy_c_whitespace.h: Likewise.
35115         * lib/unictype/sy_java_ident.h: Likewise.
35116         * lib/unictype/sy_java_whitespace.h: Likewise.
35117
35118         * lib/unictype/Makefile: New file.
35119         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
35120         glibc.
35121         * lib/unictype/3level.h: New file, copied from glibc.
35122         * lib/unictype/3levelbit.h: New file.
35123
35124 2007-11-11  Bruno Haible  <bruno@clisp.org>
35125
35126         * modules/gperf: New file.
35127         * modules/iconv_open (Depends-on): Add it.
35128         (Makefile.am): Remove the GPERF definition.
35129
35130 2007-11-11  Bruno Haible  <bruno@clisp.org>
35131
35132         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
35133         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
35134
35135 2007-11-11  Bruno Haible  <bruno@clisp.org>
35136
35137         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
35138         (usage): Remove function.
35139
35140 2007-11-11  Bruno Haible  <bruno@clisp.org>
35141
35142         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
35143         gl_FUNC_CEILF_LIBS.
35144         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
35145         gl_FUNC_CEIL_LIBS.
35146         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
35147         gl_FUNC_CEILL_LIBS.
35148         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
35149         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
35150         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
35151
35152 2007-11-11  Bruno Haible  <bruno@clisp.org>
35153
35154         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
35155         roundf were declared but do not exist on functions.
35156         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
35157         roundl were declared but do not exist on functions.
35158         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
35159         HAVE_FLOORL_AND_CEILL, respectively.
35160         Needed for Sun C on Solaris 10.
35161
35162 2007-11-11  Bruno Haible  <bruno@clisp.org>
35163
35164         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
35165         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
35166         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
35167         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
35168         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
35169         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
35170         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
35171         HAVE_DECL_ROUNDF.
35172         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
35173         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
35174         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
35175         of HAVE_DECL_ROUND*.
35176         * modules/math (Makefile.am): Update.
35177
35178 2007-11-10  Bruno Haible  <bruno@clisp.org>
35179
35180         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
35181         ptrdiff_t as m4/intl.m4.
35182
35183 2007-11-10  Jim Meyering  <meyering@redhat.com>
35184
35185         Avoid link failure for the argmatch test.
35186         * tests/test-argmatch.c (usage): Define function to avoid a link
35187         failure: argmatch_die requires a usage function.
35188
35189 2007-11-09  Bruno Haible  <bruno@clisp.org>
35190
35191         * doc/functions/snprintf.texi: Mention BeOS deficiency.
35192         * doc/functions/vsnprintf.texi: Likewise.
35193         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
35194         with a size argument < 2.
35195
35196 2007-11-09  Bruno Haible  <bruno@clisp.org>
35197
35198         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
35199         buffer. Fixes an inefficiency introduced on 2007-11-03.
35200
35201 2007-11-09  Bruno Haible  <bruno@clisp.org>
35202
35203         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
35204         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
35205
35206 2007-11-08  Jim Meyering  <meyering@redhat.com>
35207
35208         Change cache variable name prefix "jm_" to "gl_" everywhere.
35209         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
35210         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
35211         * m4/uptime.m4: s/gl_/jm_/
35212
35213 2007-11-07  Bruno Haible  <bruno@clisp.org>
35214
35215         Update to GNU gettext 0.17.
35216         * m4/intl.m4: Update to GNU gettext 0.17.
35217         * m4/po.m4: Likewise.
35218         * modules/gettext (Files): Remove m4/ulonglong.m4.
35219         (configure.ac): Require gettext infrastructure from version 0.17.
35220
35221 2007-11-06  Bruno Haible  <bruno@clisp.org>
35222
35223         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
35224         symbolic values are not defined in a public header.
35225         * lib/freadable.c (freadable) [QNX]: Likewise.
35226         * lib/freadahead.c (freadahead) [QNX]: Likewise.
35227         * lib/freading.c (freading) [QNX]: Likewise.
35228         * lib/fseterr.c (fseterr) [QNX]: Likewise.
35229         * lib/fwritable.c (fwritable) [QNX]: Likewise.
35230         * lib/fwriting.c (fwriting) [QNX]: Likewise.
35231         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
35232         Reported by Alain Magloire.
35233
35234         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
35235
35236 2007-11-05  Bruno Haible  <bruno@clisp.org>
35237
35238         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
35239         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
35240         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
35241         Reported by Eric Blake.
35242
35243 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35244             Bruno Haible  <bruno@clisp.org>
35245
35246         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
35247         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
35248         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
35249         (malloc): Undefine also before including <stdlib.h>.
35250         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
35251         Needed on OSF/1 4.0.
35252
35253 2007-11-05  Jim Meyering  <meyering@redhat.com>
35254
35255         git-version-gen: sync from coreutils.
35256         * build-aux/git-version-gen: Add comments.
35257         Change the first '-' to '.' in the snapshot version string,
35258         e.g., 6.9-377-08144 -> 6.9.377-08144
35259         Remove first parameter.
35260         Don't declare a version "-dirty" merely because a time
35261         stamp has changed.
35262
35263 2007-11-04  Bruno Haible  <bruno@clisp.org>
35264
35265         * lib/lock.h: Protect all macro definitions containing an 'if'
35266         statement through a "do { ... } while (0)".
35267         * lib/tls.h: Likewise.
35268
35269 2007-11-04  Bruno Haible  <bruno@clisp.org>
35270
35271         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
35272
35273 2007-11-04  Bruno Haible  <bruno@clisp.org>
35274
35275         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
35276         * modules/fprintf-posix (Depends-on): Add nocrash.
35277         * modules/snprintf-posix (Depends-on): Likewise.
35278         * modules/sprintf-posix (Depends-on): Likewise.
35279         * modules/vasnprintf-posix (Depends-on): Likewise.
35280         * modules/vasprintf-posix (Depends-on): Likewise.
35281         * modules/vfprintf-posix (Depends-on): Likewise.
35282         * modules/vsnprintf-posix (Depends-on): Likewise.
35283         * modules/vsprintf-posix (Depends-on): Likewise.
35284         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
35285         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
35286         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
35287         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
35288         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
35289         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
35290         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
35291
35292 2007-11-04  Bruno Haible  <bruno@clisp.org>
35293
35294         * modules/nocrash: New file.
35295         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
35296         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
35297
35298 2007-11-04  Bruno Haible  <bruno@clisp.org>
35299
35300         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
35301         precision handling.
35302         * tests/test-vasprintf-posix.c (test_function): Likewise.
35303         * tests/test-snprintf-posix.h (test_function): Likewise.
35304         * tests/test-sprintf-posix.h (test_function): Likewise.
35305
35306         Fix *printf behaviour for large precisions on mingw and BeOS.
35307         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
35308         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
35309         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
35310         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
35311         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35312         gl_PRINTF_PRECISION and test its result. Invoke
35313         gl_PREREQ_VASNPRINTF_PRECISION.
35314         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35315         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35316         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35317         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35318         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35319         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35320         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35321         * doc/functions/fprintf.texi: Update.
35322         * doc/functions/printf.texi: Update.
35323         * doc/functions/snprintf.texi: Update.
35324         * doc/functions/sprintf.texi: Update.
35325         * doc/functions/vfprintf.texi: Update.
35326         * doc/functions/vprintf.texi: Update.
35327         * doc/functions/vsnprintf.texi: Update.
35328         * doc/functions/vsprintf.texi: Update.
35329
35330 2007-11-04  Bruno Haible  <bruno@clisp.org>
35331
35332         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
35333
35334 2007-11-04  Bruno Haible  <bruno@clisp.org>
35335
35336         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
35337         Reported by Sylvain Beucler <beuc@gnu.org>.
35338
35339 2007-11-03  Bruno Haible  <bruno@clisp.org>
35340
35341         * tests/test-fprintf-posix2.sh: New file.
35342         * tests/test-fprintf-posix2.c: New file.
35343         * modules/fprintf-posix-tests (Files): Add them.
35344         (TESTS): Add test-fprintf-posix2.sh.
35345         (configure.ac): Check for getrlimit and setrlimit.
35346         (check_PROGRAMS): Add test-fprintf-posix2.
35347
35348         * tests/test-printf-posix2.sh: New file.
35349         * tests/test-printf-posix2.c: New file.
35350         * modules/printf-posix-tests (Files): Add them.
35351         (TESTS): Add test-printf-posix2.sh.
35352         (configure.ac): Check for getrlimit and setrlimit.
35353         (check_PROGRAMS): Add test-printf-posix2.
35354
35355         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
35356         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
35357         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
35358         (decode_double): New function, copied from decode_long_double.
35359         (scale10_round_decimal_decoded): New function, extracted from
35360         scale10_round_decimal_long_double.
35361         (scale10_round_decimal_long_double): Use it.
35362         (scale10_round_decimal_double): New function.
35363         (floorlog10): New function.
35364         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
35365         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
35366         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
35367         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
35368         gl_PRINTF_ENOMEM and test its result. Invoke
35369         gl_PREREQ_VASNPRINTF_ENOMEM.
35370         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
35371         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35372         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35373         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35374         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
35375         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35376         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35377         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
35378         * modules/snprintf-posix (Depends-on): Likewise.
35379         * modules/sprintf-posix (Depends-on): Likewise.
35380         * modules/vasnprintf-posix (Depends-on): Likewise.
35381         * modules/vasprintf-posix (Depends-on): Likewise.
35382         * modules/vfprintf-posix (Depends-on): Likewise.
35383         * modules/vsnprintf-posix (Depends-on): Likewise.
35384         * modules/vsprintf-posix (Depends-on): Likewise.
35385         * doc/functions/fprintf.texi: Update.
35386         * doc/functions/printf.texi: Update.
35387         * doc/functions/snprintf.texi: Update.
35388         * doc/functions/sprintf.texi: Update.
35389         * doc/functions/vfprintf.texi: Update.
35390         * doc/functions/vprintf.texi: Update.
35391         * doc/functions/vsnprintf.texi: Update.
35392         * doc/functions/vsprintf.texi: Update.
35393
35394 2007-11-03  Bruno Haible  <bruno@clisp.org>
35395
35396         * modules/frexp-nolibm-tests: New file.
35397
35398         * modules/frexp-nolibm: New file.
35399         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
35400
35401 2007-11-03  Bruno Haible  <bruno@clisp.org>
35402
35403         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
35404         value is C99 compliant.
35405         Needed for OSF/1 5.1.
35406
35407 2007-11-03  Bruno Haible  <bruno@clisp.org>
35408
35409         Fix out-of-memory handling of vasnprintf.
35410         * lib/printf-parse.c: Include <errno.h>.
35411         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
35412         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
35413         is already set.
35414
35415 2007-11-02  Eric Blake  <ebb9@byu.net>
35416
35417         Fix tests on cygwin.
35418         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
35419
35420 2007-11-01  Bruno Haible  <bruno@clisp.org>
35421
35422         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
35423         warning.
35424         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
35425         needed for POSIX compatibility.
35426
35427 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
35428
35429         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
35430         for compatibility with GNU.
35431
35432 2007-11-01  Bruno Haible  <bruno@clisp.org>
35433
35434         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
35435         (putenv): Renamed from rpl_putenv. Change argument type from
35436         'const char *' to 'char *'.
35437         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
35438         of defining putenv in config.h, just set REPLACE_PUTENV.
35439         * modules/putenv (Depends-on): Add stdlib.
35440         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
35441         (Include): Use <stdlib.h>.
35442         * lib/stdlib.in.h (putenv): New declaration.
35443         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
35444         REPLACE_PUTENV.
35445         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
35446         REPLACE_PUTENV.
35447         Needed for MacOS X 10.5.0.
35448         Reported by Peter O'Gorman <peter@pogma.com>.
35449
35450 2007-11-01  Jim Meyering  <meyering@redhat.com>
35451
35452         Treat an empty date string exactly like "0".
35453         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
35454         if the remaining date string (to be parsed) is empty, use "0".
35455         Reported by Mischa Molhoek and discussed in this thread:
35456         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
35457
35458 2007-10-31  Bruno Haible  <bruno@clisp.org>
35459
35460         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
35461         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
35462         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
35463         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
35464         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
35465         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
35466
35467 2007-10-31  Bruno Haible  <bruno@clisp.org>
35468
35469         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
35470         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
35471         (AC_TYPE_LONG_LONG_INT): Use it.
35472         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
35473         it as well.
35474         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
35475         to m4/longlong.m4.
35476         * modules/stdint (Files): Remove m4/ulonglong.m4.
35477         * modules/strtoull (Files): Use m4/longlong.m4 instead of
35478         m4/ulonglong.m4.
35479         * modules/strtoumax (Files): Likewise.
35480
35481 2007-10-30  Bruno Haible  <bruno@clisp.org>
35482
35483         * modules/xvasprintf-posix: New file.
35484         Suggested by Eric Blake.
35485
35486 2007-10-30  Bruno Haible  <bruno@clisp.org>
35487
35488         * modules/xprintf-posix-tests: New file.
35489         * tests/test-xprintf-posix.sh: New file.
35490         * tests/test-xprintf-posix.c: New file.
35491         * tests/test-xfprintf-posix.c: New file.
35492
35493         * modules/xprintf-posix: New file.
35494
35495 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35496
35497         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
35498         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
35499         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
35500
35501 2007-10-29  Bruno Haible  <bruno@clisp.org>
35502
35503         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
35504         contain the special marker '_cv_'.
35505         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
35506         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
35507         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
35508         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
35509         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
35510         Reported by Ralf Wildenhues.
35511
35512 2007-10-29  Bruno Haible  <bruno@clisp.org>
35513
35514         * gnulib-tool (func_import): When --lgpl is not specified, set
35515         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
35516         GPLv3.
35517         Reported by Simon Josefsson.
35518
35519 2007-10-28  Bruno Haible  <bruno@clisp.org>
35520
35521         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
35522         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
35523         HAVE_DECL_ISFINITE.
35524         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
35525         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
35526         HAVE_DECL_ISFINITE.
35527
35528 2007-10-28  Bruno Haible  <bruno@clisp.org>
35529
35530         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
35531         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
35532
35533 2007-10-28  Bruno Haible  <bruno@clisp.org>
35534
35535         Fix link errors with Sun C 5.0 on Solaris 10.
35536         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
35537         function is declared but not present in the compiler's libm.
35538         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
35539         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
35540         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
35541         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
35542         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
35543         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
35544         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
35545         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
35546         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
35547         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
35548         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
35549         HAVE_DECL_FLOORL.
35550
35551 2007-10-28  Bruno Haible  <bruno@clisp.org>
35552
35553         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
35554         gl_FUNC_FLOORL. Cache the result.
35555         (gl_FUNC_FLOORL): Use it.
35556         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
35557         gl_FUNC_CEILL. Cache the result.
35558         (gl_FUNC_CEILL): Use it.
35559
35560         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
35561         gl_FUNC_FLOOR. Cache the result.
35562         (gl_FUNC_FLOOR): Use it.
35563         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
35564         gl_FUNC_CEIL. Cache the result.
35565         (gl_FUNC_CEIL): Use it.
35566
35567         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
35568         gl_FUNC_FLOORF. Cache the result.
35569         (gl_FUNC_FLOORF): Use it.
35570         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
35571         gl_FUNC_CEILF. Cache the result.
35572         (gl_FUNC_CEILF): Use it.
35573
35574 2007-10-28  Bruno Haible  <bruno@clisp.org>
35575
35576         * gnulib-tool: Allow specifying the LGPL version number through
35577         --lgpl=2 or --lgpl=3.
35578         (func_usage): Document --lgpl with argument.
35579         Handle --lgpl=... arguments.
35580         (func_import): Recognize also gl_LGPL calls with an argument. When
35581         --lgpl=2 is used and the module's license is just LGPL, report an
35582         error. Set sed_transform_lib_file according to the lgpl variable. In
35583         the generated files, use --lgpl or gl_LGPL invocations with argument,
35584         if necessary.
35585         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
35586         an LGPv2+ license.
35587         * doc/gnulib-tool.texi (Modified imports): Update explanation of
35588         gl_LGPL macro.
35589
35590 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35591             Bruno Haible  <bruno@clisp.org>
35592
35593         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
35594         (u16_uctomb_aux): Likewise.
35595         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
35596         !HAVE_INLINE.
35597         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
35598
35599 2007-10-28  Bruno Haible  <bruno@clisp.org>
35600
35601         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
35602         Invoke AM_GETTEXT_OPTION if it exists.
35603         * modules/vasprintf: Likewise.
35604         * modules/verror: Likewise.
35605         * modules/xprintf: Likewise.
35606         * modules/xvasprintf: Likewise.
35607
35608 2007-10-27  Ben Pfaff  <blp@gnu.org>
35609
35610         * lib/math.in.h: Define isfinite macro and prototypes for
35611         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
35612         implementations.
35613         * m4/math_h.m4: New substitutions for isfinite module.
35614         * lib/isfinite.c: New file.
35615         * m4/isfinite.m4: New file.
35616         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
35617         * modules/isfinite: New file.
35618         * modules/isfinite-tests: New file.
35619         * tests/tests-isfinite.c: New file.
35620         * doc/functions/isfinite.texi: Mention isfinite module.
35621         * MODULES.html.sh: Mention new module.
35622
35623 2007-10-27  Ben Pfaff  <blp@gnu.org>
35624
35625         Ralf Wildenhues reported that Tru64 4.0D declares the round
35626         functions but does not have definitions.
35627         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
35628         cannot be found in any library, set the output variable to
35629         "missing" instead of "".
35630         * m4/round.m4: Also use our substitute if we cannot find round in
35631         any library, even if it is declared.
35632         * m4/roundf.m4: Likewise for roundf.
35633         * m4/roundl.m4: Likewise for roundl.
35634         * lib/math.in.h: Undefine roundf, round, roundl before defining
35635         their replacements, to allow for hypothetical systems where these
35636         may be defined as macros but not available in libraries.
35637
35638 2007-10-27  Bruno Haible  <bruno@clisp.org>
35639
35640         * doc/gnulib.texi: Invoke @firstparagraphindent.
35641         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
35642         changes in gnulib.
35643         (Source changes): New section.
35644
35645 2007-10-26  Bruno Haible  <bruno@clisp.org>
35646
35647         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
35648         borrowed from autoconf.
35649
35650 2007-10-26  Bruno Haible  <bruno@clisp.org>
35651
35652         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
35653         strerror returned the empty string. Needed on HP-UX 11.00.
35654
35655 2007-10-24  Micah Cowan  <micah@cowan.name>
35656
35657         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
35658         * build-aux/bootstrap: Remove support for now-unnecessary option,
35659         --cvs-user, and envvars CVS_USER, CVS_RSH.
35660
35661 2007-10-24  Jim Meyering  <meyering@redhat.com>
35662
35663         Avoid diagnostics from sha1sum when there is no cached checksum.
35664         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
35665         if the po.s1 file hasn't been created yet.
35666
35667         * build-aux/bootstrap: Sync from coreutils:
35668         2007-10-24  Jim Meyering  <meyering@redhat.com>
35669         Get gnulib from the git repository, not from an obsolete cvs one.
35670         * build-aux/bootstrap: Suggestion from Micah Cowan.
35671         2007-10-04  Jim Meyering  <jim@meyering.net>
35672         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
35673         (update_po_files): Work also when there are no .po files in po/.
35674
35675 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
35676
35677         * README: Append ".git" to git and cg examples.
35678         Problem reported by Benoit Sigoure.
35679
35680 2007-10-23  Micah Cowan  <micah@cowan.name>
35681
35682         * users.txt: Add wget.
35683
35684 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35685
35686         Fix linking of some unistdio tests on FreeBSD.
35687         * modules/unistdio/u16-vsnprintf-tests
35688         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
35689         * modules/unistdio/u16-vsprintf-tests
35690         (test_u16_vsnprintf1_LDADD): Likewise.
35691         * modules/unistdio/u32-vsnprintf-tests
35692         (test_u32_vsnprintf1_LDADD): Likewise.
35693         * modules/unistdio/u32-vsprintf-tests
35694         (test_u32_vsprintf1_LDADD): Likewise.
35695         * modules/unistdio/u8-vsnprintf-tests
35696         (test_u8_vsnprintf1_LDADD): Likewise.
35697         * modules/unistdio/u8-vsprintf-tests
35698         (test_u8_vsprintf1_LDADD): Likewise.
35699         * modules/unistdio/ulc-vsnprintf-tests
35700         (test_ulc_vsnprintf1_LDADD): Likewise.
35701         * modules/unistdio/ulc-vsprintf-tests
35702         (test_ulc_vsprintf1_LDADD): Likewise.
35703
35704         Fix linking of some uniconv tests on FreeBSD.
35705         * modules/uniconv/u16-conv-from-enc-tests
35706         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
35707         * modules/uniconv/u16-conv-to-enc-tests
35708         (test_u16_conv_to_enc_LDADD): Likewise.
35709         * modules/uniconv/u16-strconv-from-enc-tests
35710         (test_u16_strconv_from_enc_LDADD): Likewise.
35711         * modules/uniconv/u16-strconv-to-enc-tests
35712         (test_u16_strconv_to_enc_LDADD): Likewise.
35713         * modules/uniconv/u32-conv-from-enc-tests
35714         (test_u32_conv_from_enc_LDADD): Likewise.
35715         * modules/uniconv/u32-conv-to-enc-tests
35716         (test_u32_conv_to_enc_LDADD): Likewise.
35717         * modules/uniconv/u32-strconv-from-enc-tests
35718         (test_u32_strconv_from_enc_LDADD): Likewise.
35719         * modules/uniconv/u32-strconv-to-enc-tests
35720         (test_u32_strconv_to_enc_LDADD): Likewise.
35721         * modules/uniconv/u8-conv-from-enc-tests
35722         (test_u8_conv_from_enc_LDADD): Likewise.
35723         * modules/uniconv/u8-conv-to-enc-tests
35724         (test_u8_conv_to_enc_LDADD): Likewise.
35725         * modules/uniconv/u8-strconv-from-enc-tests
35726         (test_u8_strconv_from_enc_LDADD): Likewise.
35727         * modules/uniconv/u8-strconv-to-enc-tests
35728         (test_u8_strconv_to_enc_LDADD): Likewise.
35729
35730 2007-10-22  Bruno Haible  <bruno@clisp.org>
35731
35732         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
35733         size.
35734
35735 2007-10-22  Eric Blake  <ebb9@byu.net>
35736
35737         Tweak x*printf documentation.
35738         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
35739         variable name and comments.
35740         Suggested by Bruno Haible.
35741
35742 2007-10-22  Bruno Haible  <bruno@clisp.org>
35743
35744         * lib/acl.c (copy_acl): Fix file name in comment.
35745
35746 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
35747
35748         Fix Tru64 problem with stdbool.h.
35749         * lib/stdbool.in.h (false, true):
35750         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
35751         Don't declare as an enum in this situation; it runs afoul of Tru64.
35752         Problem reported by Steven M. Schweda in
35753         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
35754
35755 2007-10-22  Eric Blake  <ebb9@byu.net>
35756
35757         Also wrap vf?printf.
35758         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
35759         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
35760         (xvprintf, xvfprintf): New functions.
35761
35762 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35763
35764         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
35765         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
35766
35767         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
35768         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
35769
35770 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
35771
35772         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
35773         by Bruno Haible.
35774
35775 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35776
35777         * lib/getloadavg.c
35778         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
35779         Undef `sys' after including sys/table.h, for Tru64 4.0D.
35780
35781         * tests/test-i-ring.c: Work for C89.
35782
35783 2007-10-22  Bruno Haible  <bruno@clisp.org>
35784
35785         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
35786         -1u, in preprocessor expression, so that we don't test for the bug
35787         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
35788         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
35789
35790 2007-10-22  Eric Blake  <ebb9@byu.net>
35791
35792         * tests/test-yesno.sh: Silence stderr during test.
35793
35794 2007-10-22  Simon Josefsson  <simon@josefsson.org>
35795
35796         * modules/crypto/gc-camellia: New file.
35797
35798         * m4/gc-camellia.m4: New file.
35799
35800         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
35801
35802         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
35803
35804 2007-10-22  Simon Josefsson  <simon@josefsson.org>
35805
35806         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
35807         --help to stdout.  Reported by sms@antinode.org (Steven
35808         M. Schweda).
35809
35810 2007-10-22  Simon Josefsson  <simon@josefsson.org>
35811
35812         * users.txt: Fix link to libksba.
35813
35814 2007-10-21  Ben Pfaff  <blp@gnu.org>
35815
35816         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
35817         round.c roundf implementation that depends on floorf and ceilf to
35818         be tested unconditionally.
35819
35820 2007-10-21  Ben Pfaff  <blp@gnu.org>
35821
35822         * m4/check-libm-func.m4: Removed.
35823         * m4/check-math-lib.m4: New file.
35824         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
35825         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
35826         definition and lack of AC_LIBOBJ([roundf]).
35827         * m4/roundl.m4: Ditto, and similarly for roundl.
35828         * modules/round: Reference new m4 file.
35829         * modules/roundf: Ditto.
35830         * modules/roundl: Ditto.
35831         * tests/test-round2.c (main): Use ROUND instead of round.
35832         Bug report from Bruno Haible.
35833
35834 2007-10-21  Bruno Haible  <bruno@clisp.org>
35835
35836         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
35837         context.
35838
35839 2007-10-21  Bruno Haible  <bruno@clisp.org>
35840
35841         * tests/test-wcwidth.c (main): Allow negative result for some control
35842         characters.
35843
35844         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
35845         Needed on OSF/1 5.1.
35846
35847 2007-10-21  Bruno Haible  <bruno@clisp.org>
35848
35849         * tests/test-floorf1.c: Include isnanf.h.
35850         (main): Use isnanf() instead of isnan().
35851         * tests/test-ceilf1.c: Include isnanf.h.
35852         (main): Use isnanf() instead of isnan().
35853         * tests/test-truncf1.c: Include isnanf.h.
35854         (main): Use isnanf() instead of isnan().
35855         * tests/test-roundf1.c: Include isnanf.h.
35856         (main): Use isnanf() instead of isnan().
35857
35858 2007-10-21  Eric Blake  <ebb9@byu.net>
35859
35860         * users.txt: Update URL for m4.
35861
35862 2007-10-21  Bruno Haible  <bruno@clisp.org>
35863
35864         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
35865
35866 2007-10-21  Bruno Haible  <bruno@clisp.org>
35867
35868         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
35869         Git's management files if the CVS files are not present.
35870
35871 2007-10-20  Bruno Haible  <bruno@clisp.org>
35872
35873         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
35874         gcc-3.4.x.
35875
35876 2007-10-20  Ben Pfaff  <blp@gnu.org>
35877
35878         * lib/math.in.h: Declare round, roundf, roundl if we are providing
35879         implementations.
35880         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
35881         * lib/round.c: New file.
35882         * lib/roundf.c: New file.
35883         * lib/roundl.c: New file.
35884         * m4/round.m4: New file.
35885         * m4/roundf.m4: New file.
35886         * m4/roundl.m4: New file.
35887         * m4/check-libm-func-m4: New file.
35888         * modules/math: Replace round, roundf, roundl related @VARS@ in
35889         math.in.h.
35890         * modules/round: New file.
35891         * modules/round-tests: New file.
35892         * modules/roundf: New file.
35893         * modules/roundf-tests: New file.
35894         * modules/roundl: New file.
35895         * modules/roundl-tests: New file.
35896         * tests/test-round1.c: New file.
35897         * tests/test-round2.c: New file.
35898         * tests/test-roundf1.c: New file.
35899         * tests/test-roundf2.c: New file.
35900         * tests/test-roundl.c: New file.
35901         * doc/functions/round.texi: Mention round module.
35902         * doc/functions/roundf.texi: Mention roundf module.
35903         * doc/functions/roundl.texi: Mention roundl module.
35904         * MODULES.html.sh: Mention new modules.
35905         Thanks to Bruno Haible for suggestions.
35906
35907 2007-10-20  Jim Meyering  <meyering@redhat.com>
35908
35909         * lib/xprintf.c: Include <config.h> unconditionally.
35910
35911         Change xprintf's license to GPL.
35912         * modules/xprintf (License): s/LGPL/GPL/, since this module
35913         depends on modules (exit and exitfail) which are GPL.
35914         Suggestion from Bruno Haible.
35915
35916         xprintf fixes.
35917         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
35918         Use a clearer diagnostic.
35919         Patch from Bruno Haible.
35920
35921 2007-10-20  Bruno Haible  <bruno@clisp.org>
35922
35923         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
35924         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
35925         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35926
35927 2007-10-20  Bruno Haible  <bruno@clisp.org>
35928
35929         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
35930         precision in the comparison result > x - 1 or similar.
35931         * tests/test-ceilf2.c (correct_result_p): Likewise.
35932         * tests/test-truncf2.c (correct_result_p): Likewise.
35933         * tests/test-trunc2.c (correct_result_p): Likewise.
35934         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35935
35936 2007-10-20  Bruno Haible  <bruno@clisp.org>
35937
35938         * modules/ceil: New file.
35939         * m4/ceil.m4: New file.
35940         * doc/functions/ceil.texi: Mention the 'ceil' module.
35941
35942 2007-10-20  Bruno Haible  <bruno@clisp.org>
35943
35944         * modules/floor: New file.
35945         * m4/floor.m4: New file.
35946         * doc/functions/floor.texi: Mention the 'floor' module.
35947
35948 2007-10-20  Bruno Haible  <bruno@clisp.org>
35949
35950         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
35951         of %a.
35952         * modules/floorf-tests (Depends-on): Likewise.
35953         * modules/truncf-tests (Depends-on): Likewise.
35954         * modules/trunc-tests (Depends-on): Likewise.
35955         Reported by Ben Pfaff.
35956
35957 2007-10-19  Jim Meyering  <meyering@redhat.com>
35958
35959         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
35960         Don't bother testing specific errno values.  Just test ferror.
35961
35962         New module: xprintf
35963         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
35964
35965 2007-10-19  Bruno Haible  <bruno@clisp.org>
35966
35967         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
35968         syntax.
35969         * modules/javaexec (Makefile.am): Likewise.
35970         * modules/relocatable-prog (Makefile.am): Likewise.
35971         Suggested by Jim Meyering.
35972
35973 2007-10-18  Bruno Haible  <bruno@clisp.org>
35974
35975         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
35976         Reported by Jim Meyering.
35977
35978 2007-10-18  Eric Blake  <ebb9@byu.net>
35979
35980         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
35981
35982 2007-10-18  Bruno Haible  <bruno@clisp.org>
35983
35984         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
35985         the format string into writable memory. Needed in Fortify conditions.
35986
35987 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
35988             Bruno Haible  <bruno@clisp.org>
35989
35990         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
35991         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
35992         * modules/trim (Depends-on): Add mbchar.
35993         (configure.ac): Add gl_FUNC_MBRTOWC.
35994         (Makefile.am): Augment lib_SOURCES.
35995
35996 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
35997
35998         Modify glob.c to use fstatat and dirfd, to simplify it.
35999         Suggested by Eric Blake.
36000         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
36001         Don't include <stdbool.h>; not used.
36002         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
36003         (link_exists_p): Simplify implementation, since we can now assume
36004         dirfd and fstatat.
36005         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
36006
36007 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36008
36009         * gnulib-tool (func_get_dependencies): Fix sed script to
36010         match only tests.
36011
36012 2007-10-17  Bruno Haible  <bruno@clisp.org>
36013
36014         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
36015         allow locale names without encoding suffix.
36016         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
36017         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
36018
36019 2007-10-16  Bruno Haible  <bruno@clisp.org>
36020
36021         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
36022         * lib/getgroups.c (getgroups): Likewise.
36023         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
36024
36025 2007-10-16  Bruno Haible  <bruno@clisp.org>
36026
36027         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
36028         * modules/malloc-posix (License): Likewise.
36029         * modules/realloc-posix (License): Likewise.
36030         * modules/calloc-posix (License): Likewise.
36031         * modules/intprops (License): Change from GPL to LGPL, with
36032         Paul Eggert's approval.
36033
36034 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
36035
36036         Merge glibc changes into lib/glob.c.
36037
36038         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
36039         2007-10-15 04:59:03 UTC.  Here are the changes:
36040
36041         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
36042
36043         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
36044
36045         * lib/glob.c: Add some branch prediction throughout.
36046
36047         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
36048
36049         [BZ #5103]
36050         * lib/glob.c (glob): Recognize patterns starting \/.
36051
36052         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
36053
36054         [BZ #3996]
36055         * lib/glob.c (attribute_hidden): Define if not defined.
36056         (glob): Unescape dirname, filename or username when needed and not
36057         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
36058         is NULL.  Handle unescaped [ in pattern without closing ].
36059         Don't pass GLOB_CHECK down to recursive glob for directories.
36060         (__glob_pattern_type): New function.
36061         (__glob_pattern_p): Implement using __glob_pattern_type.
36062         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
36063         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
36064         Remove unreachable code.
36065
36066         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
36067
36068         * lib/glob.c (glob_in_dir): Add some comments and asserts to
36069         explain why there are no leaks.
36070
36071         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
36072
36073         [BZ #3253]
36074         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
36075         time, rather allocate increasingly bigger arrays of pointers, if
36076         possible with alloca, if too large with malloc.
36077
36078 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
36079
36080         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
36081         Problem reported by H.Merijn Brand in
36082         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
36083         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
36084         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
36085
36086 2007-10-15  Bruno Haible  <bruno@clisp.org>
36087
36088         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
36089         with explicit rpl_ prefix.
36090         * lib/fopen.c (fopen): Likewise.
36091         * lib/freopen.c (freopen): Likewise.
36092         * lib/iconv.c (iconv): Likewise.
36093         * lib/iconv_close.c (iconv_close): Likewise.
36094
36095 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36096
36097         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
36098
36099 2007-10-15  Bruno Haible  <bruno@clisp.org>
36100
36101         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
36102         <stddef.h> instead of <stdlib.h> since we only need NULL.
36103         Reported by Ben Pfaff <blp@cs.stanford.edu>.
36104
36105 2007-10-15  Bruno Haible  <bruno@clisp.org>
36106
36107         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
36108         Replace paragraph talking about LIBOBJS.
36109         Reported by Colin Watson <cjwatson@debian.org>.
36110
36111 2007-10-15  Bruno Haible  <bruno@clisp.org>
36112
36113         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
36114         <stdlib.h> before using NULL.
36115
36116 2007-10-15  Simon Josefsson  <simon@josefsson.org>
36117
36118         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
36119         Reported by Albert Chin <china@thewrittenword.com>.
36120
36121 2007-10-14  Bruno Haible  <bruno@clisp.org>
36122
36123         * modules/iconv_open-utf-tests: New file.
36124         * tests/test-iconv-utf.c: New file.
36125
36126         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
36127         * modules/iconv_open-utf: New file.
36128         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
36129         (iconv, iconv_close): New declarations.
36130         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
36131         be defined.
36132         (iconv_open): Add special handling of conversion between UTF-8 and
36133         UTF-{16,32}{BE,LE}.
36134         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
36135         * lib/iconv_close.c: New file.
36136         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
36137         gl_FUNC_ICONV_OPEN.
36138         (gl_FUNC_ICONV_OPEN): Use it.
36139         (gl_FUNC_ICONV_OPEN_UTF): New macro.
36140         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
36141         and REPLACE_ICONV_UTF.
36142         * modules/iconv_open (Depends-on): Add c-strcase.
36143         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
36144         ICONV_CONST.
36145         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
36146
36147 2007-10-13  Albert Chin  <china@thewrittenword.com>
36148             Bruno Haible  <bruno@clisp.org>
36149
36150         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
36151         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
36152
36153 2007-10-13  Bruno Haible  <bruno@clisp.org>
36154
36155         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
36156         defined, use the ISO C99 inline semantics.
36157         * lib/argp.h (ARGP_EI): Likewise.
36158
36159 2007-10-13  Bruno Haible  <bruno@clisp.org>
36160
36161         Handle 'inline' change in gcc 4.3.0.
36162         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
36163         argp_fmtstream_write, argp_fmtstream_set_lmargin,
36164         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
36165         argp_fmtstream_point): Disable 'extern' declaration if the function
36166         definition is going to be provided inline.
36167         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
36168         semantics, not the ISO C99 inline semantics.
36169         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
36170         'extern' declaration if the function definition is going to be provided
36171         inline.
36172         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
36173         the GNU C inline semantics, not the ISO C99 inline semantics. With
36174         GCC 4.2, avoid a warning.
36175
36176 2007-10-13  Bruno Haible  <bruno@clisp.org>
36177
36178         * lib/freading.h (freading): Enable the use of __freading for
36179         glibc >= 2.7.
36180         * lib/freading.c (freading): Likewise.
36181
36182 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
36183
36184         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
36185         "warning: C99 inline functions are not supported; using GNU89".
36186
36187 2007-10-12  Bruno Haible  <bruno@clisp.org>
36188
36189         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
36190         of 2.
36191         * tests/test-ceilf2.c: New file.
36192         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
36193
36194         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
36195         * modules/ceilf-tests: Update.
36196
36197 2007-10-12  Bruno Haible  <bruno@clisp.org>
36198
36199         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
36200         of 2.
36201         * tests/test-floorf2.c: New file.
36202         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
36203
36204         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
36205         * modules/floorf-tests: Update.
36206
36207 2007-10-12  Bruno Haible  <bruno@clisp.org>
36208
36209         * tests/test-trunc2.c: New file.
36210         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
36211
36212         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
36213         * modules/trunc-tests: Update.
36214
36215 2007-10-12  Bruno Haible  <bruno@clisp.org>
36216
36217         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
36218         of 2.
36219         * tests/test-truncf2.c: New file.
36220         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
36221
36222         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
36223         * modules/truncf-tests: Update.
36224
36225 2007-10-11  Eric Blake  <ebb9@byu.net>
36226
36227         Don't claim strerror is broken on Interix.
36228         * doc/functions/strerror.texi (strerror): Known broken systems are
36229         now Solaris 8, and not Interix.
36230         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
36231         Interix on cross-compile.
36232         Reported by Martin Koeppe in
36233         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
36234
36235 2007-10-11  Bruno Haible  <bruno@clisp.org>
36236
36237         * modules/i-ring-tests: New file.
36238         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
36239         instead of assert.
36240
36241 2007-10-11  Bruno Haible  <bruno@clisp.org>
36242
36243         * modules/filenamecat-tests: New file.
36244         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
36245         * lib/filenamecat.c: Remove test code.
36246
36247 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
36248
36249         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
36250
36251         * lib/strerror.c: Include <string.h> always, to test interface,
36252         and to remove the need for the dummy.
36253         Include intprops.h to compute width instead of doing it ourselves
36254         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
36255         (strerror): Define it to return NULL if there's no system strerror.
36256         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
36257         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
36258         ancient pre-strerror Unix systems well any more.  Saying "unknown
36259         system error" is enough.
36260         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
36261         simpler strerror.c implementation.
36262         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
36263         Simplify the tests to reflect the simpler strerror implementation.
36264         * modules/strerror (Depends-on): Add intprops.
36265
36266 2007-10-09  Eric Blake  <ebb9@byu.net>
36267
36268         Silence test-fpending.
36269         * modules/fpending-tests (Files): Add wrapper script.
36270         * tests/test-fpending.sh: New file.
36271
36272 2007-10-09  Bruno Haible  <bruno@clisp.org>
36273
36274         * MODULES.html.sh (func_module): Don't create a hyperlink for
36275         function names like 'printf_frexp'.
36276         (Misc): Add crc, memxor.
36277         (Characteristics of floating types): New section.
36278         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
36279         isnanf-nolibm, signbit, trunc, truncf, truncl.
36280         (Enhancements for ISO C 99 functions): New subsection Input/output.
36281         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
36282         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
36283         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
36284         (Compatibility checks for POSIX:2001 functions): Add clock-time.
36285         (Enhancements for POSIX:2001 functions): Add chdir-long.
36286         (File system functions): Add areadlink, chdir-safer, read-file.
36287         Remove cycle-check.
36288         (File system as inode set): New section.
36289         (Date and time): Add gethrxtime.
36290         (Multithreading): Add openmp.
36291         (Internationalization functions): Add localename.
36292         (Unicode string functions): Add unistr/u*-mbsnlen.
36293         (Support for maintaining and releasing projects): Add git-version-gen.
36294         (Lone files): Remove directories.
36295
36296 2007-10-08  Ben Pfaff  <blp@gnu.org>
36297
36298         * lib/xmalloca.h: Fix typo in comment.
36299
36300 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
36301
36302         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
36303         when avoiding problems with integer overflow.  Use a portable test
36304         instead.
36305
36306 2007-10-08  Simon Josefsson  <simon@josefsson.org>
36307
36308         * modules/dummy (License): Change to LGPLv2+.
36309         * modules/float (License): Likewise
36310         * modules/realloc (License): Likewise
36311         * modules/stdlib (License): Likewise
36312
36313 2007-10-07  Bruno Haible  <bruno@clisp.org>
36314
36315         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
36316         * floor.c (TWO_MANT_DIG): Likewise.
36317         * ceil.c (TWO_MANT_DIG): Likewise.
36318         Reported by Ben Pfaff.
36319
36320 2007-10-07  Bruno Haible  <bruno@clisp.org>
36321
36322         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
36323         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
36324         * lib/frexp.c (FUNC): Likewise.
36325         * lib/printf-frexp.h (printf_frexp): Likewise.
36326         * lib/printf-frexpl.h (printf_frexpl): Likewise.
36327         * lib/printf-frexp.c (FUNC): Likewise.
36328         Suggested by Jim Meyering.
36329
36330 2007-10-07  Jim Meyering  <meyering@redhat.com>
36331
36332         Make xnanosleep's integer overflow test more robust.
36333         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
36334         so that gcc-4.3.0 doesn't optimize away this test for overflow.
36335
36336 2007-10-07  Bruno Haible  <bruno@clisp.org>
36337
36338         * NEWS: Mention the license change.
36339
36340         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
36341         abbreviations in the modules files.
36342
36343         Change copyright notice from GPLv2+ to GPLv3+.
36344         * README: Change copyright notice.
36345         * MODULES.html.sh: Likewise.
36346         * build-aux/bootstrap.conf: Likewise.
36347         * build-aux/config.libpath: Likewise.
36348         * build-aux/csharpcomp.sh.in: Likewise.
36349         * build-aux/csharpexec.sh.in: Likewise.
36350         * build-aux/install-reloc: Likewise.
36351         * build-aux/javacomp.sh.in: Likewise.
36352         * build-aux/javaexec.sh.in: Likewise.
36353         * build-aux/ldd.sh.in: Likewise.
36354         * build-aux/reloc-ldflags: Likewise.
36355         * build-aux/relocatable.sh.in: Likewise.
36356         * build-aux/x-to-1.in: Likewise.
36357         * check-module: Likewise.
36358         * config/srclistvars.sh: Likewise.
36359         * gnulib-tool: Likewise.
36360         * lib/acl-internal.h: Likewise.
36361         * lib/acl.c: Likewise.
36362         * lib/acl.h: Likewise.
36363         * lib/acl_entries.c: Likewise.
36364         * lib/areadlink-with-size.c: Likewise.
36365         * lib/areadlink.c: Likewise.
36366         * lib/areadlink.h: Likewise.
36367         * lib/argmatch.c: Likewise.
36368         * lib/argmatch.h: Likewise.
36369         * lib/argp-ba.c: Likewise.
36370         * lib/argp-eexst.c: Likewise.
36371         * lib/argp-fmtstream.c: Likewise.
36372         * lib/argp-fmtstream.h: Likewise.
36373         * lib/argp-fs-xinl.c: Likewise.
36374         * lib/argp-help.c: Likewise.
36375         * lib/argp-namefrob.h: Likewise.
36376         * lib/argp-parse.c: Likewise.
36377         * lib/argp-pin.c: Likewise.
36378         * lib/argp-pv.c: Likewise.
36379         * lib/argp-pvh.c: Likewise.
36380         * lib/argp-xinl.c: Likewise.
36381         * lib/argp.h: Likewise.
36382         * lib/at-func.c: Likewise.
36383         * lib/atanl.c: Likewise.
36384         * lib/backupfile.c: Likewise.
36385         * lib/backupfile.h: Likewise.
36386         * lib/basename.c: Likewise.
36387         * lib/binary-io.h: Likewise.
36388         * lib/byteswap.in.h: Likewise.
36389         * lib/c-stack.c: Likewise.
36390         * lib/c-stack.h: Likewise.
36391         * lib/c-strcasestr.c: Likewise.
36392         * lib/c-strcasestr.h: Likewise.
36393         * lib/c-strstr.c: Likewise.
36394         * lib/c-strstr.h: Likewise.
36395         * lib/c-strtod.c: Likewise.
36396         * lib/calloc.c: Likewise.
36397         * lib/canon-host.c: Likewise.
36398         * lib/canon-host.h: Likewise.
36399         * lib/canonicalize-lgpl.c: Likewise.
36400         * lib/canonicalize.c: Likewise.
36401         * lib/canonicalize.h: Likewise.
36402         * lib/ceil.c: Likewise.
36403         * lib/ceilf.c: Likewise.
36404         * lib/ceill.c: Likewise.
36405         * lib/chdir-long.c: Likewise.
36406         * lib/chdir-long.h: Likewise.
36407         * lib/chdir-safer.c: Likewise.
36408         * lib/chdir-safer.h: Likewise.
36409         * lib/chown.c: Likewise.
36410         * lib/classpath.c: Likewise.
36411         * lib/classpath.h: Likewise.
36412         * lib/clean-temp.c: Likewise.
36413         * lib/clean-temp.h: Likewise.
36414         * lib/cloexec.c: Likewise.
36415         * lib/close-stream.c: Likewise.
36416         * lib/closein.c: Likewise.
36417         * lib/closein.h: Likewise.
36418         * lib/closeout.c: Likewise.
36419         * lib/closeout.h: Likewise.
36420         * lib/concat-filename.c: Likewise.
36421         * lib/copy-file.c: Likewise.
36422         * lib/copy-file.h: Likewise.
36423         * lib/count-one-bits.h: Likewise.
36424         * lib/crc.c: Likewise.
36425         * lib/crc.h: Likewise.
36426         * lib/creat-safer.c: Likewise.
36427         * lib/csharpcomp.c: Likewise.
36428         * lib/csharpcomp.h: Likewise.
36429         * lib/csharpexec.c: Likewise.
36430         * lib/csharpexec.h: Likewise.
36431         * lib/cycle-check.c: Likewise.
36432         * lib/cycle-check.h: Likewise.
36433         * lib/diacrit.c: Likewise.
36434         * lib/diacrit.h: Likewise.
36435         * lib/diffseq.h: Likewise.
36436         * lib/dirchownmod.c: Likewise.
36437         * lib/dirent.in.h: Likewise.
36438         * lib/dirfd.c: Likewise.
36439         * lib/dirfd.h: Likewise.
36440         * lib/dirname.c: Likewise.
36441         * lib/dirname.h: Likewise.
36442         * lib/dummy.c: Likewise.
36443         * lib/dup-safer.c: Likewise.
36444         * lib/dup2.c: Likewise.
36445         * lib/eealloc.h: Likewise.
36446         * lib/error.c: Likewise.
36447         * lib/error.h: Likewise.
36448         * lib/euidaccess.c: Likewise.
36449         * lib/exclude.c: Likewise.
36450         * lib/exclude.h: Likewise.
36451         * lib/execute.c: Likewise.
36452         * lib/execute.h: Likewise.
36453         * lib/exitfail.c: Likewise.
36454         * lib/exitfail.h: Likewise.
36455         * lib/expl.c: Likewise.
36456         * lib/fatal-signal.c: Likewise.
36457         * lib/fatal-signal.h: Likewise.
36458         * lib/fbufmode.c: Likewise.
36459         * lib/fbufmode.h: Likewise.
36460         * lib/fchdir.c: Likewise.
36461         * lib/fchmodat.c: Likewise.
36462         * lib/fchownat.c: Likewise.
36463         * lib/fcntl--.h: Likewise.
36464         * lib/fcntl-safer.h: Likewise.
36465         * lib/fcntl.in.h: Likewise.
36466         * lib/fd-safer.c: Likewise.
36467         * lib/fflush.c: Likewise.
36468         * lib/file-has-acl.c: Likewise.
36469         * lib/file-set.c: Likewise.
36470         * lib/file-type.c: Likewise.
36471         * lib/file-type.h: Likewise.
36472         * lib/fileblocks.c: Likewise.
36473         * lib/filemode.c: Likewise.
36474         * lib/filemode.h: Likewise.
36475         * lib/filename.h: Likewise.
36476         * lib/filenamecat.c: Likewise.
36477         * lib/filenamecat.h: Likewise.
36478         * lib/findprog.c: Likewise.
36479         * lib/findprog.h: Likewise.
36480         * lib/float.in.h: Likewise.
36481         * lib/floor.c: Likewise.
36482         * lib/floorf.c: Likewise.
36483         * lib/floorl.c: Likewise.
36484         * lib/fopen-safer.c: Likewise.
36485         * lib/fopen.c: Likewise.
36486         * lib/fpending.c: Likewise.
36487         * lib/fpending.h: Likewise.
36488         * lib/fprintf.c: Likewise.
36489         * lib/fprintftime.h: Likewise.
36490         * lib/fpucw.h: Likewise.
36491         * lib/fpurge.c: Likewise.
36492         * lib/fpurge.h: Likewise.
36493         * lib/freadable.c: Likewise.
36494         * lib/freadable.h: Likewise.
36495         * lib/freadahead.c: Likewise.
36496         * lib/freadahead.h: Likewise.
36497         * lib/freading.c: Likewise.
36498         * lib/freading.h: Likewise.
36499         * lib/free.c: Likewise.
36500         * lib/freopen.c: Likewise.
36501         * lib/frexp.c: Likewise.
36502         * lib/frexpl.c: Likewise.
36503         * lib/fseek.c: Likewise.
36504         * lib/fseterr.c: Likewise.
36505         * lib/fseterr.h: Likewise.
36506         * lib/fstatat.c: Likewise.
36507         * lib/fstrcmp.c: Likewise.
36508         * lib/fstrcmp.h: Likewise.
36509         * lib/fsusage.c: Likewise.
36510         * lib/fsusage.h: Likewise.
36511         * lib/ftell.c: Likewise.
36512         * lib/ftello.c: Likewise.
36513         * lib/fts-cycle.c: Likewise.
36514         * lib/fts.c: Likewise.
36515         * lib/fts_.h: Likewise.
36516         * lib/full-read.c: Likewise.
36517         * lib/full-read.h: Likewise.
36518         * lib/full-write.c: Likewise.
36519         * lib/full-write.h: Likewise.
36520         * lib/fwritable.c: Likewise.
36521         * lib/fwritable.h: Likewise.
36522         * lib/fwriteerror.c: Likewise.
36523         * lib/fwriteerror.h: Likewise.
36524         * lib/fwriting.c: Likewise.
36525         * lib/fwriting.h: Likewise.
36526         * lib/gcd.c: Likewise.
36527         * lib/gcd.h: Likewise.
36528         * lib/getcwd.c: Likewise.
36529         * lib/getdate.h: Likewise.
36530         * lib/getdate.y: Likewise.
36531         * lib/getdomainname.c: Likewise.
36532         * lib/getdomainname.h: Likewise.
36533         * lib/getgroups.c: Likewise.
36534         * lib/gethostname.c: Likewise.
36535         * lib/gethrxtime.c: Likewise.
36536         * lib/gethrxtime.h: Likewise.
36537         * lib/getloadavg.c: Likewise.
36538         * lib/getndelim2.c: Likewise.
36539         * lib/getndelim2.h: Likewise.
36540         * lib/getnline.c: Likewise.
36541         * lib/getnline.h: Likewise.
36542         * lib/getopt.c: Likewise.
36543         * lib/getopt.in.h: Likewise.
36544         * lib/getopt1.c: Likewise.
36545         * lib/getopt_int.h: Likewise.
36546         * lib/getpagesize.h: Likewise.
36547         * lib/getsubopt.c: Likewise.
36548         * lib/gettime.c: Likewise.
36549         * lib/getugroups.c: Likewise.
36550         * lib/getugroups.h: Likewise.
36551         * lib/getusershell.c: Likewise.
36552         * lib/gl_anyavltree_list1.h: Likewise.
36553         * lib/gl_anyavltree_list2.h: Likewise.
36554         * lib/gl_anyhash_list1.h: Likewise.
36555         * lib/gl_anyhash_list2.h: Likewise.
36556         * lib/gl_anylinked_list1.h: Likewise.
36557         * lib/gl_anylinked_list2.h: Likewise.
36558         * lib/gl_anyrbtree_list1.h: Likewise.
36559         * lib/gl_anyrbtree_list2.h: Likewise.
36560         * lib/gl_anytree_list1.h: Likewise.
36561         * lib/gl_anytree_list2.h: Likewise.
36562         * lib/gl_anytree_oset.h: Likewise.
36563         * lib/gl_anytreehash_list1.h: Likewise.
36564         * lib/gl_anytreehash_list2.h: Likewise.
36565         * lib/gl_array_list.c: Likewise.
36566         * lib/gl_array_list.h: Likewise.
36567         * lib/gl_array_oset.c: Likewise.
36568         * lib/gl_array_oset.h: Likewise.
36569         * lib/gl_avltree_list.c: Likewise.
36570         * lib/gl_avltree_list.h: Likewise.
36571         * lib/gl_avltree_oset.c: Likewise.
36572         * lib/gl_avltree_oset.h: Likewise.
36573         * lib/gl_avltreehash_list.c: Likewise.
36574         * lib/gl_avltreehash_list.h: Likewise.
36575         * lib/gl_carray_list.c: Likewise.
36576         * lib/gl_carray_list.h: Likewise.
36577         * lib/gl_linked_list.c: Likewise.
36578         * lib/gl_linked_list.h: Likewise.
36579         * lib/gl_linkedhash_list.c: Likewise.
36580         * lib/gl_linkedhash_list.h: Likewise.
36581         * lib/gl_list.c: Likewise.
36582         * lib/gl_list.h: Likewise.
36583         * lib/gl_oset.c: Likewise.
36584         * lib/gl_oset.h: Likewise.
36585         * lib/gl_rbtree_list.c: Likewise.
36586         * lib/gl_rbtree_list.h: Likewise.
36587         * lib/gl_rbtree_oset.c: Likewise.
36588         * lib/gl_rbtree_oset.h: Likewise.
36589         * lib/gl_rbtreehash_list.c: Likewise.
36590         * lib/gl_rbtreehash_list.h: Likewise.
36591         * lib/gl_sublist.c: Likewise.
36592         * lib/gl_sublist.h: Likewise.
36593         * lib/group-member.c: Likewise.
36594         * lib/group-member.h: Likewise.
36595         * lib/hard-locale.c: Likewise.
36596         * lib/hard-locale.h: Likewise.
36597         * lib/hash-pjw.c: Likewise.
36598         * lib/hash-pjw.h: Likewise.
36599         * lib/hash-triple.c: Likewise.
36600         * lib/hash.c: Likewise.
36601         * lib/hash.h: Likewise.
36602         * lib/human.c: Likewise.
36603         * lib/human.h: Likewise.
36604         * lib/i-ring.c: Likewise.
36605         * lib/i-ring.h: Likewise.
36606         * lib/idcache.c: Likewise.
36607         * lib/imaxabs.c: Likewise.
36608         * lib/imaxdiv.c: Likewise.
36609         * lib/inet_pton.c: Likewise.
36610         * lib/inet_pton.h: Likewise.
36611         * lib/intprops.h: Likewise.
36612         * lib/inttostr.c: Likewise.
36613         * lib/inttostr.h: Likewise.
36614         * lib/inttypes.in.h: Likewise.
36615         * lib/isapipe.c: Likewise.
36616         * lib/isdir.c: Likewise.
36617         * lib/isnan.c: Likewise.
36618         * lib/isnan.h: Likewise.
36619         * lib/isnanf.c: Likewise.
36620         * lib/isnanf.h: Likewise.
36621         * lib/isnanl-nolibm.h: Likewise.
36622         * lib/isnanl.c: Likewise.
36623         * lib/isnanl.h: Likewise.
36624         * lib/javacomp.c: Likewise.
36625         * lib/javacomp.h: Likewise.
36626         * lib/javaexec.c: Likewise.
36627         * lib/javaexec.h: Likewise.
36628         * lib/javaversion.c: Likewise.
36629         * lib/javaversion.h: Likewise.
36630         * lib/javaversion.java: Likewise.
36631         * lib/lbrkprop.h: Likewise.
36632         * lib/lchmod.h: Likewise.
36633         * lib/lchown.c: Likewise.
36634         * lib/ldexpl.c: Likewise.
36635         * lib/linebreak.c: Likewise.
36636         * lib/linebreak.h: Likewise.
36637         * lib/linebuffer.c: Likewise.
36638         * lib/linebuffer.h: Likewise.
36639         * lib/locale.in.h: Likewise.
36640         * lib/logl.c: Likewise.
36641         * lib/long-options.c: Likewise.
36642         * lib/long-options.h: Likewise.
36643         * lib/lstat.c: Likewise.
36644         * lib/lstat.h: Likewise.
36645         * lib/math.in.h: Likewise.
36646         * lib/mbchar.c: Likewise.
36647         * lib/mbchar.h: Likewise.
36648         * lib/mbfile.h: Likewise.
36649         * lib/mbiter.h: Likewise.
36650         * lib/mbscasecmp.c: Likewise.
36651         * lib/mbscasestr.c: Likewise.
36652         * lib/mbschr.c: Likewise.
36653         * lib/mbscspn.c: Likewise.
36654         * lib/mbslen.c: Likewise.
36655         * lib/mbsncasecmp.c: Likewise.
36656         * lib/mbsnlen.c: Likewise.
36657         * lib/mbspbrk.c: Likewise.
36658         * lib/mbspcasecmp.c: Likewise.
36659         * lib/mbsrchr.c: Likewise.
36660         * lib/mbssep.c: Likewise.
36661         * lib/mbsspn.c: Likewise.
36662         * lib/mbsstr.c: Likewise.
36663         * lib/mbstok_r.c: Likewise.
36664         * lib/mbswidth.c: Likewise.
36665         * lib/mbswidth.h: Likewise.
36666         * lib/mbuiter.h: Likewise.
36667         * lib/memcasecmp.c: Likewise.
36668         * lib/memcasecmp.h: Likewise.
36669         * lib/memchr.c: Likewise.
36670         * lib/memcmp.c: Likewise.
36671         * lib/memcoll.c: Likewise.
36672         * lib/memcoll.h: Likewise.
36673         * lib/memcpy.c: Likewise.
36674         * lib/memrchr.c: Likewise.
36675         * lib/mkancesdirs.c: Likewise.
36676         * lib/mkdir-p.c: Likewise.
36677         * lib/mkdir-p.h: Likewise.
36678         * lib/mkdir.c: Likewise.
36679         * lib/mkdirat.c: Likewise.
36680         * lib/mkdtemp.c: Likewise.
36681         * lib/mkstemp-safer.c: Likewise.
36682         * lib/mkstemp.c: Likewise.
36683         * lib/modechange.c: Likewise.
36684         * lib/modechange.h: Likewise.
36685         * lib/mountlist.c: Likewise.
36686         * lib/mountlist.h: Likewise.
36687         * lib/mpsort.c: Likewise.
36688         * lib/nanosleep.c: Likewise.
36689         * lib/obstack.c: Likewise.
36690         * lib/obstack.h: Likewise.
36691         * lib/open-safer.c: Likewise.
36692         * lib/open.c: Likewise.
36693         * lib/openat-die.c: Likewise.
36694         * lib/openat-priv.h: Likewise.
36695         * lib/openat-proc.c: Likewise.
36696         * lib/openat.c: Likewise.
36697         * lib/openat.h: Likewise.
36698         * lib/pagealign_alloc.c: Likewise.
36699         * lib/pagealign_alloc.h: Likewise.
36700         * lib/physmem.c: Likewise.
36701         * lib/physmem.h: Likewise.
36702         * lib/pipe-safer.c: Likewise.
36703         * lib/pipe.c: Likewise.
36704         * lib/pipe.h: Likewise.
36705         * lib/posixtm.c: Likewise.
36706         * lib/posixtm.h: Likewise.
36707         * lib/posixver.c: Likewise.
36708         * lib/printf-frexp.c: Likewise.
36709         * lib/printf-frexp.h: Likewise.
36710         * lib/printf-frexpl.c: Likewise.
36711         * lib/printf-frexpl.h: Likewise.
36712         * lib/printf.c: Likewise.
36713         * lib/progname.c: Likewise.
36714         * lib/progname.h: Likewise.
36715         * lib/progreloc.c: Likewise.
36716         * lib/putenv.c: Likewise.
36717         * lib/quote.c: Likewise.
36718         * lib/quote.h: Likewise.
36719         * lib/quotearg.c: Likewise.
36720         * lib/quotearg.h: Likewise.
36721         * lib/raise.c: Likewise.
36722         * lib/readline.c: Likewise.
36723         * lib/readline.h: Likewise.
36724         * lib/readlink.c: Likewise.
36725         * lib/readtokens.c: Likewise.
36726         * lib/readtokens.h: Likewise.
36727         * lib/readtokens0.c: Likewise.
36728         * lib/readtokens0.h: Likewise.
36729         * lib/readutmp.c: Likewise.
36730         * lib/readutmp.h: Likewise.
36731         * lib/realloc.c: Likewise.
36732         * lib/relocwrapper.c: Likewise.
36733         * lib/rename-dest-slash.c: Likewise.
36734         * lib/rename.c: Likewise.
36735         * lib/rmdir.c: Likewise.
36736         * lib/rpmatch.c: Likewise.
36737         * lib/safe-read.c: Likewise.
36738         * lib/safe-read.h: Likewise.
36739         * lib/safe-write.c: Likewise.
36740         * lib/safe-write.h: Likewise.
36741         * lib/same-inode.h: Likewise.
36742         * lib/same.c: Likewise.
36743         * lib/same.h: Likewise.
36744         * lib/save-cwd.c: Likewise.
36745         * lib/save-cwd.h: Likewise.
36746         * lib/savedir.c: Likewise.
36747         * lib/savedir.h: Likewise.
36748         * lib/savewd.c: Likewise.
36749         * lib/savewd.h: Likewise.
36750         * lib/search.in.h: Likewise.
36751         * lib/setenv.c: Likewise.
36752         * lib/setenv.h: Likewise.
36753         * lib/settime.c: Likewise.
36754         * lib/sh-quote.c: Likewise.
36755         * lib/sh-quote.h: Likewise.
36756         * lib/sig2str.c: Likewise.
36757         * lib/sig2str.h: Likewise.
36758         * lib/signal.in.h: Likewise.
36759         * lib/signbitd.c: Likewise.
36760         * lib/signbitf.c: Likewise.
36761         * lib/signbitl.c: Likewise.
36762         * lib/sigprocmask.c: Likewise.
36763         * lib/sincosl.c: Likewise.
36764         * lib/sleep.c: Likewise.
36765         * lib/sprintf.c: Likewise.
36766         * lib/sqrtl.c: Likewise.
36767         * lib/stat-time.h: Likewise.
36768         * lib/stdio--.h: Likewise.
36769         * lib/stdio-safer.h: Likewise.
36770         * lib/stdlib--.h: Likewise.
36771         * lib/stdlib-safer.h: Likewise.
36772         * lib/stdlib.in.h: Likewise.
36773         * lib/stpcpy.c: Likewise.
36774         * lib/stpncpy.c: Likewise.
36775         * lib/strchrnul.c: Likewise.
36776         * lib/strcspn.c: Likewise.
36777         * lib/strerror.c: Likewise.
36778         * lib/strftime.c: Likewise.
36779         * lib/strftime.h: Likewise.
36780         * lib/striconveh.c: Likewise.
36781         * lib/striconveh.h: Likewise.
36782         * lib/striconveha.c: Likewise.
36783         * lib/striconveha.h: Likewise.
36784         * lib/stripslash.c: Likewise.
36785         * lib/strnlen1.c: Likewise.
36786         * lib/strnlen1.h: Likewise.
36787         * lib/strtod.c: Likewise.
36788         * lib/strtoimax.c: Likewise.
36789         * lib/strtok_r.c: Likewise.
36790         * lib/strtol.c: Likewise.
36791         * lib/strtoll.c: Likewise.
36792         * lib/strtoul.c: Likewise.
36793         * lib/strtoull.c: Likewise.
36794         * lib/sysexits.in.h: Likewise.
36795         * lib/tempname.c: Likewise.
36796         * lib/tempname.h: Likewise.
36797         * lib/timespec.h: Likewise.
36798         * lib/tls.c: Likewise.
36799         * lib/tls.h: Likewise.
36800         * lib/tmpdir.c: Likewise.
36801         * lib/tmpdir.h: Likewise.
36802         * lib/tmpfile-safer.c: Likewise.
36803         * lib/tmpfile.c: Likewise.
36804         * lib/trigl.c: Likewise.
36805         * lib/trigl.h: Likewise.
36806         * lib/trim.c: Likewise.
36807         * lib/trim.h: Likewise.
36808         * lib/trunc.c: Likewise.
36809         * lib/truncf.c: Likewise.
36810         * lib/truncl.c: Likewise.
36811         * lib/tsearch.c: Likewise.
36812         * lib/unicodeio.c: Likewise.
36813         * lib/unicodeio.h: Likewise.
36814         * lib/unistd--.h: Likewise.
36815         * lib/unistd-safer.h: Likewise.
36816         * lib/unistdio/ulc-fprintf.c: Likewise.
36817         * lib/unistdio/ulc-vfprintf.c: Likewise.
36818         * lib/unlinkdir.c: Likewise.
36819         * lib/unlinkdir.h: Likewise.
36820         * lib/unlocked-io.h: Likewise.
36821         * lib/unsetenv.c: Likewise.
36822         * lib/userspec.c: Likewise.
36823         * lib/utime.c: Likewise.
36824         * lib/utimecmp.c: Likewise.
36825         * lib/utimecmp.h: Likewise.
36826         * lib/utimens.c: Likewise.
36827         * lib/verify.h: Likewise.
36828         * lib/verror.c: Likewise.
36829         * lib/verror.h: Likewise.
36830         * lib/version-etc-fsf.c: Likewise.
36831         * lib/version-etc.c: Likewise.
36832         * lib/version-etc.h: Likewise.
36833         * lib/vfprintf.c: Likewise.
36834         * lib/vprintf.c: Likewise.
36835         * lib/vsprintf.c: Likewise.
36836         * lib/w32spawn.h: Likewise.
36837         * lib/wait-process.c: Likewise.
36838         * lib/wait-process.h: Likewise.
36839         * lib/wcwidth.c: Likewise.
36840         * lib/write-any-file.c: Likewise.
36841         * lib/xalloc-die.c: Likewise.
36842         * lib/xalloc.h: Likewise.
36843         * lib/xasprintf.c: Likewise.
36844         * lib/xgetcwd.c: Likewise.
36845         * lib/xgetcwd.h: Likewise.
36846         * lib/xgetdomainname.c: Likewise.
36847         * lib/xgetdomainname.h: Likewise.
36848         * lib/xgethostname.c: Likewise.
36849         * lib/xmalloc.c: Likewise.
36850         * lib/xmalloca.c: Likewise.
36851         * lib/xmalloca.h: Likewise.
36852         * lib/xmemcoll.c: Likewise.
36853         * lib/xnanosleep.c: Likewise.
36854         * lib/xreadlink.c: Likewise.
36855         * lib/xreadlink.h: Likewise.
36856         * lib/xsetenv.c: Likewise.
36857         * lib/xsetenv.h: Likewise.
36858         * lib/xstriconv.c: Likewise.
36859         * lib/xstriconv.h: Likewise.
36860         * lib/xstrndup.c: Likewise.
36861         * lib/xstrndup.h: Likewise.
36862         * lib/xstrtod.c: Likewise.
36863         * lib/xstrtod.h: Likewise.
36864         * lib/xstrtol-error.c: Likewise.
36865         * lib/xstrtol.c: Likewise.
36866         * lib/xstrtol.h: Likewise.
36867         * lib/xtime.h: Likewise.
36868         * lib/xvasprintf.c: Likewise.
36869         * lib/xvasprintf.h: Likewise.
36870         * lib/yesno.c: Likewise.
36871         * lib/yesno.h: Likewise.
36872         * posix-modules: Likewise.
36873         * tests/test-alloca-opt.c: Likewise.
36874         * tests/test-arcfour.c: Likewise.
36875         * tests/test-arctwo.c: Likewise.
36876         * tests/test-argmatch.c: Likewise.
36877         * tests/test-argp-2.sh: Likewise.
36878         * tests/test-argp.c: Likewise.
36879         * tests/test-arpa_inet.c: Likewise.
36880         * tests/test-array_list.c: Likewise.
36881         * tests/test-array_oset.c: Likewise.
36882         * tests/test-atexit.c: Likewise.
36883         * tests/test-avltree_list.c: Likewise.
36884         * tests/test-avltree_oset.c: Likewise.
36885         * tests/test-avltreehash_list.c: Likewise.
36886         * tests/test-base64.c: Likewise.
36887         * tests/test-binary-io.c: Likewise.
36888         * tests/test-byteswap.c: Likewise.
36889         * tests/test-c-ctype.c: Likewise.
36890         * tests/test-c-strcasecmp.c: Likewise.
36891         * tests/test-c-strcasestr.c: Likewise.
36892         * tests/test-c-strncasecmp.c: Likewise.
36893         * tests/test-c-strstr.c: Likewise.
36894         * tests/test-canonicalize-lgpl.c: Likewise.
36895         * tests/test-canonicalize.c: Likewise.
36896         * tests/test-carray_list.c: Likewise.
36897         * tests/test-ceilf.c: Likewise.
36898         * tests/test-ceill.c: Likewise.
36899         * tests/test-count-one-bits.c: Likewise.
36900         * tests/test-crc.c: Likewise.
36901         * tests/test-dirname.c: Likewise.
36902         * tests/test-fbufmode.c: Likewise.
36903         * tests/test-fcntl.c: Likewise.
36904         * tests/test-fflush.c: Likewise.
36905         * tests/test-floorf.c: Likewise.
36906         * tests/test-floorl.c: Likewise.
36907         * tests/test-fopen.c: Likewise.
36908         * tests/test-fprintf-posix.c: Likewise.
36909         * tests/test-fprintf-posix.h: Likewise.
36910         * tests/test-fpurge.c: Likewise.
36911         * tests/test-freadable.c: Likewise.
36912         * tests/test-freadahead.c: Likewise.
36913         * tests/test-freading.c: Likewise.
36914         * tests/test-freopen.c: Likewise.
36915         * tests/test-frexp.c: Likewise.
36916         * tests/test-frexpl.c: Likewise.
36917         * tests/test-fseek.c: Likewise.
36918         * tests/test-fseeko.c: Likewise.
36919         * tests/test-fseterr.c: Likewise.
36920         * tests/test-fstrcmp.c: Likewise.
36921         * tests/test-ftell.c: Likewise.
36922         * tests/test-ftello.c: Likewise.
36923         * tests/test-fwritable.c: Likewise.
36924         * tests/test-fwriting.c: Likewise.
36925         * tests/test-getaddrinfo.c: Likewise.
36926         * tests/test-getpass.c: Likewise.
36927         * tests/test-gettimeofday.c: Likewise.
36928         * tests/test-hmac-md5.c: Likewise.
36929         * tests/test-hmac-sha1.c: Likewise.
36930         * tests/test-iconv.c: Likewise.
36931         * tests/test-iconvme.c: Likewise.
36932         * tests/test-inttypes.c: Likewise.
36933         * tests/test-isnan.c: Likewise.
36934         * tests/test-isnanf.c: Likewise.
36935         * tests/test-isnanl-nolibm.c: Likewise.
36936         * tests/test-isnanl.c: Likewise.
36937         * tests/test-isnanl.h: Likewise.
36938         * tests/test-ldexpl.c: Likewise.
36939         * tests/test-linked_list.c: Likewise.
36940         * tests/test-linkedhash_list.c: Likewise.
36941         * tests/test-locale.c: Likewise.
36942         * tests/test-localename.c: Likewise.
36943         * tests/test-lock.c: Likewise.
36944         * tests/test-lseek.c: Likewise.
36945         * tests/test-malloca.c: Likewise.
36946         * tests/test-math.c: Likewise.
36947         * tests/test-mbscasecmp.c: Likewise.
36948         * tests/test-mbscasestr1.c: Likewise.
36949         * tests/test-mbscasestr2.c: Likewise.
36950         * tests/test-mbscasestr3.c: Likewise.
36951         * tests/test-mbscasestr4.c: Likewise.
36952         * tests/test-mbschr.c: Likewise.
36953         * tests/test-mbscspn.c: Likewise.
36954         * tests/test-mbsncasecmp.c: Likewise.
36955         * tests/test-mbspbrk.c: Likewise.
36956         * tests/test-mbspcasecmp.c: Likewise.
36957         * tests/test-mbsrchr.c: Likewise.
36958         * tests/test-mbsspn.c: Likewise.
36959         * tests/test-mbsstr1.c: Likewise.
36960         * tests/test-mbsstr2.c: Likewise.
36961         * tests/test-mbsstr3.c: Likewise.
36962         * tests/test-md5.c: Likewise.
36963         * tests/test-memmem.c: Likewise.
36964         * tests/test-netinet_in.c: Likewise.
36965         * tests/test-open.c: Likewise.
36966         * tests/test-printf-frexp.c: Likewise.
36967         * tests/test-printf-frexpl.c: Likewise.
36968         * tests/test-printf-posix.c: Likewise.
36969         * tests/test-printf-posix.h: Likewise.
36970         * tests/test-rbtree_list.c: Likewise.
36971         * tests/test-rbtree_oset.c: Likewise.
36972         * tests/test-rbtreehash_list.c: Likewise.
36973         * tests/test-read-file.c: Likewise.
36974         * tests/test-rijndael.c: Likewise.
36975         * tests/test-search.c: Likewise.
36976         * tests/test-signbit.c: Likewise.
36977         * tests/test-sleep.c: Likewise.
36978         * tests/test-snprintf-posix.c: Likewise.
36979         * tests/test-snprintf-posix.h: Likewise.
36980         * tests/test-snprintf.c: Likewise.
36981         * tests/test-sprintf-posix.c: Likewise.
36982         * tests/test-sprintf-posix.h: Likewise.
36983         * tests/test-stat-time.c: Likewise.
36984         * tests/test-stdbool.c: Likewise.
36985         * tests/test-stdint.c: Likewise.
36986         * tests/test-stdio.c: Likewise.
36987         * tests/test-stdlib.c: Likewise.
36988         * tests/test-stpncpy.c: Likewise.
36989         * tests/test-strcasestr.c: Likewise.
36990         * tests/test-striconv.c: Likewise.
36991         * tests/test-striconveh.c: Likewise.
36992         * tests/test-striconveha.c: Likewise.
36993         * tests/test-string.c: Likewise.
36994         * tests/test-sys_select.c: Likewise.
36995         * tests/test-sys_socket.c: Likewise.
36996         * tests/test-sys_stat.c: Likewise.
36997         * tests/test-sys_time.c: Likewise.
36998         * tests/test-sysexits.c: Likewise.
36999         * tests/test-time.c: Likewise.
37000         * tests/test-tls.c: Likewise.
37001         * tests/test-trunc.c: Likewise.
37002         * tests/test-truncf.c: Likewise.
37003         * tests/test-truncl.c: Likewise.
37004         * tests/test-unistd.c: Likewise.
37005         * tests/test-vasnprintf-posix.c: Likewise.
37006         * tests/test-vasnprintf-posix2.c: Likewise.
37007         * tests/test-vasnprintf.c: Likewise.
37008         * tests/test-vasprintf-posix.c: Likewise.
37009         * tests/test-vasprintf.c: Likewise.
37010         * tests/test-verify.c: Likewise.
37011         * tests/test-vfprintf-posix.c: Likewise.
37012         * tests/test-vprintf-posix.c: Likewise.
37013         * tests/test-vsnprintf-posix.c: Likewise.
37014         * tests/test-vsnprintf.c: Likewise.
37015         * tests/test-vsprintf-posix.c: Likewise.
37016         * tests/test-wchar.c: Likewise.
37017         * tests/test-wctype.c: Likewise.
37018         * tests/test-wcwidth.c: Likewise.
37019         * tests/test-xstrtol.c: Likewise.
37020         * tests/test-xvasprintf.c: Likewise.
37021         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
37022         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
37023         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
37024         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
37025         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
37026         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
37027         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
37028         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
37029         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
37030         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
37031         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
37032         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
37033         * tests/uniname/test-uninames.c: Likewise.
37034         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
37035         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
37036         * tests/unistdio/test-u16-printf1.h: Likewise.
37037         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
37038         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
37039         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
37040         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
37041         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
37042         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
37043         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
37044         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
37045         * tests/unistdio/test-u32-printf1.h: Likewise.
37046         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
37047         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
37048         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
37049         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
37050         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
37051         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
37052         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
37053         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
37054         * tests/unistdio/test-u8-printf1.h: Likewise.
37055         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
37056         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
37057         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
37058         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
37059         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
37060         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
37061         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
37062         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
37063         * tests/unistdio/test-ulc-printf1.h: Likewise.
37064         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
37065         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
37066         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
37067         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
37068         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
37069         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
37070         * tests/uniwidth/test-u16-strwidth.c: Likewise.
37071         * tests/uniwidth/test-u16-width.c: Likewise.
37072         * tests/uniwidth/test-u32-strwidth.c: Likewise.
37073         * tests/uniwidth/test-u32-width.c: Likewise.
37074         * tests/uniwidth/test-u8-strwidth.c: Likewise.
37075         * tests/uniwidth/test-u8-width.c: Likewise.
37076         * tests/uniwidth/test-uc_width.c: Likewise.
37077         * config/srclist-update: Likewise.
37078         (fixlicense): Update to GPLv3+.
37079
37080         Change copyright notice from LGPLv2.1+ to LGPLv3+.
37081         * tests/test-tsearch.c: Change copyright notice.
37082
37083         Change copyright notice from LGPLv2.0+ to LGPLv3+.
37084         * lib/c-strcaseeq.h: Change copyright notice.
37085         * lib/streq.h: Likewise.
37086         * lib/uniconv.h: Likewise.
37087         * lib/uniconv/u-conv-from-enc.h: Likewise.
37088         * lib/uniconv/u-conv-to-enc.h: Likewise.
37089         * lib/uniconv/u-strconv-from-enc.h: Likewise.
37090         * lib/uniconv/u-strconv-to-enc.h: Likewise.
37091         * lib/uniconv/u16-conv-from-enc.c: Likewise.
37092         * lib/uniconv/u16-conv-to-enc.c: Likewise.
37093         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
37094         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
37095         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
37096         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
37097         * lib/uniconv/u32-conv-from-enc.c: Likewise.
37098         * lib/uniconv/u32-conv-to-enc.c: Likewise.
37099         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
37100         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
37101         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
37102         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
37103         * lib/uniconv/u8-conv-from-enc.c: Likewise.
37104         * lib/uniconv/u8-conv-to-enc.c: Likewise.
37105         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
37106         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
37107         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
37108         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
37109         * lib/uniname.h: Likewise.
37110         * lib/uniname/uniname.c: Likewise.
37111         * lib/unistdio.h: Likewise.
37112         * lib/unistdio/u-asnprintf.h: Likewise.
37113         * lib/unistdio/u-asprintf.h: Likewise.
37114         * lib/unistdio/u-printf-args.c: Likewise.
37115         * lib/unistdio/u-printf-args.h: Likewise.
37116         * lib/unistdio/u-printf-parse.h: Likewise.
37117         * lib/unistdio/u-snprintf.h: Likewise.
37118         * lib/unistdio/u-sprintf.h: Likewise.
37119         * lib/unistdio/u-vasprintf.h: Likewise.
37120         * lib/unistdio/u-vsnprintf.h: Likewise.
37121         * lib/unistdio/u-vsprintf.h: Likewise.
37122         * lib/unistdio/u16-asnprintf.c: Likewise.
37123         * lib/unistdio/u16-asprintf.c: Likewise.
37124         * lib/unistdio/u16-printf-parse.c: Likewise.
37125         * lib/unistdio/u16-snprintf.c: Likewise.
37126         * lib/unistdio/u16-sprintf.c: Likewise.
37127         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
37128         * lib/unistdio/u16-u16-asprintf.c: Likewise.
37129         * lib/unistdio/u16-u16-snprintf.c: Likewise.
37130         * lib/unistdio/u16-u16-sprintf.c: Likewise.
37131         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
37132         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
37133         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
37134         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
37135         * lib/unistdio/u16-vasnprintf.c: Likewise.
37136         * lib/unistdio/u16-vasprintf.c: Likewise.
37137         * lib/unistdio/u16-vsnprintf.c: Likewise.
37138         * lib/unistdio/u16-vsprintf.c: Likewise.
37139         * lib/unistdio/u32-asnprintf.c: Likewise.
37140         * lib/unistdio/u32-asprintf.c: Likewise.
37141         * lib/unistdio/u32-printf-parse.c: Likewise.
37142         * lib/unistdio/u32-snprintf.c: Likewise.
37143         * lib/unistdio/u32-sprintf.c: Likewise.
37144         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
37145         * lib/unistdio/u32-u32-asprintf.c: Likewise.
37146         * lib/unistdio/u32-u32-snprintf.c: Likewise.
37147         * lib/unistdio/u32-u32-sprintf.c: Likewise.
37148         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
37149         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
37150         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
37151         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
37152         * lib/unistdio/u32-vasnprintf.c: Likewise.
37153         * lib/unistdio/u32-vasprintf.c: Likewise.
37154         * lib/unistdio/u32-vsnprintf.c: Likewise.
37155         * lib/unistdio/u32-vsprintf.c: Likewise.
37156         * lib/unistdio/u8-asnprintf.c: Likewise.
37157         * lib/unistdio/u8-asprintf.c: Likewise.
37158         * lib/unistdio/u8-printf-parse.c: Likewise.
37159         * lib/unistdio/u8-snprintf.c: Likewise.
37160         * lib/unistdio/u8-sprintf.c: Likewise.
37161         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
37162         * lib/unistdio/u8-u8-asprintf.c: Likewise.
37163         * lib/unistdio/u8-u8-snprintf.c: Likewise.
37164         * lib/unistdio/u8-u8-sprintf.c: Likewise.
37165         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
37166         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
37167         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
37168         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
37169         * lib/unistdio/u8-vasnprintf.c: Likewise.
37170         * lib/unistdio/u8-vasprintf.c: Likewise.
37171         * lib/unistdio/u8-vsnprintf.c: Likewise.
37172         * lib/unistdio/u8-vsprintf.c: Likewise.
37173         * lib/unistdio/ulc-asnprintf.c: Likewise.
37174         * lib/unistdio/ulc-asprintf.c: Likewise.
37175         * lib/unistdio/ulc-printf-parse.c: Likewise.
37176         * lib/unistdio/ulc-snprintf.c: Likewise.
37177         * lib/unistdio/ulc-sprintf.c: Likewise.
37178         * lib/unistdio/ulc-vasnprintf.c: Likewise.
37179         * lib/unistdio/ulc-vasprintf.c: Likewise.
37180         * lib/unistdio/ulc-vsnprintf.c: Likewise.
37181         * lib/unistdio/ulc-vsprintf.c: Likewise.
37182         * lib/unistr.h: Likewise.
37183         * lib/unistr/u-cpy-alloc.h: Likewise.
37184         * lib/unistr/u-cpy.h: Likewise.
37185         * lib/unistr/u-endswith.h: Likewise.
37186         * lib/unistr/u-move.h: Likewise.
37187         * lib/unistr/u-set.h: Likewise.
37188         * lib/unistr/u-startswith.h: Likewise.
37189         * lib/unistr/u-stpcpy.h: Likewise.
37190         * lib/unistr/u-stpncpy.h: Likewise.
37191         * lib/unistr/u-strcat.h: Likewise.
37192         * lib/unistr/u-strcpy.h: Likewise.
37193         * lib/unistr/u-strcspn.h: Likewise.
37194         * lib/unistr/u-strdup.h: Likewise.
37195         * lib/unistr/u-strlen.h: Likewise.
37196         * lib/unistr/u-strncat.h: Likewise.
37197         * lib/unistr/u-strncpy.h: Likewise.
37198         * lib/unistr/u-strnlen.h: Likewise.
37199         * lib/unistr/u-strpbrk.h: Likewise.
37200         * lib/unistr/u-strspn.h: Likewise.
37201         * lib/unistr/u-strstr.h: Likewise.
37202         * lib/unistr/u-strtok.h: Likewise.
37203         * lib/unistr/u16-check.c: Likewise.
37204         * lib/unistr/u16-chr.c: Likewise.
37205         * lib/unistr/u16-cmp.c: Likewise.
37206         * lib/unistr/u16-cpy-alloc.c: Likewise.
37207         * lib/unistr/u16-cpy.c: Likewise.
37208         * lib/unistr/u16-endswith.c: Likewise.
37209         * lib/unistr/u16-mblen.c: Likewise.
37210         * lib/unistr/u16-mbsnlen.c: Likewise.
37211         * lib/unistr/u16-mbtouc-aux.c: Likewise.
37212         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
37213         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
37214         * lib/unistr/u16-mbtouc.c: Likewise.
37215         * lib/unistr/u16-mbtoucr.c: Likewise.
37216         * lib/unistr/u16-move.c: Likewise.
37217         * lib/unistr/u16-next.c: Likewise.
37218         * lib/unistr/u16-prev.c: Likewise.
37219         * lib/unistr/u16-set.c: Likewise.
37220         * lib/unistr/u16-startswith.c: Likewise.
37221         * lib/unistr/u16-stpcpy.c: Likewise.
37222         * lib/unistr/u16-stpncpy.c: Likewise.
37223         * lib/unistr/u16-strcat.c: Likewise.
37224         * lib/unistr/u16-strchr.c: Likewise.
37225         * lib/unistr/u16-strcmp.c: Likewise.
37226         * lib/unistr/u16-strcpy.c: Likewise.
37227         * lib/unistr/u16-strcspn.c: Likewise.
37228         * lib/unistr/u16-strdup.c: Likewise.
37229         * lib/unistr/u16-strlen.c: Likewise.
37230         * lib/unistr/u16-strmblen.c: Likewise.
37231         * lib/unistr/u16-strmbtouc.c: Likewise.
37232         * lib/unistr/u16-strncat.c: Likewise.
37233         * lib/unistr/u16-strncmp.c: Likewise.
37234         * lib/unistr/u16-strncpy.c: Likewise.
37235         * lib/unistr/u16-strnlen.c: Likewise.
37236         * lib/unistr/u16-strpbrk.c: Likewise.
37237         * lib/unistr/u16-strrchr.c: Likewise.
37238         * lib/unistr/u16-strspn.c: Likewise.
37239         * lib/unistr/u16-strstr.c: Likewise.
37240         * lib/unistr/u16-strtok.c: Likewise.
37241         * lib/unistr/u16-to-u32.c: Likewise.
37242         * lib/unistr/u16-to-u8.c: Likewise.
37243         * lib/unistr/u16-uctomb-aux.c: Likewise.
37244         * lib/unistr/u16-uctomb.c: Likewise.
37245         * lib/unistr/u32-check.c: Likewise.
37246         * lib/unistr/u32-chr.c: Likewise.
37247         * lib/unistr/u32-cmp.c: Likewise.
37248         * lib/unistr/u32-cpy-alloc.c: Likewise.
37249         * lib/unistr/u32-cpy.c: Likewise.
37250         * lib/unistr/u32-endswith.c: Likewise.
37251         * lib/unistr/u32-mblen.c: Likewise.
37252         * lib/unistr/u32-mbsnlen.c: Likewise.
37253         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
37254         * lib/unistr/u32-mbtouc.c: Likewise.
37255         * lib/unistr/u32-mbtoucr.c: Likewise.
37256         * lib/unistr/u32-move.c: Likewise.
37257         * lib/unistr/u32-next.c: Likewise.
37258         * lib/unistr/u32-prev.c: Likewise.
37259         * lib/unistr/u32-set.c: Likewise.
37260         * lib/unistr/u32-startswith.c: Likewise.
37261         * lib/unistr/u32-stpcpy.c: Likewise.
37262         * lib/unistr/u32-stpncpy.c: Likewise.
37263         * lib/unistr/u32-strcat.c: Likewise.
37264         * lib/unistr/u32-strchr.c: Likewise.
37265         * lib/unistr/u32-strcmp.c: Likewise.
37266         * lib/unistr/u32-strcpy.c: Likewise.
37267         * lib/unistr/u32-strcspn.c: Likewise.
37268         * lib/unistr/u32-strdup.c: Likewise.
37269         * lib/unistr/u32-strlen.c: Likewise.
37270         * lib/unistr/u32-strmblen.c: Likewise.
37271         * lib/unistr/u32-strmbtouc.c: Likewise.
37272         * lib/unistr/u32-strncat.c: Likewise.
37273         * lib/unistr/u32-strncmp.c: Likewise.
37274         * lib/unistr/u32-strncpy.c: Likewise.
37275         * lib/unistr/u32-strnlen.c: Likewise.
37276         * lib/unistr/u32-strpbrk.c: Likewise.
37277         * lib/unistr/u32-strrchr.c: Likewise.
37278         * lib/unistr/u32-strspn.c: Likewise.
37279         * lib/unistr/u32-strstr.c: Likewise.
37280         * lib/unistr/u32-strtok.c: Likewise.
37281         * lib/unistr/u32-to-u16.c: Likewise.
37282         * lib/unistr/u32-to-u8.c: Likewise.
37283         * lib/unistr/u32-uctomb.c: Likewise.
37284         * lib/unistr/u8-check.c: Likewise.
37285         * lib/unistr/u8-chr.c: Likewise.
37286         * lib/unistr/u8-cmp.c: Likewise.
37287         * lib/unistr/u8-cpy-alloc.c: Likewise.
37288         * lib/unistr/u8-cpy.c: Likewise.
37289         * lib/unistr/u8-endswith.c: Likewise.
37290         * lib/unistr/u8-mblen.c: Likewise.
37291         * lib/unistr/u8-mbsnlen.c: Likewise.
37292         * lib/unistr/u8-mbtouc-aux.c: Likewise.
37293         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
37294         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
37295         * lib/unistr/u8-mbtouc.c: Likewise.
37296         * lib/unistr/u8-mbtoucr.c: Likewise.
37297         * lib/unistr/u8-move.c: Likewise.
37298         * lib/unistr/u8-next.c: Likewise.
37299         * lib/unistr/u8-prev.c: Likewise.
37300         * lib/unistr/u8-set.c: Likewise.
37301         * lib/unistr/u8-startswith.c: Likewise.
37302         * lib/unistr/u8-stpcpy.c: Likewise.
37303         * lib/unistr/u8-stpncpy.c: Likewise.
37304         * lib/unistr/u8-strcat.c: Likewise.
37305         * lib/unistr/u8-strchr.c: Likewise.
37306         * lib/unistr/u8-strcmp.c: Likewise.
37307         * lib/unistr/u8-strcpy.c: Likewise.
37308         * lib/unistr/u8-strcspn.c: Likewise.
37309         * lib/unistr/u8-strdup.c: Likewise.
37310         * lib/unistr/u8-strlen.c: Likewise.
37311         * lib/unistr/u8-strmblen.c: Likewise.
37312         * lib/unistr/u8-strmbtouc.c: Likewise.
37313         * lib/unistr/u8-strncat.c: Likewise.
37314         * lib/unistr/u8-strncmp.c: Likewise.
37315         * lib/unistr/u8-strncpy.c: Likewise.
37316         * lib/unistr/u8-strnlen.c: Likewise.
37317         * lib/unistr/u8-strpbrk.c: Likewise.
37318         * lib/unistr/u8-strrchr.c: Likewise.
37319         * lib/unistr/u8-strspn.c: Likewise.
37320         * lib/unistr/u8-strstr.c: Likewise.
37321         * lib/unistr/u8-strtok.c: Likewise.
37322         * lib/unistr/u8-to-u16.c: Likewise.
37323         * lib/unistr/u8-to-u32.c: Likewise.
37324         * lib/unistr/u8-uctomb-aux.c: Likewise.
37325         * lib/unistr/u8-uctomb.c: Likewise.
37326         * lib/unitypes.h: Likewise.
37327         * lib/uniwidth.h: Likewise.
37328         * lib/uniwidth/cjk.h: Likewise.
37329         * lib/uniwidth/u16-strwidth.c: Likewise.
37330         * lib/uniwidth/u16-width.c: Likewise.
37331         * lib/uniwidth/u32-strwidth.c: Likewise.
37332         * lib/uniwidth/u32-width.c: Likewise.
37333         * lib/uniwidth/u8-strwidth.c: Likewise.
37334         * lib/uniwidth/u8-width.c: Likewise.
37335         * lib/uniwidth/width.c: Likewise.
37336
37337 2007-10-07  Bruno Haible  <bruno@clisp.org>
37338
37339         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
37340         The file is still under LGPL (see modules/inttypes).
37341
37342 2007-10-06  Bruno Haible  <bruno@clisp.org>
37343
37344         * modules/trunc (Dependencies): Add 'extensions'.
37345         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
37346         Reported by Ben Pfaff <blp@gnu.org>.
37347
37348 2007-10-06  Bruno Haible  <bruno@clisp.org>
37349
37350         * modules/freopen-tests: New file.
37351         * tests/test-freopen.c: New file.
37352
37353         * modules/fopen-tests: New file.
37354         * tests/test-fopen.c: New file.
37355
37356         * modules/fopen: New file.
37357         * lib/fopen.c: New file.
37358         * m4/fopen.m4: New file.
37359         * modules/freopen: New file.
37360         * lib/freopen.c: New file.
37361         * m4/freopen.m4: New file.
37362         * lib/stdio.in.h (fopen, freopen): New declarations.
37363         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
37364         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
37365         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
37366         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
37367         * doc/functions/fopen.texi: Mention the 'fopen' module.
37368         * doc/functions/freopen.texi: Mention the 'freopen' module.
37369
37370 2007-10-06  Bruno Haible  <bruno@clisp.org>
37371
37372         * modules/open-tests: New file.
37373         * tests/test-open.c: New file.
37374
37375         * modules/open: New file.
37376         * lib/open.c: New file.
37377         * m4/open.m4: New file.
37378         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
37379         lib/open.c does.
37380         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
37381         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
37382         macros.
37383         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
37384         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
37385         REPLACE_OPEN.
37386         * doc/functions/open.texi: Mention the 'open' module.
37387
37388 2007-10-04  Bruno Haible  <bruno@clisp.org>
37389
37390         * modules/ceill-tests: New file.
37391         * tests/test-ceill.c: New file.
37392
37393         * modules/ceill: New file.
37394         * lib/ceill.c: Replace entire file.
37395         * m4/ceill.m4: New file.
37396         * lib/math.in.h (ceill): Replace declaration.
37397         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
37398         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
37399         * doc/functions/ceill.texi: Mention the 'ceill' module.
37400         * modules/mathl (Files): Remove lib/ceill.c.
37401         (Depends-on): Add ceill.
37402
37403 2007-10-04  Bruno Haible  <bruno@clisp.org>
37404
37405         * modules/ceilf-tests: New file.
37406         * tests/test-ceilf.c: New file.
37407
37408         * modules/ceilf: New file.
37409         * lib/ceil.c: New file.
37410         * lib/ceilf.c: New file.
37411         * m4/ceilf.m4: New file.
37412         * lib/math.in.h (ceilf): New declaration.
37413         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
37414         HAVE_DECL_CEILF.
37415         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
37416         HAVE_DECL_CEILF.
37417         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
37418
37419 2007-10-04  Bruno Haible  <bruno@clisp.org>
37420
37421         * modules/floorl-tests: New file.
37422         * tests/test-floorl.c: New file.
37423
37424         * modules/floorl: New file.
37425         * lib/floorl.c: Replace entire file.
37426         * m4/floorl.m4: New file.
37427         * lib/math.in.h (floorl): Replace declaration.
37428         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
37429         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
37430         * doc/functions/floorl.texi: Mention the 'floorl' module.
37431         * modules/mathl (Files): Remove lib/floorl.c.
37432         (Depends-on): Add floorl.
37433
37434 2007-10-04  Bruno Haible  <bruno@clisp.org>
37435
37436         * modules/floorf-tests: New file.
37437         * tests/test-floorf.c: New file.
37438
37439         * modules/floorf: New file.
37440         * lib/floor.c: New file.
37441         * lib/floorf.c: New file.
37442         * m4/floorf.m4: New file.
37443         * lib/math.in.h (floorf): New declaration.
37444         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
37445         HAVE_DECL_FLOORF.
37446         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
37447         HAVE_DECL_FLOORF.
37448         * doc/functions/floorf.texi: Mention the 'floorf' module.
37449
37450 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
37451             Bruno Haible  <bruno@clisp.org>
37452
37453         Advertise for the Git server instead of the CVS server.
37454         * doc/gnulib-intro.texi (Steady Development): Mention the Git
37455         repository instead of the CVS one.
37456         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
37457         about all VCS systems generically.
37458         * doc/gnulib.texi (Introduction): Capitalize `Git'.
37459
37460 2007-10-04  Bruno Haible  <bruno@clisp.org>
37461
37462         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
37463         means.
37464         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
37465
37466 2007-10-04  Bruno Haible  <bruno@clisp.org>
37467
37468         * modules/truncl-tests: New file.
37469         * tests/test-truncl.c: New file.
37470
37471         * modules/truncl: New file.
37472         * lib/truncl.c: New file.
37473         * m4/truncl.m4: New file.
37474         * lib/math.in.h (truncl): New declaration.
37475         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
37476         HAVE_DECL_TRUNCL.
37477         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
37478         HAVE_DECL_TRUNCL.
37479         * doc/functions/truncl.texi: Mention the 'truncl' module.
37480
37481 2007-10-04  Bruno Haible  <bruno@clisp.org>
37482
37483         * modules/truncf-tests: New file.
37484         * tests/test-truncf.c: New file.
37485
37486         * modules/truncf: New file.
37487         * lib/trunc.c: Make paramerizable through USE_* macros.
37488         * lib/truncf.c: New file.
37489         * m4/truncf.m4: New file.
37490         * lib/math.in.h (truncf): New declaration.
37491         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
37492         HAVE_DECL_TRUNCF.
37493         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
37494         HAVE_DECL_TRUNCF.
37495         * doc/functions/truncf.texi: Mention the 'truncf' module.
37496
37497 2007-10-03  Bruno Haible  <bruno@clisp.org>
37498
37499         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
37500         augmentation also for tests modules.
37501         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
37502         * modules/atexit-tests (Makefile.am): Likewise.
37503         * modules/binary-io-tests (Makefile.am): Likewise.
37504         * modules/c-strcase-tests (Makefile.am): Likewise.
37505         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
37506         * modules/canonicalize-tests (Makefile.am): Likewise.
37507         * modules/closein-tests (Makefile.am): Likewise.
37508         * modules/fprintf-posix-tests (Makefile.am): Likewise.
37509         * modules/freadahead-tests (Makefile.am): Likewise.
37510         * modules/fseek-tests (Makefile.am): Likewise.
37511         * modules/fseeko-tests (Makefile.am): Likewise.
37512         * modules/ftell-tests (Makefile.am): Likewise.
37513         * modules/ftello-tests (Makefile.am): Likewise.
37514         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
37515         * modules/isnanl-tests (Makefile.am): Likewise.
37516         * modules/lseek-tests (Makefile.am): Likewise.
37517         * modules/mbscasecmp-tests (Makefile.am): Likewise.
37518         * modules/mbscasestr-tests (Makefile.am): Likewise.
37519         * modules/mbschr-tests (Makefile.am): Likewise.
37520         * modules/mbscspn-tests (Makefile.am): Likewise.
37521         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
37522         * modules/mbspbrk-tests (Makefile.am): Likewise.
37523         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
37524         * modules/mbsrchr-tests (Makefile.am): Likewise.
37525         * modules/mbsspn-tests (Makefile.am): Likewise.
37526         * modules/mbsstr-tests (Makefile.am): Likewise.
37527         * modules/printf-posix-tests (Makefile.am): Likewise.
37528         * modules/snprintf-posix-tests (Makefile.am): Likewise.
37529         * modules/sprintf-posix-tests (Makefile.am): Likewise.
37530         * modules/tsearch-tests (Makefile.am): Likewise.
37531         * modules/uniname/uniname-tests (Makefile.am): Likewise.
37532         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
37533         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
37534         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
37535         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
37536         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
37537         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
37538         * modules/vprintf-posix-tests (Makefile.am): Likewise.
37539         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
37540         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
37541         * modules/xstrtoimax-tests (Makefile.am): Likewise.
37542         * modules/xstrtol-tests (Makefile.am): Likewise.
37543         * modules/xstrtoumax-tests (Makefile.am): Likewise.
37544         * modules/yesno-tests (Makefile.am): Likewise.
37545
37546 2007-10-03  Bruno Haible  <bruno@clisp.org>
37547
37548         * modules/trunc-tests: New file.
37549         * tests/test-trunc.c: New file.
37550
37551         * modules/trunc: New file.
37552         * lib/trunc.c: New file.
37553         * m4/trunc.m4: New file.
37554         * lib/math.in.h (trunc): New declaration.
37555         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
37556         HAVE_DECL_TRUNC.
37557         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
37558         HAVE_DECL_TRUNC.
37559         * doc/functions/trunc.texi: Mention the 'trunc' module.
37560
37561 2007-10-03  Bruno Haible  <bruno@clisp.org>
37562
37563         * tests/test-fpending.c: New file, mostly copied
37564         from coreutils/lib/t-fpending.c.
37565         * modules/fpending-tests: New file.
37566
37567 2007-10-03  Bruno Haible  <bruno@clisp.org>
37568
37569         Port the stdio extensions to QNX (untested).
37570         * lib/fseterr.c (fseterr): Add support for QNX.
37571         * lib/fbufmode.c (fbufmode): Likewise.
37572         * lib/freadable.c (freadable): Likewise.
37573         * lib/fwritable.c (fwritable): Likewise.
37574         * lib/freading.c (freading): Likewise.
37575         * lib/fwriting.c (fwriting): Likewise.
37576         * lib/freadahead.c (freadahed): Likewise.
37577         * lib/fpurge.c (fpurge): Likewise.
37578         * lib/fseeko.c (rpl_fseeko): Likewise.
37579
37580 2007-10-03  Bruno Haible  <bruno@clisp.org>
37581             Jim Meyering  <jim@meyering.net>
37582             Eric Blake  <ebb9@byu.net>
37583
37584         * doc/relocatable.texi: Use @command instead of @program.
37585
37586 2007-10-02  Jim Meyering  <jim@meyering.net>
37587
37588         Perform one more "_.h" -> ".in.h" substitution.
37589         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
37590         instead of unistd_.h here, too.
37591
37592 2007-10-01  Bruno Haible  <bruno@clisp.org>
37593
37594         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
37595         Needed for the alloca-opt module.
37596
37597 2007-09-30  Bruno Haible  <bruno@clisp.org>
37598
37599         * lib/alloca.in.h: Renamed from lib/alloca_.h.
37600         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
37601         alloca_.h.
37602         * lib/argz.in.h: Renamed from lib/argz_.h.
37603         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
37604         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
37605         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
37606         byteswap_.h.
37607         * lib/dirent.in.h: Renamed from lib/dirent_.h.
37608         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
37609         dirent_.h.
37610         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
37611         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
37612         fcntl_.h.
37613         * lib/float.in.h: Renamed from lib/float_.h.
37614         * modules/float (Files, Makefile.am): Use float.in.h instead of
37615         float_.h.
37616         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
37617         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
37618         fnmatch_.h.
37619         * lib/getopt.in.h: Renamed from lib/getopt_.h.
37620         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
37621         getopt_.h.
37622         * lib/glob.in.h: Renamed from lib/glob_.h.
37623         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
37624         * lib/iconv.in.h: Renamed from lib/iconv_.h.
37625         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
37626         iconv_.h.
37627         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
37628         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
37629         inttypes_.h.
37630         * lib/locale.in.h: Renamed from lib/locale_.h.
37631         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
37632         locale_.h.
37633         * lib/math.in.h: Renamed from lib/math_.h.
37634         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
37635         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
37636         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
37637         of netinet_in_.h. Add dependency.
37638         * lib/poll.in.h: Renamed from lib/poll_.h.
37639         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
37640         * lib/search.in.h: Renamed from lib/search_.h.
37641         * modules/search (Files, Makefile.am): Use search.in.h instead of
37642         search_.h.
37643         * lib/signal.in.h: Renamed from lib/signal_.h.
37644         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
37645         _signal.h.
37646         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
37647         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
37648         stdbool_.h.
37649         * lib/stdint.in.h: Renamed from lib/stdint_.h.
37650         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
37651         stdint_.h.
37652         * lib/stdio.in.h: Renamed from lib/stdio_.h.
37653         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
37654         stdio_.h.
37655         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
37656         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
37657         stdlib_.h.
37658         * lib/string.in.h: Renamed from lib/string_.h.
37659         * modules/string (Files, Makefile.am): Use string.in.h instead of
37660         string_.h.
37661         * doc/gnulib-tool.texi (Initial import): Update.
37662         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
37663         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
37664         of sys_select_.h. Add dependency.
37665         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
37666         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
37667         of sys_socket_.h.
37668         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
37669         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
37670         sys_stat_.h.
37671         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
37672         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
37673         sys_time_.h.
37674         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
37675         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
37676         sysexits_.h.
37677         * lib/time.in.h: Renamed from lib/time_.h.
37678         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
37679         * lib/unistd.in.h: Renamed from lib/unistd_.h.
37680         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
37681         unistd_.h.
37682         * lib/wchar.in.h: Renamed from lib/wchar_.h.
37683         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
37684         wchar_.h.
37685         * lib/wctype.in.h: Renamed from lib/wctype_.h.
37686         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
37687         wctype_.h.
37688         * build-aux/bootstrap (slurp): Update.
37689         * lib/.cppi-disable: Update.
37690
37691 2007-09-30  Bruno Haible  <bruno@clisp.org>
37692
37693         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
37694         Needed on BeOS.
37695
37696 2007-09-30  Bruno Haible  <bruno@clisp.org>
37697
37698         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
37699
37700 2007-09-29  Bruno Haible  <bruno@clisp.org>
37701
37702         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
37703
37704 2007-09-29  Bruno Haible  <bruno@clisp.org>
37705
37706         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
37707         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
37708         * build-aux/install-reloc: Compile also areadlink.c.
37709         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
37710
37711 2007-09-29  Bruno Haible  <bruno@clisp.org>
37712
37713         * gnulib-tool (func_emit_initmacro_done): Indentation.
37714
37715 2007-09-29  Bruno Haible  <bruno@clisp.org>
37716
37717         * README: Add CVS checkout update instructions.
37718         Info from Bob Proulx <bob@proulx.com>.
37719
37720 2007-09-28  Eric Blake  <ebb9@byu.net>
37721
37722         Provide move-if-change.
37723         * build-aux/move-if-change: New file, based on best practice
37724         rather than any canonical upstream location.
37725
37726 2007-09-28  Jim Meyering  <jim@meyering.net>
37727
37728         Fix canonicalize loop-detection corner case.
37729         Do not attempt to stat the symlink values stored via seen_triple.
37730         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
37731         on linux-2.6.18, (but not 2.6.22).
37732         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
37733         triple_compare.  The former compares dev,ino,filename, while the latter
37734         would actually stat dirname(filename) when dev and ino were equal.
37735         * lib/hash-triple.c: Install <string.h>.
37736         (STREQ): Define.
37737         (triple_compare_ino_str): New function.
37738         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
37739
37740 2007-09-28  Eric Blake  <ebb9@byu.net>
37741
37742         Enforce that AC_REPLACE_FUNCS files exist.
37743         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
37744         override check for typos.
37745
37746         Fix test-closein on Solaris 10.
37747         * tests/test-closein.c (main): Don't assume stdin can be inherited
37748         closed on all systems.
37749         * tests/test-closein.sh: Likewise.
37750         Reported by Piotr Tarnowski.
37751
37752 2007-09-28  Jim Meyering  <jim@meyering.net>
37753
37754         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
37755
37756 2007-09-27  Jim Meyering  <jim@meyering.net>
37757
37758         canonicalize: Avoid a false-positive cycle failure.
37759         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
37760         Sort.  Remove cycle-check.
37761         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
37762         not cycle-check.h.
37763         (seen_triple): New function.
37764         (canonicalize_filename_mode): Use it instead of cycle-check.
37765         * tests/test-canonicalize.c: Add a test for this bug.
37766         * tests/test-canonicalize.sh: Set up and run the test.
37767
37768         New module, file-set, from coreutils.
37769         * modules/file-set: Define it.
37770         * lib/file-set.c, lib/file-set.h: Implement.
37771
37772         New module, hash-triple, from coreutils.
37773         * modules/hash-triple: Define it.
37774         * lib/hash-triple.c, lib/hash-triple.h: Implement.
37775
37776 2007-09-25  Eric Blake  <ebb9@byu.net>
37777
37778         Fix strerror on Interix.
37779         * lib/string_.h (strerror): Declare replacement.
37780         * doc/functions/strerror.texi (strerror): Document the Interix
37781         shortcoming.
37782         * modules/string (Makefile.am): Support new hooks.
37783         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
37784         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
37785         gl_FUNC_STRERROR_SEPARATE.
37786         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
37787         * lib/strerror.c (rpl_strerror): Provide replacement.
37788         * modules/strerror (Depends-on): Add string.
37789         (configure.ac): Detect use of module.
37790         * tests/test-strerror.c: New file.
37791         * modules/strerror-tests: New test module.
37792         * modules/argp (Depends-on): Add strerror.
37793         * modules/error (Depends-on): Likewise.
37794         Reported by Martin Koeppe.
37795
37796 2007-09-24  Bruno Haible  <bruno@clisp.org>
37797
37798         * README: Update git instructions.
37799
37800 2007-09-24  Eric Blake  <ebb9@byu.net>
37801
37802         Revert fpending breakage from 2007-09-08.
37803         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
37804         __fpending.c.
37805
37806 2007-09-24  Jim Meyering  <jim@meyering.net>
37807
37808         filenamecat.c: Add a test.
37809         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
37810         showing how the function works when DIR is the empty string.
37811
37812 2007-09-21  Simon Josefsson  <simon@josefsson.org>
37813
37814         * tests/test-canonicalize.sh: Turn on executable bit.
37815
37816 2007-09-19  Eric Blake  <ebb9@byu.net>
37817
37818         * README: Update CVS instructions.
37819
37820 2007-09-18  Bruno Haible  <bruno@clisp.org>
37821
37822         * modules/areadlink: New file.
37823         * lib/areadlink.h (areadlink): New declaration.
37824         * lib/areadlink.c: New file, based on lib/xreadlink.c.
37825
37826 2007-09-17  Jim Meyering  <jim@meyering.net>
37827
37828         * lib/savewd.c (ESTALE) [!defined]: Define.
37829         Reported to be required on Interix by Martin Koeppe.
37830
37831 2007-09-17  Bruno Haible  <bruno@clisp.org>
37832
37833         * gnulib-tool (func_version): Use $version.
37834
37835 2007-09-16  Bruno Haible  <bruno@clisp.org>
37836
37837         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
37838         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
37839         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
37840         Reported by Greg Schafer <gschafer@zip.com.au>.
37841
37842 2007-09-15  Bruno Haible  <bruno@clisp.org>
37843
37844         * gnulib-tool (sed): Try a little harder to make bash understand the
37845         alias.
37846         Reported by Bruce Korb <bruce.korb@gmail.com>.
37847
37848 2007-09-13  Eric Blake  <ebb9@byu.net>
37849
37850         * ChangeLog: Remove conflict markers.
37851
37852 2007-09-13  Simon Josefsson  <simon@josefsson.org>
37853
37854         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
37855         Reported by Bruno Haible <bruno@clisp.org>.
37856
37857 2007-09-12  Bruno Haible  <bruno@clisp.org>
37858
37859         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
37860         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
37861         is not defined.
37862
37863 2007-09-12  Eric Blake  <ebb9@byu.net>
37864
37865         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
37866         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
37867         Autoconf definition.
37868         * modules/euidaccess (Depends-on): Add extensions, for
37869         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
37870         * modules/fnmatch (Depends-on): Likewise.
37871         * modules/getaddrinfo (Depends-on): Likewise.
37872         * modules/getdelim (Depends-on): Likewise.
37873         * modules/getline (Depends-on): Likewise.
37874         * modules/getsubopt (Depends-on): Likewise.
37875         * modules/gettext (Depends-on): Likewise.
37876         * modules/group-member (Depends-on): Likewise.
37877         * modules/mbchar (Depends-on): Likewise.
37878         * modules/memmem (Depends-on): Likewise.
37879         * modules/mempcpy (Depends-on): Likewise.
37880         * modules/memrchr (Depends-on): Likewise.
37881         * modules/pagealign_alloc (Depends-on): Likewise.
37882         * modules/readutmp (Depends-on): Likewise.
37883         * modules/stpcpy (Depends-on): Likewise.
37884         * modules/stpncpy (Depends-on): Likewise.
37885         * modules/strchrnul (Depends-on): Likewise.
37886         * modules/strndup (Depends-on): Likewise.
37887         * modules/strsep (Depends-on): Likewise.
37888         * modules/strverscmp (Depends-on): Likewise.
37889         * modules/vasprintf (Depends-on): Likewise.
37890         * modules/wcwidth (Depends-on): Likewise.
37891         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
37892         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
37893         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
37894         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
37895         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
37896         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
37897         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
37898         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
37899         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
37900         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
37901         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
37902         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
37903         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
37904         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
37905         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
37906         * m4/readutmp.m4 (gl_READUTMP): Likewise.
37907         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
37908         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
37909         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
37910         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
37911         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
37912         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
37913         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
37914         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
37915         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
37916         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
37917         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
37918         so that lock.m4 can be used in gettext without extensions module.
37919
37920 2007-09-11  Bruno Haible  <bruno@clisp.org>
37921
37922         * m4/isc-posix.m4: Remove file.
37923         Suggested by Eric Blake.
37924
37925 2007-09-11  Eric Blake  <ebb9@byu.net>
37926
37927         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
37928
37929 2007-09-10  Bruno Haible  <bruno@clisp.org>
37930
37931         * posix-modules: Fix typo in error message.
37932         Reported by Matt <mkraai@beckman.com>.
37933
37934 2007-09-09  Bruno Haible  <bruno@clisp.org>
37935
37936         * doc/functions/getdelim.texi: Update list of platforms lacking the
37937         function.
37938         * doc/functions/getline.texi: Likewise.
37939
37940 2007-09-09  Jim Meyering  <jim@meyering.net>
37941
37942         * lib/hash.c (hash_initialize): Detect calloc failure.
37943         Reported by Bruno Haible.
37944
37945 2007-09-09  Bruno Haible  <bruno@clisp.org>
37946
37947         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
37948         malloc or realloc fails.
37949
37950 2007-09-09  Bruno Haible  <bruno@clisp.org>
37951
37952         * modules/getcwd (Depends-on): Add malloc-posix.
37953         * modules/glob (Depends-on): Likewise.
37954         * modules/putenv (Depends-on): Likewise.
37955         * modules/strdup (Depends-on): Likewise.
37956         * modules/getdelim (Depends-on): Add realloc-posix.
37957         * modules/read-file (Depends-on): Likewise.
37958
37959 2007-09-09  Bruno Haible  <bruno@clisp.org>
37960
37961         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
37962         (gl_FUNC_MALLOC_POSIX): Require it.
37963         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
37964         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
37965         * modules/realloc (Files): Add m4/malloc.m4.
37966         * modules/calloc (Files): Likewise.
37967
37968 2007-09-09  Bruno Haible  <bruno@clisp.org>
37969
37970         * modules/malloc-posix: New file.
37971         * modules/malloc (Depends-on): Add malloc-posix.
37972         * lib/malloc.c: Include errno.h.
37973         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
37974         and a POSIX-compatible malloc into a single function. Set ENOMEM
37975         when returning NULL.
37976         * m4/malloc.m4: New file.
37977         * doc/functions/malloc.texi: Mention the malloc-posix module.
37978         * lib/stdlib_.h (malloc): New declaration.
37979         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
37980         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
37981         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
37982         and HAVE_MALLOC_POSIX.
37983
37984 2007-09-09  Bruno Haible  <bruno@clisp.org>
37985
37986         * modules/realloc-posix: New file.
37987         * modules/realloc (Depends-on): Add realloc-posix.
37988         * lib/realloc.c: Include errno.h.
37989         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
37990         and a POSIX-compatible realloc into a single function. Set ENOMEM
37991         when returning NULL.
37992         * m4/realloc.m4: New file.
37993         * doc/functions/realloc.texi: Mention the realloc-posix module.
37994         * lib/stdlib_.h (realloc): New declaration.
37995         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
37996         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
37997         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
37998         and HAVE_REALLOC_POSIX.
37999
38000 2007-09-09  Bruno Haible  <bruno@clisp.org>
38001
38002         * modules/calloc-posix: New file.
38003         * modules/calloc (Depends-on): Add calloc-posix.
38004         * lib/calloc.c: Include errno.h.
38005         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
38006         and a POSIX-compatible calloc into a single function. Set ENOMEM
38007         when returning NULL.
38008         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
38009         * doc/functions/calloc.texi: Mention the calloc-posix module.
38010         * lib/stdlib_.h (calloc): New declaration.
38011         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
38012         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
38013         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
38014         and HAVE_CALLOC_POSIX.
38015
38016 2007-09-09  Bruno Haible  <bruno@clisp.org>
38017
38018         Allow for modules to show an arbitrary notice.
38019         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
38020         * gnulib-tool: New option --extract-notice.
38021         (func_usage): Document it.
38022         (sed_extract_prog): Update.
38023         (func_get_notice): New function.
38024         (func_modules_notice): New function.
38025         (func_import, func_create_testdir): Invoke it.
38026         Suggested by Jim Meyering.
38027
38028 2007-09-09  Bruno Haible  <bruno@clisp.org>
38029
38030         * gnulib-tool: New options --verbose, --quiet.
38031         (func_usage): Document them.
38032         (verbose): New variable.
38033         (func_execute_command): New function.
38034         (func_import): Don't show the module list and the file list if
38035         $verbose < 0.
38036         (func_create_testdir): Likewise. Use func_execute_command.
38037         (func_create_megatestdir): Use func_execute_command.
38038
38039 2007-09-08  Bruno Haible  <bruno@clisp.org>
38040
38041         * gnulib-tool (func_import): Prefer rsync over wget when available,
38042         for fetching the PO files.
38043
38044 2007-09-08  Bruno Haible  <bruno@clisp.org>
38045
38046         * posix-modules: New file. Portions copied from gnulib-tool.
38047         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
38048
38049 2007-09-08  Jim Meyering  <jim@meyering.net>
38050
38051         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
38052         * lib/fpending.h: Rename from __fpending.h.
38053         * lib/fpending.c: Rename from __fpending.c.
38054         Include "fpending.h", not "__fpending.h".
38055         * lib/__fpending.h, lib/__fpending.c: Remove files.
38056         * modules/fpending (Files): Reflect new file names.
38057         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
38058
38059 2007-09-08  Bruno Haible  <bruno@clisp.org>
38060
38061         * m4/inttypes-h.m4: Remove stub file.
38062
38063 2007-09-07  Simon Josefsson  <simon@josefsson.org>
38064
38065         * doc/headers/stdint.texi: Discuss #include_next issue.
38066
38067 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
38068
38069         * build-aux/bootstrap: Remove obsolete comment about wget --help.
38070
38071 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38072
38073         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
38074         in variable name.
38075
38076 2007-09-03  Jim Meyering  <jim@meyering.net>
38077
38078         New module: git-version-gen.
38079         * modules/git-version-gen: New file.
38080
38081         Import changes from coreutils for bootstrap script.
38082
38083         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
38084
38085         bootstrap: uses rsync to download the .po files
38086         * build-aux/bootstrap (po_download_command_format): New global.
38087         (download_po_files): Use rsync.
38088         (update_po_files): Don't remove .po files after download,
38089         so future rsync runs can take advantage of the copies.
38090
38091         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
38092
38093         Solve the unnecessary-.po-file-regeneration problem once and for all.
38094         * build-aux/bootstrap (download_po_files): New function, renamed from
38095         get_translations.  Now, downloads, but doesn't update LINGUAS.
38096         (update_po_files): New function.
38097
38098         bootstrap: Ignore more.
38099         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
38100         uniwidth to e.g., lib/.gitignore.
38101         (slurp): Handle the sys_stat_.h -> sys mapping, too.
38102
38103         * build-aux/bootstrap: New setting: vc_ignore.
38104         (insert_sorted_if_absent): Create $file if absent.
38105         Adapt to new, possibly empty, list: $vc_ignore.
38106
38107         bootstrap: generate more ignorable names
38108         * build-aux/bootstrap (slurp): When generating ignorable names,
38109         also map .sin to .sed, .gperf to .c, and .y to .c.
38110
38111 2007-09-03  Jim Meyering  <jim@meyering.net>
38112
38113         * build-aux/git-version-gen: New file, from coreutils.  For details, see
38114         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
38115
38116 2007-09-02  Bruno Haible  <bruno@clisp.org>
38117
38118         Fix mis-recognition of 'mcs' on QNX 6.
38119         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
38120         output contains the string "Mono".
38121         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
38122         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
38123
38124 2007-09-01  Bruno Haible  <bruno@clisp.org>
38125
38126         Fix collision between uniwidth/* and linebreak modules.
38127         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
38128         u32_width): Remove declarations.
38129         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
38130         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
38131         streq3, streq2, streq1, streq0): Remove functions.
38132         (STREQ): Remove macro.
38133         (is_cjk_encoding): Remove function.
38134         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
38135         (uc_width, u8_width, u16_width, u32_width): Remove functions.
38136         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
38137         * NEWS: Document the change.
38138
38139 2007-09-01  Bruno Haible  <bruno@clisp.org>
38140
38141         * lib/streq.h: Add double-inclusion guard.
38142
38143 2007-09-01  Karl Berry  <karl@gnu.org>
38144
38145         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
38146
38147 2007-08-28  Jim Meyering  <jim@meyering.net>
38148
38149         Rename mreadlink_with_size to areadlink_with_size.
38150         * NEWS: Document the change.
38151         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
38152         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
38153         * lib/mreadlink.h: Rename this to...
38154         * lib/areadlink.h: ...this.
38155         * modules/mreadlink-with-size: Rename this to...
38156         * modules/areadlink-with-size: ...this.
38157         * lib/canonicalize.c: Reflect the renaming.
38158         * modules/canonicalize: Likewise.
38159
38160 2007-08-26  Bruno Haible  <bruno@clisp.org>
38161
38162         * gnulib-tool (func_import): When deciding which files to remove,
38163         consider also dangling symbolic links.
38164         Reported by Eric Blake.
38165
38166 2007-08-26  Bruno Haible  <bruno@clisp.org>
38167
38168         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
38169
38170 2007-08-23  Simon Josefsson  <simon@josefsson.org>
38171
38172         * lib/readline.c: Don't include getline.h, the prototype is now
38173         found in stdio.h.
38174
38175 2007-08-23  Jim Meyering  <jim@meyering.net>
38176
38177         Getdelim touchup.
38178         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
38179         around the funlockfile call, since funlockfile never sets errno.
38180         Don't set errno upon failed realloc.
38181
38182 2007-08-22  Eric Blake  <ebb9@byu.net>
38183
38184         Getline touchups.
38185         * lib/getdelim.c (getdelim): Revert regression that required *n to
38186         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
38187         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
38188         getdelim, rather than whether implementation is missing.
38189         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
38190         * lib/stdio_.h (getline): Also declare if replacement is
38191         required.
38192         * doc/functions/getdelim.texi: New file.
38193         * doc/functions/getline.texi: Likewise.
38194         * doc/gnulib.texi (Function Substitutes): Add new files.
38195         Reported by Bruno Haible.
38196
38197 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
38198
38199         * users.txt: Add Guile.
38200
38201 2007-08-22  Eric Blake  <ebb9@byu.net>
38202
38203         * tests/test-getdelim.c (main): Use remove, not unlink.
38204         * tests/test-getline.c (main): Likewise.
38205
38206         Move getline and getdelim into stdio.h, per POSIX 200x.
38207         * modules/getline (Files): Remove getline.h.
38208         (Depends-on): Add stdio.
38209         (configure.ac): Add module indicator.
38210         * modules/getdelim (Files): Remove getdelim.h.
38211         (Depends-on): Add stdio.
38212         (configure.ac): Add module indicator.
38213         * modules/stdio (Makefile.am): Work with new indicators.
38214         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
38215         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
38216         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
38217         * lib/getdelim.h: Delete.
38218         * lib/getline.h: Delete.
38219         * lib/stdio_.h (getdelim, getline): Declare.
38220         * modules/getdelim-tests: New module.
38221         * modules/getline-tests: Likewise.
38222         * tests/test-getdelim.c: New file.
38223         * tests/test-getline.c: Likewise.
38224         * NEWS: Document the change.
38225         * lib/getline.c: Update choice of header.
38226         * lib/csharpcomp.c: Likewise.
38227         * lib/getpass.c: Likewise.
38228         * lib/javacomp.c: Likewise.
38229         * lib/javaversion.c: Likewise.
38230         * lib/yesno.c: Likewise.
38231         * lib/getdelim.c: Likewise.
38232         (getdelim): Set errno on failure, and avoid memory leak.
38233
38234 2007-08-19  Bruno Haible  <bruno@clisp.org>
38235
38236         * modules/closein (Depends-on): Add freadahead.
38237         * lib/closein.c: Include freadahead.h.
38238         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
38239         is zero.
38240
38241 2007-08-19  Bruno Haible  <bruno@clisp.org>
38242
38243         * modules/freadahead-tests: New file.
38244         * tests/test-freadahead.sh: New file.
38245         * tests/test-freadahead.c: New file.
38246
38247         * modules/freadahead: New file.
38248         * lib/freadahead.h: New file.
38249         * lib/freadahead.c: New file.
38250         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
38251         fbufmode, fpurge, freadable, fwritable.
38252
38253 2007-08-19  Eric Blake  <ebb9@byu.net>
38254
38255         Test yesno in combination with closein.
38256         * lib/yesno.c (yesno): Document use of stdin.
38257         * modules/yesno-tests (Files): New module.
38258         * tests/test-yesno.c (main): New file.
38259         * tests/test-yesno.sh: Likewise.
38260
38261 2007-08-19  Bruno Haible  <bruno@clisp.org>
38262
38263         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
38264         * lib/fseeko.c (rpl_fseeko): Likewise.
38265         * lib/fseterr.c (fseterr): Likewise.
38266
38267 2007-08-19  Bruno Haible  <bruno@clisp.org>
38268
38269         * tests/test-lseek.c (main): Disable a test for BeOS.
38270         * doc/functions/lseek.texi: Document the BeOS bug.
38271
38272 2007-08-19  Bruno Haible  <bruno@clisp.org>
38273             Eric Blake  <ebb9@byu.net>
38274
38275         * lib/lseek.c: Include <sys/stat.h>.
38276         (rpl_lseek): Add workaround code also for Unix platforms.
38277         Needed for BeOS.
38278         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
38279         * doc/functions/lseek.texi: Document BeOS definiency.
38280
38281 2007-08-18  Bruno Haible  <bruno@clisp.org>
38282
38283         * modules/fstrcmp-tests: New file.
38284         * tests/test-fstrcmp.c: New file.
38285
38286 2007-08-18  Bruno Haible  <bruno@clisp.org>
38287
38288         * modules/fstrcmp: New file, from GNU gettext with modifications.
38289         * lib/fstrcmp.h: New file, from GNU gettext.
38290         * lib/fstrcmp.c: New file, from GNU gettext.
38291         * MODULES.html.sh (String handling): Add fstrcmp.
38292
38293 2007-08-18  Bruno Haible  <bruno@clisp.org>
38294
38295         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
38296         'bool'.
38297         (diag, compareseq): Remove const from the ctxt argument.
38298         (USE_HEURISTIC): Undefine at the end.
38299
38300 2007-08-18  Jim Meyering  <jim@meyering.net>
38301
38302         New file: lib/idcache.h
38303         * NEWS: Mention the addition.
38304         * modules/idcache (Files): Add lib/idcache.h
38305         * lib/idcache.c: Include "idcache.h".
38306         Don't include <sys/types.h>.
38307         Add a FIXME comment.
38308         Move file-scoped "static" declarations to the top.
38309         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
38310
38311 2007-08-17  Bruno Haible  <bruno@clisp.org>
38312         and Paul Eggert  <eggert@cs.ucla.edu>
38313
38314         * MODULES.html.sh: Add diffseq.
38315         * modules/diffseq: New file.
38316         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
38317         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
38318
38319 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
38320
38321         Import changes from coreutils for bootstrap script.
38322
38323         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
38324
38325         * build-aux/bootstrap (slurp): Work even in environments where
38326         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
38327         current code does not slurp files whose names start with ".", and
38328         this looks like it might be a troublesome area.
38329
38330         2007-07-11  Jim Meyering  <jim@meyering.net>
38331
38332         If there's a GPL vN copyright comment, require that N == 3.
38333
38334         2007-07-08  Jim Meyering  <jim@meyering.net>
38335
38336         Run the coreutils-specific code only if tests/Makefile.am.in exists.
38337         * build-aux/bootstrap (mam_template): Move definition out of loop.
38338
38339         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
38340
38341         * build-aux/bootstrap (symlink_to_dir): Rename function from
38342         symlink_to_gnulib.  Add a directory parameter.  Update all
38343         callers.
38344         (cp_mark_as_generated): Also check for -- and link to -- files in
38345         gl/.
38346
38347         2007-07-08  Jim Meyering  <jim@meyering.net>
38348
38349         Adapt to deeper hierarchy in gnulib.
38350         * build-aux/bootstrap (symlink_to_dir): If the destination
38351         directory doesn't exist, create it. This is required at least for
38352         "lib/uniwidth/cjk.h".
38353
38354         2007-05-15  Jim Meyering  <jim@meyering.net>
38355
38356         * build-aux/bootstrap: Now that generated Makefile.am files
38357         are no longer under version control, they must be created at
38358         bootstrap time.
38359
38360 2007-08-14  Ben Pfaff  <blp@gnu.org>
38361
38362         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
38363
38364 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
38365
38366         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
38367         given the changes below.
38368         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
38369         even on hosts that have padding bits beyond the supported 64.
38370
38371 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
38372
38373         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
38374         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
38375         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
38376         depends on it.
38377         (xstrtol_error): Remove.
38378         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
38379         but with a different signature.
38380         (ATTRIBUTE_NORETURN, __attribute__): New macros.
38381         * lib/xstrtol-error.c: Include exitfail.h.
38382         (xstrtol_fatal): New function, with a different signature from the
38383         old xstrtol_error, so that the caller need not worry about passing
38384         in an exit status, or about storage management of the option argument.
38385         (xstrtol_error): Now a static function.  Redo signature to
38386         implement xstrtol_fatal.  Output the correct number of hyphens in
38387         front of the option so that the caller need not worry about
38388         storage management.
38389         (N_): New macro.
38390         (_): Remove; not used now.
38391         * modules/xstrtol: Depend on getopt.
38392         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
38393         of old STRTOL_FATAL_ERROR macro.
38394         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
38395         of test program.
38396         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
38397         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
38398
38399 2007-08-08  Eric Blake  <ebb9@byu.net>
38400
38401         * lib/xstrtol-error.c: Add missing include.
38402
38403         Move xstrtol messages into gnulib domain, when --pobase is used.
38404         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
38405         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
38406         * modules/xstrtol (Files): Distribute new file.
38407         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
38408         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
38409         * tests/test-xstrtol.c: ...into new file.
38410         * tests/test-xstrtoul.c: Also test xstrtoul.
38411         * tests/test-xstrtoimax.c: Also test xstrtoimax.
38412         * tests/test-xstrtoumax.c: Also test xstrtoumax.
38413         * tests/test-xstrtol.sh: Drive the tests.
38414         * tests/test-xstrtoimax.sh: Likewise.
38415         * tests/test-xstrtoumax.sh: Likewise.
38416         * modules/xstrtol-tests: New module.
38417         * modules/xstrtoimax-tests: Likewise.
38418         * modules/xstrtoumax-tests: Likewise.
38419
38420 2007-08-08  Jim Meyering  <jim@meyering.net>
38421
38422         New function: mfile_name_concat.
38423         * lib/filenamecat.c (mfile_name_concat): New function, just like
38424         file_name_concat, but return NULL upon failure rather than exiting
38425         with a diagnostic.
38426         * lib/filenamecat.h: Declare it.
38427
38428 2007-08-07  Bruno Haible  <bruno@clisp.org>
38429
38430         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
38431         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
38432         warning from gcc.
38433         Reported by Eric Blake.
38434
38435 2007-08-07  Simon Josefsson  <simon@josefsson.org>
38436
38437         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
38438         * modules/crypto/arcfour (License): Likewise.
38439         * modules/crypto/des-tests (License): Likewise.
38440         * modules/crypto/gc-arctwo-tests (License): Likewise.
38441         * modules/crypto/gc-des-tests (License): Likewise.
38442         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
38443         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
38444         * modules/crypto/gc-md2-tests (License): Likewise.
38445         * modules/crypto/gc-md4-tests (License): Likewise.
38446         * modules/crypto/gc-md5-tests (License): Likewise.
38447         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
38448         * modules/crypto/gc-rijndael-tests (License): Likewise.
38449         * modules/crypto/gc-sha1-tests (License): Likewise.
38450         * modules/crypto/gc-tests (License): Likewise.
38451         * modules/crypto/hmac-md5 (License): Likewise.
38452         * modules/crypto/hmac-sha1 (License): Likewise.
38453         * modules/crypto/md2-tests (License): Likewise.
38454         * modules/crypto/md4-tests (License): Likewise.
38455         * modules/crypto/md5 (License): Likewise.
38456         * modules/crypto/rijndael (License): Likewise.
38457         * modules/crypto/sha1 (License): Likewise.
38458         * modules/memxor (License): Likewise.
38459
38460 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
38461         and Bruno Haible  <bruno@clisp.org>
38462
38463         * NEWS: Describe interface changes to human, xstrtol.
38464         * lib/human.h: Include <xstrtol.h>.
38465         (human_options): Return enum strtol_error, not int.  Remove
38466         bool arg; take int * instead.
38467         * lib/human.c: Don't include "gettext.h".
38468         (_): Remove; no longer used.
38469         Don't include <xstrtol.h>, since human.h does it.
38470         (human_options): Adjust to abovementioned interface changes.
38471         Do not report error to stderr; that's now the caller's
38472         responsibility.
38473         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
38474         interface change.
38475         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
38476         Str, Argument_type_string.  All uses changed.  Put " argument"
38477         in diagnostics to make them clearer.  Change wording of suffix
38478         message for clarity.
38479         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
38480         Argument_type_string.
38481         (STRTOL_FATAL_WARN): Remove; no longer used.
38482         * modules/human (Depends-on): Remove gettext-h.
38483
38484 2007-08-06  Simon Josefsson  <simon@josefsson.org>
38485
38486         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
38487
38488 2007-07-31  Bruno Haible  <bruno@clisp.org>
38489
38490         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
38491         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
38492         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
38493
38494 2007-07-31  Bruno Haible  <bruno@clisp.org>
38495
38496         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
38497         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
38498
38499 2007-07-30  Bruno Haible  <bruno@clisp.org>
38500
38501         * modules/base64 (License): Use the synonymous term "LGPLv2+".
38502         * modules/c-ctype (License): Likewise.
38503         * modules/c-strcase (License): Likewise.
38504         * modules/check-version (License): Likewise.
38505         * modules/iconv (License): Likewise.
38506         * modules/iconv_open (License): Likewise.
38507         * modules/read-file (License): Likewise.
38508         * modules/striconv (License): Likewise.
38509         * modules/strverscmp (License): Likewise.
38510         * modules/vasprintf (License): Likewise.
38511         * modules/crypto/des (License): Likewise.
38512         * modules/crypto/gc (License): Likewise.
38513         * modules/crypto/gc-arcfour (License): Likewise.
38514         * modules/crypto/gc-arctwo (License): Likewise.
38515         * modules/crypto/gc-des (License): Likewise.
38516         * modules/crypto/gc-hmac-md5 (License): Likewise.
38517         * modules/crypto/gc-hmac-sha1 (License): Likewise.
38518         * modules/crypto/gc-md2 (License): Likewise.
38519         * modules/crypto/gc-md4 (License): Likewise.
38520         * modules/crypto/gc-md5 (License): Likewise.
38521         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
38522         * modules/crypto/gc-random (License): Likewise.
38523         * modules/crypto/gc-rijndael (License): Likewise.
38524         * modules/crypto/gc-sha1 (License): Likewise.
38525         * modules/crypto/md2 (License): Likewise.
38526         * modules/crypto/md4 (License): Likewise.
38527
38528 2007-07-30  Jim Meyering  <jim@meyering.net>
38529
38530         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
38531         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
38532         it has valid stat data.  This bug would cause du not to count the
38533         sizes of inaccessible directories.
38534         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
38535         in <http://bugzilla.redhat.com/250077>.
38536
38537 2007-07-25  Peter O'Gorman  <peter@pogma.com>
38538             Bruno Haible  <bruno@clisp.org>
38539
38540         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
38541         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
38542         #include_next, gives a diagnostic about it, but reports no error in
38543         the exit code.
38544         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
38545
38546 2007-07-24  Ben Pfaff  <blp@gnu.org>
38547
38548         Improve name: "count-one-bits" is better than "popcount".
38549         * MODULES.html.sh: Update name.
38550         * lib/popcount.h: Renamed lib/count-one-bits.h.
38551         (popcount): Renamed count_one_bits.
38552         (popcountl): Renamed count_one_bits_l.
38553         (popcountll): Renamed count_one_bits_ll.
38554         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
38555         * modules/popcount: Renamed module/count-one-bits.
38556         * modules/popcount-tests: Renamed module/count-one-bits-tests.
38557         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
38558
38559 2007-07-23  Ben Pfaff  <blp@gnu.org>
38560
38561         * lib/popcount.h (popcount32): Reduce size of constants, to allow
38562         better code generation, and add U to large constants to avoid
38563         warnings, in non-GCC case.
38564         Suggested by Bruno Haible.
38565
38566 2007-07-23  Ben Pfaff  <blp@gnu.org>
38567
38568         * lib/popcount.h: Use verify_true instead of if...abort.
38569         * modules/popcount: Depend on verify module.
38570         Suggested by Jim Meyering.
38571
38572 2007-07-23  Bruno Haible  <bruno@clisp.org>
38573
38574         * gnulib-tool (func_import): Create a .cvsignore file also when the
38575         directory is not yet in CVS but the toplevel directory is. When
38576         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
38577         Reported by Karl Berry.
38578
38579 2007-07-22  Ben Pfaff  <blp@gnu.org>
38580
38581         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
38582         case.
38583         Suggested by Eric Blake.
38584
38585 2007-07-22  Ben Pfaff  <blp@gnu.org>
38586
38587         New module: popcount.
38588         * MODULES.html.sh: Add popcount.
38589         * modules/popcount: New file.
38590         * modules/popcount-tests: New file.
38591         * tests/test-popcount.c: New file.
38592         * lib/popcount.h: New file.
38593         * m4/popcount.m4: New file.
38594
38595 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
38596
38597         * build-aux/announce-gen: Update to GPLv3.
38598
38599         * build-aux/config.guess: Update from config.
38600
38601 2007-07-21  Bruno Haible  <bruno@clisp.org>
38602
38603         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
38604         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
38605
38606 2007-07-20  Jim Meyering  <jim@meyering.net>
38607
38608         * check-module: Diagnose a self-dependency.
38609
38610 2007-07-19  Bruno Haible  <bruno@clisp.org>
38611
38612         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
38613         empty.
38614         Reported by Eric Blake.
38615
38616 2007-07-18  Bruno Haible  <bruno@clisp.org>
38617
38618         * gnulib-tool: New options --po-base, --po-domain.
38619         (func_usage): Document them.
38620         (pobase, po_domain): New variables.
38621         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
38622         DEFAULT_TEXT_DOMAIN.
38623         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
38624         (func_import): Consider pobase and po_domain. Create a po/ directory.
38625         (func_create_testdir): Set pobase and po_domain to empty.
38626         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
38627         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
38628
38629 2007-07-18  Bruno Haible  <bruno@clisp.org>
38630
38631         * gnulib-tool (func_get_automake_snippet): Synthesize also an
38632         EXTRA_DIST augmentation for files in build-aux/.
38633
38634 2007-07-16  Bruno Haible  <bruno@clisp.org>
38635
38636         * modules/lseek (License): Use the synonymous term "LGPLv2+".
38637         * modules/getdelim (License): Likewise.
38638
38639 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38640
38641         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
38642         * modules/d-type (License): Likewise.
38643         * modules/extensions (License): Likewise.
38644         * modules/fnmatch (License): Likewise.
38645         * modules/fseeko (License): Likewise.
38646         * modules/getaddrinfo (License): Likewise.
38647         * modules/getline (License): Likewise.
38648         * modules/getlogin_r (License): Likewise.
38649         * modules/getpass (License): Likewise.
38650         * modules/gettimeofday (License): Likewise.
38651         * modules/glob (License): Likewise.
38652         * modules/inet_ntop (License): Likewise.
38653         * modules/malloc (License): Likewise.
38654         * modules/malloca (License): Likewise.
38655         * modules/memmem (License): Likewise.
38656         * modules/mempcpy (License): Likewise.
38657         * modules/memset (License): Likewise.
38658         * modules/minmax (License): Likewise.
38659         * modules/mktime (License): Likewise.
38660         * modules/netinet_in (License): Likewise.
38661         * modules/pathmax (License): Likewise.
38662         * modules/poll (License): Likewise.
38663         * modules/regex (License): Likewise.
38664         * modules/snprintf (License): Likewise.
38665         * modules/stdbool (License): Likewise.
38666         * modules/stdint (License): Likewise.
38667         * modules/stdio (License): Likewise.
38668         * modules/strcase (License): Likewise.
38669         * modules/strcasestr (License): Likewise.
38670         * modules/strdup (License): Likewise.
38671         * modules/string (License): Likewise.
38672         * modules/strndup (License): Likewise.
38673         * modules/strnlen (License): Likewise.
38674         * modules/strpbrk (License): Likewise.
38675         * modules/strptime (License): Likewise.
38676         * modules/strsep (License): Likewise.
38677         * modules/sys_select (License): Likewise.
38678         * modules/sys_socket (License): Likewise.
38679         * modules/sys_stat (License): Likewise.
38680         * modules/sys_time (License): Likewise.
38681         * modules/time (License): Likewise.
38682         * modules/time_r (License): Likewise.
38683         * modules/timegm (License): Likewise.
38684         * modules/unistd (License): Likewise.
38685         * modules/vsnprintf (License): Likewise.
38686         * modules/wctype (License): Likewise.
38687
38688 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38689
38690         * modules/argz (License): LGPLv2+.
38691
38692 2007-07-15  Karl Berry  <karl@gnu.org>
38693
38694         * doc/gnulib.texi: revise node structure per new fdl.texi.
38695
38696 2007-07-14  Bruno Haible  <bruno@clisp.org>
38697
38698         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
38699         the output file.
38700         * lib/uniname/uninames.h: Regenerated.
38701
38702 2007-07-14  Karl Berry  <karl@gnu.org>
38703
38704         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
38705         omitting sectioning and index commands.
38706
38707 2007-07-13  Bruno Haible  <bruno@clisp.org>
38708
38709         New gnulib-tool option --more-symlinks.
38710         * gnulib-tool (func_usage): Document --more-symlinks.
38711         (do_copyrights): New variable.
38712         Recognize option --more-symlinks.
38713         (func_import): Don't add a copyright notice transform to
38714         sed_transform_lib_file if do_copyrights is empty.
38715
38716 2007-07-13  Bruno Haible  <bruno@clisp.org>
38717
38718         * lib/vasnprintf.c (decimal_point_char): Define also if
38719         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
38720         && !NEED_PRINTF_DIRECTIVE_A.
38721         Reported by Clemens Koller <clemens.koller@anagramm.de> via
38722         Gary V. Vaughan <gary@gnu.org>.
38723
38724 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
38725
38726         * lib/inttypes_.h: Undo previous change, since it was fixed
38727         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
38728
38729 2007-07-13  Bruno Haible  <bruno@clisp.org>
38730
38731         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
38732         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
38733
38734 2007-07-13  Jim Meyering  <jim@meyering.net>
38735
38736         df: Don't fail for Tru64's "file-on-file mount".
38737         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
38738         so we fall through and use statfs instead.  Details here:
38739         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
38740         Reported by Albert Chin.
38741
38742 2007-07-13  Bruno Haible  <bruno@clisp.org>
38743
38744         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
38745         * modules/configmake (License): Likewise.
38746         * modules/gettext (License): Likewise.
38747         * modules/gettext-h (License): Likewise.
38748         * modules/include_next (License): Likewise.
38749         * modules/link-warning (License): Likewise.
38750         * modules/localcharset (License): Likewise.
38751         * modules/localename (License): Likewise.
38752         * modules/lock (License): Likewise.
38753         * modules/relocatable-lib-lgpl (License): Likewise.
38754         * modules/size_max (License): Likewise.
38755         * modules/vasnprintf (License): Likewise.
38756         * modules/wchar (License): Likewise.
38757         * modules/xsize (License): Likewise.
38758
38759 2007-07-13  Bruno Haible  <bruno@clisp.org>
38760
38761         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
38762         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
38763
38764 2007-07-12  Bruno Haible  <bruno@clisp.org>
38765
38766         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
38767         in the modules files.
38768
38769 2007-07-11  Karl Berry  <karl@gnu.org>
38770
38771         * MODULES.html.sh (func_module): use
38772          sed -e '\|^'"${includefile}"'$|d'
38773          instead of /.../d, to avoid errors on $includefile's containing /.
38774
38775 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
38776
38777         * gnulib-tool (func_import): Avoid duplication of --avoid
38778         statements
38779         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
38780         names to `_' in variable names.
38781
38782 2007-07-10  Eric Blake  <ebb9@byu.net>
38783
38784         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
38785         * NEWS: Document this change.
38786
38787 2007-07-08  Bruno Haible  <bruno@clisp.org>
38788
38789         Update to Unicode 5.0.
38790         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
38791         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
38792         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
38793         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
38794         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
38795         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
38796         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
38797         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
38798         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
38799         U+10A3F, U+1D242..U+1D244.
38800         (nonspacing_table_ind): Update.
38801         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
38802         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
38803
38804 2007-07-08  Bruno Haible  <bruno@clisp.org>
38805
38806         Update to Unicode 5.0.
38807         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
38808         code transform. Extend the name index field of unicode_name_to_code and
38809         unicode_code_to_name from 16 to 24 bits.
38810         * lib/uniname/uniname.c (unicode_character_name,
38811         unicode_name_character): Add the range 0x12xxx to the code transform.
38812         * lib/uniname/uninames.h: Regenerated.
38813         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
38814
38815 2007-07-07  Bruno Haible  <bruno@clisp.org>
38816
38817         * modules/wcwidth-tests: New file.
38818         * tests/test-wcwidth.c: New file.
38819
38820         Work around MacOS X wcwidth() bug.
38821         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
38822         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
38823         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
38824         original wcwidth in non-UTF-8 locales.
38825         * modules/wcwidth (Depends-on): Add localcharset, streq,
38826         uniwidth/width.
38827         * doc/functions/wcwidth.texi: Update.
38828
38829 2007-07-07  Bruno Haible  <bruno@clisp.org>
38830
38831         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
38832         (wcwidth): New declaration.
38833         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
38834         macros.
38835         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
38836         here. Prepare for creating <wchar.h> unconditionally.
38837         * modules/wchar (Depends-on): Add link-warning.
38838         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
38839         REPLACE_WCWIDTH, and GL_LINK_WARNING.
38840         * lib/wcwidth.h: Remove file.
38841         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
38842         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
38843         * modules/wcwidth (Files): Remove lib/wcwidth.h.
38844         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
38845         (Include): Replace wcwidth.h with <wchar.h>.
38846         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
38847         * lib/mbchar.h: Don't include wcwidth.h.
38848         * lib/mbswidth.c: Likewise.
38849         * NEWS: Mention the change.
38850
38851 2007-07-07  Bruno Haible  <bruno@clisp.org>
38852
38853         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
38854         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
38855         definition with an external declaration.
38856         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
38857         defined as a function. Remove AC_C_INLINE requirement.
38858         * modules/wcwidth (Files): Add lib/wcwidth.c.
38859         (Makefile.am): Remove redundant statement.
38860
38861 2007-07-07  Bruno Haible  <bruno@clisp.org>
38862
38863         * MODULES.html.sh (Unicode string functions): Add the new modules.
38864
38865         * tests/uniwidth/test-u32-strwidth.c: New file.
38866         * modules/uniwidth/u32-strwidth-tests: New file.
38867
38868         * lib/uniwidth/u32-strwidth.c: New file.
38869         * modules/uniwidth/u32-strwidth: New file.
38870
38871         * tests/uniwidth/test-u16-strwidth.c: New file.
38872         * modules/uniwidth/u16-strwidth-tests: New file.
38873
38874         * lib/uniwidth/u16-strwidth.c: New file.
38875         * modules/uniwidth/u16-strwidth: New file.
38876
38877         * tests/uniwidth/test-u8-strwidth.c: New file.
38878         * modules/uniwidth/u8-strwidth-tests: New file.
38879
38880         * lib/uniwidth/u8-strwidth.c: New file.
38881         * modules/uniwidth/u8-strwidth: New file.
38882
38883         * tests/uniwidth/test-u32-width.c: New file.
38884         * modules/uniwidth/u32-width-tests: New file.
38885
38886         * lib/uniwidth/u32-width.c: New file.
38887         * modules/uniwidth/u32-width: New file.
38888
38889         * tests/uniwidth/test-u16-width.c: New file.
38890         * modules/uniwidth/u16-width-tests: New file.
38891
38892         * lib/uniwidth/u16-width.c: New file.
38893         * modules/uniwidth/u16-width: New file.
38894
38895         * tests/uniwidth/test-u8-width.c: New file.
38896         * modules/uniwidth/u8-width-tests: New file.
38897
38898         * lib/uniwidth/u8-width.c: New file.
38899         * modules/uniwidth/u8-width: New file.
38900
38901         * tests/uniwidth/test-uc_width.c: New file.
38902         * modules/uniwidth/width-tests: New file.
38903
38904         * lib/uniwidth/width.c: New file, from GNU libiconv.
38905         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
38906         * modules/uniwidth/width: New file.
38907
38908         * lib/uniwidth.h: New file, from GNU libiconv.
38909         * modules/uniwidth/base: New file.
38910
38911 2007-07-07  Bruno Haible  <bruno@clisp.org>
38912
38913         * lib/uniname.h: New file, from GNU gettext.
38914         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
38915         * lib/uniname/uninames.h: New file, from GNU gettext.
38916         * lib/uniname/uniname.c: New file, from GNU gettext.
38917         * tests/uniname/test-uninames.sh: New file.
38918         * tests/uniname/test-uninames.c: New file, from GNU gettext.
38919         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
38920         * modules/uniname/base: New file.
38921         * modules/uniname/uniname: New file.
38922         * modules/uniname/uniname-tests: New file.
38923         * MODULES.html.sh (Unicode string functions): Add the new modules.
38924
38925 2007-07-06  Bruno Haible  <bruno@clisp.org>
38926
38927         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
38928
38929 2007-07-06  Bruno Haible  <bruno@clisp.org>
38930
38931         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
38932         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
38933         includes <cygwin/sys_time.h> which includes <sys/select.h> which
38934         include <sys/time.h>.
38935         Reported by Eric Blake.
38936
38937 2007-07-06  Eric Blake  <ebb9@byu.net>
38938
38939         Fix testing canonicalize on cygwin.
38940         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
38941         Revert patch from 2007-06-19.
38942         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
38943         canonicalize module is also in use.
38944         * tests/test-canonicalize.c: New file.
38945         * tests/test-canonicalize.sh: Likewise.
38946         * modules/canonicalize-tests: Likewise.
38947
38948 2007-07-06  Jim Meyering  <jim@meyering.net>
38949
38950         * lib/getugroups.c (getugroups): Detect getgrent failure.
38951         Adjust comment to reflect reality: this function may return -1.
38952
38953 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
38954
38955         * build-aux/bootstrap (TP_URL,get_translations): Update to use
38956         the new TP address.
38957         (usage): Fix typo
38958         (gnulib_mk): New variable.
38959
38960 2007-07-05  Jim Meyering  <jim@meyering.net>
38961
38962         Don't let endgrent clobber errno, no matter how improbable.
38963         * lib/getugroups.c (getugroups): Save and restore errno around
38964         endgrent call.
38965
38966         Close the group DB even when failing with 2^31 or more members.
38967         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
38968
38969 2007-07-04  Jim Meyering  <jim@meyering.net>
38970
38971         * lib/getugroups.h: New file.
38972         * lib/getugroups.c: Include "getugroups.h".
38973         Remove uses of "register" keyword.
38974         Move local variable, "cp", down into scope where used.
38975         Give "username" parameter the "const" attribute.
38976         * modules/getugroups (Files): Add lib/getugroups.h
38977
38978 2007-07-04  Karl Berry  <karl@gnu.org>
38979
38980         * MODULES.html.sh (func_all_modules): Complete rename of
38981         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
38982
38983 2007-07-02  Bruno Haible  <bruno@clisp.org>
38984
38985         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
38986         mode, when inttypes.h comes from gnulib.
38987         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
38988
38989 2007-07-02  Simon Josefsson  <simon@josefsson.org>
38990
38991         * NEWS: Mention lgpl module name change.
38992
38993         * modules/lgpl-2.1: Renamed from lgpl.
38994
38995         * NEWS: Mention gpl module name change.
38996
38997         * modules/gpl-3.0: New file, based on gpl-2.0.
38998
38999         * modules/gpl-2.0: Renamed from gpl.
39000
39001         * modules/gpl: Fix filename, doc/gpl.texi is now found at
39002         doc/gpl-2.0.texi.
39003
39004 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
39005
39006         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
39007         #define __STDC_LIMIT_MACROS temporarily while including
39008         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
39009         Problem reported by Joel E. Denny in
39010         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
39011
39012 2007-07-01  Bruno Haible  <bruno@clisp.org>
39013
39014         * lib/unistdio.h: New file.
39015         * lib/unistdio/u-asnprintf.h: New file.
39016         * lib/unistdio/u-asprintf.h: New file.
39017         * lib/unistdio/u-printf-args.c: New file.
39018         * lib/unistdio/u-printf-args.h: New file.
39019         * lib/unistdio/u-printf-parse.h: New file.
39020         * lib/unistdio/u-snprintf.h: New file.
39021         * lib/unistdio/u-sprintf.h: New file.
39022         * lib/unistdio/u-vasprintf.h: New file.
39023         * lib/unistdio/u-vsnprintf.h: New file.
39024         * lib/unistdio/u-vsprintf.h: New file.
39025         * lib/unistdio/ulc-asnprintf.c: New file.
39026         * lib/unistdio/ulc-asprintf.c: New file.
39027         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
39028         * lib/unistdio/ulc-printf-parse.c: New file.
39029         * lib/unistdio/ulc-snprintf.c: New file.
39030         * lib/unistdio/ulc-sprintf.c: New file.
39031         * lib/unistdio/ulc-vasnprintf.c: New file.
39032         * lib/unistdio/ulc-vasprintf.c: New file.
39033         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
39034         * lib/unistdio/ulc-vsnprintf.c: New file.
39035         * lib/unistdio/ulc-vsprintf.c: New file.
39036         * lib/unistdio/u8-asnprintf.c: New file.
39037         * lib/unistdio/u8-asprintf.c: New file.
39038         * lib/unistdio/u8-printf-parse.c: New file.
39039         * lib/unistdio/u8-snprintf.c: New file.
39040         * lib/unistdio/u8-sprintf.c: New file.
39041         * lib/unistdio/u8-vasnprintf.c: New file.
39042         * lib/unistdio/u8-vasprintf.c: New file.
39043         * lib/unistdio/u8-vsnprintf.c: New file.
39044         * lib/unistdio/u8-vsprintf.c: New file.
39045         * lib/unistdio/u8-u8-asnprintf.c: New file.
39046         * lib/unistdio/u8-u8-asprintf.c: New file.
39047         * lib/unistdio/u8-u8-snprintf.c: New file.
39048         * lib/unistdio/u8-u8-sprintf.c: New file.
39049         * lib/unistdio/u8-u8-vasnprintf.c: New file.
39050         * lib/unistdio/u8-u8-vasprintf.c: New file.
39051         * lib/unistdio/u8-u8-vsnprintf.c: New file.
39052         * lib/unistdio/u8-u8-vsprintf.c: New file.
39053         * lib/unistdio/u16-asnprintf.c: New file.
39054         * lib/unistdio/u16-asprintf.c: New file.
39055         * lib/unistdio/u16-printf-parse.c: New file.
39056         * lib/unistdio/u16-snprintf.c: New file.
39057         * lib/unistdio/u16-sprintf.c: New file.
39058         * lib/unistdio/u16-vasnprintf.c: New file.
39059         * lib/unistdio/u16-vasprintf.c: New file.
39060         * lib/unistdio/u16-vsnprintf.c: New file.
39061         * lib/unistdio/u16-vsprintf.c: New file.
39062         * lib/unistdio/u16-u16-asnprintf.c: New file.
39063         * lib/unistdio/u16-u16-asprintf.c: New file.
39064         * lib/unistdio/u16-u16-snprintf.c: New file.
39065         * lib/unistdio/u16-u16-sprintf.c: New file.
39066         * lib/unistdio/u16-u16-vasnprintf.c: New file.
39067         * lib/unistdio/u16-u16-vasprintf.c: New file.
39068         * lib/unistdio/u16-u16-vsnprintf.c: New file.
39069         * lib/unistdio/u16-u16-vsprintf.c: New file.
39070         * lib/unistdio/u32-asnprintf.c: New file.
39071         * lib/unistdio/u32-asprintf.c: New file.
39072         * lib/unistdio/u32-printf-parse.c: New file.
39073         * lib/unistdio/u32-snprintf.c: New file.
39074         * lib/unistdio/u32-sprintf.c: New file.
39075         * lib/unistdio/u32-vasnprintf.c: New file.
39076         * lib/unistdio/u32-vasprintf.c: New file.
39077         * lib/unistdio/u32-vsnprintf.c: New file.
39078         * lib/unistdio/u32-vsprintf.c: New file.
39079         * lib/unistdio/u32-u32-asnprintf.c: New file.
39080         * lib/unistdio/u32-u32-asprintf.c: New file.
39081         * lib/unistdio/u32-u32-snprintf.c: New file.
39082         * lib/unistdio/u32-u32-sprintf.c: New file.
39083         * lib/unistdio/u32-u32-vasnprintf.c: New file.
39084         * lib/unistdio/u32-u32-vasprintf.c: New file.
39085         * lib/unistdio/u32-u32-vsnprintf.c: New file.
39086         * lib/unistdio/u32-u32-vsprintf.c: New file.
39087         * tests/unistdio/test-ulc-asnprintf1.c: New file.
39088         * tests/unistdio/test-ulc-asnprintf1.h: New file.
39089         * tests/unistdio/test-ulc-printf1.h: New file.
39090         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
39091         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
39092         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
39093         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
39094         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
39095         * tests/unistdio/test-ulc-vasprintf1.c: New file.
39096         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
39097         * tests/unistdio/test-ulc-vsprintf1.c: New file.
39098         * tests/unistdio/test-u8-asnprintf1.c: New file.
39099         * tests/unistdio/test-u8-asnprintf1.h: New file.
39100         * tests/unistdio/test-u8-printf1.h: New file.
39101         * tests/unistdio/test-u8-vasnprintf1.c: New file.
39102         * tests/unistdio/test-u8-vasnprintf2.c: New file.
39103         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
39104         * tests/unistdio/test-u8-vasnprintf3.c: New file.
39105         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
39106         * tests/unistdio/test-u8-vasprintf1.c: New file.
39107         * tests/unistdio/test-u8-vsnprintf1.c: New file.
39108         * tests/unistdio/test-u8-vsprintf1.c: New file.
39109         * tests/unistdio/test-u16-asnprintf1.c: New file.
39110         * tests/unistdio/test-u16-asnprintf1.h: New file.
39111         * tests/unistdio/test-u16-printf1.h: New file.
39112         * tests/unistdio/test-u16-vasnprintf1.c: New file.
39113         * tests/unistdio/test-u16-vasnprintf2.c: New file.
39114         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
39115         * tests/unistdio/test-u16-vasnprintf3.c: New file.
39116         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
39117         * tests/unistdio/test-u16-vasprintf1.c: New file.
39118         * tests/unistdio/test-u16-vsnprintf1.c: New file.
39119         * tests/unistdio/test-u16-vsprintf1.c: New file.
39120         * tests/unistdio/test-u32-asnprintf1.c: New file.
39121         * tests/unistdio/test-u32-asnprintf1.h: New file.
39122         * tests/unistdio/test-u32-printf1.h: New file.
39123         * tests/unistdio/test-u32-vasnprintf1.c: New file.
39124         * tests/unistdio/test-u32-vasnprintf2.c: New file.
39125         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
39126         * tests/unistdio/test-u32-vasnprintf3.c: New file.
39127         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
39128         * tests/unistdio/test-u32-vasprintf1.c: New file.
39129         * tests/unistdio/test-u32-vsnprintf1.c: New file.
39130         * tests/unistdio/test-u32-vsprintf1.c: New file.
39131         * modules/unistdio/base: New file.
39132         * modules/unistdio/u-printf-args: New file.
39133         * modules/unistdio/ulc-asnprintf: New file.
39134         * modules/unistdio/ulc-asprintf: New file.
39135         * modules/unistdio/ulc-fprintf: New file.
39136         * modules/unistdio/ulc-printf-parse: New file.
39137         * modules/unistdio/ulc-snprintf: New file.
39138         * modules/unistdio/ulc-sprintf: New file.
39139         * modules/unistdio/ulc-vasnprintf: New file.
39140         * modules/unistdio/ulc-vasprintf: New file.
39141         * modules/unistdio/ulc-vfprintf: New file.
39142         * modules/unistdio/ulc-vsnprintf: New file.
39143         * modules/unistdio/ulc-vsprintf: New file.
39144         * modules/unistdio/u8-asnprintf: New file.
39145         * modules/unistdio/u8-asprintf: New file.
39146         * modules/unistdio/u8-printf-parse: New file.
39147         * modules/unistdio/u8-snprintf: New file.
39148         * modules/unistdio/u8-sprintf: New file.
39149         * modules/unistdio/u8-vasnprintf: New file.
39150         * modules/unistdio/u8-vasprintf: New file.
39151         * modules/unistdio/u8-vsnprintf: New file.
39152         * modules/unistdio/u8-vsprintf: New file.
39153         * modules/unistdio/u8-u8-asnprintf: New file.
39154         * modules/unistdio/u8-u8-asprintf: New file.
39155         * modules/unistdio/u8-u8-snprintf: New file.
39156         * modules/unistdio/u8-u8-sprintf: New file.
39157         * modules/unistdio/u8-u8-vasnprintf: New file.
39158         * modules/unistdio/u8-u8-vasprintf: New file.
39159         * modules/unistdio/u8-u8-vsnprintf: New file.
39160         * modules/unistdio/u8-u8-vsprintf: New file.
39161         * modules/unistdio/u16-asnprintf: New file.
39162         * modules/unistdio/u16-asprintf: New file.
39163         * modules/unistdio/u16-printf-parse: New file.
39164         * modules/unistdio/u16-snprintf: New file.
39165         * modules/unistdio/u16-sprintf: New file.
39166         * modules/unistdio/u16-vasnprintf: New file.
39167         * modules/unistdio/u16-vasprintf: New file.
39168         * modules/unistdio/u16-vsnprintf: New file.
39169         * modules/unistdio/u16-vsprintf: New file.
39170         * modules/unistdio/u16-u16-asnprintf: New file.
39171         * modules/unistdio/u16-u16-asprintf: New file.
39172         * modules/unistdio/u16-u16-snprintf: New file.
39173         * modules/unistdio/u16-u16-sprintf: New file.
39174         * modules/unistdio/u16-u16-vasnprintf: New file.
39175         * modules/unistdio/u16-u16-vasprintf: New file.
39176         * modules/unistdio/u16-u16-vsnprintf: New file.
39177         * modules/unistdio/u16-u16-vsprintf: New file.
39178         * modules/unistdio/u32-asnprintf: New file.
39179         * modules/unistdio/u32-asprintf: New file.
39180         * modules/unistdio/u32-printf-parse: New file.
39181         * modules/unistdio/u32-snprintf: New file.
39182         * modules/unistdio/u32-sprintf: New file.
39183         * modules/unistdio/u32-vasnprintf: New file.
39184         * modules/unistdio/u32-vasprintf: New file.
39185         * modules/unistdio/u32-vsnprintf: New file.
39186         * modules/unistdio/u32-vsprintf: New file.
39187         * modules/unistdio/u32-u32-asnprintf: New file.
39188         * modules/unistdio/u32-u32-asprintf: New file.
39189         * modules/unistdio/u32-u32-snprintf: New file.
39190         * modules/unistdio/u32-u32-sprintf: New file.
39191         * modules/unistdio/u32-u32-vasnprintf: New file.
39192         * modules/unistdio/u32-u32-vasprintf: New file.
39193         * modules/unistdio/u32-u32-vsnprintf: New file.
39194         * modules/unistdio/u32-u32-vsprintf: New file.
39195         * modules/unistdio/ulc-asnprintf-tests: New file.
39196         * modules/unistdio/ulc-vasnprintf-tests: New file.
39197         * modules/unistdio/ulc-vasprintf-tests: New file.
39198         * modules/unistdio/ulc-vsnprintf-tests: New file.
39199         * modules/unistdio/ulc-vsprintf-tests: New file.
39200         * modules/unistdio/u8-asnprintf-tests: New file.
39201         * modules/unistdio/u8-vasnprintf-tests: New file.
39202         * modules/unistdio/u8-vasprintf-tests: New file.
39203         * modules/unistdio/u8-vsnprintf-tests: New file.
39204         * modules/unistdio/u8-vsprintf-tests: New file.
39205         * modules/unistdio/u16-asnprintf-tests: New file.
39206         * modules/unistdio/u16-vasnprintf-tests: New file.
39207         * modules/unistdio/u16-vasprintf-tests: New file.
39208         * modules/unistdio/u16-vsnprintf-tests: New file.
39209         * modules/unistdio/u16-vsprintf-tests: New file.
39210         * modules/unistdio/u32-asnprintf-tests: New file.
39211         * modules/unistdio/u32-vasnprintf-tests: New file.
39212         * modules/unistdio/u32-vasprintf-tests: New file.
39213         * modules/unistdio/u32-vsnprintf-tests: New file.
39214         * modules/unistdio/u32-vsprintf-tests: New file.
39215         * MODULES.html.sh (Unicode string functions): Add the new modules.
39216
39217 2007-07-01  Bruno Haible  <bruno@clisp.org>
39218
39219         * lib/sprintf.c (sprintf): Limit the available length estimation,
39220         to avoid address wraparound.
39221         * lib/vsprintf.c (vsprintf): Likewise.
39222         * modules/sprintf-posix (Dependencies): Add stdint.
39223         * modules/vsprintf-posix (Dependencies): Likewise.
39224
39225 2007-07-01  Bruno Haible  <bruno@clisp.org>
39226
39227         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
39228         Windows PATH as well. Conservative double-quoting. Comments.
39229
39230 2007-07-01  Bruno Haible  <bruno@clisp.org>
39231             Eric Blake  <ebb9@byu.net>
39232             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39233
39234         * gnulib-tool (self_abspathname): Fix algorithm to cope with
39235         empty components in $PATH, denoting '.'.
39236
39237 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39238
39239         * gnulib-tool: Fix indentation.
39240         (func_create_megatestdir): Likewise.
39241         Report by Bruno Haible.
39242
39243 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39244
39245         Sync from Automake.
39246         * build-aux/gnupload: Fix shell portability issues with for loops.
39247         Report by Karl Berry.
39248
39249 2007-06-29  Simon Josefsson  <simon@josefsson.org>
39250
39251         * build-aux/maint.mk (POURL): Use translationproject.org.
39252
39253 2007-06-27  Simon Josefsson  <simon@josefsson.org>
39254             Bruno Haible  <bruno@clisp.org>
39255
39256         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
39257         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
39258         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
39259         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
39260         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
39261
39262 2007-06-27  Bruno Haible  <bruno@clisp.org>
39263
39264         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
39265         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
39266
39267 2007-06-26  Karl Berry  <karl@gnu.org>
39268
39269         * MODULES.html.sh: remove xreadlink-with-size.
39270
39271 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
39272
39273         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
39274         method that I hope also handles the double-include problem noted
39275         by Bruno Haible in
39276         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
39277
39278 2007-06-23  Bruno Haible  <bruno@clisp.org>
39279
39280         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
39281         Don't let the 'mostlyclean' target fail if the last subdirectory could
39282         not be removed.
39283         Reported by Karl Berry.
39284
39285 2007-06-23  Bruno Haible  <bruno@clisp.org>
39286
39287         * gnulib-tool (echo): Add a speedier workaround for ksh.
39288         * tests/test-echo.sh: Likewise.
39289
39290 2007-06-23  Bruno Haible  <bruno@clisp.org>
39291
39292         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
39293         * tests/test-echo.sh: Likewise.
39294
39295 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39296
39297         * gnulib-tool (IFS): Initialize early, so we don't set it to
39298         empty later.
39299         (self_abspathname): Rewrite algorithm to set it, reindent.
39300         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
39301         (func_create_megatestdir): Merge some sed scripts.
39302
39303 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
39304
39305         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
39306         exposed by Sun Studio 11 cc on Solaris 8.
39307
39308 2007-06-22  Bruno Haible  <bruno@clisp.org>
39309
39310         * gnulib-tool (echo): Ensure the echo primitive does not interpret
39311         backslashes.
39312         * tests/test-echo.sh: New file.
39313
39314 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39315
39316         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
39317         simplify `sed_replace_build_aux' scripts, they are portable but
39318         echoing them with `echo' is not.
39319         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
39320
39321 2007-06-21  Karl Berry  <karl@gnu.org>
39322
39323         * config/srclist.txt: guess we can't handle the licenses via
39324         srclist at the moment.
39325
39326 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
39327
39328         * MODULES.html.sh: Add include_next.
39329         * modules/include_next: New file.
39330
39331 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
39332
39333         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
39334         INCLUDE_NEXT.
39335         (gl_CHECK_NEXT_HEADERS): New macro.
39336         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
39337         the obsolescent gl_ABSOLUTE_HEADER.
39338         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
39339         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
39340         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
39341         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
39342         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
39343         * m4/math_h.m4 (gl_MATH_H): Likewise.
39344         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
39345         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
39346         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
39347         * m4/stdint.m4 (gl_STDINT_H): Likewise.
39348         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
39349         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
39350         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
39351         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
39352         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
39353         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
39354         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
39355         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
39356         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
39357         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
39358         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
39359         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
39360         * m4/inttypes.m4 (gl_INTTYPES_H): Define
39361         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
39362         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
39363         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
39364         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
39365         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
39366         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
39367         * lib/float_.h: Likewise.
39368         * lib/inttypes_.h: Likewise.
39369         * lib/math_.h: Likewise.
39370         * lib/search_.h: Likewise.
39371         * lib/signal_.h: Likewise.
39372         * lib/stdint_.h: Likewise.
39373         * lib/stdio_.h: Likewise.
39374         * lib/stdlib_.h: Likewise.
39375         * lib/string_.h: Likewise.
39376         * lib/sys_stat_.h: Likewise.
39377         * lib/sys_time_.h: Likewise.
39378         * lib/time_.h: Likewise.
39379         * lib/unistd_.h: Likewise.
39380         * lib/wchar_.h: Likewise.
39381         * lib/wctype_.h: Likewise.
39382         * lib/dirent_.h: Likewise.
39383         * lib/iconv_.h: Likewise.
39384         * lib/locale_.h: Likewise.
39385         * lib/netinet_in_.h: Likewise.
39386         * lib/sys_select_.h: Likewise.
39387         * lib/sys_socket_.h: Likewise.
39388         * lib/sysexits_.h: Likewise.
39389         * modules/fcntl (Depends-on): Depend on include_next, not
39390         absolute_header.
39391         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
39392         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
39393         * modules/fchdir: Likewise.
39394         * modules/float: Likewise.
39395         * modules/iconv_open: Likewise.
39396         * modules/inttypes: Likewise.
39397         * modules/locale: Likewise.
39398         * modules/math: Likewise.
39399         * modules/netinet_in: Likewise.
39400         * modules/search: Likewise.
39401         * modules/signal: Likewise.
39402         * modules/stdint: Likewise.
39403         * modules/stdio: Likewise.
39404         * modules/stdlib: Likewise.
39405         * modules/string: Likewise.
39406         * modules/sys_select: Likewise.
39407         * modules/sys_socket: Likewise.
39408         * modules/sys_stat: Likewise.
39409         * modules/sys_time: Likewise.
39410         * modules/sysexits: Likewise.
39411         * modules/time: Likewise.
39412         * modules/unistd: Likewise.
39413         * modules/wchar: Likewise.
39414         * modules/wctype: Likewise.
39415         * modules/sys_stat: Change maintainer to "all".
39416         * modules/unistd: Likewise.
39417
39418 2007-06-20  Karl Berry  <karl@gnu.org>
39419
39420         * config/srclist.txt: track www changes in license files.
39421
39422 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
39423
39424         * build-aux/bootstrap: Remove stray dot.
39425         Make sure build_aux settings are honored when linking
39426         gnulib_extra_files.
39427
39428 2007-06-19  Eric Blake  <ebb9@byu.net>
39429
39430         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
39431         Allow compilation on cygwin.
39432
39433 2007-06-19  Jim Meyering  <jim@meyering.net>
39434
39435         xreadlink-with-size: Remove module.  No longer used.
39436         Ex-callers now use xreadlink or mreadlink-with-size.
39437         * modules/xreadlink-with-size: Remove module.
39438         * lib/xreadlink-with-size.c: Remove file.
39439         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
39440         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
39441         just before the function definition *is* accurate.
39442
39443         Eliminate one way canonicalize_filename_mode could exit.
39444         * lib/canonicalize.c (canonicalize_filename_mode):
39445         Use mreadlink_with_size, not xreadlink_with_size.
39446
39447 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
39448
39449         Detect porting problems to FreeBSD/arm, which has time_t wider than
39450         long int.  Original problem reported for GNU diff by Xin Li in
39451         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
39452         * modules/getdate (Depends-on): Add intprops, verify.
39453         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
39454         is an integer type no wider than long int.
39455
39456 2007-06-18  Jim Meyering  <jim@meyering.net>
39457
39458         New module: mreadlink-with-size.
39459         * MODULES.html.sh: Add mreadlink-with-size.
39460         * modules/mreadlink-with-size: New module
39461         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
39462         not xreadlink-with-size.
39463         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
39464
39465 2007-06-16  Bruno Haible  <bruno@clisp.org>
39466
39467         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
39468         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
39469         Reported by Gary V. Vaughan <gary@gnu.org>.
39470
39471 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
39472
39473         Revamp lchown so that it lives in unistd.h where it belongs.
39474         * lib/lchown.h: Remove.
39475         * lib/dirchownmod.c: Don't include lib/lchown.h.
39476         * lib/fchownat.c: Likewise.
39477         * lib/openat.c: Likewise.
39478         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
39479         does not follow symlinks.
39480         (EOPNOTSUPP): Define if not defined.
39481         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
39482         is defined to 0.
39483         (lchown): New decl.
39484         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
39485         Do not check for lchown decl.
39486         Set REPLACE_LCHOWN.
39487         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
39488         REPLACE_LCHOWN.
39489         * modules/chown: Make it clear it follows symlinks.
39490         * modules/lchown: Make it clear it doesn't follow symlinks.
39491         (Files): Remove lib/lchown.h
39492         (Depends-on): Add unistd.
39493         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
39494         (Include): Include <unistd.h>, not "lchown.h".
39495         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
39496         REPLACE_LCHOWN.
39497
39498 2007-06-15  Jim Meyering  <jim@meyering.net>
39499
39500         Change license (GPL to LGPL) of fsusage and dependents.
39501         * modules/fsusage (License): Change to LGPL.
39502         * modules/full-read (License): Likewise.
39503         * modules/full-write (License): Likewise.
39504         * modules/safe-read (License): Likewise.
39505         * modules/safe-write (License): Likewise.
39506
39507 2007-06-14  Ben Pfaff  <blp@gnu.org>
39508
39509         Missing part of allocsa -> malloca transition.
39510         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
39511         gl_MALLOCA.
39512
39513 2007-06-12  Bruno Haible  <bruno@clisp.org>
39514
39515         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
39516         to ia64, x86_64, i386.
39517         Reported by Eric Blake.
39518
39519 2007-06-12  Bruno Haible  <bruno@clisp.org>
39520
39521         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
39522         cross-compiling to x86_64.
39523
39524 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
39525
39526         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
39527         glitch reported by Ralf Wildenhues in
39528         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
39529
39530         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
39531         Vin Shelton.
39532
39533 2007-06-11  Bruno Haible  <bruno@clisp.org>
39534
39535         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
39536         replacement string.
39537         Reported by Eric Blake.
39538
39539 2007-06-10  Bruno Haible  <bruno@clisp.org>
39540
39541         Prepare vasnprintf code for use with Unicode strings.
39542         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
39543         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
39544         TYPE_U32_STRING.
39545         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
39546         a_u32_string variants.
39547         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
39548         * lib/printf-args.c: Don't include config.h and the specification
39549         header if PRINTF_FETCHARGS is already defined.
39550         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
39551         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
39552         TYPE_U16_STRING, TYPE_U32_STRING.
39553         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
39554         u16_directive, u16_directives, u32_directive, u32_directives): New
39555         types.
39556         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
39557         New declarations.
39558         * lib/printf-parse.c: Don't include config.h and the specification
39559         header if PRINTF_PARSE is already defined. Eliminate the set of
39560         parameters for WIDE_CHAR_VERSION; the user of this file must provide
39561         them now. Include c-ctype.h.
39562         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
39563         directive and CHAR_T_ONLY_ASCII.
39564         * lib/vasnprintf.c: Don't include config.h and the specification header
39565         if VASNPRINTF is already defined.
39566         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
39567         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
39568         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
39569         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
39570         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
39571         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
39572         code accordingly.
39573         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
39574         pad_ourselves also in this case, with the 'c' and 's' directives, and
39575         with a different notion of "width".
39576         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
39577
39578 2007-06-10  Bruno Haible  <bruno@clisp.org>
39579
39580         * modules/unistr/u32-mbsnlen: New file.
39581         * lib/unistr/u32-mbsnlen.c: New file.
39582
39583         * modules/unistr/u16-mbsnlen: New file.
39584         * lib/unistr/u16-mbsnlen.c: New file.
39585
39586         * modules/unistr/u8-mbsnlen: New file.
39587         * lib/unistr/u8-mbsnlen.c: New file.
39588
39589         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
39590         declarations.
39591
39592 2007-06-10  Bruno Haible  <bruno@clisp.org>
39593
39594         * lib/string_.h (mbsnlen): New declaration.
39595         * lib/mbsnlen.c: New file.
39596         * m4/mbsnlen.m4: New file.
39597         * modules/mbsnlen: New file.
39598         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
39599         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
39600         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
39601
39602 2007-06-10  Bruno Haible  <bruno@clisp.org>
39603
39604         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
39605
39606 2007-06-10  Bruno Haible  <bruno@clisp.org>
39607
39608         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
39609         * lib/mbuiter.h: Likewise.
39610
39611 2007-06-10  Bruno Haible  <bruno@clisp.org>
39612
39613         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
39614         declaration.
39615
39616 2007-06-10  Karl Berry  <karl@gnu.org>
39617
39618         * config/srclist.txt: remove gettext entries, Bruno prefers
39619         to update individually.
39620
39621 2007-06-10  Bruno Haible  <bruno@clisp.org>
39622
39623         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
39624         'maxlen'. Ensure only length + width bytes are allocated, not
39625         length + 1 + width.
39626
39627 2007-06-09  Bruno Haible  <bruno@clisp.org>
39628
39629         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
39630         (CHAR_T): Remove macro.
39631         (VASNPRINTF): Update.
39632
39633 2007-06-09  Bruno Haible  <bruno@clisp.org>
39634
39635         * MODULES.html.sh (Unicode string functions): Add the new modules.
39636
39637         * modules/uniconv/u32-conv-to-enc: New file.
39638         * lib/uniconv/u32-conv-to-enc.c: New file.
39639         * modules/uniconv/u32-conv-to-enc-tests: New file.
39640         * tests/uniconv/test-u32-conv-to-enc.c: New file.
39641
39642         * modules/uniconv/u16-conv-to-enc: New file.
39643         * lib/uniconv/u16-conv-to-enc.c: New file.
39644         * lib/uniconv/u-conv-to-enc.h: New file.
39645         * modules/uniconv/u16-conv-to-enc-tests: New file.
39646         * tests/uniconv/test-u16-conv-to-enc.c: New file.
39647
39648         * modules/uniconv/u8-conv-to-enc: New file.
39649         * lib/uniconv/u8-conv-to-enc.c: New file.
39650         * modules/uniconv/u8-conv-to-enc-tests: New file.
39651         * tests/uniconv/test-u8-conv-to-enc.c: New file.
39652
39653         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
39654         u32_conv_to_encoding): New declarations.
39655
39656 2007-06-09  Bruno Haible  <bruno@clisp.org>
39657
39658         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
39659
39660 2007-06-09  Bruno Haible  <bruno@clisp.org>
39661
39662         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
39663         * modules/malloca: Renamed from modules/allocsa, updated.
39664         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
39665         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
39666         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
39667         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
39668         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
39669         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
39670         * modules/xmalloca: Renamed from modules/xallocsa, updated.
39671         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
39672         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
39673         * modules/c-strcasestr (Depends-on): Update.
39674         * lib/c-strcasestr.c: Update.
39675         * modules/c-strstr (Depends-on): Update.
39676         * lib/c-strstr.c: Update.
39677         * modules/canonicalize-lgpl (Depends-on): Update.
39678         * lib/canonicalize-lgpl.c: Update.
39679         * modules/clean-temp (Depends-on): Update.
39680         * lib/clean-temp.c: Update.
39681         * modules/csharpcomp (Depends-on): Update.
39682         * lib/csharpcomp.c: Update.
39683         * modules/csharpexec (Depends-on): Update.
39684         * lib/csharpexec.c: Update.
39685         * modules/javacomp (Depends-on): Update.
39686         * lib/javacomp.c: Update.
39687         * modules/javaexec (Depends-on): Update.
39688         * lib/javaexec.c: Update.
39689         * modules/mbscasestr (Depends-on): Update.
39690         * lib/mbscasestr.c: Update.
39691         * modules/mbsstr (Depends-on): Update.
39692         * lib/mbsstr.c: Update.
39693         * modules/setenv (Depends-on): Update.
39694         * lib/setenv.c: Update.
39695         * modules/strcasestr (Depends-on): Update.
39696         * lib/strcasestr.c: Update.
39697         * modules/striconveha (Depends-on): Update.
39698         * lib/striconveha.c: Update.
39699         * modules/relocatable-prog-wrapper (Files): Update.
39700         * lib/relocwrapper.c: Update.
39701         * build-aux/install-reloc: Update.
39702         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
39703
39704 2007-06-08  Bruno Haible  <bruno@clisp.org>
39705
39706         Port to uClibc.
39707         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
39708         * lib/fpurge.c (fpurge): Likewise.
39709         * lib/freading.c (freading): Likewise.
39710         * lib/fseeko.c (rpl_fseeko): Likewise.
39711         * lib/fseterr.c (fseterr): Likewise.
39712         * lib/fwriting.c (fwriting): Likewise.
39713         * tests/test-fflush.c (main): Avoid a failure on uClibc.
39714
39715 2007-06-08  Bruno Haible  <bruno@clisp.org>
39716
39717         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
39718         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
39719         * modules/gettext (Files): Add m4/intlmacosx.m4.
39720
39721 2007-06-07  Bruno Haible  <bruno@clisp.org>
39722
39723         * modules/localename-tests: New file.
39724         * tests/test-localename.c: New file.
39725
39726         New module 'localename'.
39727         * lib/localename.h: New file.
39728         * lib/localename.c: New file, from GNU gettext.
39729         * m4/localename.m4: New file.
39730         * modules/localename: New file.
39731
39732 2007-06-07  Bruno Haible  <bruno@clisp.org>
39733
39734         Work around the lack of <wchar.h> on some builds of uClibc.
39735         * doc/headers/wchar.texi: Update.
39736         * lib/wchar_.h: Include <wchar.h> only if it exists.
39737         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
39738         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
39739         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
39740         doesn't exist.
39741         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
39742         * modules/mbfile (Depends-on): Add wchar.
39743         * modules/mbiter (Depends-on): Likewise.
39744         * modules/mbuiter (Depends-on): Likewise.
39745         Reported by Simon Josefsson.
39746
39747 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
39748
39749         Work around problem reported by Steven M. Schweda in
39750         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
39751         Tru64 5.1B with the Compaq compiler environment installed declares
39752         an 'isblank' function but does not define it in the C library.
39753         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
39754         * lib/regex_internal.h (isblank): Likewise.
39755         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
39756         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
39757
39758 2007-06-05  Bruno Haible  <bruno@clisp.org>
39759
39760         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
39761         ia64.
39762         * modules/printf-safe: New file.
39763         * modules/fprintf-posix (Depends-on): Add printf-safe.
39764         * modules/printf-posix (Depends-on): Likewise.
39765         * modules/snprintf-posix (Depends-on): Likewise.
39766         * modules/sprintf-posix (Depends-on): Likewise.
39767         * modules/vasnprintf-posix (Depends-on): Likewise.
39768         * modules/vasprintf-posix (Depends-on): Likewise.
39769         * modules/vfprintf-posix (Depends-on): Likewise.
39770         * modules/vprintf-posix (Depends-on): Likewise.
39771         * modules/vsnprintf-posix (Depends-on): Likewise.
39772         * modules/vsprintf-posix (Depends-on): Likewise.
39773         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
39774         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
39775         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
39776         "no" on i386, x86_64, ia64.
39777         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
39778         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
39779         on i386, x86_64, ia64.
39780         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
39781         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
39782         on i386, x86_64, ia64.
39783         * tests/test-vasnprintf-posix.c: Include float.h.
39784         (LDBL80_WORDS): New macro.
39785         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
39786         on i386, x86_64, ia64.
39787         * tests/test-vasprintf-posix.c: Include float.h.
39788         (LDBL80_WORDS): New macro.
39789         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
39790         on i386, x86_64, ia64.
39791         * tests/test-snprintf-posix.c: Include float.h.
39792         * tests/test-sprintf-posix.c: Likewise.
39793         * tests/test-vsnprintf-posix.c: Likewise.
39794         * tests/test-vsprintf-posix.c: Likewise.
39795
39796 2007-06-05  Bruno Haible  <bruno@clisp.org>
39797
39798         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
39799         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
39800         non-IEEE numbers on i386, x86_64, ia64.
39801         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
39802         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
39803         * tests/test-isnanl.h: Include float.h.
39804         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
39805
39806 2007-06-05  Bruno Haible  <bruno@clisp.org>
39807
39808         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
39809         also the %a / %A. Handle the %a / %A code before this extra handling.
39810
39811 2007-06-05  Bruno Haible  <bruno@clisp.org>
39812
39813         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
39814         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
39815
39816 2007-06-05  Bruno Haible  <bruno@clisp.org>
39817
39818         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
39819         typo in variable name.
39820
39821 2007-06-05  Eric Blake  <ebb9@byu.net>
39822
39823         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
39824         Reported by Simon Josefsson.
39825
39826 2007-06-04  Bruno Haible  <bruno@clisp.org>
39827
39828         Avoid test failures on some PowerPC platforms.
39829         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
39830         Define differently for PowerPC.
39831         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
39832         Reported by Gary V. Vaughan <gary@gnu.org>.
39833
39834 2007-06-02  Bruno Haible  <bruno@clisp.org>
39835
39836         Fix test-stdint failure on FreeBSD/ia64.
39837         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
39838         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
39839         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
39840         * doc/headers/stdint.texi: Update.
39841
39842 2007-06-01  Bruno Haible  <bruno@clisp.org>
39843
39844         * tests/test-binary-io.c (main): Pass a third argument to open().
39845         Reported by Gary V. Vaughan <gary@gnu.org>.
39846
39847 2007-06-01  Bruno Haible  <bruno@clisp.org>
39848
39849         * doc/functions/frexpl.texi: Update for mingw.
39850
39851 2007-06-01  Bruno Haible  <bruno@clisp.org>
39852
39853         * tests/test-lseek.c (main): Disable test of errno for invalid third
39854         argument.
39855         * doc/functions/lseek.texi: Update.
39856         Reported by Gary V. Vaughan <gary@gnu.org>.
39857
39858 2007-05-28  Bruno Haible  <bruno@clisp.org>
39859
39860         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
39861
39862 2007-05-31  Eric Blake  <ebb9@byu.net>
39863
39864         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
39865         cross compiling.
39866
39867 2007-05-30  Eric Blake  <ebb9@byu.net>
39868         and Bruno Haible  <bruno@clisp.org>
39869
39870         Work around mingw test failures exposed by m4-1.4.9b.
39871         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
39872         * tests/test-unistd.c: Disable uid_t and git_t tests for the
39873         moment.
39874
39875 2007-05-30  Bruno Haible  <bruno@clisp.org>
39876
39877         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
39878         assuming that they are closed. Needed on HP-UX 11.
39879
39880 2007-05-29  Bruno Haible  <bruno@clisp.org>
39881
39882         Fix a problem with #include_next.
39883         * lib/dirent_.h: Split the double-inclusion guard.
39884         * lib/fcntl_.h: Likewise.
39885         * lib/float_.h: Likewise.
39886         * lib/iconv_.h: Likewise.
39887         * lib/inttypes_.h: Likewise.
39888         * lib/locale_.h: Likewise.
39889         * lib/math_.h: Likewise.
39890         * lib/netinet_in_.h: Likewise.
39891         * lib/search_.h: Likewise.
39892         * lib/signal_.h: Likewise.
39893         * lib/stdint_.h: Likewise.
39894         * lib/stdio_.h: Likewise.
39895         * lib/stdlib_.h: Likewise.
39896         * lib/string_.h: Likewise.
39897         * lib/sys_select_.h: Likewise.
39898         * lib/sys_socket_.h: Likewise.
39899         * lib/sys_stat_.h: Likewise.
39900         * lib/sys_time_.h: Likewise.
39901         * lib/sysexits_.h: Likewise.
39902         * lib/time_.h: Likewise.
39903         * lib/unistd_.h: Likewise.
39904         * lib/wchar_.h: Likewise.
39905         * lib/wctype_.h: Likewise.
39906
39907 2007-05-29  Bruno Haible  <bruno@clisp.org>
39908
39909         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
39910         for the moment.
39911
39912 2007-05-29  Bruno Haible  <bruno@clisp.org>
39913
39914         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
39915         invocation.
39916         Reported by Eric Blake.
39917
39918 2007-05-29  Bruno Haible  <bruno@clisp.org>
39919
39920         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
39921         compiling case.
39922
39923 2007-05-29  Eric Blake  <ebb9@byu.net>
39924             Bruno Haible  <bruno@clisp.org>
39925
39926         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
39927         cross compiles.
39928
39929 2007-05-28  Eric Blake  <ebb9@byu.net>
39930
39931         * modules/closein-tests (test_closein_LDADD): Support test on
39932         cygwin with libtool.
39933
39934 2007-05-28  Bruno Haible  <bruno@clisp.org>
39935
39936         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
39937         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
39938         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
39939         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
39940         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
39941         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
39942         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
39943         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
39944         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
39945
39946 2007-05-28  Eric Blake  <ebb9@byu.net>
39947
39948         Unconditionally include <config.h> in unit tests.
39949         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
39950         * tests/test-allocsa.c, tests/test-arcfour.c,
39951         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
39952         tests/test-array_list.c, tests/test-array_oset.c,
39953         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
39954         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
39955         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
39956         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
39957         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
39958         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
39959         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
39960         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
39961         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
39962         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
39963         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
39964         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
39965         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
39966         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
39967         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
39968         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
39969         test-md5.c, test-memmem.c, test-printf-posix.c,
39970         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
39971         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
39972         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
39973         test-strcasestr.c, test-striconv.c, test-striconveh.c,
39974         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
39975         test-vasnprintf-posix2.c, test-vasnprintf.c,
39976         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
39977         test-vfprintf-posix.c, test-vprintf-posix.c,
39978         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
39979         test-xvasprintf.c: Likewise.
39980
39981 2007-05-28  Bruno Haible  <bruno@clisp.org>
39982
39983         * gnulib-tool (func_import): Remember the --with-tests command-line
39984         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
39985         Reported by Eric Blake.
39986
39987 2007-05-28  Bruno Haible  <bruno@clisp.org>
39988
39989         * modules/ftell-tests: New file.
39990         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
39991         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
39992
39993         * lib/ftell.c: New file.
39994         * modules/ftell: New file.
39995         * m4/ftell.m4: New file.
39996         * doc/functions/ftell.texi: Update.
39997         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
39998         REPLACE_FTELL.
39999         * lib/stdio_.h (rpl_ftell): New declaration.
40000         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
40001         REPLACE_FTELL.
40002
40003 2007-05-28  Eric Blake  <ebb9@byu.net>
40004
40005         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
40006
40007 2007-05-28  Bruno Haible  <bruno@clisp.org>
40008
40009         * modules/fseek-tests: New file.
40010         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
40011         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
40012
40013         * lib/fseek.c: New file.
40014         * modules/fseek: New file.
40015         * m4/fseek.m4: New file.
40016         * doc/functions/fseek.texi: Update.
40017         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
40018         REPLACE_FSEEK.
40019         * lib/stdio_.h (rpl_fseek): New declaration.
40020         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
40021         REPLACE_FSEEK.
40022
40023 2007-05-28  Bruno Haible  <bruno@clisp.org>
40024
40025         * lib/stdio_.h (fflush): More comments.
40026
40027 2007-05-28  Bruno Haible  <bruno@clisp.org>
40028
40029         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
40030         runtime test.
40031
40032 2007-05-28  Eric Blake  <ebb9@byu.net>
40033
40034         Improve lseek module.
40035         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
40036         * lib/unistd_.h (lseek): Scale back link warning message.
40037         * tests/test-lseek.c: Beef up test.
40038         * tests/test-lseek.sh: Exercise more facets of lseek.
40039         Reported by Bruno Haible.
40040
40041 2007-05-28  Bruno Haible  <bruno@clisp.org>
40042
40043         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
40044         to define.
40045
40046 2007-05-27  Bruno Haible  <bruno@clisp.org>
40047
40048         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
40049
40050 2007-05-27  Bruno Haible  <bruno@clisp.org>
40051
40052         * modules/openmp: New file.
40053         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
40054         Noah Misch.
40055
40056 2007-05-26  Bruno Haible  <bruno@clisp.org>
40057
40058         * modules/chdir-long (Depends-on): Add fchdir.
40059         * modules/chdir-safer (Depends-on): Likewise.
40060         * modules/fts (Depends-on): Likewise.
40061         * modules/fts-lgpl (Depends-on): Likewise.
40062         * modules/openat (Depends-on): Likewise.
40063         * modules/savewd (Depends-on): Likewise.
40064
40065 2007-05-24  Eric Blake  <ebb9@byu.net>
40066
40067         Fix lseek on mingw.
40068         * modules/lseek: New module.
40069         * m4/lseek.m4: New file.
40070         * lib/lseek.c: New file.
40071         * modules/lseek-tests: New file.
40072         * tests/test-lseek.c: New file.
40073         * tests/test-lseek.sh: New file.
40074         * MODULES.html.sh: Document lseek module.
40075         * modules/fflush (Depends-on): Add lseek, fseeko.
40076         * modules/fseeko (Depends-on): Likewise.
40077         * modules/ftello (Depends-on): Likewise.
40078         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
40079         broken.
40080         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
40081         broken.
40082         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
40083         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
40084         * lib/ftello.c (rpl_ftello): Likewise.
40085         * tests/test-fseeko.c (main): Test this.
40086         * tests/test-fseeko.sh: Likewise.
40087         * tests/test-ftello.c (main): Likewise.
40088         * tests/test-ftello.sh: Likewise.
40089         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
40090         implies replacing fseek.
40091         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
40092         HAVE_FTELLO.
40093         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
40094         * modules/unistd (Makefile.am): Likewise.
40095         * lib/unistd_.h (lseek): Declare a replacement.
40096         * doc/functions/lseek.texi (lseek): Document this fix.
40097         * doc/functions/fseek.texi (fseek): Likewise.
40098         * doc/functions/ftell.texi (ftell): Likewise.
40099
40100 2007-05-24  Bruno Haible  <bruno@clisp.org>
40101
40102         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
40103         in the printed representation of a NaN.
40104         * tests/test-vasprintf-posix.c (test_function): Likewise.
40105         * tests/test-snprintf-posix.h (test_function): Likewise.
40106         * tests/test-sprintf-posix.h (test_function): Likewise.
40107         Reported by Eric Blake.
40108
40109 2007-05-23  Eric Blake  <ebb9@byu.net>
40110
40111         Fix fseeko/ftello on cygwin 1.5.24.
40112         * doc/functions/fseeko.texi (fseeko): Document the fix.
40113         * doc/functions/ftello.texi (ftello): Document the fix.
40114         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
40115         * doc/functions/stdout.text (stdout): New file.
40116         * doc/functions/stderr.text (stderr): New file.
40117         * doc/gnulib.texi (Function Substitutes): Use new files.
40118         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
40119         prior to 1.7.0.
40120         * tests/test-ftello.c (main): Likewise for ftello.
40121         * tests/test-fseeko.sh: New file.
40122         * tests/test-ftello.sh: New file.
40123         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
40124         with seekable stdin.
40125         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
40126         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
40127         (gl_REPLACE_FSEEKO): New macro.
40128         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
40129         * modules/fseeko (Files): Distribute fseeko.c.
40130         * modules/ftello (Files): Distribute ftello.c.
40131         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
40132         mode.
40133         * lib/ftello.c (rpl_ftello): New file.
40134         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
40135         fseeko, ftello.
40136         (gl_STDIN_LARGE_OFFSET): New macro.
40137         * modules/stdio (Makefile.am): Perform the replacement.
40138         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
40139
40140 2007-05-23  Bruno Haible  <bruno@clisp.org>
40141
40142         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
40143         GNULIB_POSIXCHECK is defined.
40144
40145 2007-05-21  Bruno Haible  <bruno@clisp.org>
40146
40147         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
40148         Check also the output for NaN arguments. When cross-compiling, guess
40149         no on IRIX.
40150         * lib/vasnprintf.c: Update comments.
40151         * tests/test-vasnprintf-posix.c (strisnan): New function.
40152         (test_function): Use it.
40153         * tests/test-vasprintf-posix.c (strisnan): New function.
40154         (test_function): Use it.
40155         * tests/test-snprintf-posix.h (strisnan): New function.
40156         (test_function): Use it.
40157         * tests/test-sprintf-posix.h (strisnan): New function.
40158         (test_function): Use it.
40159         Reported by Eric Blake.
40160
40161 2007-05-20  Bruno Haible  <bruno@clisp.org>
40162
40163         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
40164         numbers that fails on BeOS.
40165         * doc/functions/frexpl.texi: Update.
40166
40167 2007-05-20  Jim Meyering  <jim@meyering.net>
40168
40169         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
40170         forced upon us by glibc-2.6.
40171
40172 2007-05-20  Bruno Haible  <bruno@clisp.org>
40173
40174         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
40175         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
40176         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
40177         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
40178         NEED_PRINTF_INFINITE.
40179         (is_infinitel): New function.
40180         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
40181         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
40182         gl_PREREQ_VASNPRINTF_INFINITE.
40183         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
40184         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40185         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
40186         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
40187         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
40188         gl_PREREQ_VASNPRINTF_INFINITE.
40189         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40190         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40191         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40192         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40193         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40194         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40195         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40196         * doc/functions/fprintf.texi: Update.
40197         * doc/functions/printf.texi: Update.
40198         * doc/functions/snprintf.texi: Update.
40199         * doc/functions/sprintf.texi: Update.
40200         * doc/functions/vfprintf.texi: Update.
40201         * doc/functions/vprintf.texi: Update.
40202         * doc/functions/vsnprintf.texi: Update.
40203         * doc/functions/vsprintf.texi: Update.
40204
40205 2007-05-20  Bruno Haible  <bruno@clisp.org>
40206
40207         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
40208         was not found in libc.
40209         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
40210
40211 2007-05-20  Bruno Haible  <bruno@clisp.org>
40212
40213         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
40214         printed as "-nan" instead of "nan".
40215         * tests/test-vasprintf-posix.c (test_function): Likewise.
40216         * tests/test-snprintf-posix.h (test_function): Likewise.
40217         * tests/test-sprintf-posix.h (test_function): Likewise.
40218         Needed for HP-UX 11.
40219
40220 2007-05-20  Jim Meyering  <jim@meyering.net>
40221
40222         Fix buggy test for the fchownat-deref bug.
40223         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
40224         symlink required for the run-test.  Without it, this test would
40225         always declare that fchownat doesn't work, and client code would
40226         unnecessarily use the replacement function with fixed libc.
40227         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
40228         Reported by Greg Schafer.
40229
40230 2007-05-19  Bruno Haible  <bruno@clisp.org>
40231
40232         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
40233         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
40234         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
40235         Needed for IRIX 6.5 and Solaris 2.5.1.
40236
40237 2007-05-19  Bruno Haible  <bruno@clisp.org>
40238
40239         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
40240         (test_function): Skip tests involving -0.0 on platforms where
40241         -0.0 = 0.0.
40242         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
40243         (test_function): Skip tests involving -0.0 on platforms where
40244         -0.0 = 0.0.
40245         * tests/test-snprintf-posix.h (have_minus_zero): New function.
40246         (test_function): Skip tests involving -0.0 on platforms where
40247         -0.0 = 0.0.
40248         * tests/test-sprintf-posix.h (have_minus_zero): New function.
40249         (test_function): Skip tests involving -0.0 on platforms where
40250         -0.0 = 0.0.
40251         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
40252         tests.
40253         * tests/test-printf-posix.h (test_function): Likewise.
40254         * tests/test-printf-posix.output: Remove all -0.0 related results.
40255         Needed for IRIX 6.5.
40256
40257 2007-05-19  Bruno Haible  <bruno@clisp.org>
40258
40259         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
40260         printed as "nan0x7fffffff" instead of "nan".
40261         * tests/test-vasprintf-posix.c (test_function): Likewise.
40262         * tests/test-snprintf-posix.h (test_function): Likewise.
40263         * tests/test-sprintf-posix.h (test_function): Likewise.
40264         * tests/test-fprintf-posix.h (NaN): Remove macro.
40265         (test_function): Remove all NaN related tests.
40266         * tests/test-printf-posix.h (NaN): Remove macro.
40267         (test_function): Remove all NaN related tests.
40268         * tests/test-printf-posix.output: Remove all NaN related results.
40269         Needed for IRIX 6.5.
40270
40271 2007-05-19  Bruno Haible  <bruno@clisp.org>
40272
40273         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
40274         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
40275
40276 2007-05-19  Bruno Haible  <bruno@clisp.org>
40277
40278         * lib/float_.h: New file.
40279         * m4/float_h.m4: New file.
40280         * modules/float: New file.
40281         * modules/isnanl (Dependencies): Add float.
40282         * modules/isnanl-nolibm (Dependencies): Likewise.
40283         * modules/mathl (Dependencies): Likewise.
40284         * modules/printf-frexpl (Dependencies): Likewise.
40285         * modules/signbit (Dependencies): Likewise.
40286         * modules/vasnprintf (Dependencies): Likewise.
40287         * doc/headers/float.texi: Update.
40288
40289 2007-05-19  Jim Meyering  <jim@meyering.net>
40290
40291         * lib/utimens.c (gl_futimens): Rename from futimens,
40292         now that glibc-2.6 declares futimens.
40293         * lib/utimens.h: Likewise.
40294
40295 2007-05-19  Bruno Haible  <bruno@clisp.org>
40296
40297         Avoid test failures on mingw.
40298         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
40299         * tests/test-printf-posix.sh: Likewise.
40300         * tests/test-vfprintf-posix.sh: Likewise.
40301         * tests/test-vprintf-posix.sh: Likewise.
40302
40303 2007-05-19  Bruno Haible  <bruno@clisp.org>
40304
40305         Fix *printf result for NaN, Inf, -0.0 on mingw.
40306         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
40307         * lib/vasnprintf.c: Include math.h and isnan.h.
40308         (is_infinite_or_zero): New function.
40309         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
40310         values in the %f, %F, %e, %E, %g, %G directives.
40311         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
40312         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40313         gl_PRINTF_INFINITE and test its result. Invoke
40314         gl_PREREQ_VASNPRINTF_INFINITE.
40315         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40316         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40317         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40318         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40319         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40320         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40321         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40322         * doc/functions/fprintf.texi: Update.
40323         * doc/functions/printf.texi: Update.
40324         * doc/functions/snprintf.texi: Update.
40325         * doc/functions/sprintf.texi: Update.
40326         * doc/functions/vfprintf.texi: Update.
40327         * doc/functions/vprintf.texi: Update.
40328         * doc/functions/vsnprintf.texi: Update.
40329         * doc/functions/vsprintf.texi: Update.
40330
40331 2007-05-19  Bruno Haible  <bruno@clisp.org>
40332
40333         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
40334         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
40335         Instead of multiplying with 10^k, set extra_zeroes to k.
40336         (scale10_round_long_double): Remove function.
40337
40338 2007-05-18  Bruno Haible  <bruno@clisp.org>
40339
40340         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
40341         introduced on 2007-05-06.
40342
40343 2007-05-18  Bruno Haible  <bruno@clisp.org>
40344
40345         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
40346         %g directives.
40347         * tests/test-vasprintf-posix.c (test_function): Likewise.
40348         * tests/test-snprintf-posix.h (test_function): Likewise.
40349         * tests/test-sprintf-posix.h (test_function): Likewise.
40350
40351 2007-05-18  Bruno Haible  <bruno@clisp.org>
40352
40353         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
40354         (strmatch): New function.
40355         (test_function): Test the %f directive on numbers of various exponents.
40356         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
40357         (strmatch): New function.
40358         (test_function): Test the %f directive on numbers of various exponents.
40359         * tests/test-snprintf-posix.h (strmatch): New function.
40360         (test_function): Test the %f directive on numbers of various exponents.
40361         * tests/test-sprintf-posix.h (strmatch): New function.
40362         (test_function): Test the %f directive on numbers of various exponents.
40363         * tests/test-snprintf-posix.c (SIZEOF): New macro.
40364         * tests/test-sprintf-posix.c (SIZEOF): New macro.
40365         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
40366         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
40367
40368 2007-05-18  Bruno Haible  <bruno@clisp.org>
40369
40370         Add support for 'long double' number output.
40371         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
40372         * lib/vasnprintf.c: Include math.h and float+.h.
40373         (mp_limb_t): New type.
40374         (GMP_LIMB_BITS): New macro.
40375         (mp_twolimb_t): New type.
40376         (GMP_TWOLIMB_BITS): New macro.
40377         (mpn_t): New type.
40378         (multiply, divide, convert_to_decimal, decode_long_double,
40379         scale10_round_long_double, scale10_round_decimal_long_double,
40380         floorlog10l): New functions.
40381         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
40382         for the %f, %F, %e, %E, %g, %G directives.
40383         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
40384         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40385         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
40386         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
40387         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
40388         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40389         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40390         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40391         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40392         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40393         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40394         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
40395         * modules/snprintf-posix (Depends-on): Likewise.
40396         * modules/sprintf-posix (Depends-on): Likewise.
40397         * modules/vasnprintf-posix (Depends-on): Likewise.
40398         * modules/vasprintf-posix (Depends-on): Likewise.
40399         * modules/vfprintf-posix (Depends-on): Likewise.
40400         * modules/vsnprintf-posix (Depends-on): Likewise.
40401         * modules/vsprintf-posix (Depends-on): Likewise.
40402         * modules/vasnprintf (Files): Add lib/float+.h.
40403         * doc/functions/fprintf.texi: Update.
40404         * doc/functions/printf.texi: Update.
40405         * doc/functions/snprintf.texi: Update.
40406         * doc/functions/sprintf.texi: Update.
40407         * doc/functions/vfprintf.texi: Update.
40408         * doc/functions/vprintf.texi: Update.
40409         * doc/functions/vsnprintf.texi: Update.
40410         * doc/functions/vsprintf.texi: Update.
40411
40412 2007-05-18  Bruno Haible  <bruno@clisp.org>
40413
40414         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
40415
40416 2007-05-18  Bruno Haible  <bruno@clisp.org>
40417
40418         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
40419         for printing 64-bit integers. Needed for mingw.
40420
40421 2007-05-18  Bruno Haible  <bruno@clisp.org>
40422
40423         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
40424         gl_FUNC_FREXPL_WORKS.
40425         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
40426
40427 2007-05-18  Bruno Haible  <bruno@clisp.org>
40428
40429         * modules/frexpl-nolibm-tests: New file.
40430
40431         * modules/frexpl-nolibm: New file.
40432         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
40433
40434 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
40435
40436         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
40437         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
40438         GCC 4.2, which otherwise issues a lot of warnings.
40439         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
40440         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
40441         Likewise.
40442         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
40443         * modules/iconv_open (iconv.h): Likewise.
40444         * modules/locale (locale.h): Likewise.
40445         * modules/netinet_in (netinet/in.h): Likewise.
40446         * modules/sys_select (sys_select.h): Likewise.
40447         * modules/sys_socket (sys/socket.h): Likewise.
40448         * modules/sys_stat (sys/stat.h): Likewise.
40449         * modules/sysexits (sysexits.h): Likewise.
40450         * modules/unistd (unistd.h): Likewise.
40451
40452 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40453
40454         * modules/closein-tests (Makefile.am): Distribute
40455         `test-closein.sh'.
40456
40457 2007-05-17  Bruno Haible  <bruno@clisp.org>
40458
40459         * tests/test-printf-posix.output: Renamed from
40460         tests/test-fprintf-posix.out.
40461         * modules/fprintf-posix-tests: Update.
40462         * modules/printf-posix-tests: Update.
40463         * modules/vfprintf-posix-tests: Update.
40464         * modules/vprintf-posix-tests: Update.
40465         * tests/test-fprintf-posix.sh: Update.
40466         * tests/test-printf-posix.sh: Update.
40467         * tests/test-vfprintf-posix.sh: Update.
40468         * tests/test-vprintf-posix.sh: Update.
40469         Reported by Ralf Wildenhues.
40470
40471 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
40472
40473         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
40474         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
40475         GCC 4.2, which otherwise issues a lot of warnings.
40476         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
40477         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
40478         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
40479         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
40480         it should no longer be needed.
40481         * lib/string_.h: Likewise.
40482         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
40483         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
40484         * modules/inttypes (inttypes.h): Likewise.
40485         * modules/math (math.h): Likewise.
40486         * modules/search (search.h): Likewise.
40487         * modules/signal (signal.h): Likewise.
40488         * modules/stdint (stdint.h): Likewise.
40489         * modules/stdio (stdio.h): Likewise.
40490         * modules/stdlib (stdlib.h): Likewise.
40491         * modules/string (string.h): Likewise.
40492         * modules/sys_time (sys/time.h): Likewise.
40493         * modules/time (time.h): Likewise.
40494         * modules/wchar (wchar.h): Likewise.
40495         * modules/wctype (wtype.h): Likewise.
40496
40497 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
40498
40499         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
40500
40501 2007-05-13  Bruno Haible  <bruno@clisp.org>
40502
40503         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
40504         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
40505         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
40506         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
40507         (gl_PREREQ_STRTOK_R): Don't require it here.
40508
40509 2007-05-13  Bruno Haible  <bruno@clisp.org>
40510
40511         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
40512         when used in C++ mode.
40513
40514 2007-05-12  Bruno Haible  <bruno@clisp.org>
40515
40516         * lib/linebuffer.h: Tweak doc.
40517         * lib/linebuffer.c: Likewise.
40518
40519 2007-05-12  James Youngman  <jay@gnu.org>
40520
40521         * lib/linebuffer.c (readlinebuffer_delim): New function,
40522         like readlinebuffer, but use a caller-specified delimiter.
40523         (readlinebuffer): Just call readlinebuffer_delim with '\n'
40524         as the delimiter.
40525         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
40526
40527 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
40528
40529         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
40530         * modules/openat (Files): Remove openat-die.c.
40531         (Depends-on): Add openat-die.
40532         * modules/openat-die: New module.
40533
40534 2007-05-06  Bruno Haible  <bruno@clisp.org>
40535
40536         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
40537         Update with info about Cygwin.
40538         * doc/functions/fprintf.texi: Update.
40539         * doc/functions/printf.texi: Update.
40540         * doc/functions/snprintf.texi: Update.
40541         * doc/functions/sprintf.texi: Update.
40542         * doc/functions/vfprintf.texi: Update.
40543         * doc/functions/vprintf.texi: Update.
40544         * doc/functions/vsnprintf.texi: Update.
40545         * doc/functions/vsprintf.texi: Update.
40546         Reported by Eric Blake.
40547
40548 2007-05-06  Bruno Haible  <bruno@clisp.org>
40549
40550         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
40551         padding ourselves for the floating-point directives.
40552         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
40553         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
40554         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
40555         gl_PRINTF_FLAG_ZERO and test its result. Invoke
40556         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
40557         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40558         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
40559         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40560         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40561         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40562         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40563         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40564         * tests/test-snprintf-posix.h (test_function): Also check the width
40565         and some flags in the %f directive.
40566         * tests/test-sprintf-posix.h (test_function): Likewise.
40567         * tests/test-vasnprintf-posix.c (test_function): Likewise.
40568         * tests/test-vasprintf-posix.c (test_function): Likewise.
40569         * doc/functions/fprintf.texi: Update.
40570         * doc/functions/printf.texi: Update.
40571         * doc/functions/snprintf.texi: Update.
40572         * doc/functions/sprintf.texi: Update.
40573         * doc/functions/vfprintf.texi: Update.
40574         * doc/functions/vprintf.texi: Update.
40575         * doc/functions/vsnprintf.texi: Update.
40576         * doc/functions/vsprintf.texi: Update.
40577
40578 2007-05-06  Bruno Haible  <bruno@clisp.org>
40579
40580         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
40581         pass the ' flag character to sprintf or snprintf.
40582         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
40583         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
40584         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
40585         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
40586         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
40587         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40588         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
40589         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40590         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40591         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40592         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40593         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40594         * tests/test-snprintf-posix.h (test_function): Also check the grouping
40595         flag.
40596         * tests/test-sprintf-posix.h (test_function): Likewise.
40597         * tests/test-vasnprintf-posix.c (test_function): Likewise.
40598         * tests/test-vasprintf-posix.c (test_function): Likewise.
40599         * doc/functions/fprintf.texi: Update.
40600         * doc/functions/printf.texi: Update.
40601         * doc/functions/snprintf.texi: Update.
40602         * doc/functions/sprintf.texi: Update.
40603         * doc/functions/vfprintf.texi: Update.
40604         * doc/functions/vprintf.texi: Update.
40605         * doc/functions/vsnprintf.texi: Update.
40606         * doc/functions/vsprintf.texi: Update.
40607
40608 2007-05-01  Bruno Haible  <bruno@clisp.org>
40609
40610         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
40611
40612 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
40613
40614         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
40615         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
40616
40617 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
40618
40619         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
40620         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
40621         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
40622
40623 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
40624
40625         * lib/argp-help.c (struct hol_entry): New member `ord'.
40626         (HOL_ENTRY_PTRCMP): Use ord for comparison
40627         (hol_sort): Initialize ord.
40628
40629 2007-05-01  Bruno Haible  <bruno@clisp.org>
40630
40631         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
40632         Reported by Eric Blake.
40633         * doc/gnulib.texi (Function Substitutes): Update.
40634
40635 2007-05-01  Bruno Haible  <bruno@clisp.org>
40636
40637         * doc/functions.texi: Remove file, now redundant through
40638         doc/functions/*.texi.
40639
40640 2007-05-01  Bruno Haible  <bruno@clisp.org>
40641
40642         * modules/argp (Depends-on): Add sleep.
40643
40644 2007-05-01  Bruno Haible  <bruno@clisp.org>
40645
40646         * modules/sleep-tests: New file.
40647         * tests/test-sleep.c: New file.
40648
40649         * modules/sleep: New file.
40650         * lib/sleep.c: New file.
40651         * m4/sleep.m4: New file.
40652         * lib/unistd_.h (sleep): New declaration.
40653         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
40654         HAVE_SLEEP.
40655         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
40656         * doc/functions/sleep.texi: Document the sleep module.
40657
40658 2007-05-01  Bruno Haible  <bruno@clisp.org>
40659
40660         * lib/sigprocmask.h: Remove file.
40661         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
40662         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
40663         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
40664         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
40665         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
40666         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
40667         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
40668         HAVE_SIGSET_T as a shell variable.
40669         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
40670         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
40671         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
40672         (Depends-on): Add signal. Remove verify.
40673         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
40674         (Include): Mention <signal.h> instead of sigprocmask.h.
40675         * NEWS: Mention the change.
40676         * lib/fatal-signal.c: Don't include sigprocmask.h.
40677
40678 2007-05-01  Bruno Haible  <bruno@clisp.org>
40679
40680         * modules/signal: New file.
40681         * lib/signal_.h: New file.
40682         * m4/signal_h.m4: New file.
40683
40684 2007-05-01  Bruno Haible  <bruno@clisp.org>
40685
40686         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
40687         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
40688         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
40689         HAVE_WCTYPE_CTMP_BUG into wctype.h.
40690
40691 2007-05-01  Bruno Haible  <bruno@clisp.org>
40692
40693         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
40694         configure time.
40695         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
40696         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
40697         * modules/sys_stat (Makefile.am): Substitute their values into
40698         sys/stat.h.
40699
40700 2007-05-01  Bruno Haible  <bruno@clisp.org>
40701
40702         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
40703         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
40704         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
40705
40706 2007-05-01  Bruno Haible  <bruno@clisp.org>
40707
40708         * doc/header/assert.texi: Undo last change: don't mention the gnulib
40709         'assert' module here.
40710
40711 2007-05-01  Bruno Haible  <bruno@clisp.org>
40712
40713         * doc/functions/*.texi: New files.
40714         * doc/functions/google-ranking.txt: New file.
40715         * doc/gnulib.texi (Function Substitutes): New chapter.
40716         (ctime, inet_ntoa): Remove sections.
40717         * doc/ctime.texi: Remove file.
40718         * doc/inet_ntoa.texi: Remove file.
40719         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
40720         dependencies.
40721         (%.info): New rule, specifying a --reference-limit.
40722
40723 2007-05-01  Bruno Haible  <bruno@clisp.org>
40724
40725         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
40726
40727 2007-05-01  Bruno Haible  <bruno@clisp.org>
40728
40729         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
40730         the portability of 'mkdir' to mingw systems.
40731
40732 2007-05-01  Bruno Haible  <bruno@clisp.org>
40733
40734         * doc/headers/google-ranking.txt: New file.
40735
40736 2007-04-30  Eric Blake  <ebb9@byu.net>
40737
40738         Prefer fseeko to fseek.
40739         * modules/getpass (Depends-on): Add fseeko.
40740         * lib/getpass.c (getpass): Use fseeko, not fseek.
40741
40742 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
40743
40744         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
40745         assumes the sorting is stable, while most qsort implementations
40746         are not.  Use argument addresses to ensure they never compare as
40747         equal.
40748
40749         * tests/test-argp-2.sh (usage-indent test): Fix output
40750         (func_compare): Restore diff options
40751         * tests/test-argp.c: Restore #include "progname.h"
40752
40753 2007-04-29  Bruno Haible  <bruno@clisp.org>
40754
40755         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
40756         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
40757         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
40758         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40759         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
40760         (configure.ac): Define CHECK_SNPRINTF_POSIX.
40761         (TESTS, check_PROGRAMS): Add test-snprintf.
40762         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
40763         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
40764         (TESTS, check_PROGRAMS): Add test-vsnprintf.
40765         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
40766         assertions that fail on HP-UX, OSF/1, or IRIX.
40767         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
40768
40769 2007-04-29  Bruno Haible  <bruno@clisp.org>
40770
40771         * MODULES.html.sh (posix_functions): Remove 'contents'.
40772
40773 2007-04-29  Karl Berry  <karl@gnu.org>
40774
40775         * config/srclist.txt (gendocs_template_min): new entry.
40776
40777 2007-04-29  Bruno Haible  <bruno@clisp.org>
40778
40779         Work around fpurge bug on BSD systems.
40780         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
40781         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
40782         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
40783         fpurge to rpl_fpurge if the system already has this function.
40784         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
40785         the case where the system already has this function. Correct invariants
40786         on BSD systems.
40787         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
40788         BSD systems.
40789
40790 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
40791
40792         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
40793         proposed by Sven Verdoolaege.
40794
40795         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
40796         options.
40797         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
40798         (usage and help tests): Update
40799
40800 2007-04-29  Bruno Haible  <bruno@clisp.org>
40801
40802         * tests/test-fflush.c (main): Use a file of size 17, not 10.
40803         Print more information in case of failure. Disable a test on BeOS.
40804
40805 2007-04-29  Bruno Haible  <bruno@clisp.org>
40806
40807         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
40808         This helps debugging on systems on which no gdb is available.
40809
40810 2007-04-29  Bruno Haible  <bruno@clisp.org>
40811
40812         * lib/freading.h: Improve comments.
40813         * lib/fwriting.h: Likewise.
40814         * tests/test-freading.c (main): Don't check freading immediately after
40815         repositioning. Needed for glibc.
40816
40817 2007-04-29  Bruno Haible  <bruno@clisp.org>
40818
40819         * lib/freading.c (freading): Trivial simplification.
40820
40821 2007-04-28  Bruno Haible  <bruno@clisp.org>
40822
40823         * tests/test-fwriting.c (main): Also test the interaction between
40824         fflush and fwriting.
40825         * modules/fwriting-tests (Depends-on): Add fflush.
40826
40827         * tests/test-freading.c (main): Also test the interaction between
40828         fflush and freading.
40829         * modules/freading-tests (Depends-on): Add fflush.
40830
40831 2007-04-28  Bruno Haible  <bruno@clisp.org>
40832
40833         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
40834         fseeko and ftello.
40835         Suggested by Eric Blake.
40836
40837 2007-04-28  Jim Meyering  <jim@meyering.net>
40838
40839         Avoid false-negative in gl_STDINT_H's C99 conformance test.
40840         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
40841         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
40842
40843 2007-04-27  Eric Blake  <ebb9@byu.net>
40844
40845         * doc/headers/assert.texi (assert.h): Document assert module use.
40846
40847 2007-04-27  Bruno Haible  <bruno@clisp.org>
40848
40849         * doc/headers/*.texi: New files.
40850         * doc/gnulib.texi (Header File Substitutes): New chapter.
40851         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
40852         dependencies.
40853         (standards.info ,standards.html, standards.dvi): Update dependencies.
40854         (mostlyclean, clean): New targets.
40855
40856 2007-04-27  Bruno Haible  <bruno@clisp.org>
40857
40858         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
40859         * modules/sysexits (Files, Makefile.am): Update.
40860
40861         * lib/sys_socket_.h: Renamed from lib/socket_.h.
40862         * modules/sys_socket (Files, Makefile.am): Update.
40863
40864         * lib/sys_stat_.h: Renamed from lib/stat_.h.
40865         * modules/sys_stat (Files, Makefile.am): Update.
40866
40867 2007-04-27  Eric Blake  <ebb9@byu.net>
40868
40869         * lib/freading.h: Improve comments.
40870         * lib/fwriting.h: Likewise.
40871         * lib/fflush.c: Likewise.
40872
40873         Fix closein for mingw.
40874         * modules/closein-tests: Add tests for closein.
40875         * tests/test-closein.c: New file.
40876         * tests/test-closein.sh: Likewise.
40877         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
40878         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
40879
40880 2007-04-27  Bruno Haible  <bruno@clisp.org>
40881
40882         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
40883         version is < 6.
40884         * lib/math_.h [__DECC]: Likewise.
40885         * lib/stdio_.h [__DECC]: Likewise.
40886         * lib/stdlib_.h [__DECC]: Likewise.
40887         * lib/string_.h [__DECC]: Likewise.
40888         * lib/time_.h [__DECC]: Likewise.
40889         * lib/wchar_.h [__DECC]: Likewise.
40890         * lib/wctype_.h [__DECC]: Likewise.
40891
40892 2007-04-27  Bruno Haible  <bruno@clisp.org>
40893
40894         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
40895
40896 2007-04-27  Bruno Haible  <bruno@clisp.org>
40897
40898         * lib/fflush.c: Add comments.
40899         * modules/fpurge-tests (Depends-on): Add fflush.
40900         * modules/freadable-tests (Depends-on): Likewise.
40901         * modules/fwritable-tests (Depends-on): Likewise.
40902
40903 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
40904
40905         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
40906         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
40907         Report by Bruno Haible <bruno@clisp.org>.
40908
40909 2007-04-26  Eric Blake  <ebb9@byu.net>
40910
40911         Fix fflush on mingw.
40912         * modules/fflush (Depends-on): Add freading.
40913         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
40914         but unread data.
40915
40916 2007-04-26  Eric Blake  <ebb9@byu.net>
40917         and Bruno Haible  <bruno@clisp.org>
40918
40919         Implement freading and fwriting.
40920         * lib/freading.c: New file.
40921         * lib/freading.h: Likewise.
40922         * m4/freading.m4: Likewise.
40923         * modules/freading: Likewise.
40924         * modules/freading-tests: Likewise.
40925         * tests/test-freading.c: Likewise.
40926         * lib/fwriting.c: New file.
40927         * lib/fwriting.h: Likewise.
40928         * m4/fwriting.m4: Likewise.
40929         * modules/fwriting: Likewise.
40930         * modules/fwriting-tests: Likewise.
40931         * tests/test-fwriting.c: Likewise.
40932         * MODULES.html.sh (File stream based Input/Output): Mention them.
40933
40934 2007-04-26  Bruno Haible  <bruno@clisp.org>
40935
40936         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
40937         'long' when we assume it.
40938         Suggested by Eric Blake.
40939
40940 2007-04-26  Bruno Haible  <bruno@clisp.org>
40941
40942         Ensure fseeko, ftello are declared on glibc systems.
40943         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
40944         * modules/fseeko (configure.ac-early): Likewise.
40945         * modules/ftello (configure.ac-early): Likewise.
40946         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
40947         AC_FUNC_FSEEKO for this.
40948         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
40949         (gl_CHECK_FSEEKO): Remove macro.
40950
40951 2007-04-26  Bruno Haible  <bruno@clisp.org>
40952
40953         * tests/test-fflush.c (main): Also check the ftell result after
40954         fflush and fseek/fseeko.
40955         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
40956         file descriptor position cache in the stream.
40957         * lib/fseeko.c (rpl_fseeko): Likewise.
40958
40959 2007-04-26  Bruno Haible  <bruno@clisp.org>
40960
40961         * modules/fflush-tests (Depends-on): Add fseeko.
40962
40963 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
40964             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40965
40966         * lib/argz_.h: ensure error_t definition is obtained in same
40967         mechanism system argz.h would have.
40968         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
40969         argz facilities are known bad.  Err on the side of caution if
40970         cross-compiling.
40971
40972 2007-04-25  Eric Blake  <ebb9@byu.net>
40973
40974         * lib/fpurge.c (includes): Use stdlib.h for free.
40975         * tests/test-fflush.c (main): Also test fflush-fseeko.
40976
40977 2007-04-25  Bruno Haible  <bruno@clisp.org>
40978
40979         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
40980         * lib/fseeko.c: New file.
40981         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
40982         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
40983         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
40984         gl_FUNC_FSEEKO.
40985         (gl_FUNC_FSEEKO): Invoke it.
40986         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
40987         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
40988         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
40989
40990 2007-04-25  Bruno Haible  <bruno@clisp.org>
40991
40992         * modules/fflush (Depends-on): Add ftello.
40993
40994 2007-04-25  Bruno Haible  <bruno@clisp.org>
40995
40996         * modules/ftello-tests: New file.
40997         * tests/test-ftello.c: New file.
40998
40999         * modules/ftello: New file.
41000         * m4/ftello.m4: New file.
41001         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
41002         HAVE_FTELLO.
41003         * lib/stdio_.h (ftello): New declaration.
41004         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
41005         HAVE_FTELLO.
41006
41007 2007-04-25  Bruno Haible  <bruno@clisp.org>
41008
41009         * modules/fseeko-tests: New file.
41010         * tests/test-fseeko.c: New file.
41011
41012         * modules/fseeko: New file.
41013         * m4/fseeko.m4: New file.
41014         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
41015         HAVE_FSEEKO.
41016         * lib/stdio_.h (fseeko): New declaration.
41017         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
41018         HAVE_FSEEKO.
41019
41020 2007-04-25  Bruno Haible  <bruno@clisp.org>
41021
41022         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
41023
41024 2007-04-25  Bruno Haible  <bruno@clisp.org>
41025
41026         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
41027         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
41028         * tests/test-unistd.c: Likewise.
41029         * tests/test-fcntl.c: Likewise.
41030
41031 2007-04-23  Eric Blake  <ebb9@byu.net>
41032
41033         * lib/fflush.c: Fix missing include.
41034         Reported by Bruno Haible.
41035
41036 2007-04-23  Bruno Haible  <bruno@clisp.org>
41037
41038         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
41039         Reported by Eric Blake.
41040
41041 2007-04-23  Bruno Haible  <bruno@clisp.org>
41042
41043         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
41044
41045 2007-04-23  Bruno Haible  <bruno@clisp.org>
41046
41047         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
41048
41049 2007-04-23  Bruno Haible  <bruno@clisp.org>
41050
41051         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
41052         Needed on HP-UX 11.
41053
41054 2007-04-16  Eric Blake  <ebb9@byu.net>
41055
41056         Make fflush rely on fpurge.
41057         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
41058         open coding all variants.
41059         * modules/fflush (Depends-on): Add fpurge and unistd.
41060         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
41061         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
41062
41063         Fix --with-tests compilation on cygwin.
41064         * modules/argmatch-tests (Makefile.am): List gnulib library first
41065         in LDADD.
41066         * modules/argp-tests (Makefile.am): Likewise.
41067         * modules/array-list-tests (Makefile.am): Likewise.
41068         * modules/array-oset-tests (Makefile.am): Likewise.
41069         * modules/avltree-list-tests (Makefile.am): Likewise.
41070         * modules/avltree-oset-tests (Makefile.am): Likewise.
41071         * modules/avltreehash-list-tests (Makefile.am): Likewise.
41072         * modules/carray-list-tests (Makefile.am): Likewise.
41073         * modules/dirname-tests (Makefile.am): Likewise.
41074         * modules/frexp-tests (Makefile.am): Likewise.
41075         * modules/isnanl-tests (Makefile.am): Likewise.
41076         * modules/linked-list-tests (Makefile.am): Likewise.
41077         * modules/linkedhash-list-tests (Makefile.am): Likewise.
41078         * modules/lock-tests (Makefile.am): Likewise.
41079         * modules/rbtree-list-tests (Makefile.am): Likewise.
41080         * modules/rbtree-oset-tests (Makefile.am): Likewise.
41081         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
41082         * modules/tls-tests (Makefile.am): Likewise.
41083         * modules/tsearch-tests (Makefile.am): Likewise.
41084         * modules/xvasprintf-tests (Makefile.am): Likewise.
41085
41086         Fix fpurge for cygwin.
41087         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
41088         value.
41089         * modules/fpurge-tests (Depends-on): Clean up trash.
41090
41091 2007-04-16  Simon Josefsson  <simon@josefsson.org>
41092
41093         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
41094
41095         * m4/autobuild.m4: Re-indent.
41096
41097 2007-04-13  Bruno Haible  <bruno@clisp.org>
41098
41099         * modules/fpurge-tests: New file.
41100         * tests/test-fpurge.c: New file.
41101
41102         * modules/fpurge: New file.
41103         * lib/fpurge.h: New file.
41104         * lib/fpurge.c: New file.
41105         * m4/fpurge.m4: New file.
41106
41107 2007-04-13  Bruno Haible  <bruno@clisp.org>
41108
41109         * modules/fbufmode-tests: New file.
41110         * tests/test-fbufmode.c: New file.
41111
41112         * modules/fbufmode: New file.
41113         * lib/fbufmode.h: New file.
41114         * lib/fbufmode.c: New file.
41115         * m4/fbufmode.m4: New file.
41116
41117 2007-04-13  Bruno Haible  <bruno@clisp.org>
41118
41119         * modules/fwritable-tests: New file.
41120         * tests/test-fwritable.c: New file.
41121
41122         * modules/fwritable: New file.
41123         * lib/fwritable.h: New file.
41124         * lib/fwritable.c: New file.
41125         * m4/fwritable.m4: New file.
41126
41127 2007-04-13  Bruno Haible  <bruno@clisp.org>
41128
41129         * modules/freadable-tests: New file.
41130         * tests/test-freadable.c: New file.
41131
41132         * modules/freadable: New file.
41133         * lib/freadable.h: New file.
41134         * lib/freadable.c: New file.
41135         * m4/freadable.m4: New file.
41136
41137 2007-04-13  Bruno Haible  <bruno@clisp.org>
41138
41139         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
41140         MOSTLYCLEANFILES.
41141
41142 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
41143
41144         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
41145         gzip bootstrap.conf to avoid dragging in i18n machinery.
41146         (gnulib_tool_option): Use it.
41147
41148 2007-04-13  Bruno Haible  <bruno@clisp.org>
41149
41150         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
41151         %F directives.
41152         * tests/test-vasprintf-posix.c (test_function): Likewise.
41153         * tests/test-snprintf-posix.h (test_function): Likewise.
41154         * tests/test-sprintf-posix.h (test_function): Likewise.
41155         * tests/test-fprintf-posix.h (test_function): Likewise.
41156         * tests/test-printf-posix.h (test_function): Likewise.
41157         * tests/test-fprintf-posix.out: Likewise.
41158
41159 2007-04-13  Bruno Haible  <bruno@clisp.org>
41160
41161         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
41162         * modules/tls-tests (configure.ac): Likewise.
41163         Reported by Arto C. Nirkko <anirkko@insel.ch>.
41164
41165 2007-04-13  Bruno Haible  <bruno@clisp.org>
41166
41167         * lib/tls.c (glthread_tls_get): Fix return type.
41168         Patch by Arto C. Nirkko <anirkko@insel.ch>.
41169
41170 2007-04-12  Eric Blake  <ebb9@byu.net>
41171
41172         * modules/gettime (Depends-on): Remove gettime.
41173         Reported by Dmitry V. Levin.
41174
41175 2007-04-12  Bruno Haible  <bruno@clisp.org>
41176
41177         * modules/fflush (Include): Mention <stdio.h>.
41178         * modules/strtoimax (Include): Mention <inttypes.h>.
41179         * modules/strtoumax (Include): Likewise.
41180
41181 2007-04-12  Eric Blake  <ebb9@byu.net>
41182
41183         * .cvsignore: New file.
41184         * .gitignore: Likewise.
41185
41186 2007-04-12  Bruno Haible  <bruno@clisp.org>
41187
41188         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
41189         not before, since $(LDADD) often contains libgnu.a.
41190         * modules/striconv-tests (test_striconv_LDADD): Likewise.
41191         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
41192         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
41193         Needed on Cygwin.
41194
41195 2007-04-12  Eric Blake  <ebb9@byu.net>
41196
41197         Work around glibc's failure to flush stdin on fclose.
41198         * lib/closein.c (close_stdin): Flush stdin before closing.
41199
41200         Work around glibc's failure to reset seekable stdin on exit.
41201         * modules/closein: New module.
41202         * lib/closein.c: New file.
41203         * lib/closein.h: Likewise.
41204         * m4/closein.m4: Likewise.
41205         * MODULES.html.sh (File stream based Input/Output): Document it.
41206
41207 2007-04-12  Simon Josefsson  <simon@josefsson.org>
41208
41209         * gnulib-tool: Rename generated 'autobuild' script to
41210         'do-autobuild' in --create-megatestdir output.
41211
41212         * doc/gnulib.texi (Build robot for gnulib): Fix.
41213
41214 2007-04-12  Simon Josefsson  <simon@josefsson.org>
41215
41216         * modules/sysexits (Depends-on): Add absolute-header.
41217
41218 2007-04-12  Eric Blake  <ebb9@byu.net>
41219
41220         No need to preserve errno on success.
41221         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
41222         Reported by Bruno Haible.
41223
41224 2007-04-12  Simon Josefsson  <simon@josefsson.org>
41225
41226         * MODULES.html.sh (Support for maintaining and releasing
41227         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
41228
41229 2007-04-12  Simon Josefsson  <simon@josefsson.org>
41230
41231         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
41232
41233 2007-04-12  Simon Josefsson  <simon@josefsson.org>
41234
41235         * modules/autobuild: New module.
41236
41237         * m4/autobuild.m4: New file.
41238
41239 2007-04-11  Bruno Haible  <bruno@clisp.org>
41240
41241         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
41242         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
41243         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
41244         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
41245         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
41246         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41247         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41248         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
41249         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41250         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41251         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
41252         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41253         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41254         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
41255         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41256         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41257         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
41258         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41259         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41260         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
41261         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41262         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41263         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
41264         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41265         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41266         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
41267         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
41268         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
41269         Reported by Eric Blake.
41270
41271 2007-04-11  Bruno Haible  <bruno@clisp.org>
41272
41273         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
41274
41275 2007-04-10  Bruno Haible  <bruno@clisp.org>
41276
41277         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
41278         for NaN and Infinity. Needed on FreeBSD 6.1.
41279         * tests/test-vasnprintf-posix.c (test_function): Undo last change
41280         regarding results for "%010a" of Infinity and NaN.
41281         * tests/test-vasprintf-posix.c (test_function): Likewise.
41282         * tests/test-snprintf-posix.h (test_function): Likewise.
41283         * tests/test-sprintf-posix.h (test_function): Likewise.
41284         * tests/test-fprintf-posix.h (test_function): Likewise.
41285         * tests/test-printf-posix.h (test_function): Likewise.
41286         * tests/test-fprintf-posix.out: Likewise.
41287
41288 2007-04-10  Bruno Haible  <bruno@clisp.org>
41289
41290         * modules/locale-tests: New file.
41291         * tests/test-locale.c: New file.
41292
41293         * modules/locale: New file.
41294         * lib/locale_.h: New file.
41295         * m4/locale_h.m4: New file.
41296
41297 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
41298             Bruno Haible  <bruno@clisp.org>
41299
41300         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
41301         be determined, test for availability of the copysignf, copysign,
41302         copysignl functions.
41303         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
41304         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
41305         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
41306
41307 2007-04-09  Eric Blake  <ebb9@byu.net>
41308
41309         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
41310         * modules/stdio (Makefile.am): Support fflush.
41311         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
41312         * modules/fflush: New file.
41313         * lib/fflush.c: Likewise.
41314         * m4/fflush.m4: Likewise.
41315         * modules/fflush-tests: New test.
41316         * tests/test-fflush.c: Likewise.
41317         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
41318
41319 2007-04-06  Bruno Haible  <bruno@clisp.org>
41320
41321         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
41322         (VASNPRINTF): Use signbit for faster determination whether to print a
41323         minus sign.
41324         * modules/vasnprintf (Files): Remove lib/float+.h.
41325         * modules/fprintf-posix (Depends-on): Add signbit.
41326         * modules/snprintf-posix (Depends-on): Likewise.
41327         * modules/sprintf-posix (Depends-on): Likewise.
41328         * modules/vasnprintf-posix (Depends-on): Likewise.
41329         * modules/vasprintf-posix (Depends-on): Likewise.
41330         * modules/vfprintf-posix (Depends-on): Likewise.
41331         * modules/vsnprintf-posix (Depends-on): Likewise.
41332         * modules/vsprintf-posix (Depends-on): Likewise.
41333
41334 2007-04-06  Bruno Haible  <bruno@clisp.org>
41335
41336         * tests/test-frexp.c (main): Test also the sign bit of zero results.
41337         * tests/test-frexpl.c (main): Likewise.
41338         * tests/test-ldexpl.c (main): Likewise.
41339         * modules/frexp-tests (Depends-on): Add signbit.
41340         * modules/frexpl-tests (Depdends-on): Likewise.
41341         * modules/ldexpl-tests (Depdends-on): Likewise.
41342
41343 2007-04-06  Bruno Haible  <bruno@clisp.org>
41344
41345         * modules/signbit-tests: New file.
41346         * tests/test-signbit.c: New file.
41347
41348         * modules/signbit: New file.
41349         * lib/signbitf.c: New file.
41350         * lib/signbitd.c: New file.
41351         * lib/signbitl.c: New file.
41352         * m4/signbit.m4: New file.
41353         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
41354         (signbit): New macro.
41355         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
41356         REPLACE_SIGNBIT.
41357         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
41358         REPLACE_FREXPL into math.h.
41359
41360 2007-04-06  Bruno Haible  <bruno@clisp.org>
41361
41362         * modules/isnanf-nolibm-tests: New file.
41363         * tests/test-isnanf.c: New file.
41364
41365         * modules/isnanf-nolibm: New file.
41366         * lib/isnanf.h: New file.
41367         * lib/isnanf.c: New file.
41368         * lib/isnan.c: Consider the USE_FLOAT macro.
41369         * m4/isnanf.m4: New file.
41370
41371 2007-04-06  Bruno Haible  <bruno@clisp.org>
41372
41373         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
41374         (Link): New section.
41375
41376         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
41377
41378 2007-04-06  Bruno Haible  <bruno@clisp.org>
41379
41380         Assume the 'long double' type.
41381         * m4/longdouble.m4: Remove file.
41382         * config/srclist.txt: Don't mention longdouble.m4.
41383         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
41384         * lib/float+.h: Likewise.
41385         * lib/frexp.c: Likewise.
41386         * lib/printf-args.h: Likewise.
41387         * lib/printf-args.c: Likewise.
41388         * lib/printf-frexp.c: Likewise.
41389         * lib/printf-parse.c: Likewise.
41390         * lib/vasnprintf.c: Likewise.
41391         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
41392         * m4/intl.m4: Likewise.
41393         * m4/isnanl.m4: Likewise.
41394         * m4/printf.m4: Likewise.
41395         * m4/printf-frexpl.m4: Likewise.
41396         * m4/vasnprintf.m4: Likewise.
41397         * modules/allocsa (Files): Remove m4/longdouble.m4.
41398         * modules/gettext (Files): Likewise.
41399         * modules/relocatable-prog-wrapper (Files): Likewise.
41400         * modules/vasnprintf (Files): Likewise.
41401         * modules/isnanl (Files): Likewise.
41402         (Include): Simplify.
41403         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
41404         (Include): Simplify.
41405         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
41406         (Include): Simplify.
41407         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
41408         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
41409         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
41410         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
41411         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
41412         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
41413         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
41414         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
41415         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
41416         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
41417         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
41418         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
41419         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
41420         * tests/test-isnanl.c: Likewise.
41421         * tests/test-snprintf-posix.h: Likewise.
41422         * tests/test-sprintf-posix.h: Likewise.
41423         * tests/test-vasnprintf-posix.c: Likewise.
41424         * tests/test-vasnprintf-posix2.c: Likewise.
41425         * tests/test-vasprintf-posix.c: Likewise.
41426
41427 2007-04-06  Bruno Haible  <bruno@clisp.org>
41428
41429         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
41430         * lib/math_.h [__DECC]: Include the overridden include file through
41431         #include_next, outside the double-inclusion guard.
41432         * lib/stdio_.h [__DECC]: Likewise.
41433         * lib/stdlib_.h [__DECC]: Likewise.
41434         * lib/string_.h [__DECC]: Likewise.
41435         * lib/time_.h [__DECC]: Likewise.
41436         * lib/wchar_.h [__DECC]: Likewise.
41437         * lib/wctype_.h [__DECC]: Likewise.
41438         * lib/inttypes_.h [__DECC]: Likewise.
41439         Reported by Albert Chin <china@thewrittenword.com> in
41440         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
41441
41442 2007-04-04  Eric Blake  <ebb9@byu.net>
41443
41444         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
41445         1.5.x.
41446
41447 2007-04-04  Bruno Haible  <bruno@clisp.org>
41448
41449         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
41450         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
41451
41452 2007-04-04  Bruno Haible  <bruno@clisp.org>
41453
41454         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
41455         results for "%010a" of Infinity and NaN.
41456         * tests/test-vasprintf-posix.c (test_function): Likewise.
41457         * tests/test-snprintf-posix.h (test_function): Likewise.
41458         * tests/test-sprintf-posix.h (test_function): Likewise.
41459         * tests/test-fprintf-posix.h (test_function): Remove these tests.
41460         * tests/test-printf-posix.h (test_function): Likewise.
41461         * tests/test-fprintf-posix.out: Update.
41462         Needed for FreeBSD 6.1.
41463
41464 2007-04-04  Bruno Haible  <bruno@clisp.org>
41465
41466         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
41467         directly used by the gnulib modules nor by gnulib-tool.
41468
41469 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
41470
41471         * DEPENDENCIES: Give overall description of version dependency
41472         desirability.  Use more-typical names for apps.
41473         Add shell, coreutils, diffutils, grep, tar, gzip.
41474
41475 2007-04-04  Simon Josefsson  <simon@josefsson.org>
41476
41477         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
41478
41479 2007-04-04  Karl Berry  <karl@gnu.org>
41480
41481         * MODULES.html.sh (func_module): missing '.
41482
41483 2007-04-03  Bruno Haible  <bruno@clisp.org>
41484
41485         * modules/argmatch-tests (Makefile.am): New variable
41486         test_argmatch_LDADD.
41487         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
41488         * modules/array-list-tests (Makefile.am): New variable
41489         test_array_list_LDADD.
41490         * modules/array-oset-tests (Makefile.am): New variable
41491         test_array_oset_LDADD.
41492         * modules/avltree-list-tests (Makefile.am): New variable
41493         test_avltree_list_LDADD.
41494         * modules/avltree-oset-tests (Makefile.am): New variable
41495         test_avltree_oset_LDADD.
41496         * modules/avltreehash-list-tests (Makefile.am): New variable
41497         test_avltreehash_list_LDADD.
41498         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
41499         test_canonicalize_lgpl_LDADD.
41500         * modules/carray-list-tests (Makefile.am): New variable
41501         test_carray_list_LDADD.
41502         * modules/dirname-tests (Makefile.am): New variable
41503         test_dirname_LDADD.
41504         * modules/linked-list-tests (Makefile.am): New variable
41505         test_linked_list_LDADD.
41506         * modules/linkedhash-list-tests (Makefile.am): New variable
41507         test_linkedhash_list_LDADD.
41508         * modules/rbtree-list-tests (Makefile.am): New variable
41509         test_rbtree_list_LDADD.
41510         * modules/rbtree-oset-tests (Makefile.am): New variable
41511         test_rbtree_oset_LDADD.
41512         * modules/rbtreehash-list-tests (Makefile.am): New variable
41513         test_rbtreehash_list_LDADD.
41514         * modules/xvasprintf-tests (Makefile.am): New variable
41515         test_xvasprintf_LDADD.
41516         Reported by Eric Blake.
41517
41518 2007-04-03  Eric Blake  <ebb9@byu.net>
41519
41520         * DEPENDENCIES: Weaken m4 requirements.
41521
41522 2007-04-03  Bruno Haible  <bruno@clisp.org>
41523
41524         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
41525         * modules/isnanl-tests (configure.ac): Likewise.
41526
41527 2007-04-03  Ben Pfaff  <blp@gnu.org>
41528
41529         * modules/iconv_open: Add $(srcdir)/ to source directory
41530         references in Makefile fragments that call gperf, to fix VPATH
41531         builds.
41532
41533 2007-04-03  Bruno Haible  <bruno@clisp.org>
41534
41535         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
41536         * lib/ldexpl.c: Undo last change.
41537
41538 2007-04-03  Bruno Haible  <bruno@clisp.org>
41539
41540         * modules/printf-frexpl (Depends-on): Undo last change.
41541         (Files): Add m4/ldexpl.m4.
41542
41543 2007-04-03  Bruno Haible  <bruno@clisp.org>
41544
41545         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
41546         * modules/isnanl (Link): New section.
41547
41548         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
41549         * modules/frexp (Link): New section.
41550
41551         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
41552         * modules/frexpl (Link): New section.
41553
41554         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
41555         * modules/ldexpl (Link): New section.
41556
41557 2007-04-03  Bruno Haible  <bruno@clisp.org>
41558
41559         * modules/TEMPLATE-EXTENDED: New file.
41560         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
41561
41562 2007-04-03  Bruno Haible  <bruno@clisp.org>
41563
41564         * DEPENDENCIES: New file.
41565         Suggested by Simon Josefsson.
41566
41567 2007-04-03  Bruno Haible  <bruno@clisp.org>
41568
41569         * doc/gnulib.texi: Escape @.
41570
41571 2007-04-03  James Youngman  <jay@gnu.org>
41572         and Paul Eggert  <eggert@cs.ucla.edu>
41573
41574         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
41575         birthtime on all systems that have birthtime, not just those which
41576         use st_birthtimensec rather than st_birthtim.  Putting zero in
41577         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
41578         that the birth time is not available for files on an NFS mount.
41579
41580 2007-04-03  Simon Josefsson  <simon@josefsson.org>
41581
41582         * modules/memxor: Move back from crypto/, suggested by Bruno.
41583         * modules/crypto/hmac-sha1: Fix memxor dependency.
41584
41585         * modules/crypto/gc: Moved from ../.
41586
41587 2007-04-02  Eric Blake  <ebb9@byu.net>
41588
41589         * lib/ldexpl.c (includes): Avoid libm.
41590
41591         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
41592
41593 2007-04-02  Bruno Haible  <bruno@clisp.org>
41594
41595         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
41596         on IRIX.
41597
41598 2007-04-02  Bruno Haible  <bruno@clisp.org>
41599
41600         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
41601         x86 or x86_64 platforms running MacOS X.
41602         Reported by Ryan Schmidt <@ryandesign.com>.
41603
41604 2007-04-02  Bruno Haible  <bruno@clisp.org>
41605
41606         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
41607         i386.
41608
41609 2007-04-01  Simon Josefsson  <simon@josefsson.org>
41610
41611         * modules/crypto/arcfour: Moved from ../.
41612         * modules/crypto/arcfour-tests: Moved from ../.
41613         * modules/crypto/arctwo: Moved from ../.
41614         * modules/crypto/arctwo-tests: Moved from ../.
41615         * modules/crypto/des: Moved from ../.
41616         * modules/crypto/des-tests: Moved from ../.
41617         * modules/crypto/gc-arcfour: Moved from ../.
41618         * modules/crypto/gc-arcfour-tests: Moved from ../.
41619         * modules/crypto/gc-arctwo: Moved from ../.
41620         * modules/crypto/gc-arctwo-tests: Moved from ../.
41621         * modules/crypto/gc-des: Moved from ../.
41622         * modules/crypto/gc-des-tests: Moved from ../.
41623         * modules/crypto/gc-hmac-md5: Moved from ../.
41624         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
41625         * modules/crypto/gc-hmac-sha1: Moved from ../.
41626         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
41627         * modules/crypto/gc-md2: Moved from ../.
41628         * modules/crypto/gc-md2-tests: Moved from ../.
41629         * modules/crypto/gc-md4: Moved from ../.
41630         * modules/crypto/gc-md4-tests: Moved from ../.
41631         * modules/crypto/gc-md5: Moved from ../.
41632         * modules/crypto/gc-md5-tests: Moved from ../.
41633         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
41634         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
41635         * modules/crypto/gc-random: Moved from ../.
41636         * modules/crypto/gc-rijndael: Moved from ../.
41637         * modules/crypto/gc-rijndael-tests: Moved from ../.
41638         * modules/crypto/gc-sha1: Moved from ../.
41639         * modules/crypto/gc-sha1-tests: Moved from ../.
41640         * modules/crypto/gc-tests: Moved from ../.
41641         * modules/crypto/hmac-md5: Moved from ../.
41642         * modules/crypto/hmac-md5-tests: Moved from ../.
41643         * modules/crypto/hmac-sha1: Moved from ../.
41644         * modules/crypto/hmac-sha1-tests: Moved from ../.
41645         * modules/crypto/md2: Moved from ../.
41646         * modules/crypto/md2-tests: Moved from ../.
41647         * modules/crypto/md4: Moved from ../.
41648         * modules/crypto/md4-tests: Moved from ../.
41649         * modules/crypto/md5: Moved from ../.
41650         * modules/crypto/md5-tests: Moved from ../.
41651         * modules/crypto/memxor: Moved from ../.
41652         * modules/crypto/rijndael: Moved from ../.
41653         * modules/crypto/rijndael-tests: Moved from ../.
41654         * modules/crypto/sha1: Moved from ../.
41655
41656 2007-03-30  James Youngman  <jay@gnu.org>
41657
41658         * tests/test-stat-time.c (prepare_test): use chmod() rather than
41659         rename() to change the ctime of a file (because ctime is unaffected
41660         by rename on jfs2 on AIX 5.1).
41661         (main): Start by doing cleanup, in case a previous run failed leaving
41662         test files behind.
41663
41664 2007-03-31  Bruno Haible  <bruno@clisp.org>
41665
41666         Support old proprietary implementations of iconv.
41667         * modules/iconv_open: New file.
41668         * lib/iconv_.h: New file.
41669         * m4/iconv_h.m4: New file.
41670         * lib/iconv_open.c: New file.
41671         * lib/iconv_open-aix.gperf: New file.
41672         * lib/iconv_open-hpux.gperf: New file.
41673         * lib/iconv_open-irix.gperf: New file.
41674         * lib/iconv_open-osf.gperf: New file.
41675         * m4/iconv_open.m4: New file.
41676         * modules/linebreak (Depends-on): Add iconv_open.
41677         * modules/striconv (Depends-on): Likewise.
41678         * modules/striconveh (Depends-on): Likewise.
41679         * modules/unicodeio (Depends-on): Likewise.
41680         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
41681         (iconv_t)(-1).
41682         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
41683         conversion if cd is (iconv_t)(-1).
41684         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
41685         is not possible.
41686
41687 2007-03-31  Bruno Haible  <bruno@clisp.org>
41688
41689         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
41690         work on Solaris either. Protect also second use of "autodetect_jp".
41691
41692 2007-03-31  Bruno Haible  <bruno@clisp.org>
41693
41694         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
41695         the function is not present.
41696
41697 2007-03-31  Bruno Haible  <bruno@clisp.org>
41698
41699         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
41700         the function is not present.
41701
41702 2007-03-31  Bruno Haible  <bruno@clisp.org>
41703
41704         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
41705         a bug in HP-UX iconv_open().
41706
41707 2007-03-31  Bruno Haible  <bruno@clisp.org>
41708
41709         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
41710         (Mathematics <math.h>): New section, add fpieee.
41711         (Input/output <stdio.h>): Add fseterr.
41712         (Mathematics <math.h>): New section, add printf-frexp.
41713         (Container data structures): Add sublist.
41714         (Core language properties): Add fpucw, inline.
41715         (Functions for greatest-width integer types <inttypes.h>): Add
41716         imaxabs, imaxdiv, inttypes.
41717         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
41718         isnanl-nolibm, ldexp.
41719         (Mathematics <math.h>): New section, add printf-frexpl.
41720         (Support for systems lacking POSIX:2001): Add fprintf-posix,
41721         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
41722         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
41723         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
41724         (Unicode string functions): Add unistr/u*-mbtoucr.
41725         (Java): Add javacomp-script, javaexec-script.
41726         (C#): Add csharpcomp-script, csharpexec-script.
41727         (Support for building libraries and executables): Add havelib,
41728         relocatable-*.
41729         (Support for maintaining and releasing projects): Renamed from
41730         'Support for maintaining and release projects'. Add announce-gen.
41731
41732 2007-03-31  Bruno Haible  <bruno@clisp.org>
41733
41734         * README: Talk primarily about git.
41735         (git and CVS): Renamed from CVS.
41736         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
41737         gnulib is available through git.
41738         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
41739
41740 2007-03-30  Bruno Haible  <bruno@clisp.org>
41741
41742         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
41743         * lib/poll_.h: Likewise.
41744         * lib/stat_.h: Likewise.
41745         * lib/sys_time_.h: Likewise.
41746         * lib/sysexit_.h: Likewise.
41747         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
41748         * lib/stdbool_.h: Likewise.
41749         * lib/byteswap_.h: Add double-inclusion guard.
41750
41751 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
41752
41753         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
41754
41755 2007-03-30  Karl Berry  <karl@gnu.org>
41756
41757         * config/srclist-update: double space after USA in the license
41758         substitution, since that's how it's usually (?) written.
41759
41760 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
41761
41762         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
41763         reported by Bruno Haible.
41764
41765 2007-03-29  Bruno Haible  <bruno@clisp.org>
41766
41767         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
41768         a bug in AIX iconv().
41769
41770 2007-03-29  Bruno Haible  <bruno@clisp.org>
41771
41772         * modules/ldexpl-tests: New file.
41773         * tests/test-ldexpl.c: New file.
41774
41775 2007-03-29  Bruno Haible  <bruno@clisp.org>
41776
41777         * lib/ldexpl.c: Include fpucw.h.
41778         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
41779         multiplication.
41780         * modules/ldexpl (Depends-on): Add fpucw.
41781
41782 2007-03-29  Bruno Haible  <bruno@clisp.org>
41783
41784         * modules/ldexpl: New file.
41785         * m4/ldexpl.m4: New file.
41786         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
41787         set.
41788         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
41789         REPLACE_LDEXPL.
41790         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
41791         REPLACE_LDEXPL.
41792         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
41793         gl_FUNC_LDEXPL_WORKS.
41794         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
41795         * modules/mathl (Files): Remove lib/ldexpl.c.
41796         (Depends-on): Add ldexpl.
41797
41798 2007-03-29  Bruno Haible  <bruno@clisp.org>
41799
41800         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
41801
41802 2007-03-29  Bruno Haible  <bruno@clisp.org>
41803
41804         * tests/test-striconveh.c (main): Don't assume that a direct conversion
41805         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
41806         and possibly also HP-UX.
41807         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
41808         work on AIX, IRIX, HP-UX, OSF/1.
41809         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
41810         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
41811         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
41812         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
41813         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
41814         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
41815
41816 2007-03-29  Bruno Haible  <bruno@clisp.org>
41817
41818         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
41819
41820 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
41821
41822         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
41823         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
41824
41825 2007-03-29  Eric Blake  <ebb9@byu.net>
41826
41827         * lib/acl-internal.h: Remove redundant include.
41828         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
41829         Cygwin when a file is locked.
41830
41831 2007-03-29  Bruno Haible  <bruno@clisp.org>
41832
41833         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
41834         file.
41835         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
41836
41837 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
41838
41839         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
41840         try to remove a parent directory if the child couldn't be removed
41841         (except for the first rmdir, which could fail because the child
41842         doesn't exist).  Problem reported by Jeff Blaine in
41843         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
41844
41845 2007-03-28  Bruno Haible  <bruno@clisp.org>
41846
41847         * lib/striconveh.c (utf8conv_carefully): New function.
41848         (mem_cd_iconveh_internal): Invoke it.
41849
41850 2007-03-28  Bruno Haible  <bruno@clisp.org>
41851
41852         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
41853         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
41854         input.
41855         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
41856         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
41857         unistr/u8-uctomb.
41858
41859 2007-03-28  Bruno Haible  <bruno@clisp.org>
41860
41861         * modules/unistr/u8-mbtoucr: New file.
41862         * lib/unistr/u8-mbtoucr.c: New file.
41863         * modules/unistr/u16-mbtoucr: New file.
41864         * lib/unistr/u16-mbtoucr.c: New file.
41865         * modules/unistr/u16-mbtoucr: New file.
41866         * lib/unistr/u16-mbtoucr.c: New file.
41867         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
41868
41869 2007-03-27  Simon Josefsson  <simon@josefsson.org>
41870             Bruno Haible  <bruno@clisp.org>
41871
41872         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
41873         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
41874         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
41875
41876         * m4/stdio_h.m4: Add stubs for vasprintf too.
41877
41878         * modules/stdio: Support vasprintf in sed command.
41879
41880         * modules/vasprintf: Depend on stdio for prototypes.  Remove
41881         vasprintf.h.  Add stdio module indicator.
41882
41883         * lib/stdio_.h: Declare asprintf and vasprintf, based on
41884         vasprintf.h.
41885
41886         * lib/vasprintf.h: File removed.
41887
41888         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
41889         * lib/vasprintf.c: Ditto.
41890         * lib/xvasprintf.c: Ditto.
41891         * tests/test-vasprintf-posix.c: Ditto.
41892         * tests/test-vasprintf.c: Ditto.
41893
41894 2007-03-27  Bruno Haible  <bruno@clisp.org>
41895
41896         Make vasnprintf multithread-safe.
41897         * lib/vasnprintf.c (decimal_point_char): New function.
41898         (VASNPRINTF): Use it.
41899         Suggested by Simon Josefsson.
41900
41901 2007-03-27  Eric Blake  <ebb9@byu.net>
41902
41903         Support sub-second birthtime on cygwin.
41904         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
41905         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
41906         (get_stat_birthtime): Also work with st_birthtim.
41907
41908 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
41909
41910         * lib/stat-time.h (USE_BIRTHTIME): Remove.
41911         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
41912         (get_stat_birthtime_ns): Do not try to use "spare" fields.
41913         (get_stat_birthtime_ns): Simplify compile-time tests.
41914         (get_stat_birthtime): Change the API to look like
41915         get_stat_mtime etc., except return a negative tv_nsec on error.
41916         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
41917         Don't check for "spare" fields.
41918         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
41919         or for struct stat.st_birthtime, as these tests aren't used.
41920         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
41921
41922 2007-03-27  Bruno Haible  <bruno@clisp.org>
41923
41924         * lib/stat-time.h: Include <sys/stat.h>.
41925
41926 2007-03-27  James Youngman  <jay@gnu.org>
41927
41928         * lib/stat-time.h (get_stat_birthtime): New function for
41929           retrieving st_birthtime as provided by UFS2 (hence *BSD).
41930         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
41931           and its variants.
41932         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
41933         * modules/stat-time-test: New file.
41934         * tests/test-stat-time.c: New test, devised by Bruno Haible.
41935
41936 2007-03-26  Bruno Haible  <bruno@clisp.org>
41937
41938         Better support of signalling NaNs.
41939         * lib/atanl.c: Include isnanl.h.
41940         (atanl): Perform test for NaN at the beginning of the function and
41941         through a call to isnanl.
41942         * lib/cosl.c: Include isnanl.h.
41943         (cosl): Perform test for NaN at the beginning of the function and
41944         through a call to isnanl.
41945         * lib/ldexpl.c: Include isnanl.h.
41946         (ldexpl): Perform test for NaN through a call to isnanl.
41947         * lib/logl.c: Include isnanl.h.
41948         (logl): Perform test for NaN at the beginning of the function and
41949         through a call to isnanl.
41950         * lib/sinl.c: Include isnanl.h.
41951         (sinl): Perform test for NaN at the beginning of the function and
41952         through a call to isnanl.
41953         * lib/sqrtl.c: Include isnanl.h.
41954         (sqrtl): Perform test for NaN at the beginning of the function and
41955         through a call to isnanl.
41956         * lib/tanl.c: Include isnanl.h.
41957         (tanl): Perform test for NaN at the beginning of the function and
41958         through a call to isnanl.
41959         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
41960         * modules/mathl (Depends-on): Add isnanl.
41961
41962 2007-03-26  Eric Blake  <ebb9@byu.net>
41963
41964         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
41965         regression in logic sense of previous patch.
41966
41967 2007-03-26  Bruno Haible  <bruno@clisp.org>
41968
41969         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
41970         unportable shell command "if ! ...".
41971         Reported by Ralf Wildenhues.
41972
41973 2007-03-25  Bruno Haible  <bruno@clisp.org>
41974
41975         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
41976         <sysexits.h> file, and only add EX_CONFIG.
41977         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
41978         absolute file name and whether it is sufficient. Substitute also
41979         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
41980         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
41981         ABSOLUTE_SYSEXITS_H into sysexits.h.
41982
41983 2007-03-25  Bruno Haible  <bruno@clisp.org>
41984
41985         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
41986         hints is NULL.
41987
41988 2007-03-25  Bruno Haible  <bruno@clisp.org>
41989
41990         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
41991         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
41992
41993 2007-03-25  Bruno Haible  <bruno@clisp.org>
41994
41995         * lib/vasnprintf.c: Include langinfo.h.
41996         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
41997         multithread-safe.
41998         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
41999         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
42000         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42001         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42002         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42003         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42004         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42005         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
42006         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42007         Reported by Simon Josefsson.
42008
42009 2007-03-25  Bruno Haible  <bruno@clisp.org>
42010
42011         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
42012         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
42013         * modules/vasnprintf (Depends-on): Add stdint.
42014
42015 2007-03-25  Bruno Haible  <bruno@clisp.org>
42016
42017         * modules/fpieee: New file.
42018         * m4/fpieee.m4: New file.
42019         * modules/isnan-nolibm (Depends-on): Add fpieee.
42020         * modules/isnanl-nolibm (Depends-on): Add fpieee.
42021         * modules/isnanl (Depends-on): Add fpieee.
42022
42023 2007-03-25  Bruno Haible  <bruno@clisp.org>
42024
42025         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
42026
42027 2007-03-25  Bruno Haible  <bruno@clisp.org>
42028
42029         Avoid test failures on IRIX 6.5.
42030         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
42031         (main): Use it.
42032         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
42033         macros.
42034         (main): Use them.
42035
42036 2007-03-25  Bruno Haible  <bruno@clisp.org>
42037
42038         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
42039         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
42040         exists but doesn't work.
42041         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
42042         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
42043         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
42044         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
42045
42046 2007-03-25  Bruno Haible  <bruno@clisp.org>
42047
42048         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
42049         returns inf. Needed on IRIX 6.5.
42050
42051 2007-03-25  Bruno Haible  <bruno@clisp.org>
42052
42053         * tests/test-frexpl.c: Include isnanl-nolibm.h.
42054         (main): Use isnanl instead of x != x idiom.
42055         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
42056
42057         * tests/test-frexp.c: Include isnan.h.
42058         (main): Use isnan instead of x != x idiom.
42059         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
42060
42061 2007-03-25  Bruno Haible  <bruno@clisp.org>
42062
42063         * tests/test-frexp.c (NaN): New function/macro.
42064         (main): Use it instead of 0.0 / 0.0.
42065         * tests/test-isnan.c (NaN): New function/macro.
42066         (main): Use it instead of 0.0 / 0.0.
42067         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
42068         (test_function): Use it instead of 0.0 / 0.0.
42069         * tests/test-vasprintf-posix.c (NaN): New function/macro.
42070         (test_function): Use it instead of 0.0 / 0.0.
42071         * tests/test-snprintf-posix.h (NaN): New function/macro.
42072         (test_function): Use it instead of 0.0 / 0.0.
42073         * tests/test-sprintf-posix.h (NaN): New function/macro.
42074         (test_function): Use it instead of 0.0 / 0.0.
42075         * tests/test-fprintf-posix.h (NaN): New function/macro.
42076         (test_function): Use it instead of 0.0 / 0.0.
42077         * tests/test-printf-posix.h (NaN): New function/macro.
42078         (test_function): Use it instead of 0.0 / 0.0.
42079
42080         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
42081
42082 2007-03-25  Bruno Haible  <bruno@clisp.org>
42083
42084         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
42085
42086 2007-03-25  Bruno Haible  <bruno@clisp.org>
42087
42088         * lib/regexec.c (merge_state_with_log): Make static.
42089
42090 2007-03-25  Bruno Haible  <bruno@clisp.org>
42091
42092         * lib/trigl.c (kernel_rem_pio2): Make static.
42093
42094 2007-03-25  Bruno Haible  <bruno@clisp.org>
42095
42096         * lib/sincosl.c (sincosl_table): Make static.
42097
42098 2007-03-25  Bruno Haible  <bruno@clisp.org>
42099
42100         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
42101         if the compiler does not support C99.
42102
42103 2007-03-25  Bruno Haible  <bruno@clisp.org>
42104
42105         * modules/time (Makefile.am): Ensure all rule action lines start with a
42106         tab.
42107
42108 2007-03-24  Bruno Haible  <bruno@clisp.org>
42109
42110         * modules/tsearch-tests: New file.
42111         * tests/test-tsearch.sh: New file.
42112         * tests/test-tsearch.c: New file, mostly copied from glibc.
42113
42114         * modules/search-tests: New file.
42115         * tests/test-search.c: New file.
42116
42117         * modules/search: New file.
42118         * lib/search_.h: New file, incorporating lib/tsearch.h.
42119         * m4/search_h.m4: New file.
42120         * lib/tsearch.h: Remove file.
42121         * lib/tsearch.c: Include search.h instead of tsearch.h.
42122         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
42123         HAVE_TSEARCH.
42124         * modules/tsearch (Files): Remove lib/tsearch.h.
42125         (Depends-on): Add search.
42126         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
42127         (Include): Change tsearch.h into search.h.
42128
42129 2007-03-24  Bruno Haible  <bruno@clisp.org>
42130
42131         * modules/fpucw: New file.
42132         * lib/fpucw.h: New file.
42133         * lib/frexp.c: Include fpucw.h.
42134         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
42135         (FUNC): Use them.
42136         * lib/printf-frexp.c: Include fpucw.h.
42137         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
42138         (FUNC): Use them.
42139         * lib/vasnprintf.c: Include fpucw.h.
42140         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
42141         'long double' calculations.
42142         * tests/test-frexpl.c: Include fpucw.h.
42143         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
42144         * tests/test-printf-frexpl.c: Include fpucw.h.
42145         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
42146         * modules/frexpl (Depends-on): Add fpucw.
42147         * modules/printf-frexpl (Depends-on): Likewise.
42148         * modules/fprintf-posix (Depends-on): Likewise.
42149         * modules/snprintf-posix (Depends-on): Likewise.
42150         * modules/sprintf-posix (Depends-on): Likewise.
42151         * modules/vasnprintf-posix (Depends-on): Likewise.
42152         * modules/vasprintf-posix (Depends-on): Likewise.
42153         * modules/vfprintf-posix (Depends-on): Likewise.
42154         * modules/vsnprintf-posix (Depends-on): Likewise.
42155         * modules/vsprintf-posix (Depends-on): Likewise.
42156         * modules/frexpl-tests (Depends-on): Likewise.
42157         * modules/printf-frexpl-tests (Depends-on): Likewise.
42158
42159 2007-03-24  Bruno Haible  <bruno@clisp.org>
42160
42161         * lib/float+.h: New file.
42162         * lib/isnan.c: Include float+.h.
42163         (SIZE): New macro.
42164         (FUNC): Compare only SIZE bytes of the value.
42165         * lib/vasnprintf.c: Include float+.h.
42166         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
42167         SIZEOF_LDBL or SIZEOF_DBL bytes.
42168         * modules/isnan-nolibm (Files): Add lib/float+.h.
42169         * modules/isnanl-nolibm (Files): Add lib/float+.h.
42170         * modules/isnanl (Files): Add lib/float+.h.
42171         * modules/vasnprintf (Files): Add lib/float+.h.
42172
42173 2007-03-24  Bruno Haible  <bruno@clisp.org>
42174
42175         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
42176         include isnanl-nolibm.h.
42177
42178 2007-03-24  Bruno Haible  <bruno@clisp.org>
42179
42180         * tests/test-read-file.c (main): Don't produce spurious output for
42181         expected situations. Make the test fail if it encountered unexpected
42182         results.
42183
42184 2007-03-24  Bruno Haible  <bruno@clisp.org>
42185
42186         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
42187         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
42188
42189 2007-03-24  Bruno Haible  <bruno@clisp.org>
42190
42191         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
42192
42193 2007-03-24  Bruno Haible  <bruno@clisp.org>
42194
42195         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
42196         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
42197
42198         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
42199         * modules/utf8-ucs4: Turn into a symbolic link to module
42200         unistr/u8-mbtouc.
42201
42202         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
42203         utf8-ucs4-unsafe.
42204         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
42205         unistr/u8-mbtouc-unsafe.
42206
42207         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
42208         * modules/utf16-ucs4: Turn into a symbolic link to module
42209         unistr/u16-mbtouc.
42210
42211         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
42212         utf16-ucs4-unsafe.
42213         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
42214         unistr/u16-mbtouc-unsafe.
42215
42216         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
42217         * modules/ucs4-utf8: Turn into a symbolic link to module
42218         unistr/u8-ubtomb.
42219
42220         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
42221         * modules/ucs4-utf16: Turn into a symbolic link to module
42222         unistr/u16-ubtomb.
42223
42224 2007-03-24  Bruno Haible  <bruno@clisp.org>
42225
42226         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
42227         Enable the function only if HAVE_INLINE.
42228         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
42229         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
42230         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
42231         Enable the function only if HAVE_INLINE.
42232         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
42233         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
42234         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
42235         Enable the function only if HAVE_INLINE.
42236         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
42237         Enable the function only if HAVE_INLINE.
42238         * modules/utf8-ucs4: Update.
42239         * modules/utf8-ucs4-unsafe: Update.
42240         * modules/utf16-ucs4: Update.
42241         * modules/utf16-ucs4-unsafe: Update.
42242         * modules/ucs4-utf8: Update.
42243         * modules/ucs4-utf16: Update.
42244
42245 2007-03-24  Bruno Haible  <bruno@clisp.org>
42246
42247         * lib/utf8-ucs4.h: Remove file.
42248         * lib/utf8-ucs4-unsafe.h: Remove file.
42249         * lib/utf16-ucs4.h: Remove file.
42250         * lib/utf16-ucs4-unsafe.h: Remove file.
42251         * lib/ucs4-utf8.h: Remove file.
42252         * lib/ucs4-utf16.h: Remove file.
42253         * lib/unistr.h: Include their previous contents.
42254         * m4/utf-ucs4.m4: Remove file.
42255         * m4/ucs4-utf.m4: Remove file.
42256         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
42257         (Depends-on): Add unistr/base.
42258         (configure.ac): Remove gl_UTF_UCS4.
42259         (Makefile.am): Update.
42260         (Include): Change to unistr.h.
42261         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
42262         (Depends-on): Add unistr/base.
42263         (configure.ac): Remove gl_UTF_UCS4.
42264         (Makefile.am): Update.
42265         (Include): Change to unistr.h.
42266         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
42267         (Depends-on): Add unistr/base.
42268         (configure.ac): Remove gl_UTF_UCS4.
42269         (Makefile.am): Update.
42270         (Include): Change to unistr.h.
42271         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
42272         (Depends-on): Add unistr/base.
42273         (configure.ac): Remove gl_UTF_UCS4.
42274         (Makefile.am): Update.
42275         (Include): Change to unistr.h.
42276         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
42277         (Depends-on): Add unistr/base.
42278         (configure.ac): Remove gl_UCS4_UTF.
42279         (Makefile.am): Update.
42280         (Include): Change to unistr.h.
42281         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
42282         (Depends-on): Add unistr/base.
42283         (configure.ac): Remove gl_UCS4_UTF.
42284         (Makefile.am): Update.
42285         (Include): Change to unistr.h.
42286         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
42287         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
42288         utf8-ucs4-unsafe.h.
42289         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
42290         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
42291         utf16-ucs4-unsafe.h.
42292         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
42293         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
42294         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
42295         * lib/unistr/u8-strchr.c: Likewise.
42296         * lib/unistr/u8-strrchr.c: Likewise.
42297         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
42298         * lib/unistr/u16-strchr.c: Likewise.
42299         * lib/unistr/u16-strrchr.c: Likewise.
42300         * lib/striconveh.c: Update.
42301         * lib/linebreak.c: Update.
42302
42303 2007-03-24  Bruno Haible  <bruno@clisp.org>
42304
42305         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
42306         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
42307
42308 2007-03-22  Bruno Haible  <bruno@clisp.org>
42309
42310         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
42311
42312 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
42313
42314         * MODULES.html.sh (File system functions): New module write-any-file.
42315         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
42316         * m4/write-any-file.m4: New files.
42317
42318 2007-03-23  Eric Blake  <ebb9@byu.net>
42319
42320         * gnulib-tool: Rearrange space-tab sequences, since some editors
42321         like to eat them.
42322
42323 2007-03-23  Eric Blake  <ebb9@byu.net>
42324
42325         * lib/version-etc.c (version_etc_va): Update license wording to
42326         be more concise.  Recommended by Richard Stallman.
42327
42328 2007-03-22  Bruno Haible  <bruno@clisp.org>
42329
42330         * lib/poll.c (MSG_PEEK): New fallback definition.
42331
42332 2007-03-22  Bruno Haible  <bruno@clisp.org>
42333
42334         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
42335         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
42336         (main): Update.
42337         Fixes a compilation error on BeOS.
42338
42339 2007-03-22  Bruno Haible  <bruno@clisp.org>
42340
42341         * modules/frexpl-tests: New file.
42342         * tests/test-frexpl.c: New file.
42343
42344         * modules/frexpl: New file.
42345         * m4/frexpl.m4: New file.
42346         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
42347         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
42348         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
42349         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
42350         (Depends-on): Add frexpl. Remove isnanl-nolibm.
42351         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
42352
42353 2007-03-22  Bruno Haible  <bruno@clisp.org>
42354
42355         * lib/frexpl.c: Share code with lib/frexp.c.
42356         * modules/mathl (Files): Add lib/frexp.c.
42357         (Depends-on): Add isnanl-nolibm.
42358
42359 2007-03-22  Bruno Haible  <bruno@clisp.org>
42360
42361         * modules/printf-frexp (Files): Add m4/frexp.m4.
42362         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
42363         only if the found frexp function actually works.
42364
42365 2007-03-22  Bruno Haible  <bruno@clisp.org>
42366
42367         * lib/frexp.c: Remove older implementation that uses divisions.
42368
42369 2007-03-21  Bruno Haible  <bruno@clisp.org>
42370
42371         * modules/frexp-tests: New file.
42372         * tests/test-frexp.c: New file.
42373
42374         * modules/frexp: New file.
42375         * lib/frexp.c: New file.
42376         * m4/frexp.m4: New file.
42377         * lib/math_.h (frexp): New declaration.
42378         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
42379         REPLACE_FREXP.
42380         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
42381
42382 2007-03-21  Bruno Haible  <bruno@clisp.org>
42383
42384         * modules/isnanl-tests: New file.
42385         * tests/test-isnanl.c: New file.
42386
42387         * modules/isnanl: New file.
42388         * lib/isnanl.h: New file.
42389         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
42390         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
42391         gl_FUNC_ISNANL_WORKS.
42392         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
42393         New macros.
42394
42395 2007-03-21  Bruno Haible  <bruno@clisp.org>
42396
42397         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
42398         lib/isnanl.h.
42399         (Include): Update.
42400         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
42401         * lib/vasnprintf.c: Update.
42402         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
42403         tests/test-isnanl.h, remove tests/test-isnanl.c.
42404         (Makefile.am): Update.
42405         * tests/test-isnanl-nolibm.c: New file.
42406         * tests/test-isnanl.h: New file.
42407         * tests/test-isnanl.c: Remove file.
42408
42409 2007-03-21  Jim Meyering  <jim@meyering.net>
42410
42411         When trying to open ".", treat ESTALE like EACCES.
42412         * lib/savewd.c (savewd_save): Resort to forking not just upon
42413         failure with EACCES, but also when errno is ESTALE.
42414
42415 2007-03-20  Bruno Haible  <bruno@clisp.org>
42416
42417         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
42418         Needed on AIX 5.1. Reported by Matthew Woehlke.
42419
42420 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
42421
42422         Suggestions by Bruno Haible:
42423         * lib/acl-internal.h: Include "gettext.h" rather than rolling
42424         our own.
42425         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
42426         * modules/acl (Depends-on): Add gettext.
42427
42428 2007-03-19  Bruno Haible  <bruno@clisp.org>
42429
42430         * modules/iconvme: Remove file.
42431         * lib/iconvme.h: Remove file.
42432         * lib/iconvme.c: Remove file.
42433         * m4/iconvme.m4: Remove file.
42434
42435 2007-03-19  Bruno Haible  <bruno@clisp.org>
42436
42437         * doc/relocatable-maint.texi: Break long shell script line.
42438         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
42439
42440 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
42441
42442         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
42443         handle file_has_acl.
42444         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
42445         * lib/acl.c: Move header inclusions and related macro defns into
42446         lib/acl-internal.h.
42447         (S_ISLNK): Remove defn, since that's now done for us.
42448         (file_has_acl): Move to lib/file-has-acl.c.
42449         Call acl_trivial if available.  This is the crucial part of the fix.
42450         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
42451         shared within the library.  Rewrite a bit, partly to make it compatible
42452         with the GNU coding style.
42453         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
42454         Remove unnecessary double-quotes.
42455         Don't test for acl_to_text; the build will catch that.
42456         Replace acl_entries if it doesn't exist and it is needed.
42457         Check for -lsec and acl_trivial (as used on Solaris 10).
42458         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
42459         lib/file-has-acl.c.
42460         (Depends-on): Add sys_stat, for S_ISLNK.
42461
42462 2007-03-19  Ben Pfaff  <blp@gnu.org>
42463
42464         * doc/gnulib.texi: Fix typos.
42465         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
42466
42467 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
42468
42469         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
42470         If size is zero here, buf must be zero.
42471
42472 2007-03-19  Simon Josefsson  <simon@josefsson.org>
42473
42474         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
42475         <bruno@clisp.org>.
42476
42477 2007-03-18  Bruno Haible  <bruno@clisp.org>
42478
42479         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
42480         Suggested by Eric Blake.
42481
42482 2007-03-18  Ben Pfaff  <blp@gnu.org>
42483
42484         * doc/relocatable.texi: Recommend using as prefix a directory
42485         that does not exist and will never be created.  Based on
42486         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
42487         and others.
42488
42489 2007-03-17  Bruno Haible  <bruno@clisp.org>
42490
42491         * lib/fchownat.c: Include lchown.h.
42492
42493 2007-03-17  Bruno Haible  <bruno@clisp.org>
42494
42495         Fix endless loop when the given allocated size was > INT_MAX.
42496         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
42497         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
42498         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
42499         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
42500         * lib/sprintf.c (sprintf): Likewise.
42501
42502 2007-03-17  Bruno Haible  <bruno@clisp.org>
42503
42504         * tests/test-argp-2.sh (func_compare): Output a context diff.
42505
42506 2007-03-17  Bruno Haible  <bruno@clisp.org>
42507
42508         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
42509         locale's decimal-point character.
42510
42511 2007-03-17  Bruno Haible  <bruno@clisp.org>
42512
42513         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
42514         before comparing it. Needed because on some platforms (e.g. x86) a
42515         'long double' occupies less bytes than sizeof (long double).
42516
42517 2007-03-17  Bruno Haible  <bruno@clisp.org>
42518
42519         * tests/test-crc.c (main): Make printf statements 64-bit clean.
42520         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
42521         * tests/test-getaddrinfo.c (simple): Likewise.
42522         * tests/test-read-file.c (main): Likewise.
42523
42524 2007-03-17  Bruno Haible  <bruno@clisp.org>
42525
42526         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
42527
42528 2007-03-17  Bruno Haible  <bruno@clisp.org>
42529
42530         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
42531         unused variable.
42532
42533 2007-03-17  Bruno Haible  <bruno@clisp.org>
42534
42535         * tests/test-c-strcasecmp.c: Include c-strcase.h.
42536         * tests/test-c-strncasecmp.c: Likewise.
42537
42538 2007-03-17  Bruno Haible  <bruno@clisp.org>
42539
42540         * modules/stdlib (Depends-on): Add unistd.
42541         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
42542         Needed for MacOS X 10.3.
42543
42544 2007-03-17  Bruno Haible  <bruno@clisp.org>
42545
42546         * lib/unistr/u-strdup.h: Include <stdlib.h>.
42547
42548 2007-03-17  Bruno Haible  <bruno@clisp.org>
42549
42550         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
42551
42552 2007-03-17  Bruno Haible  <bruno@clisp.org>
42553
42554         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
42555         to reflect files copied from gnulib (with or without modifications).
42556         Suggested by Jim Meyering.
42557
42558 2007-03-17  Eric Blake  <ebb9@byu.net>
42559
42560         * NEWS: Document stdlib change from 2007-02-18.
42561
42562 2007-03-17  Jim Meyering  <jim@meyering.net>
42563
42564         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
42565         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
42566         someone uses a name containing shell meta-characters.
42567         Reported by Alfred M. Szmidt.
42568
42569         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
42570
42571 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
42572
42573         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
42574         and copy gettext configuration files only if configure.ac contains
42575         a use of AM_GNU_GETTEXT_VERSION.
42576
42577 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
42578
42579         * build-aux/bootstrap (gnulib_name): New variable.
42580         (gnulib_tool_options): Use it.
42581
42582 2007-03-13  Simon Josefsson  <simon@josefsson.org>
42583
42584         * tests/test-des.c: Use new namespace.
42585
42586 2007-03-15  Bruno Haible  <bruno@clisp.org>
42587
42588         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
42589         Reported by James Youngman <jay@gnu.org>.
42590
42591 2007-03-15  Bruno Haible  <bruno@clisp.org>
42592
42593         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
42594         declared prototype. Needed with cc on OSF/1 5.1.
42595
42596 2007-03-15  Bruno Haible  <bruno@clisp.org>
42597
42598         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
42599         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
42600         (struct gl_list_implementation): Add dispose_fn argument to the
42601         'create_empty', 'create' methods.
42602         (struct gl_list_impl_base): Add field 'dispose_fn'.
42603         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
42604         argument.
42605         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
42606         dispose_fn argument.
42607         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
42608         dispose_fn on the dropped values.
42609         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
42610         dispose_fn argument.
42611         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
42612         dropped values.
42613         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
42614         (gl_tree_remove_node): Call dispose_fn on the dropped value.
42615         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
42616         (gl_tree_remove_node): Call dispose_fn on the dropped value.
42617         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
42618         argument.
42619         (gl_tree_list_free): Call dispose_fn on the dropped values.
42620         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
42621         the dropped values.
42622         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
42623         Add dispose_fn argument.
42624         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
42625         Call dispose_fn on the dropped values.
42626         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
42627         Add dispose_fn argument.
42628         (gl_sublist_create): Initialize the 'dispose_fn' field.
42629         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
42630         * tests/test-array_list.c (main): Update.
42631         * tests/test-carray_list.c (main): Update.
42632         * tests/test-avltree_list.c (main): Update.
42633         * tests/test-rbtree_list.c (main): Update.
42634         * tests/test-avltreehash_list.c (main): Update.
42635         * tests/test-rbtreehash_list.c (main): Update.
42636         * tests/test-linked_list.c (main): Update.
42637         * tests/test-linkedhash_list.c (main): Update.
42638         * tests/test-array_oset.c (main): Update.
42639
42640 2007-03-15  Bruno Haible  <bruno@clisp.org>
42641
42642         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
42643         (gl_oset_create_empty): Add dispose_fn argument.
42644         (struct gl_oset_implementation): Add dispose_fn argument to
42645         'create_empty' method.
42646         (struct gl_oset_impl_base): Add dispose_fn field.
42647         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
42648         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
42649         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
42650         values.
42651         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
42652         (gl_tree_oset_free): Call dispose_fn on the dropped values.
42653         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
42654         dropped value.
42655         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
42656         dropped value.
42657         * tests/test-array_oset.c (main): Update.
42658         * tests/test-avltree_oset.c (main): Update.
42659         * tests/test-rbtree_oset.c (main): Update.
42660         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
42661
42662 2007-03-13  Bruno Haible  <bruno@clisp.org>
42663
42664         * tests/test-stdbool.c (i): Update after last patch.
42665
42666 2007-03-12  Bruno Haible  <bruno@clisp.org>
42667
42668         * lib/quotearg.c: Include <wctype.h> early, before the definition of
42669         the iswprint macro. Needed on Solaris 2.5.1.
42670
42671 2007-03-12  Bruno Haible  <bruno@clisp.org>
42672
42673         * tests/test-printf-frexp.c (main): Declare x as volatile.
42674
42675 2007-03-12  Simon Josefsson  <simon@josefsson.org>
42676
42677         * doc/gnulib.texi (Build robot for gnulib): New section.
42678
42679 2007-03-12  Jim Meyering  <jim@meyering.net>
42680
42681         * build-aux/bootstrap: New file.
42682         * build-aux/bootstrap.conf: New file, from coreutils.
42683
42684 2007-03-11  Bruno Haible  <bruno@clisp.org>
42685
42686         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
42687
42688 2007-03-12  Simon Josefsson  <simon@josefsson.org>
42689
42690         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
42691         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
42692         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
42693
42694 2007-03-11  Bruno Haible  <bruno@clisp.org>
42695
42696         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
42697         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
42698
42699 2007-03-11  Bruno Haible  <bruno@clisp.org>
42700
42701         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
42702         formula. Needed for SunPRO C 5.0.
42703
42704 2007-03-11  Bruno Haible  <bruno@clisp.org>
42705
42706         * modules/long-options (Depends-on): Add getopt.
42707
42708 2007-03-11  Bruno Haible  <bruno@clisp.org>
42709
42710         * modules/modechange (Depends-on): Add stdbool.
42711
42712 2007-03-11  Bruno Haible  <bruno@clisp.org>
42713
42714         * modules/i-ring (Depends-on): Add stdbool.
42715
42716 2007-03-11  Bruno Haible  <bruno@clisp.org>
42717
42718         * modules/gc-des (Depends-on): Add stdbool.
42719
42720 2007-03-11  Bruno Haible  <bruno@clisp.org>
42721
42722         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
42723
42724 2007-03-11  Bruno Haible  <bruno@clisp.org>
42725
42726         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
42727
42728 2007-03-11  Bruno Haible  <bruno@clisp.org>
42729
42730         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
42731
42732 2007-03-11  Bruno Haible  <bruno@clisp.org>
42733
42734         * lib/vasnprintf.c (sprintf): Undefine.
42735
42736 2007-03-11  Bruno Haible  <bruno@clisp.org>
42737
42738         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
42739         initializers in SunPRO C and Compaq C compilers.
42740
42741 2007-03-11  Bruno Haible  <bruno@clisp.org>
42742
42743         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
42744         decrementing code ANSI C compliant.
42745
42746 2007-03-11  Bruno Haible  <bruno@clisp.org>
42747
42748         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
42749         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
42750
42751 2007-03-11  Bruno Haible  <bruno@clisp.org>
42752
42753         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
42754         <stdbool.h> substitute doesn't pass.
42755
42756 2007-03-11  Bruno Haible  <bruno@clisp.org>
42757
42758         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
42759
42760 2007-03-11  Bruno Haible  <bruno@clisp.org>
42761
42762         * gnulib-tool (func_create_megatestdir): Create also an autobuild
42763         script, for submission to autobuild.josefsson.org.
42764
42765 2007-03-10  Bruno Haible  <bruno@clisp.org>
42766
42767         * modules/canonicalize-lgpl-tests: New file.
42768         * tests/test-canonicalize-lgpl.sh: New file.
42769         * tests/test-canonicalize-lgpl.c: New file.
42770
42771         * modules/c-strcase-tests: New file.
42772         * tests/test-c-strcase.sh: New file.
42773         * tests/test-c-strcasecmp.c: New file.
42774         * tests/test-c-strncasecmp.c: New file.
42775
42776         * modules/atexit-tests: New file.
42777         * tests/test-atexit.sh: New file.
42778         * tests/test-atexit.c: New file.
42779
42780 2007-03-10  Bruno Haible  <bruno@clisp.org>
42781
42782         * tests/test-binary-io.sh: Use temporary filenames that are not so
42783         likely to clash with those of other tests (in a parallel make).
42784         * tests/test-binary-io.c: Likewise.
42785
42786 2007-03-10  Bruno Haible  <bruno@clisp.org>
42787
42788         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
42789         fallback; use #error instead.
42790         Suggested by Simon Josefsson.
42791
42792 2007-03-10  Bruno Haible  <bruno@clisp.org>
42793
42794         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
42795         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
42796         first and the last.
42797
42798 2007-03-10  Bruno Haible  <bruno@clisp.org>
42799
42800         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
42801
42802 2007-03-10  Bruno Haible  <bruno@clisp.org>
42803
42804         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
42805         "make distcheck".
42806         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
42807         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
42808         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
42809
42810 2007-03-10  Bruno Haible  <bruno@clisp.org>
42811
42812         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
42813         variable.
42814         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
42815         variable.
42816
42817 2007-03-09  Eric Blake  <ebb9@byu.net>
42818         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
42819
42820         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
42821         types are not being provided by gnulib.
42822         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
42823         types are supported.
42824
42825 2007-03-10  Bruno Haible  <bruno@clisp.org>
42826
42827         * lib/stdio_.h (__attribute__): New macro.
42828         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
42829         vsprintf): Specify __attribute__ __format__ for GCC.
42830         Suggested by Eric Blake.
42831
42832 2007-03-09  Bruno Haible  <bruno@clisp.org>
42833
42834         * modules/printf-posix-tests: New file.
42835         * tests/test-printf-posix.sh: New file.
42836         * tests/test-printf-posix.c: New file.
42837
42838         * modules/printf-posix: New file.
42839         * lib/printf.c: New file.
42840         * m4/printf-posix-rpl.m4: New file.
42841         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
42842         REPLACE_PRINTF.
42843         * lib/stdio_.h (printf): New declaration.
42844         (format, __format__, ____printf____, ____scanf____, ____strftime____,
42845         ____strfmon____): New macros.
42846         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
42847         REPLACE_PRINTF.
42848
42849 2007-03-09  Bruno Haible  <bruno@clisp.org>
42850
42851         * tests/test-vasnprintf-posix2.sh: New file.
42852         * tests/test-vasnprintf-posix2.c: New file.
42853         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
42854         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
42855         (Makefile.am): Activate test-vasnprintf-posix2.sh.
42856
42857         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
42858         a locale dependent decimal point, rather than always '.'.
42859
42860 2007-03-09  Eric Blake  <ebb9@byu.net>
42861
42862         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
42863         spite of platforms like Tandem/NSK that define it to -1.
42864
42865 2007-03-08  Bruno Haible  <bruno@clisp.org>
42866
42867         * modules/vprintf-posix-tests: New file.
42868         * tests/test-vprintf-posix.sh: New file.
42869         * tests/test-vprintf-posix.c: New file.
42870         * tests/test-printf-posix.h: New file.
42871
42872         * modules/vprintf-posix: New file.
42873         * lib/vprintf.c: New file.
42874         * m4/vprintf-posix.m4: New file.
42875         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
42876         REPLACE_VPRINTF.
42877         * lib/stdio_.h (vprintf): New declaration.
42878         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
42879         REPLACE_VPRINTF.
42880
42881 2007-03-08  Bruno Haible  <bruno@clisp.org>
42882
42883         * modules/fprintf-posix-tests: New file.
42884         * tests/test-fprintf-posix.sh: New file.
42885         * tests/test-fprintf-posix.c: New file.
42886
42887         * modules/fprintf-posix: New file.
42888         * lib/fprintf.c: New file.
42889         * m4/fprintf-posix.m4: New file.
42890         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
42891         REPLACE_FPRINTF.
42892         * lib/stdio_.h (fprintf): New declaration.
42893         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
42894         REPLACE_FPRINTF.
42895
42896 2007-03-08  Bruno Haible  <bruno@clisp.org>
42897
42898         * modules/vfprintf-posix-tests: New file.
42899         * tests/test-vfprintf-posix.sh: New file.
42900         * tests/test-vfprintf-posix.c: New file.
42901         * tests/test-fprintf-posix.h: New file.
42902         * tests/test-fprintf-posix.out: New file.
42903
42904         * modules/vfprintf-posix: New file.
42905         * lib/vfprintf.c: New file.
42906         * m4/vfprintf-posix.m4: New file.
42907         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
42908         REPLACE_VFPRINTF.
42909         * lib/stdio_.h (vfprintf): New declaration.
42910         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
42911         REPLACE_VFPRINTF.
42912
42913 2007-03-08  Bruno Haible  <bruno@clisp.org>
42914
42915         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
42916
42917 2007-03-08  Bruno Haible  <bruno@clisp.org>
42918
42919         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
42920         instead of 'expr' invocations.
42921         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42922         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42923         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42924         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42925         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42926         Suggested by Paul Eggert.
42927
42928 2007-03-08  Bruno Haible  <bruno@clisp.org>
42929
42930         * modules/fseterr-tests: New file.
42931         * tests/test-fseterr.c: New file.
42932
42933         * modules/fseterr: New file.
42934         * lib/fseterr.h: New file.
42935         * lib/fseterr.c: New file.
42936
42937 2007-03-08  Bruno Haible  <bruno@clisp.org>
42938
42939         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
42940         * lib/getopt_.h: Likewise.
42941         * lib/mbswidth.h: Likewise.
42942         * lib/setenv.h: Likewise.
42943         * lib/vasnprintf.h: Likewise.
42944         * lib/vasprintf.h: Likewise.
42945         * lib/verror.h: Likewise.
42946         * lib/xsetenv.h: Likewise.
42947         * lib/xvasprintf.h: Likewise.
42948
42949 2007-03-08  Jim Meyering  <jim@meyering.net>
42950
42951         * users.txt: Add parted.
42952
42953         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
42954
42955 2007-03-07  Bruno Haible  <bruno@clisp.org>
42956
42957         * m4/printf.m4: Make the shell script snippets copy&pastable.
42958
42959 2007-03-02  Bruno Haible  <bruno@clisp.org>
42960
42961         * lib/netinet_in_.h: New file.
42962         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
42963         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
42964         * modules/netinet_in (Files): Add lib/netinet_in_.h.
42965         (Depends-on): Add absolute-header.
42966         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
42967         into netinet/in.h.
42968
42969 2007-03-03  Bruno Haible  <bruno@clisp.org>
42970
42971         * lib/sys_select_.h: New file.
42972         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
42973         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
42974         * modules/sys_select (Files): Add lib/sys_select_.h.
42975         (Depends-on): Add absolute-header.
42976         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
42977         into sys/select.h.
42978
42979 2007-03-02  Bruno Haible  <bruno@clisp.org>
42980
42981         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
42982         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
42983         values.
42984         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
42985         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
42986         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
42987         * modules/sys_socket (Depends-on): Add absolute-header.
42988         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
42989         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
42990         (Include): Remove requirement of inclusion of <sys/types.h>.
42991
42992 2007-03-02  Bruno Haible  <bruno@clisp.org>
42993
42994         * lib/byteswap_.h (bswap_32): Fix formula.
42995
42996 2007-03-06  Bruno Haible  <bruno@clisp.org>
42997
42998         * modules/sprintf-posix-tests: New file.
42999         * tests/test-sprintf-posix.c: New file.
43000
43001         * modules/sprintf-posix: New file.
43002         * lib/sprintf.c: New file.
43003         * m4/sprintf-posix.m4: New file.
43004         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
43005         REPLACE_SPRINTF.
43006         * lib/stdio_.h (sprintf): New declaration.
43007         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
43008         REPLACE_SPRINTF.
43009
43010 2007-03-06  Bruno Haible  <bruno@clisp.org>
43011
43012         * modules/vsprintf-posix-tests: New file.
43013         * tests/test-vsprintf-posix.c: New file.
43014         * tests/test-sprintf-posix.h: New file.
43015
43016         * modules/vsprintf-posix: New file.
43017         * lib/vsprintf.c: New file.
43018         * m4/vsprintf-posix.m4: New file.
43019         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
43020         REPLACE_VSPRINTF.
43021         * lib/stdio_.h (vsprintf): New declaration.
43022         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
43023         REPLACE_VSPRINTF.
43024
43025 2007-03-06  Bruno Haible  <bruno@clisp.org>
43026
43027         * modules/vsnprintf (Depend-on): Remove minmax.
43028
43029 2007-03-06  Bruno Haible  <bruno@clisp.org>
43030
43031         * modules/snprintf-posix-tests: New file.
43032         * tests/test-snprintf-posix.c: New file.
43033
43034         * modules/snprintf-posix: New file.
43035         * m4/snprintf-posix.m4: New file.
43036         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
43037         gl_FUNC_SNPRINTF.
43038         (gl_FUNC_SNPRINTF): Invoke it.
43039         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
43040         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
43041         is set.
43042         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
43043
43044 2007-03-06  Bruno Haible  <bruno@clisp.org>
43045
43046         * modules/vsnprintf-posix-tests: New file.
43047         * tests/test-vsnprintf-posix.c: New file.
43048         * tests/test-snprintf-posix.h: New file.
43049
43050         * modules/vsnprintf-posix: New file.
43051         * m4/vsnprintf-posix.m4: New file.
43052         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
43053         gl_FUNC_VSNPRINTF.
43054         (gl_FUNC_VSNPRINTF): Invoke it.
43055         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
43056         * lib/stdio_.h (vsnprintf): Define as a replacement if
43057         REPLACE_VSNPRINTF is set.
43058         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
43059
43060 2007-03-06  Bruno Haible  <bruno@clisp.org>
43061
43062         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
43063         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
43064
43065 2007-03-06  Bruno Haible  <bruno@clisp.org>
43066
43067         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
43068         (asinl): Declare also if HAVE_DECL_ASINL is set.
43069         (atanl): Declare also if HAVE_DECL_ATANL is set.
43070         (ceill): Declare also if HAVE_DECL_CEILL is set.
43071         (cosl): Declare also if HAVE_DECL_COSL is set.
43072         (expl): Declare also if HAVE_DECL_EXPL is set.
43073         (floorl): Declare also if HAVE_DECL_FLOORL is set.
43074         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
43075         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
43076         (logl): Declare also if HAVE_DECL_LOGL is set.
43077         (sinl): Declare also if HAVE_DECL_SINL is set.
43078         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
43079         (tanl): Declare also if HAVE_DECL_TANL is set.
43080         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
43081         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
43082         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
43083         declaration of frexpl, ldexpl.
43084         * modules/printf-frexpl (Depends-on): Add math.
43085         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
43086
43087 2007-03-05  Bruno Haible  <bruno@clisp.org>
43088
43089         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
43090         frexpl and ldexpl are declared.
43091         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
43092
43093 2007-03-05  Bruno Haible  <bruno@clisp.org>
43094
43095         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
43096         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
43097
43098 2007-03-05  Bruno Haible  <bruno@clisp.org>
43099
43100         * lib/stdio_.h: Include <stddef.h>.
43101
43102 2007-03-05  Bruno Haible  <bruno@clisp.org>
43103
43104         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
43105
43106 2007-03-05  Bruno Haible  <bruno@clisp.org>
43107
43108         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
43109         NetBSD 4, from Ralf Wildenhues.
43110
43111 2007-03-04  Bruno Haible  <bruno@clisp.org>
43112
43113         * lib/vasprintf.h: Update #if logic for the case when the functions
43114         exist but are overridden.
43115
43116 2007-03-04  Bruno Haible  <bruno@clisp.org>
43117
43118         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
43119         implementations: glibc-2.4 and MacOS X 10.3.
43120         * tests/test-vasnprintf-posix.c (test_function): Test also the case
43121         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
43122         * tests/test-vasprintf-posix.c (test_function): Likewise.
43123
43124 2007-03-04  Bruno Haible  <bruno@clisp.org>
43125
43126         * modules/vasprintf-posix-tests: New file.
43127         * tests/test-vasprintf-posix.c: New file.
43128
43129         * modules/vasprintf-posix: New file.
43130         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
43131         defined.
43132         * m4/vasprintf-posix.m4: New file.
43133         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
43134         gl_FUNC_VASPRINTF.
43135         (gl_FUNC_VASPRINTF): Invoke it.
43136         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
43137         here.
43138         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
43139
43140 2007-03-04  Bruno Haible  <bruno@clisp.org>
43141
43142         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
43143         REPLACE_GETTIMEOFDAY.
43144         * modules/sys_time (Makefile.am): Likewise.
43145         * m4/sys_time_h.m4: Likewise.
43146         * m4/gettimeofday.m4: Likewise.
43147
43148 2007-03-04  Bruno Haible  <bruno@clisp.org>
43149
43150         * modules/vasnprintf-posix-tests: New file.
43151         * tests/test-vasnprintf-posix.c: New file.
43152
43153         * modules/vasnprintf-posix: New file.
43154         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
43155         printf-frexpl.h.
43156         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
43157         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
43158         REPLACE_VASNPRINTF is defined.
43159         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
43160         gl_FUNC_VASNPRINTF.
43161         (gl_FUNC_VASNPRINTF): Invoke it.
43162         * m4/vasnprintf-posix.m4: New file.
43163         * m4/printf.m4: New file.
43164
43165 2007-03-04  Bruno Haible  <bruno@clisp.org>
43166
43167         Compile progreloc.c only if --enable-relocatable is specified.
43168         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
43169         if --enable-relocatable was specified.
43170         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
43171         lib_SOURCES.
43172
43173 2007-03-04  Jim Meyering  <jim@meyering.net>
43174
43175         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
43176         Use it consistently, rather than enumerating errno constants.
43177
43178 2007-03-04  Bruno Haible  <bruno@clisp.org>
43179
43180         * modules/xvasprintf-tests: New file.
43181         * tests/test-xvasprintf.c: New file.
43182
43183         * modules/vasprintf-tests: New file.
43184         * tests/test-vasprintf.c: New file.
43185
43186         * modules/vasnprintf-tests: New file.
43187         * tests/test-vasnprintf.c: New file.
43188
43189         * modules/vsnprintf-tests: New file.
43190         * tests/test-vsnprintf.c: New file.
43191
43192         * modules/snprintf-tests: New file.
43193         * tests/test-snprintf.c: New file.
43194
43195 2007-03-04  Bruno Haible  <bruno@clisp.org>
43196
43197         Compile relocatable.c only if --enable-relocatable is specified.
43198         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
43199         gl_RELOCATABLE_LIBRARY.
43200         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
43201         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
43202         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
43203         gl_RELOCATABLE_LIBRARY.
43204         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
43205         (Makefile.am): Remove lib_SOURCES.
43206         * modules/relocatable-lib-lgpl (configure.ac): Invoke
43207         gl_RELOCATABLE_LIBRARY.
43208         (Makefile.am): Remove lib_SOURCES.
43209         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
43210         always.
43211         * modules/relocatable-prog-wrapper (configure.ac): Invoke
43212         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
43213
43214 2007-03-04  Bruno Haible  <bruno@clisp.org>
43215
43216         * modules/argmatch-tests: New file.
43217         * tests/test-argmatch.c: New file.
43218
43219         * tests/test-allocsa.c (main): Halve the number of loop runs.
43220
43221         * modules/alloca-opt-tests: New file.
43222         * tests/test-alloca-opt.c: New file.
43223
43224 2007-03-04  Jim Meyering  <jim@meyering.net>
43225
43226         Work around difference between Linux ACLs and Solaris 10 ZFS.
43227         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
43228         for EINVAL.
43229
43230 2007-03-03  Bruno Haible  <bruno@clisp.org>
43231
43232         * modules/relocatable-prog (Depends-on): Add back progreloc's
43233         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
43234
43235 2007-03-03  Bruno Haible  <bruno@clisp.org>
43236
43237         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
43238         * modules/relocatable-lib: New file.
43239
43240 2007-03-03  Bruno Haible  <bruno@clisp.org>
43241
43242         * modules/relocatable-prog: Renamed from modules/relocatable.
43243         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
43244
43245 2007-03-03  Bruno Haible  <bruno@clisp.org>
43246
43247         * modules/relocatable-script (Files): Add doc/relocatable.texi,
43248         m4/relocatable-lib.m4.
43249         (Depends-on): Remove 'relocatable'.
43250         (configure.ac): Add gl_RELOCATABLE_NOP.
43251
43252 2007-03-03  Bruno Haible  <bruno@clisp.org>
43253
43254         * modules/relocatable-prog-wrapper: New file.
43255         * modules/relocatable (Depends-on): Add it. Remove all other
43256         dependencies except progname.
43257         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
43258
43259         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
43260         (gl_FUNC_STRERROR): Nop.
43261         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
43262
43263         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
43264         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
43265
43266         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
43267         (gl_FUNC_READLINK): Update.
43268
43269         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
43270
43271 2007-03-03  Bruno Haible  <bruno@clisp.org>
43272
43273         * lib/xreadlink.c: Include <unistd.h> unconditionally.
43274         * modules/xreadlink (Depends-on): Add unistd.
43275         * modules/xreadlink-with-size (Depends-on): Likewise.
43276
43277 2007-03-03  Bruno Haible  <bruno@clisp.org>
43278
43279         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
43280         extracted from gt_FUNC_SETENV.
43281         (gt_FUNC_SETENV): Remove macro.
43282         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
43283         remove gt_FUNC_SETENV.
43284
43285 2007-03-03  Bruno Haible  <bruno@clisp.org>
43286
43287         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
43288         ENABLE_RELOCATABLE here.
43289         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
43290
43291 2007-03-03  Bruno Haible  <bruno@clisp.org>
43292
43293         * modules/rbtreehash-list-tests (Depends-on): Add progname.
43294         * tests/test-rbtreehash_list.c: Include progname.h.
43295         (main): Call set_program_name.
43296
43297         * modules/rbtree-oset-tests (Depends-on): Add progname.
43298         * tests/test-rbtree_oset.c: Include progname.h.
43299         (main): Call set_program_name.
43300
43301         * modules/rbtree-list-tests (Depends-on): Add progname.
43302         * tests/test-rbtree_list.c: Include progname.h.
43303         (main): Call set_program_name.
43304
43305         * modules/linked-list-tests (Depends-on): Add progname.
43306         * tests/test-linked_list.c: Include progname.h.
43307         (main): Call set_program_name.
43308
43309 2007-03-03  Bruno Haible  <bruno@clisp.org>
43310
43311         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
43312         All uses of __restrict changed to _Restrict_.
43313         * lib/glob_.h (__restrict): Remove macro.
43314
43315 2007-03-02  Bruno Haible  <bruno@clisp.org>
43316
43317         * modules/gettext (configure.ac): Require gettext infrastructure
43318         from version 0.16.1.
43319
43320 2007-03-02  Bruno Haible  <bruno@clisp.org>
43321
43322         * modules/linkedhash-list-tests (Depends-on): Add progname.
43323         * tests/test-linkedhash_list.c: Include progname.h.
43324         (main): Call set_program_name.
43325
43326         * modules/carray-list-tests (Depends-on): Add progname.
43327         * tests/test-carray_list.c: Include progname.h.
43328         (main): Call set_program_name.
43329
43330         * modules/avltreehash-list-tests (Depends-on): Add progname.
43331         * tests/test-avltreehash_list.c: Include progname.h.
43332         (main): Call set_program_name.
43333
43334         * modules/avltree-oset-tests (Depends-on): Add progname.
43335         * tests/test-avltree_oset.c: Include progname.h.
43336         (main): Call set_program_name.
43337
43338         * modules/avltree-list-tests (Depends-on): Add progname.
43339         * tests/test-avltree_list.c: Include progname.h.
43340         (main): Call set_program_name.
43341
43342         * modules/array-oset-tests (Depends-on): Add progname.
43343         * tests/test-array_oset.c: Include progname.h.
43344         (main): Call set_program_name.
43345
43346         * modules/array-list-tests (Depends-on): Add progname.
43347         * tests/test-array_list.c: Include progname.h.
43348         (main): Call set_program_name.
43349
43350         * modules/argp-tests (Depends-on): Add progname.
43351         * tests/test-argp.c: Include argp.h first. Include progname.h.
43352         (main): Call set_program_name.
43353
43354 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
43355
43356         * doc/gnulib-tool.texi (Initial import): Reword description of
43357         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
43358         limited effect even if defined after the first system include.
43359
43360 2007-03-01  Bruno Haible  <bruno@clisp.org>
43361
43362         * build-aux/config.libpath: Update to libtool-1.5.22.
43363         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43364
43365 2007-03-01  Bruno Haible  <bruno@clisp.org>
43366
43367         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
43368         foo_CFLAGS.
43369         Reported by Ralf Wildenhues.
43370
43371 2007-03-01  Bruno Haible  <bruno@clisp.org>
43372
43373         * build-aux/install-reloc: Remove object files left over by some
43374         compilers.
43375         Reported by Ralf Wildenhues.
43376
43377 2007-03-01  Bruno Haible  <bruno@clisp.org>
43378
43379         * build-aux/install-reloc: Break long lines.
43380
43381 2007-03-01  Bruno Haible  <bruno@clisp.org>
43382
43383         * doc/relocatable.texi: Document that it may not work on OpenBSD.
43384         Reported by Ralf Wildenhues.
43385
43386 2007-03-01  Bruno Haible  <bruno@clisp.org>
43387
43388         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
43389         include ordering constraints.
43390
43391 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
43392
43393         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
43394         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
43395         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
43396         as another example.
43397         * lib/time_.h: Fix misspelling.
43398         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
43399         Require gl_HEADER_TIME_H_DEFAULTS.
43400         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
43401         * m4/time_r.m4 (gl_TIME_R): Likewise.
43402         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
43403
43404 2007-03-01  Bruno Haible  <bruno@clisp.org>
43405
43406         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
43407         * m4/utimens.m4 (gl_UTIMENS): Likewise.
43408
43409 2007-03-01  Jim Meyering  <jim@meyering.net>
43410
43411         * modules/xreadlink (Maintainer): Add my name.
43412         * modules/xreadlink-with-size (Depends-on): Alphabetize.
43413
43414 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
43415             Bruno Haible  <bruno@clisp.org>
43416
43417         * build-aux/install-reloc: Compile also c-ctype.c.
43418         * build-aux/relocatable.sh.in: New file.
43419         * doc/relocatable.texi: New file.
43420         * doc/relocatable-maint.texi: New file.
43421         * doc/gnulib.texi: Include relocatable-maint.texi.
43422         * lib/progreloc.c: Include unistd.h unconditionally.
43423         * lib/relocwrapper.c: Include unistd.h unconditionally.
43424         Include c-ctype.h.
43425         (add_dotbin): Use c_tolower.
43426         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
43427         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
43428         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
43429         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
43430         to m4/relocatable-lib.m4.
43431         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
43432         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
43433         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
43434         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
43435         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
43436         * modules/relocatable: New file.
43437         * modules/relocatable-lib: New file.
43438         * modules/relocatable-script: New file.
43439
43440 2007-02-28  Bruno Haible  <bruno@clisp.org>
43441
43442         Import --enable-relocatable infrastructure.
43443         * build-aux/config.libpath: New file, from GNU gettext.
43444         * build-aux/install-reloc: New file, from GNU gettext.
43445         * build-aux/reloc-ldflags: New file, from GNU gettext.
43446         * lib/relocatable.h: New file, from GNU gettext.
43447         * lib/relocatable.c: New file, from GNU gettext.
43448         * lib/relocwrapper.c: New file, from GNU gettext.
43449         * m4/relocatable.m4: New file, from GNU gettext.
43450
43451 2007-02-28  Bruno Haible  <bruno@clisp.org>
43452
43453         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
43454
43455         * modules/xreadlink: New file, from GNU gettext with modifications.
43456         * lib/xreadlink.c: New file, from GNU gettext.
43457         * lib/xreadlink.h: Add comments.
43458         (xreadlink): New declaration.
43459
43460         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
43461         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
43462         lib/xreadlink-with-size.c.
43463         (configure.ac): Remove gl_XREADLINK invocation.
43464         (Makefile.am): Augment lib_SOURCES.
43465         * m4/xreadlink.m4: Remove file.
43466         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
43467         (xreadlink_with_size): Renamed from xreadink.
43468         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
43469         * modules/canonicalize (Depends-on): Replace xreadlink with
43470         xreadlink-with-size.
43471         * lib/canonicalize.c (canonicalize_filename_mode): Update.
43472
43473 2007-02-25  Jim Meyering  <jim@meyering.net>
43474
43475         * build-aux/announce-gen: When complaining about excess arguments,
43476         list them.
43477
43478 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
43479
43480         * README: Document signed integer overflow situation more
43481         accurately.
43482
43483 2007-02-25  Bruno Haible  <bruno@clisp.org>
43484
43485         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
43486         'a' or 'A' conversion.
43487
43488 2007-02-25  Bruno Haible  <bruno@clisp.org>
43489
43490         * modules/filename: Renamed from modules/pathname.
43491         (Files): Replace lib/pathname.h with lib/filename.h. Replace
43492         lib/concatpath.c with lib/concat-filename.c.
43493         (Makefile.am): Update.
43494         (Include): Replace pathname.h with filename.h.
43495         * lib/filename.h: Renamed from lib/pathname.h.
43496         (concatenated_filename): Renamed from concatenated_pathname.
43497         * lib/concat-filename.c: Renamed from lib/concatpath.c.
43498         (concatenated_filename): Renamed from concatenated_pathname.
43499         * lib/findprog.c: Include filename.h instead of pathname.h.
43500         (find_in_path): Update.
43501         * lib/javacomp.c: Include filename.h instead of pathname.h.
43502         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
43503         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
43504         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
43505         is_oldgcj_14_13_usable, is_javac_usable): Update.
43506         * lib/javaexec.c: Include filename.h instead of pathname.h.
43507         (execute_java_class): Update.
43508         * modules/findprog: Update.
43509         * modules/javacomp: Update.
43510         * modules/javaexec: Update.
43511         * MODULES.html.sh (File system functions): Add 'filename', remove
43512         'pathname'.
43513
43514 2007-02-25  Bruno Haible  <bruno@clisp.org>
43515
43516         * modules/printf-frexpl-tests: New file.
43517         * tests/test-printf-frexpl.c: New file.
43518
43519         * modules/printf-frexpl: New file.
43520         * lib/printf-frexpl.h: New file.
43521         * lib/printf-frexpl.c: New file.
43522         * m4/printf-frexpl.m4: New file.
43523
43524 2007-02-25  Bruno Haible  <bruno@clisp.org>
43525
43526         * modules/printf-frexp-tests: New file.
43527         * tests/test-printf-frexp.c: New file.
43528
43529         * modules/printf-frexp: New file.
43530         * lib/printf-frexp.h: New file.
43531         * lib/printf-frexp.c: New file.
43532         * m4/printf-frexp.m4: New file.
43533
43534 2007-02-25  Bruno Haible  <bruno@clisp.org>
43535
43536         Assume automake >= 1.10 for the tests.
43537         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
43538         * modules/arctwo-tests: Likewise.
43539         * modules/argp-tests: Likewise.
43540         * modules/avltree-list-tests: Likewise.
43541         * modules/avltree-oset-tests: Likewise.
43542         * modules/avltreehash-list-tests: Likewise.
43543         * modules/carray-list-tests: Likewise.
43544         * modules/crc-tests: Likewise.
43545         * modules/des-tests: Likewise.
43546         * modules/gc-arcfour-tests: Likewise.
43547         * modules/gc-arctwo-tests: Likewise.
43548         * modules/gc-des-tests: Likewise.
43549         * modules/gc-hmac-md5-tests: Likewise.
43550         * modules/gc-hmac-sha1-tests: Likewise.
43551         * modules/gc-md2-tests: Likewise.
43552         * modules/gc-md4-tests: Likewise.
43553         * modules/gc-md5-tests: Likewise.
43554         * modules/gc-pbkdf2-sha1-tests: Likewise.
43555         * modules/gc-rijndael-tests: Likewise.
43556         * modules/gc-sha1-tests: Likewise.
43557         * modules/gc-tests: Likewise.
43558         * modules/getaddrinfo-tests: Likewise.
43559         * modules/hmac-md5-tests: Likewise.
43560         * modules/hmac-sha1-tests: Likewise.
43561         * modules/linked-list-tests: Likewise.
43562         * modules/linkedhash-list-tests: Likewise.
43563         * modules/lock-tests: Likewise.
43564         * modules/md2-tests: Likewise.
43565         * modules/md4-tests: Likewise.
43566         * modules/md5-tests: Likewise.
43567         * modules/rbtree-list-tests: Likewise.
43568         * modules/rbtree-oset-tests: Likewise.
43569         * modules/rbtreehash-list-tests: Likewise.
43570         * modules/read-file-tests: Likewise.
43571         * modules/rijndael-tests: Likewise.
43572         * modules/stdint-tests: Likewise.
43573         * modules/tls-tests: Likewise.
43574
43575 2007-02-24  Bruno Haible  <bruno@clisp.org>
43576
43577         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
43578         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
43579         function; instead check whether isnan with a double argument links.
43580         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
43581         function; instead check whether isnan with a 'long double' argument
43582         links.
43583         Reported by Eric Blake <ebb9@byu.net>.
43584
43585 2007-02-24  Bruno Haible  <bruno@clisp.org>
43586
43587         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
43588         defined.
43589         * lib/isnanl.c: Remove all code. Just include isnan.c.
43590         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
43591
43592 2007-02-25  Jim Meyering  <jim@meyering.net>
43593
43594         Avoid conflicting types for 'unsetenv' on FreeBSD.
43595         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
43596         conflicting with FreeBSD's (5.0 and 6.1) function declaration
43597         in stdlib.h.
43598
43599 2007-02-24  Bruno Haible  <bruno@clisp.org>
43600
43601         * modules/isnanl-nolibm-tests: New file.
43602         * tests/test-isnanl.c: New file.
43603
43604         * modules/isnanl-nolibm: New file.
43605         * lib/isnanl.h: New file.
43606         * lib/isnanl.c: New file.
43607         * m4/isnanl.m4: New file.
43608
43609 2007-02-24  Bruno Haible  <bruno@clisp.org>
43610
43611         * modules/isnan-nolibm-tests: New file.
43612         * tests/test-isnan.c: New file.
43613
43614         * modules/isnan-nolibm: New file.
43615         * lib/isnan.h: New file.
43616         * lib/isnan.c: New file.
43617         * m4/isnan.m4: New file.
43618
43619 2007-02-24  Bruno Haible  <bruno@clisp.org>
43620
43621         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
43622         assume that an exponent fits in 20 bits.
43623
43624 2007-02-24  Jim Meyering  <jim@meyering.net>
43625
43626         * m4/regex.m4: Update the description of the configure-time option,
43627         --without-included-regex, to state accurately what the defaults are,
43628         and perhaps to give people an idea why using this option is risky.
43629
43630 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
43631
43632         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
43633         loops on small arguments.  This attempts to avoid the problem
43634         Bruno Haible reported for AIX 4.3.2 in
43635         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
43636
43637 2007-02-23  Bruno Haible  <bruno@clisp.org>
43638
43639         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
43640         Needed for help2man.
43641
43642 2007-02-23  Karl Berry  <karl@gnu.org>
43643
43644         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
43645         exists, foo.h should be cvs-ignored, not committed.
43646
43647 2007-02-23  Eric Blake  <ebb9@byu.net>
43648
43649         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
43650         * lib/stat-time.h (includes): Likewise.
43651         * lib/utimecmp.c (includes): Likewise.
43652         * lib/utimens.h (includes): Likewise.
43653         * lib/getdate.y (includes): Also include "timespec.h" for use
43654         internal to the module.
43655         * modules/utimens (Depends-on): Revert yesterday's patch.
43656         * modules/nanosleep (Depends-on): Add missing dependency.
43657
43658 2007-02-22  Bruno Haible  <bruno@clisp.org>
43659
43660         * lib/glob.c: Don't include getlogin_r.h.
43661
43662 2007-02-22  Jim Meyering  <jim@meyering.net>
43663
43664         * modules/utimens (Depends-on): Add timespec, required for
43665         utimens.h's inclusion of timespec.h.
43666
43667 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
43668
43669         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
43670         long unreadable paths in GNU/Linux.  Problem reported by Andreas
43671         Schwab in
43672         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
43673         I'll try to think of a better way to fix the Solaris problem.
43674
43675         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
43676         like glibc; on Solaris 10, it fails with errno == EINVAL.
43677         POSIX says the behavior is unspecified if the first argument is NULL,
43678         so play it safe and never pass NULL to the system getcwd.
43679
43680 2007-02-21  Jim Meyering  <jim@meyering.net>
43681
43682         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
43683         of gettimeofday.  It would conflict with the one now always
43684         provided via sys_time_.h.  Reported by Matthew Woehlke, as
43685         an IRIX 6.5 build failure.
43686
43687 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
43688
43689         Minor fixups to port to Solaris 10 with Sun C 5.8.
43690         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
43691         * modules/getcwd (Depends-on): Add dirfd.
43692         * lib/putenv.c (putenv): #undef it.
43693         (rpl_putenv): New decl.
43694         (malloc, free): Include <stdlib.h> rather than prototyping separately.
43695
43696 2007-02-20  Bruno Haible  <bruno@clisp.org>
43697
43698         * modules/stdio-tests: New file.
43699         * tests/test-stdio.c: New file.
43700
43701         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
43702         (Depends-on): Add stdio.
43703         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
43704         (Include): Use <stdio.h> instead of vsnprintf.h.
43705         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
43706         HAVE_DECL_VSNPRINTF.
43707         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
43708
43709         * modules/snprintf (Files): Remove lib/snprintf.h.
43710         (Depends-on): Add stdio.
43711         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
43712         (Include): Use <stdio.h> instead of snprintf.h.
43713         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
43714         HAVE_DECL_SNPRINTF.
43715         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
43716         * lib/getaddrinfo.c: Likewise.
43717
43718         * modules/stdio: New file.
43719         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
43720         * lib/snprintf.h: Remove file.
43721         * lib/vsnprintf.h: Remove file.
43722         * lib/.cppi-disable: Remove snprintf.h.
43723         * m4/stdio_h.m4: New file.
43724         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
43725
43726 2007-02-20  Jim Meyering  <jim@meyering.net>
43727
43728         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
43729         used by e.g., mingw.  From Bruno Haible.
43730
43731 2007-02-19  Bruno Haible  <bruno@clisp.org>
43732
43733         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
43734         warnings.
43735         Reported by Ben Pfaff <blp@cs.stanford.edu>.
43736
43737 2007-02-19  Bruno Haible  <bruno@clisp.org>
43738
43739         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
43740         from mingw users.
43741
43742 2007-02-19  Bruno Haible  <bruno@clisp.org>
43743
43744         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
43745         warnings.
43746         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
43747
43748 2007-02-19  Jim Meyering  <jim@meyering.net>
43749
43750         Don't use FD after a successful "fdopendir (fd)".
43751         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
43752         Reset it by calling dirfd on the just-obtained DIR*.
43753
43754         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
43755         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
43756
43757 2007-02-18  Bruno Haible  <bruno@clisp.org>
43758
43759         * lib/readlink.c: Include <unistd.h>.
43760         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
43761         HAVE_READLINK.
43762         * modules/readlink (Depends-on): Add unistd.
43763         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43764         (Include): Add <unistd.h>.
43765
43766         * lib/getlogin_r.h: Remove file.
43767         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
43768         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
43769         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
43770         HAVE_DECL_GETLOGIN_R.
43771         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
43772         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43773         (Include): Use <unistd.h> instead of getlogin_r.h.
43774
43775         * lib/getcwd.h: Remove file.
43776         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
43777         * lib/xgetcwd.c: Likewise.
43778         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
43779         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
43780         * modules/getcwd (Files): Remove lib/getcwd.h.
43781         (Depends-on): Add unistd.
43782         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43783         (Include): Use <unistd.h> instad of getcwd.h.
43784
43785         * lib/ftruncate.c: Include <unistd.h> first.
43786         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
43787         Set HAVE_FTRUNCATE.
43788         * modules/ftruncate (Depends-on): Add unistd.
43789         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43790
43791         * lib/fchdir.c: Include <unistd.h> first.
43792         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
43793         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
43794         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
43795         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43796         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
43797
43798         * lib/dup2.c: Include <unistd.h> first.
43799         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
43800         HAVE_DUP2.
43801         * modules/dup2 (Depends-on): Add unistd.
43802         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43803
43804         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
43805         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
43806         REPLACE_CHOWN. Don't define chown as a macro here.
43807         * modules/chown (Depends-on): Add unistd.
43808         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43809
43810         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
43811         Add definition for GL_LINK_WARNING.
43812         (chown, dup2): New declarations.
43813         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
43814         link warning.
43815         (ftruncate): New declaration.
43816         (getcwd): New declaration, taken from old getcwd.h.
43817         (getlogin_r): New declaration, taken from old getlogin_r.h.
43818         (readlink): New declaration.
43819         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
43820         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
43821         (gl_PREREQ_UNISTD): Remove macro.
43822         (gl_UNISTD_MODULE_INDICATOR): New macro.
43823         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
43824         many new variables. Don't set UNISTD_H.
43825         * modules/unistd (Description): Change.
43826         (Depends-on): Add link-warning.
43827         (configure.ac): Update.
43828         (Makefile.am): Create unistd.h always. Substitute many new variables
43829         into it.
43830
43831 2007-02-18  Bruno Haible  <bruno@clisp.org>
43832
43833         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
43834         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
43835         HAVE_GETSUBOPT.
43836         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
43837         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
43838         * lib/getsubopt.h: Remove file.
43839         * modules/getsubopt (Files): Remove lib/getsubopt.h.
43840         (Depends-on): Add stdlib.
43841         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43842         (Includes): Use <stdlib.h> instead of getsubopt.h.
43843         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
43844         Set HAVE_GETSUBOPT.
43845         * lib/getsubopt.c: Don't include getsubopt.h.
43846
43847 2007-02-18  Bruno Haible  <bruno@clisp.org>
43848
43849         * modules/fchdir (Depends-on): Add dup2.
43850
43851 2007-02-18  Bruno Haible  <bruno@clisp.org>
43852
43853         * lib/stdlib_.h: Handle glibc's special invocation convention
43854         specially.
43855
43856 2007-02-18  Bruno Haible  <bruno@clisp.org>
43857
43858         * modules/stdlib-tests: New file.
43859         * tests/test-stdlib.c: New file.
43860
43861         * modules/mkstemp (Files): Remove lib/mkstemp.h.
43862         (Depends-on): Add stdlib.
43863         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43864         (Includes): Use <stdlib.h> instead of mkstemp.h.
43865         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
43866         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
43867         * lib/mkstemp.c: Don't include mkstemp.h.
43868         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
43869         * lib/stdlib--.h: Don't include mkstemp.h.
43870
43871         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
43872         (Depends-on): Add stdlib.
43873         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43874         (Includes): Use <stdlib.h> instead of mkdtemp.h.
43875         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
43876         HAVE_MKDTEMP.
43877         * lib/mkdtemp.c: Don't include mkdtemp.h.
43878         * lib/clean-temp.c: Don't include mkdtemp.h.
43879
43880         * modules/exit (Files): Remove lib/exit.h.
43881         (Depends-on): Add stdlib.
43882         (Makefile.am): Remove lib_SOURCES.
43883         (Include): Use <stdlib.h> instead of exit.h.
43884         * lib/argmatch.c: Don't include exit.h.
43885         * lib/execute.c: Likewise.
43886         * lib/pagealign_alloc.c: Likewise.
43887         * lib/pipe.c: Likewise.
43888         * lib/wait-process.c: Likewise.
43889         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
43890         * lib/exitfail.c: Likewise.
43891         * lib/savewd.c: Likewise.
43892         * lib/xsetenv.c: Likewise.
43893
43894         * modules/stdlib: New file.
43895         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
43896         and extra comments about mkstemp().
43897         * lib/exit.h: Remove file.
43898         * lib/mkdtemp.h: Remove file.
43899         * lib/mkstemp.h: Remove file.
43900         * m4/stdlib_h.m4: New file.
43901         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
43902
43903 2007-02-18  Bruno Haible  <bruno@clisp.org>
43904
43905         * modules/math-tests: New file.
43906         * tests/test-math.c: New file.
43907
43908         * modules/math: New file.
43909         * modules/mathl (Files): Remove lib/mathl.h.
43910         (Depends-on): Add math.
43911         (Makefile.am): Don't mention mathl.h.
43912         (Include): Use <math.h> instead of mathl.h.
43913         * lib/math_.h: New file.
43914         * lib/mathl.h: Remove file.
43915         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
43916         mathl.h.
43917         * lib/asinl.c: Likewise.
43918         * lib/atanl.c: Likewise.
43919         * lib/ceill.c: Likewise.
43920         * lib/cosl.c: Likewise.
43921         * lib/expl.c: Likewise.
43922         * lib/floorl.c: Likewise.
43923         * lib/frexpl.c: Likewise.
43924         * lib/ldexpl.c: Likewise.
43925         * lib/logl.c: Likewise.
43926         * lib/sincosl.c: Likewise.
43927         * lib/sinl.c: Likewise.
43928         * lib/sqrtl.c: Likewise.
43929         * lib/tanl.c: Likewise.
43930         * lib/trigl.c: Likewise.
43931         * m4/math_h.m4: New file.
43932         * MODULES.html.sh (Mathematics): Add math.
43933
43934 2007-02-17  Bruno Haible  <bruno@clisp.org>
43935
43936         * modules/wctype-tests: New file.
43937         * tests/test-wctype.c: New file.
43938
43939         * modules/wchar-tests: New file.
43940         * tests/test-wchar.c: New file.
43941
43942         * modules/unistd-tests: New file.
43943         * tests/test-unistd.c: New file.
43944
43945         * modules/time-tests: New file.
43946         * tests/test-time.c: New file.
43947
43948         * modules/sysexits-tests: New file.
43949         * tests/test-sysexits.c: New file.
43950
43951         * modules/sys_time-tests: New file.
43952         * tests/test-sys_time.c: New file.
43953
43954         * modules/sys_stat-tests: New file.
43955         * tests/test-sys_stat.c: New file.
43956
43957         * modules/sys_socket-tests: New file.
43958         * tests/test-sys_socket.c: New file.
43959
43960         * modules/sys_select-tests: New file.
43961         * tests/test-sys_select.c: New file.
43962
43963         * modules/string-tests: New file.
43964         * tests/test-string.c: New file.
43965
43966         * modules/stdbool-tests: New file.
43967         * tests/test-stdbool.c: New file.
43968
43969         * modules/netinet_in-tests: New file.
43970         * tests/test-netinet_in.c: New file.
43971
43972         * modules/inttypes-tests: New file.
43973         * tests/test-inttypes.c: New file.
43974
43975         * modules/fcntl-tests: New file.
43976         * tests/test-fcntl.c: New file.
43977
43978         * modules/byteswap-tests: New file.
43979         * tests/test-byteswap.c: New file.
43980
43981         * modules/arpa_inet-tests: New file.
43982         * tests/test-arpa_inet.c: New file.
43983
43984 2007-02-17  Bruno Haible  <bruno@clisp.org>
43985
43986         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
43987         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
43988         if the corresponding module is not enabled. Emit link warnings if
43989         the function is used nevertheless.
43990         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
43991         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
43992         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
43993         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
43994         * modules/inttypes (Depends-on): Add link-warning.
43995         (Makefile.am): Copy the contents of build-aux/link-warning.h into
43996         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
43997         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
43998         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
43999         * modules/imaxdiv (configure.ac): Likewise.
44000         * modules/strtoimax (configure.ac): Likewise.
44001         * modules/strtoumax (configure.ac): Likewise.
44002
44003 2007-02-17  Bruno Haible  <bruno@clisp.org>
44004
44005         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
44006         gl_STRING_MODULE_INDICATOR_DEFAULTS.
44007         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
44008         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
44009
44010 2007-02-17  Bruno Haible  <bruno@clisp.org>
44011
44012         * modules/link-warning: New file.
44013         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
44014         * lib/string_.h (GL_LINK_WARNING): Remove definition.
44015         * modules/string (Depends-on): Add link-warning.
44016         (Makefile.am): Copy the contents of build-aux/link-warning.h into
44017         string.h.
44018         * MODULES.html.sh (Support for building libraries and executables): Add
44019         link-warning.
44020
44021 2007-02-17  Bruno Haible  <bruno@clisp.org>
44022
44023         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
44024         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
44025         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
44026         long lines.
44027
44028 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
44029             Bruno Haible  <bruno@clisp.org>
44030
44031         * modules/tmpfile: New file.
44032         * lib/tmpfile.c: New file.
44033         * m4/tmpfile.m4: New file.
44034         * MODULES.html.sh (func_all_modules): New section "Input/output".
44035
44036 2007-02-15  Bruno Haible  <bruno@clisp.org>
44037
44038         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
44039         (supports_delete_on_close): New function.
44040         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
44041
44042 2007-02-14  Bruno Haible  <bruno@clisp.org>
44043
44044         * modules/mbspcasecmp-tests: New file.
44045         * tests/test-mbspcasecmp.sh: New file.
44046         * tests/test-mbspcasecmp.c: New file.
44047
44048         New module mbspcasecmp.
44049         * modules/mbspcasecmp: New file.
44050         * lib/mbspcasecmp.c: New file.
44051         * lib/string_.h (strncasecmp): Change warning message.
44052         (mbspcasecmp): New declaration.
44053         * m4/mbspcasecmp.m4: New file.
44054         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44055         GNULIB_MBSPCASECMP.
44056         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
44057         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
44058
44059 2007-02-14  Bruno Haible  <bruno@clisp.org>
44060
44061         * modules/mbsncasecmp-tests: New file.
44062         * tests/test-mbsncasecmp.sh: New file.
44063         * tests/test-mbsncasecmp.c: New file.
44064
44065         New module mbsncasecmp.
44066         * modules/mbsncasecmp: New file.
44067         * lib/mbsncasecmp.c: New file.
44068         * lib/string_.h (mbsncasecmp): New declaration.
44069         * m4/mbsncasecmp.m4: New file.
44070         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44071         GNULIB_MBSNCASECMP.
44072         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
44073         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
44074
44075 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
44076
44077         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
44078         Verify that it doesn't overlap with our flags.
44079         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
44080         do not have the desired effect in multibyte locales; instead, use
44081         mbscasecmp.
44082         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
44083         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
44084         we don't require GNU fnmatch ourselves (if our users require it, they
44085         should do so explicitly).
44086
44087         Fix regex code so it doesn't rely on strcasecmp.
44088         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
44089         Otherwise, include gnulib's langinfo.h.
44090         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
44091         undesirable behavior in non-C locales.  Instead, rely on localecharset.
44092         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
44093         * modules/regex (FILES): Remove m4/codeset.m4.
44094         (Depends-on): Add localcharset.  Remove strcase.
44095
44096 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44097
44098         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
44099         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
44100
44101 2007-02-13  Bruno Haible  <bruno@clisp.org>
44102
44103         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
44104         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44105
44106 2007-02-12  Bruno Haible  <bruno@clisp.org>
44107
44108         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
44109         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
44110         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
44111         time warning rather than a link error.
44112
44113 2007-02-12  Bruno Haible  <bruno@clisp.org>
44114
44115         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
44116         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
44117         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
44118
44119 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
44120
44121         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
44122         args, not 2.
44123
44124 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
44125
44126         New module 'time', so that apps can include <time.h> as per
44127         POSIX and GNU instead of separate include files like time_r.h
44128         and timegm.h.  This implementation tries out a simpler approach
44129         for replacing decls in standard include files (as compared to
44130         the string module), somewhat as an experiment.
44131
44132         * config/srclist.txt: Comment out mktime.c for now.
44133         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
44134         since it doesn't apply any more.  Use generic wording instead.
44135         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
44136         'time'.
44137         * lib/time_.h, m4/time_h.m4, modules/time: New files.
44138         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
44139         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
44140         Don't include <sys/types.h>; no longer needed since we assume C89.
44141         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
44142         * lib/strftime.c: Likewise.
44143         * lib/time_r.c: Likewise.
44144         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
44145         * lib/nanosleep.c: Include <time.h> first, to check interface.
44146         * lib/strptime.c: Likewise.
44147         * lib/time_r.c: Likewise.
44148         * lib/timegm.c: Likewise.
44149         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
44150         needed.
44151         * lib/timegm.c: Don't include timegm.h; no longer needed.
44152         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
44153         time.h now handles any problems in that area.
44154         (struct timespec, nanosleep): Remove; time.h now arranges for these.
44155         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
44156         that time.h defines struct timespec.
44157         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
44158         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
44159         handles that.
44160         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
44161         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
44162         needed.  Set REPLACE_LOCALTIME.
44163         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
44164         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
44165         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
44166         nanosleep; time_h.m4 now does that.  Don't require
44167         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
44168         module handles this now.
44169         * modules/getdate (Depends-on): Remove timespec.  Add time.
44170         * modules/nanosleep (Depends-on): Likewise.
44171         * modules/stat-time (Depends-on): Likewise.
44172         * modules/nanosleep (Include): Include time.h, not timespec.h.
44173         * modules/strptime (Files): Remove lib/strptime.h.
44174         (Depends-on): Add extensions, time.
44175         (Include): Include time.h, not strptime.h.
44176         * modules/time_r (Files): Remove lib/time_r.h.
44177         (Depends-on): Add time.
44178         (Include): Include time.h, not time_r.h.
44179         * modules/timegm: Likewise.
44180         * modules/timespec (Description): Now does timespec-related decls
44181         of our own, instead of struct timespec itself.
44182         (Depends-on): Add time; remove extensions.
44183         (Maintainer): Add self.
44184         * modules/utimecmp (Depends-on): Add time; remove timespec.
44185         * modules/utimens (Depends-on): Likewise.
44186         * modules/xnanosleep (Depends-on): Likewise.
44187
44188 2007-02-11  Bruno Haible  <bruno@clisp.org>
44189
44190         * lib/c-strstr.c: Include allocsa.h.
44191         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
44192         * lib/c-strcasestr.c: Include allocsa.h.
44193         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
44194         * lib/strcasestr.c: Include allocsa.h.
44195         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
44196         * lib/mbsstr.c: Include allocsa.h.
44197         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
44198         allocsa/freesa instead of malloc/free.
44199         * lib/mbscasestr.c: Include allocsa.h.
44200         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
44201         allocsa/freesa instead of malloc/free.
44202         * modules/c-strstr (Depends-on): Add allocsa.
44203         * modules/c-strcasestr (Depends-on): Likewise.
44204         * modules/strcasestr (Depends-on): Likewise.
44205         * modules/mbsstr (Depends-on): Likewise.
44206         * modules/mbscasestr (Depends-on): Likewise.
44207
44208 2007-02-11  Bruno Haible  <bruno@clisp.org>
44209
44210         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
44211
44212         * modules/mbsspn-tests: New file.
44213         * tests/test-mbsspn.sh: New file.
44214         * tests/test-mbsspn.c: New file.
44215
44216 2007-02-11  Bruno Haible  <bruno@clisp.org>
44217
44218         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
44219
44220         * modules/mbspbrk-tests: New file.
44221         * tests/test-mbspbrk.sh: New file.
44222         * tests/test-mbspbrk.c: New file.
44223
44224 2007-02-11  Bruno Haible  <bruno@clisp.org>
44225
44226         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
44227         unneeded cast.
44228
44229         * modules/mbscspn-tests: New file.
44230         * tests/test-mbscspn.sh: New file.
44231         * tests/test-mbscspn.c: New file.
44232
44233 2007-02-11  Bruno Haible  <bruno@clisp.org>
44234
44235         * modules/mbscasecmp-tests: New file.
44236         * tests/test-mbscasecmp.sh: New file.
44237         * tests/test-mbscasecmp.c: New file.
44238
44239 2007-02-11  Bruno Haible  <bruno@clisp.org>
44240
44241         Ensure O(n) worst-case complexity of mbscasestr.
44242         * lib/mbscasestr.c: Include stdbool.h.
44243         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
44244         functions.
44245         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
44246         the bookkeeping indicates that it's worth it.
44247         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
44248
44249         * modules/mbscasestr-tests: New file.
44250         * tests/test-mbscasestr1.c: New file.
44251         * tests/test-mbscasestr2.sh: New file.
44252         * tests/test-mbscasestr2.c: New file.
44253         * tests/test-mbscasestr3.sh: New file.
44254         * tests/test-mbscasestr3.c: New file.
44255         * tests/test-mbscasestr4.sh: New file.
44256         * tests/test-mbscasestr4.c: New file.
44257         * m4/locale-tr.m4: New file.
44258
44259 2007-02-11  Bruno Haible  <bruno@clisp.org>
44260
44261         Ensure O(n) worst-case complexity of mbsstr.
44262         * lib/mbsstr.c: Include stdbool.h.
44263         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
44264         functions.
44265         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
44266         bookkeeping indicates that it's worth it.
44267         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
44268
44269         * modules/mbsstr-tests: New file.
44270         * tests/test-mbsstr1.c: New file.
44271         * tests/test-mbsstr2.sh: New file.
44272         * tests/test-mbsstr2.c: New file.
44273         * tests/test-mbsstr3.sh: New file.
44274         * tests/test-mbsstr3.c: New file.
44275         * m4/locale-fr.m4: New file.
44276
44277 2007-02-11  Bruno Haible  <bruno@clisp.org>
44278
44279         * lib/mbsrchr.c (mbsrchr): Fix bug.
44280
44281         * modules/mbsrchr-tests: New file.
44282         * tests/test-mbsrchr.sh: New file.
44283         * tests/test-mbsrchr.c: New file.
44284
44285 2007-02-11  Bruno Haible  <bruno@clisp.org>
44286
44287         * lib/mbschr.c (mbschr): Fix bug.
44288
44289         * modules/mbschr-tests: New file.
44290         * tests/test-mbschr.sh: New file.
44291         * tests/test-mbschr.c: New file.
44292         * m4/locale-zh.m4: New file.
44293
44294 2007-02-11  Bruno Haible  <bruno@clisp.org>
44295
44296         Support for copying multibyte string iterators.
44297         * lib/mbiter.h: Include <string.h>.
44298         (mbiter_multi_copy): New function.
44299         (mbi_copy): New macro.
44300         * lib/mbuiter.h: Include <string.h>.
44301         (mbuiter_multi_copy): New function.
44302         (mbui_copy): New macro.
44303
44304 2007-02-11  Bruno Haible  <bruno@clisp.org>
44305
44306         New module mbslen.
44307         * modules/mbslen: New file.
44308         * lib/mbslen.c: New file.
44309         * lib/string_.h (mbslen): New declaration.
44310         * m4/mbslen.m4: New file.
44311         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44312         GNULIB_MBSLEN.
44313         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
44314         * MODULES.html.sh (Internationalization functions): Add mbslen.
44315
44316 2007-02-11  Bruno Haible  <bruno@clisp.org>
44317
44318         Ensure O(n) worst-case complexity of strcasestr substitute.
44319         * lib/strcasestr.c: Include stdbool.h.
44320         (knuth_morris_pratt): New function.
44321         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
44322         bookkeeping indicates that it's worth it.
44323         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
44324
44325         * modules/strcasestr-tests: New file.
44326         * tests/test-strcasestr.c: New file.
44327
44328 2007-02-11  Bruno Haible  <bruno@clisp.org>
44329
44330         Ensure O(n) worst-case complexity of c_strcasestr.
44331         * lib/c-strcasestr.c: Include stdbool.h, string.h.
44332         (knuth_morris_pratt): New function.
44333         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
44334         the bookkeeping indicates that it's worth it.
44335         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
44336
44337         * modules/c-strcasestr-tests: New file.
44338         * tests/test-c-strcasestr.c: New file.
44339
44340 2007-02-11  Bruno Haible  <bruno@clisp.org>
44341
44342         Ensure O(n) worst-case complexity of c_strstr.
44343         * lib/c-strstr.c: Include stdbool.h, string.h.
44344         (knuth_morris_pratt): New function.
44345         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
44346         bookkeeping indicates that it's worth it.
44347         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
44348
44349         * lib/c-strstr.c: Complete rewrite for maintainability.
44350
44351         * modules/c-strstr-tests: New file.
44352         * tests/test-c-strstr.c: New file.
44353
44354 2007-02-11  Bruno Haible  <bruno@clisp.org>
44355
44356         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
44357         5.2.1 and earlier, whereby \055 was treated just like the range
44358         delimiter '-'.
44359         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
44360
44361 2007-02-08  Bruno Haible  <bruno@clisp.org>
44362
44363         * modules/regex (Depends-on): Add stdbool.
44364         Reported by Dalibor Topic <robilad@kaffe.org>.
44365
44366 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
44367
44368         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
44369         Prefer returning from main to exiting from it.
44370         Remove unnecessary parens after sizeof.
44371
44372 2007-02-05  Bruno Haible  <bruno@clisp.org>
44373
44374         New module mbssep.
44375         * modules/mbssep: New file.
44376         * lib/mbssep.c: New file.
44377         * lib/string_.h (strsep): Add a conditional link warning.
44378         (mbssep): New declaration.
44379         * m4/mbssep.m4: New file.
44380         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44381         GNULIB_MBSSEP.
44382         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
44383         * MODULES.html.sh (Internationalization functions): Add mbssep.
44384
44385 2007-02-05  Bruno Haible  <bruno@clisp.org>
44386
44387         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
44388         Optimize search in case of 1 delimiter.
44389
44390 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
44391
44392         * lib/acl.h: Include sys/types.h before sys/acl.h.
44393
44394 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
44395
44396         Merge upstream fix for glibc bugzilla #3957:
44397
44398         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
44399
44400         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
44401         bit for RE_HAT_LISTS_NOT_NEWLINE.
44402         (build_charclass_op): Remove bogus comment.
44403
44404 2007-02-05  Simon Josefsson  <simon@josefsson.org>
44405
44406         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
44407
44408 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
44409
44410         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
44411         * lib/memmem.c [!defined _LIBC]: Include config.h.
44412
44413 2007-02-04  Bruno Haible  <bruno@clisp.org>
44414
44415         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
44416         warning message.
44417
44418 2007-02-04  Bruno Haible  <bruno@clisp.org>
44419
44420         New module mbstok_r.
44421         * modules/mbstok_r: New file.
44422         * lib/mbstok_r.c: New file.
44423         * lib/string_.h (strtok_r): Change argument names to match the
44424         comments. Add a conditional link warning.
44425         (mbstok_r): New declaration.
44426         * m4/mbstok_r.m4: New file.
44427         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44428         GNULIB_MBSTOK_R.
44429         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
44430         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
44431
44432 2007-02-04  Bruno Haible  <bruno@clisp.org>
44433
44434         New module mbsspn.
44435         * modules/mbsspn: New file.
44436         * lib/mbsspn.c: New file.
44437         * lib/string_.h (strspn): Add a conditional link warning.
44438         (mbsspn): New declaration.
44439         * m4/mbsspn.m4: New file.
44440         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44441         GNULIB_MBSSPN.
44442         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
44443         * MODULES.html.sh (Internationalization functions): Add mbsspn.
44444
44445 2007-02-04  Bruno Haible  <bruno@clisp.org>
44446
44447         New module mbspbrk.
44448         * modules/mbspbrk: New file.
44449         * lib/mbspbrk.c: New file.
44450         * lib/string_.h (strpbrk): Add a conditional link warning.
44451         (mbspbrk): New declaration.
44452         * m4/mbspbrk.m4: New file.
44453         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44454         GNULIB_MBSPBRK.
44455         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
44456         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
44457
44458 2007-02-04  Bruno Haible  <bruno@clisp.org>
44459
44460         New module mbscspn.
44461         * modules/mbscspn: New file.
44462         * lib/mbscspn.c: New file.
44463         * lib/string_.h (strcspn): Add a conditional link warning.
44464         (mbscspn): New declaration.
44465         * m4/mbscspn.m4: New file.
44466         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44467         GNULIB_MBSCSPN.
44468         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
44469         * MODULES.html.sh (Internationalization functions): Add mbscspn.
44470
44471 2007-02-04  Bruno Haible  <bruno@clisp.org>
44472
44473         New module mbscasestr, reduced goal of strcasestr.
44474         * modules/mbscasestr: New file.
44475         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
44476         (mbscasestr): Renamed from strcasestr.
44477         * lib/strcasestr.c: Don't include mbuiter.h.
44478         (strcasestr): Remove support for multibyte locales.
44479         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
44480         Change the conditional link warning.
44481         (mbscasestr): New declaration.
44482         * m4/mbscasestr.m4: New file.
44483         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
44484         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
44485         REPLACE_STRCASESTR.
44486         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
44487         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44488         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
44489         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
44490         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
44491         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
44492         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
44493         (Depends-on): Remove mbuiter.
44494         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
44495
44496 2007-02-04  Bruno Haible  <bruno@clisp.org>
44497
44498         Simplify handling of strncasecmp.
44499         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
44500         the conditional link warning.
44501         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44502         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
44503         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
44504         * modules/strcase (configure.ac): Don't invoke
44505         gl_STRING_MODULE_INDICATOR.
44506         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
44507
44508 2007-02-04  Bruno Haible  <bruno@clisp.org>
44509
44510         New module mbscasecmp, reduced goal of strcasecmp.
44511         * modules/mbscasecmp: New file.
44512         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
44513         (mbscasecmp): Renamed from strcasecmp.
44514         * lib/strcasecmp.c: Don't include mbuiter.h.
44515         (strcasecmp): Remove support for multibyte locales.
44516         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
44517         Change the conditional link warning.
44518         (mbscasecmp): New declaration.
44519         * m4/mbscasecmp.m4: New file.
44520         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
44521         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
44522         REPLACE_STRCASECMP.
44523         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
44524         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44525         GNULIB_MBSCASECMP.
44526         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
44527         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
44528         * modules/strcase (Files): Remove m4/mbrtowc.m4.
44529         (Depends-on): Remove mbuiter.
44530         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
44531
44532 2007-02-04  Bruno Haible  <bruno@clisp.org>
44533
44534         New module mbsstr. Remove module strstr.
44535         * modules/mbsstr: New file.
44536         * modules/strstr: Remove file.
44537         * lib/mbsstr.c: Renamed from lib/strstr.c.
44538         (mbsstr): Renamed from strstr.
44539         * lib/string_.h (strstr): Remove declaration. Change the conditional
44540         link warning.
44541         (mbsstr): New declaration.
44542         * m4/mbsstr.m4: New file.
44543         * m4/strstr.m4: Remove file.
44544         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
44545         REPLACE_STRSTR.
44546         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
44547         Don't initialize GNULIB_STRSTR.
44548         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
44549         substitute GNULIB_STRSTR and REPLACE_STRSTR.
44550         * MODULES.html.sh (Internationalization functions): Add mbsstr.
44551         (Support for systems lacking ANSI C 89): Remove strstr.
44552
44553 2007-02-04  Bruno Haible  <bruno@clisp.org>
44554
44555         New module mbsrchr.
44556         * modules/mbsrchr: New file.
44557         * lib/mbsrchr.c: New file.
44558         * lib/string_.h (strrchr): Add a conditional link warning.
44559         (mbsrchr): New declaration.
44560         * m4/mbsrchr.m4: New file.
44561         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44562         GNULIB_MBSRCHR.
44563         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
44564         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
44565
44566 2007-02-04  Bruno Haible  <bruno@clisp.org>
44567
44568         New module mbschr.
44569         * modules/mbschr: New file.
44570         * lib/mbschr.c: New file.
44571         * lib/string_.h (strchr): Add a conditional link warning.
44572         (mbschr): New declaration.
44573         * m4/mbschr.m4: New file.
44574         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44575         GNULIB_MBSCHR.
44576         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
44577         * MODULES.html.sh (Internationalization functions): Add mbschr.
44578
44579 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
44580
44581         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
44582
44583         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
44584
44585 2007-02-04  Bruno Haible  <bruno@clisp.org>
44586
44587         New module description section 'configure.ac-early'.
44588         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
44589         (func_get_autoconf_early_snippet): New function.
44590         (func_import, func_create_testdir): Use it. Remove special cases for
44591         modules 'extensions' and 'lock'.
44592         * modules/extensions (configure.ac-early): Require
44593         gl_USE_SYSTEM_EXTENSIONS.
44594         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
44595
44596 2007-02-04  Bruno Haible  <bruno@clisp.org>
44597
44598         Make use of gcj-4.3's -fsource and -ftarget option.
44599         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
44600         and if so try the options -fsource and -ftarget.
44601         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
44602         source_version, ftarget_option, target_version arguments.
44603         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
44604         (is_envjavac_oldgcj_14_14_usable): Renamed from
44605         is_envjavac_gcj_14_14_usable.
44606         (is_envjavac_oldgcj_14_13_usable): Renamed from
44607         is_envjavac_gcj_14_13_usable.
44608         (is_gcj_present): Update.
44609         (is_gcj_43, is_gcj43_usable): New functions.
44610         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
44611         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
44612         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
44613         try the options -fsource and -ftarget.
44614
44615 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
44616
44617         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
44618         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
44619         larger value.
44620
44621 2007-02-03  Jim Meyering  <jim@meyering.net>
44622
44623         Give tools a better chance to allocate space for very large buffers.
44624         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
44625
44626         Make pwd and readlink work also when run with an unreadable parent dir
44627         on systems with openat support.
44628         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
44629         provided getcwd function, even when we have openat support.
44630         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
44631
44632 2007-02-02  Bruno Haible  <bruno@clisp.org>
44633
44634         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
44635         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
44636         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
44637         portability problems if one of these functions is only used on specific
44638         platforms.
44639         Reported by Paul Eggert.
44640
44641 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
44642
44643         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
44644         is causing more trouble than it's curing.
44645         * lib/regex_internal.h (__mempcpy): Remove.
44646         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
44647         (and make the code a tad smaller to boot).
44648         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
44649
44650 2007-02-02  Jim Meyering  <jim@meyering.net>
44651
44652         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
44653         section, not in the Makefile.am: one.
44654
44655 2007-02-02  Eric Blake  <ebb9@byu.net>
44656
44657         * lib/strchrnul.c: Always include config.h first.
44658
44659         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
44660         gnulib strstr is not necessary here.
44661
44662 2007-02-02  Simon Josefsson  <simon@josefsson.org>
44663
44664         * m4/socklen.m4: Fix typo.
44665
44666 2007-02-02  Eric Blake  <ebb9@byu.net>
44667
44668         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
44669         * modules/netinet_in (Makefile.am): Likewise.
44670
44671 2007-02-01  Bruno Haible  <bruno@clisp.org>
44672
44673         * lib/string_.h (GL_LINK_WARNING): New macro.
44674         (strcasecmp, strstr, strcasestr): If provided by the system,
44675         conditionally define as a macro that leads to a warning instead of to
44676         an error.
44677         (strncasecmp): Conditionally define as a macro that leads to a warning.
44678
44679 2007-02-01  Karl Berry  <karl@gnu.org>
44680
44681         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
44682
44683 2007-02-01  Bruno Haible  <bruno@clisp.org>
44684
44685         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
44686         renamings.
44687
44688 2007-02-01  Eric Blake  <ebb9@byu.net>
44689
44690         * modules/regex (Depends-on): Revert dependence on mempcpy.
44691         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
44692         module's definition of mempcpy.
44693         Reported by Paul Eggert.
44694
44695 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
44696
44697         * lib/string_.h: If the gnulib module XYZ is not present, undefine
44698         the symbol XYZ before redefining it.  This fixes a problem with
44699         programs that don't use XYZ, when compiled on systems that define
44700         XYZ to something else.
44701
44702 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
44703
44704         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
44705         occurs when "mkdir -m foo" creates a setgid directory that is (1)
44706         writeable to group or other and (2) is intended to have a special
44707         mode bit that is set or cleared.  In such a case, the directory
44708         should be neither group- nor other-writeable until the special
44709         mode bits are right.
44710
44711 2007-01-31  Eric Blake  <ebb9@byu.net>
44712
44713         * modules/mountlist (Depends-on): Add strstr.
44714
44715         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
44716         bug.
44717         * modules/string (Makefile.am): Remove redundant replacement.
44718         * modules/regex (Depends-on): Add mempcpy.
44719
44720 2007-01-31  Bruno Haible  <bruno@clisp.org>
44721
44722         New module description field 'Link'.
44723         * gnulib-tool (func_usage): Document --extract-link-directive.
44724         (sed_extract_prog): Recognize 'Link' directive.
44725         (func_get_link_directive): New function.
44726         (func_import): Show summary of link directives.
44727         Handle --extract-link-directive option.
44728         * modules/acl (Link): New section.
44729         * modules/clock-time (Link): New section.
44730         * modules/euidaccess (Link): New section.
44731         * modules/gettext (Link): New section.
44732         * modules/iconv (Link): New section.
44733         * modules/lock (Link): New section.
44734         * modules/nanosleep (Link): New section.
44735         * modules/readline (Link): New section.
44736
44737 2007-01-27  Bruno Haible  <bruno@clisp.org>
44738
44739         Enforce the use of gnulib modules for unportable <string.h> functions.
44740         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
44741         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
44742         (gl_HEADER_STRING_H_BODY): Require it.
44743         * lib/string_.h: If the gnulib module XYZ is not present, redefine
44744         the symbol XYZ to one that gives a link error.
44745         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
44746         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
44747         * modules/mempcpy (configure.ac): Likewise.
44748         * modules/memrchr (configure.ac): Likewise.
44749         * modules/stpcpy (configure.ac): Likewise.
44750         * modules/stpncpy (configure.ac): Likewise.
44751         * modules/strcase (configure.ac): Likewise.
44752         * modules/strcasestr (configure.ac): Likewise.
44753         * modules/strchrnul (configure.ac): Likewise.
44754         * modules/strdup (configure.ac): Likewise.
44755         * modules/strndup (configure.ac): Likewise.
44756         * modules/strnlen (configure.ac): Likewise.
44757         * modules/strpbrk (configure.ac): Likewise.
44758         * modules/strsep (configure.ac): Likewise.
44759         * modules/strstr (configure.ac): Likewise.
44760         * modules/strtok_r (configure.ac): Likewise.
44761
44762 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
44763
44764         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
44765
44766 2007-01-30  Jim Meyering  <jim@meyering.net>
44767
44768         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
44769
44770 2007-01-29  Bruno Haible  <bruno@clisp.org>
44771
44772         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
44773         * lib/execute.c: Likewise.
44774         * lib/pipe.c: Likewise.
44775         * lib/printf-args.h: Likewise.
44776         * lib/printf-args.c: Likewise.
44777         * lib/printf-parse.c: Likewise.
44778         * lib/vasnprintf.c: Likewise.
44779
44780 2007-01-29  Eric Blake  <ebb9@byu.net>
44781
44782         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
44783         declaration.
44784
44785 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
44786
44787         * lib/strptime.h (strptime): Use 'restrict' for args where
44788         POSIX requires this.
44789         * lib/strptime.c (strptime): Likewise.
44790         Change license notice from LGPL to GPL, since gnulib-tool will
44791         change this as needed.
44792         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
44793         defined.
44794         Include "strptime.h" first, to check interface.
44795         Do not #undef _LIBC and _NL_CURRENT.
44796         Do not include <stdlib.h>; no longer needed.
44797         Include "time_r.h" and declare ptime_locale_status
44798         only if _LIBC is not defined.
44799         (__P): Remove unused macro.
44800         (match_string): Bring back glibc version, but use it only if _LIBC
44801         is defined.
44802         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
44803         Remove unnecessary assertion and abort() call.
44804         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
44805         * m4/strptime.m4: Fix serial number comment.
44806         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
44807         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
44808         (Depends-on): Add time_r.
44809
44810 2007-01-29  Bruno Haible  <bruno@clisp.org>
44811
44812         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44813         strptime.
44814         * modules/strptime (Depends-on): Add stdbool.
44815         * lib/strptime.h: Include <time.h> always. Add comments.
44816
44817 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
44818
44819         * modules/strptime: New file.
44820         * lib/strptime.h: New file.
44821         * lib/strptime.c: New file.
44822         * m4/strptime.m4: New file.
44823
44824 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
44825
44826         * MODULES.html.sh: New module mpsort.
44827         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
44828
44829         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
44830         a circularity problem with HP-UX ia64 reported by Bob Proulx in
44831         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
44832         All uses changed.
44833         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
44834         All uses changed.
44835         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
44836         to _Restrict_.
44837         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
44838         the parameter matches the prototype.
44839
44840 2007-01-28  Jim Meyering  <jim@meyering.net>
44841
44842         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
44843         sys/time.h here, reverting that part of the previous patch:
44844         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
44845
44846 2007-01-28  Bruno Haible  <bruno@clisp.org>
44847
44848         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
44849         value of $(SYS_TIME_H).
44850         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
44851         remove it conditionally, too. [added by Jim Meyering]
44852         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
44853         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
44854         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
44855         GETTIMEOFDAY_REPLACEMENT to 1.
44856
44857 2007-01-28  Bruno Haible  <bruno@clisp.org>
44858
44859         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
44860         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
44861         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
44862         Set UNISTD_H instead of UNISTD_H2.
44863         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
44864
44865 2007-01-28  Bruno Haible  <bruno@clisp.org>
44866
44867         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
44868         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
44869
44870 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44871
44872         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
44873         (func_create_testdir): Ensure C locale for `grep' and `tr'
44874         character ranges.
44875         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
44876         ACLOCAL_AMFLAGS parsing state machine.
44877
44878 2007-01-27  Bruno Haible  <bruno@clisp.org>
44879
44880         * modules/unistr/base: Update.
44881
44882 2007-01-27  Bruno Haible  <bruno@clisp.org>
44883
44884         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
44885         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
44886         * modules/unistr/u32-mbtouc-unsafe: Renamed from
44887         modules/unistr/u32-mbtouc.
44888         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
44889         * lib/unistr.h: Update.
44890         * lib/linebreak.c: Update.
44891         * modules/unistr/u32-mbtouc: Renamed from
44892         modules/unistr/u32-mbtouc-safe.
44893         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
44894         * lib/unistr.h: Update.
44895         * lib/unistr/u32-to-u8.c: Update.
44896         * lib/unistr/u32-to-u16.c: Update.
44897
44898 2007-01-27  Bruno Haible  <bruno@clisp.org>
44899
44900         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
44901         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
44902         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
44903         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
44904         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
44905         * modules/unistr/u16-mbtouc-unsafe: Renamed from
44906         modules/unistr/u16-mbtouc.
44907         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
44908         * lib/unistr.h: Update.
44909         * lib/linebreak.c: Update.
44910         * modules/linebreak: Update.
44911         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
44912         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
44913         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
44914         * modules/unistr/u16-mbtouc: Renamed from
44915         modules/unistr/u16-mbtouc-safe.
44916         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
44917         * lib/unistr.h: Update.
44918         * lib/unistr/u16-to-u8.c: Update.
44919         * modules/unistr/u16-to-u8: Update.
44920         * lib/unistr/u16-to-u32.c: Update.
44921         * modules/unistr/u16-to-u32: Update.
44922
44923 2007-01-27  Bruno Haible  <bruno@clisp.org>
44924
44925         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
44926         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
44927         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
44928         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
44929         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
44930         * modules/unistr/u8-mbtouc-unsafe: Renamed from
44931         modules/unistr/u8-mbtouc.
44932         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
44933         * lib/unistr.h: Update.
44934         * lib/striconveh.c: Update.
44935         * modules/striconveh: Update.
44936         * lib/linebreak.c: Update.
44937         * modules/linebreak: Update.
44938         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
44939         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
44940         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
44941         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
44942         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
44943         * lib/unistr.h: Update.
44944         * lib/striconveh.c: Update.
44945         * modules/striconveh: Update.
44946         * lib/unistr/u8-to-u16.c: Update.
44947         * modules/unistr/u8-to-u16: Update.
44948         * lib/unistr/u8-to-u32.c: Update.
44949         * modules/unistr/u8-to-u32: Update.
44950
44951 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44952
44953         Sync from Libtool.
44954         * lib/argz.c: Do not include strings.h nor memory.h, include
44955         string.h unconditionally.  Patch by Simon Josefsson.
44956
44957 2007-01-27  Bruno Haible  <bruno@clisp.org>
44958
44959         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
44960         from gl_HEADER_STRING_H_BODY.
44961         (gl_HEADER_STRING_H_BODY): Require it.
44962         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
44963         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
44964         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
44965         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
44966         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
44967         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
44968         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44969         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
44970         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
44971         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
44972         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
44973         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
44974         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
44975         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
44976         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
44977
44978 2007-01-27  Bruno Haible  <bruno@clisp.org>
44979
44980         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
44981         check_PROGRAMS into noinst_PROGRAMS.
44982         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
44983         check_PROGRAMS in this case.
44984         (func_import): Set for_test to false.
44985         (func_create_testdir): Set for_test to true.
44986
44987 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
44988             Bruno Haible  <bruno@clisp.org>
44989
44990         * modules/strcasestr (Files): Remove lib/strcasestr.h.
44991         (Depends-on): Add string.
44992         (Includes): Use <string.h> instead of strcasestr.h.
44993         * modules/string (Makefile.am): Also substitute the value of
44994         REPLACE_STRCASESTR.
44995         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
44996         assume strcasestr is declared in <string.h> not <strings.h>. Also
44997         set REPLACE_STRCASESTR.
44998         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
44999         REPLACE_STRCASESTR.
45000         * lib/strcasestr.h: Remove file.
45001         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
45002         * lib/string_.h (strcasestr): New declaration.
45003
45004 2007-01-27  Bruno Haible  <bruno@clisp.org>
45005
45006         * lib/string_.h: Use 'extern'.
45007
45008 2007-01-27  Jim Meyering  <jim@meyering.net>
45009
45010         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
45011         of set-but-not-used local, "q".
45012
45013         * lib/mempcpy.c: Include <config.h> before <string.h>.
45014         This fixes a compilation error on HP-UX, due to the system's
45015         "restrict"-using mempcpy prototype.
45016
45017 2007-01-26  Bruno Haible  <bruno@clisp.org>
45018
45019         Small optimization.
45020         * lib/javacomp.c: Include c-strstr.h.
45021          (is_envjavac_gcj): Use c_strstr instead of strstr.
45022         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
45023
45024 2007-01-26  Bruno Haible  <bruno@clisp.org>
45025
45026         * MODULES.html.sh (Unicode string functions): Add the new modules.
45027
45028         * modules/uniconv/u32-strconv-to-locale: New file.
45029         * lib/uniconv/u32-strconv-to-locale.c: New file.
45030
45031         * modules/uniconv/u16-strconv-to-locale: New file.
45032         * lib/uniconv/u16-strconv-to-locale.c: New file.
45033
45034         * modules/uniconv/u8-strconv-to-locale: New file.
45035         * lib/uniconv/u8-strconv-to-locale.c: New file.
45036
45037         * modules/uniconv/u32-strconv-from-locale: New file.
45038         * lib/uniconv/u32-strconv-from-locale.c: New file.
45039
45040         * modules/uniconv/u16-strconv-from-locale: New file.
45041         * lib/uniconv/u16-strconv-from-locale.c: New file.
45042
45043         * modules/uniconv/u8-strconv-from-locale: New file.
45044         * lib/uniconv/u8-strconv-from-locale.c: New file.
45045
45046         * modules/uniconv/u32-strconv-to-enc: New file.
45047         * lib/uniconv/u32-strconv-to-enc.c: New file.
45048         * modules/uniconv/u32-strconv-to-enc-tests: New file.
45049         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
45050
45051         * modules/uniconv/u16-strconv-to-enc: New file.
45052         * lib/uniconv/u16-strconv-to-enc.c: New file.
45053         * lib/uniconv/u-strconv-to-enc.h: New file.
45054         * modules/uniconv/u16-strconv-to-enc-tests: New file.
45055         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
45056
45057         * modules/uniconv/u8-strconv-to-enc: New file.
45058         * lib/uniconv/u8-strconv-to-enc.c: New file.
45059         * modules/uniconv/u8-strconv-to-enc-tests: New file.
45060         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
45061
45062         * modules/uniconv/u32-strconv-from-enc: New file.
45063         * lib/uniconv/u32-strconv-from-enc.c: New file.
45064         * modules/uniconv/u32-strconv-from-enc-tests: New file.
45065         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
45066
45067         * modules/uniconv/u16-strconv-from-enc: New file.
45068         * lib/uniconv/u16-strconv-from-enc.c: New file.
45069         * modules/uniconv/u16-strconv-from-enc-tests: New file.
45070         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
45071
45072         * modules/uniconv/u8-strconv-from-enc: New file.
45073         * lib/uniconv/u8-strconv-from-enc.c: New file.
45074         * lib/uniconv/u-strconv-from-enc.h: New file.
45075         * modules/uniconv/u8-strconv-from-enc-tests: New file.
45076         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
45077
45078         * modules/uniconv/u32-conv-from-enc: New file.
45079         * lib/uniconv/u32-conv-from-enc.c: New file.
45080         * modules/uniconv/u32-conv-from-enc-tests: New file.
45081         * tests/uniconv/test-u32-conv-from-enc.c: New file.
45082
45083         * modules/uniconv/u16-conv-from-enc: New file.
45084         * lib/uniconv/u16-conv-from-enc.c: New file.
45085         * lib/uniconv/u-conv-from-enc.h: New file.
45086         * modules/uniconv/u16-conv-from-enc-tests: New file.
45087         * tests/uniconv/test-u16-conv-from-enc.c: New file.
45088
45089         * modules/uniconv/u8-conv-from-enc: New file.
45090         * lib/uniconv/u8-conv-from-enc.c: New file.
45091         * modules/uniconv/u8-conv-from-enc-tests: New file.
45092         * tests/uniconv/test-u8-conv-from-enc.c: New file.
45093
45094         * modules/uniconv/base: New file.
45095         * lib/uniconv.h: New file.
45096
45097 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
45098
45099         * doc/gnulib-tool.texi (Initial import): Update to match current
45100         behavior with strdup module.
45101         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
45102         * lib/memmem.h: Remove; all uses removed.  This is now done
45103         by <string.h>.
45104         * lib/mempcpy.h: Likewise.
45105         * lib/memrchr.h: Likewise.
45106         * lib/stpcpy.h: Likewise.
45107         * lib/stpncpy.h: Likewise.
45108         * lib/strcase.h: Likewise.
45109         * lib/strchrnul.h: Likewise.
45110         * lib/strdup.h: Likewise.
45111         * lib/strndup.h: Likewise.
45112         * lib/strnlen.h: Likewise.
45113         * lib/strpbrk.h: Likewise.
45114         * lib/strsep.h: Likewise.
45115         * lib/strstr.h: Likewise.
45116         * lib/strtok_r.h: Likewise.
45117         * lib/string_.h: New file.
45118         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
45119         Rely on <string.h> instead.
45120         * lib/canon-host.c: Likewise.
45121         * lib/chdir-long.c: Likewise.
45122         * lib/concatpath.c: Likewise.
45123         * lib/exclude.c: Likewise.
45124         * lib/fchdir.c: Likewise.
45125         * lib/getaddrinfo.c: Likewise.
45126         * lib/getcwd.c: Likewise.
45127         * lib/getsubopt.c: Likewise.
45128         * lib/glob.c: Likewise.
45129         * lib/hard-locale.c: Likewise.
45130         * lib/iconvme.c: Likewise.
45131         * lib/javacomp.c: Likewise.
45132         * lib/mempcpy.c: Likewise.
45133         * lib/memrchr.c: Likewise.
45134         * lib/regex_internal.h: Likewise.
45135         * lib/stpncpy.c: Likewise.
45136         * lib/strcasecmp.c: Likewise.
45137         * lib/strchrnul.c: Likewise.
45138         * lib/strdup.c: Likewise.
45139         * lib/striconv.c: Likewise.
45140         * lib/striconveh.c: Likewise.
45141         * lib/striconveha.c: Likewise.
45142         * lib/strncasecmp.c: Likewise.
45143         * lib/strndup.c: Likewise.
45144         * lib/strnlen.c: Likewise.
45145         * lib/strsep.c: Likewise.
45146         * lib/strstr.c: Likewise.
45147         * lib/strtok_r.c: Likewise.
45148         * lib/userspec.c: Likewise.
45149         * lib/w32spawn.h: Likewise.
45150         * lib/xstrndup.c: Likewise.
45151         * lib/mountlist.c (strstr): Remove decl.
45152         * m4/string_h.m4: New file.
45153         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
45154         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
45155         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
45156         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
45157         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
45158         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
45159         Set REPLACE_STRCASECMP if necessary.
45160         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
45161         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
45162         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
45163         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
45164         HAVE_DECL_STRDUP if necessary.
45165         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
45166         since gl_FUNC_STRNDUP does that now.
45167         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
45168         Check for decl here...
45169         (gl_PREREQ_STRNLEN): ... not here.
45170         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
45171         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
45172         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
45173         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
45174         necessary.
45175         * modules/string: New file.
45176         * modules/memmem (Files): Remove special-purpose include file.
45177         (Depends-on): Add string.
45178         (Include): Include <string.h>, not the removed file.
45179         * modules/mempcpy: Likewise.
45180         * modules/memrchr: Likewise.
45181         * modules/stpcpy: Likewise.
45182         * modules/stpncpy: Likewise.
45183         * modules/strcase: Likewise.
45184         * modules/strchrnul: Likewise.
45185         * modules/strdup: Likewise.
45186         * modules/strndup: Likewise.
45187         * modules/strnlen: Likewise.
45188         * modules/strpbrk: Likewise.
45189         * modules/strsep: Likewise.
45190         * modules/strstr: Likewise.
45191         * modules/strtok_r: Likewise.
45192         * tests/test-dirname.c: Don't include "strdup.h", since
45193         <string.h> now suffices.
45194         * tests/test-memmem.c: Don't include "memmem.h", since
45195         <string.h> now suffices.
45196
45197 2007-01-25  Bruno Haible  <bruno@clisp.org>
45198
45199         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
45200         *resultp is 0.
45201
45202         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
45203         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
45204         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
45205         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
45206
45207         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
45208         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
45209         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
45210         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
45211         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
45212         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
45213
45214 2007-01-24  Bruno Haible  <bruno@clisp.org>
45215
45216         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
45217         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
45218         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
45219         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
45220         gl_FUNC_FTS_CORE.
45221         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
45222         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
45223         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
45224         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
45225         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
45226         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
45227         gl_FUNC_FCHOWNAT.
45228         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
45229         gl_FUNC_STRFTIME.
45230         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
45231         Reported by Ralf Wildenhues.
45232
45233 2007-01-24  Bruno Haible  <bruno@clisp.org>
45234
45235         Drop AC_REQUIRE calls that are redundant with the module dependencies.
45236         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
45237         gl_GETADDRINFO.
45238         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
45239         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
45240         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
45241
45242 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
45243
45244         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
45245         Don't use 'exit'; just return from 'main'.
45246         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
45247
45248         * lib/fnmatch_.h: Readjust white space and comments to match
45249         glibc, to avoid spurious diffs.
45250
45251 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
45252
45253         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
45254         2004-12-01 change by Jakub Jelinek, since this code won't compile
45255         if !LIBC.  Problem reported by Bob Proulx.
45256
45257 2007-01-23  Bruno Haible  <bruno@clisp.org>
45258
45259         * lib/striconveh.c: Include c-strcaseeq.h.
45260         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
45261         * modules/striconveh (Depends-on): Add c-strcaseeq.
45262
45263 2007-01-23  Bruno Haible  <bruno@clisp.org>
45264
45265         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
45266
45267         * modules/c-strcaseeq: New file.
45268         * lib/c-strcaseeq.h: New file.
45269
45270         * modules/streq: New file.
45271         * lib/streq.h: New file.
45272
45273 2007-01-23  Bruno Haible  <bruno@clisp.org>
45274
45275         * modules/striconveha-tests: New file.
45276         * tests/test-striconveha.c: New file.
45277
45278         * lib/striconveha.h: Include <stdbool.h>.
45279         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
45280         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
45281         (mem_iconveha_notranslit): Renamed from mem_iconveha.
45282         (mem_iconveha): New function.
45283         (str_iconveha_notranslit): Renamed from str_iconveha.
45284         (str_iconveha): New function.
45285         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
45286         c-strcase.
45287
45288 2007-01-23  Bruno Haible  <bruno@clisp.org>
45289
45290         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
45291         encodings without forgiving before trying any encoding with handler.
45292         (str_iconveha): Try all encodings without forgiving before trying any
45293         encoding with handler.
45294
45295 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
45296
45297         Import the following changes from libc.
45298
45299         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
45300
45301         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
45302
45303         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
45304
45305         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
45306         normal_bracket label.
45307
45308         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
45309
45310         [BZ #361]
45311         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
45312         to normal_bracket after fetching the next character.
45313
45314 2007-01-22  Bruno Haible  <bruno@clisp.org>
45315
45316         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
45317         argument.
45318         * lib/striconveh.c (iconv_carefully_1): New function.
45319         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
45320         argument.
45321         (str_cd_iconveh): Update.
45322         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
45323         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
45324         * tests/test-striconveh.c (MAGIC): New macro.
45325         (new_offsets): New function.
45326         (main): Test call with and without offsets.
45327
45328 2007-01-22  Bruno Haible  <bruno@clisp.org>
45329
45330         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
45331         * modules/sys_select (Makefile.am): Likewise.
45332         * modules/sys_socket (Makefile.am): Likewise.
45333         * modules/sys_time (Makefile.am): Likewise.
45334
45335 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
45336
45337         * modules/gettimeofday (License): Change from GPL to LGPL, since
45338         gettimeofday is a library function.
45339
45340 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45341
45342         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
45343
45344 2007-01-21  Bruno Haible  <bruno@clisp.org>
45345
45346         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
45347
45348 2007-01-21  Bruno Haible  <bruno@clisp.org>
45349
45350         * modules/striconveha: New file.
45351         * lib/striconveha.h: New file.
45352         * lib/striconveha.c: New file.
45353         * MODULES.html.sh (Internationalization functions): Add striconveha.
45354         * lib/striconv.c (str_iconv): Optimize the case of an empty input
45355         string.
45356         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
45357
45358 2007-01-21  Bruno Haible  <bruno@clisp.org>
45359
45360         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
45361         * lib/striconveh.c (str_iconveh): Likewise.
45362
45363 2007-01-21  Bruno Haible  <bruno@clisp.org>
45364
45365         * lib/striconveh.h (mem_iconveh): New declaration.
45366         * lib/striconveh.c (mem_iconveh): New function.
45367         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
45368
45369 2007-01-21  Bruno Haible  <bruno@clisp.org>
45370
45371         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
45372
45373         * lib/striconveh.h (mem_cd_iconveh): Change specification.
45374         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
45375         original result buffer.
45376         (str_cd_iconveh): Update.
45377         * tests/test-striconveh.c (main): Update.
45378
45379         * lib/striconv.h (mem_cd_iconv): Change specification.
45380         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
45381         result buffer.
45382         (str_cd_iconv): Update.
45383         * tests/test-striconv.c (main): Update.
45384
45385 2007-01-21  Bruno Haible  <bruno@clisp.org>
45386
45387         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
45388
45389 2007-01-20  Jim Meyering  <jim@meyering.net>
45390
45391         * lib/userspec.c (parse_with_separator): If a user or group string
45392         starts with "+", skip the corresponding name-to-ID look-up, since
45393         such a look-up must fail: user and group names may not include "+".
45394
45395 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
45396
45397         * lib/poll.c: Include sys/time.h and time.h unconditionally,
45398         since we now assume the sys_time module.
45399         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
45400         check for sys/time.h; no longer needed.
45401         * modules/poll (Depends-on): Depend on sys_time.
45402
45403 2007-01-18  Bruno Haible  <bruno@clisp.org>
45404
45405         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
45406         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
45407
45408         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
45409         gettimeofday.
45410
45411         * tests/test-gettimeofday.c: Include <time.h>.
45412         (dummy): Remove variable.
45413
45414         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
45415         gl_HEADER_SYS_TIME_H.
45416         (gl_HEADER_SYS_TIME_H): New macro.
45417
45418         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
45419         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
45420         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
45421         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
45422         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
45423         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
45424         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
45425         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
45426         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
45427         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
45428         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
45429
45430         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
45431         last change; it caused a compilation error when cross-compiling to
45432         Cygwin.
45433
45434 2007-01-18  Jim Meyering  <jim@meyering.net>
45435
45436         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
45437         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
45438         than the race-prone "test -d sys || mkdir sys".
45439         (configure.ac): Use AC_PROG_MKDIR_P.
45440         * modules/sys_select: Likewise.
45441         * modules/sys_socket: Likewise.
45442         * modules/sys_time: Likewise.
45443
45444 2007-01-18  Eric Blake  <ebb9@byu.net>
45445
45446         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
45447         replace gettimeofday.
45448         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
45449         name, to avoid infinite recursion.
45450
45451 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
45452
45453         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
45454         module sys_time.
45455         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
45456         assume timespec.h defines struct timeval.
45457         * lib/settime.c: Likewise.
45458         * lib/utimens.c: Likewise.
45459         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
45460         since we now assume the gettimeofday module.
45461         * lib/tempname.c (__gen_tempname): Likewise.
45462         * lib/gettimeofday.h: Remove.
45463         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
45464         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
45465         Include <time.h>, for 'time()'.
45466         (localtime_buffer_addr): Also use this workaround if
45467         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
45468         to simplify the uses.  All uses changed.
45469         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
45470         that #undef is inside {}, and 'const' follows type name consistently.
45471         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
45472         (gettimeofday): Do not use the maximum possible value for
45473         tv->tv_usec, since that might break usages other than ls.c.
45474         Instead, we'll leave ls.c alone.  This undoes today's patch
45475         by Bruno.  Add a compile-time warning for 1s-clock resolution;
45476         we've never observed the problem but might as well keep the
45477         canary.
45478         * lib/nanosleep.c: Include timespec.h first, for interface check.
45479         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
45480         now assume the sys_time module.
45481         * lib/tempname.c: Likewise.
45482         * lib/timespec.h: Likewise.
45483         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
45484         needed.
45485         * lib/strftime.c: Likewise.
45486         * lib/timespec.h: Likewise.
45487         * lib/posixtm.c: Include posixtm.h first, for interface check.
45488         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
45489         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
45490         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
45491         * lib/sys_time_.h: New file.
45492         * lib/timespec.h (struct timespec): Use long int, not long.
45493         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
45494         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
45495         Remove obsolescent call to AC_HEADER_TIME.
45496         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
45497         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
45498         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
45499         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
45500         Likewise.
45501         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
45502         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
45503         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
45504         into the sys_time module.  Check for gettimeofday just once.
45505         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
45506         for gettimeofday signature to just check the signature.  Merely
45507         compile it, since linking doesn't test signature.  Improve test for
45508         whether gettimeofday.o is actually needed.
45509         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
45510         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
45511         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
45512         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
45513         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
45514         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
45515         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
45516         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
45517         than worrying about sys/time.h.
45518         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
45519         Don't bother worrying about TIME_WITH_SYS_TIME.
45520         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
45521         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
45522         * m4/sys_time_h.m4: New file.
45523         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
45524         Don't include sys/time.h.  Return from main rather than exiting.
45525         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
45526         all uses changed.
45527         * modules/gethrxtime (Depends-on): Add sys_time.
45528         * modules/gettime (Depends-on): Likewise.
45529         * modules/gettimeofday (Depends-on): Likewise.
45530         * modules/nanosleep (Depends-on): Likewise.
45531         * modules/settime (Depends-on): Likewise.
45532         * modules/tempname (Depends-on): Likewise.
45533         * modules/utimens (Depends-on): Likewise.
45534         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
45535         (Include:) Change back to <sys/time.h>.
45536         (Maintainer:) Add self.
45537         * modules/sys_time: New file.
45538         * modules/tempname (Depends-on): Add gettimeofday.
45539         * tests/test-gettimeofday.c: Include <sys/time.h>
45540         rather than gettimeofday.h.
45541
45542 2007-01-17  Bruno Haible  <bruno@clisp.org>
45543
45544         * gnulib-tool (func_get_license): Revert last patch. Instead, let
45545         the license default to GPL.
45546         (func_create_testdir): Don't complain if a module is LGPL and its
45547         tests module depends on GPLed modules.
45548
45549 2007-01-17  Bruno Haible  <bruno@clisp.org>
45550
45551         * lib/gettimeofday.c (gettimeofday): Add code for the case
45552         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
45553         maximum possible value for tv->tv_usec, rather than the minimum one.
45554
45555 2005-10-08  Martin Lambers  <marlam@marlam.de>
45556 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
45557 2007-01-16  Bruno Haible  <bruno@clisp.org>
45558
45559         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
45560         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
45561         gl_FUNC_GETTIMEOFDAY.
45562         (Include): Add gettimeofday.h.
45563         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
45564         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
45565         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
45566         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
45567         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
45568         * lib/gettimeofday.h: New file.
45569         * lib/gettimeofday.c: Include <sys/timeb.h>.
45570         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
45571         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
45572         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
45573         fall back on time().
45574
45575         * tests/test-gettimeofday.c: New file.
45576         * modules/gettimeofday-tests: New file.
45577
45578 2007-01-16  Eric Blake  <ebb9@byu.net>
45579
45580         * modules/fnmatch (Depends-on): Depend on wchar.
45581         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
45582         * m4/fnmatch.m4: Likewise.
45583         * modules/mbchar (Makefile.am): Assume <wchar.h>.
45584         * m4/mbchar.m4: Likewise.
45585         * modules/mbswidth (Depends-on): Depend on wchar.
45586         * lib/mbswidth.c: Assume <wchar.h>.
45587         * m4/mbswidth.m4: Likewise.
45588         * modules/quotearg (Depends-on): Depend on wchar.
45589         * lib/quotearg.c: Assume <wchar.h>.
45590         * m4/quotearg.m4: Likewise.
45591         * modules/regex (Depends-on): Depend on wchar.
45592         * lib/regex_internal.h: Assume <wchar.h>.
45593         * m4/regex.m4: Likewise.
45594         * modules/stdint (Depends-on): Depend on wchar.
45595         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
45596         * m4/stdint.m4: Likewise.
45597         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
45598         * modules/strftime (Depends-on): Depend on wchar.
45599         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
45600         * modules/strtol (Depends-on): Depend on wchar.
45601         * lib/strtol.c: Assume <wchar.h>.
45602         * modules/wcwidth (Depends-on): Depend on wchar.
45603         * lib/wcwidth.h: Assume <wchar.h>.
45604         * m4/wcwidth.m4: Likewise.
45605
45606 2007-01-16  Bruno Haible  <bruno@clisp.org>
45607
45608         * modules/csharpexec-script: New, created from...
45609         * modules/csharpexec: ... this.
45610
45611 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
45612
45613         * modules/javaexec-script: New, created from...
45614         * modules/javaexec: ... this.
45615
45616 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45617
45618         * modules/poll (Dependencies): Add sys_select.
45619
45620 2007-01-15  Jim Meyering  <jim@meyering.net>
45621
45622         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
45623         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
45624         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
45625         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
45626
45627 2007-01-15  Bruno Haible  <bruno@clisp.org>
45628
45629         * modules/striconveh: New file.
45630         * lib/striconveh.h: New file.
45631         * lib/striconveh.c: New file.
45632         * MODULES.html.sh (Internationalization functions): Add striconveh.
45633
45634         * modules/striconveh-tests: New file.
45635         * tests/test-striconveh.c: New file.
45636
45637 2007-01-15  Bruno Haible  <bruno@clisp.org>
45638
45639         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
45640         not from GNU libiconv or GNU libc.
45641
45642 2007-01-15  Bruno Haible  <bruno@clisp.org>
45643
45644         * doc/gnulib-intro.texi (Copyright): Explain the different license
45645         terms for module descriptions, autoconf macros, tests, documentation.
45646
45647 2007-01-14  Bruno Haible  <bruno@clisp.org>
45648
45649         * modules/striconv-tests: New file.
45650         * tests/test-striconv.c: New file.
45651
45652 2007-01-14  Bruno Haible  <bruno@clisp.org>
45653
45654         * modules/iconv-tests: New file.
45655         * tests/test-iconv.c: New file.
45656
45657 2007-01-14  Bruno Haible  <bruno@clisp.org>
45658
45659         * gnulib-tool (func_get_license): For test modules, use the license of
45660         the main module.
45661
45662 2007-01-14  Bruno Haible  <bruno@clisp.org>
45663
45664         * modules/iconv (Include): Clarify that <iconv.h> can only be included
45665         if iconv is found to exist.
45666
45667 2007-01-14  Bruno Haible  <bruno@clisp.org>
45668
45669         * modules/c-ctype-tests: New file.
45670         * tests/test-c-ctype.c: New file.
45671
45672 2007-01-14  Bruno Haible  <bruno@clisp.org>
45673
45674         * modules/binary-io-tests: New file.
45675         * tests/test-binary-io.sh: New file.
45676         * tests/test-binary-io.c: New file.
45677
45678 2007-01-14  Bruno Haible  <bruno@clisp.org>
45679
45680         * modules/array-oset-tests: New file.
45681         * tests/test-array_oset.c: New file.
45682
45683 2007-01-14  Bruno Haible  <bruno@clisp.org>
45684
45685         * modules/array-list-tests: New file.
45686         * tests/test-array_list.c: New file.
45687
45688 2007-01-14  Bruno Haible  <bruno@clisp.org>
45689
45690         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
45691         and make.
45692         Reported by Simon Josefsson in
45693         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
45694
45695 2007-01-14  Bruno Haible  <bruno@clisp.org>
45696
45697         * modules/allocsa-tests: New file.
45698         * tests/test-allocsa.c: New file.
45699
45700 2007-01-14  Bruno Haible  <bruno@clisp.org>
45701
45702         * modules/fchdir (Depends-on): Add absolute-header.
45703         * modules/unistd (Depends-on): Likewise.
45704
45705 2006-12-30  Bruno Haible  <bruno@clisp.org>
45706
45707         * modules/fchdir: New file.
45708         * modules/unistd (Files): Add lib/unistd_.h.
45709         (Makefile.am): Generate unistd.h from unistd_.h.
45710         * lib/fchdir.c: New file.
45711         * lib/dirent_.h: New file.
45712         * lib/unistd_.h: New file.
45713         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
45714         * m4/fchdir.m4: New file.
45715         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
45716         (gl_HEADER_UNISTD): Invoke it.
45717         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
45718         function.
45719         * lib/backupfile.c (opendir, closedir): Undefine.
45720         * lib/chown.c (open, close): Undefine.
45721         * lib/clean-temp.c (open, close): Undefine.
45722         * lib/copy-file.c (open, close): Undefine.
45723         * lib/execute.c (open, close): Undefine.
45724         * lib/fsusage.c (open, close): Undefine.
45725         * lib/gc-gnulib.c (open, close): Undefine.
45726         * lib/getcwd.c (opendir, closedir): Undefine.
45727         * lib/glob.c (opendir, closedir): Undefine.
45728         * lib/javacomp.c (open, close): Undefine.
45729         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
45730         * lib/openat-proc.c (open, close): Undefine.
45731         * lib/pagealign_alloc.c (open, close): Undefine.
45732         * lib/pipe.c (open, close): Undefine.
45733         * lib/progreloc.c (open, close): Undefine.
45734         * lib/savedir.c (opendir, closedir): Undefine.
45735         * lib/utime.c (open, close): Undefine.
45736         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
45737
45738 2007-01-10  Bruno Haible  <bruno@clisp.org>
45739
45740         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
45741
45742 2007-01-12  Eric Blake  <ebb9@byu.net>
45743
45744         Provide a robust <wchar.h>.  Further simplifications are now
45745         possible in other modules, but not included here.
45746         * modules/wchar: New module.
45747         * m4/wchar.m4: New file.
45748         * lib/wchar_.h: Likewise.
45749         * modules/mbchar (Depends-on): Depend on wchar, as the first use
45750         of the new module.
45751         * MODULES.html.sh (Extended multibyte and wide character utilities):
45752         New section.
45753
45754 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
45755
45756         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
45757         to a reasonable default for memory allocation.
45758         (xreadlink): Don't allocate a huge buffer, to work around a buggy
45759         file system that reports garbage st_size values for symlinks.
45760         Problem reported by Liyang Hu.
45761
45762 2007-01-11  Simon Josefsson  <simon@josefsson.org>
45763
45764         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
45765         Emacs .#* auto-save files).
45766
45767 2007-01-11  Bruno Haible  <bruno@clisp.org>
45768
45769         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
45770         directory.
45771
45772 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
45773
45774         Use @...@ consistently in lib/wctype_.h.
45775         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
45776         on it being set to 1 or 0.
45777         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
45778         go back to AC_SUBSTing it.
45779         * modules/wctype (Makefile.am): Undo previous change.
45780
45781 2007-01-10  Eric Blake  <ebb9@byu.net>
45782
45783         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
45784         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
45785         * modules/wctype (Makefile.am): Likewise.
45786         Reported by Chris McGuire.
45787
45788 2007-01-10  Jim Meyering  <jim@meyering.net>
45789
45790         fts.c: a small readability/maintainability improvement
45791         * lib/fts.c (fts_read): Make this code slightly more readable and
45792         maintainable by hoisting the "sp->fts_cur = p" assignments to
45793         immediately follow the statements that set P.  Derived from
45794         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
45795
45796 2007-01-10  Eric Blake  <ebb9@byu.net>
45797
45798         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
45799         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
45800         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
45801         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
45802         Reported by Chris McGuire.
45803
45804 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45805
45806         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
45807         in sed script.
45808
45809 2007-01-09  Bruno Haible  <bruno@clisp.org>
45810
45811         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
45812         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
45813         variables.
45814         (func_module): Use them.
45815
45816 2007-01-09  Bruno Haible  <bruno@clisp.org>
45817
45818         * modules/unistr/base: New file.
45819         * lib/unistr.h: New file.
45820
45821         * modules/unistr/u8-to-u16: New file.
45822         * lib/unistr/u8-to-u16.c: New file.
45823
45824         * modules/unistr/u8-to-u32: New file.
45825         * lib/unistr/u8-to-u32.c: New file.
45826
45827         * modules/unistr/u16-to-u8: New file.
45828         * lib/unistr/u16-to-u8.c: New file.
45829
45830         * modules/unistr/u16-to-u32: New file.
45831         * lib/unistr/u16-to-u32.c: New file.
45832
45833         * modules/unistr/u32-to-u8: New file.
45834         * lib/unistr/u32-to-u8.c: New file.
45835
45836         * modules/unistr/u32-to-u16: New file.
45837         * lib/unistr/u32-to-u16.c: New file.
45838
45839         * modules/unistr/u8-check: New file.
45840         * modules/unistr/u16-check: New file.
45841         * modules/unistr/u32-check: New file.
45842         * lib/unistr/u8-check.c: New file.
45843         * lib/unistr/u16-check.c: New file.
45844         * lib/unistr/u32-check.c: New file.
45845
45846         * modules/unistr/u8-chr: New file.
45847         * modules/unistr/u16-chr: New file.
45848         * modules/unistr/u32-chr: New file.
45849         * lib/unistr/u8-chr.c: New file.
45850         * lib/unistr/u16-chr.c: New file.
45851         * lib/unistr/u32-chr.c: New file.
45852
45853         * modules/unistr/u8-cmp: New file.
45854         * modules/unistr/u16-cmp: New file.
45855         * modules/unistr/u32-cmp: New file.
45856         * lib/unistr/u8-cmp.c: New file.
45857         * lib/unistr/u16-cmp.c: New file.
45858         * lib/unistr/u32-cmp.c: New file.
45859
45860         * modules/unistr/u8-cpy: New file.
45861         * modules/unistr/u16-cpy: New file.
45862         * modules/unistr/u32-cpy: New file.
45863         * lib/unistr/u8-cpy.c: New file.
45864         * lib/unistr/u16-cpy.c: New file.
45865         * lib/unistr/u32-cpy.c: New file.
45866         * lib/unistr/u-cpy.h: New file.
45867
45868         * modules/unistr/u8-cpy-alloc: New file.
45869         * modules/unistr/u16-cpy-alloc: New file.
45870         * modules/unistr/u32-cpy-alloc: New file.
45871         * lib/unistr/u8-cpy-alloc.c: New file.
45872         * lib/unistr/u16-cpy-alloc.c: New file.
45873         * lib/unistr/u32-cpy-alloc.c: New file.
45874         * lib/unistr/u-cpy-alloc.h: New file.
45875
45876         * modules/unistr/u8-endswith: New file.
45877         * modules/unistr/u16-endswith: New file.
45878         * modules/unistr/u32-endswith: New file.
45879         * lib/unistr/u8-endswith.c: New file.
45880         * lib/unistr/u16-endswith.c: New file.
45881         * lib/unistr/u32-endswith.c: New file.
45882         * lib/unistr/u-endswith.h: New file.
45883
45884         * modules/unistr/u8-mblen: New file.
45885         * modules/unistr/u16-mblen: New file.
45886         * modules/unistr/u32-mblen: New file.
45887         * lib/unistr/u8-mblen.c: New file.
45888         * lib/unistr/u16-mblen.c: New file.
45889         * lib/unistr/u32-mblen.c: New file.
45890
45891         * modules/unistr/u8-mbtouc: New file.
45892         * modules/unistr/u16-mbtouc: New file.
45893         * modules/unistr/u32-mbtouc: New file.
45894         * lib/unistr/u8-mbtouc.c: New file.
45895         * lib/unistr/u16-mbtouc.c: New file.
45896         * lib/unistr/u32-mbtouc.c: New file.
45897
45898         * modules/unistr/u8-mbtouc-safe: New file.
45899         * modules/unistr/u16-mbtouc-safe: New file.
45900         * modules/unistr/u32-mbtouc-safe: New file.
45901         * lib/unistr/u8-mbtouc-safe.c: New file.
45902         * lib/unistr/u16-mbtouc-safe.c: New file.
45903         * lib/unistr/u32-mbtouc-safe.c: New file.
45904
45905         * modules/unistr/u8-move: New file.
45906         * modules/unistr/u16-move: New file.
45907         * modules/unistr/u32-move: New file.
45908         * lib/unistr/u8-move.c: New file.
45909         * lib/unistr/u16-move.c: New file.
45910         * lib/unistr/u32-move.c: New file.
45911         * lib/unistr/u-move.h: New file.
45912
45913         * modules/unistr/u8-next: New file.
45914         * modules/unistr/u16-next: New file.
45915         * modules/unistr/u32-next: New file.
45916         * lib/unistr/u8-next.c: New file.
45917         * lib/unistr/u16-next.c: New file.
45918         * lib/unistr/u32-next.c: New file.
45919
45920         * modules/unistr/u8-prev: New file.
45921         * modules/unistr/u16-prev: New file.
45922         * modules/unistr/u32-prev: New file.
45923         * lib/unistr/u8-prev.c: New file.
45924         * lib/unistr/u16-prev.c: New file.
45925         * lib/unistr/u32-prev.c: New file.
45926
45927         * modules/unistr/u8-set: New file.
45928         * modules/unistr/u16-set: New file.
45929         * modules/unistr/u32-set: New file.
45930         * lib/unistr/u8-set.c: New file.
45931         * lib/unistr/u16-set.c: New file.
45932         * lib/unistr/u32-set.c: New file.
45933         * lib/unistr/u-set.h: New file.
45934
45935         * modules/unistr/u8-startswith: New file.
45936         * modules/unistr/u16-startswith: New file.
45937         * modules/unistr/u32-startswith: New file.
45938         * lib/unistr/u8-startswith.c: New file.
45939         * lib/unistr/u16-startswith.c: New file.
45940         * lib/unistr/u32-startswith.c: New file.
45941         * lib/unistr/u-startswith.h: New file.
45942
45943         * modules/unistr/u8-stpcpy: New file.
45944         * modules/unistr/u16-stpcpy: New file.
45945         * modules/unistr/u32-stpcpy: New file.
45946         * lib/unistr/u8-stpcpy.c: New file.
45947         * lib/unistr/u16-stpcpy.c: New file.
45948         * lib/unistr/u32-stpcpy.c: New file.
45949         * lib/unistr/u-stpcpy.h: New file.
45950
45951         * modules/unistr/u8-stpncpy: New file.
45952         * modules/unistr/u16-stpncpy: New file.
45953         * modules/unistr/u32-stpncpy: New file.
45954         * lib/unistr/u8-stpncpy.c: New file.
45955         * lib/unistr/u16-stpncpy.c: New file.
45956         * lib/unistr/u32-stpncpy.c: New file.
45957         * lib/unistr/u-stpncpy.h: New file.
45958
45959         * modules/unistr/u8-strcat: New file.
45960         * modules/unistr/u16-strcat: New file.
45961         * modules/unistr/u32-strcat: New file.
45962         * lib/unistr/u8-strcat.c: New file.
45963         * lib/unistr/u16-strcat.c: New file.
45964         * lib/unistr/u32-strcat.c: New file.
45965         * lib/unistr/u-strcat.h: New file.
45966
45967         * modules/unistr/u8-strchr: New file.
45968         * modules/unistr/u16-strchr: New file.
45969         * modules/unistr/u32-strchr: New file.
45970         * lib/unistr/u8-strchr.c: New file.
45971         * lib/unistr/u16-strchr.c: New file.
45972         * lib/unistr/u32-strchr.c: New file.
45973
45974         * modules/unistr/u8-strcmp: New file.
45975         * modules/unistr/u16-strcmp: New file.
45976         * modules/unistr/u32-strcmp: New file.
45977         * lib/unistr/u8-strcmp.c: New file.
45978         * lib/unistr/u16-strcmp.c: New file.
45979         * lib/unistr/u32-strcmp.c: New file.
45980
45981         * modules/unistr/u8-strcpy: New file.
45982         * modules/unistr/u16-strcpy: New file.
45983         * modules/unistr/u32-strcpy: New file.
45984         * lib/unistr/u8-strcpy.c: New file.
45985         * lib/unistr/u16-strcpy.c: New file.
45986         * lib/unistr/u32-strcpy.c: New file.
45987         * lib/unistr/u-strcpy.h: New file.
45988
45989         * modules/unistr/u8-strcspn: New file.
45990         * modules/unistr/u16-strcspn: New file.
45991         * modules/unistr/u32-strcspn: New file.
45992         * lib/unistr/u8-strcspn.c: New file.
45993         * lib/unistr/u16-strcspn.c: New file.
45994         * lib/unistr/u32-strcspn.c: New file.
45995         * lib/unistr/u-strcspn.h: New file.
45996
45997         * modules/unistr/u8-strdup: New file.
45998         * modules/unistr/u16-strdup: New file.
45999         * modules/unistr/u32-strdup: New file.
46000         * lib/unistr/u8-strdup.c: New file.
46001         * lib/unistr/u16-strdup.c: New file.
46002         * lib/unistr/u32-strdup.c: New file.
46003         * lib/unistr/u-strdup.h: New file.
46004
46005         * modules/unistr/u8-strlen: New file.
46006         * modules/unistr/u16-strlen: New file.
46007         * modules/unistr/u32-strlen: New file.
46008         * lib/unistr/u8-strlen.c: New file.
46009         * lib/unistr/u16-strlen.c: New file.
46010         * lib/unistr/u32-strlen.c: New file.
46011         * lib/unistr/u-strlen.h: New file.
46012
46013         * modules/unistr/u8-strmblen: New file.
46014         * modules/unistr/u16-strmblen: New file.
46015         * modules/unistr/u32-strmblen: New file.
46016         * lib/unistr/u8-strmblen.c: New file.
46017         * lib/unistr/u16-strmblen.c: New file.
46018         * lib/unistr/u32-strmblen.c: New file.
46019
46020         * modules/unistr/u8-strmbtouc: New file.
46021         * modules/unistr/u16-strmbtouc: New file.
46022         * modules/unistr/u32-strmbtouc: New file.
46023         * lib/unistr/u8-strmbtouc.c: New file.
46024         * lib/unistr/u16-strmbtouc.c: New file.
46025         * lib/unistr/u32-strmbtouc.c: New file.
46026
46027         * modules/unistr/u8-strncat: New file.
46028         * modules/unistr/u16-strncat: New file.
46029         * modules/unistr/u32-strncat: New file.
46030         * lib/unistr/u8-strncat.c: New file.
46031         * lib/unistr/u16-strncat.c: New file.
46032         * lib/unistr/u32-strncat.c: New file.
46033         * lib/unistr/u-strncat.h: New file.
46034
46035         * modules/unistr/u8-strncmp: New file.
46036         * modules/unistr/u16-strncmp: New file.
46037         * modules/unistr/u32-strncmp: New file.
46038         * lib/unistr/u8-strncmp.c: New file.
46039         * lib/unistr/u16-strncmp.c: New file.
46040         * lib/unistr/u32-strncmp.c: New file.
46041
46042         * modules/unistr/u8-strncpy: New file.
46043         * modules/unistr/u16-strncpy: New file.
46044         * modules/unistr/u32-strncpy: New file.
46045         * lib/unistr/u8-strncpy.c: New file.
46046         * lib/unistr/u16-strncpy.c: New file.
46047         * lib/unistr/u32-strncpy.c: New file.
46048         * lib/unistr/u-strncpy.h: New file.
46049
46050         * modules/unistr/u8-strnlen: New file.
46051         * modules/unistr/u16-strnlen: New file.
46052         * modules/unistr/u32-strnlen: New file.
46053         * lib/unistr/u8-strnlen.c: New file.
46054         * lib/unistr/u16-strnlen.c: New file.
46055         * lib/unistr/u32-strnlen.c: New file.
46056         * lib/unistr/u-strnlen.h: New file.
46057
46058         * modules/unistr/u8-strpbrk: New file.
46059         * modules/unistr/u16-strpbrk: New file.
46060         * modules/unistr/u32-strpbrk: New file.
46061         * lib/unistr/u8-strpbrk.c: New file.
46062         * lib/unistr/u16-strpbrk.c: New file.
46063         * lib/unistr/u32-strpbrk.c: New file.
46064         * lib/unistr/u-strpbrk.h: New file.
46065
46066         * modules/unistr/u8-strrchr: New file.
46067         * modules/unistr/u16-strrchr: New file.
46068         * modules/unistr/u32-strrchr: New file.
46069         * lib/unistr/u8-strrchr.c: New file.
46070         * lib/unistr/u16-strrchr.c: New file.
46071         * lib/unistr/u32-strrchr.c: New file.
46072
46073         * modules/unistr/u8-strspn: New file.
46074         * modules/unistr/u16-strspn: New file.
46075         * modules/unistr/u32-strspn: New file.
46076         * lib/unistr/u8-strspn.c: New file.
46077         * lib/unistr/u16-strspn.c: New file.
46078         * lib/unistr/u32-strspn.c: New file.
46079         * lib/unistr/u-strspn.h: New file.
46080
46081         * modules/unistr/u8-strstr: New file.
46082         * modules/unistr/u16-strstr: New file.
46083         * modules/unistr/u32-strstr: New file.
46084         * lib/unistr/u8-strstr.c: New file.
46085         * lib/unistr/u16-strstr.c: New file.
46086         * lib/unistr/u32-strstr.c: New file.
46087         * lib/unistr/u-strstr.h: New file.
46088
46089         * modules/unistr/u8-strtok: New file.
46090         * modules/unistr/u16-strtok: New file.
46091         * modules/unistr/u32-strtok: New file.
46092         * lib/unistr/u8-strtok.c: New file.
46093         * lib/unistr/u16-strtok.c: New file.
46094         * lib/unistr/u32-strtok.c: New file.
46095         * lib/unistr/u-strtok.h: New file.
46096
46097         * modules/unistr/u8-uctomb: New file.
46098         * modules/unistr/u16-uctomb: New file.
46099         * modules/unistr/u32-uctomb: New file.
46100         * lib/unistr/u8-uctomb.c: New file.
46101         * lib/unistr/u16-uctomb.c: New file.
46102         * lib/unistr/u32-uctomb.c: New file.
46103
46104         * MODULES.html.sh (Unicode string functions): Add the new modules.
46105
46106 2007-01-08  Bruno Haible  <bruno@clisp.org>
46107
46108         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
46109         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
46110         subdirectories.
46111
46112 2007-01-08  Karl Berry  <karl@gnu.org>
46113
46114         * doc/error.texi: mention that main() fns must set program_name
46115         when progname is used.
46116
46117 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
46118
46119         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
46120         WCTYPE_H is empty, for the benefit of builds from non-distclean
46121         directories.  Problem reported by Eric Blake in
46122         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
46123
46124 2007-01-08  Bruno Haible  <bruno@clisp.org>
46125
46126         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
46127         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
46128         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
46129         PROVIDE_CANONICALIZE_FILENAME_MODE.
46130         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
46131
46132 2007-01-08  Bruno Haible  <bruno@clisp.org>
46133
46134         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
46135         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
46136         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
46137         * lib/fts.c: Likewise.
46138         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
46139
46140 2006-12-25  Bruno Haible  <bruno@clisp.org>
46141
46142         * modules/utf8-ucs4-safe: New file.
46143         * lib/utf8-ucs4-safe.h: New file.
46144         * lib/unistr/utf8-ucs4-safe.c: New file.
46145
46146         * modules/utf16-ucs4-safe: New file.
46147         * lib/utf16-ucs4-safe.h: New file.
46148         * lib/unistr/utf16-ucs4-safe.c: New file.
46149
46150         * MODULES.html.sh (Unicode string functions): Add the new modules.
46151
46152 2007-01-08  Bruno Haible  <bruno@clisp.org>
46153
46154         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
46155         (Depends-on): Add unitypes.
46156         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
46157         (u8_mbtouc_aux): Move out to separate file.
46158         (u8_mbtouc): Use ucs4_t, uint8_t types.
46159         * lib/unistr/utf8-ucs4.c: New file.
46160
46161         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
46162         (Depends-on): Add unitypes.
46163         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
46164         (u16_mbtouc_aux): Move out to separate file.
46165         (u16_mbtouc): Use ucs4_t, uint16_t types.
46166         * lib/unistr/utf16-ucs4.c: New file.
46167
46168         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
46169         (Depends-on): Add unitypes.
46170         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
46171         (u8_uctomb_aux): Move out to separate file.
46172         (u8_uctomb): Use ucs4_t, uint8_t types.
46173         * lib/unistr/ucs4-utf8.c: New file.
46174
46175         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
46176         (Depends-on): Add unitypes.
46177         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
46178         (u16_uctomb_aux): Move out to separate file.
46179         (u16_uctomb): Use ucs4_t, uint16_t types.
46180         * lib/unistr/ucs4-utf16.c: New file.
46181
46182 2006-12-25  Bruno Haible  <bruno@clisp.org>
46183
46184         * modules/unitypes: New file.
46185         * lib/unitypes.h: New file.
46186         * MODULES.html.sh (func_all_modules): New section "Unicode string
46187         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
46188         this section. Add unitypes.
46189
46190 2007-01-08  Bruno Haible  <bruno@clisp.org>
46191
46192         Avoid variable names that conflict with those from libtool.
46193         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
46194         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
46195         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
46196         library_names_spec to acl_library_names_spec, hardcode_* to
46197         acl_hardcode_*.
46198         Reported by Ralf Wildenhues.
46199
46200 2007-01-08  Bruno Haible  <bruno@clisp.org>
46201
46202         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
46203         definition.
46204         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
46205         definition.
46206         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
46207         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
46208         definition.
46209         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
46210         definition.
46211         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
46212         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
46213         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
46214         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
46215         definition.
46216         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
46217         definition.
46218         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
46219         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
46220         GC_USE_<algorithm>.
46221         * lib/gc-libgcrypt.c: Likewise.
46222         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
46223         * modules/gc-arctwo (configure.ac): Likewise.
46224         * modules/gc-des (configure.ac): Likewise.
46225         * modules/gc-hmac-md5 (configure.ac): Likewise.
46226         * modules/gc-hmac-sha1 (configure.ac): Likewise.
46227         * modules/gc-md2 (configure.ac): Likewise.
46228         * modules/gc-md4 (configure.ac): Likewise.
46229         * modules/gc-md5 (configure.ac): Likewise.
46230         * modules/gc-random (configure.ac): Likewise.
46231         * modules/gc-rijndael (configure.ac): Likewise.
46232         * modules/gc-sha1 (configure.ac): Likewise.
46233
46234 2007-01-08  Bruno Haible  <bruno@clisp.org>
46235
46236         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
46237         macro definition.
46238         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
46239         definition.
46240         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
46241         definition.
46242         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
46243         * modules/fcntl-safer (configure.ac): Likewise.
46244         * modules/fopen-safer (configure.ac): Likewise.
46245         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
46246         GNULIB_FWRITEERROR macro definition.
46247
46248 2007-01-08  Bruno Haible  <bruno@clisp.org>
46249
46250         * m4/gnulib-common.m4: New file.
46251         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
46252         (func_get_filelist): Add m4/gnulib-common.m4.
46253
46254 2007-01-08  Bruno Haible  <bruno@clisp.org>
46255
46256         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
46257         command.
46258
46259 2007-01-08  Jim Meyering  <jim@meyering.net>
46260
46261         Use a more robust test for a "can't happen" condition.
46262         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
46263         narrowed the st_size value.  Presuming the "can't happen" condition
46264         is true, that narrowing could conceivably convert an invalid st_size
46265         value into a valid one.  Instead, use a change based on Matthew
46266         Woehlke's original patch.
46267
46268         Slight readability improvement: use an assert-like macro
46269         in place of literal "abort ()" uses.
46270         * lib/fts.c (fts_assert): Define.
46271         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
46272         Use this macro instead of a bare 'abort'.
46273
46274 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
46275
46276         Don't worry about using IRIX 5.3's wctype.h broken definitions;
46277         simply work around them.
46278         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
46279         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
46280         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
46281         declaring.
46282         Don't bother to define as macros, since the standard doesn't require it.
46283         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
46284         longer worry about IRIX 5.3.
46285         (HAVE_WCTYPE_CTMP_BUG): Remove.
46286
46287 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
46288
46289         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
46290         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
46291         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
46292         Problems reported by Georg Schwarz for IRIX 5.3.
46293
46294         * gnulib-tool (autoconf_minversion): Take the maximum version number
46295         found, not the minimum.  Problem reported by James Youngman.
46296
46297 2007-01-03  Karl Berry  <karl@gnu.org>
46298
46299         * doc/error.texi: new file, explaining interaction with progname.
46300         * doc/gnulib.texi: include it.  Update copyright.
46301
46302 2007-01-03  Simon Josefsson  <simon@josefsson.org>
46303
46304         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
46305         AC_CANONICAL_HOST, to improve autobuild outputs.
46306
46307 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
46308             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
46309
46310         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
46311         sockets, server sockets, and other file descriptors.  Count errors
46312         to compute the return value.  Reorder the code a bit to be easier
46313         to follow.  Don't set event bits that were not requested (except
46314         POLLERR and POLLHUP).
46315
46316 2007-01-01  Bruno Haible  <bruno@clisp.org>
46317
46318         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
46319
46320 2007-01-03  Jim Meyering  <jim@meyering.net>
46321
46322         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
46323
46324 2007-01-02  Bruno Haible  <bruno@clisp.org>
46325
46326         * modules/settime (Include): Require timespec.h.
46327         * modules/nanosleep (Include): Likewise.
46328
46329 2007-01-01  Bruno Haible  <bruno@clisp.org>
46330
46331         * gnulib-tool (func_emit_copyright_notice): Bump year.
46332         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
46333
46334 2007-01-01  Bruno Haible  <bruno@clisp.org>
46335
46336         Improve support for OpenBSD.
46337         * build-aux/config.rpath (libname_spec): Export.
46338         (library_names_spec): New variable. Export.
46339         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
46340         library_names_spec from the config.rpath output. Locate shared library
46341         through the name pattern in library_names_spec.
46342
46343 2007-01-01  Eric Blake  <ebb9@byu.net>
46344
46345         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
46346
46347 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
46348
46349         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
46350         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
46351         assume the C locale, and avoid an "eval" that could cause trouble.
46352         Problem with SORT reported by Bob Proulx.
46353
46354         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
46355         Define.  Trivial patch from Henning Nielsen Lund, originally
46356         sent to bug-grep@gnu.org today.
46357
46358 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
46359
46360         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
46361         struct stat.  Problem reported by Henning Nielsen Lund.
46362         * lib/acl.c: Include acl.h first, to check interface.  Don't
46363         bother to include sys/types.h and sys/stat.h again.
46364
46365 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
46366
46367         Import the following change from libc; problem reported by
46368         Sven Verdoolaege.
46369
46370         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
46371
46372         [BZ #1373]
46373         * lib/argp.h: Remove __NTH for __argp_usage inline function.
46374
46375 2006-12-28  Jim Meyering  <jim@meyering.net>
46376
46377         * build-aux/announce-gen: Do not assume that the package
46378         builds any of tar.gz, tar.bz2, and .xdelta files.
46379         Suggestion from Simon Josefsson.
46380
46381 2006-12-28  Simon Josefsson  <simon@josefsson.org>
46382
46383         * modules/announce-gen: New file.
46384
46385 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
46386
46387         * lib/mbchar.h: Just include <wctype.h>; the wctype module
46388         handles its gotchas now.
46389         * lib/mbswidth.c: Likewise.
46390         * lib/wcwidth.h: Likewise.
46391         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
46392         and iswcntrl; the wctype module does this stuff now.
46393         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
46394         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
46395         * modules/mbchar (Depends-on): Add wctype.
46396         * modules/mbswidth (Depends-on): Likewise.
46397         * modules/wcwidth (Depends-on): Likewise.
46398
46399 2006-12-27  Eric Blake  <ebb9@byu.net>
46400
46401         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
46402         module uses more than what <wctype.h> is required to provide.
46403
46404 2006-12-26  Eric Blake  <ebb9@byu.net>
46405
46406         * gnulib-tool (sed_extract_prog): Avoid space-tab.
46407
46408 2006-12-26  Eric Blake  <ebb9@byu.net>
46409
46410         * modules/absolute-header: New module.
46411         * modules/fcntl (Depends-on): Depend on it.
46412         * modules/inttypes (Depends-on): Likewise.
46413         * modules/stdint (Depends-on): Likewise.
46414         * modules/sys_stat (Depends-on): Likewise.
46415         * modules/wctype (Depends-on): Likewise.
46416         * MODULES.html.sh (Support for building libraries and
46417         executables): Document it.
46418
46419 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
46420
46421         * gnulib-tool (SED): Remove, undoing previous change.
46422         The problem was that it broke coreutils on Solaris, because
46423         "sed --posix" leaked into a makefile.
46424         (sed): New alias, if 'alias' and GNU sed.
46425
46426 2006-12-24  Jim Meyering  <jim@meyering.net>
46427
46428         Work around an fchownat bug in glibc-2.4:
46429         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
46430         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
46431         in spite of the -P option.
46432         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
46433         New macros.
46434         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
46435         * modules/openat (Files): Add lib/fchownat.c.
46436         * lib/openat.c (fchownat): Don't define here.  Move to...
46437         * lib/fchownat.c: ...this new file.
46438
46439 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
46440
46441         Fix bug reported by Bruno Haible in
46442         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
46443         where quotearg.c didn't compile on Mac OS X 10.2 because it
46444         lacks <wchar.h> and wint_t.
46445         * lib/wctype_.h (__wctype_wint_t): New type.
46446         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
46447         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
46448         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
46449         Arg is now of type __wctype_wint_t, not wint_t.
46450         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
46451         substitute HAVE_WINT_T.
46452         * modules/wctype (Files): Add m4/wint_t.m4.
46453         (wctype.h): Substitute HAVE_WINT_T.
46454
46455 2006-12-23  Bruno Haible  <bruno@clisp.org>
46456
46457         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
46458
46459 2006-12-23  Bruno Haible  <bruno@clisp.org>
46460
46461         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
46462         S_ISLNK.
46463         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
46464         mingw.
46465
46466 2006-12-22  Bruno Haible  <bruno@clisp.org>
46467
46468         * lib/copy-file.c: Include acl.h.
46469         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
46470         Close the file descriptors only after being done with copy_acl.
46471         * modules/copy-file (Depends-on): Add acl.
46472
46473 2006-12-22  Bruno Haible  <bruno@clisp.org>
46474
46475         * gnulib-tool (SED): New variable.
46476         Use $SED instead of sed everywhere.
46477
46478 2006-12-22  Bruno Haible  <bruno@clisp.org>
46479
46480         * modules/no-c++: New file.
46481         * m4/no-c++.m4: New file.
46482         * MODULES.html.sh (Support for building libraries and executables):
46483         Add no-c++.
46484
46485 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
46486
46487         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
46488         Include <limits.h>, and use its INT_MAX to rewrite the
46489         j loop so that it does not overflow 'int'.  Problem reported by
46490         Ralf Wildenhues in
46491         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
46492         Play it safe by shifting left by 1 rather than multiplying by 2,
46493         as GCC is less likely to optimize this away when the value
46494         is signed (when it assumes overflow leads to undefined behavior).
46495         Also, don't assume time_t uses two's complement.
46496
46497 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
46498
46499         * MODULES.html.sh: New module wctype.
46500         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
46501         * lib/fnmatch.c: Don't bother to include <wchar.h> before
46502         <wctype.h>, since the new wctype module should fix this.
46503         * lib/quotearg.c: Include <wctype.h> unconditionally, since
46504         the wctype module should arrange for it.
46505         * lib/regex_internal.h: Likewise.
46506         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
46507         since the wctype module should handle this now.
46508         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
46509         * modules/fnmatch (Depends-on): Add wctype.
46510         * modules/quotearg (Depends-on): Likewise.
46511         * modules/regex (Depends-on): Likewise.
46512
46513 2006-12-19  Bruno Haible  <bruno@clisp.org>
46514
46515         * lib/strdup.h [C++]: Wrap definitions in extern "C".
46516         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
46517
46518 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46519
46520         * modules/savewd (Depends-on): Fix dependency on fcntl.
46521
46522 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
46523
46524         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
46525         conforms to C99, rather than relying on the user's environment
46526         setting of STDINT_H.
46527
46528 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
46529         and Eric Blake  <ebb9@byu.net>
46530
46531         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
46532         This is more consistent with the other defines here.
46533         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
46534         Port to z/OS.  Problem reported by Paul Gilmartin.
46535         Change local vars to use gl_ prefix rather than ac_.
46536         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
46537         with other defines.
46538         * modules/double-slash-root: New module.
46539         * modules/dirname (Files): Remove m4/double-slash-root.m4.
46540         (Depends-on): Add double-slash-root.
46541         * MODULES.html.sh (File system functions): Mention new module.
46542
46543 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
46544
46545         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
46546         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
46547         This is for the benefit of gzip, which doesn't do i18n.
46548
46549 2006-12-12  Jim Meyering  <jim@meyering.net>
46550
46551         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
46552         Reported by Andreas Schwab <schwab@suse.de>.
46553
46554 2006-12-12  Bruno Haible  <bruno@clisp.org>
46555
46556         Merge these changes.
46557         2006-09-05  Bruno Haible  <bruno@clisp.org>
46558         * lib/iconvme.c (iconv_string): No need to save and restore errno when
46559         iconv_alloc succeeded.
46560         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
46561         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
46562         test for " && dest " at the end - dest is always != NULL there. Call
46563         iconv with 4xNULL arguments initially, to reset the state. Call iconv
46564         with 2xNULL arguments, also to flush the state storage. Handle the
46565         IRIX iconv behaviour. Realloc the final result, to throw away unused
46566         memory.
46567
46568 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
46569
46570         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
46571         and fchmodat unconditionally, since glibc 2.4 has them.
46572         Problem reported by Arkadiusz Miskiewicz.
46573
46574 2006-12-10  Bruno Haible  <bruno@clisp.org>
46575
46576         * gnulib-tool (func_import): Show the include files only for those
46577         modules that are copied and specified.
46578         Reported by Karl Berry.
46579
46580 2006-12-08  Jim Meyering  <jim@meyering.net>
46581
46582         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
46583         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
46584
46585         * build-aux/announce-gen: Add two new options, both optional:
46586         --bootstrap-tools=TOOL_LIST
46587               a comma-separated list of tools, e.g.,
46588               autoconf,automake,bison,gnulib
46589         --gnulib-snapshot-date=DATE
46590               if gnulib is in the bootstrap tool list,
46591               then report this as the snapshot date.
46592               If not specified, use the current date/time.
46593               If you specify a date here, be sure it's UTC.
46594
46595 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46596
46597         * tests/test-argp-2.sh: Fix test to match actual output.
46598         (func_compare): Fix sed script to be portable.
46599
46600 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
46601
46602         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
46603         workaround for this case.  It is not autoconfigured now; offhand
46604         it's hard to see how to autoconfigure it.
46605
46606 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
46607
46608         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
46609         a directory that is about to be chowned.  Such a directory's
46610         initial file permissions should permit the owner only and this
46611         should not be changed until after the chown, since the group and
46612         other bits would be incorrect if they granted permission before
46613         the chown.
46614
46615         Fix porting problem for iswctype reported by Georg Schwarz in:
46616         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
46617         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
46618         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
46619         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
46620         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
46621
46622 2006-12-03  Jim Meyering  <jim@meyering.net>
46623
46624         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
46625         p->fts_statp may not yet be defined.
46626         (fts_read): Instead, set it in the caller, once p->fts_statp is
46627         sure to be defined, and corresponds to a top-level directory.
46628         This bug made du -x fail.  Here's the coreutils test case:
46629         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
46630         Reported by Mike Frysinger.
46631
46632 2006-12-01  Jim Meyering  <jim@meyering.net>
46633
46634         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
46635         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
46636         Reported by Simon Josefsson.
46637
46638 2006-11-30  Jim Meyering  <jim@meyering.net>
46639
46640         * m4/warning.m4: Use the all-permissive copyright notice
46641         recommended by RMS (rather than LGPL).
46642         * m4/vararrays.m4: Likewise.
46643         * m4/flexmember.m4: Likewise.
46644
46645 2006-11-29  Bruno Haible  <bruno@clisp.org>
46646
46647         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
46648         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
46649         using +=.
46650         Reported by Simon Josefsson <simon@josefsson.org>.
46651
46652 2006-11-28  James Youngman <jay@gnu.org>
46653
46654         * README: Advise users that they might find the bug-gnulib@gnu.org
46655         and autotools-announce@gnu.org mailing lists useful.
46656
46657 2006-11-28  Bruno Haible  <bruno@clisp.org>
46658
46659         * m4/ptrdiff_max.m4: Remove file.
46660
46661 2006-11-21  Bruno Haible  <bruno@clisp.org>
46662
46663         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
46664         _AC_COMPUTE_INT.
46665         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
46666         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
46667         _AC_COMPUTE_INT.
46668         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
46669         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
46670         _AC_COMPUTE_INT.
46671         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
46672
46673 2006-11-28  Jim Meyering  <jim@meyering.net>
46674
46675         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
46676         warning from "gcc -Wshadow" about shadowing the builtin.
46677
46678 2006-11-27  Bruno Haible  <bruno@clisp.org>
46679
46680         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
46681         _AC_COMPUTE_INT.
46682         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
46683
46684 2006-11-27  Bruno Haible  <bruno@clisp.org>
46685             Paul Eggert  <eggert@cs.ucla.edu>
46686
46687         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
46688
46689 2006-11-26  Bruno Haible  <bruno@clisp.org>
46690
46691         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
46692         noinst_LTLIBRARIES.
46693
46694 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
46695             Bruno Haible  <bruno@clisp.org>
46696
46697         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
46698         if compiling with "gcc -ansi".
46699
46700 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
46701
46702         Fix some incompatibilities with gcc -ansi -pedantic.
46703         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
46704         if compiling pedantically with GCC, unless it's C99 or later.
46705         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
46706         it mishandles gcc -ansi -pedantic as well.
46707         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
46708         if gcc -pedantic.
46709         * lib/regexec.c (check_node_accept_bytes): Don't use auto
46710         initializers for struct if -pedantic, unless it's C99 or later.
46711
46712 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
46713
46714         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
46715         Don't close an fd more than once. Identical atimes indicate
46716         success, not failure.
46717
46718 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
46719
46720         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
46721
46722 2006-11-23  Jim Meyering  <jim@meyering.net>
46723
46724         * build-aux/announce-gen: New file.  From coreutils.
46725
46726 2006-11-22  Jim Meyering  <jim@meyering.net>
46727
46728         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
46729         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
46730         (fts_read): Use a temporary to narrow the overused st_size member
46731         before using it in a switch statement.  Reported by Matthew Woehlke.
46732
46733         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
46734         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
46735
46736 2006-11-20  Bruno Haible  <bruno@clisp.org>
46737
46738         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
46739         changequote instead of pairs of brackets.
46740         Reported by Andreas Schwab <schwab@suse.de>.
46741
46742 2006-11-21  Jim Meyering  <jim@meyering.net>
46743
46744         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
46745         so as to remain compatible with older compilers.
46746         Patch from Michael Deutschmann.
46747
46748 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
46749
46750         * MODULES.html.sh (File system functions): Add openat.
46751
46752         * lib/openat.h (rpl_fstatat): New macro, if
46753         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
46754         (fstatat): Define to rpl_fstatat under the same conditions,
46755         unless COMPILING_FSTATAT.
46756         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
46757         seems to have the bug.
46758         * lib/fstatat.c: New file.
46759         * modules/openat (Files): Add it.
46760
46761 2006-11-20  Bruno Haible  <bruno@clisp.org>
46762
46763         * Makefile: New file.
46764
46765 2006-11-20  Jim Meyering  <jim@meyering.net>
46766
46767         The beginnings of syntax-related checks for gnulib.
46768         * lib/Makefile: New file.
46769         * lib/t-idcache: New script.  Ensure that the two halves of
46770         idcache.c stay in sync.
46771
46772         * lib/idcache.c: Adjust comments in user- and group- portions to
46773         be more accurate, and to be consistent with one another.
46774
46775 2006-11-20  Jim Meyering  <jim@meyering.net>
46776
46777         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
46778         continue using the flexible array member (thus, this module performs
46779         half as many malloc calls), with the addition that...
46780         (getgroup, getuser): Consistently record a non-match via an empty
46781         "name" string, and map an empty string match to a NULL return value.
46782         * modules/idcache (Depends-on): Re-add flexmember.
46783
46784         * lib/idcache.c (getuser): Remove all uses of the register keyword.
46785         (getuidbyname, getgroup, getgidbyname): Likewise.
46786
46787         Use cleaner syntax: NULL rather than 0.
46788         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
46789
46790 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
46791
46792         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
46793         It mishandled the case where the group was missing.
46794         Problem reported by Greg Schafer.
46795         * modules/idcache: Likewise.
46796
46797 2006-11-18  Jim Meyering  <jim@meyering.net>
46798
46799         * check-module (%exempt_header): Add exception for some
46800         conditionally-included headers.
46801
46802         * modules/i-ring (Depends-on): Add verify.
46803         (License): Change to LGPL.
46804
46805 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
46806
46807         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
46808         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
46809         and inttostr.h.  Use snprintf rather than uinttostr, so that
46810         LGPLed code doesn't depend on GPLed.
46811
46812 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
46813
46814         * modules/inline (License): Change from GPL to LGPL.
46815
46816 2006-11-17  Jim Meyering  <jim@meyering.net>
46817
46818         * modules/d-type (License): Switch to LGPL.
46819
46820 2006-11-15  Bruno Haible  <bruno@clisp.org>
46821
46822         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
46823
46824 2006-11-15  Eric Blake  <ebb9@byu.net>
46825
46826         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
46827         the module dependency.
46828
46829 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46830             Bruno Haible  <bruno@clisp.org>
46831
46832         * gnulib-tool (func_create_testdir): Add license consistency check.
46833
46834 2006-11-15  Eric Blake  <ebb9@byu.net>
46835
46836         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
46837         random "(cached)" in configure output.
46838
46839 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46840
46841         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
46842         test for conforming inttypes.h is both announced and cached.
46843
46844         * MODULES.html.sh (seen_modules, seen_files): New variables.
46845         (func_module): Rewrite to use a few less gnulib-tool and sed
46846         invocations.  Avoid a couple of quadratic algorithms for ...
46847         (missed_modules, missed_files): ... these, with ...
46848         (func_append, func_tmpdir): ... these new functions, from
46849         gnulib-tool.  Analogously, install traps for cleanup.
46850
46851         * tests/test-gc.c (main): Remove unused variables.
46852         * tests/test-read-file.c: Include stdlib.h, for 'free'.
46853
46854 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
46855
46856         * modules/inttostr (License): Change to LGPL.
46857
46858 2006-11-14  Eric Blake  <ebb9@byu.net>
46859
46860         * modules/tempname (License): Change to LGPL.
46861
46862 2006-11-14  Eric Blake  <ebb9@byu.net>
46863
46864         * doc/functions.texi (Function Portability): *printf functions on
46865         Cygwin now understand all POSIX size specifiers.
46866
46867 2006-11-14  Bruno Haible  <bruno@clisp.org>
46868
46869         * modules/c-ctype (License): Change to LGPL.
46870
46871 2006-11-12  Bruno Haible  <bruno@clisp.org>
46872
46873         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
46874         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
46875         for GNOME libraries, for which the include files are installed in
46876         subdirectories of $prefix/include.
46877
46878 2006-11-12  Bruno Haible  <bruno@clisp.org>
46879
46880         * m4/lib-link.m4: Require at least autoconf-2.54.
46881         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
46882         name to underscores for the --with option.
46883
46884 2006-11-13  Bruno Haible  <bruno@clisp.org>
46885
46886         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
46887         the tests directory.
46888         Reported by Ralf Wildenhues.
46889
46890 2006-11-13  Bruno Haible  <bruno@clisp.org>
46891
46892         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
46893         (func_emit_initmacro_end): Undo the override here.
46894         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
46895         Works around the famous automake error in coreutils.
46896
46897 2006-11-13  Eric Blake  <ebb9@byu.net>
46898
46899         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
46900         element, not its node.
46901
46902 2006-11-12  Bruno Haible  <bruno@clisp.org>
46903
46904         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
46905         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
46906
46907 2006-11-12  Bruno Haible  <bruno@clisp.org>
46908
46909         * gnulib-tool: New option --local-symlink.
46910         (func_usage): Document it.
46911         (lsymbolic): New variable.
46912         (func_import, func_create_testdir): If --symlink was not specified,
46913         test whether --local-symlink was specified and the file comes from
46914         the local_gnulib_dir.
46915
46916 2006-11-12  Bruno Haible  <bruno@clisp.org>
46917
46918         * gnulib-tool (func_ln): New function.
46919         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
46920
46921 2006-11-12  Bruno Haible  <bruno@clisp.org>
46922
46923         Finish support for source files in subdirectories.
46924         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
46925         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
46926         AUTOMAKE_OPTIONS.
46927         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
46928
46929 2006-11-12  Bruno Haible  <bruno@clisp.org>
46930
46931         * gnulib-tool (func_get_automake_snippet): Synthesize also an
46932         EXTRA_lib_SOURCES augmentation.
46933         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
46934
46935 2006-11-12  Jim Meyering  <jim@meyering.net>
46936
46937         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
46938         file descriptors.  This also averts a failure on systems with
46939         native openat support when a traversed directory lacks "x" access.
46940         * lib/fts_.h: Include "i-ring.h"
46941         (struct FTS) [fts_fd_ring]: New member.
46942         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
46943         (FCHDIR): Add parentheses.
46944         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
46945         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
46946         When descending, rather than simply closing the previous
46947         fts_cwd_fd value, push that file descriptor onto the ring.
46948         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
46949         (fts_open): Initialize the new fd_ring member.
46950         (fts_close): Clear the ring.
46951         (fts_safe_changedir): When possible, use our new fd_ring to skip
46952         the diropen and fstat and dev/ino comparison that would normally
46953         accompany a virtual `chdir ("..")'.
46954
46955         * modules/fts (Depends-on): Add i-ring.
46956         * modules/i-ring: New module.
46957         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
46958         * m4/i-ring.m4: New file.
46959
46960 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46961
46962         * gnulib-tool (func_create_testdir): Fix replacement of
46963         `build-aux' in configure.ac.  Run autotools in gltests
46964         subdirectory.
46965         (func_create_testdir, func_create_megatestdir, test): There is
46966         no need for '--force' in most autotool invocations in a new
46967         tree.  Actually fail the whole test if any of the tools, or the
46968         configure or make stages fail.
46969
46970         Sync from Automake.
46971         * build-aux/gnupload: Revert last change.  Add pointer to upload
46972         instructions of the GNU Maintenance Instructions.
46973         Suggestion by Karl Berry.
46974
46975 2006-11-10  Jim Meyering  <jim@meyering.net>
46976
46977         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
46978
46979 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
46980
46981         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
46982         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
46983         (bind_textdomain_codeset) [! ENABLE_NLS]:
46984         Evaluate all the arguments.  That way, callers get compatible behavior
46985         if the arguments have side effects.  Also, it avoids some GCC
46986         diagnostics in some cases; Joel E. Denny reported problems when Bison
46987         was configured with --enable-gcc-warnigs.
46988
46989 2006-11-10  Jim Meyering  <jim@meyering.net>
46990
46991         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
46992         relevant options in CFLAGS (like -O, -fno-inline) are taken into
46993         account.
46994
46995 2006-11-10  Jim Meyering  <jim@meyering.net>
46996
46997         * modules/inline: New file/module.
46998         * modules/xalloc (Files): Remove m4/inline.m4.
46999         (Depends-on): Add inline, instead.
47000         * modules/oset: Likewise.
47001         * modules/list: Likewise.
47002
47003 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
47004
47005         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
47006         Problem reported by Matthew Woehlke.
47007
47008 2006-11-09  Bruno Haible  <bruno@clisp.org>
47009
47010         * lib/tempname.c (gen_tempname): Remove variant that invokes
47011         __gen_tempname.
47012         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
47013         __gen_tempname.
47014
47015 2006-11-08  Bruno Haible  <bruno@clisp.org>
47016
47017         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
47018         to 'yes' instead of 'cross-compiling'.
47019
47020 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
47021
47022         * lib/quotearg.h (quotearg_free): New decl.
47023         * lib/quotearg.c (quotearg_free): New function.
47024         (slot0, nslots, slotvec0, slotvec):
47025         Now file-scope so that quotearg_free can get at them.
47026
47027 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47028
47029         Sync from Automake.
47030         * build-aux/gnupload: Add missing 'gnu' to example URL.
47031         Report by Karl Berry.
47032
47033 2006-11-08  Bruno Haible  <bruno@clisp.org>
47034
47035         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
47036         Suggested by Paul Eggert.
47037
47038 2006-11-08  Jim Meyering  <jim@meyering.net>
47039
47040         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
47041         It's already included if !_LIBC.
47042         (fts_safe_changedir): Add a comment.
47043
47044 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
47045
47046         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
47047         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
47048         Matthew Woehlke.
47049
47050         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
47051         definitions up, to avoid colliding with change below.
47052         (static_inline) [HAVE_INLINE]: New macro.
47053         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
47054         Provide extern decls when !HAVE_INLINE.  Do not define unless
47055         static_inline is defined, either by us or by xmalloc.c.  Use
47056         static_inline rather than static inline.
47057         (XCALLOC): Optimize sizeof(T) = 1 case.
47058         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
47059
47060 2006-11-07  Bruno Haible  <bruno@clisp.org>
47061
47062         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
47063         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
47064         AC_C_INLINE.
47065         * modules/xalloc (Files): Add m4/inline.m4.
47066
47067 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47068
47069         * README: Fix typo.
47070         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
47071         (Miscellanous Notes): ...from this.
47072
47073 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
47074
47075         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
47076         Mention that offsetof should be used instead of sizeof.
47077         From Bruno Haible.
47078
47079 2006-11-07  Bruno Haible  <bruno@clisp.org>
47080
47081         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
47082
47083 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
47084
47085         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
47086         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
47087         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
47088         (gl_tree_add_before, gl_tree_add_after):
47089         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
47090         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
47091         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
47092         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
47093         (gl_linked_add_after, gl_linked_add_at): Likewise.
47094         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
47095         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
47096         (gl_tree_add_before, gl_tree_add_after): Likewise.
47097         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
47098         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
47099         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
47100
47101 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47102
47103         * lib/gl_oset.h: Use C comment style, not C++ comment style.
47104
47105 2006-11-06  Bruno Haible  <bruno@clisp.org>
47106
47107         * m4/inline.m4: New file.
47108         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
47109         * modules/list (Files): Add m4/inline.m4.
47110         * modules/oset (Files): Likewise.
47111
47112 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
47113
47114         * lib/idcache.c: Include <stddef.h>, for offsetof.
47115         (struct userid.name): Change from char * to a flexible array member.
47116         All uses changed.
47117         * modules/idcache (Depends-on): Add flexmember.
47118
47119         * MODULES.html.sh (Core language properties): New module flexmember.
47120         * modules/flexmember, m4/flexmember.m4: New files.
47121
47122         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
47123         inline functions that are identical with the old xnmalloc_inline,
47124         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
47125         that we can avoid some unnecessary integer multiplications and
47126         divisions in the common case where the element size is known at
47127         compile time.
47128         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
47129         needed.
47130         (xnboundedmalloc): Remove.
47131         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
47132         arguments, for consistency with rest of this header.
47133         (xcharalloc): Rewrite using XNMALLOC.
47134         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
47135         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
47136         versions have been moved to lib/xalloc.h and renamed to be the
47137         non-*_inline versions.
47138         (xmalloc, xrealloc): Implement without reference to the xnmalloc
47139         and xnrealloc functions, since those functions are now inline and
47140         now call us.
47141         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
47142         renaming described above.
47143         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
47144         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
47145         captures the dependency in AC_C_INLINE.
47146
47147         New module canonicalize-lgpl, proposed by Charles Wilson in
47148         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
47149         with a few small changes afterwards.
47150         * MODULES.html.sh (File system functions): New module
47151         canonicalize-lgpl.
47152         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
47153         and canonicalize_file_name.
47154         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
47155         * modules/canonicalize-lgpl: New files.
47156
47157 2006-11-05  Bruno Haible  <bruno@clisp.org>
47158
47159         * gnulib-tool (func_import, func_create_testdir): Create directories
47160         also for files in subdirectories of lib/.
47161
47162 2006-11-05  Bruno Haible  <bruno@clisp.org>
47163
47164         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
47165         ANSI C compliant.
47166
47167 2006-11-03  Bruno Haible  <bruno@clisp.org>
47168
47169         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
47170         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
47171         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
47172         (xnboundedmalloc): New inline function.
47173         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
47174         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
47175         xmalloc.
47176         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
47177         xmalloc.
47178         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
47179         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
47180         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
47181         xmalloc.
47182         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
47183         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
47184         xmalloc.
47185         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
47186         gl_tree_add_after): Use XMALLOC instead of xmalloc.
47187         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
47188         xmalloc.
47189         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
47190         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
47191         gl_tree_add_after): Use XMALLOC instead of xmalloc.
47192         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
47193         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
47194         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
47195         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
47196
47197 2006-11-03  Bruno Haible  <bruno@clisp.org>
47198
47199         * lib/c-ctype.h [C++]: Define functions without name mangling.
47200         * lib/fwriteerror.h [C++]: Likewise.
47201         * lib/gcd.h [C++]: Likewise.
47202         * lib/linebreak.h [C++]: Likewise.
47203
47204 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
47205
47206         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
47207         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
47208         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
47209         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
47210         Check for functions and headers just once.
47211         Check for declaration of canonicalize_file_name.
47212         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
47213
47214 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
47215
47216         * gnulib-tool (func_import): Fix typo in actioncmd.
47217
47218 2006-11-02  Bruno Haible  <bruno@clisp.org>
47219
47220         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
47221         newline sequence in the Makefile.am snippet as a space, like "make"
47222         does.
47223         Reported by Roger Persson <perrog@gmail.com>.
47224
47225 2006-11-01  Bruno Haible  <bruno@clisp.org>
47226
47227         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
47228         already declared in <string.h>.
47229         * lib/strcase.h (strncasecmp): Don't declare it if yes.
47230
47231 2006-11-01  Bruno Haible  <bruno@clisp.org>
47232
47233         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
47234         * lib/strcase.h: Include <string.h>.
47235         (strcasecmp): Define to rpl_strcasecmp here.
47236
47237 2006-11-01  Bruno Haible  <bruno@clisp.org>
47238
47239         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
47240
47241 2006-11-01  Eric Blake  <ebb9@byu.net>
47242
47243         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
47244
47245         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
47246
47247 2006-10-29  Bruno Haible  <bruno@clisp.org>
47248
47249         Make it compile in C++ mode.
47250         * lib/full-write.c (full_rw): Add a cast.
47251
47252 2006-11-01  Bruno Haible  <bruno@clisp.org>
47253
47254         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
47255         be POSIX compliant.
47256         Reported by Roger Persson <perrog@gmail.com>.
47257
47258 2006-11-01  Eric Blake  <ebb9@byu.net>
47259
47260         * lib/getopt_.h: Fix comments.
47261
47262 2006-10-31  Eric Blake  <ebb9@byu.net>
47263
47264         * modules/tmpdir (Depends-on): Add sys_stat.
47265         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
47266         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
47267         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
47268         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
47269         tempname.
47270
47271 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
47272
47273         Avoid some C++ diagnostics reported by Bruno Haible.
47274         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
47275         xmalloc.
47276         (quotearg_alloc): Use xcharalloc rather than xmalloc.
47277         (struct slotvec): Move to top level.
47278         (quotearg_n_options): Rewrite to avoid xmalloc.
47279         * lib/xalloc.h (xcharalloc): New function.
47280         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
47281         [defined __cplusplus]: Add function template that provides result
47282         type propagation.  This part of the change is from Bruno Haible.
47283
47284 2006-10-29  Bruno Haible  <bruno@clisp.org>
47285
47286         Make it compile in C++ mode.
47287         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
47288         * lib/strnlen1.c (strnlen1): Cast memchr result.
47289         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
47290         * lib/clean-temp.c (string_equals, string_hash): Add casts.
47291         (create_temp_dir): Rename local variable 'template'.
47292         (compile_csharp_using_sscli): Add cast.
47293         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
47294         * lib/findprog.c (find_in_path): Likewise.
47295         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
47296         * lib/wait-process.c (register_slave_subprocess): Likewise.
47297
47298 2006-10-22  Bruno Haible  <bruno@clisp.org>
47299
47300         * modules/tsearch: New file.
47301         * lib/tsearch.h: New file.
47302         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
47303         * m4/tsearch.m4: New file.
47304         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
47305
47306 2006-10-29  Eric Blake  <ebb9@byu.net>
47307
47308         * lib/arcfour.c: Assume config.h.
47309         * lib/arctwo.c: Likewise.
47310         * lib/base64.c: Likewise.
47311         * lib/check-version.c: Likewise.
47312         * lib/crc.c: Likewise.
47313         * lib/des.c: Likewise.
47314         * lib/gc-gnulib.c: Likewise.
47315         * lib/gc-libgcrypt.c: Likewise.
47316         * lib/gc-pbkdf2-sha1.c: Likewise.
47317         * lib/getaddrinfo.c: Likewise.
47318         * lib/getdelim.c: Likewise.
47319         * lib/getline.c: Likewise.
47320         * lib/hmac-md5.c: Likewise.
47321         * lib/hmac-sha1.c: Likewise.
47322         * lib/iconvme.c: Likewise.
47323         * lib/md2.c: Likewise.
47324         * lib/md4.c: Likewise.
47325         * lib/memxor.c: Likewise.
47326         * lib/read-file.c: Likewise.
47327         * lib/readline.c: Likewise.
47328         * lib/rijndael-alg-fst.c: Likewise.
47329         * lib/rijndael-api-fst.c: Likewise.
47330         * lib/xgetdomainname.c: Likewise.
47331
47332 2006-10-28  Eric Blake  <ebb9@byu.net>
47333
47334         * lib/xstrndup.c: Assume config.h.
47335
47336 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
47337
47338         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
47339         stat-macros.h is now for our own macros, whereas stat_h is for
47340         macros in the <sys/stat.h> name space.
47341         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
47342         (STAT_MACROS_H): Remove.
47343         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
47344         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
47345         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
47346         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
47347         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
47348         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
47349         Move these macros to ...
47350         * lib/stat_.h: here.  Don't include stat-macros.h.
47351         * lib/canonicalize.c: Don't include stat-macros.h.
47352         * lib/chown.c: Likewise.
47353         * lib/euidaccess.c: Likewise.
47354         * lib/file-type.c: Likewise.
47355         * lib/filemode.c: Likewise.
47356         * lib/glob.c: Likewise.
47357         * lib/isapipe.c: Likewise.
47358         * lib/lchown.c: Likewise.
47359         * lib/lstat.c: Likewise.
47360         * lib/mkdir-p.c: Likewise.
47361         * lib/rmdir.c: Likewise.
47362         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
47363         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
47364         unless mkdir isn't declared, to speed up 'configure'.
47365         Always create sys/stat.h, since it's unlikely any real sys/stat.h
47366         would define all the S_* symbols.
47367         * modules/canonicalize (Depends-on):
47368         Depend on sys_stat, not stat-macros.
47369         * modules/chown: Likewise.
47370         * modules/euidaccess: Likewise.
47371         * modules/filemode: Likewise.
47372         * modules/file-type: Likewise.
47373         * modules/glob: Likewise.
47374         * modules/isapipe: Likewise.
47375         * modules/lchown: Likewise.
47376         * modules/lstat: Likewise.
47377         * modules/mkancesdirs: Likewise.
47378         * modules/rmdir: Likewise.
47379         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
47380         * modules/modechange: Likewise.
47381         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
47382         (configure.ac): Remove gl_STAT_MACROS.
47383         * modules/sys_stat (Depends-on): Remove stat-macros.
47384
47385 2006-10-27  Bruno Haible  <bruno@clisp.org>
47386
47387         * m4/signed.m4: Remove file.
47388         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
47389         invocation.
47390         * modules/vasnprintf (Files): Remove m4/signed.m4.
47391
47392 2006-10-27  Bruno Haible  <bruno@clisp.org>
47393
47394         Update to GNU gettext 0.16.
47395         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
47396         m4/inttypes-h.m4, m4/signed.m4.
47397         * m4/gettext.m4: Update to GNU gettext 0.16.
47398         * m4/intl.m4: New file, from GNU gettext.
47399         * m4/intldir.m4: New file, from GNU gettext.
47400         * config/srclist.txt: Update
47401
47402 2006-10-27  Eric Blake  <ebb9@byu.net>
47403
47404         * MODULES.html.sh: Document tempname.
47405         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
47406         dependencies.
47407         (Files): Move lib/tempname.c...
47408         * modules/tempname: ...to this new module.
47409         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
47410         (gl_PREREQ_TEMPNAME): Move...
47411         * m4/tempname.m4: ...to this new file.
47412         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
47413         * modules/sys_stat (Depends-on): Add stat-macros.
47414         * lib/stat_.h (includes): Pick up stat macros.
47415         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
47416         if stat macros are broken.
47417         * lib/tempname.c (includes): No need to include "stat-macros.h".
47418         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
47419         (direxists, __path_search) [!_LIBC]: Don't compile these in
47420         gnulib; the tmpdir module covers that.
47421         * lib/tempname.h: New file.
47422
47423 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
47424
47425         * COPYING: Explain how gnulib-tool converts licence headers.
47426         Almost all wording by Eric Blake.
47427
47428 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
47429
47430         * lib/mbchar.h (is_basic_table): Make read-only.
47431         * lib/mbchar.c (is_basic_table): Likewise.
47432         Reported by John Darrington.
47433
47434 2006-10-25  Bruno Haible  <bruno@clisp.org>
47435
47436         * lib/progname.h (set_program_name): Undefine before defining.
47437
47438 2006-10-25  Bruno Haible  <bruno@clisp.org>
47439
47440         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
47441         false for non-gcc C++ compilers.
47442         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
47443
47444 2006-10-24  Bruno Haible  <bruno@clisp.org>
47445
47446         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
47447         iconv implementations like Irix iconv.
47448
47449 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
47450
47451         * modules/vararrays: New file.
47452         * m4/vararrays.m4: New file, taken from diffutils.
47453         * MODULES.html.sh: New module vararrays.
47454
47455 2006-10-24  Karl Berry  <karl@gnu.org>
47456
47457         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
47458         Don't call GNU Unix.
47459
47460 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47461
47462         * users.txt: Add Libtool.
47463
47464         Sync from Libtool:
47465
47466         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
47467
47468         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
47469         to gnulib's policy of including config.h unconditionally.
47470
47471 2006-10-24  Bruno Haible  <bruno@clisp.org>
47472
47473         * modules/wcwidth (Files): Add m4/wint_t.m4.
47474         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
47475         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
47476
47477 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
47478
47479         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
47480         to pacify GCC with some -W flags enabled.  Problem reported by
47481         Bruno Haible.
47482
47483 2006-10-24  Jim Meyering  <jim@meyering.net>
47484
47485         * MODULES.html.sh: Remove uinttostr.  It's not a module.
47486         Reported by Karl Berry.
47487
47488 2006-10-23  Bruno Haible  <bruno@clisp.org>
47489
47490         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
47491
47492 2006-10-24  Bruno Haible  <bruno@clisp.org>
47493
47494         * lib/gl_list.h: Use C comment style, not C++ comment style.
47495
47496 2006-10-23  Eric Blake  <ebb9@byu.net>
47497
47498         * lib/getaddrinfo.c (includes): Add missing include.
47499
47500 2006-10-23  Bruno Haible  <bruno@clisp.org>
47501             Paul Eggert  <eggert@cs.ucla.edu>
47502
47503         Ability to rename obstack_free.
47504         * lib/obstack.h (__obstack_free): New macro. Declare instead of
47505         obstack_free.
47506         (obstack_free): Invoke the __obstack_free macro.
47507         * lib/obstack.c (obstack_free): Use __obstack_free macro.
47508
47509 2006-10-23  Bruno Haible  <bruno@clisp.org>
47510             Paul Eggert  <eggert@cs.ucla.edu>
47511
47512         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
47513         __argc, __argv from the declaration. (They are defined as macros on
47514         mingw.)
47515
47516 2006-10-22  Bruno Haible  <bruno@clisp.org>
47517
47518         * doc/gnulib-intro.texi: New file.
47519         * doc/gnulib.texi: Include it.
47520
47521 2006-10-21  Bruno Haible  <bruno@clisp.org>
47522
47523         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
47524         "Introduction", "Miscellanous Notes", "Particular Modules".
47525
47526 2006-10-21  Bruno Haible  <bruno@clisp.org>
47527
47528         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47529         Change mostlyclean-local rule to avoid sh syntax error from bash
47530         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
47531
47532 2006-10-23  Jim Meyering  <jim@meyering.net>
47533
47534         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
47535         in place of snprintf.
47536
47537         * modules/inttostr (Files): Add lib/uinttostr.c.
47538         * lib/uinttostr.c (inttostr): New file/function.
47539         * lib/inttostr.h (uinttostr): Declare.
47540         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
47541         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
47542         Add uinttostr.
47543         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
47544
47545 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
47546
47547         * lib/canonicalize.c (ELOOP): Define if not already defined.
47548         Problem reported by Bruno Haible in
47549         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
47550
47551 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
47552
47553         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
47554         Problem reported by Perry Smith and Ville Laurikari.
47555
47556         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
47557         uses.
47558
47559 2006-10-19  Bruno Haible  <bruno@clisp.org>
47560
47561         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
47562         for mingw.
47563
47564 2006-10-19  Bruno Haible  <bruno@clisp.org>
47565
47566         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
47567         Needed for mingw.
47568
47569 2006-10-19  Bruno Haible  <bruno@clisp.org>
47570
47571         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
47572
47573 2006-10-19  Bruno Haible  <bruno@clisp.org>
47574
47575         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
47576         it.
47577
47578 2006-10-19  Bruno Haible  <bruno@clisp.org>
47579
47580         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
47581         invocation.
47582
47583 2006-10-19  Bruno Haible  <bruno@clisp.org>
47584
47585         * gnulib-tool (func_create_testdir): Don't include ftruncate and
47586         mountlist by default.
47587
47588 2006-10-16  Bruno Haible  <bruno@clisp.org>
47589
47590         * lib/c-strstr.c: Include c-strstr.h.
47591
47592 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
47593
47594         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
47595         in a slash.
47596
47597 2006-10-18  Bruno Haible  <bruno@clisp.org>
47598
47599         * lib/lock.h [C++]: Wrap definitions in extern "C".
47600
47601 2006-10-18  Bruno Haible  <bruno@clisp.org>
47602
47603         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
47604         gl_LIBOBJS list.
47605
47606 2006-10-18  Bruno Haible  <bruno@clisp.org>
47607
47608         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
47609
47610 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
47611
47612         * lib/xstrtol.h: Include gettext.h.
47613         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
47614         Problem reported by Eric Blake.
47615         * modules/xstrtol (Depends-on): Add gettext-h.
47616
47617 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
47618
47619         * lib/strftime.c (advance): New macro.
47620         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
47621         incomplete type, so you can't add 0 to it.  Problem and patch
47622         reported by Eelco Dolstra for dietlibc.
47623
47624 2006-10-18  Jim Meyering  <jim@meyering.net>
47625
47626         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
47627         type for a local, and rename it: s/up/user_proc/.
47628
47629 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
47630
47631         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
47632         READ_UTMP_USER_PROCESS.
47633         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
47634
47635 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
47636
47637         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
47638         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
47639
47640 2006-10-17  Eric Blake  <ebb9@byu.net>
47641
47642         * lib/sigprocmask.c (sigprocmask): Fix typo.
47643
47644         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
47645
47646         * modules/clean-temp (Makefile.am): Don't add to make output...
47647         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
47648         config.h.
47649
47650 2006-10-17  Bruno Haible  <bruno@clisp.org>
47651
47652         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
47653         differently if DEFAULT_TEXT_DOMAIN is set.
47654
47655 2006-10-16  Bruno Haible  <bruno@clisp.org>
47656
47657         * lib/clean-temp.c: Include fwriteerror.h.
47658
47659 2006-10-16  Bruno Haible  <bruno@clisp.org>
47660
47661         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
47662
47663 2006-10-16  Bruno Haible  <bruno@clisp.org>
47664
47665         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
47666         * lib/sigprocmask.h: Include <sys/types.h>.
47667         (sigset_t): Use the system's definition if present.
47668
47669 2006-10-17  Eric Blake  <ebb9@byu.net>
47670
47671         * lib/xvasprintf.c (includes): Assume config.h.
47672         * lib/xasprintf.c (includes): Likewise.
47673
47674 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
47675
47676         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
47677         at least as wide as intmax_t.
47678
47679 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
47680
47681         (Imported from Automake.)
47682         * build-aux/gnupload: Update to version 1.1 of directive file.
47683
47684 2006-10-16  Eric Blake  <ebb9@byu.net>
47685
47686         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
47687         match Automake 1.10a.
47688
47689 2006-10-14  Bruno Haible  <bruno@clisp.org>
47690
47691         * modules/sigprocmask: New file.
47692         * lib/sigprocmask.h: New file.
47693         * lib/sigprocmask.c: New file.
47694         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
47695         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
47696         request sigprocmask.o.
47697         (gl_PREREQ_SIGPROCMASK): New macro.
47698         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
47699         (Depends-on): Add sigprocmask.
47700         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
47701         gt_SIGNALBLOCKING. Test for 'raise' only once.
47702         * lib/fatal-signal.c: Include sigprocmask.h.
47703         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
47704         unblock_fatal_signals): Define always.
47705         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47706         sigprocmask.
47707
47708 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
47709
47710         Sync from Automake.
47711         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
47712         which incorrectly sets the mode of an existing destination
47713         directory.  In some cases the unpatched install-sh could do the
47714         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
47715         system.  We hope this is rare in practice, but it's clearly worth
47716         fixing.  Problem reported by Alex Unleashed in
47717         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
47718         Also, don't bother to check for -m bugs unless we're using -m;
47719         suggested by Stepan Kasal.
47720
47721 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47722
47723         Sync from Automake.
47724         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
47725         `-c' flag, so they appear at the same position as in %FASTDEP%
47726         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
47727         which ignores unknown options only after the first non-option.
47728         Bug report against M4 by Nelson H. F. Beebe.
47729
47730 2006-10-13  Jim Meyering  <jim@meyering.net>
47731
47732         Fix a bug in yesterday's change.
47733         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
47734         p->fts_statp->st_dev would be used uninitialized.
47735         Ensures that we always call fts_stat on the very first entry.
47736         Miklos Szeredi reported that find -xdev stopped working.
47737
47738 2006-10-12  Bruno Haible  <bruno@clisp.org>
47739
47740         * gnulib-tool (func_get_automake_snippet): Append an automatically
47741         computed EXTRA_DIST augmentation.
47742         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
47743         * modules/alloca-opt (Makefile.am): Likewise.
47744         * modules/allocsa (Makefile.am): Likewise.
47745         * modules/arcfour (Makefile.am): Likewise.
47746         * modules/arctwo (Makefile.am): Likewise.
47747         * modules/argmatch (Makefile.am): Likewise.
47748         * modules/argz (Makefile.am): Likewise.
47749         * modules/atexit (Makefile.am): Likewise.
47750         * modules/backupfile (Makefile.am): Likewise.
47751         * modules/byteswap (Makefile.am): Likewise.
47752         * modules/c-strtod (Makefile.am): Likewise.
47753         * modules/c-strtold (Makefile.am): Likewise.
47754         * modules/calloc (Makefile.am): Likewise.
47755         * modules/canon-host (Makefile.am): Likewise.
47756         * modules/canonicalize (Makefile.am): Likewise.
47757         * modules/chdir-long (Makefile.am): Likewise.
47758         * modules/chdir-safer (Makefile.am): Likewise.
47759         * modules/check-version (Makefile.am): Likewise.
47760         * modules/chown (Makefile.am): Likewise.
47761         * modules/cloexec (Makefile.am): Likewise.
47762         * modules/close-stream (Makefile.am): Likewise.
47763         * modules/closeout (Makefile.am): Likewise.
47764         * modules/crc (Makefile.am): Likewise.
47765         * modules/csharpexec (Makefile.am): Likewise.
47766         * modules/cycle-check (Makefile.am): Likewise.
47767         * modules/des (Makefile.am): Likewise.
47768         * modules/dev-ino (Makefile.am): Likewise.
47769         * modules/dirfd (Makefile.am): Likewise.
47770         * modules/dirname (Makefile.am): Likewise.
47771         * modules/dup2 (Makefile.am): Likewise.
47772         * modules/eealloc (Makefile.am): Likewise.
47773         * modules/error (Makefile.am): Likewise.
47774         * modules/euidaccess (Makefile.am): Likewise.
47775         * modules/exclude (Makefile.am): Likewise.
47776         * modules/exitfail (Makefile.am): Likewise.
47777         * modules/fcntl-safer (Makefile.am): Likewise.
47778         * modules/fcntl (Makefile.am): Likewise.
47779         * modules/file-type (Makefile.am): Likewise.
47780         * modules/fileblocks (Makefile.am): Likewise.
47781         * modules/filemode (Makefile.am): Likewise.
47782         * modules/filenamecat (Makefile.am): Likewise.
47783         * modules/fnmatch (Makefile.am): Likewise.
47784         * modules/fopen-safer (Makefile.am): Likewise.
47785         * modules/fpending (Makefile.am): Likewise.
47786         * modules/fprintftime (Makefile.am): Likewise.
47787         * modules/free (Makefile.am): Likewise.
47788         * modules/fsusage (Makefile.am): Likewise.
47789         * modules/ftruncate (Makefile.am): Likewise.
47790         * modules/fts (Makefile.am): Likewise.
47791         * modules/gc-arcfour (Makefile.am): Likewise.
47792         * modules/gc-des (Makefile.am): Likewise.
47793         * modules/gc-hmac-md5 (Makefile.am): Likewise.
47794         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
47795         * modules/gc-md4 (Makefile.am): Likewise.
47796         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
47797         * modules/gc-sha1 (Makefile.am): Likewise.
47798         * modules/gc (Makefile.am): Likewise.
47799         * modules/getaddrinfo (Makefile.am): Likewise.
47800         * modules/getcwd (Makefile.am): Likewise.
47801         * modules/getdelim (Makefile.am): Likewise.
47802         * modules/getdomainname (Makefile.am): Likewise.
47803         * modules/getgroups (Makefile.am): Likewise.
47804         * modules/gethostname (Makefile.am): Likewise.
47805         * modules/gethrxtime (Makefile.am): Likewise.
47806         * modules/getline (Makefile.am): Likewise.
47807         * modules/getloadavg (Makefile.am): Likewise.
47808         * modules/getlogin_r (Makefile.am): Likewise.
47809         * modules/getndelim2 (Makefile.am): Likewise.
47810         * modules/getopt (Makefile.am): Likewise.
47811         * modules/getpagesize (Makefile.am): Likewise.
47812         * modules/getpass-gnu (Makefile.am): Likewise.
47813         * modules/getpass (Makefile.am): Likewise.
47814         * modules/getsubopt (Makefile.am): Likewise.
47815         * modules/gettime (Makefile.am): Likewise.
47816         * modules/gettimeofday (Makefile.am): Likewise.
47817         * modules/getugroups (Makefile.am): Likewise.
47818         * modules/getusershell (Makefile.am): Likewise.
47819         * modules/glob (Makefile.am): Likewise.
47820         * modules/group-member (Makefile.am): Likewise.
47821         * modules/hard-locale (Makefile.am): Likewise.
47822         * modules/hash (Makefile.am): Likewise.
47823         * modules/hmac-md5 (Makefile.am): Likewise.
47824         * modules/hmac-sha1 (Makefile.am): Likewise.
47825         * modules/human (Makefile.am): Likewise.
47826         * modules/idcache (Makefile.am): Likewise.
47827         * modules/imaxabs (Makefile.am): Likewise.
47828         * modules/imaxdiv (Makefile.am): Likewise.
47829         * modules/inet_ntop (Makefile.am): Likewise.
47830         * modules/inet_pton (Makefile.am): Likewise.
47831         * modules/intprops (Makefile.am): Likewise.
47832         * modules/inttostr (Makefile.am): Likewise.
47833         * modules/inttypes (Makefile.am): Likewise.
47834         * modules/isapipe (Makefile.am): Likewise.
47835         * modules/javaversion (Makefile.am): Likewise.
47836         * modules/lchmod (Makefile.am): Likewise.
47837         * modules/lchown (Makefile.am): Likewise.
47838         * modules/localcharset (Makefile.am): Likewise.
47839         * modules/long-options (Makefile.am): Likewise.
47840         * modules/lstat (Makefile.am): Likewise.
47841         * modules/malloc (Makefile.am): Likewise.
47842         * modules/mathl (Makefile.am): Likewise.
47843         * modules/mbchar (Makefile.am): Likewise.
47844         * modules/md2 (Makefile.am): Likewise.
47845         * modules/md4 (Makefile.am): Likewise.
47846         * modules/md5 (Makefile.am): Likewise.
47847         * modules/memcasecmp (Makefile.am): Likewise.
47848         * modules/memchr (Makefile.am): Likewise.
47849         * modules/memcmp (Makefile.am): Likewise.
47850         * modules/memcoll (Makefile.am): Likewise.
47851         * modules/memcpy (Makefile.am): Likewise.
47852         * modules/memmem (Makefile.am): Likewise.
47853         * modules/memmove (Makefile.am): Likewise.
47854         * modules/mempcpy (Makefile.am): Likewise.
47855         * modules/memrchr (Makefile.am): Likewise.
47856         * modules/memset (Makefile.am): Likewise.
47857         * modules/memxor (Makefile.am): Likewise.
47858         * modules/mkancesdirs (Makefile.am): Likewise.
47859         * modules/mkdir-p (Makefile.am): Likewise.
47860         * modules/mkdir (Makefile.am): Likewise.
47861         * modules/mkdtemp (Makefile.am): Likewise.
47862         * modules/mkstemp (Makefile.am): Likewise.
47863         * modules/mktime (Makefile.am): Likewise.
47864         * modules/modechange (Makefile.am): Likewise.
47865         * modules/mountlist (Makefile.am): Likewise.
47866         * modules/nanosleep (Makefile.am): Likewise.
47867         * modules/obstack (Makefile.am): Likewise.
47868         * modules/openat (Makefile.am): Likewise.
47869         * modules/pagealign_alloc (Makefile.am): Likewise.
47870         * modules/pathmax (Makefile.am): Likewise.
47871         * modules/physmem (Makefile.am): Likewise.
47872         * modules/poll (Makefile.am): Likewise.
47873         * modules/posixtm (Makefile.am): Likewise.
47874         * modules/posixver (Makefile.am): Likewise.
47875         * modules/putenv (Makefile.am): Likewise.
47876         * modules/quote (Makefile.am): Likewise.
47877         * modules/quotearg (Makefile.am): Likewise.
47878         * modules/raise (Makefile.am): Likewise.
47879         * modules/read-file (Makefile.am): Likewise.
47880         * modules/readline (Makefile.am): Likewise.
47881         * modules/readlink (Makefile.am): Likewise.
47882         * modules/readtokens (Makefile.am): Likewise.
47883         * modules/readutmp (Makefile.am): Likewise.
47884         * modules/realloc (Makefile.am): Likewise.
47885         * modules/regex (Makefile.am): Likewise.
47886         * modules/rename-dest-slash (Makefile.am): Likewise.
47887         * modules/rename (Makefile.am): Likewise.
47888         * modules/rijndael (Makefile.am): Likewise.
47889         * modules/rmdir (Makefile.am): Likewise.
47890         * modules/rpmatch (Makefile.am): Likewise.
47891         * modules/safe-read (Makefile.am): Likewise.
47892         * modules/safe-write (Makefile.am): Likewise.
47893         * modules/same-inode (Makefile.am): Likewise.
47894         * modules/same (Makefile.am): Likewise.
47895         * modules/save-cwd (Makefile.am): Likewise.
47896         * modules/savedir (Makefile.am): Likewise.
47897         * modules/setenv (Makefile.am): Likewise.
47898         * modules/settime (Makefile.am): Likewise.
47899         * modules/sha1 (Makefile.am): Likewise.
47900         * modules/sig2str (Makefile.am): Likewise.
47901         * modules/snprintf (Makefile.am): Likewise.
47902         * modules/stat-macros (Makefile.am): Likewise.
47903         * modules/stat-time (Makefile.am): Likewise.
47904         * modules/stdbool (Makefile.am): Likewise.
47905         * modules/stdint (Makefile.am): Likewise.
47906         * modules/stdlib-safer (Makefile.am): Likewise.
47907         * modules/stpcpy (Makefile.am): Likewise.
47908         * modules/stpncpy (Makefile.am): Likewise.
47909         * modules/strcase (Makefile.am): Likewise.
47910         * modules/strcasestr (Makefile.am): Likewise.
47911         * modules/strchrnul (Makefile.am): Likewise.
47912         * modules/strcspn (Makefile.am): Likewise.
47913         * modules/strdup (Makefile.am): Likewise.
47914         * modules/strerror (Makefile.am): Likewise.
47915         * modules/strftime (Makefile.am): Likewise.
47916         * modules/strndup (Makefile.am): Likewise.
47917         * modules/strnlen (Makefile.am): Likewise.
47918         * modules/strpbrk (Makefile.am): Likewise.
47919         * modules/strsep (Makefile.am): Likewise.
47920         * modules/strstr (Makefile.am): Likewise.
47921         * modules/strtod (Makefile.am): Likewise.
47922         * modules/strtoimax (Makefile.am): Likewise.
47923         * modules/strtok_r (Makefile.am): Likewise.
47924         * modules/strtol (Makefile.am): Likewise.
47925         * modules/strtoll (Makefile.am): Likewise.
47926         * modules/strtoul (Makefile.am): Likewise.
47927         * modules/strtoull (Makefile.am): Likewise.
47928         * modules/strtoumax (Makefile.am): Likewise.
47929         * modules/strverscmp (Makefile.am): Likewise.
47930         * modules/sys_socket (Makefile.am): Likewise.
47931         * modules/sys_stat (Makefile.am): Likewise.
47932         * modules/sysexits (Makefile.am): Likewise.
47933         * modules/time_r (Makefile.am): Likewise.
47934         * modules/timegm (Makefile.am): Likewise.
47935         * modules/timespec (Makefile.am): Likewise.
47936         * modules/tmpfile-safer (Makefile.am): Likewise.
47937         * modules/trim (Makefile.am): Likewise.
47938         * modules/unistd-safer (Makefile.am): Likewise.
47939         * modules/unlinkdir (Makefile.am): Likewise.
47940         * modules/unlocked-io (Makefile.am): Likewise.
47941         * modules/userspec (Makefile.am): Likewise.
47942         * modules/utime (Makefile.am): Likewise.
47943         * modules/utimecmp (Makefile.am): Likewise.
47944         * modules/utimens (Makefile.am): Likewise.
47945         * modules/vasnprintf (Makefile.am): Likewise.
47946         * modules/vasprintf (Makefile.am): Likewise.
47947         * modules/vsnprintf (Makefile.am): Likewise.
47948         * modules/xalloc (Makefile.am): Likewise.
47949         * modules/xgetcwd (Makefile.am): Likewise.
47950         * modules/xnanosleep (Makefile.am): Likewise.
47951         * modules/xreadlink (Makefile.am): Likewise.
47952         * modules/xstrtod (Makefile.am): Likewise.
47953         * modules/xstrtol (Makefile.am): Likewise.
47954         * modules/xstrtold (Makefile.am): Likewise.
47955         * modules/yesno (Makefile.am): Likewise.
47956         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
47957
47958 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
47959
47960         * modules/error (Makefile.am): Distribute files through
47961         EXTRA_DIST, not lib_SOURCES.
47962
47963 2006-10-12  Eric Blake  <ebb9@byu.net>
47964
47965         * modules/error (Makefile.am): Distribute files in /lib.
47966         * modules/obstack (Makefile.am): Likewise.
47967
47968 2006-10-12  Bruno Haible  <bruno@clisp.org>
47969
47970         * modules/acl (Makefile.am): Distribute all files in lib/ through
47971         EXTRA_DIST.
47972         * modules/arcfour (Makefile.am): Likewise.
47973         * modules/arctwo (Makefile.am): Likewise.
47974         * modules/argmatch (Makefile.am): Likewise.
47975         * modules/argz (Makefile.am): Likewise.
47976         * modules/atexit (Makefile.am): Likewise.
47977         * modules/backupfile (Makefile.am): Likewise.
47978         * modules/c-strtod (Makefile.am): Likewise.
47979         * modules/c-strtold (Makefile.am): Likewise.
47980         * modules/calloc (Makefile.am): Likewise.
47981         * modules/canon-host (Makefile.am): Likewise.
47982         * modules/canonicalize (Makefile.am): Likewise.
47983         * modules/chdir-long (Makefile.am): Likewise.
47984         * modules/chdir-safer (Makefile.am): Likewise.
47985         * modules/check-version (Makefile.am): Likewise.
47986         * modules/chown (Makefile.am): Likewise.
47987         * modules/cloexec (Makefile.am): Likewise.
47988         * modules/close-stream (Makefile.am): Likewise.
47989         * modules/closeout (Makefile.am): Likewise.
47990         * modules/crc (Makefile.am): Likewise.
47991         * modules/cycle-check (Makefile.am): Likewise.
47992         * modules/des (Makefile.am): Likewise.
47993         * modules/dirfd (Makefile.am): Likewise.
47994         * modules/dirname (Makefile.am): Likewise.
47995         * modules/dup2 (Makefile.am): Likewise.
47996         * modules/euidaccess (Makefile.am): Likewise.
47997         * modules/exclude (Makefile.am): Likewise.
47998         * modules/exitfail (Makefile.am): Likewise.
47999         * modules/fcntl-safer (Makefile.am): Likewise.
48000         * modules/file-type (Makefile.am): Likewise.
48001         * modules/fileblocks (Makefile.am): Likewise.
48002         * modules/filemode (Makefile.am): Likewise.
48003         * modules/filenamecat (Makefile.am): Likewise.
48004         * modules/fnmatch (Makefile.am): Likewise.
48005         * modules/fopen-safer (Makefile.am): Likewise.
48006         * modules/fpending (Makefile.am): Likewise.
48007         * modules/fprintftime (Makefile.am): Likewise.
48008         * modules/free (Makefile.am): Likewise.
48009         * modules/fsusage (Makefile.am): Likewise.
48010         * modules/ftruncate (Makefile.am): Likewise.
48011         * modules/fts (Makefile.am): Likewise.
48012         * modules/gc (Makefile.am): Likewise.
48013         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
48014         * modules/getaddrinfo (Makefile.am): Likewise.
48015         * modules/getcwd (Makefile.am): Likewise.
48016         * modules/getdelim (Makefile.am): Likewise.
48017         * modules/getdomainname (Makefile.am): Likewise.
48018         * modules/getgroups (Makefile.am): Likewise.
48019         * modules/gethostname (Makefile.am): Likewise.
48020         * modules/gethrxtime (Makefile.am): Likewise.
48021         * modules/getline (Makefile.am): Likewise.
48022         * modules/getloadavg (Makefile.am): Likewise.
48023         * modules/getlogin_r (Makefile.am): Likewise.
48024         * modules/getopt (Makefile.am): Likewise.
48025         * modules/getpass (Makefile.am): Likewise.
48026         * modules/getpass-gnu (Makefile.am): Likewise.
48027         * modules/getsubopt (Makefile.am): Likewise.
48028         * modules/gettime (Makefile.am): Likewise.
48029         * modules/gettimeofday (Makefile.am): Likewise.
48030         * modules/getugroups (Makefile.am): Likewise.
48031         * modules/getusershell (Makefile.am): Likewise.
48032         * modules/glob (Makefile.am): Likewise.
48033         * modules/group-member (Makefile.am): Likewise.
48034         * modules/hard-locale (Makefile.am): Likewise.
48035         * modules/hash (Makefile.am): Likewise.
48036         * modules/hmac-md5 (Makefile.am): Likewise.
48037         * modules/hmac-sha1 (Makefile.am): Likewise.
48038         * modules/human (Makefile.am): Likewise.
48039         * modules/idcache (Makefile.am): Likewise.
48040         * modules/imaxabs (Makefile.am): Likewise.
48041         * modules/imaxdiv (Makefile.am): Likewise.
48042         * modules/inet_ntop (Makefile.am): Likewise.
48043         * modules/inet_pton (Makefile.am): Likewise.
48044         * modules/inttostr (Makefile.am): Likewise.
48045         * modules/isapipe (Makefile.am): Likewise.
48046         * modules/lchown (Makefile.am): Likewise.
48047         * modules/long-options (Makefile.am): Likewise.
48048         * modules/lstat (Makefile.am): Likewise.
48049         * modules/malloc (Makefile.am): Likewise.
48050         * modules/mathl (Makefile.am): Likewise.
48051         * modules/mbchar (Makefile.am): Likewise.
48052         * modules/md2 (Makefile.am): Likewise.
48053         * modules/md4 (Makefile.am): Likewise.
48054         * modules/md5 (Makefile.am): Likewise.
48055         * modules/memcasecmp (Makefile.am): Likewise.
48056         * modules/memchr (Makefile.am): Likewise.
48057         * modules/memcmp (Makefile.am): Likewise.
48058         * modules/memcoll (Makefile.am): Likewise.
48059         * modules/memcpy (Makefile.am): Likewise.
48060         * modules/memmem (Makefile.am): Likewise.
48061         * modules/memmove (Makefile.am): Likewise.
48062         * modules/mempcpy (Makefile.am): Likewise.
48063         * modules/memrchr (Makefile.am): Likewise.
48064         * modules/memset (Makefile.am): Likewise.
48065         * modules/memxor (Makefile.am): Likewise.
48066         * modules/mkancesdirs (Makefile.am): Likewise.
48067         * modules/mkdir (Makefile.am): Likewise.
48068         * modules/mkdir-p (Makefile.am): Likewise.
48069         * modules/mkdtemp (Makefile.am): Likewise.
48070         * modules/mkstemp (Makefile.am): Likewise.
48071         * modules/mktime (Makefile.am): Likewise.
48072         * modules/modechange (Makefile.am): Likewise.
48073         * modules/mountlist (Makefile.am): Likewise.
48074         * modules/nanosleep (Makefile.am): Likewise.
48075         * modules/openat (Makefile.am): Likewise.
48076         * modules/pagealign_alloc (Makefile.am): Likewise.
48077         * modules/physmem (Makefile.am): Likewise.
48078         * modules/poll (Makefile.am): Likewise.
48079         * modules/posixtm (Makefile.am): Likewise.
48080         * modules/posixver (Makefile.am): Likewise.
48081         * modules/putenv (Makefile.am): Likewise.
48082         * modules/quote (Makefile.am): Likewise.
48083         * modules/quotearg (Makefile.am): Likewise.
48084         * modules/raise (Makefile.am): Likewise.
48085         * modules/read-file (Makefile.am): Likewise.
48086         * modules/readline (Makefile.am): Likewise.
48087         * modules/readlink (Makefile.am): Likewise.
48088         * modules/readtokens (Makefile.am): Likewise.
48089         * modules/readutmp (Makefile.am): Likewise.
48090         * modules/realloc (Makefile.am): Likewise.
48091         * modules/regex (Makefile.am): Likewise.
48092         * modules/rename (Makefile.am): Likewise.
48093         * modules/rename-dest-slash (Makefile.am): Likewise.
48094         * modules/rijndael (Makefile.am): Likewise.
48095         * modules/rmdir (Makefile.am): Likewise.
48096         * modules/rpmatch (Makefile.am): Likewise.
48097         * modules/safe-read (Makefile.am): Likewise.
48098         * modules/safe-write (Makefile.am): Likewise.
48099         * modules/same (Makefile.am): Likewise.
48100         * modules/save-cwd (Makefile.am): Likewise.
48101         * modules/savedir (Makefile.am): Likewise.
48102         * modules/setenv (Makefile.am): Likewise.
48103         * modules/settime (Makefile.am): Likewise.
48104         * modules/sha1 (Makefile.am): Likewise.
48105         * modules/sig2str (Makefile.am): Likewise.
48106         * modules/snprintf (Makefile.am): Likewise.
48107         * modules/stdlib-safer (Makefile.am): Likewise.
48108         * modules/stpcpy (Makefile.am): Likewise.
48109         * modules/stpncpy (Makefile.am): Likewise.
48110         * modules/strcase (Makefile.am): Likewise.
48111         * modules/strcasestr (Makefile.am): Likewise.
48112         * modules/strchrnul (Makefile.am): Likewise.
48113         * modules/strcspn (Makefile.am): Likewise.
48114         * modules/strdup (Makefile.am): Likewise.
48115         * modules/strerror (Makefile.am): Likewise.
48116         * modules/strftime (Makefile.am): Likewise.
48117         * modules/strndup (Makefile.am): Likewise.
48118         * modules/strnlen (Makefile.am): Likewise.
48119         * modules/strpbrk (Makefile.am): Likewise.
48120         * modules/strsep (Makefile.am): Likewise.
48121         * modules/strstr (Makefile.am): Likewise.
48122         * modules/strtod (Makefile.am): Likewise.
48123         * modules/strtoimax (Makefile.am): Likewise.
48124         * modules/strtok_r (Makefile.am): Likewise.
48125         * modules/strtol (Makefile.am): Likewise.
48126         * modules/strtoll (Makefile.am): Likewise.
48127         * modules/strtoul (Makefile.am): Likewise.
48128         * modules/strtoull (Makefile.am): Likewise.
48129         * modules/strtoumax (Makefile.am): Likewise.
48130         * modules/strverscmp (Makefile.am): Likewise.
48131         * modules/time_r (Makefile.am): Likewise.
48132         * modules/timegm (Makefile.am): Likewise.
48133         * modules/tmpfile-safer (Makefile.am): Likewise.
48134         * modules/unistd-safer (Makefile.am): Likewise.
48135         * modules/unlinkdir (Makefile.am): Likewise.
48136         * modules/userspec (Makefile.am): Likewise.
48137         * modules/utime (Makefile.am): Likewise.
48138         * modules/utimecmp (Makefile.am): Likewise.
48139         * modules/utimens (Makefile.am): Likewise.
48140         * modules/vasnprintf (Makefile.am): Likewise.
48141         * modules/vasprintf (Makefile.am): Likewise.
48142         * modules/vsnprintf (Makefile.am): Likewise.
48143         * modules/xalloc (Makefile.am): Likewise.
48144         * modules/xgetcwd (Makefile.am): Likewise.
48145         * modules/xnanosleep (Makefile.am): Likewise.
48146         * modules/xreadlink (Makefile.am): Likewise.
48147         * modules/xstrtod (Makefile.am): Likewise.
48148         * modules/xstrtol (Makefile.am): Likewise.
48149         * modules/xstrtold (Makefile.am): Likewise.
48150         * modules/yesno (Makefile.am): Likewise.
48151
48152 2006-10-12  Jim Meyering  <jim@meyering.net>
48153
48154         * m4/getloadavg.m4: Revert the change below.
48155
48156         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
48157         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
48158         fail with a symlink, which is what coreutils' ./bootstrap now
48159         creates by default.
48160
48161 2006-10-12  Bruno Haible  <bruno@clisp.org>
48162
48163         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
48164         mingw.
48165         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
48166         MSVC and mingw explicitly.
48167
48168 2006-10-11  Simon Josefsson  <jas@extundo.com>
48169             Bruno Haible  <bruno@clisp.org>
48170
48171         Add support for multiple gnulib-tool invocations in the scope of a
48172         single configure.ac file.
48173         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
48174         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
48175         with the same contents as the _LIBADD variable.
48176         (func_emit_initmacro_start, func_emit_initmacro_end,
48177         func_emit_initmacro_done): New functions.
48178         (func_import, func_create_testdir): Invoke them. Allow the identifiers
48179         gl_LIBOBJS and gl_LTLIBOBJS.
48180
48181 2006-10-11  Bruno Haible  <bruno@clisp.org>
48182
48183         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
48184         (func_create_testdir): Don't create po/Makefile.am, don't invoke
48185         autoreconf. Instead, invoke autopoint explicitly but move back the
48186         *.m4 files from gnulib.
48187
48188 2006-10-11  Bruno Haible  <bruno@clisp.org>
48189
48190         * gnulib-tool (func_usage): Make module names after --create-testdir
48191         optional.
48192         (func_create_testdir): If no module was specified, use nearly all
48193         modules.
48194
48195 2006-10-12  Jim Meyering  <jim@meyering.net>
48196
48197         Big performance improvement for fts-based tools that use FTS_NOSTAT.
48198         Avoid spurious inode-mismatch problems on non-POSIX file systems.
48199         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
48200         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
48201         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
48202         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
48203         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
48204         (fts_set_stat_required): New function.
48205         (fts_open): Defer the calls to fts_stat, if possible or requested.
48206         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
48207         into fts_stat itself.
48208         (fts_read): Perform any required (deferred) fts_stat call.
48209         (fts_build): Likewise, for the directory we're about to open and read.
48210         In the readdir loop, carefully decide whether each entry will require
48211         an eventual call to fts_stat, using dirent.d_type info if available.
48212         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
48213         a command line argument into this function.  Update all callers.
48214         Map a return value of FTS_DOT to FTS_D for a command line argument.
48215         * modules/fts (Depends-on): Add d-type.  Alphabetize.
48216         Thanks to Miklos Szeredi for his tenacity and for the initial
48217         bug report about "find" failing on a FUSE-based file system.
48218
48219         * lib/fts.c (fts_open): Use consistent indentation.
48220
48221 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
48222
48223         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
48224         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
48225         reported by Jim Meyering.  All uses of cache variables renamed
48226         to match Autoconf's.
48227         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
48228         the other one.
48229
48230         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
48231         Fix misspelling in diagnostic.
48232
48233 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
48234
48235         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
48236         defined.  Problem reported by Matthew Woehlke.
48237
48238         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
48239         Add support for Tandem NonStop R series.
48240         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
48241         Use new macro.
48242
48243         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
48244         (has_trailing_slash): Omit size arg; all callers changed.
48245         Omit 'inline', since it doesn't help performance and we'd
48246         need to configure it.
48247         Don't count //, ///, etc. as having a trailing slash.
48248         As a side effect, this removes a C99ism reported by Matthew Woehlke.
48249         (rpl_rename_dest_slash): On failure, use rename's errno rather
48250         than (in some cases) an incorrect or junk errno.
48251         Simplify code by removing need to compute length; this does
48252         cause it to make two passes instead of one over the file name,
48253         but it's worth it.
48254
48255         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
48256         change, since Autoconf's version may no longer be appropriate now
48257         that we are using CVS Autoconf's version.  Add support for Tandem.
48258
48259 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
48260             Bruno Haible  <bruno@clisp.org>
48261
48262         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
48263         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
48264         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
48265         gl_AC_TYPE_LONG_LONG.
48266
48267         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
48268         instead of HAVE_LONG_LONG.
48269         * lib/printf-args.c (printf_fetchargs): Likewise.
48270         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
48271         * lib/vasnprintf.c (VASNPRINTF): Likewise.
48272         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
48273         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
48274         gl_AC_TYPE_LONG_LONG.
48275
48276 2006-10-11  Bruno Haible  <bruno@clisp.org>
48277
48278         * m4/longlong.m4: Add comments.
48279         * m4/ulonglong.m4: Likewise.
48280
48281 2006-10-10  Bruno Haible  <bruno@clisp.org>
48282
48283         Make it possible to #define stpcpy, strdup to aliases.
48284         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
48285         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
48286
48287 2006-10-10  Bruno Haible  <bruno@clisp.org>
48288
48289         Make it possible to #define gcd to an alias.
48290         * lib/gcd.c: Include config.h.
48291
48292 2006-10-10  Bruno Haible  <bruno@clisp.org>
48293
48294         Make it possible to #define c_isascii to an alias.
48295         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
48296         defined. Undefine the macros before defining them, to avoid gcc
48297         warnings.
48298         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
48299         define NO_C_CTYPE_MACROS early.
48300
48301 2006-10-10  Bruno Haible  <bruno@clisp.org>
48302
48303         Make it possible to #define set_program_name to an alias.
48304         * lib/progname.c: Don't undefine set_program_name; instead, undefine
48305         ENABLE_RELOCATABLE early.
48306
48307 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
48308
48309         Port to Tandem NSK OSS, which has 64-bit signed int but at most
48310         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
48311         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
48312         More generally, don't assume that 64-bit signed int is available
48313         if unsigned int is, and vice versa.
48314         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
48315         unsigned symbols, not on their signed counterparts.
48316         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
48317         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
48318         (UINT64_C, UINTMAX_C):
48319         Likewise.
48320         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
48321         unsigned counterparts.
48322         (Have_long_long, Unsigned): New macros.
48323         (Int): Renamed from INT.
48324         (strtoimax): Use the new macros.
48325         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
48326         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
48327         * modules/inttypes (inttypes.h): Substitute
48328         HAVE_UNSIGNED_LONG_LONG_INT.
48329         * modules/stdint (stdint.h): Likewise.
48330         (Files): Add m4/ulonglong.m4.
48331
48332 2006-10-10  Bruno Haible  <bruno@clisp.org>
48333
48334         Fix a gcc -Wshadow warning.
48335         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
48336         to 'bucket'.
48337         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
48338         gl_linked_indexof_from_to): Likewise.
48339         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
48340         Likewise.
48341         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
48342         Likewise.
48343         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
48344         Reported by Eric Blake.
48345
48346 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
48347
48348         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
48349         for NetBSD.  Problem reported by Bruno Haible.
48350
48351 2006-10-09  Jim Meyering  <jim@meyering.net>
48352
48353         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
48354         Patch from Bruno Haible.
48355
48356 2006-10-09  Jim Meyering  <jim@meyering.net>
48357
48358         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
48359         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
48360         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
48361
48362 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
48363
48364         Don't include <config.h> twice; this doesn't work in some cases,
48365         e.g., when config.h has "#define intmax_t long long int" and
48366         we include <config.h>, <inttypes.h>, <config.h> in that order.
48367         Problem reported by Matthew Woehlke in:
48368         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
48369         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
48370         * lib/fts-cycle.c: Don't include config.h.
48371         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
48372         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
48373         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
48374         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
48375         inttypes.h.
48376         * lib/xstrtoumax.c: Likewise.
48377         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
48378         __strtol and the like, so that this module is more like its siblings.
48379         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
48380         Remove; no longer needed now that we assume gnulib inttypes.h.
48381
48382 2006-10-08  Bruno Haible  <bruno@clisp.org>
48383
48384         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
48385         option.
48386
48387 2006-10-07  Jim Meyering  <jim@meyering.net>
48388
48389         * modules/inttypes (inttypes.h): Revert what seems to have been
48390         an inadvertent part of today's change: use "|", not "/" in the
48391         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
48392
48393 2006-10-07  Bruno Haible  <bruno@clisp.org>
48394
48395         * modules/sublist: New file.
48396
48397 2006-10-07  Bruno Haible  <bruno@clisp.org>
48398
48399         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
48400         * modules/argz (argz.h): Likewise.
48401         * modules/arpa_inet (arpa/inet.h): Likewise.
48402         * modules/byteswap (byteswap.h): Likewise.
48403         * modules/configmake (configmake.h): Likewise.
48404         * modules/fcntl (fcntl.h): Likewise.
48405         * modules/fnmatch (fnmatch.h): Likewise.
48406         * modules/getopt (getopt.h): Likewise.
48407         * modules/glob (glob.h): Likewise.
48408         * modules/inttypes (inttypes.h): Likewise.
48409         * modules/netinet_in (netinet/in.h): Likewise.
48410         * modules/poll (poll.h): Likewise.
48411         * modules/stdbool (stdbool.h): Likewise.
48412         * modules/stdint (stdint.h): Likewise.
48413         * modules/sys_select (sys/select.h): Likewise.
48414         * modules/sys_socket (sys/socket.h): Likewise.
48415         * modules/sys_stat (sys/stat.h): Likewise.
48416         * modules/sysexits (sysexits.h): Likewise.
48417         * modules/unistd (unistd.h): Likewise.
48418         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
48419         Add a "DO NOT EDIT" comment to the generated file.
48420         (func_import): Likewise for gnulib-comp.m4.
48421
48422 2006-10-07  Bruno Haible  <bruno@clisp.org>
48423
48424         * lib/gl_sublist.h: New file.
48425         * lib/gl_sublist.c: New file.
48426
48427 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
48428
48429         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
48430         name (relative to the original working directory) and the file
48431         name component (relative to the temporary working directory).  All
48432         callers changed.
48433         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
48434         * lib/mkdir-p.c (make_dir_parents): Likewise.
48435         * lib/mkdir-p.h (make_dir_parents): Likewise.
48436
48437 2006-10-06  Eric Blake  <ebb9@byu.net>
48438
48439         Define several macros for use by the clean-temp module.
48440         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
48441         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
48442         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
48443
48444         * lib/clean-temp.h (close_stream_temp): New declaration.
48445         * lib/clean-temp.c (includes): Pull in headers according to what
48446         other modules are in use.
48447         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
48448
48449 2006-10-06  Bruno Haible  <bruno@clisp.org>
48450
48451         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
48452         instead of fopen, fwriteerror.
48453
48454 2006-10-06  Bruno Haible  <bruno@clisp.org>
48455
48456         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
48457         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
48458         int.
48459         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
48460         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
48461         Return an error indicator.
48462         Suggested by Eric Blake.
48463
48464 2006-10-06  Bruno Haible  <bruno@clisp.org>
48465
48466         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
48467         Reported by Eric Blake.
48468
48469 2006-10-06  Bruno Haible  <bruno@clisp.org>
48470
48471         * modules/closeout (Description): Mention stderr too.
48472
48473 2006-10-06  Bruno Haible  <bruno@clisp.org>
48474         and Paul Eggert  <eggert@cs.ucla.edu>
48475
48476         * lib/closeout.c (close_stdout): Also close stderr.
48477         * lib/closeout.h: Update comment.
48478
48479 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
48480
48481         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
48482         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
48483         * lib/dirchownmod.c: Include lchown.h.
48484         * lib/lchown.c: Don't include files that lchown.h now includes.
48485         Don't declare chown, since lchown.h now does that.
48486         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
48487         (lchown): Define to rpl_chown if lchown is declared but
48488         does not exist.  Declare using a prototype if lchown is not
48489         declared.  Add a copyright notice.
48490         * lib/mkstemp.h: Include <unistd.h>.
48491         * lib/openat.c: Include lchown.h.
48492
48493         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
48494         we now test for that separately.
48495         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
48496         rather than O_NOFOLLOW, when testing whether it's possible to
48497         avoid a race condition reliably.
48498         * lib/savewd.c (savewd_chdir): Likewise.
48499
48500         Remove macros that are no longer needed now that stdint.h is
48501         reliable.
48502         * lib/fsusage.c (UINTMAX_MAX): Remove.
48503         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
48504         * lib/utimecmp.c (SIZE_MAX): Remove.
48505
48506         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
48507
48508         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
48509         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
48510         O_NOATIME works.
48511
48512 2006-10-05  Bruno Haible  <bruno@clisp.org>
48513
48514         * lib/gl_list.h (gl_sortedlist_search_from_to,
48515         gl_sortedlist_indexof_from_to): New declarations.
48516         (gl_list_implementation): New fields sortedlist_search_from_to,
48517         sortedlist_indexof_from_to.
48518         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
48519         inline functions.
48520         * lib/gl_list.c (gl_sortedlist_search_from_to,
48521         gl_sortedlist_indexof_from_to): New functions.
48522         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
48523         function.
48524         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
48525         (gl_array_sortedlist_search_from_to): New function.
48526         (gl_array_list_implementation): Update.
48527         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
48528         function.
48529         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
48530         (gl_carray_sortedlist_search_from_to): New function.
48531         (gl_carray_list_implementation): Update.
48532         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
48533         gl_linked_sortedlist_indexof_from_to): New functions.
48534         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
48535         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
48536         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
48537         gl_tree_sortedlist_indexof_from_to): New functions.
48538         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
48539         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
48540         Update.
48541         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
48542         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
48543         Update.
48544
48545 2006-10-05  Bruno Haible  <bruno@clisp.org>
48546
48547         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
48548         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
48549         (struct gl_list_implementation): Add fields search_from_to,
48550         indexof_from_to. Remove fields search, indexof.
48551         (gl_list_search): Use the search_from_to method.
48552         (gl_list_search_from, gl_list_search_from_to): New functions.
48553         (gl_list_indexof): Use the indexof_from_to method.
48554         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
48555         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
48556         (gl_list_search_from, gl_list_search_from_to): New functions.
48557         (gl_list_indexof): Use the indexof_from_to method.
48558         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
48559         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
48560         gl_array_indexof. Add start_index, end_index arguments.
48561         (gl_array_search_from_to): Renamed from gl_array_search. Add
48562         start_index, end_index arguments.
48563         (gl_array_remove, gl_array_list_implementation): Update.
48564         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
48565         gl_carray_indexof. Add start_index, end_index arguments.
48566         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
48567         start_index, end_index arguments.
48568         (gl_carray_remove, gl_carray_list_implementation): Update.
48569         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
48570         gl_linked_search. Add start_index, end_index arguments.
48571         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
48572         start_index, end_index arguments.
48573         (gl_linked_remove): Update.
48574         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
48575         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
48576         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
48577         field to 'size_t'.
48578         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
48579         gl_tree_search. Add start_index, end_index arguments.
48580         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
48581         start_index, end_index arguments.
48582         (gl_tree_remove): Update.
48583         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
48584         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
48585         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
48586         function.
48587         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
48588         gl_tree_search. Add start_index, end_index arguments.
48589         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
48590         start_index, end_index arguments.
48591         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
48592         Update.
48593         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
48594
48595 2006-10-05  Bruno Haible  <bruno@clisp.org>
48596
48597         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
48598
48599         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
48600         fwriteerror_temp): New declarations.
48601         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
48602         (descriptors): New variable.
48603         (cleanup): First, close the descriptors.
48604         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
48605         fclose_temp, fwriteerror_temp): New functions.
48606
48607 2006-10-04  Jim Meyering  <jim@meyering.net>
48608
48609         * lib/fts.c (fts_open): Tiny comment change.
48610
48611 2006-10-04  Bruno Haible  <bruno@clisp.org>
48612
48613         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
48614         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
48615         gl_LOCK_BODY.
48616         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
48617         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
48618         gl_LOCK_EARLY_BODY.
48619         (gl_LOCK): Require gl_LOCK_BODY.
48620
48621 2006-10-04  Bruno Haible  <bruno@clisp.org>
48622
48623         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
48624         (gl_oset_search_atleast): New declaration.
48625         (struct gl_oset_implementation): Add field 'search_atleast'.
48626         (gl_oset_search_atleast): New inline function.
48627         * lib/gl_oset.c (gl_oset_search_atleast): New function.
48628         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
48629         (gl_array_oset_implementation): Update.
48630         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
48631         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
48632         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
48633
48634 2006-10-04  Bruno Haible  <bruno@clisp.org>
48635
48636         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
48637
48638 2006-10-03  Bruno Haible  <bruno@clisp.org>
48639
48640         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
48641         from gl_avltreehash_list_implementation.
48642
48643 2006-10-03  Bruno Haible  <bruno@clisp.org>
48644
48645         * lib/gl_oset.c (gl_oset_add): Fix return type.
48646
48647 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
48648
48649         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
48650
48651 2006-10-02  Eric Blake  <ebb9@byu.net>
48652
48653         * modules/strnlen (Depends-on): Add extensions.
48654
48655 2006-10-02  Eric Blake  <ebb9@byu.net>
48656
48657         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
48658         definition in 2.60+.
48659
48660 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
48661
48662         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
48663         checks.
48664
48665 2006-10-02  Bruno Haible  <bruno@clisp.org>
48666
48667         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
48668         to the AUTOMAKE_OPTIONS.
48669         Reported by Jim Meyering.
48670
48671 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
48672
48673         Work around bug in Solaris 10 /proc file system:
48674         /proc/self/fd/NNN/.. isn't the parent directory of
48675         the directory whose file descriptor is NNN.  This needs to
48676         be worked around at run time, not compile time, since a
48677         program might be built on Solaris 8, where things work, and
48678         run on Solaris 10.
48679         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
48680         to use the following interface instead:
48681         (OPENAT_BUFFER_SIZE): New macro.
48682         (openat_proc_name): New function.
48683         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
48684         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
48685         Likewise.
48686         * lib/openat-proc.c: New file.
48687         * modules/openat (Files): Add lib/openat-proc.c.
48688         (Depends-on): Add same-inode, stdbool.
48689         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
48690
48691 2006-09-29  Bruno Haible  <bruno@clisp.org>
48692
48693         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
48694         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
48695         argument. Set stdout_closed before testing for ferror, not after.
48696         (fwriteerror, fwriteerror_no_ebadf): New functions.
48697
48698 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48699
48700         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
48701
48702 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
48703
48704         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
48705         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
48706
48707 2006-09-28  Jim Meyering  <jim@meyering.net>
48708
48709         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
48710         Include <unistd.h>.
48711
48712 2006-09-28  Bruno Haible  <bruno@clisp.org>
48713
48714         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
48715         * modules/linkedhash-list (Depends-on): Likewise.
48716         * modules/rbtreehash-list (Depends-on): Likewise.
48717
48718 2006-09-28  Bruno Haible  <bruno@clisp.org>
48719
48720         * lib/strndup.h: Simplify the redefinition of strndup.
48721         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
48722         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
48723
48724 2006-09-28  Bruno Haible  <bruno@clisp.org>
48725
48726         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
48727         * lib/gl_linkedhash_list.c: Likewise.
48728         * lib/gl_rbtreehash_list.c: Likewise.
48729
48730 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
48731
48732         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
48733         getaddrinfo.
48734
48735         * lib/__fpending.h: Don't include <stdio_ext.h> unless
48736         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
48737         it causes <stdio_ext.h> to cause a compile-time error.
48738         Problem reported by Nelson H. F. Beebe.
48739         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
48740         of HAVE_DECL___PENDING.
48741
48742         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
48743         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
48744         declaration.
48745
48746 2006-09-27  Jim Meyering  <jim@meyering.net>
48747
48748         This file could end up with a definition for a function
48749         named __strndup, rather than rpl_strndup on a system with
48750         incomplete weak_alias support.
48751         * lib/strndup.c (strndup): Rename from __strndup.
48752         Remove #defines that used to map __strndup to strndup.
48753         Don't use K&R prototypes.
48754         Remove LIBC-related code, since this file is not sync'd with glibc.
48755         * lib/strndup.h: Revamp, accordingly.
48756         * m4/strndup.m4: Modernize.
48757
48758 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
48759
48760         * modules/savewd (Depends-on): Add 'raise'.
48761         * lib/savewd.c: Include <signal.h>, for 'raise'.
48762
48763 2006-09-26  Jim Meyering  <jim@meyering.net>
48764
48765         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
48766         when we detect Darwin 8.7.0's acl_get_file bug.
48767         Rearrange to perform the new (below) run-test while $LIBS
48768         contains any acl-related library.  Set USE_ACL at the end.
48769         (gl_ACL_GET_FILE): New function.
48770
48771 2006-09-26  Eric Blake  <ebb9@byu.net>
48772
48773         * lib/verror.c: Include <config.h> unconditionally.
48774
48775 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
48776
48777         * modules/clock-time (Maintainer): Add self.
48778         * modules/getlogin_r (Depends-on): Add extensions.
48779
48780 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48781
48782         * modules/clock-time: New module.
48783         * modules/nanosleep (Depends-on): Add clock-time.
48784         * modules/gethrxtime (Depends-on): Likewise.
48785         * modules/gettime (Depends-on): Likewise.
48786         * modules/settime (Depends-on): Likewise.
48787
48788         * modules/fts-lgpl: Depend on openat.
48789         * modules/mkancesdirs: Depend on savewd.
48790         * modules/mkdir-p: Likewise.
48791
48792 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48793
48794         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
48795
48796         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
48797         `gl_have_arbitrary_file_name_length_limit' to
48798         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
48799         actually works between configure runs.
48800
48801 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48802             Bruno Haible  <bruno@clisp.org>
48803
48804         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
48805
48806 2006-09-25  Jim Meyering  <jim@meyering.net>
48807
48808         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
48809         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
48810
48811 2006-09-25  Eric Blake  <ebb9@byu.net>
48812
48813         * gnulib-tool (func_import, func_create_testdir): Fix typos in
48814         exec's in 2006-09-18 patch when shuffling fds.
48815
48816 2006-09-25  Bruno Haible  <bruno@clisp.org>
48817
48818         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
48819         Reported by Jim Meyering.
48820
48821 2006-09-24  Jim Meyering  <jim@meyering.net>
48822
48823         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
48824         compare a pointer against a literal "0".  That caused failures with
48825         at least HP-UX's hpcc.
48826
48827 2006-09-22  Simon Josefsson  <jas@extundo.com>
48828
48829         * modules/gc-sha1:
48830         * modules/gc-md4:
48831         * modules/gc-hmac-sha1:
48832         * modules/gc-hmac-md5:
48833         * modules/gc-des:
48834         * modules/gc-arcfour: Distribute more files.
48835
48836 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48837
48838         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
48839         (gl_linked_iterator_from_to): Initialize struct completely.
48840         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
48841         (gl_tree_iterator_from_to): Likewise
48842         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
48843         * lib/gl_array_list.c [lint] (gl_array_iterator)
48844         (gl_array_iterator_from_to): Likewise.
48845         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
48846         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
48847         (gl_carray_iterator_from_to): Likewise.
48848
48849         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
48850         * lib/md4.c (md4_process_block): Remove unused variable.
48851         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
48852         parentheses for clarity.
48853
48854 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48855
48856         * modules/bison-i18n (Depends-on): Add gettext.
48857
48858 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48859
48860         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
48861         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
48862         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
48863         also add missing comma that caused broken test.
48864         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
48865         stdlib.h, for `abort'.
48866         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
48867         variables.
48868         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
48869         include unistd.h if present, for `rmdir'.
48870         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
48871         variables.
48872         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
48873         in the process include standard headers for prototypes.
48874         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
48875         gets declared on GNU/Linux.
48876         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
48877         unistd.h, for `rmdir'.
48878         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
48879
48880         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
48881         always true.
48882         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
48883
48884         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
48885
48886 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48887
48888         * gnulib-tool (func_version): Create output all at once.  This
48889         may help avoid triggering unnecessary SIGPIPEs, and at any
48890         rate it doesn't hurt.
48891
48892 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48893             Bruno Haible  <bruno@clisp.org>
48894
48895         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
48896         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
48897         * m4/signed.m4 (bh_C_SIGNED): Likewise.
48898
48899         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
48900         (gl_FUNC_VASPRINTF): Invoke it.
48901
48902 2006-09-22  Bruno Haible  <bruno@clisp.org>
48903
48904         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
48905         getloadavg.c as first argument.
48906
48907 2006-09-22  Bruno Haible  <bruno@clisp.org>
48908
48909         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
48910         at the beginning of the gl_INIT macro.
48911         * modules/getloadavg (configure.ac): Pass $gl_source_base to
48912         gl_GETLOADAVG.
48913
48914 2006-09-22  Bruno Haible  <bruno@clisp.org>
48915
48916         * gnulib-tool (func_create_megatestdir): Don't include the config-h
48917         module.
48918         Suggested by Ralf Wildenhues.
48919
48920 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
48921
48922         Import this patch from libc:
48923
48924         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
48925
48926         * lib/regex_internal.c (re_string_reconstruct): Handle
48927         offset < pstr->valid_raw_len && pstr->offsets_needed case.
48928         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
48929         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
48930         re_string_context_at.
48931
48932         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
48933         now requires it.
48934         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
48935         gl_REGEX now does it for us.
48936         (gl_REGEX): Add test taken from
48937         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
48938
48939         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
48940         Check that large offsets work.  Modernize Autoconf usages.
48941         Prefer "yes" to mean a good thing rather than a bad.
48942         Don't put "#define mkstemp" in config.h, as this might interfere
48943         with standard system headers that "#define mkstemp mkstemp64".
48944
48945         * modules/mkstemp (Depends-on): Add extensions, so that
48946         mkstemp is visible on some platforms.
48947         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
48948         (Include): Change to "mkstemp.h" from <stdlib.h>.
48949         (Files): Add mkstemp.h.
48950
48951         * lib/mkstemp.h: New file, since some standard headers
48952         #define mkstemp.
48953         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
48954         Include "mkstemp.h".
48955         Make the _LIBC code resemble glibc original more,
48956         e.g., use K&R style.
48957         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
48958         (mkstemp): Remove, since mkstemp.h does this for us.
48959         * lib/stdlib--.h: Include mkstemp.h.
48960
48961         Import this patch from libc:
48962
48963         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
48964
48965         * lib/tempname.c (__gen_tempname): Change attempts_min
48966         into a macro.  Use preprocessor to decide how to initialize
48967         attempts [Coverity CID 67].
48968
48969 2006-09-20  Bruno Haible  <bruno@clisp.org>
48970
48971         * lib/mkdtemp.c: Import from libc.
48972         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
48973                 * sysdeps/posix/tempname.c (__gen_tempname): Change
48974                 attempts_min into a macro.  Use preprocessor to decide how to
48975                 initialize attempts [Coverity CID 67].
48976         2001-11-27  Paul Eggert  <eggert@twinsun.com>
48977                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
48978                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
48979
48980 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48981
48982         * gnulib-tool (func_exit): New function, to allow to pass the
48983         exit status portably through the trap.  Use everywhere.
48984         (--help, --version): Signal a write error.
48985         (trap): catch SIGPIPE, for write errors.
48986         Exit at the end of the trap, with the correct exit status.
48987
48988 2006-09-19  Karl Berry  <karl@gnu.org>
48989
48990         * doc/gnulib.texi: note about the license texinfo files.
48991
48992 2006-09-19  Eric Blake  <ebb9@byu.net>
48993
48994         * gnulib-tool: Avoid space-tab.
48995
48996 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
48997
48998         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
48999         that prevented coreutils 6.1 from building.  Problem reported
49000         by Petter Reinholdtsen.
49001
49002 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
49003
49004         * gnulib-tool (avoidlist): Fix typo that broke options like
49005         --avoid=lock that are used by coreutils bootstrap.
49006
49007 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
49008
49009         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
49010         more systematically.
49011
49012 2006-09-18  Jim Meyering  <jim@meyering.net>
49013
49014         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
49015
49016 2006-09-18  Bruno Haible  <bruno@clisp.org>
49017
49018         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
49019
49020 2006-09-18  Bruno Haible  <bruno@clisp.org>
49021
49022         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
49023         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
49024         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
49025         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
49026         * m4/gettext.m4: Require autoconf >= 2.52.
49027         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
49028         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
49029         of gl_cv_header_inttypes_h.
49030
49031 2006-09-18  Bruno Haible  <bruno@clisp.org>
49032
49033         * lib/javaversion.c: Include configmake.h.
49034
49035 2006-09-18  Bruno Haible  <bruno@clisp.org>
49036
49037         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
49038         avoid that the while loops be executed in a subshell.
49039
49040 2006-09-18  Bruno Haible  <bruno@clisp.org>
49041
49042         * MODULES.html.sh (func_module): Break long lines.
49043         Suggested by Bruce Korb <bkorb@gnu.org>.
49044
49045 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49046
49047         Speed up by a factor of 1.12.
49048         * gnulib-tool (nl): New variable.
49049         (func_import): Rewrite include directive extraction to only read each
49050         directive once.
49051
49052 2006-09-17  Bruno Haible  <bruno@clisp.org>
49053
49054         * modules/javaversion (Makefile.am): Remove DEFS setting.
49055         (Depends-on): Add configmake, for PKGDATADIR definition.
49056
49057 2006-09-17  Bruno Haible  <bruno@clisp.org>
49058
49059         * gnulib-tool (func_create_testdir): Rewrite all files at once.
49060
49061 2006-09-17  Bruno Haible  <bruno@clisp.org>
49062
49063         * gnulib-tool (func_append): New function, stolen from libtool.m4.
49064         (func_modules_transitive_closure, func_modules_add_dummy,
49065         func_modules_to_filelist, func_import, func_create_testdir,
49066         func_create_megatestdir, ...): Use it wherever possible.
49067         Suggested by Ralf Wildenhues.
49068
49069 2006-09-16  Karl Berry  <karl@gnu.org>
49070
49071         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
49072         to avoid sectioning errors.
49073         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
49074         [ifinfo]: blank line after @center-ed titles.
49075         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
49076         Spell FSF address consistently with others.
49077         (These changes approved by rms.)
49078
49079 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49080
49081         Speed up by a factor of 1.61.
49082         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
49083         already checked module names again.
49084
49085 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49086
49087         Speed up by a factor of 1.13.
49088         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
49089         for new_files, and the input to func_add_or_update.
49090
49091 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49092
49093         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
49094         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
49095
49096 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
49097
49098         * modules/mkancesdirs (Depends-on): Add fcntl.
49099         * modules/savewd: New file.
49100         * MODULES.html.sh (File system functions): Add savewd.
49101
49102         * modules/configmake (Makefile.am): Add support for the
49103         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
49104
49105 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
49106
49107         * m4/savewd.m4: New file.
49108
49109 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
49110
49111         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
49112         (dirchownmod): New arg FD.  All callers changed.
49113         Use FD rather than opening the directory ourself, as opening is
49114         now the caller's responsibility.
49115         * lib/dirchownmod.h: Likewise.
49116         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
49117         hosts that require <sys/types.h> before <sys/stat.h>.  Include
49118         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
49119         (test_dir): Remove.
49120         (mkancesdirs): Return length of prefix of FILE that has already
49121         been made, or -2 if there is a child doing the work.  Redo
49122         algorithm so that it is O(N) rather than O(N**2).  Optimize away
49123         ".", and treat ".." specially since it might stray back into
49124         already-created areas.  Use a subprocess if necessary.  New arg
49125         WD; all users changed.  MAKE_DIR function should now return 1
49126         if it creates a directory that is not readable.  Return -2 if
49127         a child process is spun off.
49128         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
49129         Adjust signature to match code.
49130         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
49131         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
49132         all users changed.
49133         * lib/savewd.c, lib/savewd.h: New files.
49134
49135 2006-09-15  Jim Meyering  <jim@meyering.net>
49136
49137         * modules/rename-dest-slash: New module.
49138         * MODULES.html.sh (posix_compat): Add it here.
49139
49140         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
49141
49142 2006-09-15  Jim Meyering  <jim@meyering.net>
49143
49144         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
49145         file.
49146
49147         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
49148
49149 2006-09-15  Jim Meyering  <jim@meyering.net>
49150
49151         * lib/rename-dest-slash.c (has_trailing_slash): Use
49152         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
49153         (rpl_rename_dest_slash): Perform the cheaper trailing slash
49154         test before testing whether SRC is a directory.
49155         Suggestions from Bruno Haible.
49156
49157         Avoid a warning about an unused variable.
49158         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
49159         into the #ifdef block where it's used.
49160
49161         * lib/rename-dest-slash.c: New file.
49162
49163 2006-09-14  Bruno Haible  <bruno@clisp.org>
49164
49165         * lib/allocsa.c: Include <config.h> unconditionally.
49166         * lib/asnprintf.c: Likewise.
49167         * lib/asprintf.c: Likewise.
49168         * lib/c-strcasecmp.c: Likewise.
49169         * lib/c-strcasestr.c: Likewise.
49170         * lib/c-strncasecmp.c: Likewise.
49171         * lib/c-strstr.c: Likewise.
49172         * lib/classpath.c: Likewise.
49173         * lib/clean-temp.c: Likewise.
49174         * lib/concatpath.c: Likewise.
49175         * lib/copy-file.c: Likewise.
49176         * lib/csharpcomp.c: Likewise.
49177         * lib/csharpexec.c: Likewise.
49178         * lib/execute.c: Likewise.
49179         * lib/fatal-signal.c: Likewise.
49180         * lib/findprog.c: Likewise.
49181         * lib/fwriteerror.c: Likewise.
49182         * lib/gl_array_list.c: Likewise.
49183         * lib/gl_array_oset.c: Likewise.
49184         * lib/gl_avltree_list.c: Likewise.
49185         * lib/gl_avltree_oset.c: Likewise.
49186         * lib/gl_avltreehash_list.c: Likewise.
49187         * lib/gl_carray_list.c: Likewise.
49188         * lib/gl_linked_list.c: Likewise.
49189         * lib/gl_linkedhash_list.c: Likewise.
49190         * lib/gl_list.c: Likewise.
49191         * lib/gl_oset.c: Likewise.
49192         * lib/gl_rbtree_list.c: Likewise.
49193         * lib/gl_rbtree_oset.c: Likewise.
49194         * lib/gl_rbtreehash_list.c: Likewise.
49195         * lib/imaxabs.c: Likewise.
49196         * lib/imaxdiv.c: Likewise.
49197         * lib/javacomp.c: Likewise.
49198         * lib/javaexec.c: Likewise.
49199         * lib/javaversion.c: Likewise.
49200         * lib/linebreak.c: Likewise.
49201         * lib/localcharset.c: Likewise.
49202         * lib/lock.c: Likewise.
49203         * lib/mbchar.c: Likewise.
49204         * lib/mbswidth.c: Likewise.
49205         * lib/mkdtemp.c: Likewise.
49206         * lib/pipe.c: Likewise.
49207         * lib/printf-args.c: Likewise.
49208         * lib/printf-parse.c: Likewise.
49209         * lib/progname.c: Likewise.
49210         * lib/progreloc.c: Likewise.
49211         * lib/readlink.c: Likewise.
49212         * lib/sh-quote.c: Likewise.
49213         * lib/stpcpy.c: Likewise.
49214         * lib/stpncpy.c: Likewise.
49215         * lib/strcasecmp.c: Likewise.
49216         * lib/strcasestr.c: Likewise.
49217         * lib/strcspn.c: Likewise.
49218         * lib/striconv.c: Likewise.
49219         * lib/strncasecmp.c: Likewise.
49220         * lib/strnlen1.c: Likewise.
49221         * lib/strstr.c: Likewise.
49222         * lib/strtok_r.c: Likewise.
49223         * lib/tls.c: Likewise.
49224         * lib/tmpdir.c: Likewise.
49225         * lib/unicodeio.c: Likewise.
49226         * lib/unsetenv.c: Likewise.
49227         * lib/vasnprintf.c: Likewise.
49228         * lib/vasprintf.c: Likewise.
49229         * lib/wait-process.c: Likewise.
49230         * lib/xallocsa.c: Likewise.
49231         * lib/xsetenv.c: Likewise.
49232         * lib/xstriconv.c: Likewise.
49233
49234 2006-09-13  Simon Josefsson  <jas@extundo.com>
49235
49236         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
49237         that internally, suggested by Ralf Wildenhues
49238         <Ralf.Wildenhues@gmx.de>.
49239
49240 2006-09-13  Simon Josefsson  <jas@extundo.com>
49241
49242         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
49243         @LIBOBJS@.
49244         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
49245
49246 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
49247
49248         * lib/_fpending.c: Include <config.h> unconditionally, since we no
49249         longer worry about uses that don't define HAVE_CONFIG_H.
49250         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
49251         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
49252         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
49253         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
49254         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
49255         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
49256         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
49257         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
49258         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
49259         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
49260         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
49261         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
49262         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
49263         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
49264         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
49265         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
49266         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
49267         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
49268         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
49269         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
49270         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
49271         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
49272         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
49273         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
49274         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
49275         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
49276         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
49277         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
49278         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
49279         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
49280         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
49281         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
49282         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
49283         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
49284         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
49285         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
49286         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
49287         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
49288         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
49289         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
49290         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
49291         Likewise.
49292
49293 2006-09-13  Eric Blake  <ebb9@byu.net>
49294
49295         * lib/getopt.c: Fix typo in last commit.
49296
49297 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
49298
49299         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
49300         dgettext.
49301
49302 2006-09-12  Jim Meyering  <jim@meyering.net>
49303
49304         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
49305         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
49306         Reported by Nelson H. F. Beebe.
49307
49308 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
49309
49310         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
49311         program_invocation_name and program_invocation_short_name are
49312         initialized.
49313         * lib/argp-namefrob.h: Move declarations of program_invocation_name
49314         and program_invocation_short_name to argp.h, so they are visible
49315         to user programs.
49316         * lib/argp.h: Likewise
49317
49318 2006-09-10  Bruno Haible  <bruno@clisp.org>
49319
49320         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
49321         m4/inttypes_h.m4, m4/uintmax_t.m4.
49322
49323 2006-09-10  Bruno Haible  <bruno@clisp.org>
49324
49325         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
49326         gl_AC_TYPE_UINTMAX_T.
49327
49328 2006-09-10  Bruno Haible  <bruno@clisp.org>
49329
49330         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
49331
49332 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
49333
49334         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
49335         convention.  Text proposed by Bruno Haible.
49336         (struct argp_option): Document the use of N_() wrappers.
49337
49338         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
49339         '\v', and translate the two parts separately, instead of feeding
49340         the whole string to gettext.  This allows to exclude
49341         '\v' from the strings visible to the translator by writing doc
49342         strings as N_("..") "\v" N_("..").
49343
49344 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
49345
49346         * config/srclist.txt: Undo latest change; the bug was fixed.
49347
49348 2006-09-09  Bruno Haible  <bruno@clisp.org>
49349
49350         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
49351         assignments if building a library without libtool.
49352         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
49353         in func_emit_lib_Makefile_am.
49354         (func_import): When building a static library libfoo.a, arrange to
49355         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
49356         (func_create_testdir): Likewise.
49357         * modules/gc (configure.ac, Makefile.am): If building statically,
49358         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
49359         * modules/iconvme (configure.ac, Makefile.am): Likewise.
49360         * modules/striconv (configure.ac, Makefile.am): Likewise.
49361         Based on a suggestion by Ralf Wildenhues.
49362
49363 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49364
49365         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
49366         Check for unistd.h too, since Autoconf doesn't assume POSIX.
49367         Also:
49368
49369         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49370         Add year_2050_test to catch glibc bug 2821
49371         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
49372
49373         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
49374         Prefer #ifdef to #if.
49375
49376         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
49377         Return from 'main' instead of calling 'exit'.
49378
49379 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49380
49381         * lib/mktime.c (guess_time_tm): Fix bug where mktime
49382         returned the maximum time_t value rather than (time_t) -1.
49383         Problem originally reported by William Bardwell
49384         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
49385
49386         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
49387         Moved to here ...
49388         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
49389         ... from here.
49390
49391 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
49392
49393         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
49394         2821 is fixed.
49395
49396 2006-09-08  Jim Meyering  <jim@meyering.net>
49397
49398         Don't make generated files read-only.  That would bother too many
49399         people.  However, do retain the ability to work when targets are
49400         read-only: remove the destination and temporary files before writing
49401         them (when generated via sed or echo), or by using the -f option for
49402         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
49403         * modules/alloca-opt, modules/argz, modules/arpa_inet:
49404         * modules/byteswap, modules/configmake, modules/fcntl:
49405         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
49406         * modules/localcharset, modules/netinet_in, modules/poll:
49407         * modules/stdbool, modules/stdint, modules/sys_select:
49408         * modules/sys_socket, modules/sys_stat, modules/sysexits:
49409
49410 2006-09-08  Jim Meyering  <jim@meyering.net>
49411
49412         Avoid new build failure on FreeBSD 6.0.
49413         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
49414         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
49415         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
49416
49417 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49418
49419         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
49420
49421 2006-09-07  Jim Meyering  <jim@meyering.net>
49422
49423         Fix global typo in last change: use chmod u-w, not chmod u-x.
49424         Spotted by Paul Eggert and Bruce Korb.
49425         * modules/alloca-opt, modules/argz, modules/arpa_inet:
49426         * modules/byteswap, modules/configmake, modules/fcntl:
49427         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
49428         * modules/localcharset, modules/netinet_in, modules/poll:
49429         * modules/stdbool, modules/stdint, modules/sys_select:
49430         * modules/sys_socket, modules/sys_stat, modules/sysexits:
49431
49432 2006-09-06  Jim Meyering  <jim@meyering.net>
49433
49434         Make generated files be read-only.
49435         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
49436         Ensure that each generated file is now read-only.
49437         * modules/argz: Likewise.
49438         * modules/arpa_inet: Likewise.
49439         * modules/byteswap: Likewise.
49440         * modules/configmake: Likewise.
49441         * modules/fcntl: Likewise.
49442         * modules/fnmatch: Likewise.
49443         * modules/getopt: Likewise.
49444         * modules/glob: Likewise.
49445         * modules/inttypes: Likewise.
49446         * modules/netinet_in: Likewise.
49447         * modules/poll: Likewise.
49448         * modules/stdbool: Likewise.
49449         * modules/stdint: Likewise.
49450         * modules/sys_select: Likewise.
49451         * modules/sys_socket: Likewise.
49452         * modules/sys_stat: Likewise.
49453         * modules/sysexits: Likewise.
49454         * modules/localcharset: Same as above, but continue using temporary
49455         file named "t-$@" (why different?) rather than the "$@-t" used
49456         everywhere else.
49457
49458         * modules/sysexits (Makefile.am): Replace literal occurrences
49459         of "sysexit.h" more readable, and more consistent, "$@".
49460
49461 2006-09-06  Bruno Haible  <bruno@clisp.org>
49462
49463         * modules/striconv: New file.
49464         * modules/xstriconv: New file.
49465         * MODULES.html.sh (Internationalization functions): Add striconv,
49466         xstriconv.
49467
49468 2006-09-06  Bruno Haible  <bruno@clisp.org>
49469
49470         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
49471         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
49472         not using libtool correctly.
49473
49474 2006-09-06  Bruno Haible  <bruno@clisp.org>
49475
49476         * lib/striconv.h: New file.
49477         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
49478         iconvstring.c.
49479         * lib/xstriconv.h: New file.
49480         * lib/xstriconv.c: New file.
49481
49482 2006-09-06  Bruno Haible  <bruno@clisp.org>
49483
49484         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
49485         lib_..._LDFLAGS.
49486
49487 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49488
49489         * lib/argz_.h: Sync from Libtool.
49490
49491         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
49492                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
49493
49494         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
49495
49496 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
49497
49498         * modules/trim: New file.
49499
49500 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
49501
49502         * lib/trim.h: New file.
49503         * lib/trim.c: New file.
49504
49505 2006-09-05  Bruno Haible  <bruno@clisp.org>
49506
49507         * MODULES.html.sh (String handling): Add trim.
49508
49509 2006-09-04  Karl Berry  <karl@gnu.org>
49510
49511         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
49512         until next release.
49513
49514 2006-09-03  Bruno Haible  <bruno@clisp.org>
49515
49516         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
49517         correctly.
49518
49519 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
49520
49521         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
49522         not gl_GETLOADAVG.  Omit unneeded semicolons.
49523         Problems reported by Ralf Wildenhues in
49524         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
49525         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
49526         at the end, which is the usual gnulib style.
49527
49528         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
49529         of doing all the work ourselves.
49530         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
49531         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
49532
49533 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
49534
49535         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
49536         Problem reported by Ralf Wildenhues in
49537         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
49538
49539         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
49540         HAVE_STRUCT_STATFS_F_FSTYPENAME.
49541
49542 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
49543
49544         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
49545         yesterday's patch by changing test -n to test -z.
49546
49547 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49548
49549         * modules/getloadavg (Files): Add m4/getloadavg.m4.
49550         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
49551         the former is now obsolescent.
49552
49553         * modules/chdir-long (Depends-on): Add fcntl.
49554
49555 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49556
49557         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
49558         obsolescent, and programs should use gnulib instead.
49559         * m4/getloadavg.m4: New file, with contents taken from Autoconf
49560         but with prefixes changed.
49561
49562 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49563
49564         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
49565         or stdbool.h, because they might not exist while configuring.
49566
49567         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
49568         Don't include unistd.h or limits.h; not needed, since chdir-long.h
49569         does that for us.
49570         (O_DIRECTORY): Remove.
49571
49572 2006-08-31  Eric Blake  <ebb9@byu.net>
49573
49574         * gnulib-tool: Don't let emacs change spaces to TAB.
49575
49576 2006-08-31  Bruno Haible  <bruno@clisp.org>
49577
49578         * gnulib-tool: When calling func_import more than once, do it in a
49579         subshell.
49580         Reported by Eric Blake <ebb9@byu.net>.
49581
49582 2006-08-31  Bruno Haible  <bruno@clisp.org>
49583
49584         * gnulib-tool (nl): Remove variable.
49585         (sed_transform_lib_file): Use more robust test for config-h module.
49586         (func_import): Fix typo in 2006-08-25 patch.
49587
49588 2006-08-31  Bruno Haible  <bruno@clisp.org>
49589
49590         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
49591         specified, augment Makefile.am variables instead of assigning them.
49592
49593 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
49594
49595         Work around a bug in both the Linux and SunOS 64-bit kernels:
49596         nanosleep mishandles sleeps for longer than 2**31 seconds.
49597         Problem reported by Frank v Waveren in
49598         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
49599         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
49600         Check for nanosleep bug.
49601         (LIB_NANOSLEEP): Append clock_gettime library if needed.
49602
49603 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
49604
49605         Work around a bug in both the Linux and SunOS 64-bit kernels:
49606         nanosleep mishandles sleeps for longer than 2**31 seconds.
49607         Problem reported by Frank v Waveren in
49608         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
49609         * lib/nanosleep.c (BILLION): New constant.
49610         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
49611         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
49612         implementation.
49613
49614 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
49615
49616         * modules/nanosleep (Depends-on): Add gettime.
49617
49618 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
49619         and Simon Josefsson  <jas@extundo.com>
49620         and Oskar Liljeblad  <oskar@osk.mine.nu>
49621
49622         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
49623         * gnulib-tool (func_import): New license type 'unmodifiable license
49624         text'.
49625         * modules/fdl: Use it.  Longer description.
49626         * module/gpl, module/lgpl: New files.
49627
49628 2006-08-30  Jim Meyering  <jim@meyering.net>
49629
49630         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
49631         shadowing the parameter.
49632
49633 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49634
49635         Sync from Libtool:
49636
49637         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49638
49639         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
49640         sharing with gnulib.  Report by Eric Blake.
49641
49642 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
49643
49644         * modules/isapipe: New file.
49645         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
49646
49647 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
49648
49649         * modules/configmake (Makefile.am): Add a comment, and omit
49650         the CONFIGMAKE_ prefix from generated macro names.  Suggested
49651         by Bruno Haible.
49652
49653 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
49654
49655         * m4/isapipe.m4: New file.
49656
49657 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
49658
49659         * lib/isapipe.c, lib/isapipe.h: New files.
49660
49661 2006-08-29  Jim Meyering  <jim@meyering.net>
49662
49663         * modules/configmake (Makefile.am): Make configmake.h depend on
49664         Makefile.  Otherwise, a stale configmake.h could hang around.
49665
49666 2006-08-29  Eric Blake  <ebb9@byu.net>
49667
49668         * lib/error.c (error_at_line, print_errno_message): Match libc, after
49669         resolution of upstream bug 3044.
49670
49671 2006-08-29  Bruno Haible  <bruno@clisp.org>
49672
49673         * modules/localcharset (Depends-on): Add configmake.
49674         (Makefile.am): Remove setting of LIBDIR through DEFS.
49675
49676 2006-08-29  Bruno Haible  <bruno@clisp.org>
49677
49678         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
49679         defined.
49680
49681 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
49682
49683         * modules/fcntl: New file.
49684         * modules/chdir-safer (Depends-on): Add fcntl.
49685         * modules/fts: Likewise.
49686         * modules/mkdir-p: Likewise.
49687
49688         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
49689         This undoes the most recent change, since we're now addressing the
49690         problem in a different way.
49691
49692         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
49693         into output, since the output might be called Makefile.am even
49694         if $makefile_name is something different.
49695         (func_import): Use $makefile_am rather than
49696         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
49697         empty.
49698
49699         * modules/inttypes (Files): Add m4/inttypes-h.m4.
49700
49701 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
49702
49703         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
49704         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
49705         recent change to stdint.m4, since we're now addressing the problem in a
49706         different way.
49707
49708 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
49709
49710         * m4/fcntl_h.m4: New file.
49711
49712 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
49713
49714         * lib/fcntl_.h: New file.
49715         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
49716         the fcntl module.
49717         * lib/dirchownmod.c: Likewise.
49718         * lib/fts.c: Likewise.
49719
49720         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
49721         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
49722         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
49723         just before including <inttypes.h>, to avoid circular inclusion.
49724
49725 2006-08-28  Jim Meyering  <jim@meyering.net>
49726
49727         * doc/visibility.texi: Actually read and correct the grammar of the
49728         sentence affected by yesterday's change.
49729
49730 2006-08-28  Eric Blake  <ebb9@byu.net>
49731
49732         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
49733         needs wrapper.
49734
49735 2006-08-28  Eric Blake  <ebb9@byu.net>
49736
49737         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
49738
49739 2006-08-28  Eric Blake  <ebb9@byu.net>
49740
49741         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
49742
49743 2006-08-28  Bruno Haible  <bruno@clisp.org>
49744
49745         * modules/c-strstr: New file, from GNU gettext.
49746         * MODULES.html.sh (String handling): Add c-strstr.
49747
49748 2006-08-28  Bruno Haible  <bruno@clisp.org>
49749
49750         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
49751         macros.
49752         Reported by Eric Blake.
49753
49754 2006-08-28  Bruno Haible  <bruno@clisp.org>
49755
49756         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
49757         (VASNPRINTF): Return a string of length > INT_MAX without failing.
49758         * lib/vasprintf.c: Include errno.h, limits.h.
49759         (EOVERFLOW): New fallback definition.
49760         (vasprintf): Test here whether the string length is > INT_MAX.
49761         * lib/vsnprintf.c: Include errno.h, limits.h.
49762         (EOVERFLOW): New fallback definition.
49763         (vsnprintf): Fix bug when generated string was too long for the buffer.
49764         Test here whether the string length is > INT_MAX.
49765
49766 2006-08-28  Bruno Haible  <bruno@clisp.org>
49767
49768         * lib/inttypes_.h (SCNX*): Remove definitions.
49769         Reported by Eric Blake.
49770
49771 2006-08-28  Bruno Haible  <bruno@clisp.org>
49772
49773         * lib/c-strstr.h: New file, from GNU gettext.
49774         * lib/c-strstr.c: New file, from GNU gettext.
49775
49776 2006-08-28  Bruno Haible  <bruno@clisp.org>
49777
49778         * gnulib-tool: Reorder some statements.
49779
49780 2006-08-28  Bruno Haible  <bruno@clisp.org>
49781
49782         * gnulib-tool: New option --makefile-name.
49783         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
49784         $makefile_name.
49785         (func_import): Write $makefile_name to the cache file, and read it from
49786         there unless explicitly specified. Use $makefile_name as file name
49787         instead of Makefile.am. Adjust the recommendations accordingly.
49788
49789 2006-08-28  Bruno Haible  <bruno@clisp.org>
49790
49791         * gnulib-tool (func_verify_module): Check against misapplying patch.
49792
49793 2006-08-28  Bruno Haible  <bruno@clisp.org>
49794
49795         * gnulib-tool (func_relativize, func_relconcat): New functions.
49796         Give an error if --local-dir is given with --update.
49797         Remove trailing slashes from $local_gnulib_dir.
49798         (func_import): Store the relativized $local_gnulib_dir in
49799         gnulib-cache.m4, and read it from there if not specified explicitly.
49800
49801 2006-08-28  Bruno Haible  <bruno@clisp.org>
49802
49803         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
49804         is the current directory. Respect also $local_gnulib_dir.
49805
49806 2006-08-28  Bruno Haible  <bruno@clisp.org>
49807             Simon Josefsson  <jas@extundo.com>
49808
49809         BeOS portability.
49810         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
49811
49812 2006-08-27  Jim Meyering  <jim@meyering.net>
49813
49814         * doc/visibility.texi: Remove duplicate word: "pointer".
49815
49816 2006-08-26  Bruno Haible  <bruno@clisp.org>
49817
49818         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
49819         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
49820         (Makefile.am): Create inttypes.h from inttypes_.h.
49821         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
49822
49823         * modules/imaxabs: New file.
49824
49825         * modules/imaxdiv: New file.
49826
49827 2006-08-26  Bruno Haible  <bruno@clisp.org>
49828
49829         * m4/inttypes.m4: New file.
49830         * m4/_inttypes_h.m4: Remove file.
49831         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
49832         PRI_MACROS_BROKEN.
49833         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
49834
49835         * m4/imaxabs.m4: New file.
49836
49837         * m4/imaxdiv.m4: New file.
49838
49839 2006-08-26  Bruno Haible  <bruno@clisp.org>
49840
49841         * lib/inttypes_.h: New file.
49842         * lib/inttypes.h: Remove file.
49843         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
49844
49845         * lib/imaxabs.c: New file.
49846
49847         * lib/imaxdiv.c: New file.
49848
49849 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49850
49851         New config-h module, so that "make" output needn't be cluttered
49852         by -DHAVE_CONFIG_H.
49853         * MODULES.html.sh (Support for building libraries and executables):
49854         Add config-h.
49855         * modules/config-h: New file.
49856         * gnulib-tool (nl, sed_transform_lib_file): New vars.
49857         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
49858         the config-h module is used.
49859
49860         New configmake module, so that "make" output needn't be cluttered
49861         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
49862         * MODULES.html.sh (Support for building libraries and executables):
49863         Add configmake.
49864         * modules/configmake: New file.
49865
49866 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49867
49868         * m4/config-h.m4: New file.
49869
49870 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49871
49872         * config/srclist.txt: Add elisp-comp.
49873
49874 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49875
49876         * MODULES.html.sh (Support for building libraries and executables):
49877         Add elisp-comp.
49878         * build-aux/elisp-comp: New file.
49879         * modules/elisp-comp: New file.
49880
49881 2006-08-24  Bruno Haible  <bruno@clisp.org>
49882
49883         * gnulib-tool (func_create_testdir): Use non-default values of
49884         sourcebase and m4base.
49885
49886 2006-08-24  Bruno Haible  <bruno@clisp.org>
49887
49888         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
49889         HTML structure.
49890
49891 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
49892
49893         * modules/openat (Depends-on): Add lchown.
49894
49895 2006-08-23  Bruno Haible  <bruno@clisp.org>
49896
49897         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
49898         of gl_LOCK_EARLY instead of gl_LOCK.
49899
49900 2006-08-23  Bruno Haible  <bruno@clisp.org>
49901
49902         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
49903         on OSF/1 to no.
49904         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
49905
49906 2006-08-23  Bruno Haible  <bruno@clisp.org>
49907
49908         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
49909         as unusable.
49910
49911         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
49912         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
49913         (gl_LOCK): New macro.
49914
49915 2006-08-22  Simon Josefsson  <jas@extundo.com>
49916
49917         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
49918         to md5 module.
49919
49920 2006-08-22  Simon Josefsson  <jas@extundo.com>
49921
49922         * MODULES.html.sh: Add "Support for maintaining and release
49923         projects".
49924
49925         * build-aux/gnupload: New file, from coreutils.
49926
49927 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
49928
49929         Avoid the need for AC_LIBSOURCES in m4 macros.
49930         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
49931         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
49932         * modules/check-version (EXTRA_DIST): Add check-version.h.
49933         * modules/crc (EXTRA_DIST): Add crc.h.
49934         * modules/des (EXTRA_DIST): Add des.h.
49935         * modules/gc (EXTRA_DIST): Add gc.h.
49936         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
49937         * modules/getline (EXTRA_DIST): Add getline.h.
49938         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
49939         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
49940         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
49941         * modules/md2 (EXTRA_DIST): Add md2.h.
49942         * modules/md4 (EXTRA_DIST): Add md4.h.
49943         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
49944         * modules/read-file (EXTRA_DIST): Add read-file.h.
49945         * modules/readline (EXTRA_DIST): Add readline.h.
49946         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
49947         rijndael-api-fst.h.
49948
49949 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
49950
49951         * m4/rijndael.m4 (gl_ARCFOUR):
49952         * m4/arctwo.m4 (gl_ARCTWO):
49953         * m4/check-version.m4 (gl_CHECK_VERSION):
49954         * m4/crc.m4 (gl_CRC):
49955         * m4/des.m4 (gl_DES):
49956         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
49957         * m4/gc.m4 (gl_GC):
49958         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
49959         * m4/getline.m4 (gl_FUNC_GETLINE):
49960         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
49961         * m4/hmac-md5.m4 (gl_HMAC_MD5):
49962         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
49963         * m4/md2.m4 (gl_MD2):
49964         * m4/md4.m4 (gl_MD4):
49965         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
49966         * m4/read-file.m4 (gl_FUNC_READ_FILE):
49967         * m4/readline.m4 (gl_FUNC_READLINE):
49968         * m4/rijndael.m4 (gl_RIJNDAEL):
49969         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
49970         to get the necessary .h files and whatnot.
49971
49972 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
49973
49974         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
49975         gnulib rather than the other way around.
49976         * config/srclistvars.sh (COREUTILS): Remove.
49977
49978 2006-08-22  Jim Meyering  <jim@meyering.net>
49979
49980         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
49981
49982         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
49983
49984 2006-08-22  Eric Blake  <ebb9@byu.net>
49985
49986         * modules/regexprops-generic: New file.
49987         * MODULES.html.sh (Support for building documentation): List it.
49988
49989 2006-08-22  Eric Blake  <ebb9@byu.net>
49990
49991         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
49992         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
49993         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
49994         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
49995
49996 2006-08-22  Bruno Haible  <bruno@clisp.org>
49997
49998         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
49999         and lib_LTLIBRARIES like the other lib_* variables.
50000
50001 2006-08-22  Bruno Haible  <bruno@clisp.org>
50002
50003         * build-aux/x-to-1.in: New file, from GNU gettext.
50004
50005 2006-08-22  Bruno Haible  <bruno@clisp.org>
50006
50007         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
50008         <utmpx.h> exists.
50009
50010 2006-08-22  Bruno Haible  <bruno@clisp.org>
50011
50012         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
50013         <utmpx.h> exists.
50014
50015 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
50016
50017         BeOS portability.
50018         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
50019         exist.
50020         Problem reported by Bruno Haible.
50021
50022 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
50023
50024         Avoid the need for AC_LIBSOURCES in m4 macros.
50025         * modules/acl (EXTRA_DIST): Add acl.h.
50026         * modules/argmatch (Files): Add m4/argmatch.m4.
50027         (configure.ac): Add gl_ARGMATCH.
50028         (EXTRA_DIST): Renamed from lib_SOURCES, for
50029         consistency with the other modules.  Remove argmatch.c.
50030         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
50031         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
50032         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
50033         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
50034         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
50035         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
50036         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
50037         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
50038         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
50039         * modules/closeout (EXTRA_DIST): Add closeout.h.
50040         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
50041         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
50042         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
50043         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
50044         dirname.h; remove basename.c and stripslash.c.
50045         * modules/exclude (EXTRA_DIST): Add exclude.h.
50046         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
50047         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
50048         * modules/file-type (EXTRA_DIST): Add file-type.h.
50049         * modules/filemode (EXTRA_DIST): Add filemode.h.
50050         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
50051         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
50052         * modules/fpending (EXTRA_DIST): Add __fpending.h.
50053         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
50054         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
50055         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
50056         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
50057         * modules/getdate (EXTRA_DIST): Add getdate.c.
50058         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
50059         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
50060         * modules/getpass (EXTRA_DIST): Add getpass.h.
50061         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
50062         * modules/group-member (EXTRA_DIST): Add group-member.h.
50063         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
50064         * modules/hash (EXTRA_DIST): Add hash.h.
50065         * modules/human (EXTRA_DIST): Add human.h.
50066         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
50067         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
50068         * modules/lchown (EXTRA_DIST): Add lchown.h.
50069         * modules/long-options (EXTRA_DIST): Add long-options.h.
50070         * modules/lstat (EXTRA_DIST): Add lstat.h.
50071         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
50072         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
50073         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
50074         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
50075         * modules/memxor (EXTRA_DIST): Add memxor.h.
50076         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
50077         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
50078         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
50079         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
50080         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
50081         * modules/physmem (EXTRA_DIST): Add physmem.h.
50082         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
50083         * modules/posixver (EXTRA_DIST): Add posixver.h.
50084         * modules/quote (EXTRA_DIST): Add quote.h.
50085         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
50086         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
50087         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
50088         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
50089         regex_internal.h regexec.c.
50090         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
50091         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
50092         * modules/same (EXTRA_DIST): Add same.h.
50093         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
50094         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
50095         * modules/savedir (EXTRA_DIST): Add savedir.h.
50096         * modules/sha1 (EXTRA_DIST): Add sha1.h.
50097         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
50098         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
50099         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
50100         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
50101         * modules/strdup (EXTRA_DIST): Add strdup.h.
50102         * modules/strftime (EXTRA_DIST): Add strftime.h.
50103         * modules/strndup (EXTRA_DIST): Add strndup.h.
50104         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
50105         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
50106         * modules/time_r (EXTRA_DIST): Add time_r.h.
50107         * modules/timespec (EXTRA_DIST): Add timespec.h.
50108         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
50109         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
50110         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
50111         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
50112         * modules/userspec (EXTRA_DIST): Add userspec.h.
50113         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
50114         * modules/utimens (EXTRA_DIST): Add utimens.h.
50115         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
50116         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
50117         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
50118         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
50119         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
50120         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
50121         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
50122         * modules/yesno (EXTRA_DIST): Add yesno.h.
50123
50124 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
50125
50126         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
50127
50128         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
50129         * m4/dev-ino.m4, same-inode.m4: Remove.
50130
50131         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
50132         * m4/acl.m4 (AC_FUNC_ACL):
50133         * m4/backupfile.m4 (gl_BACKUPFILE):
50134         * m4/c-strtod.m4 (gl_C99_STRTOLD):
50135         * m4/canon-host.m4 (gl_CANON_HOST):
50136         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
50137         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
50138         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
50139         * m4/cloexec.m4 (gl_CLOEXEC):
50140         * m4/close-stream.m4 (gl_CLOSE_STREAM):
50141         * m4/closeout.m4 (gl_CLOSEOUT):
50142         * m4/dirfd.m4 (gl_FUNC_DIRFD):
50143         * m4/dirname.m4 (gl_DIRNAME):
50144         * m4/exclude.m4 (gl_EXCLUDE):
50145         * m4/exitfail.m4 (gl_EXITFAIL):
50146         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
50147         * m4/file-type.m4 (gl_FILE_TYPE):
50148         * m4/filemode.m4 (gl_FILEMODE):
50149         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
50150         * m4/fpending.m4 (gl_FUNC_FPENDING):
50151         * m4/fprintftime.m4 (gl_FPRINTFTIME):
50152         * m4/fts.m4 (gl_FUNC_FTS):
50153         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
50154         * m4/getdate.m4 (gl_GETDATE):
50155         * m4/gethrxtime.m4 (gl_GETHRXTIME):
50156         * m4/getpagesize.m4 (gl_GETPAGESIZE):
50157         * m4/getpass.m4 (gl_FUNC_GETPASS):
50158         * m4/gettime.m4 (gl_GETTIME):
50159         * m4/getugroups.m4 (gl_GETUGROUPS):
50160         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
50161         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
50162         * m4/hard-locale.m4 (gl_HARD_LOCALE):
50163         * m4/hash.m4 (gl_HASH):
50164         * m4/idcache.m4 (gl_IDCACHE):
50165         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
50166         * m4/lchown.m4 (gl_FUNC_LCHOWN):
50167         * m4/long-options.m4 (gl_LONG_OPTIONS):
50168         * m4/lstat.m4 (gl_FUNC_LSTAT):
50169         * m4/md5.m4 (gl_MD5):
50170         * m4/memcasecmp.m4 (gl_MEMCASECMP):
50171         * m4/memcoll.m4 (gl_MEMCOLL):
50172         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
50173         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
50174         * m4/memxor.m4 (gl_MEMXOR):
50175         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
50176         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
50177         * m4/modechange.m4 (gl_MODECHANGE):
50178         * m4/mountlist.m4 (gl_MOUNTLIST):
50179         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
50180         * m4/openat.m4 (gl_FUNC_OPENAT):
50181         * m4/pathmax.m4 (gl_PATHMAX):
50182         * m4/physmem.m4 (gl_PHYSMEM):
50183         * m4/posixtm.m4 (gl_POSIXTM):
50184         * m4/posixver.m4 (gl_POSIXVER):
50185         * m4/quote.m4 (gl_QUOTE):
50186         * m4/quotearg.m4 (gl_QUOTEARG):
50187         * m4/readtokens.m4 (gl_READTOKENS):
50188         * m4/readutmp.m4 (gl_READUTMP):
50189         * m4/regex.m4 (gl_REGEX):
50190         * m4/safe-read.m4 (gl_SAFE_READ):
50191         * m4/safe-write.m4 (gl_SAFE_WRITE):
50192         * m4/same.m4 (gl_SAME):
50193         * m4/save-cwd.m4 (gl_SAVE_CWD):
50194         * m4/savedir.m4 (gl_SAVEDIR):
50195         * m4/settime.m4 (gl_SETTIME):
50196         * m4/sha1.m4 (gl_SHA1):
50197         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
50198         * m4/stat-macros.m4 (gl_STAT_MACROS):
50199         * m4/stat-time.m4 (gl_STAT_TIME):
50200         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
50201         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
50202         * m4/strdup.m4 (gl_FUNC_STRDUP):
50203         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
50204         * m4/strndup.m4 (gl_FUNC_STRNDUP):
50205         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
50206         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
50207         * m4/time_r.m4 (gl_TIME_R):
50208         * m4/timespec.m4 (gl_TIMESPEC):
50209         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
50210         * m4/unlinkdir.m4 (gl_UNLINKDIR):
50211         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
50212         * m4/userspec.m4 (gl_USERSPEC):
50213         * m4/utimecmp.m4 (gl_UTIMECMP):
50214         * m4/utimens.m4 (gl_UTIMENS):
50215         * m4/xalloc.m4 (gl_XALLOC):
50216         * m4/xgetcwd.m4 (gl_XGETCWD):
50217         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
50218         * m4/xreadlink.m4 (gl_XREADLINK):
50219         * m4/xstrtod.m4 (gl_XSTRTOD):
50220         * m4/yesno.m4 (gl_YESNO):
50221         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
50222         to get the necessary .h files and whatnot.
50223
50224 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
50225             Bruno Haible  <bruno@clisp.org>
50226
50227         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
50228         /bin/sh understanding of '!' conditional negation.
50229
50230 2006-08-21  Jim Meyering  <jim@meyering.net>
50231
50232         * modules/openat (Depends-on): Really alphabetize.
50233
50234         * modules/acl (Depends-on): Add error and quote.
50235
50236         * check-module (find_included_lib_files): Add at-func.c to the
50237         ok-to-include-more-than-once white list.
50238
50239         * modules/openat (Depends-on): Add lstat.  Alphabetize.
50240
50241 2006-08-21  Bruno Haible  <bruno@clisp.org>
50242
50243         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50244         Emit a pkgdata_DATA variable only if some snippets add contents to it.
50245         Reported by Martin Lambers <marlam@marlam.de>.
50246
50247 2006-08-21  Bruno Haible  <bruno@clisp.org>
50248
50249         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
50250         specify an installation location, don't emit a noinst_LIBRARIES or
50251         noinst_LTLIBRARIES assignment.
50252
50253 2006-08-21  Bruno Haible  <bruno@clisp.org>
50254
50255         BeOS portability.
50256         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
50257         BeOS has mbrtowc() but no <wctype.h>.
50258
50259 2006-08-21  Bruno Haible  <bruno@clisp.org>
50260
50261         BeOS portability.
50262         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
50263         exist.
50264
50265 2006-08-21  Bruno Haible  <bruno@clisp.org>
50266
50267         BeOS portability.
50268         * lib/mbchar.h: Include <wctype.h> only if it exists.
50269
50270 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
50271
50272         Remove files that are no longer needed by their respective modules.
50273         * m4/obstack.m4: Remove.
50274         * m4/strerror_r.m4: Remove.
50275         * m4/uint32_t.m4: Remove.
50276         * m4/uintptr_t.m4: Remove.
50277         * m4/ullong_max.m4: Remove.
50278         * m4/xstrtoimax.m4: Remove.
50279         * m4/xstrtoumax.m4: Remove.
50280
50281         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
50282         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
50283         dependencies now capture this.
50284
50285         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
50286         Do not use AC_LIBSOURCES, since gnulib modules now do this.
50287         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
50288         * m4/human.m4 (gl_HUMAN): Likewise.
50289         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
50290         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
50291
50292         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
50293
50294         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
50295         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
50296         stdint.
50297         * m4/human.m4 (gl_HUMAN): Likewise.
50298         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
50299         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
50300         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
50301         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
50302         * m4/xstrtol (gl_XSTRTOL): Likewise.
50303
50304         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
50305         AC_TYPE_LONG_LONG_INT.
50306         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
50307         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
50308         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
50309         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
50310
50311         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
50312         on stdbool.
50313
50314         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
50315         (gl_PREREQ_XSTRTOUL): Remove.
50316
50317         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
50318
50319         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
50320         mode.
50321
50322 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
50323
50324         Add and change modules to make it easier for coreutils to use
50325         gnulib-tool.
50326         * modules/backupfile (Files): Remove m4/d-ino.m4.
50327         (Depends-on): Add d-ino.
50328         * modules/cycle-check (Depends-on): Add stdint.
50329         (lib_SOURCES): Add cycle-check.h.
50330         * modules/d-ino: New module.
50331         * modules/d-type: New module.
50332         * modules/error (Files): Remove m4/strerror_r.m4.
50333         * modules/filemode (Files): Add m4/st_dm_mode.m4.
50334         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
50335         m4/inttypes_h.m4, m4/uintmax_t.m4.
50336         (Depends-on): Add stdint.
50337         (lib_SOURCES): Add fsusage.h.
50338         * modules/getcwd (Files): Remove d-ino.m4.
50339         (Depends-on): Add d-ino.
50340         * modules/getndelim2 (Depends-on): Add stdint.
50341         * modules/glob (Files): Remove m4/d-type.m4.
50342         (Depends-on): Add d-type.
50343         * modules/host-os: New module.
50344         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
50345         m4/inttypes_h.m4, m4/uintmax_t.m4.
50346         * Depends-on: Add stdint.
50347         (lib_SOURCES): Add human.h.
50348         * modules/inttostr (Files): Remove m4/intmax_t.m4,
50349         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
50350         m4/uintmax_t.m4, m4/ulonglong.m4.
50351         (Depends-on): Add stdint.
50352         (EXTRA_DIST): Add inttostr.h.
50353         * modules/lchmod: New module.
50354         * modules/link-follow: New module.
50355         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
50356         (Depends-on): Add lchmod.
50357         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
50358         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
50359         (Depends-on): Add stdint.
50360         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
50361         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
50362         (Depends-on): Add stdint.
50363         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
50364         * modules/perl: New module.
50365         * modules/regex (Depends-on): Add stdint.
50366         * modules/rmdir-errno: New module.
50367         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
50368         m4/intmax_t.m4.
50369         (Depends-on): Add stdint.
50370         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
50371         m4/uintmax_t.m4.
50372         (Depends-on): Add stdint.
50373         * modules/unlink-busy: New module.
50374         * modules/utimecmp (Depends-on): Add stdint.
50375         * modules/uptime: New module.
50376         * modules/winsz-ioctl: New module.
50377         * modules/winsz-termios: New module.
50378         * modules/xnanosleep (Depends-on): Add nanosleep.
50379         * modules/ullong_max: Remove.
50380         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
50381         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
50382         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
50383         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
50384         (Depends-on): Add inttypes.
50385         (lib_SOURCES): Add xstrtol.h.
50386         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
50387         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
50388         * MODULES.html.sh: Move 'assert' into the assert section.
50389         Move 'dummy' into the linking section.
50390         Remove ullong_max.
50391         Add section for compatibility checks for POSIX:2001 functions,
50392         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
50393         winsz-ioctl, and winsz-termios into it.
50394         Add lchmod.
50395         Add top-level Misc section and put host-os, perl, and uptime
50396         into it.
50397
50398 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
50399
50400         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
50401         now assume the stdint module.  Do not include inttypes.h.
50402         * lib/fsusage.h: Likewise.
50403         * lib/getndelim2.c: Likewise.
50404         * lib/human.h: Likewise.
50405         * lib/inttostr.h: Likewise.
50406         * lib/obstack.c: Likewise.
50407         * lib/regex_internal.h: Likewise.
50408         * lib/tempname.c: Likewise.
50409         * lib/utimecmp.c: Likewise.
50410         * lib/xstrtol.h: Likewise.
50411
50412         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
50413
50414         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
50415         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
50416         * lib/xtime.h: Likewise.
50417
50418 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
50419
50420         * modules/openat (Files): Add lib/fchmodat.c.
50421         Fixes problem reported by Jay Youngman.
50422
50423 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
50424
50425         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
50426         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
50427
50428 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
50429             Bruno Haible  <bruno@clisp.org>
50430
50431         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
50432         and is a script that invokes bison. Tighten the code. Add comments.
50433
50434 2006-08-18  Jim Meyering  <jim@meyering.net>
50435
50436         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
50437         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
50438         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
50439         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
50440
50441 2006-08-18  Bruno Haible  <bruno@clisp.org>
50442
50443         * modules/bison-i18n: New file.
50444         * MODULES.html.sh (Internationalization functions): Add it.
50445
50446 2006-08-18  Bruno Haible  <bruno@clisp.org>
50447
50448         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
50449         sys/statvfs.h. When getmntinfo was found, check its declaration and
50450         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
50451
50452 2006-08-18  Bruno Haible  <bruno@clisp.org>
50453
50454         * m4/bison-i18n.m4: New file, from bison.
50455
50456 2006-08-18  Bruno Haible  <bruno@clisp.org>
50457
50458         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
50459         (ME_DUMMY): Treat "kernfs" as a dummy.
50460         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
50461
50462 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
50463
50464         Update from coreutils.
50465
50466         2006-08-15  Jim Meyering  <jim@meyering.net>
50467
50468         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
50469
50470         2006-01-17  Jim Meyering  <jim@meyering.net>
50471
50472         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
50473
50474         2006-01-11  Jim Meyering  <jim@meyering.net>
50475
50476         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
50477         Check for the lchmod function.
50478
50479 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
50480
50481         Update from coreutils.
50482
50483         * lib/__fpending.h: Add copyright notice.
50484         * lib/fprintftime.h: Likewise.
50485         * lib/savedir.c: Use (C) in copyright notice.
50486         * lib/savedir.h: Likewise.
50487
50488         2006-08-15  Jim Meyering  <jim@meyering.net>
50489
50490         * lib/at-func.c: New file, with the logic of all emulated at-functions.
50491         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
50492         in support of the EXPECTED_ERRNO macro.
50493         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
50494         definitions.  Instead, define the appropriate symbols and include
50495         "at-func.c".
50496         * lib/mkdirat.c (mkdirat): Likewise.
50497         * lib/fchmodat.c (fchmodat): Likewise.
50498         (ENOSYS): Remove definition.
50499         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
50500         it.  Don't include "unistd--.h" -- it wasn't ever used.
50501
50502         2006-01-17  Jim Meyering  <jim@meyering.net>
50503
50504         Rewrite fts.c not to change the current working directory,
50505         by using openat, fstatat, fdopendir, etc..
50506
50507         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
50508         (HAVE_OPENAT_SUPPORT): Define.
50509         [_LIBC] (fchdir): Don't undef or define; no longer used.
50510         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
50511         Now, this `function' always succeeds, and consumes its file descriptor
50512         parameter -- so callers must not close such FDs.  Update callers.
50513         (diropen_fd, opendirat, cwd_advance_fd): New functions.
50514         (diropen): Add parameter, SP.  Adjust all callers.
50515         Implement using diropen_fd, rather than open.
50516         (fts_open): Initialize new member, fts_cwd_fd.
50517         Remove fts_rft-setting code.
50518         (fts_close): Close fts_cwd_fd, if necessary.
50519         (__opendir2): Define in terms of opendir or opendirat,
50520         depending on whether the FST_NOCHDIR flag is set.
50521         (fts_build): Since fts_safe_changedir consumes its FD, and since
50522         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
50523         and close the dup'd file descriptor upon failure.
50524         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
50525         (fts_safe_changedir): Tweak semantics to reflect that this function
50526         now calls cwd_advance_fd and hence consumes its FD argument.
50527         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
50528         [struct FTS] (fts_rft): Remove now-unused member.
50529         [struct FTS] (fts_cycle.state): Improve comment.
50530
50531         * lib/openat.c (openat_needs_fchdir): New function.
50532         * lib/openat.h (openat_needs_fchdir): Declare it.
50533
50534 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
50535
50536         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
50537         Problem and fix reported by Pádraig Brady in
50538         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
50539
50540 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
50541
50542         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
50543
50544 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
50545
50546         * lib/memcoll.c (memcoll): Optimize for the common case where the
50547         arguments are bytewise equal.
50548
50549 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
50550
50551         * doc/regexprops-generic.texi: Add a copyright notice.
50552
50553 2006-08-15  Bruno Haible  <bruno@clisp.org>
50554
50555         * modules/tmpdir (License): Change to LGPL.
50556
50557 2006-08-15  Bruno Haible  <bruno@clisp.org>
50558
50559         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
50560         module.
50561
50562 2006-08-14  Simon Josefsson  <jas@extundo.com>
50563
50564         * config/srclist.txt: Add gnupload.
50565
50566 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
50567
50568         Change copyright notice from LGPL 2 to GPL 2, since that's the
50569         standard form used in the gnulib repository.
50570         * tests/test-lock.c: Likewise.
50571         * tests/test-stdint.c: Likewise.
50572         * tests/test-tls.c: Likewise.
50573
50574         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
50575         prelude-manager.  User shorter URLs for GNU projects, without '?'.
50576         Add copyright notice.
50577
50578         * check-module: Add copyright notice.  Output a copyright
50579         notice if "--version" is specified.
50580         * modules/COPYING: New file.
50581         * tests/test-getaddrinfo.c: Add copyright notice.
50582         * tests/test-verify.c: Likewise.
50583
50584 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
50585
50586         Change copyright notice from LGPL 2 to GPL 2, since that's the
50587         standard form used in the gnulib repository.
50588         * lib/lock.c: LGPL -> GPL.
50589         * lib/lock.h: Likewise.
50590         * lib/strnlen1.c: Likewise.
50591         * lib/strnlen1.h: Likewise.
50592         * lib/tls.c: Likewise.
50593         * lib/tls.h: Likewise.
50594         * lib/tmpdir.c: Likewise.
50595
50596         * lib/TODO: Remove; this belongs only in coreutils.
50597
50598 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
50599
50600         Add copyright notices to long-enough files that lack them, since
50601         otherwise the files aren't clearly free.  Use the same notice that
50602         getdate.texi already uses.
50603         * doc/alloca-opt.texi: Add copyright notice.
50604         * doc/alloca.texi: Likewise.
50605         * doc/ctime.texi: Likewise.
50606         * doc/functions.texi: Likewise.
50607         * doc/gcd.texi: Likewise.
50608         * doc/gnulib-tool.texi: Likewise.
50609         * doc/inet_ntoa.texi: Likewise.
50610         * doc/visibility.texi: Likewise.
50611
50612         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
50613         * doc/quote.texi: Add copyright notice.
50614
50615         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
50616         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
50617         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
50618         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
50619         is now obsolete, and give a pointer to the Sun list.
50620         Add copyright notice.
50621
50622 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
50623
50624         * config/srclistvars.sh: Add copyright notice.
50625
50626 2006-08-14  Eric Blake  <ebb9@byu.net>
50627
50628         Import the following change from libc:
50629
50630         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
50631
50632         Upstream bug 2997.
50633         * lib/misc/error.c: Add space between program name and message if file
50634         name is missing.
50635
50636 2006-08-12  Karl Berry  <karl@gnu.org>
50637
50638         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
50639         remove, these originate in gnulib now.
50640
50641 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50642
50643         * doc/Makefile (standards.info standards.html standards.dvi):
50644         Also depend on make-stds.texi.
50645
50646 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
50647
50648         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
50649         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
50650
50651         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
50652         in wchar_t.  Problem reported by Eric Blake.
50653
50654         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
50655         LEN is smaller than SIZE.  Suggested by Bruno Haible.
50656         Also, help the compiler to keep LEN in a register.
50657
50658 2006-08-11  Eric Blake  <ebb9@byu.net>
50659
50660         * users.txt: Sort.  Add tar.
50661
50662 2006-08-11  Bruno Haible  <bruno@clisp.org>
50663
50664         * users.txt: New file.
50665
50666 2006-08-11  Bruno Haible  <bruno@clisp.org>
50667
50668         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
50669         before <wchar.h>. Needed for OSF/1 and BSD/OS.
50670
50671 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
50672
50673         * modules/snprintf (Depends-on): Remove minmax.
50674         (Maintainer): Add self and Bruno.
50675
50676 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
50677
50678         * lib/.cppi-disable: Add snprintf.h, socket_.h.
50679         * lib/snprintf.c: Include <errno.h> and <limits.h>.
50680         (EOVERFLOW): Define if the system does not.
50681         Do not include "minmax.h"; it wasn't used.
50682         (snprintf): Don't assume size_t promotes to an unsigned type.
50683         Fix bug when generated string was too long for the buffer: the
50684         buffer's contents are supposed to be the initial prefix of the
50685         output.  Don't assume vasnprintf returns EOVERFLOW if the size
50686         exceeds INT_MAX; do the check ourselves.
50687
50688         Import the following changes from libc:
50689
50690         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
50691
50692         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
50693         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
50694         set wc to the byte which couldn't be converted.
50695         (re_string_reconstruct): Don't clear valid_raw_len before calling
50696         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
50697         tip_context using re_string_context_at.
50698
50699         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
50700
50701         * lib/posix/regex.h: g++ still cannot handled [restrict].
50702
50703         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
50704
50705         * lib/posix/regex.h: Remove special handling for VMS.
50706
50707 2006-08-10  Jim Meyering  <jim@meyering.net>
50708
50709         * modules/same-inode: New module.
50710         * modules/dev-ino: New module.
50711         * modules/cycle-check: Depend on these modules, rather than simply
50712         including their .h files.
50713         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
50714         required via m4/cycle-check.m4.
50715         * modules/same: Depend on new same-inode module, rather than
50716         including same-inode.h.
50717         * modules/chdir-safer: New file.
50718
50719         * modules/chown (Depends-on): Add stat-macros.
50720
50721 2006-08-10  Jim Meyering  <jim@meyering.net>
50722
50723         * m4/cycle-check.m4: New file.
50724         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
50725         * m4/dev-ino.m4, m4/same-inode.m4: New files.
50726
50727 2006-08-10  Eric Blake  <ebb9@byu.net>
50728
50729         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
50730         in from original proposal.
50731
50732 2006-08-10  Eric Blake  <ebb9@byu.net>
50733         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
50734
50735         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
50736         namespace.
50737
50738 2006-08-10  Bruno Haible  <bruno@clisp.org>
50739
50740         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
50741         as well.
50742
50743 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
50744
50745         Sync from coreutils.
50746
50747         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
50748
50749         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
50750         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
50751
50752 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
50753
50754         * modules/restrict: Remove; no longer needed now that we assume
50755         Autoconf 2.59 or later.
50756         * MODULES.html.sh: Remove 'restrict'.
50757         * modules/argp (Depends-on): Remove 'restrict'.
50758         * modules/base64 (Depends-on): Likewise.
50759         * modules/gc (Depends-on): Likewise.
50760         * modules/getaddrinfo (Depends-on): Likewise.
50761         * modules/glob (Depends-on): Likewise.
50762         * modules/inet_ntop (Depends-on): Likewise.
50763         * modules/inet_pton (Depends-on): Likewise.
50764         * modules/memxor (Depends-on): Likewise.
50765         * modules/regex (Depends-on): Likewise.
50766         * modules/strtok_r (Depends-on): Likewise.
50767         * modules/time_r (Depends-on): Likewise.
50768
50769 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
50770
50771         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
50772         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
50773         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
50774         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
50775         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
50776         * m4/memxor.m4 (gl_MEMXOR): Likewise.
50777         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
50778         gl_C_RESTRICT replaced by AC_C_RESTRICT.
50779
50780         Merge from coreutils.
50781         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
50782         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
50783         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
50784         * m4/time_r.m4 (gl_TIME_R): Likewise.
50785
50786 2006-08-09  Karl Berry  <karl@gnu.org>
50787
50788         * config/srclist.txt: no more gettext-tools, per Bruno.
50789
50790 2006-08-08  Eric Blake  <ebb9@byu.net>
50791
50792         * modules/verror: New module.
50793         * MODULES.html.sh: Document it.
50794
50795 2006-08-08  Eric Blake  <ebb9@byu.net>
50796
50797         * lib/verror.h, lib/verror.c: New files.
50798
50799 2006-08-08  Eric Blake  <ebb9@byu.net>
50800
50801         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
50802         verror_at_line output complies with GNU Coding Standards even when
50803         file is NULL.
50804
50805 2006-08-07  Bruno Haible  <bruno@clisp.org>
50806
50807         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
50808         versions of AIX.
50809         Reported by Ralf Wildenhues.
50810
50811 2006-08-07  Bruno Haible  <bruno@clisp.org>
50812
50813         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
50814         in an AC_DEFUN. Needed so that the autoconf snippets can use
50815         AC_REQUIRE.
50816
50817 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50818
50819         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50820         Initialize pkgdata_DATA.
50821         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
50822         overriding it.
50823
50824 2006-08-06  Eric Blake  <ebb9@byu.net>
50825
50826         * lib/error.h: Fold in some upstream changes from glibc.
50827         * lib/error.c: Likewise.
50828
50829 2006-08-04  Bruno Haible  <bruno@clisp.org>
50830
50831         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50832         Make the mostlyclean-local rule depend on mostlyclean-generic.
50833         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
50834
50835 2006-07-31  Bruno Haible  <bruno@clisp.org>
50836
50837         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
50838         <stdlib.h>, <string.h>.
50839
50840 2006-07-30  Bruno Haible  <bruno@clisp.org>
50841
50842         * modules/readlink (License): Change to LGPL.
50843
50844 2006-07-30  Bruno Haible  <bruno@clisp.org>
50845
50846         * modules/javaversion (Makefile.am): Distribute javaversion.java and
50847         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
50848         set PKGDATADIR to point to it.
50849
50850 2006-07-30  Bruno Haible  <bruno@clisp.org>
50851
50852         * modules/csharpexec (configure.ac): Comment out macro invocation.
50853         * modules/javaexec (configure.ac): Likewise.
50854         * modules/javacomp-script (configure.ac): Likewise.
50855
50856         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
50857
50858 2006-07-30  Bruno Haible  <bruno@clisp.org>
50859
50860         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
50861         linked-list.
50862
50863 2006-07-30  Bruno Haible  <bruno@clisp.org>
50864
50865         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
50866
50867 2006-07-30  Bruno Haible  <bruno@clisp.org>
50868
50869         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50870         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
50871         get removed.
50872
50873 2006-07-29  Bruno Haible  <bruno@clisp.org>
50874
50875         Make it possible for gnulib-tool to work with locally modified or
50876         augmented gnulib repositories.
50877         * gnulib-tool (func_usage): Document --local-dir option.
50878         (local_gnulib_dir): New variable.
50879         Handle --local-dir option.
50880         (func_lookup_file): New function.
50881         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
50882         (func_get_description, func_get_filelist, func_get_description,
50883         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
50884         func_get_automake_snippet, func_get_include_directive,
50885         func_get_license, func_get_maintainer): Use func_lookup_file.
50886         (func_import, func_create_testdir): Use func_lookup_file.
50887
50888 2006-07-29  Bruno Haible  <bruno@clisp.org>
50889
50890         * modules/setenv (Depends-on): Add unistd.
50891
50892 2006-07-29  Bruno Haible  <bruno@clisp.org>
50893
50894         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
50895
50896 2006-07-29  Bruno Haible  <bruno@clisp.org>
50897
50898         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
50899
50900 2006-07-29  Bruno Haible  <bruno@clisp.org>
50901
50902         * gnulib-tool (import, update): If there is no Makefile.am, look at
50903         aclocal.m4, instead of bailing out.
50904
50905 2006-07-29  Bruno Haible  <bruno@clisp.org>
50906
50907         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
50908         Categorize the options by when they are useful.
50909
50910 2006-07-29  Bruno Haible  <bruno@clisp.org>
50911
50912         * gnulib-tool (func_usage): Document option --no-libtool.
50913         Handle option --no-libtool.
50914         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
50915         for changed semantics of $libtool variable.
50916         (func_import): Likewise. If libtool is not used, show this through
50917         an option --no-libtool.
50918         (func_create_testdir): Update.
50919
50920 2006-07-29  Bruno Haible  <bruno@clisp.org>
50921
50922         * gnulib-tool (func_import): Extend error message about missing
50923         --doc-base.
50924
50925 2006-07-29  Bruno Haible  <bruno@clisp.org>
50926
50927         * gnulib-tool (func_import): Don't create the $docbase directory if
50928         there is no file to store there.
50929
50930 2006-07-29  Bruno Haible  <bruno@clisp.org>
50931
50932         * gnulib-tool (autoconf_minversion): If a --dir option is given and
50933         relevant, look for configure.ac there, not in the current directory.
50934         Also use a simple search for AC_PREREQ, not "autoconf --trace".
50935
50936 2006-07-29  Bruno Haible  <bruno@clisp.org>
50937
50938         * gnulib-tool (SORT): New variable.
50939         (func_usage): Undocument --assume-autoconf option.
50940         Remove --assume-autoconf option handling.
50941         (autoconf_minversion): Determine from the contents of configure.ac.
50942         (func_import): Remove autoconf_minversion handling.
50943         Suggested by Eric Blake.
50944
50945 2006-07-29  Bruno Haible  <bruno@clisp.org>
50946
50947         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
50948
50949 2006-07-29  Bruno Haible  <bruno@clisp.org>
50950
50951         * config/srclist.txt (*setenv.[ch]): Remove rules.
50952
50953 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50954
50955         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
50956
50957 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50958
50959         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
50960         arpa/inet.h.
50961
50962 2006-07-28  Simon Josefsson  <jas@extundo.com>
50963
50964         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
50965         * modules/inet_pton (Depends-on): Likewise.
50966
50967 2006-07-28  Simon Josefsson  <jas@extundo.com>
50968
50969         * m4/netinet_in_h.m4: New file.
50970
50971 2006-07-28  Simon Josefsson  <jas@extundo.com>
50972
50973         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
50974         #include's.
50975
50976 2006-07-28  Simon Josefsson  <jas@extundo.com>
50977
50978         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
50979         #include's.
50980
50981 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
50982
50983         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
50984         setgid on directories only if they set these bits.
50985         * lib/modechange.h: Remove obsolete comment about masks.
50986
50987 2006-07-28  Eric Blake  <ebb9@byu.net>
50988
50989         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
50990         macro expansion.
50991
50992 2006-07-28  Bruno Haible  <bruno@clisp.org>
50993
50994         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
50995
50996 2006-07-28  Bruno Haible  <bruno@clisp.org>
50997
50998         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
50999
51000 2006-07-28  Bruno Haible  <bruno@clisp.org>
51001
51002         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
51003         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
51004         Define fallbacks.
51005         Avoids link error on FreeBSD 4.x.
51006         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
51007
51008         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
51009         encoding.
51010         * lib/mbswidth.c (iswcntrl): Likewise.
51011
51012 2006-07-27  Bruno Haible  <bruno@clisp.org>
51013
51014         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
51015         test.
51016
51017 2006-07-27  Bruno Haible  <bruno@clisp.org>
51018
51019         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
51020         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
51021         defined.
51022
51023 2006-07-26  Eric Blake  <ebb9@byu.net>
51024
51025         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
51026
51027 2006-07-26  Eric Blake  <ebb9@byu.net>
51028
51029         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
51030         like mingw that lack mkstemp.
51031         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
51032         avoid compilation warning on mingw.
51033
51034 2006-07-26  Bruno Haible  <bruno@clisp.org>
51035
51036         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
51037         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
51038         INT_FAST*_MIN, INTPTR_MIN.
51039
51040 2006-07-25  Bruno Haible  <bruno@clisp.org>
51041
51042         * modules/version-etc (Depends-on): Add stdarg.
51043
51044 2006-07-25  Bruno Haible  <bruno@clisp.org>
51045
51046         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
51047         complex commands.
51048
51049 2006-07-25  Bruno Haible  <bruno@clisp.org>
51050
51051         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
51052         defined in <stdarg.h> or config.h.
51053
51054 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
51055
51056         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
51057         (gl_STDIO_SAFER): Remove.
51058
51059 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
51060
51061         * MODULES.html.sh (File stream based Input/Output):
51062         Add fopen-safer, tmpfile-safer; remove stdio-safer.
51063         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
51064         * modules/fopen-safer, modules/tmpfile-safer: New files.
51065         * modules/stdio-safer: Remove.
51066
51067 2006-07-24  Bruno Haible  <bruno@clisp.org>
51068
51069         * modules/tmpdir: New file.
51070         * MODULES.html.sh (File system functions): Add it.
51071
51072 2006-07-24  Bruno Haible  <bruno@clisp.org>
51073
51074         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
51075         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
51076
51077 2006-07-24  Bruno Haible  <bruno@clisp.org>
51078
51079         * modules/clean-temp: New file.
51080
51081 2006-07-24  Bruno Haible  <bruno@clisp.org>
51082
51083         * m4/tmpdir.m4: New file, from GNU gettext.
51084
51085 2006-07-24  Bruno Haible  <bruno@clisp.org>
51086
51087         * lib/tmpdir.h: New file, from GNU gettext.
51088         * lib/tmpdir.c: New file, from GNU gettext.
51089
51090 2006-07-24  Bruno Haible  <bruno@clisp.org>
51091
51092         * lib/clean-temp.h: New file, from GNU gettext.
51093         * lib/clean-temp.c: New file, from GNU gettext.
51094
51095 2006-07-23  Eric Blake  <ebb9@byu.net>
51096
51097         * modules/stdio-safer (Files): Add tmpfile-safer.c.
51098         (Depends-on): Add binary-io.
51099
51100 2006-07-23  Eric Blake  <ebb9@byu.net>
51101
51102         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
51103
51104 2006-07-23  Eric Blake  <ebb9@byu.net>
51105
51106         * lib/tmpfile-safer.c: New file.
51107         * lib/stdio-safer.h (fopen_safer): Add prototype.
51108         * lib/stdio--.h (tmpfile): Make safer.
51109
51110 2006-07-23  Bruno Haible  <bruno@clisp.org>
51111
51112         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
51113         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
51114         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
51115         gl_linked_remove_at): Use it.
51116
51117 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
51118         and Simon Josefsson <jas@extundo.com>
51119
51120         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
51121
51122         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
51123
51124 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
51125
51126         * modules/close-stream: New file.
51127         * modules/closeout (Description): Make it clear that it exits
51128         with a diagnostic on error.
51129         (Depends-on): Add close-stream.  Remove fpending, stdbool.
51130         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
51131
51132 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
51133
51134         * m4/close-stream.m4: New file.
51135
51136 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
51137
51138         * lib/close-stream.c, lib/close-stream.h: New files.
51139
51140 2006-07-22  Bruno Haible  <bruno@clisp.org>
51141
51142         Merge from GNU gettext 0.15.
51143
51144         2006-05-01  Bruno Haible  <bruno@clisp.org>
51145
51146                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
51147
51148         2006-07-22  Bruno Haible  <bruno@clisp.org>
51149
51150                 * modules/javaversion: New file.
51151                 * MODULES.html.sh (Java): Add javaversion.
51152
51153         2006-03-12  Bruno Haible  <bruno@clisp.org>
51154
51155                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
51156
51157         2005-12-04  Bruno Haible  <bruno@clisp.org>
51158
51159                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
51160                 (untested).
51161
51162         2006-06-21  Bruno Haible  <bruno@clisp.org>
51163
51164                 Avoid warnings from recent versions of mcs.
51165                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
51166                 -o, -L, -r any more. Use options documented since mcs-1.0
51167                 instead. Similarly for -g.
51168
51169         2005-12-04  Bruno Haible  <bruno@clisp.org>
51170
51171                 * build-aux/csharpcomp.sh.in: Suffix for resources is
51172                 .resources, not .resource.
51173
51174         2005-07-09  Bruno Haible  <bruno@clisp.org>
51175
51176                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
51177                 add a .dll suffix.
51178                 Reported by Mark Junker <mjscod@gmx.de>.
51179
51180         2006-07-22  Bruno Haible  <bruno@clisp.org>
51181
51182                 * modules/gettext: Upgrade to gettext-0.15.
51183                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
51184                 m4/visibility.m4.
51185                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
51186
51187 2006-07-22  Bruno Haible  <bruno@clisp.org>
51188
51189         Merge from GNU gettext 0.15.
51190
51191         2006-03-25  Bruno Haible  <bruno@clisp.org>
51192
51193                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
51194
51195         2006-07-21  Bruno Haible  <bruno@clisp.org>
51196
51197                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
51198                 "1.1".
51199
51200         2006-05-09  Bruno Haible  <bruno@clisp.org>
51201
51202                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
51203                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
51204                 for the conftestver execution.
51205
51206         2006-05-01  Bruno Haible  <bruno@clisp.org>
51207
51208                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
51209                 optional target-version argument. Verify that the compiler
51210                 groks source of the specified source-version, or add -source
51211                 option as necessary. Verify that the compiler produces
51212                 bytecode in the specified target-version, or add -target and
51213                 -source options as necessary. Make the result of the test
51214                 available as variable CONF_JAVAC. Also log error output in
51215                 config.log.
51216
51217         2006-03-11  Bruno Haible  <bruno@clisp.org>
51218
51219                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
51220
51221         2006-05-09  Bruno Haible  <bruno@clisp.org>
51222
51223                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
51224                 CLASSPATH_SEPARATOR to a semicolon.
51225
51226         2006-03-12  Bruno Haible  <bruno@clisp.org>
51227
51228                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
51229                 available as variable CONF_JAVA, for subsequent autoconf
51230                 tests. Also log error output in config.log.
51231
51232         2006-07-19  Bruno Haible  <bruno@clisp.org>
51233
51234                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
51235                 that getline works on glibc2 systems. Needed to avoid trouble
51236                 in relocatable.c.
51237                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
51238
51239         2005-12-04  Bruno Haible  <bruno@clisp.org>
51240
51241                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
51242                 launcher (untested).
51243
51244         2005-12-04  Bruno Haible  <bruno@clisp.org>
51245
51246                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
51247
51248         2006-07-22  Bruno Haible  <bruno@clisp.org>
51249
51250                 * gettext.m4: Update from GNU gettext-0.15.
51251                 * nls.m4: Likewise.
51252                 * po.m4: Likewise.
51253                 * inttypes-pri.m4: Likewise.
51254                 * inttypes-h.m4: Renamed from inttypes.m4.
51255                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
51256
51257 2006-07-22  Bruno Haible  <bruno@clisp.org>
51258
51259         Merge from GNU gettext 0.15.
51260
51261         2005-07-05  Bruno Haible  <bruno@clisp.org>
51262
51263                 * printf-args.c (printf_fetchargs): Work around broken
51264                 definition of wint_t on mingw.
51265
51266         2005-02-12  Bruno Haible  <bruno@clisp.org>
51267
51268                 * xallocsa.h: Add extern "C" for C++.
51269
51270         2006-05-17  Bruno Haible  <bruno@clisp.org>
51271
51272                 Cygwin portability.
51273                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
51274
51275         2006-04-30  Bruno Haible  <bruno@clisp.org>
51276
51277                 * progreloc.c: Include <mach-o/dyld.h> if available.
51278                 (find_executable): Use _NSGetExecutablePath when possible.
51279
51280         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
51281
51282                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
51283                 function.
51284
51285         2005-12-29  Bruno Haible  <bruno@clisp.org>
51286
51287                 * progreloc.c (set_program_name_and_installdir): Fix
51288                 compilation error.
51289
51290         2005-12-04  Bruno Haible  <bruno@clisp.org>
51291
51292                 Cygwin portability.
51293                 * progreloc.c: Include <windows.h> also on Cygwin.
51294                 (find_executable): Add support for Cygwin.
51295                 (set_program_name_and_installdir): Handle also platforms with
51296                 nonempty EXEEXT.
51297
51298         2006-07-11  Bruno Haible  <bruno@clisp.org>
51299
51300                 * javacomp.c: Fix a comment.
51301                 Reported by Jim Meyering.
51302
51303         2006-04-30  Bruno Haible  <bruno@clisp.org>
51304
51305                 * javacomp.h (compile_java_class): Add source_version,
51306                 target_version arguments.
51307                 * javacomp.c: Rewritten to choose only a compiler that
51308                 respects the specified source_version and target_version.
51309
51310         2006-06-27  Bruno Haible  <bruno@clisp.org>
51311
51312                 Assume correct S_ISDIR macro.
51313                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
51314
51315         2006-07-22  Bruno Haible  <bruno@clisp.org>
51316
51317                 * javaversion.h: New file, from GNU gettext.
51318                 * javaversion.c: New file, from GNU gettext.
51319                 * javaversion.java: New file, from GNU gettext.
51320                 * javaversion.class: New file, from GNU gettext.
51321
51322         2006-05-17  Bruno Haible  <bruno@clisp.org>
51323
51324                 Cygwin portability.
51325                 * javaexec.c (execute_java_class): Test for jview program
51326                 also on Cygwin.
51327
51328         2006-04-09  Bruno Haible  <bruno@clisp.org>
51329
51330                 * fatal-signal.c: Don't include string.h.
51331                 (at_fatal_signal): Use a copying loop instead of memcpy.
51332
51333         2005-12-04  Bruno Haible  <bruno@clisp.org>
51334
51335                 * csharpexec.c: Add support for 'clix' launcher (untested).
51336                 (execute_csharp_using_sscli): New function.
51337                 (execute_csharp_program): Call it.
51338
51339         2006-06-21  Bruno Haible  <bruno@clisp.org>
51340
51341                 Avoid warnings from recent versions of mcs.
51342                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
51343                 -o, -L, -r any more. Use options documented since mcs-1.0
51344                 instead. Similarly for -g.
51345
51346         2005-07-09  Bruno Haible  <bruno@clisp.org>
51347
51348                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
51349                 add a .dll suffix.
51350                 Reported by Mark Junker <mjscod@gmx.de>.
51351
51352         2006-06-17  Bruno Haible  <bruno@clisp.org>
51353
51354                 * config.charset: Update for NetBSD 3.0.
51355
51356         2006-05-17  Bruno Haible  <bruno@clisp.org>
51357
51358                 Cygwin portability.
51359                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
51360
51361         2006-05-16  Bruno Haible  <bruno@clisp.org>
51362
51363                 * localcharset.c [CYGWIN]: Include <windows.h>.
51364                 (get_charset_aliases): For Cygwin, return the same CPxxx
51365                 aliases list as under WIN32.
51366                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
51367                 the environment variables. Fall back to GetACP().
51368
51369         2006-04-05  Bruno Haible  <bruno@clisp.org>
51370
51371                 * config.charset: Update Juan Manuel Guerrero's address.
51372
51373         2005-02-12  Bruno Haible  <bruno@clisp.org>
51374
51375                 * allocsa.h: Add extern "C" for C++.
51376
51377         2005-02-10  Bruno Haible  <bruno@clisp.org>
51378
51379                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
51380                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
51381
51382         2006-07-22  Bruno Haible  <bruno@clisp.org>
51383
51384                 * gettext.h: Update to GNU gettext-0.15.
51385
51386 2006-07-22  Bruno Haible  <bruno@clisp.org>
51387
51388         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
51389         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
51390         lib-prefix.m4, longdouble.m4, ssize_t.m4.
51391
51392 2006-07-21  Eric Blake  <ebb9@byu.net>
51393
51394         * modules/stdlib-safer: New file.
51395         * MODULES.html.sh (File stream based Input/Output): Add
51396         stdlib-safer.
51397
51398 2006-07-21  Eric Blake  <ebb9@byu.net>
51399
51400         * lib/stdlib-safer.h: New file from coreutils, required by
51401         stdlib--.h.
51402
51403 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
51404
51405         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
51406
51407 2006-07-20  Bruno Haible  <bruno@clisp.org>
51408
51409         * gnulib-tool: Recognize new option --assume-autoconf.
51410         (autoconf_minversion): New variable.
51411         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
51412
51413 2006-07-20  Bruno Haible  <bruno@clisp.org>
51414
51415         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
51416
51417 2006-07-19  Derek R. Price  <derek@ximbiot.com>
51418
51419         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
51420         Reindent and repaginate.
51421
51422 2006-07-19  Derek Price  <derek@ximbiot.com>
51423
51424         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
51425         Correct grammar.
51426
51427 2006-07-17  Bruno Haible  <bruno@clisp.org>
51428
51429         * modules/list: New file.
51430         * modules/array-list: New file.
51431         * modules/carray-list, modules/carray-list-tests: New files.
51432         * modules/linked-list, modules/linked-list-tests: New files.
51433         * modules/avltree-list, modules/avltree-list-tests: New files.
51434         * modules/rbtree-list, modules/rbtree-list-tests: New files.
51435         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
51436         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
51437         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
51438         * modules/oset: New file.
51439         * modules/array-oset: New file.
51440         * modules/avltree-oset, modules/avltree-oset-tests: New files.
51441         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
51442         * tests/test-carray_list.c: New file.
51443         * tests/test-linked_list.c: New file.
51444         * tests/test-avltree_list.c: New file.
51445         * tests/test-rbtree_list.c: New file.
51446         * tests/test-linkedhash_list.c: New file.
51447         * tests/test-avltreehash_list.c: New file.
51448         * tests/test-rbtreehash_list.c: New file.
51449         * tests/test-avltree_oset.c: New file.
51450         * tests/test-rbtree_oset.c: New file.
51451         * MODULES.html.sh (Container data structures): New section.
51452
51453 2006-07-17  Bruno Haible  <bruno@clisp.org>
51454
51455         * m4/gl_list.m4: New file.
51456
51457 2006-07-17  Bruno Haible  <bruno@clisp.org>
51458
51459         * lib/gl_list.h: New file.
51460         * lib/gl_list.c: New file.
51461         * lib/gl_array_list.h: New file.
51462         * lib/gl_array_list.c: New file.
51463         * lib/gl_carray_list.h: New file.
51464         * lib/gl_carray_list.c: New file.
51465         * lib/gl_linked_list.h: New file.
51466         * lib/gl_linked_list.c: New file.
51467         * lib/gl_anylinked_list1.h: New file.
51468         * lib/gl_anylinked_list2.h: New file.
51469         * lib/gl_avltree_list.h: New file.
51470         * lib/gl_avltree_list.c: New file.
51471         * lib/gl_anyavltree_list1.h: New file.
51472         * lib/gl_anyavltree_list2.h: New file.
51473         * lib/gl_rbtree_list.h: New file.
51474         * lib/gl_rbtree_list.c: New file.
51475         * lib/gl_anyrbtree_list1.h: New file.
51476         * lib/gl_anyrbtree_list2.h: New file.
51477         * lib/gl_anytree_list1.h: New file.
51478         * lib/gl_anytree_list2.h: New file.
51479         * lib/gl_linkedhash_list.h: New file.
51480         * lib/gl_linkedhash_list.c: New file.
51481         * lib/gl_anyhash_list1.h: New file.
51482         * lib/gl_anyhash_list2.h: New file.
51483         * lib/gl_avltreehash_list.h: New file.
51484         * lib/gl_avltreehash_list.c: New file.
51485         * lib/gl_rbtreehash_list.h: New file.
51486         * lib/gl_rbtreehash_list.c: New file.
51487         * lib/gl_anytreehash_list1.h: New file.
51488         * lib/gl_anytreehash_list2.h: New file.
51489
51490         * lib/gl_oset.h: New file.
51491         * lib/gl_oset.c: New file.
51492         * lib/gl_array_oset.h: New file.
51493         * lib/gl_array_oset.c: New file.
51494         * lib/gl_avltree_oset.h: New file.
51495         * lib/gl_avltree_oset.c: New file.
51496         * lib/gl_rbtree_oset.h: New file.
51497         * lib/gl_rbtree_oset.c: New file.
51498         * lib/gl_anytree_oset.h: New file.
51499
51500 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
51501
51502         * m4/mkancesdirs.m4: New file.
51503         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
51504         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
51505         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
51506         it.
51507
51508 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
51509
51510         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
51511         * lib/mkancesdirs.h: New files.
51512         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
51513         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
51514         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
51515         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
51516         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
51517         callers changed.  Revamp internals significantly, by not
51518         attempting to create directories that are temporarily more
51519         permissive than the final results.  Do not attempt to use
51520         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
51521         This removes some race conditions, fixes some bugs, and simplifies
51522         things.  Use new dirchownmod function to do owner and mode changes.
51523         * lib/mkdir-p.h: Likewise.
51524         * lib/modechange.c (octal_to_mode): New function.
51525         (struct mode_change): New member mentioned.
51526         (make_node_op_equals): New arg mentioned.  All callers changed.
51527         (mode_compile): Keep track of which mode bits the user has explicitly
51528         mentioned.
51529         (mode_adjust): New arg DIR, so that we implement the X op correctly.
51530         New arg PMODE_BITS, to keep track of which mode bits the user
51531         mentioned; it treats S_ISUID and S_ISGID speciall.
51532         All callers changed.
51533         * lib/modechange.h: Likewise.
51534
51535 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
51536
51537         * MODULES.html.sh: Add mkancestors.
51538         * modules/mkancesdirs: New module.
51539         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
51540         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
51541         The chdir-safer and afs files are now orphans; I'll remove them
51542         unless someone speaks up.
51543         Add lib/dirchownmod.c, lib/dirchownmod.h.
51544         (Depends-on): Remove alloca, chown, save-cwd, dirname.
51545         Add lchown, mkancesdirs.
51546         (Maintainer): Add self.
51547
51548 2006-07-15  Karl Berry  <karl@gnu.org>
51549
51550         * gnulib-tool: help message wording/arrangement.
51551
51552 2006-07-14  Simon Josefsson  <jas@extundo.com>
51553
51554         * doc/gnulib.texi (Libtool and Windows): New section.
51555
51556 2006-07-12  Simon Josefsson  <jas@extundo.com>
51557
51558         * modules/gendocs (License): Fix license, approved by Karl.
51559
51560 2006-07-12  Eric Blake  <ebb9@byu.net>
51561
51562         * MODULES.html.sh: Add gendocs.
51563
51564 2006-07-11  Eric Blake  <ebb9@byu.net>
51565
51566         * modules/fdl: New module, to install doc/fdl.texi.
51567         * MODULES.html.sh: Add new section for documentation modules.
51568         * gnulib-tool: Avoid space-tab.
51569         (--doc-base): New option, to manage files from doc.
51570
51571 2006-07-11  Eric Blake  <ebb9@byu.net>
51572
51573         * m4/absolute-header.m4: Fix comments to match recent change.
51574
51575 2006-07-11  Eric Blake  <ebb9@byu.net>
51576
51577         * gnulib-tool: List --doc-base before --tests-base.
51578
51579 2006-07-11  Derek R. Price  <derek@ximbiot.com>
51580
51581         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
51582
51583 2006-07-11  Bruno Haible  <bruno@clisp.org>
51584
51585         * README: Mention where to put documentation.
51586
51587 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51588
51589         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
51590
51591 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
51592
51593         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
51594         to stdint.m4.
51595
51596 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
51597
51598         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
51599         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
51600         "no/such/file/stdint.h" when there is no such file, so that
51601         the resulting C code can be parsed by dodgy compilers.
51602         Problems reported by Bob Proulx.
51603
51604 2006-07-10  Derek R. Price  <derek@ximbiot.com>
51605
51606         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
51607         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
51608         macros into the GNU _D_EXACT_NAMLEN.
51609         * lib/savedir.c:  Likewise.
51610         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
51611
51612 2006-07-10  Derek R. Price  <derek@ximbiot.com>
51613         and Paul Eggert  <eggert@cs.ucla.edu>
51614
51615         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
51616         * m4/savedir.m4:
51617         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
51618         macros into the GNU _D_EXACT_NAMLEN.
51619
51620 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
51621
51622         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
51623         around the absolute name, to work around a problem with the HP-UX
51624         11.23 native C compiler, reported by Bob Proulx.
51625
51626 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
51627
51628         * doc/maintain.texi, make-stds.texi: Sync from
51629         <http://savannah.gnu.org/projects/gnustandards>.
51630
51631 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
51632
51633         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
51634
51635 2006-07-09  Jim Meyering  <jim@meyering.net>
51636
51637         * m4/glob.m4: Remove a doubled word in a comment.
51638
51639 2006-07-09  Jim Meyering  <jim@meyering.net>
51640
51641         * lib/argp-pv.c: Remove a doubled word in a comment.
51642         * lib/check-version.c (check_version): Likewise.
51643         * lib/javacomp.c (compile_java_class): Likewise.
51644
51645 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
51646
51647         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
51648         for the benefit of people using Autoconf 2.60.  If you want to
51649         support older Autoconf versions you can copy m4/onceonly_2_57.m4
51650         (or m4/onceonly.m4, if pre-2.57) manually.
51651
51652 2006-07-08  Jim Meyering  <jim@meyering.net>
51653
51654         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
51655         comment.
51656         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
51657         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
51658         comment.
51659
51660 2006-07-08  Jim Meyering  <jim@meyering.net>
51661
51662         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
51663
51664 2006-07-07  Simon Josefsson  <jas@extundo.com>
51665
51666         * tests/test-crc.c: Change expected crc value, the test vector
51667         were probably computed using the old broken crc.c?
51668
51669 2006-07-06  Simon Josefsson  <jas@extundo.com>
51670
51671         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
51672         now the canonical place for the M4 file).
51673
51674         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
51675         from the sys_socket dependency now.
51676
51677         * modules/inet_pton (Files): Ditto.
51678
51679         * modules/inet_ntop (Files): Ditto.
51680
51681 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
51682
51683         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
51684         not gl_PREREQ_GETUSERSHELL.
51685
51686 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51687
51688         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
51689         with only one argument, for Autoconf 2.60.
51690         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
51691         expand to nothing, so add a shell command to avoid syntax error.
51692         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
51693
51694 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51695
51696         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
51697
51698 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
51699
51700         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
51701         no longer needed.  Check for isblank decl.
51702         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
51703         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
51704         of existence.
51705
51706 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
51707
51708         * lib/getloadavg.c: Use __VMS, not VMS.
51709         * lib/getopt.c: Likewise.
51710         * lib/getpagesize.h: Likewise.
51711         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
51712         and probably does not work.
51713
51714 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
51715
51716         * lib/.cppi-disable: Add wcwidth.
51717         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
51718         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
51719         (ISGRAPH): Remove.  All uses changed to isgraph.
51720         (FOLD) [!defined _LIBC]: Remove special case.
51721         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
51722         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
51723         HAVE_ISBLANK.
51724         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
51725         case.
51726
51727 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
51728
51729         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
51730         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
51731         brackets.  Other minor changes to suppress some compiler
51732         warnings.
51733
51734 2006-07-06  Derek R. Price  <derek@ximbiot.com>
51735         and Paul Eggert  <eggert@cs.ucla.edu>
51736
51737         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
51738         of invoking obsolescent AC_HEADER_DIRENT macro.
51739         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
51740         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
51741         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
51742         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
51743         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
51744         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
51745         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
51746         * m4/readdir.m4: Remove; no longer needed.
51747
51748 2006-07-06  Derek R. Price  <derek@ximbiot.com>
51749         and Paul Eggert  <eggert@cs.ucla.edu>
51750
51751         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
51752         Don't worry about this obsolete case any more.
51753         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
51754         directories.
51755         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
51756         worry about this obsolete case any more.
51757         * lib/fts.c: Likewise.
51758         * lib/getcwd.c: Likewise.
51759         * lib/glob.h: Likewise.
51760         * lib/savedir.c: Likewise.
51761
51762 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
51763
51764         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
51765         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
51766         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
51767         needed.
51768         All uses removed.
51769         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
51770         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
51771         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
51772         needed.
51773         * m4/getdate.m4 (gl_GETDATE): Likewise.
51774         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
51775         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
51776         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
51777         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
51778         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
51779         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
51780         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
51781         needed.
51782
51783 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
51784
51785         * lib/memcasecmp.c: Include <limits.h>.
51786         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
51787         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
51788         Don't assume isdigit succeeds only on '0' through '9'.
51789
51790 2006-07-05  Eric Blake  <ebb9@byu.net>
51791
51792         * modules/getaddrinfo (Depends-on): Add snprintf.
51793
51794 2006-07-05  Eric Blake  <ebb9@byu.net>
51795
51796         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
51797         to avoid 'header present but could not be compiled' on cygwin.
51798
51799 2006-07-05  Eric Blake  <ebb9@byu.net>
51800
51801         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
51802         missing from netdb.h.
51803         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
51804
51805 2006-07-05  Derek R. Price  <derek@ximbiot.com>
51806
51807         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
51808         no longer needed.
51809         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
51810         * m4/getdate.m4 (gl_GETDATE): Likewise.
51811         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
51812         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
51813         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
51814         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
51815         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
51816
51817 2006-07-05  Derek R. Price  <derek@ximbiot.com>
51818
51819         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
51820         All uses of is_space replaced by isspace.
51821         * lib/exit.h: Don't talk about STDC_HEADERS.
51822         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
51823         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
51824         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
51825         replaced by isprint etc.
51826         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
51827         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
51828         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
51829         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
51830         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
51831         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
51832
51833 2006-07-05  Bruno Haible  <bruno@clisp.org>
51834
51835         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
51836         the function exists, before testing against AIX.
51837         Reported by Martin Lambers <marlam@marlam.de>.
51838
51839 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
51840
51841         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
51842         From Mark D. Baushke.
51843
51844 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
51845
51846         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
51847         to the absolute name, not just one, to bypass Sun C 5.8's
51848         "warning: #include of /usr/include/... may be non-portable".
51849
51850 2006-07-04  Eric Blake  <ebb9@byu.net>
51851
51852         * modules/dirname-tests: New test module.
51853         * tests/test-dirname.c: New file, replacing dirname.c
51854         TEST_DIRNAME section that was recently deleted.
51855
51856 2006-07-04  Bruno Haible  <bruno@clisp.org>
51857
51858         Assume ANSI C header files and <ctype.h> functions.
51859         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
51860         (mbsnwidth): Use isprint, iscntrl instead.
51861
51862 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51863
51864         Merge from coreutils.
51865         * MODULES.html.sh: Add xstrtold.
51866         * modules/xstrtold: New file.
51867         * modules/cycle-check (Files): Add lib/same-inode.h.
51868         * modules/dirname (Files): Add m4/double-slash-root.m4.
51869         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
51870         * modules/mkdir-p (Files): Add lib/same-inode.h.
51871         * modules/same (Files): Add lib/same-inode.h.
51872
51873 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51874
51875         * m4/absolute-header.m4: Renamed from full-header-path.m4.
51876         This is to keep the terminology clean; POSIX talks about
51877         "absolute pathnames", not "full pathnames", but the GNU
51878         Coding Standards say to use "path" for something else;
51879         so use "absolute" to keep both sides happy.
51880         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
51881         Set gl_absolute_header, not gl_full_header_path.
51882         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
51883         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
51884         All uses changed.
51885
51886         Merge from coreutils.
51887
51888         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
51889
51890         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
51891         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
51892         want to require the building of c-strtod.o.
51893         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
51894         needs -lm directly.
51895         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
51896
51897         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
51898
51899         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
51900         --as-needed option if available.  Problem reported by Albert Chin in
51901         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
51902         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
51903         cc merely issues a bunch of annoying warnings for --as-needed
51904         (this problem was reported by Bob Proulx).  Also, try linking with
51905         -lm to detect a bug in binutils 2.16 (this problem was reported
51906         by Ralf Wildenhues).
51907
51908         2006-06-18  Jim Meyering  <jim@meyering.net>
51909
51910         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
51911         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
51912         macro.
51913         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
51914         also check for glibc-2.4's abort-inducing bug.
51915
51916         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
51917         Low-probability clean-up should be to use rmdir to get rid of
51918         the just-created directory, not unlink.
51919
51920         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
51921         configure fail, and request a bug report to inform us about it.
51922         Add a comment that, barring reports to the contrary, in 2007 we'll
51923         assume ftruncate is universally available.
51924
51925         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
51926
51927         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
51928
51929         2006-03-12  Jim Meyering  <jim@meyering.net>
51930
51931         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
51932         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
51933         * m4/same.m4 (gl_SAME): Likewise.
51934         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
51935
51936         2006-03-11  Eric Blake  <ebb9@byu.net>
51937
51938         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
51939         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
51940         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
51941         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
51942
51943 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51944
51945         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
51946         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
51947         reported by Mark D. Baushke, one in
51948         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
51949
51950         Merge from coreutils.
51951
51952         * lib/.cppi-disable: Add stdint_.h.
51953         * lib/.cvsignore: Add stdint.h.
51954
51955         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
51956
51957         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
51958         both double and long double versions.
51959         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
51960         * lib/xstrtold.c: New file.
51961         * lib/xstrtod.h (xstrtold): New decl.
51962
51963         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
51964
51965         * lib/filemode.c (setst): Remove.
51966         (strmode): Rewrite to avoid setst.  This makes the code shorter,
51967         (arguably) clearer, and the generated code is a bit smaller on my
51968         Debian GNU/Linux stable x86 host.
51969
51970         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
51971
51972         * lib/filemode.c: Include "filemode.h" first, to test the interface.
51973         Assume that filemode.h includes sys/types.h and sys/stat.h.
51974         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
51975         (ftypelet): Reorder to put common cases first, for efficiency.
51976         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
51977         to do 'M'.
51978         (strmode): Renamed from mode_string, and now stores 12 bytes instead
51979         of 10, for compatibility with FreeBSD.  All callers changed.
51980         (filemodestring): Now stores 12 bytes instead of 10, and sets file
51981         types that can't be deduced solely from st_mode.  First arg is now a
51982         const pointer.
51983         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
51984         (strmode): Renamed from mode_string.
51985         (filemodestring): New decl.
51986         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
51987         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
51988         needed.
51989         (S_ISPORT, S_ISWHT): New macros, if not already defined.
51990
51991         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
51992
51993         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
51994         fsusage.h now does that.  Include fsusage.h first, to test interface.
51995         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
51996         at most one method (the old code could have generated decls that
51997         didn't conform to C89, not that this was ever exercised).
51998         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
51999
52000         2006-03-19  Jim Meyering  <jim@meyering.net>
52001
52002         Work even in a chroot where d_ino values for entries in "/"
52003         don't match the stat.st_ino values for the same names.
52004         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
52005         number, iterate through all entries again, using lstat instead.
52006         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
52007         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
52008
52009         * lib/getcwd.c (__getcwd): Clarify a comment.
52010         Use memcpy in place of a call to strcpy.
52011
52012         2006-03-12  Jim Meyering  <jim@meyering.net>
52013
52014         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
52015         matches that of the current directory (which we're about to chdir ".."
52016         out of), then save the dev-ino of the parent, instead.
52017
52018         * lib/same-inode.h (SAME_INODE): New file/macro.
52019         * lib/chdir-safer.c (SAME_INODE): Remove definition.
52020         Include "same-inode.h", instead.
52021         * lib/same.c: Likewise.
52022         * lib/cycle-check.h: Include "same-inode.h".
52023         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
52024         * lib/cycle-check.c (SAME_INODE): Remove definition.
52025         * lib/root-dev-ino.h: Include "same-inode.h".
52026
52027         2006-03-11  Eric Blake  <ebb9@byu.net>
52028
52029         * lib/same.c (same_name): s/base_name/last_component/
52030         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
52031         * lib/filenamecat.c (file_name_concat): Likewise.
52032
52033         2006-03-11  Eric Blake  <ebb9@byu.net>,
52034                     Paul Eggert  <eggert@cs.ucla.edu>
52035
52036         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
52037         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
52038         drive prefix.
52039         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
52040         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
52041         (last_component): New method.
52042         * lib/dirname.c (dir_len): Determine when drive letters need a
52043         subsequent slash.  Preserve // when it is special.
52044         (dir_name): Don't append dot when drive letter is absolute.
52045         [TEST_DIRNAME]: Move into a full-blown gnulib test.
52046         * lib/basename.c (base_name): New semantics - malloc the result.
52047         Preserve // when it is special.  Preserve relative files that look
52048         like drive letters.
52049         (base_len): Preserve // when it is special.
52050         (last_component): New method, similar to old base_name semantics.
52051         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
52052         base_name.  Strip redundant slashes from ///.
52053
52054 2006-07-03  Jim Meyering  <jim@meyering.net>
52055
52056         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
52057         macro is used before the first cycle_check call.
52058
52059 2006-07-03  Eric Blake  <ebb9@byu.net>
52060
52061         * modules/dirname (Depends-on): Add xstrndup.
52062
52063 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
52064
52065         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
52066         test cases, so that config.log is a bit easier to follow.
52067
52068 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
52069
52070         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
52071         both are 64 bits, since this seems to be the tradition, and this
52072         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
52073         we ever run into a host that prefers long long to long in this
52074         case, we'll need another configure-time test.  Problem reported by
52075         Jim Meyering.
52076
52077 2006-07-02  Eric Blake  <ebb9@byu.net>
52078
52079         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
52080
52081 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
52082
52083         * modules/inttypes (Depends-on): No longer depends on stdint.
52084         * modules/stdint (Description): Say more about assumptions.
52085         Say that the fast types might differ.  Say macros are used.
52086         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
52087         (Makefile.am): Revise list of substituted symbols to match
52088         new stdint.m4.
52089         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
52090         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
52091         * tests/test-stdint.c (verify_same_types)
52092         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
52093         the code conforms to C99/C89.
52094         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
52095         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
52096
52097 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
52098
52099         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
52100         but fix a bug, by requiring at least 64 bits.
52101         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
52102         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
52103         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
52104         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
52105
52106         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
52107         changes.  Make 2.59 a prerequisite.  Check and substitute for
52108         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
52109         inttypes.h.  Do not use special include files; just use the
52110         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
52111         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
52112         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
52113         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
52114         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
52115         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
52116         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
52117         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
52118         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
52119         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
52120         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
52121         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
52122         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
52123         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
52124         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
52125         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
52126         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
52127         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
52128         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
52129         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
52130         WINT_MAX.  Check for C99 conformance more strictly, by detecting
52131         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
52132         not check for things that C99 does not require, e.g., int8_t.  If
52133         a test isn't needed unless <stdint.h> isn't working, and is
52134         unlikely to be needed for any other reason, then don't do it
52135         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
52136         size_t, since we assume C89 freestanding at least.  Do not check
52137         for sig_atomic_t, wchar_t, or wint_t, since the code now does
52138         the right thing even if the types are not defined.  Instead use:
52139         (gl_STDINT_TYPE_PROPERTIES): New macro.
52140         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
52141         testing whether <sys/types.h> clashes, as Autoconf does this for
52142         us now.  All uses removed.
52143         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
52144         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
52145         (gl_CHECK_TYPE_SAME):
52146         Remove; no longer needed.
52147         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
52148         exists, since we'll return 0 anyway in that case.
52149         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
52150
52151 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
52152
52153         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
52154         possible collision with system files.
52155         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
52156         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
52157         WCHAR_MIN and WCHAR_MAX in this case.
52158         (<stddef.h>): Do not include; no longer needed.
52159         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
52160         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
52161         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
52162         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
52163         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
52164         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
52165         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
52166         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
52167         !defined(__c99))]: Include in this case too, since it's harmless
52168         now.
52169         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
52170         dangerous to do so.
52171         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
52172         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
52173         (_STDINT_MIN, _STDINT_MAX): New macros.
52174         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
52175         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
52176         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
52177         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
52178         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
52179         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
52180         macros, not typedefs; this simplifies things quite a bit.
52181         Use long int for all types narrower than int64_t.
52182         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
52183         Define in terms of long long int or int64_t or long int,
52184         not int64_t or int32_t.  This saves some compile-time testing.
52185         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
52186         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
52187         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
52188         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
52189         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
52190         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
52191         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
52192         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
52193         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
52194         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
52195         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
52196         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
52197         undef any previous version and define our own version, for
52198         simplicity and consistency with the new macros for types.
52199         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
52200         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
52201         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
52202         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
52203         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
52204         @WINT_T_SUFFIX@ to keep things simple here.
52205         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
52206         Simplify by assuming typical 8/16/32/64 host, since we're
52207         already doing that elsewhere anyway.
52208         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
52209         and assume long long int is 64 bits if available.  This
52210         speeds up 'configure'.
52211
52212 2006-07-01  Eric Blake  <ebb9@byu.net>
52213
52214         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
52215         Reported by Andreas Buening.
52216
52217 2006-07-01  Eric Blake  <ebb9@byu.net>
52218
52219         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
52220
52221 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
52222
52223         * lib/getaddrinfo.c: fixed typo
52224
52225 2006-06-29  Jim Meyering  <jim@meyering.net>
52226
52227         * modules/strftime (Maintainer): Add my name, since with the
52228         FPRINTFTIME changes strftime.c has forked from glibc.
52229
52230 2006-06-29  Eric Blake  <ebb9@byu.net>
52231
52232         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
52233
52234 2006-06-29  Eric Blake  <ebb9@byu.net>
52235
52236         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
52237
52238 2006-06-29  Eric Blake  <ebb9@byu.net>
52239
52240         * lib/stat_.h: New file.
52241
52242 2006-06-29  Eric Blake  <ebb9@byu.net>
52243
52244         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
52245         unused static function.
52246
52247 2006-06-29  Eric Blake  <ebb9@byu.net>
52248
52249         * doc/functions.texi (Function Portability): Document missing lstat
52250         on mingw.
52251
52252 2006-06-29  Eric Blake  <ebb9@byu.net>
52253
52254         * MODULES.html.sh: Add sys_stat.
52255         * modules/sys_stat: New module.
52256         * modules/mkstemp (Depends-on): Add sys_stat.
52257
52258 2006-06-29  Derek R. Price  <derek@ximbiot.com>
52259
52260         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
52261
52262 2006-06-29  Derek R. Price  <derek@ximbiot.com>
52263
52264         * m4/c-bs-a.m4: Removed.
52265
52266 2006-06-29  Derek R. Price  <derek@ximbiot.com>
52267
52268         * lib/strftime.c: Assume strftime() exists.
52269
52270 2006-06-29  Derek Price  <derek@ximbiot.com>
52271
52272         * modules/c-bs-a: Removed - \a is C89.
52273         * MODULES.html.sh: Remove c-bs-a.
52274
52275 2006-06-29  Bruno Haible  <bruno@clisp.org>
52276
52277         * modules/wcwidth (License): Change to LGPL.
52278
52279 2006-06-28  Simon Josefsson  <jas@extundo.com>
52280
52281         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
52282         on _WIN32.
52283
52284         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
52285         getnameinfo.
52286
52287 2006-06-28  Simon Josefsson  <jas@extundo.com>
52288
52289         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
52290
52291 2006-06-28  Simon Josefsson  <jas@extundo.com>
52292
52293         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
52294         functions there.  It will succeed on Windows XP, but on Windows
52295         2000 and (presumably) earlier, it will fail, and use the internal
52296         re-implementation.
52297         (use_win32_p): New function.
52298         (getaddrinfo): Use strtoul on servname, to support numeric ports.
52299         Support AI_NUMERICSERV to disable getservbyname.
52300         (getnameinfo): New function, only supports
52301         NI_NUMERICHOST|NI_NUMERICSERV for now.
52302
52303         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
52304         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
52305         getnameinfo.
52306
52307 2006-06-28  Eric Blake  <ebb9@byu.net>
52308
52309         * modules/wcwidth: New file.
52310         * modules/mbchar (Depends-on): Add wcwidth.
52311         * modules/mbswidth (Depends-on): Add wcwidth.
52312         * MODULES.html.sh: Add wcwidth.
52313
52314 2006-06-28  Eric Blake  <ebb9@byu.net>
52315
52316         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
52317         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
52318
52319 2006-06-28  Eric Blake  <ebb9@byu.net>
52320
52321         * lib/xvasprintf.h: Fix comments.
52322
52323 2006-06-28  Eric Blake  <ebb9@byu.net>
52324
52325         * lib/mbchar.h (wcwidth): Include wcwidth.h.
52326         * lib/mbswidth.c (wcwidth): Move from here...
52327         * lib/wcwidth.h: ...to this new file.
52328
52329 2006-06-28  Derek R. Price  <derek@ximbiot.com>
52330
52331         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
52332
52333         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
52334         it's obsolete.
52335         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
52336
52337 2006-06-28  Derek R. Price  <derek@ximbiot.com>
52338
52339         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
52340         Autoconf 2.60 says this stuff was obsolete.
52341
52342 2006-06-28  Bruno Haible  <bruno@clisp.org>
52343
52344         * modules/wcwidth (Files): Add m4/wchar_t.m4.
52345
52346 2006-06-28  Bruno Haible  <bruno@clisp.org>
52347
52348         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
52349         gt_TYPE_WCHAR_T.
52350
52351 2006-06-28  Bruno Haible  <bruno@clisp.org>
52352
52353         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
52354         declaration for wcwidth.
52355         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
52356
52357 2006-06-28  Bruno Haible  <bruno@clisp.org>
52358
52359         * lib/mkdtemp.c [MINGW]: Include <io.h>.
52360         (mkdir): Define using _mkdir.
52361
52362 2006-06-28  Bruno Haible  <bruno@clisp.org>
52363
52364         * lib/getaddrinfo.h: Fix POSIX URL.
52365         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
52366         _WIN32.
52367         (use_win32_p): Make static.
52368         (getaddrinfo): Reject service name if it is empty or does not consist
52369         solely of decimal digits, or if its value is > 65535.
52370         (getnameinfo): Remove useless casts.
52371
52372 2006-06-27  Simon Josefsson  <jas@extundo.com>
52373
52374         * modules/sys_select: New file, suggested by Bruno Haible, Paul
52375         Eggert and Martin Lambers.
52376
52377 2006-06-27  Simon Josefsson  <jas@extundo.com>
52378
52379         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
52380         Eggert and Martin Lambers.
52381
52382 2006-06-27  Bruno Haible  <bruno@clisp.org>
52383
52384         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
52385         result to 0, not to empty.
52386         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
52387
52388 2006-06-27  Bruno Haible  <bruno@clisp.org>
52389
52390         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
52391
52392 2006-06-26  Simon Josefsson  <jas@extundo.com>
52393
52394         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
52395         present.
52396
52397 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
52398
52399         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
52400         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
52401         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
52402
52403 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
52404
52405         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
52406
52407 2006-06-26  Bruno Haible  <bruno@clisp.org>
52408
52409         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
52410
52411 2006-06-26  Bruno Haible  <bruno@clisp.org>
52412
52413         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
52414
52415 2006-06-26  Bruno Haible  <bruno@clisp.org>
52416
52417         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
52418         SGI C compiler in pre-C99 mode.
52419         Suggested by Mark D. Baushke and Larry Jones.
52420
52421 2006-06-26  Bruno Haible  <bruno@clisp.org>
52422
52423         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
52424         WCHAR_MAX.
52425         Reported by Mark D. Baushke and Larry Jones.
52426
52427 2006-06-26  Bruno Haible  <bruno@clisp.org>
52428
52429         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
52430         in pre-C99 mode.
52431         Suggested by Mark D. Baushke and Larry Jones.
52432
52433 2006-06-23  Simon Josefsson  <jas@extundo.com>
52434             Bruno Haible  <bruno@clisp.org>
52435
52436         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
52437         Emit mostlyclean-local rule.
52438         (func_emit_tests_Makefile_am): Likewise.
52439         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
52440
52441 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
52442
52443         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
52444
52445 2006-06-23  Bruno Haible  <bruno@clisp.org>
52446
52447         * tests/test-stdint.c: Update to match ISO C 99 Technical
52448         Corrigendum 1.
52449
52450 2006-06-23  Bruno Haible  <bruno@clisp.org>
52451
52452         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
52453
52454 2006-06-23  Bruno Haible  <bruno@clisp.org>
52455
52456         * lib/stdint_.h: Treat IRIX like OpenBSD.
52457
52458 2006-06-23  Bruno Haible  <bruno@clisp.org>
52459
52460         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
52461         ISO C 99 Technical Corrigendum 1.
52462
52463 2006-06-22  Simon Josefsson  <jas@extundo.com>
52464
52465         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
52466         MinGW.
52467
52468 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
52469
52470         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
52471         needed.  Some compiler complained about some of them.  Problem reported
52472         by Larry Jones in
52473         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
52474
52475 2006-06-21  Simon Josefsson  <jas@extundo.com>
52476
52477         * tests/test-getaddrinfo.c: New file.
52478
52479         * modules/getaddrinfo-tests: New file.
52480
52481         * MODULES.html.sh: Add inet_pton.
52482
52483         * modules/inet_pton: New file.
52484
52485 2006-06-21  Simon Josefsson  <jas@extundo.com>
52486
52487         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
52488         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
52489         of using the (limited) gnulib implementation on Windows XP.
52490
52491         * m4/inet_pton.m4: New file.
52492
52493 2006-06-21  Simon Josefsson  <jas@extundo.com>
52494
52495         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
52496         variable.
52497
52498         * lib/socket_.h: Don't define WINVER.
52499
52500         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
52501         slightly modified to work in gnulib.
52502
52503 2006-06-21  Simon Josefsson  <jas@extundo.com>
52504
52505         * doc/gnulib.texi (Windows sockets): Add.
52506
52507 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
52508
52509         * lib/read-file.c (fread_file): Start with buffer allocation of
52510         0 bytes rather than 1 byte; this simplifies the code.
52511         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
52512         code to free buffer and save/restore errno.
52513         (internal_read_file): Remove unused local.
52514
52515 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
52516
52517         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
52518         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
52519         Problem reported by Denis Excoffier in
52520         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
52521
52522 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52523
52524         * modules/sys_socket, modules/socklen: Include sys/types since
52525         FreeBSD 4.x's sys/socket.h needs it.
52526
52527 2006-06-19  Simon Josefsson  <jas@extundo.com>
52528
52529         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
52530
52531 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
52532
52533         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
52534
52535 2006-06-19  Bruno Haible  <bruno@clisp.org>
52536
52537         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
52538         and FULL_PATH_INTTYPES_H in angle brackets.
52539         Reported by Mark D. Baushke <mdb@gnu.org>.
52540
52541 2006-06-17  Eric Blake  <ebb9@byu.net>
52542
52543         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
52544         errno.
52545
52546 2006-06-17  Bruno Haible  <bruno@clisp.org>
52547
52548         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
52549         <sys/inttypes.h>.
52550
52551 2006-06-17  Bruno Haible  <bruno@clisp.org>
52552
52553         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
52554         whether errno is declared. Assume <errno.h> declares errno.
52555
52556 2006-06-17  Bruno Haible  <bruno@clisp.org>
52557
52558         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
52559
52560 2006-06-17  Bruno Haible  <bruno@clisp.org>
52561
52562         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
52563         problem on Solaris 2.5.1.
52564
52565 2006-06-16  Eric Blake  <ebb9@byu.net>
52566
52567         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
52568         * lib/unicodeio.c [!defined errno]: Likewise.
52569         * lib/strtol.c [!defined errno]: Likewise.
52570         * lib/strtod.c [!defined errno]: Likewise.
52571
52572 2006-06-15  Eric Blake  <ebb9@byu.net>
52573
52574         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
52575
52576 2006-06-15  Eric Blake  <ebb9@byu.net>
52577
52578         * config/srclist.txt (ssize_t.m4): Lose sync.
52579
52580 2006-06-15  Bruno Haible  <bruno@clisp.org>
52581
52582         * modules/stdint (Files): Include m4/full-header-path.m4,
52583         m4/size_max.m4, m4/wchar_t.m4.
52584         (Makefile.am): Many more substitutions.
52585         * modules/stdint-tests: New file.
52586         * tests/test-stdint.c: New file.
52587
52588 2006-06-15  Bruno Haible  <bruno@clisp.org>
52589
52590         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
52591         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
52592         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
52593         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
52594         gl_CHECK_TYPE_SAME): New macros.
52595
52596 2006-06-15  Bruno Haible  <bruno@clisp.org>
52597
52598         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
52599
52600 2006-06-15  Bruno Haible  <bruno@clisp.org>
52601
52602         * lib/stdint_.h: Rewritten to be fully auto-configured.
52603         Fixes bug on HP-UX/IA64.
52604
52605 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
52606
52607         * lib/getdate.y (__attribute__): Don't define if already defined.
52608         Problem reported by Larry Jones.
52609         * lib/utimens.c (__attribute__): Likewise.
52610
52611 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
52612
52613         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
52614         reported by Andreas Schwab.
52615
52616 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52617             Bruno Haible  <bruno@clisp.org>
52618
52619         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
52620         check for the declaration of strnlen and a run test that exposes the
52621         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
52622         rpl_strndup.
52623
52624 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52625             Bruno Haible  <bruno@clisp.org>
52626
52627         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
52628
52629 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52630
52631         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
52632         compile test, for Tru64 4.0D.
52633
52634 2006-05-28  Karl Berry  <karl@gnu.org>
52635
52636         * config/srclist.txt (printf-args.c): lose sync.
52637
52638 2006-05-26  Martin Lambers  <marlam@marlam.de>
52639
52640         * lib/getpass.c: Updates the test for the native W32 API, and adds
52641         missing includes, thus fixing compilation warnings.
52642
52643 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
52644
52645         * lib/exclude.c (exclude_fnmatch): New function.
52646         (excluded_file_name): Call exclude_fnmatch.
52647         * lib/exclude.h (excluded_file_name): New prototype
52648
52649 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
52650
52651         * lib/tempname.c (small_open, large_open): New macros.
52652         (__open, __open64) [!_LIBC]: Remove.
52653         (__gen_tempname): Use small_open and large_open instead of __open
52654         and __open64.  This fixes a portability bug on HP-UX 11.11i
52655         reported by Simon Wing-Tang in
52656         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
52657
52658 2006-05-24  Bruno Haible  <bruno@clisp.org>
52659
52660         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
52661         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
52662         Reported by Thorsten Maerz <torte@netztorte.de> via
52663         Aaron Stone <aaron@serendipity.cx>.
52664
52665 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
52666
52667         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
52668         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
52669         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
52670         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
52671         not really conditional on the cache.
52672         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
52673
52674 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
52675
52676         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
52677         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
52678         (my_usleep): Don't mishandle maximum value.
52679
52680 2006-05-19  Jim Meyering  <jim@meyering.net>
52681
52682         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
52683
52684 2006-05-17  Bruno Haible  <bruno@clisp.org>
52685
52686         Cygwin portability.
52687         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
52688
52689 2006-05-17  Bruno Haible  <bruno@clisp.org>
52690
52691         * lib/stdint_.h: Fix recognition of Cygwin.
52692
52693 2006-05-15  Bruno Haible  <bruno@clisp.org>
52694
52695         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
52696         on libtool patch by Ralf Wildenhues.
52697
52698 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
52699
52700         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
52701         test for C99 conformance; (bool) 0.5 is an integer constant
52702         expression, but (bool) -0.5 is not.  Problem reported by Fedor
52703         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
52704
52705 2006-05-11  Simon Josefsson  <jas@extundo.com>
52706
52707         * m4/xvasprintf.m4: Fix obvious typo.
52708
52709 2006-05-11  Jim Meyering  <jim@meyering.net>
52710
52711         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
52712         James Lemley.
52713
52714 2006-05-10  Simon Josefsson  <jas@extundo.com>
52715
52716         * lib/md4.c: Typo fix, update copyright years.
52717         (K1, K2): Don't use L because it turn computations into 64-bit on
52718         64-bit platforms.
52719
52720 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
52721
52722         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
52723         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
52724         unwanted sign propagation, e.g., on hosts with 64-bit int.
52725         There still are some problems with reeelly weird theoretical hosts
52726         (e.g., 33-bit int) but it's not worth worrying about now.
52727         * lib/sha1.c (rol): Likewise.
52728         (K1, K2, K3, K4): Remove unnecessary L suffix.
52729
52730 2006-05-10  Bruno Haible  <bruno@clisp.org>
52731
52732         * lib/des.c: Cast to avoid warnings.
52733
52734 2006-05-09  Bruno Haible  <bruno@clisp.org>
52735
52736         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
52737         (Depends-on): Depend also on xsize, stdarg.
52738         (configure.ac): Add gl_XVASPRINTF.
52739
52740 2006-05-09  Bruno Haible  <bruno@clisp.org>
52741
52742         * m4/xvasprintf.m4: New file.
52743
52744 2006-05-09  Bruno Haible  <bruno@clisp.org>
52745
52746         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
52747         (EOVERFLOW): Define fallback value.
52748         (xstrcat): New function.
52749         (xvasprintf): Recognize the special case of a string concatenation.
52750
52751 2006-05-08  Eric Blake  <ebb9@byu.net>
52752
52753         * gnulib-tool (func_version): Base copyright year on CVS date.
52754         (func_emit_copyright_notice): New function.
52755         (func_emit_lib_Makefile_am): Use it.
52756         (func_emit_tests_Makefile_am): Likewise.
52757         (func_import): Likewise.
52758
52759 2006-05-08  Bruno Haible  <bruno@clisp.org>
52760
52761         * modules/stdarg: New file.
52762         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
52763
52764 2006-05-08  Bruno Haible  <bruno@clisp.org>
52765
52766         * m4/stdarg.m4: New file, from GNU gettext.
52767
52768 2006-05-08  Bruno Haible  <bruno@clisp.org>
52769
52770         * config/srclist.txt (build-aux/config.rpath): different from latest
52771         release.
52772
52773 2006-05-08  Bruno Haible  <bruno@clisp.org>
52774
52775         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
52776
52777 2006-05-05  Jim Meyering  <jim@meyering.net>
52778
52779         * m4/warning.m4: New file, derived from bison's file by the same name.
52780
52781 2006-05-03  Bruno Haible  <bruno@clisp.org>
52782
52783         * lib/stdint_.h: Shorter URL.
52784         * lib/inttypes.h: Likewise.
52785
52786 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
52787
52788         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
52789
52790 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
52791
52792         * lib/verify.h: Document the internals better.  Most of this change
52793         was written by Bruno Haible.
52794
52795 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
52796
52797         * doc/verify.texi: New file, partly based on a proposal by
52798         Bruno Haible.
52799
52800 2006-05-02  Bruno Haible  <bruno@clisp.org>
52801
52802         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
52803         test from here...
52804         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
52805
52806 2006-04-29  Bruno Haible  <bruno@clisp.org>
52807
52808         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
52809         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
52810
52811 2006-04-29  Bruno Haible  <bruno@clisp.org>
52812
52813         * gnulib-tool: Make --update option actually work.
52814
52815 2006-04-29  Bruno Haible  <bruno@clisp.org>
52816
52817         * doc/gcd.texi: New file.
52818         * doc/gnulib.texi: Include it.
52819
52820 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
52821
52822         * lib/getdate.y (get_date): When adding relative date, start with the
52823         initial time, not with the result of the first mktime call.
52824
52825 2006-04-25  Bruno Haible  <bruno@clisp.org>
52826
52827         * gnulib-tool (func_import): Output the include directives in three
52828         blocks, sorted separately.
52829         Reported by Ben Pfaff <blp@cs.stanford.edu>.
52830
52831 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
52832
52833         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
52834         to define main with arguments, for C++.  Reported by Eric Blake.
52835         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
52836         Prefer 'int main ()' to 'int main (void)', for C++.
52837         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
52838         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
52839         for 'main', for C99 and C++.
52840
52841 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
52842
52843         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
52844         Don't assume that exit status -1 is valid.
52845         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
52846         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
52847         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
52848         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
52849         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
52850         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
52851         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
52852         functions can be used without declaring them, or that you can
52853         exit with status -1.
52854         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
52855
52856 2006-04-24  Karl Berry  <karl@gnu.org>
52857
52858         * config/srclist.txt (longdouble.m4): sync lost.
52859
52860 2006-04-24  Eric Blake  <ebb9@byu.net>
52861
52862         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
52863
52864 2006-04-24  Bruno Haible  <bruno@clisp.org>
52865
52866         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
52867         poll() implementation in AIX.
52868         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52869
52870 2006-04-24  Bruno Haible  <bruno@clisp.org>
52871
52872         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
52873         assigned exactly once.
52874
52875 2006-04-23  Claudio Fontana  <claudio@gnu.org>
52876             Bruno Haible  <bruno@clisp.org>
52877
52878         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
52879         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
52880         for AM_CPPFLAGS.
52881
52882 2006-04-23  Bruno Haible  <bruno@clisp.org>
52883
52884         * modules/copy-file: Depend on unistd.
52885         * modules/execute: Likewise.
52886         * modules/fatal-signal: Likewise.
52887         * modules/findprog: Likewise.
52888         * modules/mkdtemp : Likewise.
52889         * modules/pipe: Likewise.
52890         * modules/wait-process: Likewise.
52891
52892 2006-04-23  Bruno Haible  <bruno@clisp.org>
52893
52894         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
52895         condition was already detected.
52896         Reported by Ben Pfaff <blp@cs.stanford.edu>.
52897
52898 2006-04-23  Bruno Haible  <bruno@clisp.org>
52899
52900         * lib/copy-file.c: Include <unistd.h> unconditionally.
52901         * lib/execute.c: Likewise.
52902         * lib/fatal-signal.c: Likewise.
52903         * lib/findprog.c: Likewise.
52904         * lib/mkdtemp.c: Likewise.
52905         * lib/pipe.h: Likewise.
52906         * lib/pipe.c: Likewise.
52907         * lib/wait-process.h: Likewise.
52908
52909 2006-04-23  Bruno Haible  <bruno@clisp.org>
52910
52911         * gnulib-tool (func_usage): Fix --import description. Document
52912         --update.
52913         (func_import): Create temporary file in a temporary directory, if
52914         --dry-run is specified. Silence errors from 'grep' when there are no
52915         m4 files in $m4dir.
52916         (func_create_testdir): Silence errors from 'grep' when there are no
52917         m4 files in $m4dir.
52918         Reported by Karl Berry <karl@freefriends.org>.
52919
52920 2006-04-20  Bruno Haible  <bruno@clisp.org>
52921
52922         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
52923         one argument, so that the code will be portable to Autoconf 2.60.
52924         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
52925         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
52926         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
52927
52928 2006-04-19  Derek Price  <derek@ximbiot.com>
52929             Eric Blake  <ebb9@byu.net>
52930
52931         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
52932         rather than "/full/path.h".  Update comment to match.  Shorten &
52933         generalize m4_translit call via AS_TR_CPP.
52934
52935 2006-04-19  Derek Price  <derek@ximbiot.com>
52936             Eric Blake  <ebb9@byu.net>
52937
52938         * lib/inttypes.h: Correct grammar in comment.
52939
52940 2006-04-18  Derek Price  <derek@ximbiot.com>
52941             Paul Eggert  <eggert@cs.ucla.edu>
52942
52943         * modules/inttypes: New file.
52944         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
52945
52946 2006-04-18  Derek Price  <derek@ximbiot.com>
52947             Paul Eggert  <eggert@cs.ucla.edu>
52948
52949         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
52950         New files.
52951
52952 2006-04-18  Derek Price  <derek@ximbiot.com>
52953             Paul Eggert  <eggert@cs.ucla.edu>
52954
52955         * lib/inttypes.h: New file.
52956         * lib/strtoimax.c: Assume <inttypes.h>.
52957
52958 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
52959
52960         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
52961         isn't mounted.  Problem reported by Kir Kolyshkin.
52962
52963 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
52964
52965         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
52966         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
52967         Derek R. Price.
52968         * lib/regex.h (RE_DUP_MAX): Update comment to match current
52969         implementation.
52970
52971 2006-04-12  Eric Blake  <ebb9@byu.net>
52972
52973         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
52974         is now done automatically by the corresponding Autoconf macro.
52975
52976 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
52977
52978         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
52979         time_r.h.
52980
52981 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
52982
52983         Merge regex changes from libc, removing some of our
52984         POSIX-conformance changes that were rejected and redoing them in a
52985         less-intrusive way.
52986
52987         * lib/regcomp.c (re_compile_internal, init_dfa):
52988         Length arg is now size_t, not Idx.  All uses changed.
52989         (peek_token): Forward decl now says internal_function.
52990         (__re_error_msgid, __re_error_msgid_idx):
52991         Now static rather than extern with attribute_hidden.
52992         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
52993         For some reason libc prefers K&R style defns for external functions.
52994         (regerror) [!defined _LIBC]: Likewise.
52995         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
52996         (seek_collating_symbol_entry, lookup_collation_sequence_value):
52997         (build_range_exp, build_collating_symbol):
52998         Use K&R-style defn.
52999         (re_compile_fastmap): Use '\0' to memset, not 0.
53000         (utf8_sb_map): Make the calculations more obvious.
53001         (init_dfa, parse_bracket_exp, build_charclass_op):
53002         Call calloc and cast result, as glibc does.
53003         (init_word_char, fetch_token, peek_token, peek_token_bracket):
53004         (build_range_exp, build_collating_symbol):
53005         Now internal functions.
53006
53007         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
53008
53009         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
53010         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
53011         Don't depend on VMS; depend on __VMS instead, for POSIX
53012         namespace cleanness.
53013         (regoff_t): Define to ssize_t, not long int.
53014
53015         Remove the REG_ macros named below.  Instead, make the old names
53016         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
53017         __USE_GNU_REGEX.
53018         (REG_BACKSLASH_ESCAPE_IN_LISTS):
53019         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
53020         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
53021         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
53022         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
53023         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
53024         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
53025         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
53026         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
53027         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
53028         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
53029         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
53030         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
53031         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
53032         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
53033         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
53034         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
53035         (REG_NREGS):
53036         Remove.  All uses replaced by the old RE_* names.
53037         (RE_BACKSLASH_ESCAPE_IN_LISTS):
53038         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
53039         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
53040         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
53041         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
53042         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
53043         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
53044         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
53045         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
53046         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
53047         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
53048         Don't bother having these macros be independent of each others'
53049         values, since they no longer exist in the POSIX name space.
53050
53051         Rename the following member names back to their old names,
53052         unless !__USE_GNU_REGEX.  All uses changed back.
53053         (buffer): Renamed from re_buffer.
53054         (allocated): Renamed from re_allocated.
53055         (used): Renamed from re_used.
53056         (syntax): Renamed from re_syntax.
53057         (fastmap): Renamed from re_fastmap.
53058         (translate): Renamed from re_translate.
53059         (can_be_null): Renamed from re_can_be_null.
53060         (regs_allocated): Renamed from re_regs_allocated.
53061         (fastmap_accurate): Renamed from re_fastmap_accurate.
53062         (no_sub): Renamed from re_no_sub.
53063         (not_bol): Renamed from re_not_bol.
53064         (not_eol): Renamed from re_not_eol.
53065         (newline_anchor): Renamed from re_newline_anchor.
53066         (num_regs): Renamed from rm_num_regs.
53067         (start): Renamed from rm_start.
53068         (end): Renamed from rm_end.
53069
53070         (free_state): Move up a bit.
53071
53072         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
53073         #define to be empty.
53074         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
53075         when that is what is intended.
53076         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
53077         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
53078         (MAX): New macro.
53079         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
53080         All uses changed back to re_malloc, etc.  It's now the caller's
53081         responsibility to check for overflow; all callers changed.
53082         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
53083         (re_x2nrealloc): Remove.
53084         (free_state): Remove decl.
53085
53086         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
53087         (re_set_registers, re_exec):
53088         Use K&R-style defn.
53089
53090         2006-01-31  Roland McGrath  <roland@redhat.com>
53091
53092         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
53093         Reported by Mike Frysinger <vapier@gentoo.org>.
53094
53095         2006-01-15  Andreas Jaeger  <aj@suse.de>
53096
53097         [BZ #1950]
53098         * lib/regex_internal.c (re_string_reconstruct): Adjust for
53099         build_wcs_upper_buffer change.
53100         (build_wcs_upper_buffer): Change return type.
53101
53102         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
53103
53104         * lib/regex_internal.h: Include <stdint.h> if available.
53105
53106         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
53107
53108         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
53109
53110         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
53111
53112         * lib/regcomp.c: Adjust for changed secondary hash function.
53113
53114         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
53115
53116         * lib/regex.h: Pretty printing.
53117         Clean up namespace a bit.
53118
53119         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
53120
53121         * lib/regexec.c (update_cur_sifted_state, check_arrival,
53122         check_arrival_add_next_nodes): Avoid using uninitialized variable.
53123
53124         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
53125                     Ulrich Drepper  <drepper@redhat.com>
53126
53127         [BZ #1302]
53128         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
53129         changed.
53130         (bitset_word_t): Renamed from bitset_word.  All uses changed.
53131
53132         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
53133
53134         [BZ #281]
53135         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
53136         * lib/regcomp.c: Remove unnecessary uses of
53137         unsigned RE_TRANSLATE_TYPE.
53138         * lib/regex_internal.h: Likewise.
53139         * lib/regex_internal.c: Likewise.
53140         * lib/regexec.c: Likewise.
53141         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
53142
53143         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
53144
53145         * lib/regexec.c (find_recover_state): Remove unnecessary
53146         initialization.
53147         (transit_state_bkref): Make DFA a const pointer.
53148         (get_subexp): Likewise.
53149         (check_arrival): Likewise.
53150         (update_cur_sifted_state): Likewise.
53151         (re_search_internal): Likewise.
53152         (prune_impossible_nodes): Likewise.
53153         (acquire_init_state_context): Likewise.
53154         (proceed_next_node): Likewise.
53155         (set_regs): Likewise.
53156         (free_fail_stack_return): Likewise.
53157         (check_arrival_expand_ecl): Mark DFA parameter as const.
53158         (check_arrival_expand_ecl_sub): Likewise.
53159         (check_subexp_limits): Likewise.
53160         (sub_epsilon_src_nodes):  Likewise.
53161         (add_epsilon_src_nodes):  Likewise.
53162         (merge_state_array): Likewise.
53163         (update_regs): Likewise.
53164         (build_trtable): Likewise.
53165         (sift_states_backward): Mark MCTX parameter as const.
53166         (build_sifted_states): Likewise.
53167         (update_cur_sifted_state): Likewise.
53168         (sift_states_mkref): Likewise.
53169         (check_arrival_expand_ecl): Mark eclosure as const.
53170         (check_dst_limits_calc_pos_1): Likewise.
53171         * lib/regex_internal.h (re_match_context_t): Make dfa a const
53172         pointer.
53173
53174         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
53175
53176         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
53177         (transit_state_sb): Likewise.
53178         (transit_state_mb): Likewise.
53179         (sift_states_iter_mb): Likewise.
53180         (check_arrival_add_next_nodes): Likewise.
53181         (check_node_accept_bytes): Change first parameter to pointer-to-const.
53182         [_LIBC] (re_search_2_stub): Use mempcpy.
53183
53184         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
53185         mbrtowc for very simple UTF-8 case.
53186
53187         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
53188         a pointer-to-const.
53189         (re_acquire_state_context): Likewise.
53190         * lib/regex_internal.h: Adjust prototypes.
53191
53192         * lib/regex.c: Prevent using C++ compilers.
53193
53194         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
53195         (re_acquire_state_context): Likewise.
53196
53197 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
53198
53199         * modules/regex (Depends-on): Add ssize_t.
53200
53201 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
53202
53203         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
53204         translation table.
53205
53206 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
53207
53208         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
53209
53210 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
53211             Bruno Haible  <bruno@clisp.org>
53212
53213         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
53214         <sys/types.h> and <inttypes.h>.
53215
53216 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53217
53218         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
53219         `__error_t_defined', so argp.h will not typedef the former.
53220
53221 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
53222
53223         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
53224         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
53225         glibc names.  Even if glibc is changed to conform to POSIX, the
53226         traditional names will be available anyway, since regex depends on
53227         the extensions module.  Also, fix a longstanding typo in the
53228         implementation of Spencer ERE test #75 from grep 2.3.  Problems
53229         reported by Emanuele Giaquinta.  Also, change sense of cached
53230         variable, so that the message makes sense.
53231
53232 2006-03-24  Simon Josefsson  <jas@extundo.com>
53233
53234         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
53235         including some doc fixes.
53236         (base64_encode_alloc): Fix +1 bug on allocation failures.
53237
53238 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53239
53240         * lib/base64.c (base64_encode): Do not read past end of array with
53241         unsanitized input on systems with CHAR_BIT > 8.
53242
53243 2006-03-24  Eric Blake  <ebb9@byu.net>
53244
53245         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
53246
53247 2006-03-22  Karl Berry  <karl@gnu.org>
53248
53249         * config/srclist.txt (*setenv.[ch]): get from coreutils.
53250         * config/srclistvars.sh (COREUTILS): new var.
53251
53252 2006-03-17  Jim Meyering  <jim@meyering.net>
53253
53254         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
53255         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
53256
53257 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
53258
53259         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
53260         no longer needs it.  Instead, check that regoff_t is as least
53261         as wide as ptrdiff_t.
53262
53263         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
53264         so that our regex.h stays compatible with the installed regex.
53265         This is helpful for installers who configure --without-included-regex.
53266         Problem reported by Emanuele Giaquinta.
53267
53268 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
53269
53270         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
53271         Typedef to long int, not to off_, as POSIX will likely change
53272         in that direction.
53273
53274 2006-03-15  Eric Blake  <ebb9@byu.net>
53275
53276         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
53277
53278 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
53279
53280         * lib/argp-help.c (validate_uparams): Fix typo
53281         * lib/argp-parse.c (argp_default_options): Consistently begin help
53282         messages with a lowercase letter.
53283
53284 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
53285
53286         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
53287         overrun buffers and shouldn't be used (much as gets shouldn't be
53288         used).
53289         * lib/time_r.c (asctime_r, ctime_r): Likewise.
53290
53291 2006-03-08  Simon Josefsson  <jas@extundo.com>
53292
53293         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
53294         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53295
53296 2006-03-08  Simon Josefsson  <jas@extundo.com>
53297
53298         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
53299         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53300
53301 2006-03-08  Simon Josefsson  <jas@extundo.com>
53302
53303         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
53304         signal that configure disabled the device.
53305
53306 2006-03-08  Simon Josefsson  <jas@extundo.com>
53307
53308         * build-aux/maint.mk: Fix refresh-po, to handle no translated
53309         languages.
53310
53311 2006-03-07  Simon Josefsson  <jas@extundo.com>
53312
53313         * modules/getopt (Depends-on): Add unistd.
53314
53315         * modules/unistd: New file.
53316
53317 2006-03-07  Simon Josefsson  <jas@extundo.com>
53318
53319         * modules/gc-random: New file.
53320
53321 2006-03-07  Simon Josefsson  <jas@extundo.com>
53322
53323         * m4/unistd_h.m4: New file.
53324
53325 2006-03-07  Simon Josefsson  <jas@extundo.com>
53326
53327         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
53328         test to be side-effect free by storing the result in the cache
53329         variable gl_cv_lib_readline, and moving the assignment of
53330         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
53331         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53332
53333 2006-03-07  Simon Josefsson  <jas@extundo.com>
53334
53335         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
53336         error on missing devices (the functions will return an error).
53337
53338         * m4/gc.m4: Move random stuff to gc-random.m4
53339
53340 2006-03-07  Simon Josefsson  <jas@extundo.com>
53341
53342         * lib/unistd_.h: New file.
53343
53344 2006-03-07  Simon Josefsson  <jas@extundo.com>
53345
53346         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
53347
53348 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
53349
53350         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
53351         Problem reported by Juan Manuel Guerrero.
53352
53353 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
53354
53355         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
53356         the unistd module.
53357         * lib/getlogin_r.c: Likewise.
53358         * lib/getlogin_r.h: Likewise.
53359         * lib/glob.c: Likewise.
53360         * lib/pagealign_alloc.c: Likewise.
53361         * lib/unistd_.h: Remove; no longer needed.
53362
53363 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
53364
53365         * MODULES.html.sh (Support for systems lacking POSIX:2001):
53366         Add unistd.
53367         * modules/c-stack (Depends-on): Add unistd.
53368         * modules/getlogin_r: Likewise.
53369         * modules/glob: Likewise.
53370         * modules/pagealign_alloc: Likewise.
53371         * modules/unistd (Files): Remove lib/unistd_.h.
53372         (EXTRA_DIST): Remove.
53373         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
53374         need unistd_.h.
53375         (MOSTLYCLEANFILES): Remove unistd.h-t.
53376
53377 2006-03-03  Simon Josefsson  <jas@extundo.com>
53378
53379         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
53380
53381 2006-03-03  Simon Josefsson  <jas@extundo.com>
53382
53383         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
53384         libidn and bison.
53385
53386 2006-03-03  Simon Josefsson  <jas@extundo.com>
53387
53388         * build-aux/maint.mk: Add indent target.
53389
53390 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
53391
53392         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
53393         our replacement poll.h in any case, to avoid a differing
53394         declaration from a system header.  Seen on AIX.
53395
53396 2006-03-01  Simon Josefsson  <jas@extundo.com>
53397
53398         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
53399         <kasal@ucw.cz>.
53400
53401 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53402
53403         * modules/gettime (Depends-on): Add extensions module.
53404         * modules/nanosleep (Depends-on): Likewise.
53405         * modules/settime (Depends-on): Likewise.
53406
53407 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
53408
53409         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
53410         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
53411         pedantically.
53412         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
53413         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
53414
53415         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
53416         not "==".  Reported by Ralf Wildenhues.
53417
53418 2006-03-01  Karl Berry  <karl@gnu.org>
53419
53420         * doc/Copyright/request-*: new files, synced from gnuorg.
53421
53422 2006-03-01  Karl Berry  <karl@gnu.org>
53423
53424         * config/srclist.txt (Copyright/*): new entries.
53425
53426 2006-02-28  Simon Josefsson  <jas@extundo.com>
53427
53428         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
53429
53430 2006-02-27  Simon Josefsson  <jas@extundo.com>
53431
53432         * lib/base64.h: Indent #define's.  From Jim Meyering
53433         <jim@meyering.net>.
53434
53435 2006-02-27  Jim Meyering  <jim@meyering.net>
53436
53437         Revert the change of 2006-02-24, so these files can continue
53438         to be sync'd from gettext.
53439         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
53440         of `config.h'.
53441
53442 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
53443
53444         * modules/intprops: New file.
53445         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
53446         Add intprops.
53447         * modules/getloadavg (Files): Remove lib/intprops.h.
53448         (Depends-on): Add intprops.
53449         * modules/human: Likewise.
53450         * modules/inttostr: Likewise.
53451         * modules/openat: Likewise.
53452         * modules/sig2str: Likewise.
53453         * modules/userspec: Likewise.
53454         * modules/utimecmp: Likewise.
53455         * modules/xnanosleep: Likewise.
53456         * modules/xstrtol: Likewise.
53457
53458 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
53459
53460         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
53461         * modules/lock-tests (TESTS): Use $(EXEEXT).
53462         * modules/tls-tests: Likewise.
53463         * modules/argp-tests: Likewise.
53464         (check_PROGRAMS): New var, replacing...
53465         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
53466
53467 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53468
53469         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
53470         `config.h'.
53471
53472 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
53473
53474         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
53475
53476 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53477
53478         Sync from coreutils.
53479         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
53480         gl_CHDIR_SAFER.
53481
53482 2006-02-22  Jim Meyering  <jim@meyering.net>
53483
53484         Sync from coreutils.
53485         * m4/chdir-safer.m4: New file.
53486
53487 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
53488
53489         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
53490         AT_FDCWD exceeds INT_MAX.
53491         * lib/openat.h (AT_FDCWD): Likewise.
53492
53493 2006-02-17  Eric Blake  <address@hidden>
53494
53495         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
53496
53497 2006-02-16  Simon Josefsson  <jas@extundo.com>
53498
53499         * modules/getaddrinfo (Depends-on): Add sys_socket.
53500
53501 2006-02-15  Simon Josefsson  <jas@extundo.com>
53502
53503         * build-aux/maint.mk: Add dsyntax-check rule.
53504
53505 2006-02-15  Eric Blake  <ebb9@byu.net>
53506
53507         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
53508         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
53509         'present but cannot compile' warnings on cygwin.
53510         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
53511         use ws2tcpip.h if sys/socket.h works.
53512         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
53513         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
53514
53515 2006-02-14  Simon Josefsson  <jas@extundo.com>
53516
53517         * modules/maintainer-makefile (Files): Rename.
53518
53519         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
53520         and (the local) Makefile.cfg to maint-cfg.mk.
53521
53522         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
53523         to the latter.
53524
53525         * modules/maintainer-makefile: New module.
53526
53527         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
53528         severaly stripped to make it possible to build it up from scratch
53529         with reliable tests.
53530
53531         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
53532         fixes to permit overriding the default actions when configure and
53533         makefile are not available.
53534
53535 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
53536
53537         Sync from coreutils.
53538         * modules/lstat (Depends-on): Don't depend on xalloc.
53539         (License): Change from GPL to LGPL, since this is now simply a
53540         replacement for a libc function.
53541
53542 2006-02-14  Jim Meyering  <jim@meyering.net>
53543
53544         Sync from coreutils.
53545
53546         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
53547         failure on deficient systems, and simplify gnulib lgpl dependencies.
53548         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
53549         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
53550
53551         * lib/xalloc-die.c: Remove unused definition of N_.
53552
53553 2006-02-14  Jim Meyering  <jim@meyering.net>
53554
53555         Sync from coreutils.
53556         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
53557         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
53558         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
53559         double-quote uses of that variable, to accommodate the rare case in
53560         which getmntent is available in none of the libraries checked.  This
53561         happens at least on FreeBSD 5.0.
53562
53563 2006-02-13  Simon Josefsson  <jas@extundo.com>
53564
53565         * gnulib-tool (Usage): Fix --import, from
53566         karl@freefriends.org (Karl Berry).
53567
53568 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
53569
53570         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
53571
53572 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
53573
53574         * lib/argp-namefrob.h: Restore changes accidentally lost during the
53575         "autoupdate" on 2005-12-12.
53576
53577 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
53578
53579         * modules/closeout (Depends-on): Remove atexit.
53580
53581 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
53582
53583         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
53584         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
53585
53586 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
53587
53588         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
53589         __EXTENSIONS__ if this causes compilation to fail.  Problem
53590         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
53591         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
53592
53593 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
53594
53595         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
53596         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
53597         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
53598         All uses changed.
53599
53600 2006-01-26  Simon Josefsson  <jas@extundo.com>
53601
53602         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
53603         prototype is visible on mingw32.
53604
53605         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
53606         for mingw32.
53607
53608         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
53609         mingw32).
53610
53611 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
53612
53613         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
53614         attempt to open for write; this always fails, at least on POSIX
53615         hosts.  This reinstates the 2006-01-09 change, which was
53616         inadvertently removed.
53617
53618 2006-01-26  Bruno Haible  <bruno@clisp.org>
53619
53620         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
53621         Reported by Paul Eggert.
53622
53623 2006-01-26  Bruno Haible  <bruno@clisp.org>
53624             Paul Eggert  <eggert@cs.ucla.edu>
53625
53626         * lib/stdbool_.h (_Bool)
53627         [(! (defined __cplusplus || defined __BEOS__)
53628           && !defined __GNUC__
53629           && !(defined __HP_cc || defined __xlc__
53630                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
53631                || defined __sgi))]:
53632         #define to signed char in these cases too; this simplifies
53633         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
53634         etc., separately) and makes it more conservative.
53635
53636 2006-01-25  Simon Josefsson  <jas@extundo.com>
53637
53638         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
53639         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
53640         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
53641
53642 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
53643
53644         * lib/argp-namefrob.h: Bugfix. Remove stray #
53645
53646 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
53647
53648         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
53649         so that we test the test.
53650         Check for yet another HP-UX cc bug involving *bool |= bool.
53651
53652 2006-01-25  Karl Berry  <karl@gnu.org>
53653
53654         * config/srclist.txt (vasnprintf.c): sync lost.
53655
53656 2006-01-25  Jim Meyering  <jim@meyering.net>
53657
53658         Sync from the stable (b5) branch of coreutils:
53659
53660         * lib/fts.c (fts_children): Don't let close() clobber errno from
53661         failed fchdir().
53662
53663         * lib/fts.c (fts_stat): When following a symlink-to-directory,
53664         don't necessarily interpret stat-fails+lstat-succeeds as indicating
53665         a dangling symlink.  That can also happen at least for ELOOP.
53666         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
53667         FYI, this bug predates the inclusion of fts.c in coreutils.
53668
53669         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
53670         in their own block, so pre-c99 compilers don't object.
53671
53672         Avoid the double-free (first in fts_read, second in fts_close) that
53673         would occur when an `active' directory is made inaccessible (e.g.,
53674         via chmod a-x) during a traversal.
53675         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
53676         before returning.  Reproduce this failure by
53677         mkdir -p a/b; cd a; chmod a-x . b
53678         Reported by Stavros Passas.
53679
53680 2006-01-25  Jim Meyering  <jim@meyering.net>
53681
53682         * lib/fileblocks.c: Remove more useless parentheses.
53683         * lib/readutmp.h: Likewise.
53684
53685 2006-01-25  Bruno Haible  <bruno@clisp.org>
53686
53687         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
53688         warnings.
53689         Reported by Paul Eggert.
53690
53691 2006-01-25  Bruno Haible  <bruno@clisp.org>
53692
53693         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
53694         rid of a trap command. For Solaris sh.
53695         Reported by Mark D. Baushke <mdb@gnu.org>.
53696
53697 2006-01-24  Simon Josefsson  <jas@extundo.com>
53698
53699         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
53700         Bruno.
53701
53702 2006-01-24  Karl Berry  <karl@gnu.org>
53703
53704         * config/srclist.txt (argp-namefrob.h): sync lost.
53705
53706 2006-01-24  Jim Meyering  <jim@meyering.net>
53707
53708         * modules/openat (Files): Add lib/intprops.h.
53709         From Mark D. Baushke.
53710
53711 2006-01-24  Jim Meyering  <jim@meyering.net>
53712
53713         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
53714         Reported by Mark D. Baushke.
53715
53716 2006-01-24  Jim Meyering  <jim@meyering.net>
53717
53718         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
53719
53720 2006-01-24  Bruno Haible  <bruno@clisp.org>
53721
53722         * modules/strnlen (Maintainer): Change from glibc to all.
53723
53724 2006-01-24  Bruno Haible  <bruno@clisp.org>
53725
53726         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
53727         Patch by Paul Eggert.
53728
53729 2006-01-24  Bruno Haible  <bruno@clisp.org>
53730
53731         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
53732         already has it.
53733         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
53734         2005-11-26.
53735
53736         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
53737         'signed char' to avoid problems with the built-in _Bool type.
53738         Reported by Paul Eggert on 2005-11-26.
53739
53740 2006-01-24  Bruno Haible  <bruno@clisp.org>
53741
53742         * gnulib-tool (func_import): Avoid constructing complicated sed
53743         expressions inside backquote.
53744         Report and solution by Mark D. Baushke <mdb@gnu.org>.
53745
53746 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
53747
53748         These changes imported from libc.
53749         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
53750         test and two separate function calls.
53751         * lib/strndup.c (__strndup): Add libc_hidden_def.
53752
53753 2006-01-23  Simon Josefsson  <jas@extundo.com>
53754
53755         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
53756         Remove the test_*_SOURCES variable: automake infers it by default.
53757         * modules/tls-tests: Likewise.
53758
53759 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
53760
53761         Work around porting bugs reported by Dieter in
53762         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
53763         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
53764         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
53765         Include "getopt.h" first, to check interface.
53766         (getenv): Declare only if defined HAVE_DECL_GETENV &&
53767         !HAVE_DECL_GETENV.
53768         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
53769         (__strndup): Revert to K&R-style function dfns, the glibc style.
53770         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
53771         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
53772         Include strnlen.h first, to get prototype properly.
53773         (strnlen): Renamed from __strnlen.
53774         Remove weak alias.
53775
53776 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
53777
53778         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
53779
53780 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
53781
53782         * config/srclist.txt: Adjust to reflect glibc reorganization.
53783         This affects only comments.
53784
53785 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
53786
53787          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
53788          Reported by Bruce Korb <bkorb@gnu.org>.
53789
53790 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
53791
53792         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
53793         to pacify gcc -Wswitch-default.
53794
53795 2006-01-22  Bruno Haible  <bruno@clisp.org>
53796
53797         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
53798         temporary buffer for sprintf, take into account the precision also
53799         for 'd', 'i', 'u', 'o', 'x', 'X'.
53800
53801 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
53802
53803         * modules/argp-tests: New module
53804         * tests/test-argp.c: New file
53805         * tests/test-argp-2.sh: New file
53806
53807 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
53808
53809         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
53810         (__argp_base_name): Removed
53811         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
53812         typo.
53813         (__argp_base_name): Provide macro definition or extern declaration
53814         depending on the configuration
53815
53816 2006-01-20  Simon Josefsson  <jas@extundo.com>
53817
53818         * modules/inet_ntop (Depends-on): Depend on sys_socket.
53819
53820 2006-01-20  Simon Josefsson  <jas@extundo.com>
53821
53822         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
53823
53824 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53825
53826         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
53827         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
53828         Suggested by Bruno Haible.
53829
53830 2006-01-20  Karl Berry  <karl@gnu.org>
53831
53832         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
53833         until changes propagate, I guess.
53834
53835 2006-01-19  Simon Josefsson  <jas@extundo.com>
53836
53837         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
53838
53839 2006-01-19  Simon Josefsson  <jas@extundo.com>
53840
53841         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
53842
53843 2006-01-19  Simon Josefsson  <jas@extundo.com>
53844
53845         * gnulib-tool: Set check_PROGRAMS.
53846
53847         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
53848         modules/des-tests, modules/gc-arcfour-tests,
53849         modules/gc-arctwo-tests, modules/gc-des-tests,
53850         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
53851         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
53852         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
53853         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
53854         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
53855         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
53856         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
53857         test_*_SOURCES.
53858
53859 2006-01-18  Simon Josefsson  <jas@extundo.com>
53860
53861         * modules/socklen (Depends-on): Depend on sys_socket.
53862
53863 2006-01-18  Simon Josefsson  <jas@extundo.com>
53864
53865         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
53866         modules/des-tests, modules/gc-arcfour-tests,
53867         modules/gc-arctwo-tests, modules/gc-des-tests,
53868         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
53869         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
53870         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
53871         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
53872         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
53873         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
53874         $(EXEEXT) to automake TESTS variable, for mingw32.
53875
53876 2006-01-17  Simon Josefsson  <jas@extundo.com>
53877
53878         * modules/socklen (Include): Need sys/socket.h.
53879
53880 2006-01-17  Bruno Haible  <bruno@clisp.org>
53881
53882         * modules/ssize_t (Include): Add <sys/types.h>.
53883
53884 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
53885
53886         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
53887         it's not portable and it doesn't work with cross-compiles.
53888         Problem reported by Bruno Haible.  Fix missing-$ typo in
53889         'test "gl_cv_ignore_unused_libraries" ...' that prevented
53890         -zignore from being used with Sun's C compiler.
53891
53892 2006-01-12  Simon Josefsson  <jas@extundo.com>
53893
53894         * lib/base64.c: Fix warning, reported by Bruno Haible
53895         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
53896
53897 2006-01-12  Bruno Haible  <bruno@clisp.org>
53898
53899         * modules/ldd: New file.
53900         * build-aux/ldd.sh.in: New file.
53901         * MODULES.html.sh (Support for building libraries and executables): Add
53902         ldd.
53903
53904 2006-01-12  Bruno Haible  <bruno@clisp.org>
53905
53906         * m4/ldd.m4: New file.
53907
53908 2006-01-12  Bruno Haible  <bruno@clisp.org>
53909
53910         * gnulib-tool (func_import, func_create_testdir): Don't go into an
53911         endless loop while replacing $auxdir with build-aux.
53912
53913 2006-01-11  Simon Josefsson  <jas@extundo.com>
53914
53915         * lib/stdint_.h (SIZE_MAX): Add missing (.
53916
53917 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
53918
53919         Sync from coreutils.
53920         * lib/md5.c: Fix commentary typos.
53921         (alignof, UNALIGNED_P): No need for a GCC-specific version.
53922         * lib/md5.h (__attribute__): Remove; unused.
53923         * lib/sha1.c: Fix commentary to match md5 better.
53924         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
53925         so that we don't need to worry about alignment.  All uses changed.
53926         This merges the 2005-10-28 md5 change into sha1.
53927
53928 2006-01-11  Jim Meyering  <jim@meyering.net>
53929
53930         Sync from coreutils.
53931         * lib/md5.c (OP): Fix spacing.
53932
53933 2006-01-11  Bruno Haible  <bruno@clisp.org>
53934
53935         Ensure automatic ordering between gl_LOCK and gl_ARGP.
53936         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
53937         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
53938
53939 2006-01-11  Bruno Haible  <bruno@clisp.org>
53940
53941         Ensure automatic ordering between gl_LOCK and gl_ARGP.
53942         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
53943         the "early" section as well.
53944
53945 2006-01-11  Bruno Haible  <bruno@clisp.org>
53946
53947         Avoid "ar: no archive members specified" error on MacOS X.
53948         * gnulib-tool (func_modules_add_dummy): New function.
53949         (func_import, func_create_testdir): Invoke it.
53950
53951 2006-01-11  Bruno Haible  <bruno@clisp.org>
53952
53953         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
53954         with $auxdir in AC_CONFIG_FILES statements.
53955
53956 2006-01-11  Bruno Haible  <bruno@clisp.org>
53957
53958         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53959         Initialize also noinst_HEADERS to empty.
53960
53961 2006-01-11  Bruno Haible  <bruno@clisp.org>
53962
53963         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
53964         variables.
53965         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
53966         autoreconf.
53967
53968 2006-01-11  Bruno Haible  <bruno@clisp.org>
53969
53970         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
53971         overridable by the user.
53972         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53973
53974 2006-01-10  Simon Josefsson  <jas@extundo.com>
53975
53976         * modules/sys_socket: New file.
53977
53978 2006-01-10  Simon Josefsson  <jas@extundo.com>
53979
53980         * m4/sys_socket_h.m4: New file.
53981
53982 2006-01-10  Simon Josefsson  <jas@extundo.com>
53983
53984         * lib/socket_.h: New file.
53985
53986 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
53987
53988         * modules/readutmp (Maintainer): Add myself.
53989
53990 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
53991
53992         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
53993         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
53994         People who are still concerned with buggy memcmp implementations
53995         can invoke gl_FUNC_MEMCMP themselves.
53996
53997 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
53998
53999         * lib/regex_internal.h (BITSET_WORD_BITS):
54000         Work around a bug in 64-bit PGC (before version 6.1-2), where the
54001         preprocessor mishandles large unsigned values as if they were signed.
54002         Problem reported by Claudio Fontana in
54003         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
54004
54005 2006-01-10  Jim Meyering  <jim@meyering.net>
54006
54007         Avoid the double-free (first in fts_read, second in fts_close) that
54008         would occur when an `active' directory is made inaccessible (e.g.,
54009         via chmod a-x) during a traversal.
54010         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
54011         before returning.  Reproduce this failure by
54012         mkdir -p a/b; cd a; chmod a-x . b
54013         Reported by Stavros Passas.
54014
54015         Sync from coreutils.
54016         * lib/sha1.c: Tweak grammar in a comment.
54017
54018 2006-01-10  Jim Meyering  <jim@meyering.net>
54019
54020         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
54021         Patch by Joerg Sonnenberger.
54022
54023 2006-01-10  Bruno Haible  <bruno@clisp.org>
54024
54025         * modules/readutmp: Depend on module free.
54026         * modules/strtok_r: Depend on module restrict.
54027
54028 2006-01-10  Bruno Haible  <bruno@clisp.org>
54029
54030         * modules/gettext (configure.ac): Add an invocation of
54031         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
54032
54033 2006-01-10  Bruno Haible  <bruno@clisp.org>
54034
54035         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
54036         Reported by Werner Lemberg <wl@gnu.org>.
54037
54038 2006-01-10  Bruno Haible  <bruno@clisp.org>
54039
54040         * lib/localcharset.c: Update from GNU gettext.
54041
54042 2006-01-10  Bruno Haible  <bruno@clisp.org>
54043
54044         * lib/argp.h (__const): Remove macro. Use const instead.
54045         * lib/argp-fmtstream.h (__const): Likewise.
54046         * lib/glob_.h (__const): Remove macro.
54047         * lib/glob-libc.h: Use const instead of __const.
54048
54049 2006-01-10  Bruno Haible  <bruno@clisp.org>
54050
54051         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
54052         variable.
54053         Needed to avoid an automake error regarding the 'gettext' module.
54054
54055 2006-01-09  Simon Josefsson  <jas@extundo.com>
54056
54057         * modules/inet_ntop (Depends-on): Add restrict.
54058
54059 2006-01-09  Simon Josefsson  <jas@extundo.com>
54060
54061         * modules/gc-rijndael-tests (License): Put under LGPL.
54062
54063         * modules/gc-des-tests (License): Likewise.
54064
54065         * modules/gc-arcfour-tests (License): Likewise.
54066
54067         * modules/gc-arctwo-tests (License): Likewise.
54068
54069         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
54070
54071         * modules/gc-hmac-sha1-tests (Files): Likewise.
54072
54073         * modules/gc-hmac-md5-tests (License): Likewise.
54074
54075         * modules/gc-sha1-tests (License): Likewise.
54076
54077         * modules/gc-md5-tests (License): Likewise.
54078
54079         * modules/gc-md4-tests (License): Likewise.
54080
54081         * modules/gc-md2-tests (License): Likewise.
54082
54083         * modules/gc-tests (License): Likewise.
54084
54085         * modules/des-tests (License): Likewise.
54086
54087         * modules/md4-tests (License): Likewise.
54088
54089         * modules/md2-tests (License): Likewise.
54090
54091 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
54092
54093         Sync from coreutils:
54094
54095         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
54096         * modules/lib-ignore: New file.
54097         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
54098         chdir-safer.m4, lchmod.m4.
54099         * modules/openat: Add mkdirat.c, openat-priv.h.
54100
54101 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
54102
54103         Sync from coreutils.
54104         * m4/lib-ignore.m4: New file.
54105         * m4/lchmod.m4: New file.
54106
54107 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
54108
54109         Sync from coreutils.
54110         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
54111         for write access: POSIX says that must fail.
54112         * lib/fts.c (diropen): Likewise.
54113         * lib/save-cwd.c (save_cwd): Likewise.
54114         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
54115         well, for minor improvements on hosts that lack O_DIRECTORY.
54116         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
54117         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
54118         Fall back on chown if open failed with EACCES.
54119
54120         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
54121         Report an error at compile-time if only a 1-second nominal clock
54122         resolution is found.
54123
54124         * lib/lchmod.h: New file.
54125         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
54126         (make_dir_parents): Use lchown rather than chown, and
54127         lchmod rather than chmod.
54128
54129         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
54130         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
54131         "proc" reported by n0dalus.
54132
54133         * lib/mountlist.c: Include <limits.h>.
54134         (dev_from_mount_options)
54135         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
54136         New function.  It no longer assumes "dev=" has the System V meaning
54137         on Linux (since it doesn't).  It also parses "dev=" more carefully.
54138         (read_file_system_list)
54139         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
54140         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
54141         dev= in that case.
54142
54143         * lib/posixtm.h (PDS_PRE_2000): New macro.
54144         * lib/posixtm.c (year): Arg is now syntax_bits rather than
54145         allow_century.  All usages changed.  Reject dates outside the range
54146         1969-1999 if PDS_PRE_2000 is used.
54147
54148 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
54149
54150         Sync from coreutils.
54151         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
54152         (Time of day items): Mention the possibility of leap seconds.
54153         Problem reported by Dr. David Alan Gilbert.
54154
54155 2006-01-09  Jim Meyering  <jim@meyering.net>
54156
54157         Sync from coreutils.
54158
54159         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
54160
54161         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
54162
54163         * lib/modechange.c (mode_compile): Reject an invalid mode string
54164         that starts with an octal digit.  From Andreas Gruenbacher.
54165
54166         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
54167         and dup to open_safer and dup_safer, respectively.
54168         (openat_permissive): Fix typo in comment.
54169
54170         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
54171         "gettext.h"; either no longer needed or are guaranteed by openat.h.
54172         (_): Remove; no longer needed.
54173         (openat): Renamed from rpl_openat; no need for rpl_openat
54174         since openat.h renames openat for us.
54175         Replace most of the body with a call to openat_permissive,
54176         to avoid duplicate code.
54177         Port to (probably hypothetical) environments were mode_t is
54178         wider than int.
54179         (openat_permissive): Require mode arg, so that we can check
54180         types better.  Put it just after flags.  Change cwd failure
54181         indicator from pointer-to-bool to pointer-to-errno-value.
54182         All callers changed.
54183         Invoke openat_save_fail and/or openat_restore_fail if
54184         cwd_errno is null, so that openat can call us.
54185         (openat_permissive, fdopendir, fstatat, unlinkat):
54186         Simplify errno handling to avoid some duplicate code,
54187         as it's OK to set errno on success.
54188         * lib/openat.h: Revamp code so that function macros depend on
54189         __OPENAT_PREFIX only, not also on AT_FDCWD.
54190         (openat_ro): Remove.  Caller changed to use openat_permissive.
54191         (openat_permissive): Now a macro, if not a function.
54192         (openat_restore_fail, openat_save_fail): Now always functions,
54193         since mkdirat needs them even if __OPENAT_PREFIX is defined.
54194
54195         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
54196         and openat.c.
54197         * lib/mkdirat.c: Include openat-priv.h.
54198         Remove definitions of macros defined therein.
54199         * lib/openat.c: Likewise.
54200
54201         * lib/mkdirat.c (mkdirat): New file and function.
54202         * lib/openat.h (mkdirat): Declare.
54203
54204         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
54205
54206         * lib/openat.h (openat_permissive): Declare.
54207         (openat_ro): Define.
54208
54209         * lib/openat.c (EXPECTED_ERRNO): New macro.
54210         (openat_permissive): New function -- used in remove.c rewrite.
54211         (all functions): Set errno just before returning, only if there
54212         was an actual failure.
54213         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
54214
54215         Emulate openat-family functions using Linux's procfs, if possible.
54216         Idea and some code based on Ulrich Drepper's glibc changes.
54217
54218         * lib/openat.c: (BUILD_PROC_NAME): New macro.
54219         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
54220         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
54221         before falling back on save_cwd and restore_cwd.
54222         (fdopendir, fstatat, unlinkat): Likewise.
54223
54224         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
54225         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
54226
54227         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
54228         as second argument to va_arg.  Otherwise, some versions of gcc
54229         warn that `if this code is reached, the program will abort'.
54230
54231 2006-01-09  Jim Meyering  <jim@meyering.net>
54232
54233         Sync from coreutils.
54234         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
54235         Require openat-priv.h.
54236
54237 2006-01-09  Bruno Haible  <bruno@clisp.org>
54238
54239         * modules/strnlen (Include): Use strnlen.h.
54240
54241 2006-01-09  Bruno Haible  <bruno@clisp.org>
54242
54243         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
54244
54245 2006-01-09  Bruno Haible  <bruno@clisp.org>
54246
54247         * lib/sysexit_.h (EX_OK): New macro.
54248         Suggested by Martin Lambers <marlam@marlam.de>.
54249
54250 2006-01-09  Bruno Haible  <bruno@clisp.org>
54251
54252         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
54253         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
54254
54255 2006-01-09  Bruno Haible  <bruno@clisp.org>
54256
54257         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
54258         numbers.
54259
54260 2006-01-09  Bruno Haible  <bruno@clisp.org>
54261
54262         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
54263         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
54264         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
54265         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
54266
54267 2006-01-09  Bruno Haible  <bruno@clisp.org>
54268
54269         * build-aux/javacomp.sh.in: New file, moved from lib/.
54270         * modules/javacomp-script (Files): Update.
54271         (configure.ac): Add AC_CONFIG_FILES invocation.
54272         (EXTRA_DIST): Remove variable.
54273
54274         * build-aux/javaexec.sh.in: New file, moved from lib/.
54275         * modules/javaexec (Files): Update.
54276         (configure.ac): Add AC_CONFIG_FILES invocation.
54277         (EXTRA_DIST): Remove javaexec.sh.in.
54278
54279         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
54280         * modules/csharpcomp-script (Files): Update.
54281         (configure.ac): Add AC_CONFIG_FILES invocation.
54282         (EXTRA_DIST): Remove variable.
54283
54284         * build-aux/csharpexec.sh.in: New file, moved from lib/.
54285         * modules/csharpexec (Files): Update.
54286         (configure.ac): Add AC_CONFIG_FILES invocation.
54287         (EXTRA_DIST): Remove csharpexec.sh.in.
54288
54289 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
54290
54291         Sync from coreutils.
54292
54293         Add POSIX ACL support
54294         * lib/acl.h (copy_acl, set_acl): Add declarations.
54295         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
54296         systems other than Linux.
54297         (chmod_or_fchmod): New function: use fchmod when possible,
54298         and chmod otherwise.
54299         (file_has_acl): Add a POSIX ACL implementation, with a
54300         Linux-specific subcase.
54301         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
54302         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
54303         acls are unsupported.
54304         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
54305         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
54306         are unsupported.
54307
54308 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
54309
54310         Sync from coreutils.
54311         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
54312
54313 2006-01-07  Bruno Haible  <bruno@clisp.org>
54314
54315         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
54316         gl_EARLY.
54317
54318 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
54319
54320         * lib/strftime.c (tzname): Don't declare if it is already #defined.
54321         Problem reported for Mingw by Mark Junker.
54322
54323 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
54324
54325         * README: Gnulib normally doesn't generate a tarball.
54326
54327 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
54328
54329         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
54330         long int, not int, for nanosecond counts, so that people who are
54331         used to POSIX struct timespec won't be surprised.  Reported by Jim
54332         Meyering.
54333
54334 2005-12-28  Bruno Haible  <bruno@clisp.org>
54335
54336         * build-aux/config.rpath: Update from GNU gettext.
54337
54338 2005-12-16  Jim Meyering  <jim@meyering.net>
54339
54340         * modules/fprintftime: New module.
54341         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
54342
54343 2005-12-16  Jim Meyering  <jim@meyering.net>
54344
54345         * m4/fprintftime.m4: New file.
54346
54347 2005-12-16  Jim Meyering  <jim@meyering.net>
54348
54349         * lib/fprintftime.c, lib/fprintftime.h: New files.
54350
54351 2005-12-15  Simon Josefsson  <jas@extundo.com>
54352
54353         * modules/socklen (configure.ac): Fix M4 macro name, to align with
54354         new m4/socklen.m4.
54355
54356 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
54357
54358         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
54359         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
54360
54361 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
54362
54363         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
54364         * lib/argp-help.c (fill_in_uparams): Check if the constructed
54365         struct uparams is valid. Fall back to the default values if it is
54366         not.
54367
54368 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
54369
54370         * modules/argp (Files): Add argp-pin.c
54371         (Depends-on): dirname
54372         (lib_SOURCES): Add argp-pin.c
54373
54374 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
54375
54376         * m4/argp.m4:  Check if program_invocation_name and
54377         program_invocation_short_name are declared and define appropriate
54378         macros if they are not.
54379
54380 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
54381
54382         * lib/argp-help.c (__argp_base_name): New function
54383         (__argp_short_program_name): Rewrite using __argp_base_name
54384         * lib/argp-namefrob.h: Define program_invocation_name and
54385         program_invocation_short_name if requested
54386         (__argp_base_name): Add prototype
54387         * lib/argp-parse.c (argp_def): Use gettext wrappers
54388         (argp_default_parser): Use __argp_base_name
54389         * lib/argp-pin.c: New file. Defines program_invocation_name and
54390         program_invocation_short_name on systems that lack them.
54391
54392 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
54393
54394         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
54395         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
54396         porting problem reported by Georg Schwarz in
54397         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
54398
54399 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
54400
54401         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
54402         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
54403         porting problem reported by Georg Schwarz in
54404         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
54405
54406 2005-12-05  Bruno Haible  <bruno@clisp.org>
54407
54408         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
54409         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
54410         Reported by Mark Junker <mjscod@gmx.de>.
54411
54412 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
54413
54414         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
54415         Use implementation from Albert Chin, with some
54416         comments/corrections by Stepan Kasal and myself.
54417
54418 2005-12-02  Bruno Haible  <bruno@clisp.org>
54419
54420         * gnulib-tool (func_import): Accept GPLed build tool modules when
54421         --lgpl is given.
54422         * modules/csharpcomp-script: New file.
54423         * modules/csharpcomp: Depend on it.
54424         * modules/javacomp-script: New file.
54425         * modules/javacomp: Depend on it.
54426         Suggested by Simon Josefsson.
54427
54428 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
54429
54430         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
54431         statement, to work around an HP-UX 10.20 compiler bug reported by
54432         Peter O'Gorman.
54433
54434 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
54435
54436         * modules/savedir (Depends-on): Add openat.
54437
54438 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
54439
54440         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
54441         (uintmax_t) [defined uintmax_t]: Do not declare.
54442         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
54443         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
54444         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
54445         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
54446         sake of portability to weird hosts that C allows (though we don't
54447         know of any practical examples).
54448
54449         * lib/savedir.h (fdsavedir): New decl.
54450         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
54451         contains most of the former guts of savedir.
54452         (savedir): Use savedirstream.
54453         Include "openat.h".
54454
54455 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
54456
54457         * modules/obstack (Files): Add m4/ulonglong.m4.
54458         Problem reported by Davide Angelocola.
54459
54460 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
54461
54462         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
54463         coreutils no longer futzes with rounding modes.
54464
54465 2005-11-14  Jim Meyering  <jim@meyering.net>
54466
54467         * lib/mkstemp-safer.c: Include <config.h>, required for possible
54468         replacement of mkstemp.
54469
54470 2005-11-10  Simon Josefsson  <jas@extundo.com>
54471
54472         * lib/readline.c: Remove EOL.
54473
54474 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
54475
54476         * modules/gethrxtime (Depends-on): Add gettime.
54477
54478 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
54479
54480         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
54481         or gettimeofday; no longer needed.
54482
54483 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
54484
54485         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
54486         time business.
54487         (gethrxtime) [! (HAVE_NANOUPTIME
54488         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
54489         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
54490         our own approximation.
54491
54492 2005-11-08  Eric Blake  <ebb9@byu.net>
54493
54494         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
54495
54496 2005-11-08  Eric Blake  <ebb9@byu.net>
54497
54498         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
54499
54500 2005-11-04  Bruno Haible  <bruno@clisp.org>
54501
54502         * gnulib-tool: Implement --update mode.
54503
54504 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
54505
54506         Fix porting problem reported by Theodoros V. Kalamatianos.
54507         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
54508         Don't assume that futimes failing means we must fail.
54509
54510 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
54511
54512         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
54513         variables to suggest the intended function of the PATH_MAX check.
54514
54515 2005-10-30  Kean Johnston  <jkj@sco.com>
54516
54517         Trivial changes to support SCO systems.
54518         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
54519         as PATH_MAX.
54520         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
54521         where __ptr is null when no I/O is pending.
54522
54523 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
54524
54525         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
54526         leave errno alone.  Problem reported by Dmitry V. Levin.
54527
54528 2005-10-28  Simon Josefsson  <jas@extundo.com>
54529
54530         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
54531         Test more.
54532
54533         * tests/test-gc-md2.c, tests/test-md2.c: New files.
54534
54535         * modules/md2, modules/md2-tests: New files.
54536
54537 2005-10-28  Simon Josefsson  <jas@extundo.com>
54538
54539         * m4/inet_ntop.m4: More tests.
54540
54541         * m4/gc-md2.m4, md2.m4: New file.
54542
54543 2005-10-28  Simon Josefsson  <jas@extundo.com>
54544
54545         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
54546         "restrict" keywords, as per POSIX.  Protect the function
54547         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
54548         Don't use K&R prototypes.  Check the sprintf return values.
54549         Re-define EAFNOSUPPORT if not present.  Indent.
54550
54551         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
54552         suggested by Bruno Haible <bruno@clisp.org>.
54553
54554         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
54555
54556         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
54557
54558         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
54559         libgcrypt).
54560
54561         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
54562
54563         * lib/md2.h, lib/md2.c: New files.
54564
54565 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
54566
54567         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
54568         errno alone.  Problem reported by Frederic Jolliton.
54569
54570 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
54571
54572         * modules/verify (License): Change from GPL to LGPL.  This is a
54573         tiny module and there are apparently near-equivalents that are
54574         under the BSD license.
54575
54576 2005-10-24  Simon Josefsson  <jas@extundo.com>
54577
54578         * modules/sha1: Relicense to LGPL.
54579
54580 2005-10-24  Simon Josefsson  <jas@extundo.com>
54581
54582         * lib/md4.h: Shrink buffer size, now that we changed the type.
54583
54584 2005-10-23  Simon Josefsson  <jas@extundo.com>
54585
54586         * gnulib-tool (func_import): Fix --tests-base.
54587
54588 2005-10-22  Simon Josefsson  <jas@extundo.com>
54589
54590         * modules/arcfour (Depends-on): Need stdint.
54591
54592 2005-10-22  Simon Josefsson  <jas@extundo.com>
54593
54594         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
54595         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
54596
54597 2005-10-22  Simon Josefsson  <jas@extundo.com>
54598
54599         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
54600         suggested by Bruno Haible <bruno@clisp.org>.
54601
54602 2005-10-22  Simon Josefsson  <jas@extundo.com>
54603
54604         * lib/crc.h: Include stddef.h, for size_t.
54605
54606 2005-10-22  Simon Josefsson  <jas@extundo.com>
54607
54608         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
54609         arcfour_context struct (simplify test vector testing in GNU
54610         Shishi).
54611
54612 2005-10-21  Simon Josefsson  <jas@extundo.com>
54613
54614         * modules/des, modules/des-tests: New files.
54615
54616         * modules/gc-des, modules/gc-des-tests: New files.
54617
54618         * tests/test-des.c, tests/test-gc-des.c: New file.
54619
54620 2005-10-21  Simon Josefsson  <jas@extundo.com>
54621
54622         * modules/arctwo, modules/arctwo-tests: New files.
54623
54624         * tests/test-arctwo.c: New file.
54625
54626         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
54627
54628         * tests/test-gc-arctwo.c: New file.
54629
54630 2005-10-21  Simon Josefsson  <jas@extundo.com>
54631
54632         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
54633         Bruno Haible <bruno@clisp.org>.
54634
54635         * m4/gc-des.m4: New file.
54636
54637 2005-10-21  Simon Josefsson  <jas@extundo.com>
54638
54639         * m4/arctwo.m4: New file.
54640
54641         * m4/gc-arctwo.m4: New file.
54642
54643 2005-10-21  Simon Josefsson  <jas@extundo.com>
54644
54645         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
54646         block.
54647
54648 2005-10-21  Simon Josefsson  <jas@extundo.com>
54649
54650         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
54651         <bruno@clisp.org>.
54652
54653         * lib/hmac-sha1.c (hmac_sha1): Likewise.
54654
54655         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
54656         Bruno Haible <bruno@clisp.org>.
54657
54658         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
54659         <bruno@clisp.org>.
54660
54661 2005-10-21  Simon Josefsson  <jas@extundo.com>
54662
54663         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
54664
54665 2005-10-21  Simon Josefsson  <jas@extundo.com>
54666
54667         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
54668
54669 2005-10-21  Simon Josefsson  <jas@extundo.com>
54670
54671         * lib/des.h, lib/des.c: New files.
54672
54673         * lib/gc-gnulib.c: Support DES.c
54674
54675 2005-10-21  Simon Josefsson  <jas@extundo.com>
54676
54677         * lib/arctwo.h, lib/arctwo.c: New files.
54678
54679         * lib/gc-gnulib.c: Support ARCTWO.
54680
54681 2005-10-21  Simon Josefsson  <jas@extundo.com>
54682
54683         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
54684         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54685
54686 2005-10-21  Simon Josefsson  <jas@extundo.com>
54687
54688         * gnulib-tool (func_import, func_create_testdir): Define automake
54689         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
54690         Makefile.am snippet),
54691         suggested by Bruno Haible <bruno@clisp.org>.
54692
54693         * modules/gc (Makefile.am): Use it.
54694
54695 2005-10-21  Bruno Haible  <bruno@clisp.org>
54696
54697         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
54698         patch.
54699
54700 2005-10-19  Simon Josefsson  <jas@extundo.com>
54701
54702         * tests/test-gc-rijndael.c: New file.
54703
54704         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
54705
54706 2005-10-19  Simon Josefsson  <jas@extundo.com>
54707
54708         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
54709         interface too.
54710
54711 2005-10-19  Simon Josefsson  <jas@extundo.com>
54712
54713         * tests/test-gc-arcfour.c: New file.
54714
54715         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
54716
54717 2005-10-19  Simon Josefsson  <jas@extundo.com>
54718
54719         * modules/gc-md4, modules/gc-md4-tests: New file.
54720
54721         * tests/test-gc-md4.c: New file.
54722
54723 2005-10-19  Simon Josefsson  <jas@extundo.com>
54724
54725         * m4/gc-md4.m4: New file.
54726
54727 2005-10-19  Simon Josefsson  <jas@extundo.com>
54728
54729         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
54730         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
54731         <kasal@ucw.cz>.
54732
54733 2005-10-19  Simon Josefsson  <jas@extundo.com>
54734
54735         * m4/gc-arcfour.m4: New file.
54736
54737         * m4/gc-rijndael.m4: New file.
54738
54739 2005-10-19  Simon Josefsson  <jas@extundo.com>
54740
54741         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
54742
54743 2005-10-19  Simon Josefsson  <jas@extundo.com>
54744
54745         * lib/gc-gnulib.c: Support ARCFOUR.
54746
54747 2005-10-19  Simon Josefsson  <jas@extundo.com>
54748
54749         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
54750         support.
54751
54752         * lib/gc.h: Add ECB enum type.
54753
54754         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
54755
54756 2005-10-18  Simon Josefsson  <jas@extundo.com>
54757
54758         * tests/test-md5.c: New file.
54759
54760         * modules/md5-tests: New file.
54761
54762 2005-10-18  Simon Josefsson  <jas@extundo.com>
54763
54764         * tests/test-md4.c: New file.
54765
54766         * modules/md4, modules/md4-tests: New files.
54767
54768 2005-10-18  Simon Josefsson  <jas@extundo.com>
54769
54770         * m4/md4.m4: New file.
54771
54772 2005-10-18  Simon Josefsson  <jas@extundo.com>
54773
54774         * lib/md4.h, lib/md4.c: New files, based on md5.?.
54775
54776 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
54777
54778         * gnulib-tool (func_create_testdir): Omit the second check whether
54779         BUILT_SOURCES in nonempty.
54780
54781 2005-10-17  Simon Josefsson  <jas@extundo.com>
54782
54783         * tests/test-rijndael.c: New file.
54784
54785 2005-10-17  Simon Josefsson  <jas@extundo.com>
54786
54787         * modules/sha1: Depend on stdint instead of md5.
54788
54789         * modules/md5: Depend on stdint, remove uint32_t.
54790
54791 2005-10-17  Simon Josefsson  <jas@extundo.com>
54792
54793         * modules/gc-sha1-tests: New file.
54794
54795         * tests/test-gc-sha1.c: New file.
54796
54797 2005-10-17  Simon Josefsson  <jas@extundo.com>
54798
54799         * m4/md5.m4: Remove call to uint32_t.m4.
54800
54801 2005-10-17  Simon Josefsson  <jas@extundo.com>
54802
54803         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
54804
54805         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
54806         md5.h.
54807
54808         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
54809
54810         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
54811
54812 2005-10-17  Simon Josefsson  <jas@extundo.com>
54813
54814         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
54815
54816 2005-10-17  Simon Josefsson  <jas@extundo.com>
54817
54818         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
54819
54820 2005-10-17  Simon Josefsson  <jas@extundo.com>
54821
54822         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
54823
54824         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
54825
54826 2005-10-17  Bruno Haible  <bruno@clisp.org>
54827
54828         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
54829         that it can also be used in a test.
54830
54831 2005-10-16  Bruno Haible  <bruno@clisp.org>
54832
54833         * gnulib-tool (func_emit_tests_Makefile_am): Also define
54834         TESTS_ENVIRONMENT, so that individual tests can augment it.
54835
54836         * gnulib-tool (func_create_testdir): Use an intermediate target for
54837         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
54838         macros, like $(ALLOCA_H), which cannot be passed through the command
54839         line.
54840
54841 2005-10-15  Simon Josefsson  <jas@extundo.com>
54842
54843         * modules/rijndael-tests: New file.
54844
54845         * modules/rijndael: New file.
54846
54847 2005-10-15  Simon Josefsson  <jas@extundo.com>
54848
54849         * m4/rijndael.m4: New file.
54850
54851 2005-10-15  Simon Josefsson  <jas@extundo.com>
54852
54853         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
54854
54855         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
54856
54857 2005-10-14  Simon Josefsson  <jas@extundo.com>
54858
54859         * tests/test-arcfour.c: New file.
54860
54861         * modules/arcfour, modules/arcfour-tests: New files.
54862
54863 2005-10-14  Simon Josefsson  <jas@extundo.com>
54864
54865         * m4/arcfour.m4: New file.
54866
54867 2005-10-14  Simon Josefsson  <jas@extundo.com>
54868
54869         * lib/arcfour.h, lib/arcfour.c: New files.
54870
54871 2005-10-14  Roland McGrath  <roland@redhat.com>
54872
54873         Import from libc.  [BZ #1331]
54874         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
54875         macro argument.
54876         Reported by Matej Vela <vela@debian.org>.
54877
54878 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
54879
54880         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
54881         include <wchar.h>; no longer needed.
54882
54883 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
54884
54885         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
54886
54887 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
54888         and  Ulrich Drepper  <drepper@redhat.com>
54889
54890         Import from libc.
54891         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
54892         instead of inline stream orientation test and two separate
54893         function calls.  Pay no attention to USE_IN_LIBIO.
54894
54895 2005-10-13  Simon Josefsson  <jas@extundo.com>
54896
54897         * modules/gc-hmac-md5-tests: New file.
54898
54899         * tests/test-gc-hmac-sha1.c: New file.
54900
54901         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
54902
54903         * modules/gc-hmac-md5-tests: New file.
54904
54905         * tests/test-gc-md5.c: New file.
54906
54907         * modules/gc-md5-tests: New file.
54908
54909 2005-10-13  Simon Josefsson  <jas@extundo.com>
54910
54911         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
54912         Move memory allocation outside of loop.
54913
54914 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
54915
54916         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
54917         intermediate directory is in a read-only file system.  Problem
54918         reported by Eric Blake.
54919
54920 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
54921
54922         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
54923
54924 2005-10-12  Simon Josefsson  <jas@extundo.com>
54925
54926         * tests/test-hmac-sha1.c: New file.
54927
54928         * modules/hmac-sha1-tests: New file.
54929
54930         * modules/hmac-sha1: New file.
54931
54932 2005-10-12  Simon Josefsson  <jas@extundo.com>
54933
54934         * modules/gc-sha1: New file.
54935
54936 2005-10-12  Simon Josefsson  <jas@extundo.com>
54937
54938         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
54939
54940         * tests/test-gc-pbkdf2-sha1.c: New file.
54941
54942 2005-10-12  Simon Josefsson  <jas@extundo.com>
54943
54944         * modules/gc-md5, modules/gc-hmac-md5: New files.
54945
54946         * modules/gc (Files): Remove md5, memxor and hmac files.
54947
54948 2005-10-12  Simon Josefsson  <jas@extundo.com>
54949
54950         * m4/gc-pbkdf2-sha1.m4: New file.
54951
54952         * m4/gc-hmac-sha1.m4: New file.
54953
54954         * m4/gc-sha1: New file.
54955
54956         * m4/hmac-sha1.m4: New file.
54957
54958 2005-10-12  Simon Josefsson  <jas@extundo.com>
54959
54960         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
54961
54962         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
54963
54964 2005-10-12  Simon Josefsson  <jas@extundo.com>
54965
54966         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
54967         suggested by Bruno Haible <bruno@clisp.org>.
54968
54969 2005-10-12  Simon Josefsson  <jas@extundo.com>
54970
54971         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
54972
54973 2005-10-12  Simon Josefsson  <jas@extundo.com>
54974
54975         * lib/gc-pbkdf2-sha1.c: New file.
54976
54977         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
54978
54979 2005-10-12  Simon Josefsson  <jas@extundo.com>
54980
54981         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
54982
54983         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
54984
54985 2005-10-12  Simon Josefsson  <jas@extundo.com>
54986
54987         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
54988         GC_USE_HMAC_MD5, respectively.
54989
54990         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
54991         (gc_md5): Fix typo.
54992
54993         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
54994
54995         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
54996
54997         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
54998
54999 2005-10-12  Bruno Haible  <bruno@clisp.org>
55000
55001         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
55002         Reported by Stepan Kasal <kasal@ucw.cz>.
55003
55004 2005-10-11  Simon Josefsson  <jas@extundo.com>
55005
55006         * tests/test-crc.c: New file.
55007
55008         * modules/crc, modules/crc-tests: New files.
55009
55010 2005-10-11  Simon Josefsson  <jas@extundo.com>
55011
55012         * m4/crc.m4: New file.
55013
55014 2005-10-11  Simon Josefsson  <jas@extundo.com>
55015
55016         * lib/gc.h: Add gc_hash and gc_hash_buffer.
55017
55018         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
55019
55020         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
55021
55022 2005-10-11  Simon Josefsson  <jas@extundo.com>
55023
55024         * lib/crc.h, lib/crc.c: New files.
55025
55026         * lib/gc.h (gc_hash_buffer): Add doc.
55027
55028 2005-10-11  Bruno Haible  <bruno@clisp.org>
55029
55030         * modules/c-strcasestr: New file.
55031         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
55032
55033 2005-10-11  Bruno Haible  <bruno@clisp.org>
55034
55035         * modules/c-strcase: New file.
55036         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
55037
55038 2005-10-11  Bruno Haible  <bruno@clisp.org>
55039
55040         * lib/strcasecmp.c: Include limits.h.
55041         (strcasecmp): Avoid integer overflow on exotic platforms.
55042         * lib/strncasecmp.c: Include limits.h.
55043         (strncasecmp): Avoid integer overflow on exotic platforms.
55044         Reported by Paul Eggert.
55045
55046 2005-10-11  Bruno Haible  <bruno@clisp.org>
55047
55048         * lib/c-strcasestr.h: New file, from GNU gettext.
55049         * lib/c-strcasestr.c: New file, from GNU gettext.
55050
55051 2005-10-11  Bruno Haible  <bruno@clisp.org>
55052
55053         * lib/c-strcase.h: New file, from GNU gettext.
55054         * lib/c-strcasecmp.c: New file, from GNU gettext.
55055         * lib/c-strncasecmp.c: New file, from GNU gettext.
55056
55057 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
55058
55059         * modules/mempcpy (License): GPL -> LGPL.
55060         * modules/strchrnul (License): Likewise.
55061         * modules/sysexits (License): Likewise.
55062
55063 2005-10-08  Simon Josefsson  <jas@extundo.com>
55064
55065         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
55066
55067 2005-10-07  Simon Josefsson  <jas@extundo.com>
55068
55069         * m4/memxor.m4: Remove gl_C_RESTRICT call.
55070
55071 2005-10-06  Simon Josefsson  <jas@extundo.com>
55072
55073         * tests/test-hmac-md5.c: New file.
55074
55075         * modules/hmac-md5-tests: New file.
55076
55077         * modules/hmac-md5: New file.
55078
55079 2005-10-06  Simon Josefsson  <jas@extundo.com>
55080
55081         * m4/hmac-md5.m4: New file.
55082
55083         * m4/memxor.m4: Require gl_C_RESTRICT.
55084
55085 2005-10-06  Simon Josefsson  <jas@extundo.com>
55086
55087         * lib/memxor.c (memxor): Avoid casts and warnings.
55088
55089 2005-10-06  Simon Josefsson  <jas@extundo.com>
55090
55091         * lib/hmac-md5.c: New file.
55092
55093         * lib/hmac.h: New file.
55094
55095 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
55096
55097         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
55098         promotes to int, not unsigned int, to catch the AIX 5.3
55099         compiler bug.
55100
55101 2005-10-05  Simon Josefsson  <jas@extundo.com>
55102
55103         * modules/memxor: New file.
55104
55105         * modules/iconv (Files): Move config.rpath to havelib, it is used
55106         there.
55107
55108         * modules/havelib (Files): Add config.rpath.
55109
55110 2005-10-05  Simon Josefsson  <jas@extundo.com>
55111
55112         * m4/memxor.m4: New file.
55113
55114 2005-10-05  Simon Josefsson  <jas@extundo.com>
55115
55116         * lib/memxor.c (memxor): Fix compiler error.
55117
55118         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
55119         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
55120
55121         * lib/memxor.h, lib/memxor.c: New files.
55122
55123         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
55124         we assume all systems have it, suggested by Jim Meyering
55125         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
55126         any systems lack sys/socket.h; mingw32 is known to lack it, but we
55127         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
55128         same reasons.
55129
55130 2005-10-05  Simon Josefsson  <jas@extundo.com>
55131
55132         * config/srclist.txt: Add glibc bug 1423 for md5.h.
55133
55134 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
55135
55136         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
55137         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
55138         needed, since the source code now assumes these .h files.
55139
55140 2005-10-05  Derek Price  <derek@ximbiot.com>
55141
55142         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
55143
55144 2005-10-05  Bruno Haible  <bruno@clisp.org>
55145
55146         * modules/stdint (License): Change to LGPL.
55147
55148 2005-10-04  Simon Josefsson  <jas@extundo.com>
55149
55150         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
55151         D. Baushke" <mdb@gnu.org>.
55152
55153 2005-10-04  Bruno Haible  <bruno@clisp.org>
55154
55155         * lib/verify.h (verify_true): Provide alternative definition for C++.
55156
55157 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
55158
55159         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
55160         (SSIZE_MAX): New macro, if not already defined.
55161         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
55162         than 2 GiB.
55163
55164 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
55165
55166         Sync from coreutils.
55167         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
55168         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
55169         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
55170         ULLONG_MAX doesn't work with 2.7.2.1.
55171
55172 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
55173
55174         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
55175         From Ben Pfaff.
55176
55177         * modules/exclude (Depends-on): Depend on verify.
55178         * modules/strtoimax (Depends-on): Likewise.
55179         * modules/utimecmp (Depends-on): Likewise.
55180
55181 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
55182
55183         * lib/exclude.c: Include verify.h.
55184         (verify): Remove.  All callers changed to use verify.h's version.
55185         * lib/strtoimax.c: Likewise.
55186         * lib/utimecmp.c: Likewis.e
55187
55188         Sync from coreutils.
55189         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
55190         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
55191         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
55192         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
55193         bother returning ENOSYS if settimeofday or stime fails; just let
55194         them return whatever errno they want to return.
55195         * lib/utimens.c: Include unistd.h, for dup2.
55196         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
55197         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
55198
55199 2005-10-02  Jim Meyering  <jim@meyering.net>
55200
55201         Sync from coreutils.
55202         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
55203         from glibc-2.2.5 that fails for read-only files.
55204
55205 2005-10-02  Jim Meyering  <jim@meyering.net>
55206
55207         Sync from coreutils.
55208         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
55209         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
55210         `#if HAVE_CONFIG_H'.
55211         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
55212         Remove AT_FDCWD test.
55213         Do not consume the fd unless successful.
55214         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
55215         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
55216         block, so that we don't even try to compile it if settimeofday is
55217         available.  This works around a compilation failure on OSF1 V5.1,
55218         due to stime requiring a `long int*' while tv_sec is `int'.
55219
55220 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
55221
55222         Sync from coreutils.
55223         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
55224         against `yes', rather than just testing for nonempty.
55225
55226 2005-10-01  Simon Josefsson  <jas@extundo.com>
55227
55228         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
55229         and Darwin.
55230
55231         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
55232         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
55233         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
55234         freeaddrinfo and gai_strerror are declared by the POSIX headers.
55235         Check if struct addrinfo is declared.
55236
55237 2005-10-01  Simon Josefsson  <jas@extundo.com>
55238
55239         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
55240         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
55241         AI_* and EAI_* definitions.  Protect function declarations.
55242
55243 2005-10-01  Jim Meyering  <jim@meyering.net>
55244
55245         Sync from coreutils.
55246
55247         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
55248         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
55249         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
55250         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
55251         in the inet and nsl libraries.  Required on Solaris 5.7.
55252
55253 2005-10-01  Jim Meyering  <jim@meyering.net>
55254
55255         Sync from coreutils.
55256         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
55257         in the inet and nsl libraries.  Required on Solaris 5.7.
55258
55259 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
55260
55261         * lib/getdelim.c (getdelim): Remove unused variables.
55262
55263 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
55264
55265         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
55266         so that the code works even with ancient cpp.  Portability problem
55267         with GCC 2.7.2.1 reported by Thomas M.Ott.
55268
55269 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
55270
55271         * modules/regex (Depends-on): Add strcase.
55272
55273         * modules/gethostname (Licence): Change from GPL to LGPL, since
55274         gethostname.c is a trivial implementation of a standard library
55275         function.
55276         * modules/poll (License): Change from GPL to LGPL, since it's
55277         derived from LGPL code.
55278
55279 2005-09-27  Jim Meyering  <jim@meyering.net>
55280
55281         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
55282         HAVE_CONFIG_H.
55283
55284         * lib/intprops.h (signed_type_or_expr__): Define.
55285         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
55286         for unsigned types.
55287
55288 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
55289
55290         * lib/verify.h (verify_expr): Remove, replacing with:
55291         (verify_true): New macro that returns true instead of void.
55292         (verify_type__): Remove.
55293         (verify): Use verify_true rather than verify_type__.
55294
55295 2005-09-26  Bruno Haible  <bruno@clisp.org>
55296
55297         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
55298         is necessary.
55299         (lib_SOURCES): Remove mbchar.c.
55300         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
55301         (Files): Add m4/mbrtowc.m4.
55302         * modules/mbiter: Likewise.
55303         * modules/mbuiter: Likewise.
55304
55305 2005-09-26  Bruno Haible  <bruno@clisp.org>
55306
55307         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
55308         compile mbchar.c if they are not both present.
55309         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
55310         * m4/mbiter.m4 (gl_MBITER): Likewise.
55311         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
55312         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
55313         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
55314
55315 2005-09-25  Jim Meyering  <jim@meyering.net>
55316
55317         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
55318         also uses socklen_t.
55319
55320 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
55321
55322         * lib/utimens.c (ENOSYS): Define if not already defined.
55323         (futimens): Support having a null PATH if the file descriptor
55324         is nonnegative.
55325
55326         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
55327         Remove.
55328         (__attribute): Define to empty unless GCC 3.1 or later.
55329         This works around a core dump on OpenBSD 3.4, which has GCC
55330         2.95.3, which dumps core when given __attribute__(()).  It also
55331         simplifies other tests, since we really don't want to bother with
55332         worrying about which ancient version of GCC supported what.
55333         Original problem reported by Yoann Vandoorselaere, with part of
55334         the fix suggested by Derek Price.
55335
55336 2005-09-24  Jim Meyering  <jim@meyering.net>
55337
55338         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
55339         so we can once again use a positive bitfield width of 1 -- now we
55340         don't have to explain why we were using a bitfield width of 2.
55341
55342 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
55343
55344         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
55345         and similarly for the other external symbols.  Problem reported
55346         by James Gallager.
55347
55348         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
55349         bug reported by Jim Meyering.
55350
55351         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
55352         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
55353         not needed, since socklen is a prerequisite module.
55354
55355 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
55356
55357         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
55358         Problem reported by Eric Blake.
55359         (getaddrinfo): Initialize se so that it's not garbage.
55360         Redo internal storage allocation so that it doesn't make unportable
55361         assumptions about alignment.
55362         Fix a memory leak.
55363
55364         * lib/utimens.c (futimens): Use futimesat if available.
55365         Prefer it to futimes since it doesn't have the futimes bug.
55366
55367         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
55368         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
55369         Instead, declare a function that returns a pointer to an array,
55370         and use verify_type__ to declare the size of the array.
55371         Problem and germ of a solution reported by Bruno Haible.
55372         (verify_type__): Use 2, not 1, for bitfield size, to avoid
55373         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
55374
55375 2005-09-23  Jim Meyering  <jim@meyering.net>
55376
55377         Sync from coreutils.
55378         Correct build failure (socklen_t not defined) on at least
55379         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
55380         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
55381
55382 2005-09-23  Jim Meyering  <jim@meyering.net>
55383
55384         * modules/getaddrinfo (Depends-on): Add socklen.
55385
55386 2005-09-23  Bruno Haible  <bruno@clisp.org>
55387
55388         * tests/test-verify.c: New file.
55389
55390 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
55391
55392         Sync from coreutils.
55393
55394         * modules/argmatch (Depends-on): Add verify.
55395         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
55396         unistd-safer.
55397         * modules/save-cwd (Depends-on): Likewise.
55398
55399         * modules/openat (Files): Add lib/openat-die.c.
55400         (Depends-on): Remove error, exitfail.
55401         Add dirname.
55402
55403         * modules/verify: New file.
55404         * MODULES.html.sh (Diagnostics <assert.h>): New section,
55405         with "verify" module.
55406
55407 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
55408
55409         Sync from coreutils.
55410
55411         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
55412         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
55413         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
55414         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
55415         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
55416         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
55417         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
55418         Don't bother checking for string.h, stdlib.h, unistd.h.
55419         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
55420         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
55421         module's job.
55422         * m4/jm-macros.m4 (gl_MACROS): Likewise.
55423         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
55424
55425         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
55426         (gl_GETDATE): Use it.
55427
55428         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
55429
55430 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
55431
55432         Sync from coreutils.
55433
55434         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
55435         stat-time.h.
55436         * lib/argmatch.h: Include verify.h
55437         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
55438         (ARGMATCH_ASSERT): Remove; unused.
55439         * lib/canonicalize.c: Assume STDC_HEADERS.
55440         * lib/exclude.c: Include "strcase.h".
55441         * lib/regex_internal.h [!defined _LIBC]: Likewise.
55442         * lib/getusershell.c: Include stdio--.h rather than stdio.h
55443         and stdio-safer.h.
55444         (getusershell): Call fopen, not fopen_safer.
55445         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
55446         Do not include unistd-safer.h.
55447         (save_cwd): Don't call fd_safer; no longer needed
55448         now that we include fcntl--.h.
55449
55450         * lib/getdate.y (relative_time): New type.
55451         (RELATIVE_TIME_0): New constant.
55452         (parser_control): Use relative_time instead of doing it ourselves.
55453         (%union): Add new relative_time rel member.
55454         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
55455         Now typeless.
55456         (relunit, relunit_snumber): Now of type rel.
55457         (zone, rel, relunit, get_date): Adjust to above changes.
55458
55459         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
55460         Do not include unistd-safer.h.
55461         (getloadavg): Don't call fd_safer; no longer needed
55462         now that we include fcntl--.h.
55463
55464         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
55465         (make_dir_parents): Treat ENOSYS like EEXIST.
55466
55467         Improve quality of diagnostics on restore_cwd failure.
55468         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
55469         (make_dir_parents): Last arg is now int * (for errno), not bool *.
55470         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
55471         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
55472         each time through the loop.  Do not diagnose restore_cwd failure;
55473         that is the caller's job (and perhaps the caller does not care).
55474
55475         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
55476         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
55477         If the file already exists but is not a directory, don't bother
55478         to try to make its parents.
55479         Close potential file descriptor leak if we can't chdir("/") (!).
55480         Don't always return true if chdir($PWD) fails; return true only
55481         if the requested action was done successfully (except for the
55482         chdir($PWD)).
55483         Don't log final directory unless we actually made it.
55484         Refactor to avoid duplicate code to fix up permissions.
55485         Don't attempt to fix up parent permissions if chdir($PWD) fails.
55486
55487         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
55488         to make it a bit faster and (I hope) clearer.
55489         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
55490         Fix bug in formats like %2N.
55491
55492         * lib/verify.h: New file.
55493
55494 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
55495
55496         Sync from coreutils.
55497         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
55498
55499 2005-09-22  Jim Meyering  <jim@meyering.net>
55500
55501         Sync from coreutils.
55502
55503         * m4/lstat.m4 (gl_FUNC_LSTAT):
55504         Use AC_LIBSOURCES to require lstat.c and lstat.h.
55505         Remove obsolete comment.
55506         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
55507         * m4/xstrtod.m4: Likewise.
55508
55509         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
55510
55511 2005-09-22  Jim Meyering  <jim@meyering.net>
55512
55513         Sync from coreutils.
55514
55515         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
55516
55517         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
55518         the .tm_year member, since otherwise gcc-4.0 would now warn about
55519         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
55520
55521         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
55522         order to avoid an unsuppressible warning from gcc on 64-bit systems.
55523
55524         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
55525         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
55526         when run in a time zone for which daylight savings time is in effect
55527         for the starting date.
55528
55529         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
55530         stop us from restricting permissions of just-created absolute-named
55531         directories.
55532         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
55533         to restore initial working directory.
55534         * lib/mkdir-p.c (make_dir_parents): New parameter:
55535         different_working_dir, to tell caller if/when we change the working
55536         directory and are unable to return to the initial one.
55537         * lib/mkdir-p.h (make_dir_parents): Update prototype.
55538         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
55539         `return false'.  This fixes a bug introduced on 2004-07-30.
55540
55541         * lib/openat.c (fdopendir): Be sure to close the supplied
55542         file descriptor before returning.  This makes our replacement
55543         implementation a little closer to Solaris's, where fdopendir
55544         ties the file descriptor to the returned DIR* pointer.
55545         * lib/openat.c (unlinkat): New function.
55546         * lib/openat.h (unlinkat): Add prototype.
55547         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
55548         (openat_restore_fail): Rename from openat_restore_die.
55549         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
55550
55551         Provide an alternative to exiting immediately upon save_cwd or
55552         restore_cwd failure.  Now, an application can arrange e.g.,
55553         to perform a longjump in that case.
55554         * lib/openat.c: Include dirname.h.
55555         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
55556         (rpl_openat, fdopendir, fstatat): Call openat_save_die
55557         and openat_restore_die rather than calling error directly.
55558         Don't include "error.h" or "exitfail.h"; they're no longer needed.
55559
55560         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
55561         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
55562         define.
55563
55564         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
55565         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
55566                             int utc, int nanoseconds);
55567         Background:
55568         date should not have to allocate a megabyte of virtual memory to
55569         handle a format argument like +%1048575T.  When implemented with
55570         strftime, it must allocate such a buffer, use strftime to fill it
55571         in, print it, then free it.
55572         With fprintftime, it simply prints everything and exits.
55573         With no need for memory allocation, that's one fewer way to fail.
55574         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
55575         optional field width, not before, so we accept %9:z, not %:9z.
55576         (my_strftime): Be sure to use L_('x') for literals.
55577
55578         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
55579         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
55580         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
55581         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
55582         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
55583         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
55584         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
55585         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
55586         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
55587         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
55588         * lib/xgethostname.c, lib/xreadlink.c:
55589         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
55590
55591         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
55592         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
55593         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
55594         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
55595         and don't include <sys/file.h>).
55596
55597 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
55598
55599         Sync from coreutils.
55600
55601         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
55602         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
55603         [!LDAV_DONE]: Avoid unused variable warning.
55604
55605 2005-09-21  Bruno Haible  <bruno@clisp.org>
55606
55607         * lib/unicodeio.h (unicode_to_mb): New declaration.
55608
55609 2005-09-20  Derek Price  <derek@ximbiot.com>
55610
55611         * lib/getaddrinfo.c: Don't include <netdb.h> included from
55612         getaddrinfo.h.
55613
55614 2005-09-20  Bruno Haible  <bruno@clisp.org>
55615
55616         * gnulib-tool: Remove trailing slashes from the values specified for
55617         --source-base, --m4-base, --tests-base, --aux-dir.
55618         Suggested by Simon Josefsson <jas@extundo.com>.
55619
55620 2005-09-20  Bruno Haible  <bruno@clisp.org>
55621
55622         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
55623         func_modules_to_filelist, func_import, func_create_testdir): Make all
55624         sorting results locale-independent, so that gnulib-cache.m4 doesn't
55625         change when gnulib-tool is invoked in a different locale.
55626
55627 2005-09-19  Simon Josefsson  <jas@extundo.com>
55628
55629         * m4/socklen.m4: Fix typo.
55630
55631 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55632
55633         Use a consistent style for including <config.h>.
55634         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
55635         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
55636         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
55637         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
55638         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
55639         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
55640         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
55641         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
55642         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
55643         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
55644         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
55645         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
55646         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
55647         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
55648         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
55649         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
55650         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
55651         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
55652         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
55653         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
55654         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
55655         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
55656         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
55657         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
55658         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
55659         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
55660         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
55661         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
55662         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
55663         lib/xstrtoumax.c, lib/yesno.c:
55664         Standardize inclusion of config.h.
55665         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
55666         lib/inttostr.h:  Removed inclusion of config.h from header files.
55667         * lib/inttostr.c:  Adjusted in-tree users.
55668         * lib/timespec.h: Remove superfluous warning to include config.h.
55669         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
55670         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
55671         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
55672         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
55673         config.h with HAVE_CONFIG_H.
55674
55675 2005-09-19  Jim Meyering  <jim@meyering.net>
55676
55677         * modules/pathmax (License): Change to LGPL.
55678
55679 2005-09-19  Derek Price  <derek@ximbiot.com>
55680
55681         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
55682
55683 2005-09-19  Bruno Haible  <bruno@clisp.org>
55684
55685         * gnulib-tool (import): Provide default for --tests-base.
55686
55687 2005-09-19  Bruno Haible  <bruno@clisp.org>
55688
55689         * doc/quote.texi: New file, extracted from gnulib.texi.
55690         * doc/ctime.texi: New file, extracted from gnulib.texi.
55691         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
55692         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
55693         * doc/gnulib.texi: Include them.
55694
55695 2005-09-18  Bruno Haible  <bruno@clisp.org>
55696
55697         Portability fix.
55698         * gnulib-tool (func_readlink): New function.
55699         (func_ln_if_changed): Use it.
55700
55701 2005-09-18  Bruno Haible  <bruno@clisp.org>
55702
55703         * gnulib-tool: Support --with-tests also with --import.
55704         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
55705         (func_import): Use variables $testsbase and $inctests. Emit a
55706         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
55707         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
55708         SUBDIRS += $testsdir.
55709         (func_create_testdir): Update.
55710
55711 2005-09-18  Bruno Haible  <bruno@clisp.org>
55712
55713         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
55714         instead of $dry_run.
55715         (func_cp_if_changed, func_mv_if_changed): Remove functions.
55716         (func_ln_if_changed): Don't handle dry-run here.
55717         (func_import): In dry-run mode, detect more precisely which actions
55718         would be performed, and don't use "...ing" verbs.
55719
55720 2005-09-18  Bruno Haible  <bruno@clisp.org>
55721
55722         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
55723         (func_import): Use join on two temporary files instead of three nested
55724         loops, in order to determine which files are new or old.
55725
55726 2005-09-18  Bruno Haible  <bruno@clisp.org>
55727
55728         * gnulib-tool (func_import): Comment out code that spits out the
55729         new files with --dry-run.
55730
55731 2005-09-18  Bruno Haible  <bruno@clisp.org>
55732
55733         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
55734
55735 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
55736
55737         * lib/stat-time.h: New file.
55738         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
55739         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
55740         in a different way.
55741         (timespec_cmp): New function.
55742         * lib/utimecmp.c: Include stat-time.h.
55743         (SYSCALL_RESOLUTION): Depend on whether various struct stat
55744         members exist, not on the obsolescent ST_MTIM_NSEC.
55745         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
55746
55747 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
55748
55749         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
55750
55751 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
55752
55753         * MODULES.html.sh (File system functions): Add stat-time.
55754         * modules/stat-time: New file.
55755         * modules/timespec (Files): Remove m4/st_mtim.m4; this
55756         is now done in a different way, by the stat-time module.
55757         * modules/utimecmp (Depends-on): Add stat-time.
55758
55759 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
55760
55761         * m4/st_mtim.m4: Remove.  Superseded by...
55762         * m4/stat-time.m4: New file.
55763         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
55764         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
55765
55766 2005-09-15  Derek Price  <derek@ximbiot.com>
55767
55768         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
55769
55770 2005-09-15  Derek Price  <derek@ximbiot.com>
55771
55772         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
55773         * lib/regex_internal.c: Ditto, using this...
55774         (__GNUC_PREREQ): ...new macro.
55775         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
55776         using...
55777         (__GNUC_PREREQ): ...this new macro.
55778
55779         * lib/strstr.h: Include string.h. Define strstr as a macro here.
55780
55781 2005-09-15  Derek Price  <derek@ximbiot.com>
55782             Paul Eggert  <eggert@cs.ucla.edu>
55783
55784         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
55785         changes, consolidating in...
55786         * lib/regex_internal.h: ...this file.
55787
55788 2005-09-13  Jim Meyering  <jim@meyering.net>
55789
55790         * lib/canon-host.c: Filter through gnu indent and reword comments
55791         slightly.
55792         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
55793
55794 2005-09-13  Derek Price  <derek@ximbiot.com>
55795
55796         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
55797         failure.
55798         Reported by Jim Meyering  <jim@meyering.net>.
55799
55800 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
55801
55802         * lib/base64.c: Typo.
55803         (base64_encode): Put b64str in initialized data section.
55804
55805 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
55806
55807         Merge glibc and coreutils changes into gnulib, plus a few
55808         extra fixes.
55809         * lib/md5.c: Use #error rather than a string.
55810         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
55811         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
55812         (__attribute__): Define to empty for non recent-GCC.
55813         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
55814         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
55815         Renamed from their non-__ counterparts, with new macros replacing
55816         them if not _LIBC.  Add __THROW attribute.
55817         (rol): Remove.
55818         (struct md5_ctx): Align buffer if using GCC.
55819         * lib/sha1.h (struct sha1_ctx): Likewise.
55820         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
55821         The old name was backwards.
55822         (NOTSWAP): Remove; not used.
55823         (rol): New macro, moved here from md5.h.
55824         (sha1_process_block): Remove a FIXME that doesn't make sense.
55825
55826 2005-09-12  Derek Price  <derek@ximbiot.com>
55827
55828         Return usable errors from canon-host.
55829         * lib/canon-host.h: New file.
55830         * lib/canon-host.c (canon_host): Wrap...
55831         (canon_host_r): ...this new function, which now relies exclusively on
55832         getaddrinfo.
55833         (ch_strerror): New function.
55834         (last_cherror): New global.
55835         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
55836         interface.
55837         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
55838         void *.
55839         (freeaddrinfo): Free ai->ai_canonname when set.
55840
55841 2005-09-12  Derek Price  <derek@ximbiot.com>
55842
55843         Make canon-host require getaddrinfo.
55844         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
55845         AC_LIBSOURCE canon-host.h.  Call...
55846         (gl_PREREQ_CANON_HOST): ...this new function, which requires
55847         gl_GETADDRINFO.
55848         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
55849
55850 2005-09-12  Derek Price  <derek@ximbiot.com>
55851
55852         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
55853         LGPL.
55854         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
55855
55856 2005-09-12  Derek Price  <derek@ximbiot.com>
55857
55858         * lib/gai_strerror.c: Include config.h when available.  Include
55859         getaddrinfo.h before other headers to test interface.
55860         Reported by Larry Jones <lawrence.jones@ugs.com>.
55861
55862 2005-09-12  Derek Price  <derek@ximbiot.com>
55863             Paul Eggert  <eggert@cs.ucla.edu>
55864
55865         * modules/glob (Files): Add glob-libc.h.
55866
55867 2005-09-12  Derek Price  <derek@ximbiot.com>
55868             Paul Eggert  <eggert@cs.ucla.edu>
55869
55870         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
55871         glob_.h, glob-libc.h.
55872         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
55873
55874 2005-09-12  Derek Price  <derek@ximbiot.com>
55875             Paul Eggert  <eggert@cs.ucla.edu>
55876
55877         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
55878         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
55879         protecting things that should be done only in gnulib contexts.
55880         * lib/glob_.h: New file, containing only the glob things needed for
55881         gnulib.
55882         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
55883         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
55884         (glob, globfree, glob_pattern_p): Now defined simply in terms of
55885         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
55886         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
55887         and to respect the namespace rules better.
55888
55889 2005-09-08  Simon Josefsson  <jas@extundo.com>
55890
55891         * modules/socklen: New file.
55892
55893 2005-09-08  Simon Josefsson  <jas@extundo.com>
55894
55895         * m4/socklen.m4: New file.
55896
55897 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55898
55899         * modules/utimens (Files): Add m4/utimbuf.m4, since
55900         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
55901         Reported by Sergey Poznyakoff.
55902
55903 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55904
55905         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
55906         definitions, since that's the preferred style in glibc.
55907         Fix a minor spacing issue, and update copyright notice to match
55908         glibc's.
55909
55910 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55911
55912         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
55913
55914 2005-09-06  Simon Josefsson  <jas@extundo.com>
55915
55916         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
55917         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
55918
55919 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
55920
55921         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
55922         warning.
55923
55924 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
55925
55926         * config/srclist.txt: Add glibc bug 1302.
55927
55928 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
55929
55930         Change bitset word type from unsigned int to unsigned long int,
55931         as this has better performance on typical 64-bit hosts.
55932         Port bitset code to hosts with unusual word sizes.
55933         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
55934         (build_collating_symbol):
55935         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
55936         argument is a bitset.  This is merely a style issue, but it makes
55937         it clearer that an entire array is expected.
55938         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
55939         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
55940         Port to the case where bitset_word is not the same as unsigned int.
55941         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
55942         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
55943         Likewise.
55944         * lib/regexec.c (check_dst_limits_calc_pos_1,
55945         check_subexp_matching_top):
55946         (build_trtable, group_nodes_into_DFAstates):
55947         Likewise.
55948         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
55949         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
55950         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
55951         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
55952         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
55953         * lib/regcomp.c (optimize_subexps, lower_subexp):
55954         Work even if bitset_word has holes in its bitwise representation.
55955         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
55956         * lib/regexec.c (check_dst_limits_calc_pos_1,
55957         check_subexp_matching_top):
55958         Likewise.
55959         * lib/regex_internal.c (re_string_reconstruct):
55960         Don't assume UCHAR_MAX == 255.
55961         * lib/regex_internal.h (bitset_set_all): Likewise.
55962         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
55963         All uses changed.
55964         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
55965         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
55966         All uses changed.
55967         (BITSET_WORD_MAX): New macro.
55968         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
55969         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
55970         (bitset_empty, bitset_copy):
55971         Prefer sizeof (bitset) to multiplying it out ourselves.
55972         (bitset_not_merge): Remove; unused.
55973         (bitset_contain): Return bool, not unsigned int with one bit on.
55974         All callers changed.
55975         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
55976         alignment than re_node_set; do this by defining a new internal
55977         type struct dests_alloc and using it to allocate memory.
55978
55979 2005-09-05  Bruno Haible  <bruno@clisp.org>
55980
55981         * gnulib-tool (func_import): Fix comparison in handling of symbolic
55982         links.
55983
55984 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
55985
55986         * modules/size_max (Makefile.am): Add size_max.h
55987
55988 2005-09-04  Derek Price  <derek@ximbiot.com>
55989
55990         * gnulib-tool (func_import): Fix reversed $symbolic logic.
55991
55992 2005-09-03  Simon Josefsson  <jas@extundo.com>
55993
55994         * gnulib-tool: Fix typo.
55995
55996 2005-09-03  Simon Josefsson  <jas@extundo.com>
55997
55998         * config/srclist.txt: Add glibc bug 1293.
55999
56000 2005-09-03  Derek Price  <derek@ximbiot.com>
56001
56002         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
56003         From Larry Jones <lawrence.jones@ugs.com>.
56004
56005 2005-09-02  Simon Josefsson  <jas@extundo.com>
56006
56007         * modules/socklen: New file.
56008
56009 2005-09-02  Simon Josefsson  <jas@extundo.com>
56010
56011         * modules/havelib: New module.
56012
56013         * modules/gettext, modules/iconv, modules/lock, modules/readline:
56014         Use havelib.
56015
56016 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
56017
56018         Check for arithmetic overflow when calculating sizes, to prevent
56019         some buffer-overflow issues.  These patches are conservative, in the
56020         sense that when I couldn't determine whether an overflow was possible,
56021         I inserted a run-time check.
56022         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
56023         macros.
56024         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
56025         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
56026         (re_xnrealloc, re_x2nrealloc): New inline functions.
56027         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
56028         parse_bracket_exp):
56029         (build_equiv_class, build_charclass): Check for arithmetic overflow
56030         in size expression calculations.
56031         * lib/regex_internal.c (re_string_realloc_buffers):
56032         (build_wcs_upper_buffer, re_node_set_add_intersect):
56033         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
56034         (re_dfa_add_node, register_state): Likewise.
56035         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
56036         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
56037         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
56038         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
56039
56040 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
56041
56042         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
56043         m4/ulonglong.m4.  Problem reported by Martin Lambers.
56044
56045 2005-09-02  Bruno Haible  <bruno@clisp.org>
56046
56047         Support for lib vs. lib64 distinction on biarch platforms.
56048         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
56049         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
56050         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
56051
56052 2005-09-02  Bruno Haible  <bruno@clisp.org>
56053
56054         * gnulib-tool (import): In the other first-use case, provide defaults
56055         as well.
56056
56057 2005-09-02  Bruno Haible  <bruno@clisp.org>
56058
56059         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
56060         patches not yet found in the latest gettext release.
56061
56062 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
56063
56064         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
56065         to avoid a collision with bits/local_lim.h in glibc.
56066         All uses changed.  Problem reported by Dmitry V. Levin in
56067         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
56068
56069         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
56070         bugs in int versus size_t comparisons.
56071         (re_string_context_at): Fix bug where the code assumed that
56072         Idx is signed.
56073
56074         Use bool where appropriate.
56075         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
56076         All callers changed.
56077         (calc_eclosure_iter): Likewise, for ROOT arg.
56078         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
56079         (build_charclass_op): Likewise, for NON_MATCH arg.
56080         * lib/regex_internal.c (re_string_allocate, re_string_construct):
56081         (re_string_construct_common): Likewise, for ICASE arg.
56082         * lib/regexec.c (re_search_2_stub, re_search_stub):
56083         Likewise, for RET_LEN arg.
56084         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
56085         (set_regs): Likewise, for FL_BACKTRACK arg.
56086         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
56087         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
56088         (calc_eclosure_iter, parse_bracket_exp):
56089         Use bool for internal variables that are booleans.
56090         * lib/regexec.c (re_search_internal, check_matching,
56091         proceed_next_node):
56092         (set_regs, build_sifted_states, sift_states_bkref):
56093         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
56094         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
56095         (find_collation_sequence_value):
56096         Likewise.
56097         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
56098         (re_node_set_compare):
56099         Return bool, not int. All callers changed.
56100         * lib/regexec.c (check_halt_node_context, check_dst_limits):
56101         (build_trtable, check_node_accept): Likewise.
56102         * lib/regex_internal.h: Include stdbool.h.
56103
56104         Fix bugs uncovered when converting to bool.
56105         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
56106         failure instead of charging ahead blindly.
56107         * lib/regex_internal.c (register_state): Likewise.
56108         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
56109         for freeing internal storage.
56110         (group_nodes_into_DFA_states): Use unsigned int, not int, for
56111         bitset pieces used as boolean, to avoid undefined behavior
56112         on hosts that do int overflow checking.
56113
56114 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
56115
56116         * config/srclist.txt: Add glibc bugs 1285-1287.
56117
56118 2005-09-01  Jim Meyering  <jim@meyering.net>
56119
56120         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
56121         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
56122         Require gl_STAT_MACROS, too.
56123
56124 2005-09-01  Bruno Haible  <bruno@clisp.org>
56125
56126         * gnulib-tool (import): In the first-use case, provide defaults.
56127
56128 2005-09-01  Bruno Haible  <bruno@clisp.org>
56129
56130         * gnulib-tool (func_import): Remove the .tmp files.
56131
56132 2005-09-01  Bruno Haible  <bruno@clisp.org>
56133
56134         * gnulib-tool (func_import): Fix handling of symbolic links.
56135
56136 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
56137
56138         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
56139         old glibc regex code mishandles strings longer than 2**31 bytes.
56140         This patch fixes this when the regex code is used in gnulib
56141         (i.e., outside glibc).
56142
56143         This patch should not affect the use of the regex code inside
56144         glibc.  No doubt this problem also needs to be handled for glibc
56145         as well, but the result will be an incompatible change to the
56146         glibc ABI, and the old ABI will have to be supported too.  That
56147         can be the the subject for another patch.
56148
56149         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
56150         governing whether the rest of this patch is active.  By default,
56151         the macro is disabled and the patch has no effect.
56152         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
56153         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
56154         (struct re_pattern_buffer, re_search, re_search_2, re_match):
56155         (re_match_2, re_set_registers): Use the new types.
56156         * lib/regex_internal.h (Idx, re_hashval_t): New types.
56157         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
56158         New macros.
56159         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
56160         (re_string_context_at, bin_tree_t, re_dfastate_t):
56161         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
56162         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
56163         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
56164         (re_string_char_size_at, re_string_wchar_at):
56165         (re_string_elem_size_at):
56166         Use the new types and macros to port to 64-bit hosts.
56167         Use unsigned types for internal values, so that the code
56168         mostly works even for arrays larger than SSIZE_MAX.
56169         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
56170         (search_duplicated_node, calc_eclosure_iter, fetch_number):
56171         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
56172         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
56173         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
56174         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
56175         (calc_inveclosure, parse_dup_op, build_range_exp):
56176         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
56177         (fetch_number, create_token_tree, mark_opt_subexp):
56178         Likewise.
56179         * lib/regex_internal.c (re_string_construct_common,
56180         create_ci_newstate):
56181         (create_cd_newstate, re_string_allocate, re_string_construct):
56182         (re_string_realloc_buffers, build_wcs_upper_buffer):
56183         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
56184         (re_string_reconstruct, re_string_peek_byte_case):
56185         (re_string_fetch_byte_case, re_string_context_at):
56186         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
56187         (re_node_set_init_copy, re_node_set_add_intersect):
56188         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
56189         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
56190         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
56191         (re_acquire_state, re_acquire_state_context, register_state):
56192         Likewise.
56193         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
56194         search_cur_bkref_entry):
56195         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
56196         (re_search_internal, re_search_2_stub, re_search_stub)
56197         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
56198         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
56199         (update_cur_sifted_state, check_dst_limits):
56200         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
56201         (check_subexp_limits, sift_states_bkref, merge_state_array):
56202         (check_subexp_matching_top, get_subexp, get_subexp_sub):
56203         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
56204         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
56205         (expand_bkref_cache, check_node_accept_bytes):
56206         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
56207         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
56208         (acquire_init_state_context, check_halt_node_context):
56209         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
56210         (sift_states_backward, clean_state_log_if_needed):
56211         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
56212         (find_recover_state, transit_state_sb, transit_state_mb):
56213         (transit_state_bkref, build_trtable, match_ctx_clean):
56214         Likewise.
56215         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
56216         to work around an assumption that REG_MISSING is negative.
56217
56218         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
56219         (seek_collating_symbol_entry) [defined _LIBC]:
56220         (lookup_collation_sequence_value) [defined _LIBC]:
56221         (build_range_exp, build_collating_symbol) [defined _LIBC]:
56222         Use prototypes rather than old-style function definitions.
56223         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
56224         (transit_state_sb) [0]:
56225         (find_collation_sequence_value) [defined _LIBC]: Likewise.
56226
56227         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
56228         rm_eo.
56229
56230         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
56231         (optimize_subexps, lower_subexp):
56232         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
56233         since the signed shift might overflow.  Use 1u<<31 instead.
56234         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
56235         Likewise.
56236         * lib/regexec.c (check_dst_limits_calc_pos_1,
56237         check_subexp_matching_top): Likewise.
56238
56239         * lib/regcomp.c (optimize_subexps, lower_subexp):
56240         Use CHAR_BIT rather than 8, for clarity.
56241         * lib/regexec.c (check_dst_limits_calc_pos_1):
56242         (check_subexp_matching_top): Likewise.
56243         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
56244         have to worry about portability issues when shifting it left.
56245         Remove no-longer-needed test for table_size > 0.
56246         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
56247         in a word, as the resulting behavior is undefined.
56248         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
56249         in one case, a <= should have been an <, and in another case the
56250         whole test was missing.
56251         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
56252         the standard name CHAR_BIT.
56253         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
56254         this is not true on one's complement and signed-magnitude hosts.
56255
56256         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
56257         next_last_offset.
56258         (struct re_dfa_t): Remove unused member states_alloc.
56259         * lib/regcomp.c (init_dfa): Don't initialize unused members.
56260
56261 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
56262
56263         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
56264         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
56265         and large-file glibc and in 32-bit large-file Solaris.
56266
56267 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
56268
56269         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
56270         lengths fit in regoff_t; this isn't true if regoff_t is the same
56271         width as size_t.
56272         * lib/regex.c (re_search_internal): 5th arg is LAST_START
56273         (= START + RANGE) instead of RANGE.  This avoids overflow
56274         problems when regoff_t is the same width as size_t.
56275         All callers changed.
56276         (re_search_2_stub): Check for overflow when adding the
56277         sizes of the two strings.
56278         (re_search_stub): Check for overflow when adding START
56279         to RANGE; if it occurs, substitute the extreme value.
56280
56281 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
56282
56283         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
56284
56285 2005-08-31  Jim Meyering  <jim@meyering.net>
56286
56287         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
56288         a pointer-to-const.
56289         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
56290         (register_state): Likewise.
56291         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
56292         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
56293         (group_nodes_into_DFAstates): Likewise.
56294
56295 2005-08-31  Jim Meyering  <jim@meyering.net>
56296
56297         * check-module: Add a FIXME comment.
56298
56299 2005-08-31  Eric Blake  <ebb9@byu.net>
56300
56301         * modules/unistd-safer (Files): Add unistd--.h.
56302         * modules/stdio-safer (Files): Add stdio--.h.
56303
56304 2005-08-31  Derek Price  <derek@ximbiot.com>
56305
56306         * lib/getdelim.c (getdelim): Return EOF on EOF.
56307         Reported by Larry Jones <lawrence.jones@ugs.com>.
56308
56309 2005-08-31  Bruno Haible  <bruno@clisp.org>
56310
56311         Avoid unnecessary diffs in the generated lib/Makefile.am.
56312         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
56313         the generated files.
56314         (func_import): Don't set cmd.
56315
56316 2005-08-31  Bruno Haible  <bruno@clisp.org>
56317
56318         * lib/strstr.c: Include <stddef.h>, for NULL.
56319         * lib/strcasestr.c: Likewise.
56320         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
56321
56322 2005-08-31  Bruno Haible  <bruno@clisp.org>
56323
56324         * gnulib-tool: New option --macro-prefix.
56325         (func_import): Use macro_prefix.
56326         (import): Handle option --macro-prefix.
56327
56328 2005-08-31  Bruno Haible  <bruno@clisp.org>
56329
56330         * gnulib-tool (import): Rename most ac_* variables to cached_*.
56331         Also use new variables cached_lgpl, cached_libtool.
56332
56333 2005-08-31  Bruno Haible  <bruno@clisp.org>
56334
56335         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
56336         always instantiating them.
56337
56338 2005-08-31  Bruno Haible  <bruno@clisp.org>
56339
56340         * gnulib-tool (func_import): Read the previous cached settings
56341         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
56342         earlier added by gnulib but are now dropped. Warn when a gnulib file
56343         overwrites a non-gnulib file.
56344
56345 2005-08-31  Bruno Haible  <bruno@clisp.org>
56346
56347         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
56348         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
56349         projects that don't keep autogenerated files in CVS. Put into
56350         actioncmd only the specified modules, not the transitive closure.
56351
56352 2005-08-31  Bruno Haible  <bruno@clisp.org>
56353
56354         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
56355         Create directories that shall be filled.
56356         (import): Don't look for gl_* macros in configure.ac. Recurse across
56357         all directories containing a gnulib-cache.m4 files, if meaningful.
56358
56359 2005-08-31  Bruno Haible  <bruno@clisp.org>
56360
56361         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
56362         (import): Set seen_libtool when we see gl_LIBTOOL.
56363
56364 2005-08-31  Bruno Haible  <bruno@clisp.org>
56365
56366         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
56367         declaration macro definitions from generated gnulib.m4.
56368
56369 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
56370
56371         * lib/iconvme.h: Add prototype for iconv_alloc.
56372
56373 2005-08-29  Simon Josefsson  <jas@extundo.com>
56374
56375         * lib/iconvme.c: Fix errno.
56376
56377 2005-08-29  Bruno Haible  <bruno@clisp.org>
56378
56379         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
56380         that it works when the directory contains spaces.
56381
56382 2005-08-29  Bruno Haible  <bruno@clisp.org>
56383
56384         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
56385
56386 2005-08-29  Bruno Haible  <bruno@clisp.org>
56387
56388         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
56389         Emit more advice.
56390
56391 2005-08-29  Bruno Haible  <bruno@clisp.org>
56392         and Stepan Kasal  <kasal@ucw.cz>
56393
56394         * check-module: If more parameters are given, check each of them
56395         separately; add more exceptions, as noted by Jim Meyering.
56396         (check_module): New procedure.
56397         (%exempt_header): Now contains all exceptions.
56398
56399 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
56400
56401         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
56402
56403 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
56404
56405         * lib/iconvme.c: Split iconv_string into iconv_alloc.
56406
56407 2005-08-28  Bruno Haible  <bruno@clisp.org>
56408
56409         * m4/gnulib-tool.m4: New file.
56410
56411 2005-08-27  Jim Meyering  <jim@meyering.net>
56412
56413         * modules/unistd-safer (Files): Add pipe-safer.c.
56414         * modules/fcntl-safer (Files): Add creat-safer.c.
56415
56416 2005-08-27  Jim Meyering  <jim@meyering.net>
56417
56418         * m4/stdlib-safer.m4: New file.  From coreutils.
56419         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
56420         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
56421         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
56422         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
56423         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
56424
56425 2005-08-27  Jim Meyering  <jim@meyering.net>
56426
56427         * lib/fopen-safer.c: Merge minor changes from coreutils.
56428         * lib/dup-safer.c: Likewise.
56429         * lib/fd-safer.c: Likewise.
56430
56431         Merge from coreutils.
56432         * lib/stdio--.h: New file.
56433         * lib/stdlib--.h: New file.
56434         * lib/mkstemp-safer.c: New file.
56435
56436         GNU tar needs these.
56437         * lib/pipe-safer.c: New file.
56438         * lib/creat-safer.c: New file.
56439         * lib/fcntl--.h (creat): Define to creat_safer.
56440         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
56441         * lib/unistd--.h (pipe): Define to pipe_safer.
56442         * lib/unistd-safer.h: Declare pipe_safer.
56443
56444 2005-08-26  Simon Josefsson  <jas@extundo.com>
56445
56446         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
56447         Haible <bruno@clisp.org>.
56448
56449 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
56450
56451         * lib/regex_internal.h: Remove all references to
56452         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
56453         or better.
56454         (bitset_not, bitset_merge, bitset_not_merge):
56455         (bitset_mask, re_string_allocate, re_string_construct):
56456         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
56457         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
56458         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
56459         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
56460         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
56461         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
56462         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
56463         (re_acquire_state_context):
56464         Remove unnecessary forward decls.
56465         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
56466         Put __attribute at function definition,
56467         now that the function decl has been removed.
56468         * lib/regex_internal.c (re_string_peek_byte_case):
56469         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
56470         Likewise.
56471
56472 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
56473
56474         * m4/regex.m4: Add AC_PREREQ(2.50).
56475         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
56476
56477 2005-08-25  Simon Josefsson  <jas@extundo.com>
56478
56479         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
56480         __fsetlocking.
56481
56482 2005-08-25  Simon Josefsson  <jas@extundo.com>
56483
56484         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
56485         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
56486         GLIBC specific code.
56487
56488 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
56489
56490         Make regex safe for g++.  This fixes one real bug (an "err"
56491         that should have been "*err").  g++ problem reported by
56492         Sam Steingold.
56493         * lib/regex_internal.h (re_calloc): New macro, consistent with
56494         re_malloc etc.  All callers of calloc changed to use re_calloc.
56495         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
56496         not int.  All callers changed.
56497         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
56498         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
56499         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
56500         (find_recover_state): Change "err" to "*err"; this fixes what
56501         appears to be a real bug.
56502         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
56503         versus int.
56504
56505 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
56506
56507         * modules/regex (Depends-on): Add malloc, since the code
56508         assumes that !malloc(0) means failure.
56509
56510 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
56511
56512         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
56513
56514         alloca modernization/simplification for regex.
56515         * lib/regex.c: Remove portability cruft for alloca.  This no longer
56516         needs to be at the start of the file, and can be moved into
56517         regex_internal.h and simplified.
56518         * lib/regex_internal.h: Include <alloca.h>.
56519         (__libc_use_alloca) [!defined _LIBC]: New macro.
56520         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
56521         now works outside glibc.
56522
56523 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
56524
56525         * config/srclist.txt: Add glibc bugs 1241, 1245.
56526
56527 2005-08-25  Jim Meyering  <jim@meyering.net>
56528
56529         * lib/open-safer.c: Include <config.h>.
56530         Otherwise, we'd lose LARGEFILE support in any file using
56531         e.g. "fcntl--.h"
56532
56533 2005-08-25  Bruno Haible  <bruno@clisp.org>
56534
56535         * m4/minmax.m4: Require autoconf 2.52.
56536         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
56537         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
56538         alternatives of translit over the alphabet.
56539         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
56540
56541 2005-08-24  Simon Josefsson  <jas@extundo.com>
56542
56543         * tests/test-getpass.c: New file.
56544
56545 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
56546
56547         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
56548         for GNU regex features.
56549
56550 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
56551
56552         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
56553         * lib/regex.h (regerror): Likewise.
56554
56555         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
56556         requires this.  (The code never needed it.)
56557
56558         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
56559         All uses of recently-renamed identifiers changed to use the new,
56560         POSIX-compliant names.  The code will build and run just fine
56561         without these changes, but it's better to eat our own dog food
56562         and use the standard-conforming names.
56563
56564         * lib/regex.h: Fix a multitude of POSIX name space violations.
56565         These changes have an effect only for programs that define
56566         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
56567         do not change anything for programs compiled in the normal way.
56568         Also, there is no effect on the ABI.
56569
56570         (_REGEX_SOURCE): New macro.
56571         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
56572         defined and _GNU_SOURCE is not; this fixes a name space violation.
56573
56574         Rename the following macros to obey POSIX requirements.
56575         The old names are still visible as macros if _REGEX_SOURCE is defined.
56576         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
56577         RE_BACKSLASH_ESCAPE_IN_LISTS.
56578         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
56579         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
56580         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
56581         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
56582         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
56583         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
56584         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
56585         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
56586         (REG_INTERVALS): renamed from RE_INTERVALS.
56587         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
56588         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
56589         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
56590         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
56591         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
56592         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
56593         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
56594         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
56595         RE_UNMATCHED_RIGHT_PAREN_ORD.
56596         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
56597         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
56598         (REG_DEBUG): renamed from RE_DEBUG.
56599         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
56600         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
56601         unusual, since we can't clash with the POSIX REG_ICASE.
56602         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
56603         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
56604         (REG_NO_SUB): renamed from RE_NO_SUB.
56605         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
56606         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
56607         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
56608         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
56609         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
56610         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
56611         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
56612         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
56613         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
56614         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
56615         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
56616         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
56617         RE_SYNTAX_POSIX_MINIMAL_BASIC.
56618         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
56619         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
56620         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
56621         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
56622         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
56623         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
56624         (REG_FIXED): Renamed from REGS_FIXED.
56625         (REG_NREGS): Renamed from RE_NREGS.
56626
56627         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
56628         of other REG_* macros, since POSIX says the user is allowed to
56629         #undef these macros selectively.
56630
56631         (reg_errcode_t): Update comment stating what other tables need
56632         to be consistent.
56633
56634         Rename the following enum values to obey POSIX requirements.
56635         The old names are still visible as macros.
56636         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
56637         is not defined, since GNU is supposed to be a superset of POSIX as
56638         much as possible, and since we want reg_errcode_t to be a signed
56639         type for implementation consistency.
56640         (_REG_NOERROR): Renamed from REG_NOERROR.
56641         (_REG_NOMATCH): Renamed from REG_NOMATCH.
56642         (_REG_BADPAT): Renamed from REG_BADPAT.
56643         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
56644         (_REG_ECTYPE): Renamed from REG_ECTYPE.
56645         (_REG_EESCAPE): Renamed from REG_EESCAPE.
56646         (_REG_ESUBREG): Renamed from REG_ESUBREG.
56647         (_REG_EBRACK): Renamed from REG_EBRACK.
56648         (_REG_EPAREN): Renamed from REG_EPAREN.
56649         (_REG_EBRACE): Renamed from REG_EBRACE.
56650         (_REG_BADBR): Renamed from REG_BADBR.
56651         (_REG_ERANGE): Renamed from REG_ERANGE.
56652         (_REG_ESPACE): Renamed from REG_ESPACE.
56653         (_REG_BADRPT): Renamed from REG_BADRPT.
56654         (_REG_EEND): Renamed from REG_EEND.
56655         (_REG_ESIZE): Renamed from REG_ESIZE.
56656         (_REG_ERPAREN): Renamed from REG_ERPAREN.
56657         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
56658         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
56659         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
56660         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
56661
56662         (_REG_RE_NAME, _REG_RM_NAME): New macros.
56663         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
56664         changed.  But support the old name if the new one is not defined
56665         and if _REGEX_SOURCE.
56666
56667         Change the following member names in struct re_pattern_buffer.
56668         The old names are still supported if !_REGEX_SOURCE.
56669         The new names are always supported, regardless of _REGEX_SOURCE.
56670         (re_buffer): Renamed from buffer.
56671         (re_allocated): Renamed from allocated.
56672         (re_used): Renamed from used.
56673         (re_syntax): Renamed from syntax.
56674         (re_fastmap): Renamed from fastmap.
56675         (re_translate): Renamed from translate.
56676         (re_can_be_null): Renamed from can_be_null.
56677         (re_regs_allocated): Renamed from regs_allocated.
56678         (re_fastmap_accurate): Renamed from fastmap_accurate.
56679         (re_no_sub): Renamed from no_sub.
56680         (re_not_bol): Renamed from not_bol.
56681         (re_not_eol): Renamed from not_eol.
56682         (re_newline_anchor): Renamed from newline_anchor.
56683
56684         Change the following member names in struct re_registers.
56685         The old names are still supported if !_REGEX_SOURCE.
56686         The new names are always supported, regardless of _REGEX_SOURCE.
56687         (rm_num_regs): Renamed from num_regs.
56688         (rm_start): Renamed from start.
56689         (rm_end): Renamed from end.
56690
56691         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
56692         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
56693         Prepend __ to parameter names.
56694
56695         Undo yesterday's changes.
56696
56697 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
56698
56699         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
56700         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
56701         lib/regex.c.
56702
56703 2005-08-24  Jim Meyering  <jim@meyering.net>
56704
56705         Sync from coreutils.
56706         * m4/fcntl-safer.m4: New file.
56707
56708         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
56709         and object files for this module.
56710
56711 2005-08-24  Jim Meyering  <jim@meyering.net>
56712
56713         Sync from coreutils.
56714         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
56715
56716 2005-08-24  Jim Meyering  <jim@meyering.net>
56717
56718         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
56719         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
56720
56721 2005-08-24  Jim Meyering  <jim@meyering.net>
56722
56723         * modules/fcntl-safer: New module.
56724         * modules/fts (Depends-on): Add fcntl-safer.
56725         * MODULES.html.sh (File descriptor based Input/Output):
56726         Add fcntl-safer.
56727
56728 2005-08-24  Bruno Haible  <bruno@clisp.org>
56729
56730         Support for unit test modules.
56731         * modules/README: Mention tests modules.
56732         * modules/TEMPLATE-TESTS: New file.
56733         * gnulib-tool: New options --extract-tests-module, --with-tests and
56734         --tests-base (unused for the moment).
56735         (testsbase, inctests): New variables.
56736         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
56737         (func_verify_module): Exclude TEMPLATE-TESTS.
56738         (func_verify_nontests_module, func_verify_tests_module): New functions.
56739         (func_get_dependencies): Add implicit dependency for tests modules.
56740         (func_get_tests_module): New function.
56741         (func_modules_transitive_closure): When --with-tests was specified,
56742         include the unit tests as well, unless explicitly avoided.
56743         (func_emit_lib_Makefile_am): Ignore the tests modules here.
56744         (func_emit_tests_Makefile_am): New function.
56745         (func_create_testdir): When --with-tests was specified, emit a
56746         tests/ directory.
56747         * MODULES.html.sh (Future developments): Update.
56748
56749 2005-08-24  Bruno Haible  <bruno@clisp.org>
56750
56751         * modules/tls-tests: New file.
56752         * tests/test-tls.c: New file, from GNU gettext.
56753
56754 2005-08-24  Bruno Haible  <bruno@clisp.org>
56755
56756         * modules/lock-tests: New file.
56757         * tests/test-lock.c: New file, from GNU gettext.
56758
56759 2005-08-24  Bruno Haible  <bruno@clisp.org>
56760
56761         * lib/lock.h: Add multiple inclusion guard.
56762         * lib/tls.h: Add multiple inclusion guard.
56763
56764 2005-08-24  Bruno Haible  <bruno@clisp.org>
56765
56766         * gnulib-tool: Add support for the --aux-dir option to
56767         --create-testdir, --create-megatestdir, --test, --megatest.
56768         (func_create_testdir, func_create_megatestdir): Optionally emit a
56769         AC_CONFIG_AUX_DIR directive.
56770         (create-testdir, create-megatestdir, test, megatest): Provide a
56771         default value for $auxdir.
56772
56773 2005-08-24  Bruno Haible  <bruno@clisp.org>
56774
56775         * gnulib-tool (import): Use compound statement instead of subshell
56776         where possible.
56777
56778 2005-08-24  Bruno Haible  <bruno@clisp.org>
56779
56780         * gnulib-tool (import): Change --aux-dir default to "build-aux".
56781
56782 2005-08-24  Bruno Haible  <bruno@clisp.org>
56783
56784         * gnulib-tool (func_version): Update.
56785
56786 2005-08-24  Bruno Haible  <bruno@clisp.org>
56787
56788         * gnulib-tool (func_import, func_create_testdir,
56789         func_create_megatestdir): Quote all autoconf macro arguments.
56790
56791 2005-08-24  Bruno Haible  <bruno@clisp.org>
56792
56793         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
56794         option --force, because --force causes the aclocal.m4 of each
56795         subdirectory to be newer than the corresponding config.h.in.
56796
56797 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
56798
56799         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
56800         All contents moved to gl_REGEX.
56801         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
56802         assume that it does.
56803
56804 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
56805
56806         * lib/regex.h (REG_NOSYS)
56807         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
56808         Define, since POSIX requires it as of 2001.
56809         (_REG_ENOSYS)
56810         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
56811         New private symbol, used to keep the enum signed in all cases.
56812         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
56813         Youngman in
56814         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
56815
56816         * lib/regex_internal.c (re_string_skip_chars, register_state):
56817         (calc_state_hash):
56818         Remove forward decls; no longer needed now that we use prototypes.
56819         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
56820         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
56821         (clean_state_log_if_needed): Likewise.
56822
56823 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
56824
56825         * config/srclist.txt: Add glibc bugs 1231-1233.
56826
56827 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
56828
56829         Fix problems reported by Sam Steingold in
56830         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
56831         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
56832         assumed that reg_errcode_t is a signed type, which is not
56833         necessarily true if _XOPEN_SOURCE is not defined.
56834         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
56835         since some compilers warn about it otherwise.
56836
56837 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
56838
56839         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
56840         (init_word_char, create_initial_state, duplicate_node_closure):
56841         (fetch_token, peek_token_bracket, build_range_exp):
56842         (build_collating_symbol): Remove forward decls; no longer needed
56843         now that we use prototypes.
56844
56845         * lib/regcomp.c:
56846         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
56847         (re_compile_fastmap_iter, regcomp, regerror, regfree):
56848         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
56849         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
56850         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
56851         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
56852         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
56853         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
56854         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
56855         (build_range_exp, build_collating_symbol, parse_bracket_exp):
56856         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
56857         (build_charclass, build_charclass_op, fetch_number, create_tree):
56858         (create_token_tree, mark_opt_subexp, duplicate_tree):
56859         Use prototypes rather than old-style definitions.
56860
56861         * lib/regex_internal.c:
56862         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
56863         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
56864         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
56865         (re_string_reconstruct, re_string_peek_byte_case):
56866         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
56867         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
56868         (re_node_set_init_copy, re_node_set_add_intersect):
56869         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
56870         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
56871         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
56872         (re_acquire_state, re_acquire_state_context, register_state):
56873         (create_ci_newstate, create_cd_newstate, free_state):
56874         Likewise.
56875         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
56876         re_search_2):
56877         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
56878         (re_search_internal, prune_impossible_nodes):
56879         (acquire_init_state_context, check_matching, static):
56880         (check_halt_node_context, check_halt_state_context, proceed_next_node):
56881         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
56882         (update_regs, sift_states_backward, build_sifted_states):
56883         (clean_state_log_if_needed, merge_state_array):
56884         (update_cur_sifted_state, add_epsilon_src_nodes):
56885         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
56886         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
56887         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
56888         (find_recover_state, check_subexp_matching_top, transit_state_mb):
56889         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
56890         (check_arrival, check_arrival_add_next_nodes):
56891         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
56892         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
56893         (check_node_accept_bytes, check_node_accept, extend_buffers):
56894         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
56895         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
56896         (sift_ctx_init):
56897         Likewise.
56898
56899         * lib/regex_internal.h:
56900         (re_string_allocate, re_string_construct, re_string_reconstruct):
56901         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
56902         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
56903         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
56904         (re_string_context_at, re_string_peek_byte_case):
56905         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
56906         is defined, since we now use prototypes always.
56907
56908         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
56909         C89 or better.  All uses removed.
56910
56911 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
56912
56913         * config/srclist.txt: Add glibc bugs 1220-1227.
56914
56915 2005-08-20  Jim Meyering  <jim@meyering.net>
56916
56917         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
56918         of unused local, dfa.
56919
56920 2005-08-20  Bruno Haible  <bruno@clisp.org>
56921
56922         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
56923
56924 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
56925
56926         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
56927         (re_node_set_insert_last, re_dfa_add_node):
56928         Rename local variables to avoid GCC shadowing warnings.
56929
56930 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
56931
56932         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
56933         [defined lint]: Suppress bogus uninitialized-variable warnings.
56934
56935         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
56936         and let the caller return REG_ESPACE if out of space.  This
56937         removes an uninitialied-variable warning with GCC 4.0.1, and also
56938         avoids taking the address of a local variable.  All callers
56939         changed.
56940
56941 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
56942
56943         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
56944         $LIBCSRC/posix/regexec.c.
56945         Add glibc bug 1217 for regcomp.c.
56946
56947 2005-08-19  Jim Meyering  <jim@meyering.net>
56948
56949         * lib/regexec.c (proceed_next_node): Redo local variables to
56950         avoid GCC shadowing warnings.
56951
56952 2005-08-18  Bruno Haible  <bruno@clisp.org>
56953
56954         * lib/strstr.c (strstr): Fix return value in multibyte case.
56955         * lib/strcasestr.c (strcasestr): Likewise.
56956
56957 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
56958
56959         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
56960
56961 2005-08-17  Jim Meyering  <jim@meyering.net>
56962
56963         Make the %s format (seconds since the epoch) work for a negative
56964         number and when used with a zero-padded field width, e.g. %015s.
56965
56966         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
56967         label so that it precedes the code to set `digits'.  Otherwise,
56968         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
56969         print `00-22'.  Now, it prints `-0022', as it should.
56970
56971 2005-08-17  Bruno Haible  <bruno@clisp.org>
56972
56973         * modules/strstr (Files): Add m4/mbrtowc.m4.
56974         (Depends-on): Add mbuiter.
56975
56976 2005-08-17  Bruno Haible  <bruno@clisp.org>
56977
56978         * modules/strcasestr: New file.
56979         * MODULES.html.sh (String handling, based on ANSI C 89): Add
56980         strcasestr.
56981
56982 2005-08-17  Bruno Haible  <bruno@clisp.org>
56983
56984         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
56985
56986 2005-08-17  Bruno Haible  <bruno@clisp.org>
56987
56988         * modules/mbuiter: New file.
56989         * MODULES.html.sh (Extended multibyte and wide character utilities):
56990         Add mbuiter.
56991
56992 2005-08-17  Bruno Haible  <bruno@clisp.org>
56993
56994         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
56995         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
56996
56997 2005-08-17  Bruno Haible  <bruno@clisp.org>
56998
56999         * m4/strcasestr.m4: New file.
57000
57001 2005-08-17  Bruno Haible  <bruno@clisp.org>
57002
57003         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
57004         * lib/strstr.c: Completely rewritten, with multibyte locale support.
57005
57006 2005-08-17  Bruno Haible  <bruno@clisp.org>
57007
57008         * lib/strcasestr.h: New file.
57009         * lib/strcasestr.c: New file.
57010
57011 2005-08-17  Bruno Haible  <bruno@clisp.org>
57012
57013         * lib/strcasecmp.c: Use mbuiter.h.
57014
57015 2005-08-17  Bruno Haible  <bruno@clisp.org>
57016
57017         * lib/mbuiter.h: New file.
57018
57019 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
57020
57021         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
57022         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
57023         and gl_GETOPT are both invoked via different paths (as happens
57024         with GNU tar CVS because it uses both argp and getopt), the former
57025         wins.
57026
57027 2005-08-16  Bruno Haible  <bruno@clisp.org>
57028
57029         * modules/tls: New file.
57030         * MODULES.html.sh (Multithreading): Add tls.
57031
57032 2005-08-16  Bruno Haible  <bruno@clisp.org>
57033
57034         * modules/strnlen1: New file.
57035         * MODULES.html.sh (String handling): Add strnlen1.
57036
57037 2005-08-16  Bruno Haible  <bruno@clisp.org>
57038
57039         * modules/strcase (Files): Add m4/mbrtowc.m4.
57040         (Depends-on): Add strnlen1, mbchar.
57041
57042 2005-08-16  Bruno Haible  <bruno@clisp.org>
57043
57044         * modules/mbiter: New file.
57045         * MODULES.html.sh (Extended multibyte and wide character utilities):
57046         Add mbiter.
57047
57048 2005-08-16  Bruno Haible  <bruno@clisp.org>
57049
57050         * modules/mbfile: New file.
57051         * MODULES.html.sh (Extended multibyte and wide character utilities):
57052         Add mbfile.
57053
57054 2005-08-16  Bruno Haible  <bruno@clisp.org>
57055
57056         * modules/mbchar: New file.
57057         * MODULES.html.sh (Extended multibyte and wide character utilities):
57058         New section.
57059
57060 2005-08-16  Bruno Haible  <bruno@clisp.org>
57061
57062         * m4/tls.m4: New file, from GNU gettext.
57063
57064 2005-08-16  Bruno Haible  <bruno@clisp.org>
57065
57066         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
57067         always.
57068         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
57069
57070 2005-08-16  Bruno Haible  <bruno@clisp.org>
57071
57072         * m4/mbiter.m4: New file.
57073
57074 2005-08-16  Bruno Haible  <bruno@clisp.org>
57075
57076         * m4/mbfile.m4: New file.
57077
57078 2005-08-16  Bruno Haible  <bruno@clisp.org>
57079
57080         * m4/mbchar.m4: New file.
57081
57082 2005-08-16  Bruno Haible  <bruno@clisp.org>
57083
57084         * lib/tls.h: New file, from GNU gettext.
57085         * lib/tls.c: New file, from GNU gettext.
57086
57087 2005-08-16  Bruno Haible  <bruno@clisp.org>
57088
57089         * lib/strnlen1.h: New file.
57090         * lib/strnlen1.c: New file.
57091
57092 2005-08-16  Bruno Haible  <bruno@clisp.org>
57093
57094         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
57095         (mbi_init): Update.
57096         (mbi_avail, mbi_advance): Let the iteration end before the terminating
57097         NUL byte, not after it.
57098
57099 2005-08-16  Bruno Haible  <bruno@clisp.org>
57100
57101         * lib/strcase.h (strcasecmp): Add note in comments.
57102         * lib/strncasecmp.c: Use code from strcasecmp.c.
57103         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
57104         (strcasecmp): Work correctly in multibyte locales.
57105
57106 2005-08-16  Bruno Haible  <bruno@clisp.org>
57107
57108         * lib/mbiter.h: New file.
57109
57110 2005-08-16  Bruno Haible  <bruno@clisp.org>
57111
57112         * lib/mbfile.h: New file.
57113
57114 2005-08-16  Bruno Haible  <bruno@clisp.org>
57115
57116         * lib/mbchar.h: New file.
57117         * lib/mbchar.c: New file.
57118
57119 2005-08-16  Bruno Haible  <bruno@clisp.org>
57120
57121         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
57122         the valid ones. Makes the comparison operations transitive:
57123         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
57124         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
57125
57126 2005-08-15  Simon Josefsson  <jas@extundo.com>
57127
57128         * modules/ssize_t (License): Change to 'unlimited'.
57129
57130         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
57131
57132 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
57133
57134         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
57135         Add comments for each pending glibc patch.
57136
57137 2005-08-15  Bruno Haible  <bruno@clisp.org>
57138
57139         * lib/regex.h (__restrict_arr): Don't define to __restrict if
57140         __cplusplus is defined.
57141
57142 2005-08-14  Jim Meyering  <jim@meyering.net>
57143
57144         Sync from coreutils.
57145
57146         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
57147         Use the hash-table-based cycle-detection code not just when
57148         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
57149         Reported by James Youngman in
57150         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
57151         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
57152         FTS_TIGHT_CYCLE_CHECK.
57153         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
57154         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
57155         once again.
57156         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
57157         * lib/fts.c (fd_safer): Remove decl.
57158         Include fcntl--.h rather than unistd-safer.h
57159         (fts_safe_changedir): Don't call fd_safer; no longer needed
57160         now that we include fcntl--.h.
57161
57162 2005-08-12  Simon Josefsson  <jas@extundo.com>
57163
57164         * modules/getndelim2: Use ssize_t module.
57165         * modules/getnline: Likewise.
57166         * modules/safe-read: Likewise.
57167         * modules/xreadlink: Likewise.
57168
57169         * modules/ssize_t: New file.
57170
57171 2005-08-12  Simon Josefsson  <jas@extundo.com>
57172
57173         * m4/readline.m4: Look for termcap, curses or ncurses if required.
57174
57175 2005-08-12  Simon Josefsson  <jas@extundo.com>
57176
57177         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57178         ssize_t.
57179
57180 2005-08-12  Simon Josefsson  <jas@extundo.com>
57181
57182         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
57183         readline, getdelim and check_version.
57184         (Support for systems lacking ISO C 99: Sizes of integer types):
57185         Add size_max.
57186
57187 2005-08-12  Bruno Haible  <bruno@clisp.org>
57188
57189         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
57190
57191 2005-08-11  Simon Josefsson  <jas@extundo.com>
57192
57193         * modules/readline: New file.
57194
57195         * modules/strnlen (Files): Add strnlen.h.
57196
57197 2005-08-11  Simon Josefsson  <jas@extundo.com>
57198
57199         * m4/readline.m4: New file.
57200
57201 2005-08-11  Simon Josefsson  <jas@extundo.com>
57202
57203         * lib/readline.h, readline.c: New file.
57204
57205 2005-08-11  Simon Josefsson  <jas@extundo.com>
57206
57207         * doc/gnulib.texi (Initial import, Finishing touches): Mention
57208         gl_AVOID.
57209
57210 2005-08-11  Bruno Haible  <bruno@clisp.org>
57211
57212         * lib/strnlen.h (strnlen): Change parameter name to match comment.
57213
57214 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
57215
57216         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
57217
57218 2005-08-10  Simon Josefsson  <jas@extundo.com>
57219
57220         * tests/test-iconvme.c: New file.
57221
57222 2005-08-10  Simon Josefsson  <jas@extundo.com>
57223
57224         * m4/strnlen.m4: New file.
57225
57226         * m4/strndup.m4: Don't check for strnlen declaration, done in
57227         strnlen.m4.
57228
57229 2005-08-10  Simon Josefsson  <jas@extundo.com>
57230
57231         * lib/strndup.c: Use strnlen.h.
57232
57233         * lib/strnlen.h: New file.
57234
57235 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
57236
57237         * README: Typos.
57238
57239 2005-08-02  Simon Josefsson  <jas@extundo.com>
57240
57241         * modules/readline: New file.
57242
57243 2005-08-02  Simon Josefsson  <jas@extundo.com>
57244
57245         * modules/getdelim: New file.
57246
57247         * modules/getline: Rewrite, don't use getndelim2.
57248
57249 2005-08-02  Simon Josefsson  <jas@extundo.com>
57250
57251         * m4/getline.m4: Separate out getdelim stuff into separate module.
57252
57253         * m4/getdelim.m4: New file.
57254
57255 2005-08-02  Simon Josefsson  <jas@extundo.com>
57256
57257         * lib/getline.h, getline.c: Rewrite.
57258
57259         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
57260
57261 2005-07-31  Bruno Haible  <bruno@clisp.org>
57262
57263         * lib/lock.h (gl_lock_initializer): New macro.
57264         (gl_lock_define_initialized): Use it.
57265         (gl_rwlock_initializer): New macro.
57266         (gl_rwlock_define_initialized): Use it.
57267         (gl_recursive_lock_initializer): New macro.
57268         (gl_recursive_lock_define_initialized): Use it.
57269
57270 2005-07-30  Karl Berry  <karl@gnu.org>
57271
57272         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
57273         Report from Ben Pfaff, regarding getopt.
57274
57275 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
57276
57277         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
57278         normal way.
57279         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
57280         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
57281         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
57282         (gl_GETOPT): Use the new macros.  Most of the implementation
57283         is moved to the new macros.  This is for programs like Emacs
57284         that don't want all the functionality of gl_GETOPT.
57285
57286 2005-07-26  Bruno Haible  <bruno@clisp.org>
57287
57288         * m4/lock.m4: Update from GNU gettext.
57289
57290 2005-07-26  Bruno Haible  <bruno@clisp.org>
57291
57292         * lib/lock.h: Update from GNU gettext.
57293         * lib/lock.c: Update from GNU gettext.
57294
57295 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
57296
57297         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
57298         obsolescent AC_TRY_RUN.  Include the default includes files, for
57299         'exit'.
57300
57301 2005-07-24  Bruno Haible  <bruno@clisp.org>
57302
57303         * modules/visibility: New file.
57304         * MODULES.html.sh (Misc): Add visibility.
57305
57306 2005-07-24  Bruno Haible  <bruno@clisp.org>
57307
57308         * m4/visibility.m4: New file.
57309
57310 2005-07-24  Bruno Haible  <bruno@clisp.org>
57311
57312         * doc/visibility.texi: New file.
57313
57314 2005-07-22  Bruno Haible  <bruno@clisp.org>
57315
57316         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
57317         $(ALLOCA_H), redundant through BUILT_SOURCES.
57318         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
57319         redundant through BUILT_SOURCES.
57320         * modules/byteswap (Makefile.am): Remove explicit dependency on
57321         $(BYTESWAP_H), redundant through BUILT_SOURCES.
57322         * modules/fnmatch (Makefile.am): Remove explicit dependency on
57323         $(FNMATCH_H), redundant through BUILT_SOURCES.
57324         * modules/getopt (Makefile.am): Remove explicit dependency on
57325         $(GETOPT_H), redundant through BUILT_SOURCES.
57326         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
57327         redundant through BUILT_SOURCES.
57328         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
57329         redundant through BUILT_SOURCES.
57330         * modules/stdbool (Makefile.am): Remove explicit dependency on
57331         $(STDBOOL_H), redundant through BUILT_SOURCES.
57332         * modules/stdint (Makefile.am): Remove explicit dependency on
57333         $(STDINT_H), redundant through BUILT_SOURCES.
57334         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
57335         Remove explicit dependency on $(SYSEXITS_H).
57336         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
57337
57338 2005-07-18  Simon Josefsson  <jas@extundo.com>
57339
57340         * lib/check-version.c (check_version): Accept identical versions too.
57341
57342 2005-07-18  Bruno Haible  <bruno@clisp.org>
57343
57344         * modules/lock: New file.
57345         * MODULES.html.sh (Multithreading): New section.
57346
57347 2005-07-18  Bruno Haible  <bruno@clisp.org>
57348
57349         * m4/lock.m4: New file, from GNU gettext.
57350
57351 2005-07-18  Bruno Haible  <bruno@clisp.org>
57352
57353         * lib/lock.h: New file, from GNU gettext.
57354         * lib/lock.c: New file, from GNU gettext.
57355
57356 2005-07-18  Bruno Haible  <bruno@clisp.org>
57357
57358         * lib/lock.h (gl_once_t): New type.
57359         (gl_once_define, gl_once): New macros.
57360         * lib/lock.c (fresh_once): New variable.
57361         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
57362         functions.
57363
57364 2005-07-16  Simon Josefsson  <jas@extundo.com>
57365
57366         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
57367         workaround, suggested by Bruno.
57368
57369 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
57370
57371         * modules/xalloc (Depends-on): Add xalloc-die.
57372         * modules/xvasprintf (Depends-on): Add xalloc-die.
57373
57374 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
57375
57376         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
57377         with a minor change.
57378
57379 2005-07-15  Bruno Haible  <bruno@clisp.org>
57380
57381         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
57382         When using lib/poll.c, define poll as rpl_poll.
57383
57384 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
57385
57386         * modules/argp (Depends-on): Remove unlocked-io.
57387
57388 2005-07-14  Derek Price  <derek@ximbiot.com>
57389
57390         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
57391         for glob symlink bug.
57392
57393 2005-07-14  Bruno Haible  <bruno@clisp.org>
57394
57395         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
57396         Instead, test for *_unlocked function declarations directly.
57397
57398 2005-07-11  Simon Josefsson  <jas@extundo.com>
57399
57400         * modules/size_max: New file.
57401
57402         * modules/xsize: Depend on size_max module for size_max.m4.
57403
57404 2005-07-11  Simon Josefsson  <jas@extundo.com>
57405
57406         * lib/size_max.h: New file.
57407
57408 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
57409
57410         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
57411         copyright symbol and the year.
57412         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
57413         (version_etc_va): Use parameterized copyright notice.
57414         Reword to conform to the current GNU coding standards.
57415
57416 2005-07-11  Karl Berry  <karl@gnu.org>
57417
57418         * doc/gnulib.texi (Quoting): new node.
57419         (Initial import): more info, from Patrice.
57420
57421 2005-07-11  Bruno Haible  <bruno@clisp.org>
57422
57423         * gnulib-tool (func_usage): Document option --avoid.
57424         (Command line options): Handle --avoid.
57425         (func_acceptable): New function.
57426         (func_modules_transitive_closure): Use it.
57427
57428 2005-07-11  Bruno Haible  <bruno@clisp.org>
57429
57430         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
57431         Reported by Jim Meyering.
57432
57433 2005-07-10  Bruno Haible  <bruno@clisp.org>
57434
57435         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
57436         Needed when size_t is smaller than 'unsigned int'.
57437         Reported by Paul Eggert.
57438
57439 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
57440
57441         * modules/argp (Depends-on): Add unlocked-io
57442
57443 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
57444
57445         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
57446         block of defines.
57447
57448 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
57449
57450         * config/srclist.txt: Comment out regcomp.c, since we have a porting
57451         fix now.
57452
57453 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
57454         and Paul Eggert  <eggert@cs.ucla.edu>
57455
57456         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
57457         in wint_t, not wchar_t.  Remove now-unnecessary cast.
57458
57459 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
57460
57461         * modules/regex (Files): Add lib/regex_internal.c,
57462         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
57463         (Depends-on): Add extensions.
57464         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
57465
57466 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
57467
57468         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
57469         pathconf.
57470         * m4/same.m4 (gl_SAME): Likewise.
57471         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
57472
57473         * m4/regex.m4: Adjust to new libc regex implementation.
57474         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
57475         all the .c and .h parts of (the new) regex.
57476         Quote the m4 stuff better.
57477         Check for RE_ICASE bug of old gnulib.
57478         Check for REG_STARTEND of recent libc.
57479         Rename local variables from jm_* to gl_*.
57480         Quote operand of "test -f".
57481         Say "recent enough" version of libc, not "version 2".
57482         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
57483         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
57484         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
57485         Remove check for btowc, isascii.
57486         Require AM_LANGINFO_CODESET.
57487
57488 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
57489
57490         * lib/regex.c, regex.h: Sync from libc.
57491         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
57492         * lib/regexec.c:
57493         New files, synced from libc, except that regex_internal.h
57494         currently has a small porting fix.
57495
57496 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
57497
57498         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
57499         regex_internal.c, regexec.c.
57500         Add regex_internal.h too, but as a comment, since the libc version
57501         is currently broken in gnulib mode.
57502
57503 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
57504
57505         Support programs like Emacs that use gnulib but not gettext.
57506         * MODULES.html.sh (Internationalization functions): Add gettext-h.
57507         * modules/gettext-h: New file.
57508         * modules/gettext (Files): Remove lib/gettext.h.
57509         (Depends-on): Add gettext-h.
57510         (Makefile.am): Remove lib_SOURCES.
57511         * modules/argmatch, modules/c-stack, modules/closeout:
57512         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
57513         * modules/execute, modules/file-type, modules/getaddrinfo:
57514         * modules/getopt, modules/human, modules/javacomp:
57515         * modules/javaexec, modules/mkdir-p, modules/obstack:
57516         * modules/openat, modules/pagealign_alloc, modules/pipe:
57517         * modules/quotearg, modules/regex, modules/rpmatch:
57518         * modules/unicodeio, modules/userspec, modules/version-etc:
57519         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
57520         * modules/xsetenv:
57521         Depend on gettext-h, not gettext.
57522
57523 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
57524
57525         * gnulib-tool (func_import): Add support for 'public domain' license.
57526         * modules/alloca, modules/atexit, modules/memmove:
57527         Now public domain, not GPL.
57528         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
57529         * modules/realloc, modules/strerror, modules/strtod:
57530         Now LGPL, not GPL.
57531
57532 2005-07-05  Bruno Haible  <bruno@clisp.org>
57533
57534         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
57535         autoconf CVS. Needed for mingw.
57536
57537 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
57538
57539         Remove the dependency of the strftime module on the tzset module.
57540         * modules/strftime (Depends-on): Remove dependency on tzset.
57541
57542 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
57543
57544         Remove the dependency of the strftime module on the tzset module.
57545         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
57546         gl_FUNC_TZSET_CLOBBER.
57547
57548 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
57549
57550         Remove the dependency of the strftime module on the tzset module.
57551         * lib/strftime.c (my_strftime)
57552         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
57553         Copy the input structure, to work around some of the bug with
57554         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
57555         Solaris releases, you should also use the tzset module, but we won't
57556         require it as a dependency any more since we don't want LGPLed code
57557         to depend on GPLed code.
57558
57559 2005-07-02  Jim Meyering  <jim@meyering.net>
57560
57561         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
57562         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
57563         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
57564         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
57565
57566 2005-07-02  Jim Meyering  <jim@meyering.net>
57567
57568         * lib/backupfile.c (backup_args): Change a `0' to NULL.
57569
57570 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
57571
57572         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
57573         declares only 'struct timespec;' (!).
57574
57575 2005-07-01  Jim Meyering  <jim@meyering.net>
57576
57577         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
57578         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
57579         * lib/save-cwd.c, tempname.c:
57580         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
57581         and don't include <sys/file.h>).
57582
57583 2005-06-29  Jim Meyering  <jim@meyering.net>
57584
57585         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
57586         type name.  Use the variable name instead.
57587         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
57588         Likewise.
57589
57590 2005-06-28  Simon Josefsson  <jas@extundo.com>
57591
57592         * modules/check-version (Files): Add check-version.m4.
57593
57594 2005-06-28  Simon Josefsson  <jas@extundo.com>
57595
57596         * m4/check-version.m4: New file, suggested by Jim Meyering
57597         <jim@meyering.net>.
57598
57599 2005-06-28  Simon Josefsson  <jas@extundo.com>
57600
57601         * lib/check-version.h, lib/check-version.c: New files.
57602
57603 2005-06-28  Simon Josefsson  <jas@extundo.com>
57604
57605         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
57606         collision with global variable.  Better indentation.  Don't
57607         increment buffer pointer beyond buffer end.  Based on comments
57608         from Paul Eggert <eggert@cs.ucla.edu>.
57609
57610         * lib/base64.h: Indent.
57611
57612 2005-06-28  Simon Josefsson  <jas@extundo.com>
57613
57614         * doc/gnulib.texi (Library version handling): New section.
57615
57616 2005-06-28  Jim Meyering  <jim@meyering.net>
57617
57618         * check-module (find_included_lib_files): Hard-code another
57619         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
57620         but modules/fts-lgpl (correctly) does not list those files.
57621
57622         * modules/canonicalize (Files): Add lib/pathmax.h.
57623
57624 2005-06-25  Simon Josefsson  <jas@extundo.com>
57625
57626         * modules/check-version: New file.
57627
57628 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
57629
57630         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
57631         initializer of struct addrinfo, as an indication that we don't
57632         care how many members the structure has.
57633
57634 2005-06-24  Derek Price  <derek@ximbiot.com>
57635         and Bruno Haible  <bruno@clisp.org>
57636
57637         Remove stat module & update lstat.
57638         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
57639         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
57640         * m4/stat.m4: Remove this file.
57641
57642 2005-06-24  Derek Price  <derek@ximbiot.com>
57643         and Bruno Haible  <bruno@clisp.org>
57644
57645         Remove stat module & update lstat.
57646         * lib/stat.c: Remove this file...
57647         (slash_aware_lstat): ...moving this content and its support...
57648         * lib/lstat.c (rpl_lstat): ...into here.
57649         * lib/lstat.h: New file.
57650
57651 2005-06-24  Derek Price  <derek@ximbiot.com>
57652         and Bruno Haible  <bruno@clisp.org>
57653
57654         Remove stat module & update lstat.
57655         * config/srclist.txt (libc sources): Remove stat.
57656
57657 2005-06-24  Derek Price  <derek@ximbiot.com>
57658         and Bruno Haible  <bruno@clisp.org>
57659
57660         Remove stat module & update lstat.
57661         * MODULES.html.sh (stat): Remove.
57662         * MODULES.html: Regenerated.
57663         * modules/lstat (Description): Correct function name.
57664         (Files): Add "lstat.h".
57665         (Depends-on): Remove stat, add xalloc, stat-macros.
57666         * modules/stat: Remove this file.
57667         (Include): Add "lstat.h", remove <sys/stat.h>.
57668
57669 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
57670
57671         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
57672         (ranged_convert): Don't save conversion in a temporary struct.
57673         This causes a warning with GCC 4.0.0, and anyway in the typical
57674         case it's not worth the extra 100 bytes or so of code.
57675         (ranged_convert, __mktime_internal): When calling a function via a
57676         pointer P, use P () rather than (*P) (), as we now assume C89 or
57677         better.
57678
57679 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
57680
57681         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
57682         "who -r" failed to give output.  Problem reported by Tim Waugh.
57683
57684         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
57685         (xcalloc): Use it to avoid needless tests.
57686         Problem reported by Jim Meyering.
57687
57688 2005-06-20  Derek Price  <derek@ximbiot.com>
57689
57690         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
57691         unnecessary for Autoconfs > 2.59c.
57692
57693 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57694
57695         * lib/argp.h (__option_is_short): Check upper limit of
57696         __key. Isprint() requires its argument to have the value
57697         of an unsigned char or EOF.
57698
57699 2005-06-16  Jim Meyering  <jim@meyering.net>
57700
57701         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
57702         when either N or S is zero.
57703
57704 2005-06-16  Derek Price  <derek@ximbiot.com>
57705
57706         * m4/bison.m4: Declare YACC & YFLAGS precious.
57707
57708 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
57709
57710         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
57711         multibyte string or pattern, fall back on unibyte matching.
57712         Problem reported by James Youngman.
57713
57714 2005-06-08  Bruno Haible  <bruno@clisp.org>
57715
57716         * modules/csharpcomp: New file.
57717         * MODULES.html.sh (C#): Add csharpcomp.
57718
57719 2005-06-08  Bruno Haible  <bruno@clisp.org>
57720
57721         * m4/csharpcomp.m4: New file, from GNU gettext.
57722
57723 2005-06-08  Bruno Haible  <bruno@clisp.org>
57724
57725         * lib/csharpcomp.h: New file, from GNU gettext.
57726         * lib/csharpcomp.c: New file, from GNU gettext.
57727         * lib/csharpcomp.sh.in: New file, from GNU gettext.
57728
57729 2005-06-08  Bruno Haible  <bruno@clisp.org>
57730
57731         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
57732         warning on mingw.
57733
57734 2005-06-07  Derek Price  <derek@ximbiot.com>
57735
57736         Sync from CVS.
57737         * lib/glob_.h: Indent nested #ifdef.
57738
57739 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
57740
57741         Sync from coreutils.
57742         Use "file name" when talking about file names, instead of "filename"
57743         or "path", as per the GNU coding standards.
57744         * lib/mkdir-p.c: Renamed from makepath.c.
57745         (make_dir_parents): Renamed from make_path.  All callers changed.
57746         * lib/mkdir-p.h: Likewise.  All includers changed.
57747         * lib/filenamecat.c: Renamed from path-concat.c.
57748         (file_name_concat): Renamed from path_concat.  All callers changed.
57749         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
57750         * lib/filenamecat.h: Likewise.  All includers changed.
57751         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
57752         in comments or local variable names.
57753         * lib/basename.c: Likewise.
57754         * lib/canonicalize.c, canonicalize.h: Likewise.
57755         * lib/dirname.c, dirname.h: Likewise.
57756         * lib/euidaccess.c: Likewise.
57757         * lib/exclude.c: Likewise
57758         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
57759         * lib/fsusage.c, fsuage.h: Likewise.
57760         * lib/fts.c, fts_.h: Likewise.
57761         * lib/getcwd.c: Likewise.
57762         * lib/getloadavg.c: Likewise.
57763         * lib/mkstemp.c: Likewise.
57764         * lib/mountlist.c, mountlist.h: Likewise.
57765         * lib/openat.c, openat.h: Likewise.
57766         * lib/readlink-stub.c: Likewise.
57767         * lib/readutmp.c, readutmp.h: Likewise.
57768         * lib/rename.c: Likewise.
57769         * lib/rmdir.c: Likewise.
57770         * lib/same.c: Likewise.
57771         * lib/savedir.c: Likewise.
57772         * lib/stripslash.c: Likewise.
57773         * lib/tempname.c: Likewise.
57774         * lib/xreadlink.c: Likewise.
57775         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
57776         All uses changed.
57777         * lib/exclude.h: Likewise.
57778
57779         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
57780         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
57781         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
57782         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
57783         * lib/pathmax.h: Include <limits.h> unconditionally, since other
57784         files have been getting away with it for years (MORE/BSD 4.3
57785         is extinct now).
57786         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
57787         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
57788
57789         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
57790         Define to 256, not 255, as per modern POSIX.
57791
57792 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
57793
57794         Sync from coreutils.
57795         Use "file name" when talking about file names, instead of "filename"
57796         or "path", as per the GNU coding standards.
57797         * MODULES.html.sh: mkdir-p renamed from makepath.
57798         filenamecat renamed from path-concat.
57799         * modules/filenamecat: Renamed from modules/path-concat.
57800         (Files): filenamecat.h and filenamecat.c renamed from
57801         path-concat.h and path-concat.c.
57802         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
57803         (Include): filenamecat.h, not path-concat.h.
57804         * modules/mkdir-p: Renamed from modules/makepath.
57805         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
57806         makepath.c.
57807         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
57808         (Include): mkdir-p.h, not makepath.h.
57809
57810 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
57811
57812         Sync from coreutils.
57813         * m4/mkdir-p.m4: Renamed from makepath.m4.
57814         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
57815         Rename files from makepath.c to mkdir-p.c, and from
57816         makepath.h to mkdir-p.h.
57817         * m4/filenamecat.m4: Renamed from path-concat.m4.
57818         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
57819         Rename files from path-concat.c to filenamecat.c,
57820         and from path-concat.h to filenamecat.h.
57821         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
57822         "file name" in local variables or comments.
57823         * m4/rename.m4: Likewise.
57824
57825 2005-06-01  Bruno Haible  <bruno@clisp.org>
57826
57827         * modules/csharpexec: New file.
57828         * MODULES.html.sh (C#): New section.
57829
57830 2005-06-01  Bruno Haible  <bruno@clisp.org>
57831
57832         * m4/csharp.m4: New file, from GNU gettext.
57833         * m4/csharpexec.m4: New file, from GNU gettext.
57834
57835 2005-06-01  Bruno Haible  <bruno@clisp.org>
57836
57837         * lib/csharpexec.h: New file, from GNU gettext.
57838         * lib/csharpexec.c: New file, from GNU gettext.
57839         * lib/csharpexec.sh.in: New file, from GNU gettext.
57840
57841 2005-05-31  Derek Price  <derek@ximbiot.com>
57842             Paul Eggert  <eggert@cs.ucla.edu>
57843
57844         Sync from cvs.
57845         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
57846
57847 2005-05-31  Derek Price  <derek@ximbiot.com>
57848             Paul Eggert  <eggert@cs.ucla.edu>
57849
57850         Sync from cvs.
57851         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
57852
57853 2005-05-29  Derek Price  <derek@ximbiot.com>
57854
57855         * config/srclist.txt (glob_.h, glob.c): Add these files.
57856
57857 2005-05-29  Derek Price  <derek@ximbiot.com>
57858
57859         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
57860         * modules/glob: New file.
57861         * modules/getlogin_r: Add link to POSIX spec in description.
57862
57863 2005-05-29  Derek Price  <derek@ximbiot.com>
57864             Paul Eggert  <eggert@cs.ucla.edu>
57865
57866         * m4/glob.m4: New file.
57867
57868 2005-05-29  Derek Price  <derek@ximbiot.com>
57869             Paul Eggert  <eggert@cs.ucla.edu>
57870
57871         * lib/glob_.h, lib/glob.c: New files.
57872
57873 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
57874
57875         * modules/fts (Files): Remove m4/inttypes-pri.m4.
57876         * modules/fts-lgpl (Depends-on): Remove gettext.
57877
57878 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
57879
57880         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
57881         and don't require gt_INTTYPES_PRI.
57882
57883 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
57884
57885         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
57886
57887         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
57888         the configuration hassle isn't worth it.
57889         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
57890         (LONGEST_MODIFIER, PRIuMAX): Remove.
57891
57892 2005-05-27  Bruno Haible  <bruno@clisp.org>
57893
57894         * lib/getlogin_r.h: Remove second include of <stddef.h>.
57895
57896 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
57897
57898         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
57899         _POSIX_PTHREAD_SEMANTICS for Solaris.
57900
57901 2005-05-25  Derek Price  <derek@ximbiot.com>
57902
57903         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
57904
57905 2005-05-25  Derek Price  <derek@ximbiot.com>
57906             Paul Eggert  <eggert@cs.ucla.edu>
57907
57908         * modules/getlogin_r, m4/getlogin_r.m4: New files.
57909         * lib/getlogin_r.c, getlogin_r.h: New files.
57910
57911 2005-05-25  Bruno Haible  <bruno@clisp.org>
57912             Derek Price  <derek@ximbiot.com>
57913
57914         * lib/getlogin_r.h: Simplify API documentation.
57915
57916 2005-05-23  Derek Price  <derek@ximbiot.com>
57917
57918         * modules/minmax (Files): Add m4/minmax.m4.
57919         (configure.ac): Add gl_MINMAX.
57920
57921 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
57922
57923         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
57924         so that unistd-safer.h (GPL'ed code) need not be included.
57925
57926 2005-05-22  Bruno Haible  <bruno@clisp.org>
57927
57928         * m4/minmax.m4: New file.
57929         Based on a patch by Derek Price <derek@ximbiot.com>.
57930
57931 2005-05-22  Bruno Haible  <bruno@clisp.org>
57932
57933         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
57934         (INT64_MIN): Fix definition.
57935         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
57936
57937         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
57938         NEED_SIGNED_INT_TYPES.
57939
57940         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
57941         HAVE_SYSTEM_INTTYPES.
57942
57943 2005-05-22  Bruno Haible  <bruno@clisp.org>
57944
57945         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
57946         Also include <sys/param.h> if it defines MIN, MAX.
57947         Based on a patch by Derek Price <derek@ximbiot.com>.
57948
57949 2005-05-21  Jim Meyering  <jim@meyering.net>
57950
57951         * modules/fts (Files): Add m4/inttypes-pri.m4.
57952         (Depends-on): Add lstat and remove gettext.  Alphabetize.
57953
57954 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
57955
57956         New fts module.
57957         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
57958         (setup_dir, free_dir): New functions.
57959         (enter_dir, leave_dir): Define trivial
57960         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
57961         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
57962         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
57963         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
57964         Move to fts-cycle.c.
57965         (fts_open): Use setup_dir.
57966         (fts_close): Use free_dir.
57967         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
57968         This adds a label and some gotos, but the alternatives were messier.
57969         Check for memory allocation failure when entering a dir.
57970         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
57971         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
57972         (FTS): New member fts_cycle, that is a union that contains the
57973         old active_dir_ht and cycle_state.  All uses changed to mention
57974         fts_cycle.ht and fts_cycle.state.
57975         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
57976         fts.c, with the following changes:
57977         (setup_dir, free_dir): New functions.
57978         (enter_dir): Now returns bool.  Return true if successful, false
57979         if memory exhausted.  All callers changed.
57980         Do not bother partly cleaning up on
57981         memory allocation failure; that is free_dir's job.
57982         However, free ad if hash_insert fails, to avoid memory leak.
57983         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
57984         fts->fts_options to see which union member to use.
57985
57986 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
57987
57988         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
57989         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
57990
57991 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
57992
57993         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
57994
57995 2005-05-20  Jim Meyering  <jim@meyering.net>
57996
57997         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
57998         Now a macro, to pacify GCC.
57999
58000 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
58001
58002         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
58003         of -1.
58004
58005 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
58006
58007         * lib/chown.c (rpl_chown): Return -1 on failure.
58008
58009 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
58010
58011         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
58012         Don't check for stddef.h.
58013         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
58014         don't use its results.
58015         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
58016         since we include them unconditionally.  Don't require
58017         AM_STDBOOL_H, since stdbool is a prerequisite.
58018         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
58019         since we assume C89 or better.
58020         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
58021         as we don't use their results.
58022         Don't check for fchdir, memmove, memset, strrchr, as we use
58023         them unconditionally.
58024         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
58025         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
58026
58027 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
58028
58029         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
58030         Include <stddef.h> unconditionally, since we assume C89 now.
58031         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
58032         * lib/fts.c: Include fts_.h first, to check interface.
58033         Do not include intprops.h; no longer needed.
58034         Include cycle-check.h and hash.h, since fts_.h no longer does.
58035         Remove unnecessary casts of closedir to void.
58036         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
58037         decide whether to decrement nlinks.
58038         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
58039         (FTS): Use struct hash_table * instead of Hash_table, so that
58040         we no longer need to include hash.h here.
58041
58042 2005-05-18  Jim Meyering  <jim@meyering.net>
58043
58044         * modules/dirfd (License): Change to LGPL.  Most of the code
58045         is already in the public domain.
58046
58047 2005-05-18  Jim Meyering  <jim@meyering.net>
58048
58049         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
58050         Reported by Yoann Vandoorselaere.
58051
58052 2005-05-17  Jim Meyering  <jim@meyering.net>
58053
58054         * m4/fts.m4: New file, from coreutils.
58055
58056 2005-05-17  Jim Meyering  <jim@meyering.net>
58057
58058         * lib/fts.c, lib/fts_.h: New files, from coreutils.
58059
58060 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
58061
58062         Sync from coreutils.
58063         * m4/unlinkdir.m4: New file.
58064
58065 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
58066
58067         Sync from coreutils.
58068         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
58069         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
58070         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
58071         White space changes only.
58072         * lib/makepath.c (make_path): Port to hosts where leading "//" is
58073         special.
58074         * lib/yesno.c: Include getline.h, not ctype.h.
58075         (yesno): Don't remove leading white space; POSIX doesn't allow it.
58076         Use getline to remove arbitrary restriction on response length.
58077
58078 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
58079
58080         * config/srclist-update: Spell out "Street" in FSF postal
58081         mail address; this is the style the FSF seems to prefer.
58082
58083         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
58084         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
58085         this updates FSF postal mail address.
58086
58087         Sync from coreutils.
58088         * modules/unlinkdir: New file.
58089         * modules/yesno (Depends-on): Add getline.
58090         * MODULES.html.sh (File system functions): Add unlinkdir.
58091
58092 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
58093
58094         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
58095         lib/strsep.h:
58096         Change the initial comment to refer to GPL, not LGPL.
58097         gnulib-tool will change it to LGPL as needed.
58098
58099         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
58100         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
58101         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
58102         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
58103         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
58104         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
58105         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
58106         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
58107         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
58108         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
58109         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
58110         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
58111         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
58112         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
58113         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
58114         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
58115         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
58116         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
58117         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
58118         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
58119         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
58120         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
58121         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
58122         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
58123         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
58124         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
58125         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
58126         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
58127         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
58128         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
58129         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
58130         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
58131         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
58132         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
58133         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
58134         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
58135         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
58136         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
58137         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
58138         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
58139         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
58140         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
58141         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
58142         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
58143         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
58144         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
58145         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
58146         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
58147         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
58148         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
58149         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
58150         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
58151         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
58152         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
58153         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
58154         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
58155         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
58156         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
58157         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
58158         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
58159         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
58160         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
58161         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
58162         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
58163         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
58164         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
58165         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
58166         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
58167         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
58168         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
58169         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
58170         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
58171         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
58172         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
58173         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
58174         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
58175         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
58176         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
58177         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
58178         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
58179         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
58180         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
58181         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
58182         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
58183         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
58184         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
58185         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
58186         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
58187         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
58188         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
58189         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
58190         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
58191         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
58192         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
58193         lib/yesno.c, lib/yesno.h:
58194         Update FSF postal mail address.
58195
58196 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
58197
58198         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
58199         tests/test-memmem.c, tests/test-stpncpy.c:
58200         Update FSF postal mail address.
58201
58202 2005-05-13  Bruno Haible  <bruno@clisp.org>
58203
58204         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
58205         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
58206         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
58207         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
58208         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
58209         Add support for 64-bit integers in the MSVC compiler.
58210
58211 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58212
58213         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
58214
58215 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
58216
58217         * gnulib-tool (func_import): Sort and uniquify recommended includes.
58218
58219 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
58220
58221         * doc/getdate.texi (General date syntax): Don't say that date
58222         date --iso-8601=ns generates acceptable dates; it doesn't yet.
58223         Problem reported by Nic Ferrier.
58224
58225 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58226
58227         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
58228         specified in ai_socktype. Fix invalid ai_protocol
58229         check. ai_protocol is usually set to 0 or depending on
58230         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
58231         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
58232         ai_socktype / ai_protocol in the returned addrinfo structure.
58233
58234 2005-05-10  Simon Josefsson  <jas@extundo.com>
58235
58236         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
58237         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
58238
58239 2005-05-10  Karl Berry  <karl@gnu.org>
58240
58241         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
58242         (from http://www.gnu.org/licenses).
58243         * doc/COPYING.LIB: also rename to COPYING.LESSER.
58244         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
58245         fdl.texi suffices.
58246
58247 2005-05-10  Karl Berry  <karl@gnu.org>
58248
58249         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
58250         (COPYING.DOC): remove.
58251
58252         * config/srclist-update: new FSF address.
58253
58254 2005-05-10  Derek Price  <derek@ximbiot.com>
58255
58256         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
58257         possible.
58258
58259 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58260             Bruno Haible  <bruno@clisp.org>
58261
58262         * modules/inet_ntop: New file.
58263         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
58264         inet_ntop.
58265
58266 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58267             Bruno Haible  <bruno@clisp.org>
58268
58269         * m4/inet_ntop.m4: New file.
58270
58271 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
58272             Bruno Haible  <bruno@clisp.org>
58273
58274         * lib/inet_ntop.h: New file.
58275         * lib/inet_ntop.c: New file, from glibc with modifications.
58276
58277 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
58278
58279         * modules/time_r (License): Change to LGPL.
58280         * modules/extensions (License): Change to LGPL.  Actually,
58281         the license is more permissive than that, but currently gnulib-tool
58282         doesn't know how to handle more-permissive licenses.
58283
58284         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
58285         Problem reported by Dave Love.
58286
58287 2005-05-08  Jim Meyering  <jim@meyering.net>
58288
58289         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
58290         blank.
58291
58292 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
58293
58294         * modules/argmatch (Depends-on): Add stdbool.
58295         * modules/backupfile (Depends-on): Likewise.
58296         * modules/chdir-long (Depends-on): Likewise.
58297         * modules/closeout (Depends-on): Likewise.
58298         * modules/cycle-check (Depends-on): Likewise.
58299         * modules/dirname (Depends-on): Likewise.
58300         * modules/fnmatch (Depends-on): Likewise.
58301         * modules/fsusage (Depends-on): Likewise.
58302         * modules/fwriteerror (Depends-on): Likewise.
58303         * modules/getcwd (Depends-on): Likewise.
58304         * modules/getloadavg (Depends-on): Likewise.
58305         * modules/hard-locale (Depends-on): Likewise.
58306         * modules/makepath (Depends-on): Likewise.
58307         * modules/mountlist (Depends-on): Likewise.
58308         * modules/nanosleep (Depends-on): Likewise.
58309         * modules/posixtm (Depends-on): Likewise.
58310         * modules/quotearg (Depends-on): Likewise.
58311         * modules/readtokens (Depends-on): Likewise.
58312         * modules/readtokens0 (Depends-on): Likewise.
58313         * modules/readutmp (Depends-on): Likewise.
58314         * modules/save-cwd (Depends-on): Likewise.
58315         * modules/strftime (Depends-on): Likewise.
58316         * modules/userspec (Depends-on): Likewise.
58317         * modules/utimecmp (Depends-on): Likewise.
58318         * modules/xgetcwd (Depends-on): Likewise.
58319         * modules/xnanosleep (Depends-on): Likewise.
58320         * modules/xstrtod (Depends-on): Likewise.
58321         * modules/yesno (Depends-on): Likewise.
58322
58323 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
58324
58325         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
58326         needless checks.
58327
58328 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
58329
58330         Merge from coreutils.  Among other things,
58331         add bulletproofing for cases where stdin, stdout, or stderr are closed.
58332         * lib/fd-safer.c: New file.
58333         * lib/fcntl-safer.h, open-safer.c: Remove.
58334         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
58335         * lib/dup-safer.c: Include unistd-safer.h first.
58336         Don't include errno.h.
58337         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
58338         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
58339         * lib/file-type.c: Rely on file-type.h change.
58340         * lib/getloadavg.c: Include unistd-safer.h.
58341         (getloadavg): Use safer open.
58342         * lib/getusershell.c: Include "stdio-safer.h".
58343         (getusershell): Use safer fopen.
58344         * lib/long-options.c (long_options): Use NULL rather than 0.
58345         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
58346         'free'.
58347         * lib/modechange.c: Likewise.
58348         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
58349         (MODE_DONE): New constant.
58350         (struct mode_change): Remove 'next' member.
58351         (make_node_op_equals): New function; like the old one of the
58352         same name, except it allocates an array.
58353         (mode_compile, mode_create_from_ref): Use it.
58354         (mode_compile): Allocate result as an array, not a linked list.
58355         Parse octal string ourself, so that we catch mistakes like "+0".
58356         (mode_adjust): Arg is an array, not a linked list.
58357         * lib/modechange.c: Include stat-macros.h, xalloc.h.
58358         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
58359         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
58360         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
58361         Remove.  This is now stat-macros.h's job.
58362         (talloc): Remove.  All callers replaced by xalloc, so that
58363         our invokers don't have to worry about reporting memory failures.
58364         (make_node_op_equals): Remove.
58365         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
58366         New constants.
58367         (struct mode_change): Moved here from modechange.h.
58368         (mode_append_entry): Remove.
58369         (mode_compile): Remove MASKED_OPS arg, since it encouraged
58370         apps to have incorrect behavior.  Use simpler algorithm for head
58371         and tail.  Don't futz with umask; that's now the job of mode_adjust.
58372         Detect more invalid usages rather than having somewhat-random behavior.
58373         Don't insert an "a=" action, as that leads to incorrect behavior.
58374         (mode_compile, mode_create_from_ref): Return NULL on error instead
58375         of an enum, since now there's only one way to have an error.  All
58376         callers changed.
58377         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
58378         at the correct time.  Simplify calculation of "+u" and its ilk.
58379         Don't mishandle "+X".
58380         (mode_free): Remove "register" and localize decls.
58381         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
58382         (struct mode_change): Move to modechange.c; callers don't
58383         need to see this stuff.
58384         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
58385         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
58386         (mode_change, mode_adjust): Reflect the new signatures noted above.
58387         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
58388         that might redefine system include files.
58389         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
58390         (my_usleep): Use NULL rather than (void *) 0.
58391         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
58392         Use siginterrupt to specify that system calls should be interrupted.
58393         (rpl_nanosleep): Move initialization of suspended closer to call of
58394         my_usleep.
58395         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
58396         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
58397         (desirable_utmp_entry): New function.
58398         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
58399         using x2nrealloc, to simplify logic.
58400         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
58401         size calculation.  Do not assume utmp file is a regular file.
58402         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
58403         (READ_UTMP_CHECK_PIDS): New constant.
58404         * lib/save-cwd.c: Include unistd-safer.h.
58405         (save_cwd): Use fd_safer.
58406         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
58407         [!_LIBC] Include "stat-macros.h" instead.
58408         * lib/unistd-safer.h (fd_safer): New decl.
58409
58410 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
58411
58412         * modules/getloadavg (Depends-on): Add unistd-safer.
58413         * modules/getusershell (Depends-on): Add stdio-safer.
58414         * modules/lstat (Depends-on): Remove xalloc.
58415         * modules/mkstemp (Depends-on): Add stat-macros.
58416         * modules/modechange (Depends-on): Remove xstrtol.
58417         Add stat-macros, xalloc.
58418         * modules/save-cwd (Depends-on): Add unistd-safer.
58419         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
58420         * modules/unistd-safer (Files): Add lib/fd-safer.c
58421         (Makefile.am): Remove lib_SOURCES.
58422
58423         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
58424         Remove fcntl-safer; unistd-safer supersedes it.
58425
58426 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
58427
58428         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
58429         AC_HEADER_STAT.
58430         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
58431         (gl_PREREQ_CHOWN): Remove.
58432         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
58433         it.  Don't require AC_HEADER_STAT.
58434         (gl_PREREQ_LSTAT): Remove.
58435         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
58436         Don't require AC_HEADER_STAT.
58437         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
58438         (gl_PREREQ_RMDIR): Remove.
58439         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
58440         mention stat-macros.h or AC_HEADER_STAT, since we'll make
58441         the stat-macros module a prerequisite.
58442         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
58443         * m4/filemode.m4 (gl_FILEMODE): Likewise.
58444         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
58445         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
58446         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
58447         variable names.
58448         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
58449         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
58450         variable prefixes.
58451         * m4/fcntl-safer.m4: Remove.
58452         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
58453         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
58454         Invoke gl_PREREQ_FD_SAFER.
58455         (gl_PREREQ_FD_SAFER): New macro.
58456         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
58457         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
58458         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
58459         Remove duplicate call to AC_LIBOBJ(readutmp).
58460         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
58461
58462         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
58463         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
58464
58465 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
58466
58467         * MODULES.html.sh (Misc): Add byteswap.
58468
58469 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
58470
58471         * modules/getcwd (Depends-on): Add extensions.
58472         * modules/openat (Depends-on): Likewise.
58473
58474 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
58475
58476         * modules/byteswap: New file.
58477
58478 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
58479
58480         * m4/byteswap.m4: New file.
58481
58482 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
58483
58484         * lib/byteswap_.h: New file.
58485
58486 2005-04-25  Karl Berry  <karl@gnu.org>
58487
58488         * m4/gettext.m4: Update from GNU gettext 0.14.4.
58489
58490 2005-04-25  Albert Chin  <china@thewrittenword.com>
58491
58492         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
58493         Toolkit C bug.
58494
58495 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
58496
58497         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
58498         (func_ln_if_changed) Remove forcibly for no error message
58499         in case file does not exist.
58500
58501 2005-04-19  Simon Josefsson  <jas@extundo.com>
58502
58503         * gnulib-tool (Options): Make --symlink mean --symbolic.
58504
58505 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
58506
58507         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
58508
58509 2005-04-16  Simon Josefsson  <jas@extundo.com>
58510
58511         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
58512
58513 2005-04-15  Simon Josefsson  <jas@extundo.com>
58514
58515         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
58516
58517 2005-04-15  Simon Josefsson  <jas@extundo.com>
58518
58519         * gnulib-tool: Rename --symlink to --symbolic.
58520
58521 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
58522
58523         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
58524         symbolic links to files instead of copying/moving.  Add --aux-dir,
58525         specifying directory relative --dir where auxiliary build tools
58526         are placed.
58527
58528 2005-04-14  Bruno Haible  <bruno@clisp.org>
58529
58530         * modules/allocsa (License): Change to LGPL.
58531         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
58532
58533 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
58534
58535         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
58536         that "UTC +1 second" continues to work.  Problem reported
58537         by Dmitry V. Levin.
58538         (relunit_snumber): New rule.
58539         (relunit): Use it.
58540
58541 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
58542
58543         * lib/getdate.y (universal_time_zone_table): New constant.
58544         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
58545         universal_time_zone_table.
58546         (lookup_zone): Prefer universal_time_zone_table to
58547         local_time_zone_table, so that "GMT" time stamps are allowed in
58548         London during the summer.  Problem reported by Ian Abbott.
58549
58550 2005-04-12  Jim Meyering  <jim@meyering.net>
58551
58552         * lib/human.c (humblock): Set *options even when returning due to
58553         xstrtoumax conversion failure.  Thanks to a used-uninitialized
58554         warning from gcc-4.
58555
58556 2005-04-09  Jim Meyering  <jim@meyering.net>
58557
58558         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
58559         -Wuninitialized: initialize tm0.tm_year.
58560
58561 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
58562
58563         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
58564         count, since there's no maximum.  All uses changed.
58565         Add member dsts_seen.
58566         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
58567         not being INT_MAX.
58568         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
58569         Use pc_rels_seen to decide whther a date is absolute.
58570
58571         * lib/getdate.y (number): Don't overwrite year.
58572         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
58573         check.
58574
58575 2005-04-02  Simon Josefsson  <jas@extundo.com>
58576
58577         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
58578         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
58579
58580 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
58581
58582         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
58583         where no absolute path name can be longer than PATH_MAX.
58584
58585 2005-03-27  Jim Meyering  <jim@meyering.net>
58586
58587         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
58588
58589 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
58590
58591         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
58592         "one's complement" -> "ones' complement" in comment, as per Knuth.
58593         "value of type" -> "type or expression" in comment.
58594         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
58595
58596 2005-03-26  Jim Meyering  <jim@meyering.net>
58597
58598         Comment nits.
58599         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
58600         Correct typos: s/or/of/.
58601
58602 2005-03-26  Jim Meyering  <jim@meyering.net>
58603
58604         * modules/check-include-files: Move to ../ and rename to...
58605         * check-module: ...this.
58606
58607 2005-03-25  Jim Meyering  <jim@meyering.net>
58608
58609         * modules/xvasprintf (Files): Add xalloc.h.
58610
58611 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
58612
58613         * modules/gettext (Files): config/config.rpath ->
58614         build-aux/config.rpath
58615         * modules/iconv (Files): Likewise.
58616         Problem reported by Oskar Liljeblad.
58617
58618 2005-03-23  Jim Meyering  <jim@meyering.net>
58619
58620         * modules/check-include-files: New script to check for
58621         missing dependencies, multiple includes, etc.
58622
58623         * modules/c-strtold (Depends-on): Add xalloc.
58624         * modules/c-strtod (Depends-on): Add xalloc.
58625         * modules/hash (Depends-on): Add xalloc.
58626         (Files): Remove lib/xalloc.h.
58627
58628         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
58629         * modules/userspec (Files): Add lib/inttostr.h.
58630
58631 2005-03-23  Jim Meyering  <jim@meyering.net>
58632
58633         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
58634
58635 2005-03-22  Jim Meyering  <jim@meyering.net>
58636
58637         * modules/stat-macros: New module.
58638         * modules/canonicalize, modules/euidaccess, modules/file-type,
58639         * modules/filemode, modules/lchown, modules/makepath,
58640         * modules/rmdir, modules/stat: Depend on new stat-macros module
58641         rather than listing lib/stat-macros.h manually.
58642         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
58643
58644 2005-03-22  Jim Meyering  <jim@meyering.net>
58645
58646         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
58647
58648 2005-03-22  Bruno Haible  <bruno@clisp.org>
58649
58650         * config/srclist.txt: Replace target directory 'config' with
58651         'build-aux'.
58652         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
58653         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
58654         ../build-aux/.
58655
58656 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
58657
58658         * modules/chdir-long (Depends-on): Add mempcpy.
58659
58660         * modules/acl, modules/backupfile, modules/c-strtod,
58661         modules/c-strtold, modules/canon-host, modules/canonicalize,
58662         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
58663         modules/exclude, modules/exitfail, modules/file-type,
58664         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
58665         modules/getdate, modules/getline, modules/getpagesize,
58666         modules/getpass, modules/getugroups, modules/group-member,
58667         modules/hard-locale, modules/hash, modules/human, modules/idcache,
58668         modules/inttostr, modules/long-options, modules/makepath,
58669         modules/md5, modules/memcasecmp, modules/memcoll,
58670         modules/modechange, modules/mountlist, modules/path-concat,
58671         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
58672         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
58673         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
58674         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
58675         modules/strftime, modules/strndup, modules/strverscmp,
58676         modules/timespec, modules/unlocked-io, modules/userspec,
58677         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
58678         modules/yesno:
58679         Remove lib_SOURCES line from Makefile.am section, as this is now
58680         done automatically by the corresponding Autoconf macro.
58681
58682 2005-03-21  Jim Meyering  <jim@meyering.net>
58683
58684         Changes imported from coreutils.
58685
58686         * lib/cycle-check.c: Don't include xalloc.h.
58687
58688         * lib/path-concat.c: Don't include assert.h.
58689         (path_concat): Remove assertion that would have triggered
58690         for ABASE starting with more than one slash.
58691         Reported by Andreas Schwab.
58692
58693         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
58694         properly when ABASE is an absolute file name.
58695         Correct the description of this function.
58696         Include <assert.h>.
58697         Add an assertion and a test driver.
58698         This fixes a bug introduced on 2004-07-02.
58699         Andreas Schwab reported the resulting failure of cp --parents:
58700         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
58701
58702 2005-03-21  Jim Meyering  <jim@meyering.net>
58703
58704         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
58705         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
58706
58707 2005-03-21  Jim Meyering  <jim@meyering.net>
58708         and  Paul Eggert  <eggert@cs.ucla.edu>
58709
58710         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
58711         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
58712         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
58713         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
58714         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
58715         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
58716         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
58717         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
58718         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
58719         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
58720         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
58721         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
58722         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
58723         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
58724         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
58725         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
58726         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
58727         for these modules.
58728
58729 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
58730
58731         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
58732         (which shouldn't happen), generate nothing instead of returning 0
58733         immediately, so that nstrftime (NULL, ...) doesn't return 0.
58734
58735 2005-03-16  Bruno Haible  <bruno@clisp.org>
58736
58737         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
58738         HAVE_LONGLONG_64BIT.
58739
58740 2005-03-16  Bruno Haible  <bruno@clisp.org>
58741
58742         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
58743         HAVE_LONGLONG_64BIT.
58744
58745 2005-03-16  Bruno Haible  <bruno@clisp.org>
58746
58747         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
58748         HAVE_LONGLONG_64BIT.
58749
58750 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
58751
58752         * lib/strftime.c (my_strftime): Prepend space to format so that we can
58753         reliably distinguish strftime failure from empty output on POSIX
58754         hosts.
58755
58756 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
58757
58758         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
58759         (iconv_string): Don't guess a size-zero buffer, as that might cause
58760         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
58761         result would be 'too large', where 'too large' is (heuristically)
58762         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
58763         overflow concerns.  This will prevent some unwanted malloc failures
58764         when the inputs are very large.
58765
58766 2005-03-15  Karl Berry  <karl@gnu.org>
58767
58768         * config/srclist.txt (config.rpath): from gettext.
58769         * config/config.rpath: update.
58770
58771 2005-03-15  Bruno Haible  <bruno@clisp.org>
58772
58773         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
58774         to 'negate'.
58775
58776         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
58777         variable.
58778
58779         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
58780         results.
58781
58782 2005-03-14  Simon Josefsson  <jas@extundo.com>
58783
58784         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
58785         <fx@gnu.org>.
58786
58787 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
58788
58789         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
58790         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
58791         intprops.h.
58792         * lib/strtol.c: Likewise.
58793
58794 2005-03-14  Jim Meyering  <jim@meyering.net>
58795
58796         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
58797         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
58798         to be nonzero so that we (and caller) can detect the difference
58799         between a valid zero-length expansion and an error return, even
58800         when the underlying strftime fails before writing anything into
58801         that location.
58802
58803 2005-03-14  Bruno Haible  <bruno@clisp.org>
58804
58805         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
58806         Update from GNU gettext 0.14.3.
58807
58808 2005-03-10  Jim Meyering  <jim@meyering.net>
58809
58810         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
58811
58812 2005-03-10  Jim Meyering  <jim@meyering.net>
58813
58814         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
58815         so that this module works on systems without fchdir.
58816
58817 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
58818
58819         Factor int-properties macros into a single file, except for
58820         glibc-related files.
58821         * lib/intprops.h: New file.
58822         * lib/getloadavg.c: Include it instead of limits.h.
58823         (INT_STRLEN_BOUND): Remove.
58824         * lib/human.c: Include intprops.h.
58825         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
58826         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
58827         302/1000.
58828         * lib/inttostr.h: Include intprops.h instead of limits.h.
58829         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
58830         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
58831         for consistency with intprops.h.
58832         (time_t_is_integer, twos_complement_arithmetic): Use them.
58833         * lib/sig2str.h: Include <signal.h>, intprops.h.
58834         (INT_STRLEN_BOUND): Remove.
58835         * lib/strftime.c (TYPE_SIGNED): Remove.
58836         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
58837         * lib/strtol.c: Adjust comments to match intprops.h.
58838         * lib/userspec.c: Include intprops.h.
58839         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
58840         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
58841         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
58842         instead of rolling our own expressions.
58843         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
58844
58845         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
58846         instead of int.
58847         (my_strftime): Do not mishandle years close to INT_MAX, by doing
58848         the right thing even if adding 1900 would overflow.  Similarly
58849         for tm_mon + 1 and tm_yday + 1.
58850         Make %Y always equivalent to %C%y, and similarly for %G and %g.
58851         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
58852         (DO_SIGNED_NUMBER): New macro.
58853         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
58854
58855 2005-03-07  Bruno Haible  <bruno@clisp.org>
58856
58857         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
58858
58859 2005-03-07  Bruno Haible  <bruno@clisp.org>
58860
58861         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
58862
58863 2005-03-04  Derek R. Price  <derek@ximbiot.com>
58864
58865         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
58866         (func_import): Only replace files via --import when they have actually
58867         changed.
58868
58869 2005-03-03  Derek R. Price  <derek@ximbiot.com>
58870
58871         * m4/mmap-anon.m4: New file.
58872         * m4/pagealign_alloc.m4: New file.
58873
58874 2005-03-03  Derek R. Price  <derek@ximbiot.com>
58875             Bruno Haible  <bruno@clisp.org>
58876
58877         * modules/pagealign_alloc: New file.
58878         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
58879
58880 2005-03-03  Derek R. Price  <derek@ximbiot.com>
58881             Bruno Haible  <bruno@clisp.org>
58882
58883         * lib/pagealign_alloc.h: New file.
58884         * lib/pagealign_alloc.c: New file.
58885
58886 2005-03-03  Bruno Haible  <bruno@clisp.org>
58887
58888         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
58889         Use an all-permissive copyright notice, recommended by RMS.
58890
58891 2005-03-02  Bruno Haible  <bruno@clisp.org>
58892
58893         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
58894         of AIX, the replacement has to be done only after <string.h> is
58895         included, therefore not in config.h. stpncpy.h does the replacement,
58896         and stpncpy.c uses it.
58897
58898 2005-03-02  Bruno Haible  <bruno@clisp.org>
58899
58900         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
58901         stpncpy.c uses it.
58902
58903 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58904
58905         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
58906         The workaround isn't strictly needed for POSIX conformance, and
58907         it's too much of a pain to configure and maintain.  We'll ask
58908         people to fix their kernels instead.
58909         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
58910         (NANOSLEEP_BUG_WORKAROUND): Remove.
58911         (xnanosleep): Remove the workaround.
58912
58913 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58914
58915         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
58916         Reported by Derek Price.
58917         (Include): Add "timespec.h".
58918
58919         * modules/xnanosleep (Depends-on): Remove gethrxtime.
58920
58921 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58922
58923         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
58924         to detect nanosleep bug.
58925
58926 2005-03-01  Bruno Haible  <bruno@clisp.org>
58927
58928         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
58929
58930 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
58931
58932         * modules/gethrxtime: New file.
58933         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
58934         (Depends-on): Add gethrxtime.
58935         (configure.ac): Add gl_XNANOSLEEP.
58936         (Makefile.am): Remove lib_SOURCES line.
58937
58938 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
58939
58940         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
58941         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
58942
58943 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
58944
58945         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
58946         * lib/timespec.h (gettime): Return void, since it always
58947         succeeds now.  All uses changed.
58948         * lib/gettime.c (gettime) Likewise.
58949         [HAVE_NANOTIME]: Prefer nanotime.
58950         Assume gettimeofday succeeds, as POSIX requires.
58951         Assime time () succeeds, since other code already does.
58952         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
58953         (timespec_subtract): Remove.
58954         (NANOSLEEP_BUG_WORKAROUND): New constant.
58955         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
58956         things considerably.  Use it only on GNU/Linux hosts, since the
58957         workaround shouldn't be needed elsewhere.
58958
58959 2005-02-24  Bruno Haible  <bruno@clisp.org>
58960
58961         * modules/gettext (Files): Add m4/glibc2.m4.
58962
58963 2005-02-24  Bruno Haible  <bruno@clisp.org>
58964
58965         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
58966         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
58967         * m4/progtest.m4:
58968         Update from GNU gettext 0.14.2.
58969         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
58970
58971 2005-02-24  Bruno Haible  <bruno@clisp.org>
58972
58973         * lib/localcharset.c: Update from GNU gettext 0.14.2.
58974         * lib/config.charset: Update from GNU gettext 0.14.2.
58975
58976 2005-02-24  Bruno Haible  <bruno@clisp.org>
58977
58978         * lib/gettext.h: Update from GNU gettext 0.14.2.
58979
58980 2005-02-23  Simon Josefsson  <jas@extundo.com>
58981
58982         * m4/iconvme.m4: New file.
58983
58984 2005-02-23  Jim Meyering  <jim@meyering.net>
58985
58986         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
58987         change.
58988         Thanks to Bruno Haible for catching it.
58989
58990 2005-02-22  Simon Josefsson  <jas@extundo.com>
58991
58992         * modules/iconvme: New file.
58993
58994         * MODULES.html.sh: Add iconvme.
58995
58996 2005-02-22  Simon Josefsson  <jas@extundo.com>
58997
58998         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
58999
59000 2005-02-22  Simon Josefsson  <jas@extundo.com>
59001
59002         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
59003
59004 2005-02-22  Jim Meyering  <jim@meyering.net>
59005
59006         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
59007         s/ifndef/ifdef/.
59008
59009 2005-02-20  Neil Conway  <neilc@samurai.com>
59010
59011         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
59012         returned by OSX/Darwin if the specified buffer is not large
59013         enough for the hostname.
59014
59015 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59016
59017         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
59018         pass it to _help, otherwise the latter coredumps trying to
59019         dereference state.root_argp.
59020
59021 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
59022
59023         * modules/chdir-long (Depends-on): Add memrchr.
59024         * modules/memrchr (Files): Add lib/memrchr.h.
59025         (Include): "memrchr.h".
59026
59027 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
59028
59029         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
59030
59031 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
59032
59033         * lib/memrchr.h: New file.
59034         * lib/chdir-long.c: Include it.
59035         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
59036         Don't bother including stddef.h.
59037
59038 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
59039
59040         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
59041         inclusion.
59042         Include <sys/types.h>, for dev_t.
59043         (ME_DUMMY, ME_REMOTE): Move from here....
59044         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
59045         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
59046         Dmitry V. Levin.
59047         Include mountlist.h first, to test the interface.
59048
59049 2005-01-29  Bruno Haible  <bruno@clisp.org>
59050
59051         * lib/progname.c (program_name): Initialize.
59052         Needed when linking statically on MacOS X.
59053
59054 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
59055
59056         Sync from coreutils.
59057         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
59058         (Depends-on): Add c-strtod.
59059         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
59060
59061 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
59062
59063         Sync from coreutils.
59064         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
59065
59066         Remove files that are specific to coreutils.
59067         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
59068
59069 2005-01-28  Bruno Haible  <bruno@clisp.org>
59070
59071         * modules/javacomp: New file.
59072         * MODULES.html.sh (Java): Add javacomp.
59073
59074 2005-01-28  Bruno Haible  <bruno@clisp.org>
59075
59076         * m4/javacomp.m4: New file, from GNU gettext.
59077
59078 2005-01-28  Bruno Haible  <bruno@clisp.org>
59079
59080         * lib/javacomp.sh.in: New file, from GNU gettext.
59081         * lib/javacomp.h: New file, from GNU gettext.
59082         * lib/javacomp.c: New file, from GNU gettext.
59083
59084 2005-01-26  Simon Josefsson  <jas@extundo.com>
59085
59086         * lib/gai_strerror.c: Use GPL in header.
59087
59088 2005-01-26  Bruno Haible  <bruno@clisp.org>
59089
59090         * modules/javaexec: New file.
59091         * MODULES.html.sh (Java): Add javaexec.
59092
59093 2005-01-26  Bruno Haible  <bruno@clisp.org>
59094
59095         * m4/javaexec.m4: New file, from GNU gettext.
59096
59097 2005-01-26  Bruno Haible  <bruno@clisp.org>
59098
59099         * lib/javaexec.sh.in: New file, from GNU gettext.
59100         * lib/javaexec.h: New file, from GNU gettext.
59101         * lib/javaexec.c: New file, from GNU gettext.
59102
59103 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59104
59105         * modules/lchown (Depends-on): Remove lchown.h
59106
59107 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59108
59109         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
59110         must be defined if the header file was not found, in order
59111         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
59112
59113 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59114
59115         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
59116         initializers for struct pentry_state.
59117         (__argp_error): Check return value of __asprintf
59118         (__argp_failure): Translate error message
59119
59120         * lib/argp-parse.c: Removed braces around the expansion of N_()
59121
59122 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
59123
59124         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
59125         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
59126         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
59127         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
59128         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
59129         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
59130         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
59131         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
59132         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
59133         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
59134         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
59135         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
59136         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
59137         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
59138         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
59139         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
59140         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
59141         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
59142         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
59143         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
59144         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
59145         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
59146         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
59147         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
59148         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
59149         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
59150         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
59151         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
59152         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
59153         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
59154         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
59155         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
59156         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
59157         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
59158         xstrtol.m4, xstrtoumax.m4, yesno.m4:
59159         Use an all-permissive copyright notice, recommended by RMS.
59160
59161 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
59162
59163         * modules/chdir-long (Depends-on): Remove mempcpy.
59164
59165 2005-01-21  Jim Meyering  <jim@meyering.net>
59166
59167         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
59168         same value as for Solaris 9.
59169
59170         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
59171         component length.  This included changing the parameter to be
59172         of type `char *' rather than `char const *'.
59173         * lib/chdir-long.h (chdir_long): Update prototype.
59174
59175         * lib/openat.c (fdopendir, fstatat): New functions.
59176         * lib/openat.h: Include headers required for use of DIR and struct
59177         stat.
59178         [AT_SYMLINK_NOFOLLOW]: Define.
59179         (fdopendir, fstatat): Add prototypes.
59180
59181 2005-01-21  Bruno Haible  <bruno@clisp.org>
59182
59183         * modules/classpath: New file.
59184         * MODULES.html.sh (Java): Add classpath.
59185
59186 2005-01-21  Bruno Haible  <bruno@clisp.org>
59187
59188         * lib/classpath.h: New file, from GNU gettext.
59189         * lib/classpath.c: New file, from GNU gettext.
59190
59191 2005-01-20  Simon Josefsson  <jas@extundo.com>
59192
59193         * modules/version-etc-fsf: New file.
59194
59195 2005-01-20  Simon Josefsson  <jas@extundo.com>
59196
59197         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
59198         * lib/version-etc.c: Remove version_etc_copyright.
59199         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
59200         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
59201
59202 2005-01-20  Simon Josefsson  <jas@extundo.com>
59203
59204         * lib/base64.h (isbase64): Add.
59205
59206         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
59207         using a unsigned prototype, don't inline.
59208         (base64_decode): Use it.
59209
59210 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
59211
59212         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
59213         it.
59214
59215 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
59216
59217         * lib/save-cwd.c (save_cwd): Remove code to support the case
59218         where fchdir is missing or flaky.
59219
59220 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
59221
59222         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
59223
59224 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
59225
59226         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
59227         AC_LIBSOURCES now does this.
59228         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
59229         with new ullong_max module.
59230
59231 2005-01-19  Bruno Haible  <bruno@clisp.org>
59232
59233         * modules/sh-quote: New file.
59234         * MODULES.html.sh (Executing programs): Add sh-quote.
59235
59236 2005-01-19  Bruno Haible  <bruno@clisp.org>
59237
59238         * lib/sh-quote.h: New file, from GNU gettext.
59239         * lib/sh-quote.c: New file, from GNU gettext.
59240
59241 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
59242
59243         Merge from coreutils.
59244         * m4/ullong_max.m4: New file.
59245         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
59246         (gl_MACROS): Assume localeconv exists.
59247
59248 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
59249
59250         Merge changes from coreutils, as described below in several
59251         changelogs dated today.
59252
59253         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
59254         (O_DIRECTORY): Remove; not needed here, since "." must be
59255         a directory.  All uses removed.
59256         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
59257         universal on Suns, and we also need to test for IRIX.
59258         Revamp code to use 'if' rather than '#if'.
59259         Avoid unnecessary comparison of cwd->desc to 0.
59260
59261         * lib/utimens.c (futimens): Robustify the previous patch, by checking
59262         for known valid error numbers rather than observed invalid ones.
59263
59264 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
59265
59266         * modules/ullong_max: New file.
59267
59268         * modules/chdir-long, modules/openat: New files.
59269         * modules/save-cwd (Depends-on): Depend on chdir-long.
59270         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
59271
59272 2005-01-18  Jim Meyering  <jim@meyering.net>
59273
59274         Merge from coreutils.
59275         * m4/chdir-long.m4, m4/openat.m4: New files.
59276         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
59277         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
59278         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
59279         is sane and DOES follow symlinks.  Besides, testing 20 different
59280         systems found no broken chown implementations.
59281         Prompted by a change in rsync's copy of this macro.
59282         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
59283
59284         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
59285
59286         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
59287         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
59288         NULL-means-set-to-current-time semantics.
59289         Remove temporary file immediately, rather than waiting
59290         for configure's at-exit trap code to do it.
59291
59292 2005-01-18  Jim Meyering  <jim@meyering.net>
59293
59294         * lib/version-etc.c (version_etc_copyright): Update copyright date.
59295
59296         * lib/utimens.c (futimens): Account for the fact that futimes
59297         can also fail with errno == ENOSYS or errno == ENOENT.
59298         Patch from Dmitry V. Levin.
59299
59300         Change the name of the robust chdir function from chdir to chdir_long.
59301         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
59302         (restore_cwd): Use chdir_long, not chdir.
59303         * lib/chdir-long.c: Renamed from chdir.c.
59304         * lib/chdir-long.h: Renamed from chdir.h.
59305         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
59306         Hurd.
59307
59308 2005-01-18  Bruno Haible  <bruno@clisp.org>
59309
59310         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
59311         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
59312         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
59313         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
59314         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
59315         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
59316         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
59317         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
59318         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
59319         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
59320         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
59321         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
59322         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
59323         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
59324         Use an all-permissive copyright notice, recommended by RMS.
59325
59326 2005-01-18  Bob Proulx  <bob@proulx.com>
59327
59328         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
59329         simplify offsetof() macro construct to avoid compile failure with
59330         native HP-UX 11.0 ANSI C compiler.
59331
59332 2005-01-17  Bruno Haible  <bruno@clisp.org>
59333
59334         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
59335         redundant because stpncpy.m4 takes care of it.
59336
59337 2005-01-17  Bruno Haible  <bruno@clisp.org>
59338
59339         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
59340
59341 2005-01-17  Bruno Haible  <bruno@clisp.org>
59342
59343         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
59344         used.
59345
59346 2005-01-17  Bruno Haible  <bruno@clisp.org>
59347
59348         * lib/fwriteerror.h (fwriteerror): Change specification to include
59349         fclose.
59350         * lib/fwriteerror.c: Include <stdbool.h>.
59351         (fwriteerror): At the end, close the file stream. Record whether
59352         stdout was already closed.
59353
59354 2005-01-17  Bruno Haible  <bruno@clisp.org>
59355
59356         * lib/execute.c (environ): Declare if needed.
59357         * lib/pipe.c (environ): Likewise.
59358         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
59359
59360 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59361
59362         * modules/argp: Depend on vsnprintf
59363
59364 2005-01-10  Jim Meyering  <jim@meyering.net>
59365
59366         * modules/closeout (Depends-on): Add atexit.
59367
59368 2005-01-06  Bruno Haible  <bruno@clisp.org>
59369
59370         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
59371
59372 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
59373
59374         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
59375         definitions to be after all include files, to avoid collisions.
59376         Problem reported by Bob Proulx.
59377
59378 2005-01-04  Jim Meyering  <jim@meyering.net>
59379
59380         Changes imported from coreutils.
59381         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
59382         as the mkstemp template, use a temporary directory and an
59383         8.3-friendly template to avoid trouble on systems like DJGPP.
59384         Reported by Juan M. Guerrero via Stepan Kasal.
59385         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
59386         close. Remove the temporary directory right away, rather than waiting
59387         for configure's at-exit trap code to do it.
59388         Suggestion from Stepan Kasal.
59389
59390 2005-01-01  Simon Josefsson  <jas@extundo.com>
59391
59392         * gnulib-tool: Print #include directives when --import'ing.
59393
59394 2004-12-28  Simon Josefsson  <jas@extundo.com>
59395
59396         * tests/test-base64.c: Include required header files.  Remove
59397         unused variables.
59398
59399 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
59400
59401         * modules/error (Depends-on): Remove gettext.
59402
59403 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
59404
59405         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
59406         not needed.  This removes a dependency on the gettext module.
59407         [defined _LIBC]: Do not include <libintl.h>; not needed.
59408
59409 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
59410
59411         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
59412         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
59413
59414 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
59415
59416         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
59417         HAVE_DECL_STRTOLD.
59418
59419 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
59420
59421         * modules/getdate (Depends-on): Remove alloca-opt.
59422
59423 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
59424
59425         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
59426
59427 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
59428
59429         * lib/argp-parse.c: Include <stddef.h>.
59430         (alignof, alignto): New macros.
59431         (parser_init): Don't assume that void * is aligned sufficiently
59432         for struct option.
59433
59434         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
59435         need to extend the stack.
59436         (YYINITDEPTH): New macro, so that the initial stack isn't overly
59437         large.
59438
59439 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59440
59441         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
59442
59443 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
59444
59445         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
59446         (2004-10-24) change.  Apparently this was a false alarm.
59447
59448         * modules/getdate: Depend on alloca-opt, not alloca.
59449
59450 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
59451
59452         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
59453         Remove now-obsolete comment about AIX.
59454         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
59455         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
59456         (YYMAXDEPTH): New macro.
59457
59458 2004-12-18  Simon Josefsson  <jas@extundo.com>
59459
59460         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
59461
59462 2004-12-18  Bruno Haible  <bruno@clisp.org>
59463
59464         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
59465
59466 2004-12-18  Bruno Haible  <bruno@clisp.org>
59467
59468         * lib/fatal-signal.c (fatal_signals): Make non-const.
59469         (init_fatal_signals): New function.
59470         (uninstall_handlers, install_handlers): Ignore signals that were set to
59471         SIG_IGN.
59472         (at_fatal_signal): Call init_fatal_signals.
59473         (init_fatal_signal_set): Likewise. Ignore signals that were set to
59474         SIG_IGN.
59475         Reported by Paul Eggert.
59476
59477 2004-12-18  Bruno Haible  <bruno@clisp.org>
59478
59479         * doc/alloca.texi: New file.
59480         * doc/alloca-opt.texi: New file.
59481
59482 2004-12-17  Jim Meyering  <jim@meyering.net>
59483
59484         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
59485         Otherwise, install-sh could exit with improper exit status when
59486         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
59487
59488 2004-12-16  Simon Josefsson  <jas@extundo.com>
59489
59490         * tests/test-base64.c: Add license.
59491
59492 2004-12-15  Stepan Kasal  <address@hidden>
59493
59494         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
59495
59496 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
59497
59498         * modules/getcwd (Files): Add m4/d-ino.m4.
59499         Suggested by Mark D. Baushke.
59500
59501 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
59502
59503         * lib/getdate.y (textint): New member "negative".
59504         (time_zone_hhmm): New function.
59505         Expect 14 shift-reduce conflicts, not 13.
59506         (o_colon_minutes): New rule.
59507         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
59508         (yylex): Set the "negative" member of signed numbers.
59509
59510 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
59511
59512         * doc/getdate.texi (Time of day items, Time zone items):
59513         Describe new formats +00:00, UTC+00:00.
59514
59515 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
59516
59517         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
59518         spurious "-l"s.  Problem reported by Stepan Kasal.
59519
59520 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
59521
59522         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
59523         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
59524
59525 2004-12-04  Simon Josefsson  <jas@extundo.com>
59526
59527         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
59528         Vandoorselaere <yoann@prelude-ids.org>.
59529
59530 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
59531
59532         Changes imported from coreutils.
59533         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
59534         exist.
59535         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
59536
59537 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
59538
59539         Changes imported from coreutils.
59540         * lib/hard-locale.c: Assume <locale.h> exists.
59541         Include "strdup.h".
59542         (GLIBC_VERSION): New macro.
59543         (hard_locale): Assume setlocale exists.
59544         Rewrite to avoid #ifdef.
59545         Use strdup rather than malloc + strcpy.
59546         * lib/human.c: Assume <locale.h> exists.
59547         (human_readable): Assume localeconv exists.
59548
59549 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
59550
59551         * modules/hard-locale (Depends-on): Add strdup.
59552
59553 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
59554
59555         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
59556         convert T2, not T.  (Imported from libc.)
59557
59558 2004-11-30  Simon Josefsson  <jas@extundo.com>
59559
59560         * modules/restrict (License): Change to LGPL.
59561
59562 2004-11-30  Simon Josefsson  <jas@extundo.com>
59563
59564         * m4/restrict.m4: Add copyright and copying conditions.
59565
59566 2004-11-30  Simon Josefsson  <jas@extundo.com>
59567
59568         * m4/base64.m4: New file.
59569
59570 2004-11-30  Simon Josefsson  <jas@extundo.com>
59571
59572         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
59573         base64.
59574
59575         * tests/test-base64.c: New file.
59576
59577         * modules/base64: New file.
59578
59579 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
59580
59581         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
59582         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
59583
59584         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
59585
59586 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
59587
59588         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
59589         (__getcwd.c): Don't restore errno; glibc doesn't.
59590         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
59591         first, falling back to our code only if its results look suspicious.
59592         Ensure that the resulting buffer is only as large as necessary.
59593
59594         * lib/readutmp.c: Include readutmp.h first.
59595         Include <errno.h>, since readutmp.h no longer does that.
59596         * lib/readutmp.h: Don't include <errno.h>,
59597         <sys/param.h>, <time.h>; not needed to establish interface.
59598         (errno): Remove decl.
59599         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
59600         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
59601         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
59602
59603 2004-11-28  Simon Josefsson  <jas@extundo.com>
59604
59605         * lib/base64.h, base64.c: New file.
59606
59607 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
59608
59609         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
59610
59611 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
59612
59613         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
59614         (Depends-on): Remove pathmax, same.  Add mempcpy.
59615         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
59616         (Makefile.am): Append getcwd.h to lib_SOURCES.
59617         (Include): Add getcwd.h.
59618         (Maintainer): Change from Jim Meyering to "all, glibc",
59619         since getdate now uses intended-for-glibc code.
59620         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
59621         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
59622
59623 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
59624
59625         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
59626         HP's ANSI C compiler.
59627         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
59628         Declaring int functions causes warnings on some modern systems and
59629         shouldn't be needed to compile on ancient ones.
59630         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
59631         defined.
59632
59633         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
59634         with the following changes.
59635         (__set_errno): Parenthesize properly.
59636         Include <stdbool.h>.
59637         (MIN, MAX, MATCHING_INO): New macros.
59638         (__getcwd): Define with prototype, not K&R form.
59639         Use heuristics to allocate default buffer on stack if possible.
59640         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
59641         behavior, and to avoid the PATH_MAX limit when computing
59642         ../../../../...
59643         Use MATCHING_INO to compare inode number to file.
59644         Check for arithmetic overflow in size calculations.
59645         Fix bug in reallocation of dot array that caused getcwd to fail
59646         on directories nested deeper than 75.
59647         Be more careful about saving errno on error.
59648         Do not use realloc; use only free+malloc, as this is a bit
59649         more flexible and avoids a needless copy operation.
59650         Do not inspect st_dev and st_ino for symbolic links; POSIX
59651         doesn't specify the latter.
59652         Check for closedir errors.
59653         Avoid needless casts.
59654         Use "#ifdef weak_alias" around weak_alias, to be like other
59655         glibc code.
59656         The following changes to getcwd.c have effect only when used in
59657         gnulib; they have no effect inside glibc proper.
59658         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
59659         as alloca isn't used.
59660         (alloca, __alloca): Likewise.
59661         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
59662         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
59663         unconditionally, as gnulib assumes C89 or better.
59664         Do not include <sys/param.h>.
59665         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
59666         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
59667         better.
59668         (NULL) [!defined NULL]: Remove; we assume C89 or better.
59669         Include <dirent.h> in a way that is compatible with modern Autoconf.
59670         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
59671         New macros, if not already defined.
59672         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
59673         Use "_LIBC", not "defined _LIBC", for consistency.
59674         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
59675         a mempcpy module.
59676         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
59677         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
59678         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
59679         credit only to Jim Meyering and adjust the copyright dates.
59680         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
59681         <stdlib.h>, <unistd.h>, "pathmax.h".
59682         Instead, include "xgetcwd.h" (first) and "getcwd.h".
59683         (INITIAL_BUFFER_SIZE): Remove.
59684         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
59685
59686 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
59687
59688         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
59689         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
59690         Use the _ONCE methods, for efficiency.
59691         Check for fcntl.h.  In test program, include <errno.h>
59692         and <fcntl.h> if available.  Remove old K&R cruft from
59693         test program.  Check for common errors in GNU/Linux,
59694         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
59695         don't do AC_LIBOBJ, as that's getcwd.m4's job.
59696         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
59697         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
59698         name accordingly.
59699         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
59700         accommodate new getcwd.c.
59701         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
59702         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
59703         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
59704         that's all we need now.
59705
59706 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59707
59708         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
59709         argp-parse.c depends on getopt internals, that means we should
59710         always use our getopt, to be on the safe side.
59711         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
59712         order not to spoil the result of an eventual previous invocation
59713         of gl_GETOPT_SUBSTITUTE.
59714
59715 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59716
59717         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
59718         redefinition warnings. To avoid them, include the defines
59719         in `#if !defined __need_getopt ... #endif'. The only place
59720         where __getopt_argv_const is used is in definitions
59721         of getopt_long and getopt_long_only below, which are as well
59722         protected by `#ifndef __need_getopt'.
59723         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
59724         __need_getopt after including <stdio.h> and <unistd.h> These
59725         headers might have defined it.
59726
59727 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
59728
59729         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
59730
59731 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
59732
59733         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
59734         (futimens): New function, which uses futimes if available.
59735         (futimens, utimens): Support timespec==NULL, with same semantics
59736         as utime and utimens.
59737         * lib/utimens.h (futimens): New decl.
59738
59739 2004-11-23  Jim Meyering  <jim@meyering.net>
59740
59741         * lib/getopt_.h: Remove trailing blanks.
59742
59743 2004-11-23  Jim Meyering  <jim@meyering.net>
59744
59745         * lib/__fpending.c: Add comment.
59746
59747 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
59748
59749         * modules/canonicalize (Depends-on): Add xreadlink.
59750         Problem reported by James Youngman.
59751
59752 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
59753
59754         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
59755         New macros.
59756         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
59757         optopt): Use them instead of invoking ## directly; otherwise, the
59758         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
59759
59760 2004-11-19  Bruno Haible  <bruno@clisp.org>
59761
59762         * lib/strtok_r.c: Move comments from here...
59763         * lib/strtok_r.h: ... to here.
59764
59765 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
59766
59767         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
59768         implementations that mishandle size_t overflow.
59769
59770 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
59771
59772         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
59773         might fail.  Problem reported by Yoann Vandoorselaere.
59774         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
59775         implementations that mishandle size_t overflow.
59776
59777 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59778
59779         * modules/canon-host (Depends-on): Add strdup.
59780
59781 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59782
59783         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
59784
59785 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59786
59787         * lib/canon-host.c: Include "strdup.h".
59788         (canon_host): Use getaddrinfo if available, so that IPv6 works.
59789         Use strdup instead of malloc/strcpy to duplicate strings.
59790
59791         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
59792         (human_space_before_unit): New constant.
59793         * lib/human.c (human_readable): Support it.
59794
59795         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
59796         (xgetcwd): Set errno correctly when failing.
59797         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
59798         the failure is actually due to a PATH_MAX problem.
59799
59800         Further getopt changes to make it more likely that glibc will
59801         buy the changes back.
59802         * lib/getopt.c (POSIXLY_CORRECT): New constant.
59803         (getopt): Use it, so to preserve glibc semantic
59804         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
59805         when compiling for libc.
59806         * lib/getopt_.h (__getopt_argv_const): Bring it back.
59807         (getopt_long, getopt_long_only): Use it.
59808
59809         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
59810         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
59811         (getopt): Argv is now char * const *, as per standard.
59812         (_getopt_internal_r, _getopt_internal): Argv is now char **,
59813         not char *__getopt_argv_const *.
59814         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
59815         _getopt_long_only_r): Likewise.
59816         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
59817         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
59818         _getopt_long_r, _getopt_long_only_r): Likewise.
59819         * lib/getopt_.h (__getopt_argv_const): Remove.
59820         (getopt): Argv is now char * const *, as per standard.
59821
59822         * lib/getdate.y (tORDINAL): New token.
59823         (day, relunit): Allow it for relative times.
59824         (relative_time_table): Use tORDINAL for ordinals.
59825
59826 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59827
59828         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
59829         Document that "second" isn't allowed as an ordinal number.
59830
59831 2004-11-16  Jim Meyering  <jim@meyering.net>
59832
59833         * modules/closeout (Depends-on): Add fpending.
59834
59835 2004-11-15  Jim Meyering  <jim@meyering.net>
59836
59837         * lib/closeout.c: Include "__fpending.h" once again.
59838         Include <stdbool.h>.
59839         (close_stdout): Don't fail just because stdout was closed initially,
59840         since some programs don't write to stdout in the normal course of
59841         operation (other than --version and --help), and we don't want this
59842         function to make e.g. `touch file >&-' fail.
59843         But do fail if it was closed and someone has tried to write to it.
59844         E.g., `printf foo >&-' must fail.
59845
59846 2004-11-13  Jim Meyering  <jim@meyering.net>
59847
59848         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
59849
59850 2004-11-12  Simon Josefsson  <jas@extundo.com>
59851
59852         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
59853         small doc fix is still pending.
59854
59855 2004-11-11  Simon Josefsson  <jas@extundo.com>
59856
59857         * modules/strtok_r: New file.
59858
59859         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59860         strtok_r.
59861
59862 2004-11-11  Simon Josefsson  <jas@extundo.com>
59863
59864         * m4/strtok_r.m4: New file.
59865
59866         * m4/getopt.m4: Replace opterr.
59867
59868 2004-11-11  Simon Josefsson  <jas@extundo.com>
59869
59870         * lib/strtok_r.h, strtok_r.c: New file.
59871
59872 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
59873
59874         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
59875         of replacing opterr, getopt, etc.  This should handle the
59876         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
59877
59878 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
59879
59880         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
59881         we can stop lying to compilers about the constness of argv when we
59882         are compiled outside glibc.
59883         (getopt, getopt_long, getopt_long_only): Use it.
59884         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
59885         _getopt_internal, getopt): Likewise.
59886         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
59887         _getopt_long_only_r): Likewise.
59888         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
59889         _getopt_long_r, _getopt_long_only_r): Likewise.
59890
59891         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
59892         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
59893         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
59894         the other external symbols.
59895         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
59896         declaration, since the above renaming now works around collisions.
59897
59898 2004-11-11  Jim Meyering  <jim@meyering.net>
59899
59900         * lib/linebreak.c: Remove trailing blanks.
59901         * lib/alloca_.h: Likewise.
59902         * lib/acosl.c: Likewise.
59903         * lib/euidaccess.c: Likewise.
59904         * lib/allocsa.h: Likewise.
59905
59906 2004-11-10  Simon Josefsson  <jas@extundo.com>
59907
59908         * m4/getaddrinfo.m4: New file.
59909
59910 2004-11-10  Simon Josefsson  <jas@extundo.com>
59911
59912         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
59913
59914 2004-11-10  Simon Josefsson  <jas@extundo.com>
59915
59916         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59917         getaddrinfo.
59918
59919         * modules/getaddrinfo: New file.
59920
59921 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
59922
59923         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
59924
59925 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
59926
59927         * lib/mktime.c (SHR): New macro, which is a portable
59928         substitute for >> that should work even on Crays.
59929         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
59930         Problem reported by Mark D. Baushke in
59931         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
59932         * lib/getdate.y (SHR): Likewise.
59933         (tm_diff): Use it.
59934         * lib/strftime.c (SHR): Likewise.
59935         (tm_diff): Use it.
59936         * lib/quotearg.c (struct quoting_options): Use unsigned int for
59937         quote_these_too, so that right shifts are well defined.  All uses
59938         changed.
59939
59940 2004-11-10  Jim Meyering  <jim@meyering.net>
59941
59942         Ensure that no close failure goes unreported.
59943         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
59944         return early when it seems there's nothing to flush.
59945         Don't include __fpending.h.
59946
59947 2004-11-10  Jim Meyering  <jim@meyering.net>
59948
59949         * modules/closeout (Depends-on): Remove fpending.
59950
59951 2004-11-10  Jim Meyering  <jim@meyering.net>
59952
59953         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
59954
59955 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
59956
59957         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
59958         gl_FUNC_STRFTIME.
59959         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
59960         and AC_REQUIRE when possible, to avoid duplicate checks.
59961         Check for <wchar.h>.
59962
59963 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
59964
59965         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
59966
59967 2004-11-09  Bruno Haible  <bruno@clisp.org>
59968
59969         * m4/sockpfaf.m4: New file.
59970
59971 2004-11-05  Bruno Haible  <bruno@clisp.org>
59972
59973         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
59974         Reported by Mark D. Baushke <mdb@cvshome.org>.
59975
59976 2004-11-04  Bruno Haible  <bruno@clisp.org>
59977
59978         2004-09-11  Bruno Haible  <bruno@clisp.org>
59979                 * allocsa.valgrind: New file.
59980         2004-02-06  Bruno Haible  <bruno@clisp.org>
59981                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
59982                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
59983                 Reported by Christopher Seip <chris.seip@hp.com>.
59984
59985 2004-11-04  Bruno Haible  <bruno@clisp.org>
59986
59987         * modules/allocsa (Files): Add lib/allocsa.valgrind.
59988         (Makefile.am): Distribute it.
59989
59990 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
59991
59992         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
59993         with errno == ERANGE if the buffer is too small.
59994         Problem reported by Mark D. Baushke.
59995
59996 2004-11-03  Albert Chin  <china@thewrittenword.com>
59997             Paul Eggert  <eggert@cs.ucla.edu>
59998
59999         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
60000         equivalent, substitute $ac_type for equivalent type rather than
60001         blindly using uint32_t *always* which won't work if uint32_t is not
60002         available.  Define _UINT32_T to work around typedef of uint32_t if
60003         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
60004         2.5.1.
60005
60006 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
60007
60008         * m4/jm-macros.m4: Sync from coreutils.
60009         (gl_MACROS): Check for mbrlen, for pathchk.
60010         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
60011
60012 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
60013
60014         * lib/xreadlink.c (MAXSIZE): New macro.
60015         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
60016         size does not exceed MAXSIZE.  Avoid cast.
60017         As suggested by Mark D. Baushke in
60018         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
60019         if readlink fails with buffer size just under MAXSIZE, try again
60020         with MAXSIZE.
60021
60022 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
60023
60024         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
60025
60026 2004-11-02  Derek R. Price  <derek@ximbiot.com>
60027         and  Paul Eggert  <eggert@cs.ucla.edu>
60028
60029         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
60030         (get_date): Overparenthesize to avoid GCC warning.
60031
60032 2004-11-02  Bruno Haible  <bruno@clisp.org>
60033
60034         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
60035         returns void.
60036
60037 2004-11-02  Bruno Haible  <bruno@clisp.org>
60038
60039         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
60040         function returns void.
60041
60042 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
60043
60044         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
60045         fflush_unlocked, flockfile, funlockfile, funlockfile,
60046         fputs_unlocked, putc_unlocked.
60047
60048 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
60049
60050         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
60051         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
60052         already declared.
60053
60054 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
60055
60056         * modules/getdate (Files): Add doc/getdate.texi.
60057         (Depends-on): Add setenv, xalloc.
60058
60059 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
60060
60061         * lib/getdate.y: Add support for TZ="foo" within a date string.
60062         Fix some bugs near time_t boundaries.  Reject dates with
60063         out-of-range components, e.g., "Sept 31".
60064         Include <stdlib.h>, "setenv.h", "xalloc.h".
60065         (ISDIGIT_LOCALE): Remove; unused.
60066         Note that the TZ and time functions used here are not reentrant.
60067         (mktime_ok, get_tz): New functions.
60068         (TZBUFSIZE): New constant.
60069         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
60070         This requires that we sometimes generate our own TZ="XXX..." setting.
60071
60072 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
60073
60074         * doc/getdate.texi: New file, from coreutils with modifications for
60075         the new TZ parsing.
60076
60077 2004-10-27  Derek R. Price  <derek@ximbiot.com>
60078
60079         * lib/mktime.c (not_equal_tm): Remove redundant check.
60080
60081 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60082
60083         * modules/regex (lib_SOURCES): Add regex.c.
60084         Reported by James Youngman in
60085         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
60086
60087 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
60088
60089         * lib/getdate.y: Use Bison 1.875 features, and some minor
60090         code cleanups.  This change does not affect semantics.
60091         Don't include <stdlib.h>; no longer needed.
60092         Don't include unlocked-io.h; only the "#if TEST" code uses
60093         stdio, and performance isn't crucial there.
60094         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
60095         Bison 1.875 features as described below.
60096         All uses of "PC." replaced by "pc->".
60097         (YYSTYPE): Add a forward declaration.
60098         (yylex, yyerror): Use full prototypes in forward decls.
60099         Use "%pure-parser" rather than obsolescent "%pure_parser".
60100         Use %parse-param and %lex-param instead of obsolescent
60101         YYPARSE_PARAM and YYLEX_PARAM.
60102         (meridian_table, month_and_day_table, time_units_table,
60103         relative_time_table, time_zone_table, military_table,
60104         lookup_zone, lookup_word, get_date):
60105         Use NULL instead of 0 where appropriate.
60106         (to_hour): Avoid abort (), to avoid a dependency on
60107         stdlib.h.
60108         (yyerror, yylex): Now accepts parser_control * arg.
60109         (main) [TEST]: Use '\0' rather than 0 for char.
60110
60111 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60112
60113         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
60114
60115 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
60116
60117         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
60118         It's now the caller's responsibility to handle the case where
60119         !HAVE_GETPAGESIZE && !defined getpagesize.
60120
60121         * lib/mktime.c (leapyear): Arg is long int, not int.
60122
60123 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
60124
60125         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
60126
60127 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
60128
60129         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
60130         missing.  Problem reported by James Youngman.
60131
60132 2004-10-16  Simon Josefsson  <jas@extundo.com>
60133
60134         * gnulib-tool: Fix comments.  Fix parse problem.
60135         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
60136
60137 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
60138
60139         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
60140         implementation of getopt_long.  Problem reported by Alexander Taler in:
60141         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
60142
60143 2004-10-15  Bruno Haible  <bruno@clisp.org>
60144
60145         * gnulib-tool: Untabify. Initialize supplied_libname.
60146         (func_usage): More homogenous output.
60147         (func_modules_transitive_closure, func_modules_to_filelist,
60148         func_emit_lib_Makefile_am): New functions.
60149         (func_import): New function, extracted from big case statement. Use
60150         func_get_license, func_modules_transitive_closure,
60151         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
60152         opt_lgpl. Don't use test -a, as it's not portable.
60153         (func_create_testdir): Use func_modules_transitive_closure,
60154         func_modules_to_filelist, func_emit_lib_Makefile_am.
60155
60156 2004-10-15  Bruno Haible  <bruno@clisp.org>
60157
60158         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
60159
60160 2004-10-15  Bruno Haible  <bruno@clisp.org>
60161
60162         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
60163         the portions belonging to each module.
60164         Suggested by Derek Robert Price <derek@ximbiot.com>.
60165
60166 2004-10-12  Simon Josefsson  <jas@extundo.com>
60167
60168         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
60169         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
60170         to real functions.
60171
60172 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60173
60174         * modules/vsnprintf: New file.
60175
60176 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60177
60178         * m4/vsnprintf.m4: New file.
60179
60180 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60181
60182         * lib/vsnprintf.h: New file.
60183         * lib/vsnprintf.c: New file.
60184
60185 2004-10-11  Bruno Haible  <bruno@clisp.org>
60186
60187         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
60188         vsnprintf.
60189
60190 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
60191
60192         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
60193
60194 2004-10-07  Bruno Haible  <bruno@clisp.org>
60195
60196         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
60197         fits into the provided buffer.
60198
60199 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
60200
60201         * lib/diacrit.c, diacrit.h: Add GPL notice.
60202
60203         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
60204         notice.
60205         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
60206         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
60207         This avoids a potential constant-folding bug.
60208
60209 2004-10-05  Bruno Haible  <bruno@clisp.org>
60210
60211         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
60212         for the declaration of strsep.
60213
60214 2004-10-05  Bruno Haible  <bruno@clisp.org>
60215
60216         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
60217
60218 2004-10-04  Simon Josefsson  <jas@extundo.com>
60219
60220         * modules/memmem: New file.
60221         * tests/test-memmem.c: New file.
60222         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
60223
60224 2004-10-04  Simon Josefsson  <jas@extundo.com>
60225
60226         * m4/memmem.m4: New file.
60227
60228 2004-10-04  Simon Josefsson  <jas@extundo.com>
60229
60230         * lib/memmem.h: New file.
60231         * lib/memmem.c: New file, taken from glibc.
60232
60233 2004-10-04  Simon Josefsson  <jas@extundo.com>
60234
60235         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
60236         '#ifdef USE_UNLOCKED_IO'.
60237
60238 2004-10-04  Simon Josefsson  <jas@extundo.com>
60239
60240         * config/srclist.txt: Add memmem from glibc.
60241
60242 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
60243
60244         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
60245
60246         * modules/argmatch, modules/argp, modules/closeout, modules/error,
60247         modules/exclude, modules/getdate, modules/getline,
60248         modules/getndelim2, modules/getpass, modules/getpass-gnu,
60249         modules/getusershell, modules/linebuffer, modules/md5,
60250         modules/mountlist, modules/posixtm, modules/readtokens,
60251         modules/readutmp, modules/regex, modules/sha1,
60252         modules/version-etc, modules/yesno:
60253         Remove dependency on unlocked-io.
60254
60255 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
60256
60257         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
60258
60259         * m4/unlocked-io.m4: Add copyright notice.
60260         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
60261
60262 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
60263
60264         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
60265         * lib/xmalloc.c (xmemdup): Likewise.
60266         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
60267         XFREE): Remove these long-obsolescent macros.
60268         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
60269         * lib/xstrdup.c: Remove.
60270
60271         * lib/regex.c (re_comp): Cast gettext return value to char *,
60272         Problem reported by Martin Neitzel via Mark D. Baushke.
60273
60274 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
60275
60276         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
60277         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
60278         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
60279         regex.c, sha1.c, version-etc.c, yesno.c:
60280         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
60281         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
60282         the includer's responsibility.
60283
60284         Sync from coreutils.
60285
60286         * lib/modechange.c (mode_compile): Don't decrement a pointer that
60287         points to the start of a string, as the C Standard says the
60288         resulting behavior is undefined.
60289
60290         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
60291         simple -> simple_backups, numbered_existing ->
60292         numbered_existing_backups, numbered -> numbered_backups
60293         to avoid shadowing problems.  All uses changed.
60294         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
60295         * lib/backupfile.c (check_extension, numbered_backup):
60296         Rename locals to avoid shadowing 'basename'.
60297         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
60298         once.
60299
60300         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
60301         * lib/.cvsignore: Add getopt.h.
60302
60303 2004-10-04  Bruno Haible  <bruno@clisp.org>
60304
60305         * modules/README: New file.
60306         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
60307         not a module.
60308
60309 2004-10-02  Jim Meyering  <jim@meyering.net>
60310
60311         * lib/dirfd.h, getpagesize.h: Add copyright notice.
60312
60313 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60314
60315         * modules/strsep: New file.
60316
60317 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60318
60319         * m4/strsep.m4: New file.
60320
60321 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60322
60323         * lib/strsep.h: New file.
60324         * lib/strsep.c: New file.
60325
60326 2004-10-01  Simon Josefsson  <jas@extundo.com>
60327
60328         * lib/snprintf.c (snprintf): Handle size==0.
60329
60330 2004-10-01  Simon Josefsson  <jas@extundo.com>
60331             Bruno Haible  <bruno@clisp.org>
60332
60333         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
60334         (snprintf): Declare 'args'.
60335
60336 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
60337
60338         * lib/snprintf.c: Remove comments as to why each header is needed.
60339
60340 2004-10-01  Bruno Haible  <bruno@clisp.org>
60341
60342         * MODULES.html.sh: Add strsep.
60343
60344 2004-09-30  Simon Josefsson  <jas@extundo.com>
60345
60346         * modules/snprintf: New file.
60347
60348 2004-09-30  Simon Josefsson  <jas@extundo.com>
60349
60350         * m4/snprintf.m4: New file.
60351
60352 2004-09-30  Simon Josefsson  <jas@extundo.com>
60353
60354         * lib/snprintf.h, lib/snprintf.c: New files.
60355
60356 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
60357
60358         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
60359         (hol_entry_help): Never translate an empty string.
60360         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
60361         * lib/argp.h (OPTION_NO_TRANS): New option.
60362
60363 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
60364
60365         * modules/argp (Maintainer): Replace Simon Josefsson
60366         by Sergey Poznyakoff.
60367
60368 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
60369
60370         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
60371         changes merged back into glibc.
60372
60373 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
60374
60375         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
60376
60377 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
60378
60379         * lib/xvasprintf.c: Include xalloc.h.
60380         (xvasprintf): Use xalloc_die, not xmalloc_die.
60381
60382 2004-09-29  Bruno Haible  <bruno@clisp.org>
60383
60384         * modules/alloca-opt: New file, derived from modules/alloca.
60385         * modules/allocsa: Depend on alloca-opt instead of alloca.
60386         * modules/setenv: Likewise.
60387         * modules/vasnprintf: Likewise.
60388         * MODULES.html.sh: Add alloca-opt.
60389
60390 2004-09-28  Simon Josefsson  <jas@extundo.com>
60391
60392         * gnulib-tool: New parameter --lgpl, to asseert that modules are
60393         LGPL, and to replace license template from GPL to LGPL.
60394
60395 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
60396
60397         * modules/dummy: Change license to LGPL.
60398
60399 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
60400
60401         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
60402
60403 2004-09-24  Simon Josefsson  <jas@extundo.com>
60404
60405         * modules/minmax (License): Change from GPL to LGPL.
60406
60407 2004-09-23  Simon Josefsson  <jas@extundo.com>
60408
60409         * gnulib-tool (--import): Typo.
60410
60411 2004-09-23  Simon Josefsson  <jas@extundo.com>
60412
60413         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
60414
60415 2004-09-22  Bruno Haible  <bruno@clisp.org>
60416
60417         * modules/*: Add 'License' field.
60418         * gnulib-tool: Accept --extract-license option.
60419         (func_get_license): New function.
60420
60421 2004-09-21  Bruno Haible  <bruno@clisp.org>
60422
60423         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
60424         Reported by Simon Josefsson.
60425
60426 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
60427
60428         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
60429         gl_AC_TYPE_LONG_LONG.
60430
60431 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
60432
60433         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
60434
60435 2004-09-18  Simon Josefsson  <jas@extundo.com>
60436         and  Paul Eggert  <eggert@cs.ucla.edu>
60437
60438         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
60439         calls with autoreconf.  Define GL_LIB.
60440
60441 2004-09-14  Karl Berry  <karl@gnu.org>
60442
60443         * config/srclist.txt: unsync setenv.c, sigh.
60444
60445 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
60446
60447         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
60448         Problem reported by Bruno Haible in:
60449         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
60450
60451 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
60452
60453         * config/srclist.txt: Comment out argp-pvh.c.
60454
60455 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
60456
60457         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
60458         in case some system header has #define'd it.  Problem reported by
60459         Soeren D. Schulze in
60460         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
60461
60462 2004-09-09  Karl Berry  <karl@gnu.org>
60463
60464         * regex.[ch]: delete from the root.  These were supposed to be
60465                 synced with emacs cvs, but this has not happened for about
60466                 a year, and anyway nothing else uses emacs regex.[ch].
60467                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
60468                 lib/regex[.ch] is untouched.
60469
60470 2004-09-09  Bruno Haible  <bruno@clisp.org>
60471
60472         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
60473
60474 2004-09-09  Bruno Haible  <bruno@clisp.org>
60475
60476         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
60477         modifications.
60478         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
60479
60480 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
60481
60482         * modules/xvasprintf: New file.
60483         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
60484
60485 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
60486
60487         * lib/xvasprintf.h: New file.
60488         * lib/xvasprintf.c: New file.
60489         * lib/xasprintf.c: New file.
60490
60491 2004-09-08  Bruno Haible  <bruno@clisp.org>
60492
60493         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
60494
60495 2004-09-08  Bruno Haible  <bruno@clisp.org>
60496
60497         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
60498         length is > INT_MAX.
60499         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
60500         more.
60501
60502 2004-09-08  Bruno Haible  <bruno@clisp.org>
60503
60504         * lib/stdint_.h: New file, taken from GNU clisp.
60505
60506 2004-09-08  Bruno Haible  <bruno@clisp.org>
60507             Oskar Liljeblad  <oskar@osk.mine.nu>
60508
60509         * modules/stdint: New file.
60510         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
60511
60512 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60513
60514         Import from coreutils.
60515         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
60516         strings on unbounded length.  alloca's performance benefits aren't
60517         that important here.
60518         (V_STRDUP): Remove.
60519         (parse_with_separator): New function, with most of the internals
60520         of the old parse_user_spec.  Allow user to omit both user and group,
60521         for compatibility with FreeBSD.
60522         Clone only the user name, not the entire spec.
60523         Do not set *uid, *gid unless entirely successful.
60524         Avoid memory leak in some failing cases.
60525         Fix regression for USER.GROUP reported by Dmitry V. Levin in
60526         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
60527         (parse_user_spec): Rewrite to use parse_with_separator.
60528
60529 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60530
60531         * modules/userspec: Don't depend on alloca.
60532
60533 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60534
60535         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
60536
60537 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
60538
60539         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
60540         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
60541         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
60542
60543 2004-08-16  Simon Josefsson  <jas@extundo.com>
60544
60545         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
60546         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
60547         Add --dry-run for --import.
60548         Let user provided command line parameters override configure.ac
60549         settings.
60550
60551 2004-08-12  Simon Josefsson  <jas@extundo.com>
60552
60553         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
60554         as discussed with Paul Eggert in threads rooted at
60555         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
60556         and
60557         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
60558         Before, the test was empty, and relied on ELIDE_CODE in source
60559         code.)
60560         (gl_PREREQ_GETOPT): New macro.
60561         (gl_GETOPT): Use them.
60562
60563 2004-08-12  Simon Josefsson  <jas@extundo.com>
60564
60565         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
60566         * lib/getopt_.h: Renamed from getopt.h.
60567
60568 2004-08-12  Simon Josefsson  <jas@extundo.com>
60569
60570         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
60571         Change default library name from libfoo to libgnu.
60572         Now, if you have a configure.ac that says:
60573                 gl_SOURCE_BASE(gl)
60574                 gl_M4_BASE(gl/m4)
60575                 gl_MODULES(error getopt etcetera)
60576                 gl_INIT
60577         you can import all you need by running:
60578                 ../gnulib/gnulib-tool --import
60579
60580         * modules/getopt (Files): Rename getopt.h to getopt_.h.
60581         (Makefile.am): Rewrite, use logic from argz.
60582         (Include): Use <getopt.h> instead of "getopt.h".
60583
60584 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
60585
60586         * modules/argp (Files): Add m4/unlocked-io.m4.
60587         (Depends-on): Add extensions.
60588
60589 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
60590
60591         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
60592         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
60593         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
60594         Check for program_invocation_name, program_invocation_short_name,
60595         flockfile, funlockfile, features.h, _getopt_long_only_r.
60596
60597 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
60598
60599         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
60600         its complicated substitute.
60601         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
60602         and program_invocation_name.
60603         (__argp_basename) [!_LIBC]: Remove; the only use was
60604         replaced by its body.
60605         (__argp_short_program_name): Change condition from
60606         !defined __argp_short_program_name to
60607         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
60608         to match argp-namefrob.h.
60609         (__argp_failure): Don't assume strerror_r returns char *.
60610         * lib/argp-parse.c (N_): Define unconditionally.
60611         (argp_default_options): Fill out initializers with 0 to avoid
60612         gcc warnings.
60613
60614 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
60615
60616         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
60617         getopt1.c.
60618
60619 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
60620
60621         Merge from coreutils.
60622
60623         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
60624
60625         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
60626         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
60627
60628 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
60629
60630         Merge from coreutils.
60631
60632         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
60633         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
60634         for Reliant Unix 5.43.
60635
60636         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
60637         (union fooround): Use uintmax_t, not long int.
60638         The rest is a merge from libc:
60639         [defined _LIBC]: Include <shlib-compat.h>.
60640         (_obstack) [defined _LIBC]: Remove after 2.3.4.
60641
60642         * lib/settime.c (settime): Recode to avoid warning with
60643         Sun Forte C 6U2.
60644
60645         * lib/strverscmp.c: Convert to UTF-8.
60646
60647 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
60648
60649         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
60650         m4/uintmax_t.m4.
60651
60652 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
60653
60654         * modules/xalloc-die: New file.
60655         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
60656
60657         * modules/md5 (Files): Add m4/uint32_t.m4.
60658         * modules/sha1: Renamed from modules/sha.
60659         (Files):
60660         Rename lib/sha.h to lib/sha1.h.
60661         Rename lib/sha.c to lib/sha1.c.
60662         Rename m4/sha.m4 to m4/sha1.m4.
60663         (lib_SOURCES): Likewise.
60664         (configure.ac): Rename gl_SHA to gl_SHA1.
60665         (Include): sha.h -> sha1.h.
60666
60667 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
60668
60669         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
60670         * m4/sha1.m4: Renamed from sha.m4.
60671         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
60672
60673 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
60674
60675         * lib/obstack.h (obstack_empty_p):
60676         Don't assume that chunk->contents is suitably aligned.
60677         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
60678         Likewise. Problem reported by Benno in
60679         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
60680
60681         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
60682         readable.  This could be improved further but it'd take some work.
60683
60684 2004-08-08  Simon Josefsson  <jas@extundo.com>
60685
60686         * modules/xgethostname (Depends-on): Remove exit and error (not
60687         used).
60688
60689         * modules/getpass-gnu: Add getpass.h.
60690         (Depends-on): Add stdbool.
60691         * modules/getpass: Add getpass.h.
60692
60693 2004-08-08  Simon Josefsson  <jas@extundo.com>
60694
60695         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
60696         Check getpass declaration.
60697
60698 2004-08-08  Simon Josefsson  <jas@extundo.com>
60699
60700         * lib/xgethostname.c: Don't include error.h (not used).
60701
60702         * lib/getpass.h: Add.
60703         * lib/getpass.c: Include getpass.h first.
60704
60705 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
60706
60707         * lib/xalloc-die.c: New file.
60708         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
60709         All uses removed.
60710         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
60711         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
60712         xalloc-die.c.
60713         (_, N_, xalloc_die): Move to xalloc-die.c.
60714         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
60715         so that we needn't mess with xalloc_msg_memory_exhausted.
60716
60717         * lib/sha1.h: Renamed from sha.h.
60718         (SHA1_H): Renamed from _SHA_H.
60719         (sha1_ctx): Renamed from sha_ctx.
60720         (sha1_init_ctx): Renamed from sha_init_ctx.
60721         (sha1_process_block): Renamed from sha_process_block.
60722         (sha1_process_bytes): Renamed from sha_process_bytes.
60723         (sha1_finish_ctx): Renamed from sha_finish_ctx.
60724         (sha1_read_ctx): Renamed from sha_read_ctx.
60725         (sha1_stream): Renamed from sha_stream.
60726         (sha1_buffer): Renamed from sha_buffer.
60727         * lib/sha1.c: Likewise; renamed from sha.c.
60728         Do not include <sys/types.h>.
60729         Include <stddef.h> rather than <stdlib.h>.
60730
60731 2004-08-08  Bruno Haible  <bruno@clisp.org>
60732
60733         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
60734         FILESYSTEM_PREFIX_LEN.
60735         * lib/progreloc.c: Likewise.
60736         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
60737
60738 2004-08-06  Simon Josefsson  <jas@extundo.com>
60739
60740         * modules/progname (Depends-on): Don't depend on stdbool.
60741
60742 2004-08-06  Simon Josefsson  <jas@extundo.com>
60743
60744         * modules/getsubopt: New file.
60745         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60746         getsubopt.
60747
60748 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
60749
60750         More merge from coreutils.
60751
60752         * m4/utimens.m4, m4/utimecmp.m4: New files.
60753         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
60754         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
60755         prereq.m4, sha.m4: Import changes from coreutils.
60756
60757 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
60758
60759         More merge from coreutils.
60760         * modules/raise, modules/readtokens0, modules/utimens:
60761         * modules/utimecmp, module/xnanosleep: New files.
60762         * modules/strftime: Add lib/strftime.h.
60763         Change include from <time.h> to "strftime.h".
60764         * modules/yesno: Add lib/yesno.h.
60765         * modules/backupfile: Remove lib/addext.c.
60766         * modules/euidaccess: Add stat-macros.h.
60767         * modules/canonicalize, modules/euidaccess,
60768         modules/filemode, modules/lchown, modules/makepath,
60769         modules/rmdir, modules/stat: Likewise.
60770
60771 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
60772
60773         Merge from tar.
60774         * lib/argp-help.c (make_hol, hol_append): Don't assume that
60775         SIZE_MAX is a valid preprocessor constant.
60776         (__argp_basename): Change from "#ifndef _LIBC"
60777         to "#ifndef __argp_short_program_name", so that
60778         we don't compile these functions for tar.
60779
60780         More merges from coreutils.
60781         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
60782         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
60783         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
60784         * lib/addext.c: Remove; no longer needed.
60785         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
60786         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
60787         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
60788         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
60789         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
60790         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
60791         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
60792         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
60793         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
60794         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
60795         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
60796         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
60797         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
60798         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
60799         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
60800         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
60801         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
60802         Import changes from coreutils.
60803
60804 2004-08-05  Simon Josefsson  <jas@extundo.com>
60805
60806         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
60807
60808 2004-08-05  Simon Josefsson  <jas@extundo.com>
60809
60810         * m4/getsubopt.m4: New file.
60811
60812 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
60813
60814         Merge from coreutils.
60815
60816         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
60817         * m4/getcwd-path-max.m4: New files.
60818
60819         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
60820         FILESYSTEM_PREFIX_LEN ->
60821         FILE_SYSTEM_PREFIX_LEN.
60822         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
60823         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
60824         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
60825         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
60826
60827         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
60828         prerequisite modules now handle the DOS stuff.
60829         Don't check for unistd.h.
60830
60831 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
60832
60833         Merge from coreutils.
60834
60835         * lib/.gdb-history: Remove; this doesn't belong here.
60836
60837         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
60838         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
60839         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
60840         * lib/getcwd.c: New files.
60841
60842         * lib/dirname.h: Include <stdbool.h>.
60843         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
60844         for consistency with POSIX terminology.  All uses changed.
60845         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
60846         (strip_trailing_slashes): Use bool for booleans.
60847         * lib/stripslash.c (strip_trailing_slashes): Likewise.
60848
60849         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
60850         sometimes returns a positive errno value even when it succeeds.
60851         (print_errno_message) [!LIBC]: Fall back on strerror if
60852         __strerror_r fails.
60853
60854         * lib/path-concat.c (mempcpy): Don't define if a system header defines
60855         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
60856         (longest_relative_suffix): New function.
60857         (path_concat): Use it.  Assume first argument is not NULL.
60858         Port to DOS.  Omit redundant separators.
60859         Report an error instead of returning NULL.
60860         Use mempcpy instead of memcpy.
60861         (xpath_concat): Remove: not declared or used.
60862
60863         * lib/same.h: Include <stdbool.h>
60864         (same_name): Return bool, not int.
60865         * lib/same.c (same_name): Likewise.
60866         (errno): Don't declare; we assume C89 or better now.
60867
60868         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
60869         if not already defined.
60870
60871         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
60872         * lib/dup-safer.c (errno): Likewise.
60873
60874 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
60875
60876         Merge from coreutils.
60877         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
60878         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
60879         * modules/path-concat: Don't depend on strdup.
60880
60881 2004-08-03  Simon Josefsson  <jas@extundo.com>
60882
60883         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
60884         * lib/progname.h: Don't include stdbool.h.
60885
60886 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
60887
60888         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
60889         * MODULES.html.sh (func_all_modules): Remove fatal.
60890
60891 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
60892
60893         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
60894
60895 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
60896
60897         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
60898         working.
60899
60900 2004-08-02  Simon Josefsson  <jas@extundo.com>
60901
60902         * lib/getsubopt.h: New file, with comments from Bruno Haible.
60903         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
60904         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
60905
60906 2004-08-01  Simon Josefsson  <jas@extundo.com>
60907
60908         * lib/xgetdomainname.c: Include stdlib.h, for free().
60909
60910 2004-07-19  Bruno Haible  <bruno@clisp.org>
60911
60912         * MODULES.html.sh (func_all_modules): Add dummy.
60913
60914 2004-07-16  Simon Josefsson  <jas@extundo.com>
60915
60916         * modules/dummy: New file.
60917
60918 2004-07-16  Simon Josefsson  <jas@extundo.com>
60919
60920         * lib/dummy.c: New file.
60921
60922 2004-07-16  Bruno Haible  <bruno@clisp.org>
60923
60924         * lib/backupfile.h: Add extern "C" for C++.
60925         * lib/closeout.h: Likewise.
60926         * lib/copy-file.h: Likewise.
60927         * lib/findprog.h: Likewise.
60928         * lib/full-write.h: Likewise.
60929         * lib/pathname.h: Likewise.
60930         * lib/progname.h: Likewise.
60931         * lib/stpcpy.h: Likewise.
60932         * lib/stpncpy.h: Likewise.
60933         * lib/strcase.h: Likewise.
60934         * lib/strstr.h: Likewise.
60935         * lib/xalloc.h: Likewise.
60936
60937         * lib/mbswidth.h: Add extern "C" for C++.
60938         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
60939
60940 2004-07-13  Robert Millan  <robertmh@gnu.org>
60941
60942         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
60943
60944 2004-07-09  Simon Josefsson  <jas@extundo.com>
60945
60946         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
60947         failed without this.)
60948
60949 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60950
60951         * modules/chown (Files): Add lib/fchown-stub.c, since
60952         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
60953
60954 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60955
60956         * lib/fchown-stub.c: New file.
60957
60958 2004-06-24  Jim Meyering  <jim@meyering.net>
60959
60960         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
60961
60962 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60963
60964         * modules/argz: Omit "#include".
60965
60966         * MODULES.html.sh (func_all_modules): Add calloc, to match
60967         2004-06-01 addition of calloc module.
60968
60969 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60970
60971         * m4/argz.m4: New file, which is autoupdated from libtool.
60972
60973 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60974
60975         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
60976         libtool.
60977
60978 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60979
60980         * config/srclist-update: Don't insist on "USA." before the
60981         close-comment, as libtool omits the period and puts the */ on a
60982         separate line.
60983         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
60984         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
60985
60986 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
60987
60988         * modules/argz: New file.
60989         * MODULES.html.sh (func_all_modules): Add argz.
60990
60991 2004-06-12  Jim Meyering  <jim@meyering.net>
60992         and  Paul Eggert  <eggert@cs.ucla.edu>
60993
60994         * modules/hash (Files): Add lib/xalloc.h.
60995         * modules/pipe (Depends-on): Add wait-process.
60996         * modules/stat (Depends-on): Add xalloc.
60997         * modules/userspec (Files): Add lib/userspec.h.
60998         * modules/xstrto
60999
61000         Upgrade from gettext-0.13.
61001         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
61002         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
61003         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
61004
61005 2004-06-10  Jim Meyering  <jim@meyering.net>
61006
61007         * lib/calloc.c: New file.
61008
61009 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
61010
61011         * lib/getdate.y (yylex): Allow space between sign and number.
61012         Problem reported by Dan Jacobson.
61013
61014 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
61015
61016         Merge from coreutils CVS.
61017
61018         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
61019         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
61020         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
61021         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
61022         xstrtol.m4: Fix copyright date and/or serial number.
61023
61024         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
61025         See if we need an fchown replacement.
61026         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
61027         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
61028         and use the replacement function if we detect either defect.
61029
61030         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
61031         gl_UTIMECMP.
61032
61033 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
61034         and  Jim Meyering  <jim@meyering.net>
61035
61036         Merge from coreutils CVS.
61037
61038         * lib/stat-macros.h: New file, with contents from file-type.h
61039         and coreutils' system.h.
61040         * lib/file-type.c: Include "stat-macros.h".
61041         * lib/file-type.h (file_type): Move all macro definitions to new file,
61042         stat-macros.h.
61043
61044         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
61045         Wrap old code with this conditional.
61046         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
61047         function that does not dereference symlinks.
61048         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
61049
61050         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
61051         dependency problems.
61052         (xreadlink): Accept new arg SIZE, for efficiency.
61053         All decls and uses changed.
61054         * lib/xreadlink.h: Include <stddef.h>, for size_t.
61055
61056         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
61057         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
61058
61059         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
61060         sysexits.h.
61061
61062 2004-06-01  Jim Meyering  <jim@meyering.net>
61063
61064         * m4/calloc.m4: New file.
61065
61066 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
61067
61068         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
61069         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
61070         Also, fix a typo in a diagnostic.
61071
61072 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
61073
61074         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
61075         or AC_FUNC_REALLOC.
61076
61077 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
61078
61079         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
61080         macros to be defined.
61081         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
61082         the allocator returns NULL because the requested size is zero.
61083
61084 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
61085
61086         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
61087         var.  Add comment explaining why libc still defines it.  This
61088         merges the following patch from glibc:
61089         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
61090
61091 2004-05-20  Andreas Schwab  <schwab@suse.de>
61092
61093         * m4/free.m4: Replace free if it not known to work, not the other
61094         way round.
61095
61096 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
61097
61098         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
61099         present in glibc since revision 1.1 of this file.
61100         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
61101         obstack_alignment_mask, obstack_alloc, obstack_base,
61102         obstack_blank, obstack_blank_fast, obstack_chunk_size,
61103         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
61104         obstack_grow0, obstack_init, obstack_int_grow,
61105         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
61106         obstack_next_free, obstack_object_size, obstack_ptr_grow,
61107         obstack_ptr_grow_fast, obstack_room): Remove declarations of
61108         nonexistent functions.
61109
61110 2004-05-18  Karl Berry  <karl@gnu.org>
61111
61112         * config/srclist.txt: break link for vasnprintf.c.
61113
61114 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
61115
61116         Port obstack to the AS/400, where pointers are 16 bytes wide and
61117         you cannot cast an integer to a valid pointer.  This patch is
61118         currently waiting to be integrated into glibc; see
61119         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
61120
61121         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
61122         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
61123         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
61124         (struct obstack): temp member is now a union of a pointer and
61125         an integer, instead of an integer.  All integer uses changed.
61126         This does not affect the physical layout of struct obstack,
61127         except on hosts (like the AS/400) where the size or alignment of
61128         void * is greater than that of ptrdiff_t.
61129         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
61130         __STDC__)]: Store temporary in pointer member of union, not
61131         integer member.
61132         * lib/obstack.c: Include <stddef.h>, for offsetof.
61133         (struct fooalign): Remove; it doesn't need a name.
61134         (union fooround): Change double to long double, and add void *.
61135         (DEFAULT_ALIGNMENT): Use offsetof to compute.
61136         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
61137         not a macro.  Hence the values are always int; so remove all
61138         casts-to-int in uses.
61139
61140 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
61141
61142         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
61143         we can get this patch merged into glibc.
61144
61145 2004-05-17  Derek R. Price  <derek@ximbiot.com>
61146             Paul Eggert  <eggert@cs.ucla.edu>
61147
61148         * m4/argp: Depend on alloca.
61149
61150 2004-05-17  Derek R. Price  <derek@ximbiot.com>
61151             Paul Eggert  <eggert@cs.ucla.edu>
61152
61153         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
61154         freecoding.
61155
61156 2004-05-17  Bruno Haible  <bruno@clisp.org>
61157
61158         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
61159         precision that consists of a '.' followed by an empty digit string.
61160         Patch by Tor Lillqvist <tml@iki.fi>.
61161
61162 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
61163
61164         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
61165         for backward compatibility with older code.  We need our own
61166         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
61167         it under some other name, and our alloca.h will define it.
61168
61169 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
61170             Derek Price  <derek@ximbiot.com>
61171
61172         * lib/alloca.c: Include <alloca.h>, to get our interface.
61173         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
61174         include <alloca.h> first.  Use C89 prototype for alloca; this
61175         requires including <stddef.h> for size_t.  Use extern "C" if C++.
61176         Use #elif for simplicity, since we can assume C89 now.
61177         Don't try to source the system alloca.h since it will not be found
61178         and to prevent recursively including its replacement.
61179         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
61180         * lib/regex.c: Likewise.
61181
61182 2004-05-16  Derek Price  <derek@ximbiot.com>
61183             Paul Eggert  <eggert@cs.ucla.edu>
61184
61185         getline cleanup.  This changes the getndelim2 API: both order of
61186         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
61187         no delimiter).
61188
61189         * lib/getline.c: Don't include stddef.h or stdio.h, since our
61190         interface does that.
61191         (getline): Always use getdelim, so that we don't have two
61192         copies of this code.
61193         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
61194         if available.
61195         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
61196         (GETNDELIM2_MAXIMUM): New macro.
61197         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
61198         instead of the old practice of delim2==0.  All callers changed.
61199         Return -1 on overflow, instead of returning junk.
61200         Do not set *linesize unless allocation succeeds.
61201         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
61202         that we include sys/types.h.
61203         * lib/getnline.h: Likewise.
61204         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
61205         (getndelim2): Reorder arguments.
61206         * lib/getnline.c (getnline, getndelim):
61207         Don't discard the NMAX argument.
61208         (getnline): Invoke getndelim, to avoid code duplication.
61209         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
61210         of (size_t) -1 by callers of the getnline family.
61211
61212 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
61213
61214         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
61215         Check for gettimeofday.
61216         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
61217         Check for settimeofday, stime.
61218
61219 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
61220
61221         * lib/nanosleep.c (suspended): Change its type from int to
61222         sig_atomic_t volatile.
61223         (first_call): Make it private to rpl_nanosleep, and have it
61224         be zero initially as that's a bit faster.
61225         (my_usleep): Round up fractional times instead of truncating them,
61226         as this is the usual meaning for 'sleep'.
61227
61228         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
61229         doesn't work.
61230         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
61231         (ENOSYS): Define if not defined.
61232         (settime): Fall back on stime if it exists and settimeofday fails.
61233         But don't bother with fallbacks if a method fails with errno == EPERM.
61234
61235 2004-05-11  Jim Meyering  <jim@meyering.net>
61236
61237         Prior to this change, the save_cwd caller required read access to the
61238         current directory on most systems (ones with the fchdir function).
61239
61240         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
61241         fails, try write-only, and finally, resort to using xgetcwd.
61242
61243 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
61244
61245         * lib/obstack.c, obstack.h: Import changes from libc.
61246
61247 2004-04-28  Bruno Haible  <bruno@clisp.org>
61248
61249         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
61250         also implicitly appends .exe to executables.
61251         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
61252         accepts Windows pathnames.
61253         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
61254         Treat Cygwin like Windows, since it now accepts Windows pathnames.
61255         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
61256         Treat Cygwin like Windows, since it now accepts Windows pathnames.
61257         Reported by Derek Robert Price <derek@ximbiot.com>.
61258
61259 2004-04-21  Karl Berry  <karl@gnu.org>
61260
61261         * config/srclist.txt (localcharset.c): break sync.
61262
61263 2004-04-20  Paul Eggert  <eggert@twinsun.com>
61264
61265         * m4/host-os.m4: Add a copyright notice.
61266
61267 2004-04-20  Jim Meyering  <jim@meyering.net>
61268
61269         Change UTILS_ to gl_ in AC_DEFINE'd names.
61270         Change utils_- and jm_-prefixed variables, too.
61271         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
61272         UTILS_FUNC_MKDIR_TRAILING_SLASH.
61273         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
61274
61275         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
61276         Don't emit trailing blanks.
61277         Also rename jm_-prefixed variables to have gl_ prefix.
61278
61279         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
61280         Also rename jm_-prefixed variables to have gl_ prefix.
61281
61282         * m4/jm-macros.m4: Reflect the renamings.
61283         * m4/prereq.m4: Likewise.
61284
61285 2004-04-20  Jim Meyering  <jim@meyering.net>
61286
61287         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
61288         memory.
61289
61290 2004-04-20  Jim Meyering  <jim@meyering.net>
61291             Bruno Haible  <bruno@clisp.org>
61292
61293         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
61294         memory when realloc fails.
61295
61296 2004-04-19  Jim Meyering  <jim@meyering.net>
61297
61298         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
61299         now that readutmp.c may call `free (0)'.
61300
61301 2004-04-19  Bruno Haible  <bruno@clisp.org>
61302
61303         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
61304         * m4/inttypes_h.m4: Likewise.
61305         * m4/stdint_h.m4: Likewise.
61306         * m4/intmax_t.m4: Likewise.
61307         * m4/uintmax_t.m4: Likewise.
61308
61309 2004-04-18  Jim Meyering  <jim@meyering.net>
61310
61311         * m4/prereq.m4: Don't forbid jm_ prefix.
61312
61313         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
61314         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
61315         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
61316         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
61317         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
61318         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
61319         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
61320         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
61321         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
61322         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
61323         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
61324         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
61325         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
61326         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
61327         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
61328         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
61329         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
61330         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
61331         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
61332
61333 2004-04-18  Jim Meyering  <jim@meyering.net>
61334
61335         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
61336         failure, don't leak memory and do call END_UTMP_ENT.
61337
61338 2004-04-16  Jim Meyering  <jim@meyering.net>
61339
61340         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
61341         coreutils' stat program.
61342         (gl_PREREQ): Don't require jm_PREREQ_STAT.
61343
61344 2004-04-11  Paul Eggert  <eggert@twinsun.com>
61345
61346         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
61347         C89.
61348         (CHAR_BIT): Remove, since we assume C89.
61349         Include <stdint.h> if available, as per current Autoconf CVS advice.
61350
61351 2004-03-31  Jim Meyering  <jim@meyering.net>
61352
61353         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
61354         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
61355         * m4/xalloc.m4: Likewise.
61356
61357 2004-03-30  Paul Eggert  <eggert@twinsun.com>
61358
61359         Merge from coreutils.
61360
61361         * m4/inttostr.m4: New file.
61362         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
61363         Require AM_STDBOOL_H and gl_TIMESPEC instead.
61364         Require gl_CLOCK_TIME.
61365         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
61366
61367 2004-03-30  Paul Eggert  <eggert@twinsun.com>
61368
61369         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
61370         not bool, to be more consistent with Unix conventions.
61371         Suggested by Bruno Haible.
61372
61373         Merge from coreutils.
61374
61375         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
61376         * lib/umaxtostr.c: New files.
61377
61378         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
61379         the usual <time.h> dance.
61380         (get_date): Change signature to support fractional time stamps.
61381         All callers changed.
61382         * lib/getdate.y: Include "getdate.h" first, as we can now
61383         assume C89 and don't need to worry about 'const'.
61384         Similarly, include "unlocked-io.h" near start, not in middle.
61385         Include <limits.h>.
61386         (textint.value): Use long int rather than int.
61387         (textint.digits): Use size_t rather than int.
61388         (BILLION, LOG10_BILLION): New constants.
61389         (parser_control): New member rel_ns.  Members day_ordinal,
61390         time_zone, month, day, hour, minutes, rel_year, rel_month,
61391         rel_day, rel_hour, rel_minutes, rel_seconds
61392         are now long int, not int.  Member seconds is now struct timespec,
61393         not int.  New member timespec_seen.  Members dates_seen, days_seen,
61394         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
61395         not int.
61396         (%union.intval): Now long int, not int.
61397         New member timespec.
61398         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
61399         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
61400         (spec): Now is a timespec or an item list.
61401         (timespec, items): New nonterminals.
61402         (time, rel, relunit, number, get_date):
61403         Add support for fractional seconds.
61404         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
61405         (gmtime, localtime, mktime): Remove decls; not needed with C89.
61406         (to_hour): First arg is now long int, not int.
61407         (to_year): Returns long int, not int.
61408         Don't treat year -70 like 70.
61409         (tm_diff): Returns long int, not int.
61410         (lookup_word): Use bool instead of int when appropriate.
61411         (yylex): Use size_t for count, not int.
61412         Detect overflow when parsing large integer constants.
61413         Add support for fractions.
61414         (get_date): Make pointers 'const' if possible.
61415         Use more-portable code to detect integer overflow.
61416         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
61417         Don't use ctime; it's not reliable if the year has >4 digits.
61418
61419         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
61420         This is for compatibility with BSD.
61421
61422         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
61423         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
61424         From coreutils' system.h.
61425
61426         * lib/userspec.c: Don't include "posixver.h".
61427         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
61428         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
61429         compatible extension.  Simplify code by removing a boolean int
61430         that was always nonzero if a string was nonnull.
61431
61432 2004-03-30  Jim Meyering  <jim@meyering.net>
61433
61434         Merge from coreutils.
61435
61436         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
61437         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
61438         on some systems one must include <grp.h> before it.
61439         Reported by Christian Krackowizer.
61440
61441 2004-03-30  Jim Meyering  <jim@meyering.net>
61442
61443         Merge from coreutils.
61444
61445         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
61446
61447         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
61448         an empty input stream.
61449
61450         * lib/readtokens.c: Include <stdbool.h>.
61451         (readtoken): Use `size_t' rather than int/long.
61452         All callers adjusted.
61453         Use `bool' rather than `int' where appropriate.
61454         Use memset rather than an explicit loop.
61455         Use x2nrealloc rather than xrealloc.
61456         Allow the use of `\0' as a delimiter.
61457         (readtokens): Likewise.
61458         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
61459
61460 2004-03-30  Jim Meyering  <jim@meyering.net>
61461
61462         * m4/realloc.m4: Remove file, since now it does no more than
61463         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
61464         the `configure.ac' section of module/realloc.
61465         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
61466
61467 2004-03-30  Bruno Haible  <bruno@clisp.org>
61468
61469         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
61470         nonnull.
61471
61472 2004-03-29  Paul Eggert  <eggert@twinsun.com>
61473
61474         Merge changes to getloadavg.c from coreutils and Emacs.
61475
61476         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
61477         Define to an expression, not to the empty string.
61478         Include cloexec.h and xalloc.h.
61479         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
61480         Use set_cloexec_flag rather than rolling our own.
61481         * lib/cloexec.c, lib/cloexec.h: New files.
61482
61483 2004-03-29  Paul Eggert  <eggert@twinsun.com>
61484
61485         * m4/cloexec.m4: New file.
61486
61487 2004-03-18  Paul Eggert  <eggert@twinsun.com>
61488
61489         * lib/getopt.h: Sync with libc CVS.
61490
61491 2004-03-18  Paul Eggert  <eggert@twinsun.com>
61492             Bruno Haible  <bruno@clisp.org>
61493
61494         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
61495         mbswidth.
61496
61497 2004-03-18  Paul Eggert  <eggert@twinsun.com>
61498             Bruno Haible  <bruno@clisp.org>
61499
61500         * lib/mbswidth.h: Include <wchar.h> only if
61501         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
61502         <wchar.h>.
61503         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
61504
61505 2004-03-09  Paul Eggert  <eggert@twinsun.com>
61506
61507         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
61508         Sync with libc CVS.
61509         * lib/getopt_int.h: New file, also synced from libc.
61510
61511 2004-03-09  Paul Eggert  <eggert@twinsun.com>
61512
61513         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
61514         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
61515         Bring back getopt.c, getopt.h, getopt1.c.
61516
61517 2004-03-07  Paul Eggert  <eggert@twinsun.com>
61518
61519         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
61520         All uses changed.  Check for sa_sigaction member; this fixes
61521         a bug first reported by Jason Andrade in
61522         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
61523
61524 2004-03-07  Paul Eggert  <eggert@twinsun.com>
61525
61526         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
61527         '#if' expressions.  Unlike the code it replaces, it does not
61528         depend on (defined _SC_PAGESIZE).  However, it does depend on
61529         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
61530         first reported by Jason Andrade in
61531         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
61532
61533 2004-02-25  Simon Josefsson  <jas@extundo.com>
61534
61535         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
61536
61537 2004-02-25  Simon Josefsson  <jas@extundo.com>
61538
61539         * lib/strdup.h: New file.
61540         * lib/strdup.c: Include it.
61541         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
61542         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
61543
61544 2004-02-23  Karl Berry  <karl@gnu.org>
61545
61546         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
61547         (from fencepost.gnu.org:/gd/gnuorg).
61548
61549 2004-02-23  Karl Berry  <karl@gnu.org>
61550
61551         * config/srclistvars.sh (GNUORG) [karl]: redefine.
61552         * config/srclist.txt: add maintain/standards documents.
61553
61554 2004-02-18  Bruno Haible  <bruno@clisp.org>
61555
61556         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
61557         Reported by Derek Robert Price <derek@ximbiot.com>.
61558
61559 2004-02-16  Karl Berry  <karl@gnu.org>
61560
61561         * config/mkinstalldirs, install-sh: update from automake.
61562
61563 2004-02-06  Karl Berry  <karl@gnu.org>
61564
61565         * m4/po.m4: update from gettext 0.14.1.
61566
61567 2004-02-06  Karl Berry  <karl@gnu.org>
61568
61569         * lib/config.charset: update from gettext 0.14.1.
61570
61571 2004-02-05  Paul Eggert  <eggert@twinsun.com>
61572
61573         Add comments and code, prompted by suggestions from Bruno Haible
61574         for sh-quote.
61575         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
61576         describing the enum quoting_style values.
61577         * lib/quotearg.c (quotearg_alloc): New function.
61578         (quotearg_buffer_restyled): Treat lone { and } as special.
61579         Treat = as special.  Work around bug with older shells
61580         that "see" a '\' that is really the 2nd byte of a multibyte char.
61581         Quote empty string with shell_quoting_style.
61582
61583 2004-02-03  Bruno Haible  <bruno@clisp.org>
61584
61585         * m4/pipe.m4: New file, from GNU gettext.
61586
61587 2004-02-03  Bruno Haible  <bruno@clisp.org>
61588
61589         * lib/pipe.h: New file, from GNU gettext.
61590         * lib/pipe.c: New file, from GNU gettext.
61591
61592 2004-01-27  Bruno Haible  <bruno@clisp.org>
61593
61594         * m4/execute.m4: New file, from GNU gettext.
61595
61596 2004-01-27  Bruno Haible  <bruno@clisp.org>
61597
61598         * lib/execute.h: New file, from GNU gettext.
61599         * lib/execute.c: New file, from GNU gettext.
61600         * lib/w32spawn.h: New file, from GNU gettext.
61601
61602 2004-01-24  Paul Eggert  <eggert@twinsun.com>
61603
61604         Merge from diffutils.
61605
61606         * lib/file-type.c (file_type): Add typed memory objects.
61607         * lib/file-type.h (S_TYPEISTMO): New macro.
61608
61609         * lib/c-stack.h (c_stack_action): Remove argv argument.
61610         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
61611         (die): Don't calculate message unless segv_action returns.
61612         (get_stack_location, min_address_from_argv, max_address_from_argv,
61613         volatile stack_base, volatile_stack_size): Remove.
61614         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
61615         that every segmentation violation is a stack overflow.  (Ouch!)
61616         See Debian bug 136249 (still outstanding) for more info about why
61617         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
61618
61619 2004-01-24  Paul Eggert  <eggert@twinsun.com>
61620
61621         Exit-status fix from coreutils.
61622
61623         Use exit_failure consistently in place of EXIT_FAILURE,
61624         so that program exit statuses are consistent on failure.
61625
61626         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
61627         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
61628         * lib/argmatch.h: Comment fix to match the above.
61629         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
61630         Now a macro referring to exit_failure, instead of a separate
61631         variable.  Include "exitfail.h" to get it.
61632         * lib/xstrtol.h: Include "exitfail.h".
61633         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
61634
61635         * lib/long-options.c (parse_long_options): Use prototype
61636         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
61637         for clarity.
61638
61639 2004-01-21  Jim Meyering  <jim@meyering.net>
61640
61641         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
61642         so as not to conflict with a different-sized __mktime_internal
61643         function in GNU libc.
61644         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
61645         Problem building statically-linked `ls' reported by Michael Brunnbauer.
61646
61647 2004-01-20  Karl Berry  <karl@gnu.org>
61648
61649         * config/config.guess: update from config.
61650
61651         * config/srclistvars.sh: GNUWWWLICENSES for karl.
61652
61653 2004-01-20  Bruno Haible  <bruno@clisp.org>
61654
61655         Safer stack allocation.
61656         * lib/setenv.c: Include allocsa.h.
61657         (alloca): Remove fallback definition.
61658         (freea): Remove macro.
61659         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
61660         instead of freea.
61661
61662 2004-01-20  Bruno Haible  <bruno@clisp.org>
61663
61664         * m4/eealloc.m4: New file, from GNU gettext.
61665
61666 2004-01-20  Bruno Haible  <bruno@clisp.org>
61667
61668         * m4/allocsa.m4: New file, from GNU gettext.
61669
61670 2004-01-20  Bruno Haible  <bruno@clisp.org>
61671
61672         * lib/xallocsa.h: New file, from GNU gettext.
61673         * lib/xallocsa.c: New file, from GNU gettext.
61674
61675 2004-01-20  Bruno Haible  <bruno@clisp.org>
61676
61677         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
61678
61679 2004-01-20  Bruno Haible  <bruno@clisp.org>
61680
61681         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
61682         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
61683         specially.
61684
61685 2004-01-20  Bruno Haible  <bruno@clisp.org>
61686
61687         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
61688         patch.
61689
61690 2004-01-20  Bruno Haible  <bruno@clisp.org>
61691
61692         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
61693
61694 2004-01-20  Bruno Haible  <bruno@clisp.org>
61695
61696         * lib/eealloc.h: New file.
61697
61698 2004-01-20  Bruno Haible  <bruno@clisp.org>
61699
61700         * lib/binary-io.h: Avoid warnings on Cygwin.
61701
61702 2004-01-20  Bruno Haible  <bruno@clisp.org>
61703
61704         * lib/allocsa.h: New file, from GNU gettext.
61705         * lib/allocsa.c: New file, from GNU gettext.
61706
61707 2004-01-18  Karl Berry  <karl@gnu.org>
61708
61709         * doc/gpl.texi, doc/lgpl.texi: new files.
61710
61711 2004-01-18  Karl Berry  <karl@gnu.org>
61712
61713         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
61714         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
61715
61716 2004-01-15  Paul Eggert  <eggert@twinsun.com>
61717
61718         Merge from coreutils.
61719
61720         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
61721         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
61722         (gl_DEFAULT_POSIX2_VERSION): Move
61723         the documentation from 'configure' into 'config.hin',
61724         so that 'configure --help' isn't burdened by it and
61725         we don't have to worry about its formatting there.
61726         Reword the documentation so that it's more succinct
61727         and can be run together into a single paragraph.
61728         * m4/same.m4 (gl_SAME): Check for pathconf.
61729
61730 2004-01-15  Paul Eggert  <eggert@twinsun.com>
61731
61732         Merge from coreutils.
61733
61734         * lib/posixver.c: Include posixver.h.
61735
61736         * lib/same.c: Include <stdbool.h>, <limits.h>.
61737         (_POSIX_NAME_MAX): Define if not defined.
61738         (MIN): New macro.
61739         (same_name): If file names are silently truncated, report
61740         that the file names are the same if they are the same after
61741         the silent truncation.
61742
61743         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
61744         conversion function.
61745         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
61746         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
61747         longer needed.
61748
61749 2004-01-15  Jim Meyering  <jim@meyering.net>
61750
61751         Merge from coreutils.
61752
61753         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
61754         if no library is required.
61755         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
61756         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
61757         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
61758         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
61759         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
61760         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
61761         value, $ac_cv_search_crypt, if it's "none required".
61762         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
61763         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
61764         not gl_FUNC_GETLOADAVG.
61765         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
61766         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
61767
61768 2004-01-15  Jim Meyering  <jim@meyering.net>
61769
61770         Merge from coreutils.
61771
61772         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
61773         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
61774         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
61775
61776         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
61777         optional configure-time default.
61778
61779         * lib/version-etc.c (version_etc_copyright): Update copyright date.
61780
61781         * lib/xreadlink.c (xreadlink): Correct outdated comment.
61782
61783 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
61784
61785         Merge from coreutils.
61786
61787         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
61788         value, $ac_cv_search_nanosleep, if it's "none required".
61789
61790 2004-01-14  Paul Eggert  <eggert@twinsun.com>
61791
61792         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
61793         with like-named macro in fnmatch.c.
61794         (EXT): Use an internal constant instead.
61795
61796         Merge fnmatch patches from glibc.
61797         * lib/fnmatch.c (mbsinit): Remove define.
61798         Add libc_hidden_ver (__fnmatch, fnmatch).
61799         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
61800         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
61801
61802 2004-01-14  Karl Berry  <karl@gnu.org>
61803
61804         * config/install-sh: update from automake.
61805
61806 2004-01-13  Karl Berry  <karl@gnu.org>
61807
61808         * config/install-sh: update from automake.
61809
61810 2004-01-09  Karl Berry  <karl@gnu.org>
61811
61812         * config/install-sh: update from automake.
61813
61814 2004-01-05  Karl Berry  <karl@gnu.org>
61815
61816         * config/config.{sub,guess}: update from config.
61817
61818 2003-12-31  Karl Berry  <karl@gnu.org>
61819
61820         * config/depcomp: update from automake.
61821
61822 2003-12-14  Karl Berry  <karl@gnu.org>
61823
61824         * lib/config.charset: update from gettext-runtime.
61825
61826 2003-12-03  Paul Eggert  <eggert@twinsun.com>
61827
61828         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
61829         Bug reported by Alfred M. Szmidt.
61830
61831 2003-12-03  Bruno Haible  <bruno@clisp.org>
61832
61833         * m4/gettext.m4: Upgrade from gettext-0.13.
61834         * m4/po.m4: Upgrade from gettext-0.13.
61835         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
61836         * m4/intmax.m4: New file, from gettext-0.13.
61837         * m4/printf-posix.m4: New file, from gettext-0.13.
61838
61839 2003-11-29  Karl Berry  <karl@gnu.org>
61840
61841         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
61842
61843 2003-11-25  Paul Eggert  <eggert@twinsun.com>
61844             Bruno Haible  <bruno@clisp.org>
61845
61846         * lib/printf-parse.h: Don't include sys/types.h.
61847         (ARG_NONE): New macro.
61848         (char_directive): Change type of *arg_index fields to size_t.
61849         * lib/printf-parse.c: Don't include sys/types.h.
61850         (SSIZE_MAX): Remove macro.
61851         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
61852         Remove unnecessary overflow check.
61853         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
61854         fields.
61855
61856 2003-11-25  Bruno Haible  <bruno@clisp.org>
61857
61858         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
61859
61860 2003-11-25  Bruno Haible  <bruno@clisp.org>
61861
61862         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
61863         gt_TYPE_SSIZE_T.
61864
61865 2003-11-24  Paul Eggert  <eggert@twinsun.com>
61866
61867         * modules/alloca: Remove dependency on xalloc.
61868
61869 2003-11-24  Paul Eggert  <eggert@twinsun.com>
61870
61871         * lib/alloca.c: Remove dependency on xalloc module.
61872         (xalloc_die): Remove.
61873         (memory_full) [!defined emacs]: New macro.
61874         [!defined emacs]: Don't include xalloc.h.
61875         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
61876         address arithmetic overflows.  Change datatypes a bit to avoid
61877         unnecessary casts.
61878
61879 2003-11-22  Jim Meyering  <jim@meyering.net>
61880
61881         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
61882         s/size/size_t/.
61883
61884 2003-11-21  Karl Berry  <karl@gnu.org>
61885
61886         * config/config.{sub,guess}: update from config.
61887
61888 2003-11-18  Karl Berry  <karl@gnu.org>
61889
61890         * config/config.{sub,guess}: update from config.
61891
61892         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
61893
61894 2003-11-17  Paul Eggert  <eggert@twinsun.com>
61895
61896         * README: Mention that S+T cannot overflow if S is the size of
61897         an existing object and T is sufficiently small.
61898
61899 2003-11-17  Jim Meyering  <jim@meyering.net>
61900
61901         On systems without utime and without a utimes function capable of
61902         dealing with a NULL struct utimbuf* argument, this utime replacement
61903         could -- in unusual circumstances -- leak a file descriptor.
61904         * lib/utime.c: Include <unistd.h> and <errno.h>.
61905         (utime_null): Be sure to close `fd' and to preserve errno.
61906         Reported by Geoff Collyer via Arnold Robbins.
61907
61908 2003-11-17  Bruno Haible  <bruno@clisp.org>
61909
61910         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
61911         (Depends-on): Add xsize.
61912
61913 2003-11-17  Bruno Haible  <bruno@clisp.org>
61914
61915         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
61916
61917 2003-11-17  Bruno Haible  <bruno@clisp.org>
61918
61919         * lib/vasnprintf.c (alloca): Remove fallback definition.
61920         (freea): Remove definition.
61921         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
61922         Reported by Paul Eggert.
61923
61924 2003-11-16  Paul Eggert  <eggert@twinsun.com>
61925             Bruno Haible  <bruno@clisp.org>
61926
61927         Protect against address arithmetic overflow.
61928         * lib/printf-args.h: Include stddef.h.
61929         (arguments): Change type of field 'count' to size_t.
61930         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
61931         'unsigned int' where appropriate.
61932         * lib/printf-parse.h: Include sys/types.h.
61933         (char_directive): Change type of *arg_index fields to ssize_t.
61934         (char_directives): Change type of fields 'count', max_*_length to
61935         size_t.
61936         * lib/printf-parse.c: Include sys/types.h and xsize.h.
61937         (SSIZE_MAX): Define fallback value.
61938         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
61939         instead of 'int' where appropriate. Check a_allocated, d_allocated
61940         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
61941         * lib/vasnprintf.c: Include xsize.h.
61942         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
61943         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
61944         overflow. Avoid wraparound when converting a width or precision from
61945         decimal to binary.
61946
61947 2003-11-16  Bruno Haible  <bruno@clisp.org>
61948
61949         Update from GNU gettext.
61950         * lib/printf-parse.c: Generalize to it can be compiled for wide
61951         strings.
61952         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
61953         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
61954         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
61955         SNPRINTF): New macros.
61956         Don't include <alloca.h> if the file is used inside libintl.
61957         (local_wcslen): New function, for Solaris 2.5.1.
61958         (VASNPRINTF): Use it instead of wcslen.
61959
61960 2003-11-16  Bruno Haible  <bruno@clisp.org>
61961
61962         * lib/xsize.h (xmax): New function.
61963         (xsum, xsum3, xsum4): Declare as "pure" functions.
61964
61965 2003-11-12  Paul Eggert  <eggert@twinsun.com>
61966
61967         * modules/xalloc (Files): Undo latest change, since xalloc.h
61968         no longer needs SIZE_MAX or PTRDIFF_MAX.
61969
61970 2003-11-12  Paul Eggert  <eggert@twinsun.com>
61971
61972         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
61973         gl_PTRDIFF_MAX.
61974
61975 2003-11-12  Paul Eggert  <eggert@twinsun.com>
61976
61977         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
61978         "return", to pacify some unknown compiler.  Problem reported
61979         by Joerg Schilling.
61980
61981 2003-11-12  Paul Eggert  <eggert@twinsun.com>
61982
61983         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
61984         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
61985         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
61986         heuristic is just as accurate as far as we know, and it removes a
61987         dependency on size_max.m4 and ptrdiff_max.m4.
61988
61989 2003-11-11  Bruno Haible  <bruno@clisp.org>
61990
61991         * modules/xsize (Files): Add m4/size_max.m4.
61992         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
61993
61994 2003-11-11  Bruno Haible  <bruno@clisp.org>
61995
61996         * m4/size_max.m4: New file.
61997         * m4/ptrdiff_max.m4: New file.
61998         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
61999         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
62000         (gl_XALLOC): Invoke it.
62001
62002 2003-11-11  Bruno Haible  <bruno@clisp.org>
62003
62004         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
62005         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
62006         defined.
62007
62008 2003-11-10  Paul Eggert  <eggert@twinsun.com>
62009
62010         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
62011         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
62012         rejected some allocations of exactly SIZE_MAX - 2 bytes.
62013         From Bruno Haible.
62014         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
62015         not (size_t) -1, since it's defined here.
62016
62017 2003-11-09  Karl Berry  <karl@gnu.org>
62018
62019         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
62020
62021 2003-11-06  Paul Eggert  <eggert@twinsun.com>
62022
62023         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
62024         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
62025         Reject sizes of exactly SIZE_MAX bytes.
62026         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
62027         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
62028
62029 2003-11-05  Bruno Haible  <bruno@clisp.org>
62030
62031         * lib/xsize.h: Include limits.h, to avoid a possible collision with
62032         SIZE_MAX defined in <limits.h> on Solaris.
62033
62034 2003-11-04  Jim Meyering  <jim@meyering.net>
62035
62036         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
62037         variable names, rather than @VAR@.
62038         * modules/poll: Likewise.
62039
62040 2003-11-04  Bruno Haible  <bruno@clisp.org>
62041
62042         * modules/xsize: New file.
62043         * modules/linebreak: Depend on xsize.
62044         * MODULES.html.sh (func_all_modules): Add xsize.
62045
62046 2003-11-04  Bruno Haible  <bruno@clisp.org>
62047
62048         * m4/xsize.m4: New file.
62049
62050 2003-11-04  Bruno Haible  <bruno@clisp.org>
62051
62052         * lib/xsize.h: New file.
62053         * lib/linebreak.c: Include xsize.h.
62054         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
62055         argument for overflow.
62056         Suggested by Paul Eggert.
62057
62058 2003-11-03  Karl Berry  <karl@gnu.org>
62059
62060         * config/config.{guess,sub}: update from config.
62061
62062 2003-11-03  Jim Meyering  <jim@meyering.net>
62063
62064         * modules/userspec (lib_SOURCES): Add userspec.h.
62065         (Include): Add "userspec.h".
62066         Improve description.
62067
62068 2003-11-03  Jim Meyering  <jim@meyering.net>
62069
62070         * lib/userspec.c: Include "userspec.h".
62071         * lib/userspec.h: New file.
62072
62073 2003-11-03  Bruno Haible  <bruno@clisp.org>
62074
62075         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
62076
62077 2003-11-03  Bruno Haible  <bruno@clisp.org>
62078
62079         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
62080         available, to avoid (extremely rare) race condition.
62081         Suggested by Paul Eggert.
62082
62083 2003-11-02  Karl Berry  <karl@gnu.org>
62084
62085         * config/srclist.txt (vasprintf.c): sync broken, sigh.
62086
62087 2003-10-31  Paul Eggert  <eggert@twinsun.com>
62088
62089         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
62090         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
62091         (read_filesystem_list): Set and use me_type_malloced.
62092         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
62093         whatever the type happens to be), for brevity and consistency.
62094         Check for size calculation overflow on Alphas running OSF/1.
62095
62096 2003-10-31  Jim Meyering  <jim@meyering.net>
62097
62098         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
62099
62100         * lib/linebuffer.c: Include <string.h> for declaration of memset.
62101
62102 2003-10-30  Paul Eggert  <eggert@twinsun.com>
62103             Bruno Haible  <bruno@clisp.org>
62104
62105         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
62106         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
62107
62108 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
62109
62110         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
62111         netbsd*-gnu*.  Suggested by Robert Millan.
62112
62113 2003-10-29  Paul Eggert  <eggert@twinsun.com>
62114
62115         * modules/group-member: Depend on stdbool.
62116
62117 2003-10-29  Paul Eggert  <eggert@twinsun.com>
62118
62119         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
62120
62121 2003-10-29  Paul Eggert  <eggert@twinsun.com>
62122
62123         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
62124         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
62125         after the 'gnu' in these cases.  This fixes some bugs in the
62126         previous change, and is based on suggestions by Robert Millan.
62127
62128 2003-10-29  Paul Eggert  <eggert@twinsun.com>
62129
62130         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
62131         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
62132         no longer needed.
62133         * lib/quotearg.c (quotearg_n_options): Use it.
62134         * lib/group-member.c: Include <stdbool.h>.
62135         (free_group_info): Arg is now const *; don't free arg.
62136         (get_group_info): Now returns bool and accepts struct group_info *,
62137         rather than returning a malloc'ed struct group_info *.
62138         All uses changed.  Check for overflow in internal size calculation.
62139
62140         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
62141         rather than xmalloc/xrealloc.
62142         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
62143         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
62144         conformance bug: the old code used a pointer after freeing the
62145         storage that it addressed.
62146         * lib/hash.c (hash_initialize): Simplify the code by using
62147         xalloc_oversized rather than doing it by hand.
62148         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
62149         the buffer preserved.  Use free and xmalloc instead.
62150         * lib/quotearg.c (quotearg_n_options): Likewise.
62151         Use a simpler test for size overflow.  Don't use xalloc_oversized
62152         because unsigned int might be wider than size_t (!); this suggests
62153         that we should switch from unsigned int to size_t for slot numbers.
62154
62155 2003-10-28  Paul Eggert  <eggert@twinsun.com>
62156
62157         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
62158         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
62159         NetBSD kernels.  Requested by Richard Stallman.
62160
62161 2003-10-27  Paul Eggert  <eggert@twinsun.com>
62162
62163         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
62164         to allocate the returned structure.  Do not allocate a subarray,
62165         as x2nrealloc will do that.
62166         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
62167         instead of xnrealloc.
62168         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
62169
62170 2003-10-27  Bruno Haible  <bruno@clisp.org>
62171
62172         * lib/stdbool_.h: Better support for BeOS.
62173
62174 2003-10-26  Paul Eggert  <eggert@twinsun.com>
62175
62176         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
62177         now uses inline.
62178
62179 2003-10-26  Paul Eggert  <eggert@twinsun.com>
62180
62181         * lib/xalloc.h (xalloc_oversized): New static inline function, for
62182         callers that want to do their own size-overflow checking.  Include
62183         <stdbool.h>, since xalloc_oversized returns bool.
62184         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
62185         to use xalloc_oversized.
62186
62187         Add two functions x2realloc, x2nrealloc, for programs that grow
62188         arrays dynamically by doubling their sizes.
62189         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
62190         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
62191         New functions.
62192
62193         Port to C99 semantics for 'inline' of external functions.
62194         Bug reported by Bruno Haible.
62195         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
62196         with the old contents of xnmalloc.
62197         (xnmalloc, xmalloc): Use it.
62198         (xnrealloc_inline): New static inline function,
62199         with the old contents of xnrealloc.
62200         (xnrealloc, xrealloc): Use it.
62201
62202         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
62203         that.
62204
62205 2003-10-26  Karl Berry  <karl@gnu.org>
62206
62207         * config/srclist.txt (COPYING.DOC): no longer available from
62208         /gd/gnuorg; don't know where the ultimate source is.
62209
62210 2003-10-25  Paul Eggert  <eggert@twinsun.com>
62211
62212         Fix several address-calculation bugs in the hash modules,
62213         plus some minor code cleanup.
62214
62215         * lib/hash.h: Include <stdbool.h>, for bool.
62216         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
62217         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
62218         hash_get_n_entries, hash_get_max_bucket_length,
62219         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
62220         hash_rehash): Use size_t rather than unsigned.
62221         * lib/hash.c (struct hash_table, hash_get_n_buckets,
62222         hash_get_n_buckets_used, hash_get_n_entries,
62223         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
62224         hash_get_entries, hash_do_for_each, hash_string, is_prime,
62225         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
62226         Likewise.
62227         (SIZE_MAX): Define if not defined.
62228         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
62229         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
62230         hash_print):
62231         Use const * when possible.
62232         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
62233         (check_tuning): Fix bug: if tuning parameters were very close to
62234         0 or 1, rounding errors could have caused subscript violations.
62235         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
62236         (hash_initialize): Add 'fail:' label
62237         to free table and return NULL, and use it to simplify code.
62238         Use calloc rather than clearing the storage ourself.
62239         (hash_initialize, hash_rehash): Check for arithmetic overflow in
62240         buffer size calculations.
62241         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
62242         Include <stddef.h>, for size_t.
62243         * lib/hash-pjw.c (hash_pjw): Likewise.
62244         Switch to method described by Bruno Haible.
62245         Include <limits.h>, for CHAR_BIT.
62246         (SIZE_BITS): New macro.
62247
62248 2003-10-23  Paul Eggert  <eggert@twinsun.com>
62249
62250         * m4/getline.m4 (AM_FUNC_GETLINE):
62251         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
62252         hosts.  Problem reported by Derek Robert Price in
62253         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
62254         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
62255         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
62256
62257 2003-10-21  Paul Eggert  <eggert@twinsun.com>
62258
62259         * lib/getndelim2.c (getndelim2): When size calculation overflows,
62260         ceiling the allocation at NMAX bytes rather than silently
62261         discarding input bytes before NMAX is reached.  This makes
62262         a difference only if NMAX exceeds SIZE_MAX / 2.
62263
62264         * lib/obstack.c: Merge from glibc.
62265         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
62266         Add libc_hidden_def (_obstack_newchunk).
62267         (_obstack_free) [! defined _LIBC]: Remove.
62268         [defined _LIBC]: Make a strong alias from obstack_free, rather than
62269         a clone of the function body.
62270         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
62271         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
62272
62273         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
62274         glibc.
62275         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
62276         arg to memcpy.
62277
62278         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
62279         (obstack_ptr_grow_fast, obstack_int_grow_fast):
62280         Don't use lvalue casts, as GCC plans to remove support for them
62281         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
62282         was also present in the non-GCC version, indicating that this
62283         code had always been buggy and had never been widely used.
62284         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
62285         Use the fast variant of each macro, rather than copying the
62286         definiens of the fast variant; that way, we'll be more likely to
62287         catch future bugs in the fast variants.
62288
62289 2003-10-20  Bruno Haible  <bruno@clisp.org>
62290
62291         * modules/wait-process: New file.
62292         * MODULES.html.sh (func_all_modules): Add wait-process.
62293
62294 2003-10-20  Bruno Haible  <bruno@clisp.org>
62295
62296         * m4/wait-process.m4: New file.
62297
62298 2003-10-20  Bruno Haible  <bruno@clisp.org>
62299
62300         * lib/wait-process.h: New file, from GNU gettext.
62301         * lib/wait-process.c: New file, from GNU gettext.
62302
62303 2003-10-19  Jim Meyering  <jim@meyering.net>
62304
62305         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
62306         HPUX 10.20.
62307
62308 2003-10-18  Karl Berry  <karl@gnu.org>
62309
62310         * config/config.guess: update from config.
62311
62312 2003-10-16  Paul Eggert  <eggert@twinsun.com>
62313
62314         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
62315         (getgroups): First arg is int, not size_t.
62316         Don't let 'free' mangle errno.
62317
62318 2003-10-16  Paul Eggert  <eggert@twinsun.com>
62319
62320         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
62321
62322 2003-10-16  Karl Berry  <karl@gnu.org>
62323
62324         * config/config.{guess,sub}: update from config.
62325
62326 2003-10-16  Jim Meyering  <jim@meyering.net>
62327
62328         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
62329         memcpy.
62330
62331 2003-10-15  Paul Eggert  <eggert@twinsun.com>
62332
62333         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
62334         (SIZE_MAX): Remove.
62335         (new_exclude, add_exclude_file): Initial size no longer needs to
62336         be a power of 2.
62337         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
62338         our own address arithmetic overflow checking.
62339
62340         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
62341         (fnmatch): Do not alloca more than 2000 wide characters;
62342         instead, use malloc for large buffers.
62343         Check for address arithmetic overflow, and return -1
62344         with errno set to ENOMEM in that case.
62345         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
62346         (NEW_PATTERN): Do not alloca more than 8000 bytes;
62347         instead, return -1.  Check for address arithmetic overflow.
62348
62349 2003-10-14  Paul Eggert  <eggert@twinsun.com>
62350
62351         Handle invalid suffixes and overflow independently, so that
62352         callers can treat them independently as needed.  Fix some bugs in
62353         suffix handling, e.g., "100k@" was not diagnosed as an invalid
62354         suffix for a human-readable blocksize.  The major caller-visible
62355         change is the addition of a new
62356         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
62357         that both overflow and suffix chars were found.
62358
62359         * lib/human.c (humblock): Don't check separately for invalid suffix
62360         char; that is xstrtoumax's job (now that its bug is fixed).
62361         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
62362         INTMAX_MAX]: New macros.
62363         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
62364         TYPE_MAXIMUM): New macros.
62365         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
62366         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
62367         if overflow occurs, as it's what __strtol does and it's more useful
62368         in practice.
62369         (__xstrtol): If __strtol reports some error other than ERANGE,
62370         reflect it to the caller as LONGINT_INVALID.  If it reports
62371         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
62372         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
62373         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
62374         value.
62375         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
62376         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
62377         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
62378         [defined UINTMAX_MAX]: New macros.
62379
62380 2003-10-14  Bruno Haible  <bruno@clisp.org>
62381
62382         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
62383
62384 2003-10-14  Bruno Haible  <bruno@clisp.org>
62385
62386         * m4/sig_atomic_t: New file, from GNU gettext.
62387         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
62388
62389 2003-10-14  Bruno Haible  <bruno@clisp.org>
62390
62391         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
62392         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
62393         Also use volatile where needed.
62394
62395 2003-10-12  Paul Eggert  <eggert@twinsun.com>
62396
62397         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
62398         Change maintainer from Bruno Haible to 'all'.
62399
62400 2003-10-12  Paul Eggert  <eggert@twinsun.com>
62401
62402         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
62403
62404 2003-10-12  Paul Eggert  <eggert@twinsun.com>
62405
62406         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
62407         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
62408         and define in terms of the other primitives.
62409         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
62410         (SIZE_MAX): Define if not already defined.
62411         (array_size_overflow): New function.
62412         (xalloc_die): Abort instead of exiting if 'error' returns.
62413         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
62414         (xmalloc, xrealloc): Use them.
62415         (xcalloc): Check for address arithmetic overflow.
62416         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
62417         a bit faster than strcpy.
62418
62419 2003-10-10  Simon Josefsson  <jas@extundo.com>
62420
62421         * modules/argp (Depends-on): Add restrict and strcase.
62422
62423 2003-10-10  Simon Josefsson  <jas@extundo.com>
62424
62425         * m4/argp.m4: Add AC_C_INLINE.
62426
62427 2003-10-08  Paul Eggert  <eggert@twinsun.com>
62428
62429         Merge getpass from libc, plus a few fixes.
62430
62431         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
62432         Include <stdbool.h>.
62433         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
62434         __fsetlocking to empty.
62435         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
62436         do include <bits/libc-lock.h>.
62437         Do not include <fcntl.h>; not needed.
62438         [_LIBC]: Include <wchar.h>.
62439         (NOTCANCEL_MODE): New macro.
62440         (flockfile, funlockfile) [_LIBC]: New macros.
62441         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
62442         [!_LIBC]: New macros.
62443         (call_fclose): New function.
62444         (getpass): Use it.  Save tty stream separately; this simplifies the
62445         code and makes it more reliable if stdin happens to equal stdout.
62446         Invoke __fsetlocking on tty.
62447         Handle thread cancellation if needed.
62448         Namespace cleanup (use __tcgetattr, __getline).
62449         Use bool for Booleans.
62450         [USE_IN_LIBIO]: Handle wide streams.
62451         [!_LIBC]: Unconditionally do the fseek, since we don't know what
62452         stream might go where.
62453
62454         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
62455         doesn't have to include <stdio.h> before us.
62456         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
62457         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
62458         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
62459         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
62460         if not declared, so that we can use getpass.c code from libc without
62461         rewriting it.
62462         (flockfile, ftrylockfile, funlockfile): New macros.
62463
62464 2003-10-08  Paul Eggert  <eggert@twinsun.com>
62465
62466         * modules/getpass: Depend on stdbool.
62467
62468 2003-10-08  Paul Eggert  <eggert@twinsun.com>
62469
62470         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
62471
62472 2003-10-07  Karl Berry  <karl@gnu.org>
62473
62474         * config/config.{guess,sub}: update from config.
62475
62476 2003-10-06  Jim Meyering  <jim@meyering.net>
62477             Bruno Haible  <bruno@clisp.org>
62478
62479         This lets translators provide better translations for the
62480         "Written by ..." part of --version output.
62481         * lib/version-etc.h: Include stdarg.h.
62482         (version_etc_copyright): Declare as readonly.
62483         (version_etc): Make this function variadic with a NULL-terminated list
62484         of author name strings.
62485         (version_etc_va): New declaration.
62486         * lib/version-etc.c: Include stdarg.h, stdlib.h.
62487         (version_etc_copyright): Declare as readonly.
62488         (version_etc_va): New function. Provide a different translatable string
62489         for each possible number of authors < 10. Abbreviate when there are 10
62490         authors or more.
62491         (version_etc): Make this function variadic. Call version_etc_va.
62492         Suggestion from Gary V. Vaughan.
62493
62494         * lib/long-options.h (parse_long_options): Change prototype: the
62495         authors string is moved to the end and becomes variadic.
62496         * lib/long-options.c: Include stdarg.h.
62497         (parse_long_options): Make this function variadic, too.
62498         Call version_etc_va, not version_etc.
62499
62500 2003-10-06  Bruno Haible  <bruno@clisp.org>
62501
62502         * modules/version-etc-2: Remove file.
62503         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
62504
62505 2003-10-06  Bruno Haible  <bruno@clisp.org>
62506
62507         * modules/fatal-signal: New file.
62508         * MODULES.html.sh (func_all_modules): Add fatal-signal.
62509
62510 2003-10-06  Bruno Haible  <bruno@clisp.org>
62511
62512         * m4/fatal-signal.m4: New file.
62513         * m4/signalblocking.m4: New file, from GNU gettext.
62514
62515 2003-10-06  Bruno Haible  <bruno@clisp.org>
62516
62517         * lib/version-etc-2.h: Remove file.
62518         * lib/version-etc-2.c: Remove file.
62519
62520 2003-10-06  Bruno Haible  <bruno@clisp.org>
62521
62522         * lib/fatal-signal.h: New file, from GNU gettext.
62523         * lib/fatal-signal.c: New file, from GNU gettext.
62524
62525 2003-10-05  Paul Eggert  <eggert@twinsun.com>
62526
62527         * README: Rework advice for preventing empty .o files.
62528         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
62529         not <sys/types.h>.
62530
62531 2003-10-04  Karl Berry  <karl@gnu.org>
62532
62533         * lib/argp*: update from libc.
62534
62535 2003-10-04  Karl Berry  <karl@gnu.org>
62536
62537         * config/config.{guess,sub}: update from config.
62538
62539 2003-10-02  Bruno Haible  <bruno@clisp.org>
62540
62541         * modules/lchown (Include): Add lchown.h.
62542         * modules/time_r (Include): Use "..." syntax.
62543         * modules/xgetdomainname (Include): Add xgetdomainname.h.
62544
62545 2003-10-01  Simon Josefsson  <jas@extundo.com>
62546
62547         * MODULES.html.sh (func_all_modules): Move gethostname from section
62548         'based on' to section 'lacking' POSIX:2001.
62549
62550 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
62551
62552         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
62553         to output mode on the same stream.
62554
62555 2003-09-29  Paul Eggert  <eggert@twinsun.com>
62556
62557         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
62558         Fix arg typo in previous patch.
62559
62560 2003-09-28  Jim Meyering  <jim@meyering.net>
62561
62562         * lib/error.c: Correct cpp indentation.
62563
62564 2003-09-27  Paul Eggert  <eggert@twinsun.com>
62565
62566         * modules/free: New file.
62567
62568 2003-09-27  Paul Eggert  <eggert@twinsun.com>
62569
62570         * m4/free.m4: New file.
62571
62572 2003-09-27  Paul Eggert  <eggert@twinsun.com>
62573
62574         * lib/minmax.h (MIN, MAX)
62575         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
62576         Omit the special code that used __typeof__, since we worry that
62577         it could be more trouble than it's worth.  See:
62578         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
62579         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
62580
62581         * lib/free.c: New file.
62582
62583 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
62584
62585         Trivial fixes to Makefile.am parts of module listings.
62586         * modules/strstr: Append strstr.h to lib_SOURCES.
62587         * modules/strcase: Likewise, for strcase.h.
62588
62589 2003-09-27  Karl Berry  <karl@gnu.org>
62590
62591         * config/mkinstalldirs: update from automake.
62592
62593 2003-09-26  Paul Eggert  <eggert@twinsun.com>
62594
62595         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
62596         (error_tail): Do not loop, reallocating temporary buffer, since
62597         the output cannot contain more wide characters than the input
62598         contains bytes, the size must be big enough already.  This avoids
62599         one potential size overflow calculation.  Check for size overflow
62600         when calculating temporary buffer size.  Free temporary buffer
62601         when done, if it was allocated with malloc; this plugs a memory
62602         leak.  Remove casts from void * to pointers, that are no longer
62603         needed now that we're assuming C89 or better.
62604
62605         Merge error changes from glibc.
62606
62607         * lib/error.c, error.h: Update copyright notice header to match glibc.
62608         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
62609         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
62610         Disable cancellation while printing error.
62611         * lib/error.h: Prepend __ to parameter names.
62612
62613 2003-09-26  Jim Meyering  <jim@meyering.net>
62614
62615         * lib/error.c (error_tail): Move some declarations
62616         into inner scope where the local variables are used.
62617
62618 2003-09-26  Bruno Haible  <bruno@clisp.org>
62619
62620         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
62621         stpncpy().
62622         Don't define stpncpy through config.h; it's now done through stpncpy.h.
62623
62624 2003-09-26  Bruno Haible  <bruno@clisp.org>
62625
62626         * lib/stpncpy.h (gnu_stpncpy): New declaration.
62627         (stpncpy): Define as alias for gnu_stpncpy.
62628         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
62629
62630 2003-09-25  Simon Josefsson  <jas@extundo.com>
62631
62632         * lib/xgetdomainname.h: New file.
62633         * lib/xgetdomainname.c: New file.
62634
62635 2003-09-25  Simon Josefsson  <jas@extundo.com>
62636             Bruno Haible  <bruno@clisp.org>
62637
62638         * modules/getdomainname: New file.
62639         * modules/xgetdomainname: New file.
62640         * MODULES.html.sh (func_all_modules): Add getdomainname,
62641         xgetdomainname.
62642
62643 2003-09-25  Simon Josefsson  <jas@extundo.com>
62644             Bruno Haible  <bruno@clisp.org>
62645
62646         * m4/getdomainname.m4: New file.
62647
62648 2003-09-25  Simon Josefsson  <jas@extundo.com>
62649             Bruno Haible  <bruno@clisp.org>
62650
62651         * lib/getdomainname.h: New file.
62652         * lib/getdomainname.c: New file.
62653
62654 2003-09-25  Karl Berry  <karl@gnu.org>
62655
62656         * lib/argp-fmtstream.c, argp-help.c: update from libc.
62657
62658 2003-09-25  Karl Berry  <karl@gnu.org>
62659
62660         * config/install-sh: update from automake.
62661
62662 2003-09-25  Bruno Haible  <bruno@clisp.org>
62663
62664         * modules/version-etc-2: New file, from modules/version-etc with
62665         modifications.
62666         * MODULES.html.sh (func_all_modules): Add version-etc-2.
62667
62668 2003-09-25  Bruno Haible  <bruno@clisp.org>
62669
62670         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
62671         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
62672
62673 2003-09-24  Simon Josefsson  <jas@extundo.com>
62674
62675         * modules/xgethostname: Add xgethostname.h.
62676
62677 2003-09-24  Paul Eggert  <eggert@twinsun.com>
62678
62679         * lib/linebuffer.c (freebuffer): Don't free the argument, just
62680         the buffer associated with the argument.  Bug reported by
62681         Simon Josefsson.
62682
62683 2003-09-24  Paul Eggert  <eggert@twinsun.com>
62684
62685         * README: Document assumptions that 'int' is at least 32 bits
62686         wide, that integer arithmetic is 2's complement without overflow,
62687         that there are no holes in integer values, that adding sizes of
62688         two nonoverlapping objects can't overflow, and that all-bits-zero
62689         yields scalar zero.  Fix spelling and capitalization typos.
62690
62691 2003-09-19  Karl Berry  <karl@gnu.org>
62692
62693         * lib/argp.h: update from libc.
62694
62695 2003-09-17  Paul Eggert  <eggert@twinsun.com>
62696
62697         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
62698         to avoid spurious warnings like "AC_RUN_IFELSE was called before
62699         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
62700
62701 2003-09-17  Paul Eggert  <eggert@twinsun.com>
62702
62703         * gnulib-tool: Use "test -h", not "test -L", for portability
62704         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
62705         (tags_regexp): Remove, since \| doesn't conform to POSIX.
62706         (sed_extract_prog): Issue s commands one-by-one, rather than
62707         using \| in one s command.
62708
62709 2003-09-16  Paul Eggert  <eggert@twinsun.com>
62710
62711         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
62712         input error, instead of returning NULL the next time we are called
62713         (and therefore losing track of errno).
62714
62715 2003-09-16  Bruno Haible  <bruno@clisp.org>
62716
62717         * gnulib-tool (func_create_testdir): Warn about duplicated
62718         dependencies.
62719
62720 2003-09-15  Paul Eggert  <eggert@twinsun.com>
62721
62722         * modules/argmatch, modules/fatal, modules/obstack,
62723         modules/xalloc, modules/xgethostname: Sort dependencies by
62724         importance, not alphabetically.
62725
62726 2003-09-15  Paul Eggert  <eggert@twinsun.com>
62727
62728         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
62729         fails, so that the caller gets the proper errno.
62730
62731         * lib/readutmp.c (read_utmp): Likewise.
62732         Check for fstat error.  Close stream and free storage
62733         when failing.
62734
62735 2003-09-14  Karl Berry  <karl@gnu.org>
62736
62737         * config/srclist.txt (strdup.c): disable for c89 changes.
62738
62739 2003-09-14  Jim Meyering  <jim@meyering.net>
62740
62741         * lib/getloadavg.c: Correct cpp indentation.
62742         * lib/strdup.c: Likewise.
62743         * lib/vasnprintf.c: Likewise.
62744
62745 2003-09-14  Bruno Haible  <bruno@clisp.org>
62746
62747         * modules/fwriteerror: New file.
62748         * MODULES.html.sh (func_all_modules): Add fwriteerror.
62749
62750 2003-09-14  Bruno Haible  <bruno@clisp.org>
62751
62752         * lib/fwriteerror.h: New file.
62753         * lib/fwriteerror.c: New file.
62754
62755 2003-09-12  Paul Eggert  <eggert@twinsun.com>
62756
62757         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
62758         modules/xgethostname, modules/xalloc: Depend on exit.
62759
62760 2003-09-12  Paul Eggert  <eggert@twinsun.com>
62761
62762         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
62763
62764         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
62765         and AC_MINIX, too, so that their extensions are available.
62766
62767         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
62768         This macro has been superseded by gl_BACKUPFILE.
62769
62770         More patches to assume C89 or better.
62771
62772         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
62773
62774         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
62775         unconditionally.
62776         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
62777         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
62778         Include <string.h>, <stdlib.h> unconditionally.
62779         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
62780         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
62781         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
62782         headers or for string.h.
62783         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
62784         or strtoul.
62785
62786         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
62787         headers.
62788         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
62789         * m4/userspec.m4 (gl_USERSPEC): Likewise.
62790         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
62791         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
62792         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
62793         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
62794         memcpy, memset.
62795         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
62796         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
62797         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
62798         strtol.
62799         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
62800         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
62801         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
62802         strtoul.
62803
62804 2003-09-12  Paul Eggert  <eggert@twinsun.com>
62805
62806         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
62807         * lib/obstack.c [!defined _LIBC]: Likewise.
62808         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
62809         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
62810         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
62811
62812         More changes to assume C89 or better.
62813
62814         * lib/error.c (error_tail): Assume vprintf.
62815
62816         * lib/argmatch.c (getenv): Remove decl.
62817         * lib/progreloc.c (get_full_program_name): Define via prototype.
62818         * lib/setenv.c (clearenv): Likewise.
62819         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
62820         needed.
62821         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
62822         (malloc, memcpy): Remove decls.
62823         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
62824         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
62825         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
62826         (memcpy): Remove macro.
62827         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
62828         (__P): Remove.  All uses removed.
62829         (PTR): Remove.  All uses changed to void *.
62830         (CHAR_BIT, NULL): Remove.
62831         (spaces, zeros, memset_space, memset_zero)
62832         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
62833         Remove.
62834         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
62835         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
62836         Define with prototype.
62837         Remove now-unnecessary prototype decl.
62838         (extra_args_spec): Assume ANSI C.  All uses changed.
62839         (extra_args_spec_iso): Remove.
62840         (my_strftime, emacs_strftimeu): Define via prototype.
62841         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
62842         unconditionally.
62843         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
62844         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
62845         (strtoul, strtol): Remove decls.
62846         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
62847         LONG_MAX): Remove.
62848         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
62849         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
62850         (LOCALE_PARAM_PROTO): New macro.
62851         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
62852         (INTERNAL (strtol), strtol): Define with a prototype.
62853         (PARAMS): Remove.  All uses removed.
62854         * lib/tempname.c: Include <string.h> unconditionally.
62855         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
62856         * lib/xgethostname.c (main): Define with a prototype.
62857         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
62858         Include <stdlib.h> unconditionally.
62859         (calloc, malloc, realloc, free): Remove decls.
62860         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
62861         Include <stdlib.h> unconditionally.  Sort include file names.
62862         (strtod): Remove.
62863         (xstrtod): Define with a prototype.
62864         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
62865         (strtol, strtoul): Remove decls.
62866
62867 2003-09-11  Paul Eggert  <eggert@twinsun.com>
62868
62869         More patches to assume C89 or better.
62870         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
62871         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
62872         string.h, memchr, STDC_HEADERS.
62873
62874 2003-09-11  Paul Eggert  <eggert@twinsun.com>
62875
62876         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
62877         Include <stdlib.h>, <string.h> unconditionally.
62878         Remove now-unnecessary cast to char *.
62879         * lib/strnlen.c: Include <string.h> unconditionally.
62880         * lib/yesno.c (yesno): Define with a prototype.
62881
62882 2003-09-11  Bruno Haible  <bruno@clisp.org>
62883
62884         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
62885
62886 2003-09-10  Jim Meyering  <jim@meyering.net>
62887
62888         * lib/error.c: Correct indentation of cpp directives.
62889
62890 2003-09-10  Bruno Haible  <bruno@clisp.org>
62891
62892         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
62893         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
62894         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
62895         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
62896         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
62897         <stdlib.h> and <string.h> checks.
62898         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
62899         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
62900
62901 2003-09-10  Bruno Haible  <bruno@clisp.org>
62902
62903         * lib/strcspn.c: Include <string.h> unconditionally.
62904         * lib/strpbrk.c: Include <string.h> unconditionally.
62905         * lib/strstr.c: Include <string.h> unconditionally.
62906         * lib/unicodeio.c: Include <string.h> unconditionally.
62907         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
62908         * lib/unsetenv.c: Likewise.
62909         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
62910         * lib/yesno.c: Include <stdlib.h> unconditionally.
62911         (rpmatch): Add prototype.
62912
62913 2003-09-09  Paul Eggert  <eggert@twinsun.com>
62914
62915         More patches to assume C89 or better.
62916         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
62917         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
62918         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
62919         or for string.h.
62920         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
62921         stdlib.h.
62922         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
62923         C headers.
62924         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
62925         string.h.
62926         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
62927         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
62928         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
62929         or for string.h.
62930         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
62931         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
62932         C headers.
62933         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
62934         memcpy.
62935         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
62936         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
62937         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
62938         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
62939         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
62940         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
62941         string.h, free.
62942         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
62943         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
62944         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
62945         C headers, or for string.h.
62946         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
62947         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
62948         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
62949         headers, memory.h, stdlib.h, string.h, strings.h.
62950         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
62951         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
62952         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
62953         strchr.
62954         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
62955         headers, memory.h, string.h.
62956         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
62957         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
62958         free.
62959         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
62960         headers.
62961         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
62962         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
62963         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
62964         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
62965         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
62966
62967 2003-09-09  Paul Eggert  <eggert@twinsun.com>
62968
62969         More K&R removal.
62970
62971         * lib/acosl.c (main): Use a prototype.
62972         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
62973         tanl.c: Likewise.
62974
62975         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
62976
62977         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
62978         (getopt, etopt_long, getopt_long_only, _getopt_internal)
62979         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
62980         with a prototype.
62981         * lib/getopt.c (const): Remove macro.
62982         Include <string.h> unconditionally.
62983         (my_index): Remove; all uses changed to strchr.
62984         (strlen): Remove decl.
62985         (exchange): Remove forward decl; no longer needed.
62986         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
62987         Define with prototype.
62988         * lib/getopt1.c (const): Remove macro.
62989         (getopt_long, getopt_long_only, main): Define with prototype.
62990
62991         * lib/getugroups.c: Include <string.h> unconditionally.
62992
62993         * lib/getusershell.c: Include <stdlib.h> unconditionally.
62994         (getusershell, setusershell, endusershell, readname, main):
62995         Define with prototypes.
62996
62997         * lib/group-member.c: Include group-member.h first.
62998         Include <stdlib.h> unconditionally.
62999
63000         * lib/hard-locale.c: Include hard-locale.h first.
63001         Include <stdlib.h>, <string.h> unconditionally.
63002
63003         * lib/hash.c (free, malloc): Remove decls.
63004         Include <stdlib.h> unconditionally.
63005
63006         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
63007         (getenv): Do not declare.
63008
63009         * lib/idcache.c: Include <string.h> unconditionally.
63010
63011         * lib/long-options.c: Include long-options.h first, to test interface.
63012         Include <stdlib.h> unconditionally.
63013
63014         * lib/makepath.c: Include makepath.h first, to test interface.
63015         Include <stdlib.h> and <string.h> unconditionally.
63016
63017         * lib/linebuffer.c: Include <stdlib.h>.
63018         (free): Remove decl.
63019
63020         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
63021         stddef.h. rpl_malloc returns void *, not char *.
63022         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
63023         prototype.
63024
63025         * lib/md5.h: Include <limits.h> unconditionally.
63026         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
63027         (__P): Remove; all uses removed.
63028         * lib/md5.c: Include "md5.h" first.
63029         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
63030         md5_buffer, md5_process_bytes, md5_process_block):
63031         Define with prototypes.
63032         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
63033         * lib/sha.c: Include "sha.h" first.
63034         Include <stdlib.h>, <string.h> unconditionally.
63035
63036         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
63037         * lib/memcmp.c (__ptr_t): Likewise.
63038         * lib/memrchr.c (__ptr_t): Likewise.
63039         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
63040         Include <string.h> unconditionally.
63041         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
63042         * lib/memchr.c: Include <stdlib.h> unconditionally.
63043         * lib/memchr.c (LONG_MAX): Remove.
63044         * lib/memrchr.c (LONG_MAX): Likewise.
63045         * lib/memchr.c (__memchr): Define via a prototype.
63046         * lib/memrchr.c (__memrchr): Likewise.
63047         * lib/memcmp.c (__P): Remove, and remove all uses.
63048         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
63049         Remove forward decls; no longer needed.
63050         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
63051         Use types required by C89 in prototype.
63052
63053         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
63054         * lib/savedir.c: Likewise.
63055         * lib/mkdir.c (free): Remove decl.
63056         * lib/rmdir.c (rmdir): Define with a prototype.
63057         * lib/savedir.c: Include savedir.h first, to test interface.
63058
63059         * lib/mktime.c (STDC_HEADERS): Remove.
63060         Include <stdlib.h>, <string.h> unconditionally.
63061
63062         * lib/modechange.c: Include <stdlib.h> unconditionally.
63063         (malloc): Remove decl.
63064
63065         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
63066         (free): Remove decl.
63067
63068         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
63069         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
63070         (This type really should be intptr_t, but that's a C99ism.)
63071         (_obstack_memcpy): Remove: all uses changed to memcpy.
63072         Include <string.h> unconditionally.
63073         (struct obstack): Assume __STDC__ for types of members
63074         chunkfun, freefun, extra_arg.
63075         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
63076         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
63077         obstack_begin, obstack_specify_allocation,
63078         obstack_specify_allocation_with_arg, obstack_chunkfun,
63079         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
63080         Remove unprototyped decls and the macros that use them.
63081         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
63082         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
63083         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
63084         (defined __STDC__ && __STDC__)]:
63085         Remove nonprototyped code.
63086         Include <stdlib.h> unconditionally.
63087         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
63088         _obstack_allocated_p, _obstack_free, obstack_free,
63089         _obstack_memory_used, print_and_abort):
63090         Define using prototypes.
63091         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
63092         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
63093         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
63094         obstack_next_free, obstack_object_size, obstack_room) [0]:
63095         Remove unused, unprototyped code.
63096
63097         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
63098
63099         * lib/physmem.c (physmem_total, physmem_available, main): Define
63100         with prototypes.
63101
63102         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
63103         (main): Define with a prototype.
63104
63105         * lib/posixver.c (getenv): Remove decl.
63106
63107         * lib/putenv.c (malloc): Returns void *, not char *.
63108         Include <string.h> unconditionally.
63109         (strchr, memcpy, NULL): Do not define.
63110
63111         * lib/readtokens.c: Include readtokens.h first, to test interface.
63112         Include <stdlib.h>, <string.h> unconditionally.
63113         (init_tokenbuffer): Define with a prototype.
63114
63115         * lib/regex.c (PARAMS): Remove.  All uses removed.
63116         All uses of _RE_ARGS removed, too.
63117         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
63118         unconditionally.
63119         (bzero): Assume memset exists.
63120         (memcmp, memcpy, NULL): Remove.
63121         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
63122         char, or assignments to local vars of type signed char.
63123         (init_syntax_once, PREFIX(extract_number_and_incr),
63124         PREFIX(print_partial_compiled_pattern),
63125         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
63126         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
63127         PREFIX(regex_grow_registers), PREFIX(regex_compile),
63128         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
63129         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
63130         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
63131         wcs_compile_range, byte_compile_range, truncate_wchar,
63132         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
63133         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
63134         count_mbs_length, wcs_re_match_2_internal,
63135         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
63136         PREFIX(alt_match_null_string_p),
63137         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
63138         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
63139         regfree, PREFIX(extract_number)): Define with prototype.  Remove
63140         now-unnecessary declaration, if any.
63141         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
63142         regcomp, regexec):
63143         Remove now-unnecessary casts among pointer types.
63144         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
63145
63146         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
63147         (free): Remove decl.
63148
63149         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
63150
63151         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
63152         (free): Remove decl.
63153
63154         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
63155         * lib/xgetcwd.c: Likewise.
63156
63157         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
63158         (free): Remove decl.
63159
63160         * lib/strchrnul.c (strchrnul): Define with a prototype.
63161         Fix bug: c_in was not converted to char before searching.
63162
63163         The following changes are not K&R related:
63164
63165         * lib/group-member.h: Include <sys/types.h>, so that this file is
63166         self-contained.
63167         * lib/makepath.h: Likewise.
63168
63169         * lib/getusershell.c (readname, default_index, line_size, readname):
63170         Use size_t, not int, for sizes.
63171         (readname): If the size overflows, report an error instead of
63172         looping forever.
63173
63174 2003-09-09  Paul Eggert  <eggert@twinsun.com>
63175
63176         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
63177         libc.
63178
63179 2003-09-09  Paul Eggert  <eggert@twinsun.com>
63180
63181         * README: New section: portability guidelines.
63182
63183 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
63184
63185         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
63186         C89 spec.
63187
63188 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
63189
63190         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
63191
63192 2003-09-08  Paul Eggert  <eggert@twinsun.com>
63193
63194         Assume C89 or better; remove K&R cruft.
63195         A few of these changes were first proposed by Derek Robert Price
63196         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
63197
63198         * lib/addext.c: Include <string.h> unconditionally.
63199         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
63200         Don't declare getenv or malloc.
63201
63202         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
63203         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
63204         (NULL): Remove.
63205         (find_stack_direction, alloca): Use prototypes.
63206
63207         * lib/atexit.c (atexit): Define using a prototype.
63208
63209         * lib/basename.c, dirname.c, stripslash.c:
63210         Include <string.h> unconditionally.
63211
63212         * lib/bcopy.c: Include <stddef.h>.
63213         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
63214
63215         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
63216
63217         * lib/error.h (error, error_at_line, error_print_progname)
63218         [! (defined (__STDC__) && __STDC__)]: Remove decls.
63219         * lib/error.c: Include error.h first, to check interface.
63220         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
63221         (VA_START): Remove; all uses changeed to va_start.
63222         (exit, strerror): Remove decls.
63223         (error_print_progname): Prototype uncondionally.
63224         Don't include <errno.h>; no longer needed.
63225         (private_strerror): Remove.
63226         (error_tail): Always define.
63227         (error, error_at_line): Assume C89 or better; always use prototypes.
63228         * lib/fatal.c: Include "fatal.h" first, to test interface.
63229         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
63230         (VA_START): Remove; all uses changed to va_start.
63231         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
63232         this case.
63233         (exit): Remove decl.
63234         (fatal): Prototype unconditionally.  Assume va_start works.
63235         Abort at end, to pacify gcc.
63236
63237         * lib/euidaccess.c (main): Define with a prototype.
63238
63239         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
63240
63241         * lib/exitfail.c: Include <stdlib.h> unconditionally.
63242
63243         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
63244         prototypes.
63245         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
63246         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
63247         (getenv): Remove decl.
63248         (fnmatch): Define using a prototype.
63249         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
63250         (FCT): Define using a prototype.
63251
63252         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
63253
63254         * lib/gethostname.c: Include <stddef.h>.
63255         (gethostname): Define with prototype.  Length is size_t, not int.
63256
63257 2003-09-08  Paul Eggert  <eggert@twinsun.com>
63258
63259         Assume C89 or better; remove K&R cruft.
63260         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
63261         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
63262         string.h, getenv, malloc.
63263         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
63264         headers.
63265         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
63266         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
63267         do not check for strerror.
63268         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
63269         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
63270         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
63271         do not check for doprnt or vprintf.
63272         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
63273         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
63274
63275 2003-09-08  Paul Eggert  <eggert@twinsun.com>
63276
63277         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
63278         getversion.c should have been removed then, but was accidentally
63279         preserved.
63280
63281         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
63282         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
63283
63284 2003-09-08  Karl Berry  <karl@gnu.org>
63285
63286         * config/config.sub, config.guess, srclistvars.sh: update from savannah
63287                 config, forget about prep.
63288
63289         * config/depcomp, missing: update from automake.
63290
63291 2003-09-07  Paul Eggert  <eggert@twinsun.com>
63292
63293         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
63294         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
63295
63296 2003-09-07  Paul Eggert  <eggert@twinsun.com>
63297
63298         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
63299         copy_tm_result.  Bug reported by Simon Josefsson in
63300         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
63301
63302 2003-09-06  Paul Eggert  <eggert@twinsun.com>
63303
63304         * m4/time_r.m4: New file.
63305         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
63306         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
63307         is. Check for timegm declaration.
63308         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
63309         Do not check for gmtime_r.
63310         Replace mktime if __mktime_internal does not exist and if mktime
63311         hasn't been replaced already.
63312
63313 2003-09-06  Paul Eggert  <eggert@twinsun.com>
63314
63315         * lib/time_r.c, lib/time_r.h: New files.
63316
63317         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
63318         __localtime_r.
63319         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
63320         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
63321
63322         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
63323         __gmtime_r.
63324         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
63325         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
63326         Include <time_r.h>.
63327
63328         * lib/timegm.c: Switch to glibc implementation, with the following
63329         changes:
63330         [defined HAVE_CONFIG_H]: Include <config.h>.
63331         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
63332         (__mktime_internal) [!defined _LIBC]: New decl.
63333         (__gmtime_r) [!defined _LIBC]: New macro and function.
63334         (timegm): Use a prototype, since gnulib assumes C89.
63335         Do not bother declaring tmp to be const, as it's not really usefu.
63336         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
63337         (timegm): Declare only if HAVE_DECL_TIMEGM.
63338
63339 2003-09-06  Paul Eggert  <eggert@twinsun.com>
63340
63341         * MODULES.html.sh (func_all_modules): Add time_r.
63342         * modules/time_r: New file.
63343         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
63344         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
63345
63346 2003-09-03  Paul Eggert  <eggert@twinsun.com>
63347
63348         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
63349         Bug reported by Lute Kamstra in
63350         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
63351
63352         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
63353         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
63354         course with correspondingly smaller numbers for tomorrow and
63355         yesterday.  From Tadayoshi Funaba.  Originally installed into
63356         sh-utils on 1999-08-07, but the patch got lost (I guess during the
63357         coreutils merge?).
63358
63359 2003-08-31  Simon Josefsson  <jas@extundo.com>
63360
63361         * modules/timegm: New file.
63362         * MODULES.html.sh (func_all_modules): Add timegm.
63363
63364 2003-08-31  Simon Josefsson  <jas@extundo.com>
63365
63366         * m4/timegm.m4: New file.
63367
63368 2003-08-31  Simon Josefsson  <jas@extundo.com>
63369
63370         * lib/timegm.h: New file.
63371         * lib/timegm.c: New file.  Based on
63372         wget-1.8.2/src/http.c:mktime_from_utc.
63373
63374 2003-08-31  Karl Berry  <karl@gnu.org>
63375
63376         * lib/argp.h: update from libc.
63377
63378 2003-08-28  Bruno Haible  <bruno@clisp.org>
63379
63380         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
63381         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
63382         followed by '#define fnmatch fnmatch_posix' gives an error.
63383
63384 2003-08-28  Bruno Haible  <bruno@clisp.org>
63385
63386         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
63387         warning on QNX, which defines O_BINARY to 000000.
63388
63389 2003-08-27  Jim Meyering  <jim@meyering.net>
63390
63391         * m4/mkstemp.m4: Require that the system mkstemp be able to create
63392         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
63393         would fail after 32.  Reported by Danny Levinson.  Details here:
63394         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
63395
63396 2003-08-24  Bruno Haible  <bruno@clisp.org>
63397
63398         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
63399         MSVC7 <stdio.h> is included later.
63400
63401 2003-08-22  Simon Josefsson  <jas@extundo.com>
63402
63403         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
63404
63405 2003-08-20  Karl Berry  <karl@gnu.org>
63406
63407         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
63408
63409 2003-08-20  Bruno Haible  <bruno@clisp.org>
63410
63411         * modules/progname: New file.
63412         * MODULES.html.sh (func_all_modules): Add progname.
63413
63414 2003-08-20  Bruno Haible  <bruno@clisp.org>
63415
63416         * lib/progname.h: New file, from GNU gettext.
63417         * lib/progname.c: New file, from GNU gettext.
63418         * lib/progreloc.c: New file, from GNU gettext.
63419
63420 2003-08-19  Jim Meyering  <jim@meyering.net>
63421
63422         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
63423         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
63424
63425 2003-08-19  Bruno Haible  <bruno@clisp.org>
63426
63427         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
63428         more.
63429
63430 2003-08-19  Bruno Haible  <bruno@clisp.org>
63431
63432         * lib/xstrdup.c: Assume <string.h> exists.
63433
63434 2003-08-18  Paul Eggert  <eggert@twinsun.com>
63435
63436         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
63437         in makefile rules.
63438
63439 2003-08-18  Jim Meyering  <jim@meyering.net>
63440
63441         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
63442         * m4/lib-ld.m4: Likewise.
63443
63444 2003-08-18  Jim Meyering  <jim@meyering.net>
63445
63446         * lib/setenv.h: Indent nested cpp directive.
63447         * lib/vasnprintf.c: Remove trailing blanks.
63448
63449 2003-08-17  Simon Josefsson  <jas@extundo.com>
63450
63451         * modules/xstrndup: New file.
63452         * MODULES.html.sh (func_all_modules): Add xstrndup.
63453
63454 2003-08-17  Simon Josefsson  <jas@extundo.com>
63455
63456         * modules/argp: Fix autoconf macro name. Add more dependencies.
63457
63458 2003-08-17  Simon Josefsson  <jas@extundo.com>
63459
63460         * m4/xstrndup.m4: New file.
63461
63462 2003-08-17  Simon Josefsson  <jas@extundo.com>
63463
63464         * m4/argp.m4: New file.
63465
63466 2003-08-17  Simon Josefsson  <jas@extundo.com>
63467             Bruno Haible  <bruno@clisp.org>
63468
63469         * lib/xstrndup.h: New file.
63470         * lib/xstrndup.c: New file.
63471
63472 2003-08-17  Bruno Haible  <bruno@clisp.org>
63473
63474         * modules/strndup (Files, Include): Add lib/strndup.h.
63475
63476 2003-08-17  Bruno Haible  <bruno@clisp.org>
63477
63478         * modules/euidaccess (Files): Add lib/euidaccess.h.
63479
63480 2003-08-17  Bruno Haible  <bruno@clisp.org>
63481
63482         * lib/strndup.h: New file.
63483
63484 2003-08-17  Bruno Haible  <bruno@clisp.org>
63485
63486         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
63487         like AC_GNU_SOURCE.
63488         * modules/extensions (configure.ac): Comment out the invocation of
63489         gl_USE_SYSTEM_EXTENSIONS.
63490
63491 2003-08-16  Paul Eggert  <eggert@twinsun.com>
63492
63493         Merges from coreutils, etc.
63494         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
63495         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
63496         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
63497         fixing a typo.
63498         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
63499         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
63500
63501 2003-08-16  Paul Eggert  <eggert@twinsun.com>
63502
63503         Document merge from coreutils.
63504         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
63505         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
63506         * modules/utime: Add m4/utimes-null.m4.
63507
63508 2003-08-16  Paul Eggert  <eggert@twinsun.com>
63509
63510         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
63511         space, undoing this 2003-08-12 change:
63512         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
63513
63514 2003-08-16  Paul Eggert  <eggert@twinsun.com>
63515
63516         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
63517         strtoul.c from libc, undoing this 2003-08-12 change:
63518         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
63519
63520 2003-08-16  Jim Meyering  <jim@meyering.net>
63521
63522         Merges from coreutils.
63523         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
63524         prefix.  Adjust cache variables similarly.  Create 500 rather than
63525         just 300 files, to exercise bug on Darwin6.5, too.
63526         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
63527         $missing_dir.
63528         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
63529         AM_SYS_POSIX_TERMIOS.
63530         Reported by mkc@mathdogs.com.
63531         Also change use of $am_cv_sys_posix_termios
63532         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
63533         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
63534         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
63535         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
63536         in /proc/mounts until it finds one with matching device number.  This
63537         is unnecessary when the FILE argument *is* a mount point.  No stat call
63538         is necessary in that case.  So, disable the statvfs-testing code on
63539         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
63540         as RedHat bug# 84846.
63541         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
63542         to 1MB, so as not to render systems with no stack size limit (e.g.,
63543         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
63544         Include <unistd.h>.  On some systems,
63545         it is required for the definition of _SC_PAGESIZE.
63546
63547 2003-08-16  Jim Meyering  <jim@meyering.net>
63548
63549         Merge from coreutils.
63550         * lib/xstrtoimax.c: #else #if -> #elif.
63551         * lib/xstrtoumax.c: Likewise.
63552
63553 2003-08-16  Jim Meyering  <jim@meyering.net>
63554
63555         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
63556         * m4/utimes.m4: Removed.
63557         * m4/utimes-null.m4: Renamed from utimes.m4.
63558
63559         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
63560         to 1MB, so as not to render systems with no stack size limit (e.g.,
63561         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
63562         Include <unistd.h>.  On some systems,
63563         it is required for the definition of _SC_PAGESIZE.
63564
63565 2003-08-16  Jim Meyering  <jim@meyering.net>
63566         and Paul Eggert  <eggert@cs.ucla.edu>
63567
63568         Merges from coreutils, etc.
63569
63570         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
63571         using the latest version from cvs.  This avoids problems with #line
63572         directives using a vendor (Sun) compiler.
63573         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
63574         Don't set GETGROUPS_LIB here; now it's
63575         done via getgroups.m4's wrapper function.
63576         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
63577         rather than just in sh-util/configure.in, so that the
63578         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
63579         same.
63580         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
63581         AC_FUNC_GETLOADAVG where to find getloadavg.c.
63582         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
63583         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
63584         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
63585         Remove code that is now done by the newly-required macros.
63586         Append $(EXEEXT) to DF_PROG.
63587         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
63588         Do not invoke or require the following here,
63589         since prereq.m4 or some gnulib .m4 now does this for us:
63590         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
63591         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
63592         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
63593         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
63594         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
63595         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
63596         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
63597         AC_FUNC_OBSTACK.
63598         Do not replace the following functions, as this is now the job
63599         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
63600         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
63601         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
63602         atexit getpass, strdup, getpagesize.
63603         Replace 'raise'.
63604         Do not check for the following functions, as this is now the job
63605         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
63606         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
63607         setregid.
63608         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
63609         Check for sys/sysctl.h.
63610         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
63611         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
63612         of checking for ssize_t ourselves.
63613
63614         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
63615         Require every macro that gnulib/modules/* suggests for us.
63616         (jm_PREREQ_ADDEXT): New macro.
63617         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
63618         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
63619
63620         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
63621         (gl_PHYSMEM): Use it.
63622         Also check for `table' function.
63623         Check for new headers and functions.
63624         Add check for sys/sysmp.h.
63625         With suggestions from Kaveh Ghazi.
63626         Ignore headers that are present but cannot be compiled.  This
63627         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
63628         C 5.4.
63629
63630 2003-08-15  Paul Eggert  <eggert@twinsun.com>
63631
63632         Document merge from coreutils.
63633         * modules/userspec: Depend on posixver.
63634         * modules/strftime: Depend on tzset.
63635
63636 2003-08-15  Paul Eggert  <eggert@twinsun.com>
63637
63638         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
63639         rather than tab, after '#' in shell-script copyright notices.
63640         Suggested by Bruno Haible.
63641
63642 2003-08-15  Paul Eggert  <eggert@twinsun.com>
63643
63644         * config/srclist-update: Use three spaces, rather than tab, after '#'
63645         in shell-script copyright notices.  Suggested by Bruno Haible.
63646         Remove unnecessary parenthesization in regular expression.
63647
63648 2003-08-15  Jim Meyering  <jim@meyering.net>
63649
63650         Merge from coreutils.
63651         * lib/xgethostname.c: Include <stdlib.h>.
63652         (xghostname): Don't exit for anything other than memory-related
63653         failure; just return NULL.
63654         * lib/userspec.c: Include "posixver.h".
63655         (parse_user_spec): Accept `.' as a separator only
63656         in pre-POSIX-200112 mode.
63657         * lib/strtoimax.c: Use #elif rather than #else #if.
63658         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
63659         Remove function, now that we can rely on a working tzset function.
63660         [!_LIBC]: Ensure that the required autoconf test has been run.
63661         [!defined _NL_CURRENT && HAVE_STRFTIME]:
63662         Use underlying_strftime for %r.
63663         * lib/sha.c: Merge in some clean-up and optimization changes from
63664         glibc.
63665         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
63666         Ensure that it is a multiple of 64.
63667         Rearrange loop exit tests so as to avoid performing an
63668         additional fread after encountering an error or EOF.
63669         * lib/realloc.c: Update copyright date.
63670
63671 2003-08-15  Jim Meyering  <jim@meyering.net>
63672         and Paul Eggert  <eggert@twinsun.com>
63673
63674         Merge from coreutils.
63675         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
63676         member but strut utmpx does not.  Needed for AIX 4.3.3.
63677         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
63678
63679 2003-08-15  Jim Meyering  <jim@meyering.net>
63680         and Paul Eggert  <eggert@cs.ucla.edu>
63681
63682         Merges from coreutils, etc.
63683         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
63684         Require gl_FUNC_TZSET_CLOBBER.
63685         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
63686         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
63687         members.
63688
63689 2003-08-14  Paul Eggert  <eggert@twinsun.com>
63690
63691         Help the merge from coreutils.
63692         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
63693         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
63694         * m4/tzset.m4: Use it too.
63695
63696 2003-08-14  Paul Eggert  <eggert@twinsun.com>
63697
63698         * modules/tzset: New file.
63699
63700 2003-08-14  Jim Meyering  <jim@meyering.net>
63701
63702         Merges from coreutils.
63703         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
63704         variable names, rather than @FNMATCH_H@.
63705         * modules/alloca: Likewise for $(ALLOCA_H).
63706
63707         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
63708         the three copies of the literal target, `fnmatch.h'.
63709         * modules/alloca (alloca.h): Likewise.
63710
63711 2003-08-14  Jim Meyering  <jim@meyering.net>
63712
63713         Merge from coreutils.
63714         * m4/tzset.m4: New file.
63715         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
63716         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
63717         otherwise, AIX 5.1 systems would end up using the latter.
63718         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
63719         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
63720         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
63721         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
63722
63723 2003-08-14  Jim Meyering  <jim@meyering.net>
63724
63725         Merge from coreutils.
63726         * lib/obstack.h: Whitespace changes.
63727         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
63728         and xcalloc return values.
63729         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
63730         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
63731         hang on OSF/1 5.1 for DIR on both local and remote file systems.
63732         Reported by (and fix confirmed by) Nelson H. F. Beebe.
63733         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
63734         error from mntctl.
63735         Use mntctl's return value to drive the entry-processing loop, since
63736         we can't rely on the value of the vmt_length member in the last
63737         entry.  On some systems doing so could result in exhausting
63738         virtual memory.  Based in part on a patch from Mike Jetzer.
63739
63740 2003-08-14  Jim Meyering  <jim@meyering.net>
63741         and Paul Eggert  <eggert@twinsun.com>
63742
63743         Merges from coreutils, plus other fixes.
63744         * lib/physmem.c: Merge in portability changes from gcc/libiberty
63745         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
63746         for credits and details.  Thanks to Kaveh Ghazi for helping
63747         to keep these files in sync.
63748         (ARRAY_SIZE): Define it.
63749         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
63750         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
63751         (memcasecmp): Don't assume size_t fits in unsigned int.
63752         Remove casts and duplicate code.
63753         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
63754         (memcpy): Remove definition.
63755         Merge in some clean-up and optimization changes from glibc.
63756         [BLOCKSIZE]: Move definition to top of file.
63757         Ensure that it is a multiple of 64.
63758         Rearrange loop exit tests so as to avoid performing an
63759         additional fread after encountering an error or EOF.
63760         * lib/md5.h (md5_uintptr): Define.
63761         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
63762         return to the initial working directory.  Preserve errno
63763         for caller.
63764         * lib/idcache.c: Include "xalloc.h".
63765         (xmalloc, xrealloc): Remove decls.
63766         (getuser): Remove casts no longer required in C89.
63767         * lib/human.c: Include stdio.h, for sprintf.
63768         * lib/group-member.c: Include "xalloc.h".
63769         (xmalloc, xrealloc): Remove decls.
63770         (get_group_info): Remove casts no longer required in C89.
63771         * lib/getusershell.c (readname): Remove casts no longer required in
63772         C89.
63773         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
63774         * lib/getline.c: Whitespace fix, from coreutils.
63775
63776 2003-08-13  Paul Eggert  <eggert@twinsun.com>
63777
63778         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
63779         Check for isascii.
63780
63781         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
63782         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
63783         Undo previous (whitespace-only) change.
63784
63785 2003-08-13  Paul Eggert  <eggert@twinsun.com>
63786
63787         * lib/exclude.c: Include <ctype.h>
63788         (IN_CTYPE_DOMAIN): New macro.
63789         (is_space): New fn.
63790         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
63791         and empty lines.
63792
63793         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
63794         Undo previous (whitespace-only) change.
63795
63796 2003-08-13  Paul Eggert  <eggert@twinsun.com>
63797
63798         * config/srclist-update: Change update back to the old behavior,
63799         leaving whitespace alone.  Use one 'sed' command rather than a
63800         pipeline.
63801         (fixlicense): Now a variable, not a function.
63802         (remove_trailing_blanks): Remove.
63803         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
63804         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
63805         Undo previous (whitespace-only) change.
63806
63807 2003-08-12  Paul Eggert  <eggert@twinsun.com>
63808
63809         Merge from coreutils.
63810         * modules/euidaccess: Add lib_SOURCES, include for new
63811         file euidaccess.h
63812
63813 2003-08-12  Paul Eggert  <eggert@twinsun.com>
63814
63815         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
63816         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
63817         Normalize leading white space and remove trailing white space.
63818
63819         Merge from coreutils
63820         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
63821
63822         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
63823         0.12.1.  These files are now being upgraded automatically by
63824         ../config/srclist-update.
63825
63826 2003-08-12  Paul Eggert  <eggert@twinsun.com>
63827
63828         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
63829         Normalize leading white space and remove trailing white space.
63830         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
63831         notice, as per ../config/srclist-update.
63832
63833         Merge from coreutils.
63834         * lib/euidaccess.h: New file.
63835         * lib/euidaccess.c: Include it.
63836         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
63837         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
63838         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
63839
63840 2003-08-12  Paul Eggert  <eggert@twinsun.com>
63841
63842         * config/srclist-update: Add copyright notice.
63843         (remove_id_lines, remove_trailing_blanks): New constants.
63844         (fixfile): Use them to normalize spacing a bit in copied files.
63845         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
63846         Normalize leading white space and remove trailing white space.
63847
63848         * config/texinfo.tex: Sync with texinfo.
63849
63850         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
63851         strtoul.c from libc, to merge coreutils whitespace changes.
63852
63853         * config/srclist.txt: Get the following m4 files from gettext:
63854         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
63855         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
63856         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
63857         wint_t.m4.
63858
63859 2003-08-12  Karl Berry  <karl@gnu.org>
63860
63861         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
63862         been made.
63863
63864 2003-08-11  Paul Eggert  <eggert@twinsun.com>
63865
63866         * modules/gnu-source, m4/gnu-source.m4:
63867         Remove; we're assuming Autoconf 2.54 or later now.
63868         Suggested by Bruno Haible.
63869         * MODULES.html.sh (func_all_modules): Remove gnu-source.
63870
63871 2003-08-11  Bruno Haible  <bruno@clisp.org>
63872
63873         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
63874
63875 2003-08-11  Bruno Haible  <bruno@clisp.org>
63876
63877         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
63878         (vasnprintf): Use it instead of wcslen.
63879
63880 2003-08-11  Bruno Haible  <bruno@clisp.org>
63881
63882         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
63883         value to ensure that _Bool promotes to int. Use #define for _Bool when
63884         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
63885
63886 2003-08-10  Karl Berry  <karl@gnu.org>
63887
63888         * lib/regex.h: update from libc (whitespace fix).
63889
63890 2003-08-09  Paul Eggert  <eggert@twinsun.com>
63891
63892         Merge some files from coreutils.  These changes were
63893         originally made by Jim Meyering.
63894         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
63895         many older Unixes require this.
63896         * lib/alloca.c (alloca): Remove cast to argument of free;
63897         no longer needed in C89.
63898         * lib/alloca_.h, regex.h: Fix white space to match
63899         what GNU indent does.
63900
63901 2003-08-09  Paul Eggert  <eggert@twinsun.com>
63902
63903         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
63904         apparently Emacs's Unicode mode got confused before my 2003-08-05
63905         checkin.
63906
63907 2003-08-08  Paul Eggert  <eggert@twinsun.com>
63908
63909         * m4/extensions.m4: New file.
63910         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
63911         Require gl_USE_SYSTEM_EXTENSIONS.
63912         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
63913         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
63914
63915 2003-08-08  Paul Eggert  <eggert@twinsun.com>
63916
63917         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
63918         * modules/extensions, modules/gnu-source: New files.
63919         * modules/timespec, modules/unlocked-io: Depend on extensions.
63920
63921 2003-08-07  Paul Eggert  <eggert@twinsun.com>
63922
63923         * modules/restrict: New file.
63924         * MODULES.html.sh (func_all_modules): Add restrict.
63925         * modules/regex: Depend on restrict.
63926
63927 2003-08-07  Paul Eggert  <eggert@twinsun.com>
63928
63929         * m4/restrict.m4: New file.
63930         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
63931
63932 2003-08-07  Bruno Haible  <bruno@clisp.org>
63933
63934         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
63935         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
63936
63937 2003-08-07  Bruno Haible  <bruno@clisp.org>
63938
63939         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
63940         makes the module 'getndelim2' compatible with the module 'getline'.
63941
63942 2003-08-05  Paul Eggert  <eggert@twinsun.com>
63943
63944         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
63945         byte with "\201" to avoid glitches when editing that source file
63946         with multi-gnome-terminal.
63947
63948 2003-08-05  Paul Eggert  <eggert@twinsun.com>
63949
63950         * lib/bumpalloc.h: Remove.
63951
63952 2003-08-05  Paul Eggert  <eggert@twinsun.com>
63953
63954         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
63955         * modules/bumpalloc: Remove.
63956
63957 2003-08-04  Paul Eggert  <eggert@twinsun.com>
63958
63959         * lib/getloadavg.c: Change copyright notice and spacing to conform to
63960         GNU coding style.
63961
63962         Merge from coreutils.
63963         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
63964         1. From glibc.
63965         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
63966         from Karl Berry, implemented by Jim Meyering.
63967         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
63968         from Dmitry V. Levin.
63969         Remove anachronistic cast of xrealloc.
63970         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
63971         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
63972         type. Otherwise, it wouldn't compile with at least /bin/cc on
63973         ymp-cray-unicos9.0.2.X.
63974         Combine two mostly-identical uses of alloca into one.
63975         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
63976
63977 2003-08-04  Dave Love  <d.love@dl.ac.uk>
63978
63979         [From Emacs.]
63980
63981         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
63982         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
63983         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
63984         obsolete NLIST_NAME_UNION.
63985         [__GNU__]: Undef BSD and FSCALE.
63986         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
63987
63988 2003-08-03  Paul Eggert  <eggert@twinsun.com>
63989
63990         * lib/stdbool_.h (_Bool): Make it signed char, instead of
63991         an enum type, so that it's guaranteed to promote to int.  See:
63992         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
63993
63994 2003-08-03  Karl Berry  <karl@gnu.org>
63995
63996         * config/depcomp: update from automake.
63997
63998 2003-07-31  Paul Eggert  <eggert@twinsun.com>
63999
64000         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
64001         (strerror): Don't assume that a printable int fits in 14 bytes.
64002
64003 2003-07-31  Bruno Haible  <bruno@clisp.org>
64004
64005         * modules/getpass-gnu: New file.
64006         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
64007
64008 2003-07-31  Bruno Haible  <bruno@clisp.org>
64009
64010         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
64011
64012 2003-07-24  Karl Berry  <karl@gnu.org>
64013
64014         * config/missing: update from automake.
64015
64016 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
64017             Bruno Haible  <bruno@clisp.org>
64018
64019         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
64020         * lib/getline.c (getline, getdelim): Likewise.
64021         Remove _GNU_SOURCE define; now it's defined in config.h through
64022         m4/getline.m4.
64023
64024 2003-07-23  Karl Berry  <karl@gnu.org>
64025
64026         * config/config.sub: update from prep.
64027
64028 2003-07-22  Paul Eggert  <eggert@twinsun.com>
64029
64030         * modules/xalloc (Depends-on): Add exitfail.
64031         * modules/xmemcoll: Likewise.
64032
64033 2003-07-22  Paul Eggert  <eggert@twinsun.com>
64034
64035         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
64036         over-parenthesization in macros.
64037
64038         Sync with coreutils.
64039
64040         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
64041         required by C99.
64042
64043         Use `exit_failure' for xalloc and xmemcoll instead of their own
64044         private exit-failure variables.
64045         * lib/xalloc.h (xalloc_exit_failure): Remove.
64046         * lib/xmalloc.c: Likewise.  Include exitfail.h.
64047         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
64048         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
64049         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
64050         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
64051
64052 2003-07-20  Jim Meyering  <jim@meyering.net>
64053
64054         * modules/closeout (Depends-on): Add exitfail.
64055         Suggestion from Bruno Haible.
64056
64057 2003-07-19  Karl Berry  <karl@gnu.org>
64058
64059         * config/config.sub: update from prep.
64060
64061 2003-07-18  Paul Eggert  <eggert@twinsun.com>
64062
64063         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
64064         Remove.
64065         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
64066         to test that it can stand by itself.  Include "exitfail.h".
64067         Clients should set exit_failure instead.
64068         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
64069
64070 2003-07-18  Bruno Haible  <bruno@clisp.org>
64071
64072         * modules/getndelim2: New file.
64073         * modules/getline: Share files with module getndelim2.
64074         * modules/getnline: Depend on getndelim2 instead of sharing files with
64075         it. Add getnline.c to lib_SOURCES.
64076         * MODULES.html.sh (func_all_modules): Add getndelim2.
64077
64078 2003-07-18  Bruno Haible  <bruno@clisp.org>
64079
64080         * m4/getndelim2.m4: New file.
64081         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
64082         invoke gl_PREREQ_GETNDELIM2.
64083         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
64084         gl_PREREQ_GETNDELIM2.
64085         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
64086         gl_GETNDELIM2.
64087
64088 2003-07-18  Bruno Haible  <bruno@clisp.org>
64089
64090         * lib/getndelim2.h: New file.
64091         * lib/getndelim2.c: Make into a module of its own. Include config.h,
64092         getndelim2.h.
64093         (getndelim2): Make non-static. Change return type to ssize_t.
64094         * lib/getline.h: Change argument names.
64095         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
64096         * lib/getnline.c: Include getndelim2.h.
64097
64098 2003-07-18  Andreas Schwab  <schwab@suse.de>
64099
64100         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
64101
64102 2003-07-17  Karl Berry  <karl@gnu.org>
64103
64104         * config/config.sub: update from prep.
64105
64106 2003-07-17  Bruno Haible  <bruno@clisp.org>
64107
64108         * modules/getnline: New file.
64109         * modules/getline: Add lib/getndelim2.c to source file list.
64110         * MODULES.html.sh (func_all_modules): Add getnline.
64111
64112 2003-07-17  Bruno Haible  <bruno@clisp.org>
64113
64114         * m4/getnline.m4: New file.
64115
64116 2003-07-17  Bruno Haible  <bruno@clisp.org>
64117
64118         * m4/Makefile.am.in: Remove file.
64119         * m4/Makefile.am: Remove file.
64120         * m4/Makefile.in: Remove file.
64121
64122 2003-07-17  Bruno Haible  <bruno@clisp.org>
64123
64124         * lib/getnline.h: New file.
64125         * lib/getnline.c: New file.
64126         * lib/getndelim2.c: New file, extracted from getline.c.
64127         (getndelim2): Renamed from getdelim2, with added nmax argument.
64128         * lib/getline.c: Include getndelim2.c.
64129         (getdelim2): Moved out to getndelim2.c.
64130         (getline, getdelim): Update.
64131
64132 2003-07-17  Bruno Haible  <bruno@clisp.org>
64133
64134         * lib/Makefile.am: Remove file.
64135         * lib/Makefile.in: Remove file.
64136
64137 2003-07-17  Bruno Haible  <bruno@clisp.org>
64138
64139         * configure.in: Remove file.
64140         * Makefile.in: Remove file.
64141
64142 2003-07-17  Bruno Haible  <bruno@clisp.org>
64143
64144         * MODULES.html.sh: Put the </BODY> right before </HTML>.
64145
64146 2003-07-16  Karl Berry  <karl@gnu.org>
64147
64148         * config/srclist-update: was running fixlicense twice, which caused
64149                 texinfo.tex to be nullified for some reason.  Simplify,
64150                 $gplsrc is no longer needed as far as I can see?
64151
64152 2003-07-16  Jim Meyering  <jim@meyering.net>
64153
64154         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
64155
64156 2003-07-15  Paul Eggert  <eggert@twinsun.com>
64157
64158         * config/srclist.txt: Get the following files from gettext-runtime/intl
64159         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
64160         ref-del.sin.  From Bruno Haible.
64161         * config/srclist-update (fixfile): Change grep pattern again, since the
64162         previous fix didn't work (there was another trailing $).  Use
64163         '[$]' to escape the $s.
64164
64165 2003-07-15  Karl Berry  <karl@gnu.org>
64166
64167         * lib/vasnprintf.c: update from gettext.
64168
64169 2003-07-15  Karl Berry  <karl@gnu.org>
64170
64171         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
64172         gets expanded when surrounded by '$'.
64173
64174 2003-07-15  Jim Meyering  <jim@meyering.net>
64175
64176         * modules/save-cwd: Don't depend on error.  From Derek Price.
64177
64178 2003-07-15  Jim Meyering  <jim@meyering.net>
64179
64180         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
64181
64182 2003-07-14  Simon Josefsson  <jas@extundo.com>
64183
64184         * modules/mempcpy: New file.
64185         * MODULES.html.sh (func_all_modules): Add mempcpy.
64186
64187 2003-07-14  Simon Josefsson  <jas@extundo.com>
64188
64189         * m4/mempcpy.m4: New file.
64190
64191 2003-07-14  Simon Josefsson  <jas@extundo.com>
64192
64193         * lib/mempcpy.h: New file.
64194         * lib/mempcpy.c: New file.
64195
64196 2003-07-14  Paul Eggert  <eggert@twinsun.com>
64197
64198         * modules/getdate, modules/posixtm: Depend on mktime.
64199
64200 2003-07-14  Paul Eggert  <eggert@twinsun.com>
64201
64202         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
64203         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
64204         unicodeio.c, unicodeio.h, unlocked-io.h:
64205         Switch from LGPL to GPL.
64206
64207 2003-07-14  Paul Eggert  <eggert@twinsun.com>
64208
64209         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
64210         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
64211         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
64212         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
64213         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
64214         updated automatically by ../config/srclist-update.  This changes
64215         their license from LPGL to GPL.
64216
64217 2003-07-14  Paul Eggert  <eggert@twinsun.com>
64218
64219         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
64220         assumed to refer to the root of the most recent stable gettext version.
64221         * config/srclistvars.sh: Add defaults for eggert.
64222         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
64223         Match "This program" as well as "The program".  This is needed
64224         for gettext.
64225
64226 2003-07-14  Jim Meyering  <jim@meyering.net>
64227
64228         Don't emit diagnostics.  Let callers do that.
64229         * lib/save-cwd.c: Don't include "error.h".
64230         (save_cwd): Don't call error.  Ensure that errno is valid
64231         when returning nonzero.
64232
64233         * lib/save-cwd.h (restore_cwd): Update prototype.
64234         * lib/save-cwd.c (restore_cwd): Remove two parameters.
64235         Simplify.  Don't call error upon failure.  Let callers do that.
64236         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
64237         when auditing is enabled.  But don't bother updating the #if.
64238
64239 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
64240
64241         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
64242         it breaks C++ compilation.
64243         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
64244
64245 2003-07-10  Simon Josefsson  <jas@extundo.com>
64246
64247         * modules/strchrnul (Makefile.am): Add strchrnul.h.
64248
64249 2003-07-10  Jim Meyering  <jim@meyering.net>
64250
64251         * m4/clock_time.m4: Remove trailing blank.
64252         * m4/intmax_t.m4: Likewise.
64253
64254 2003-07-10  Jim Meyering  <jim@meyering.net>
64255
64256         * lib/vasnprintf.c: Remove trailing blanks.
64257         Make cpp indentation consistent.
64258
64259 2003-07-09  Paul Eggert  <eggert@twinsun.com>
64260
64261         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
64262         posixver.c, strftime.c, strnlen.c, strverscmp.c:
64263         Switch from LGPL to GPL.
64264
64265 2003-07-09  Paul Eggert  <eggert@twinsun.com>
64266
64267         * config/srclist.txt: Sort sublists.  Add
64268         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
64269         that differ from gnulib for one reason or another; we'd like this list
64270         to be smaller but for now let's document what we have.
64271
64272 2003-07-08  Paul Eggert  <eggert@twinsun.com>
64273
64274         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
64275         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
64276         and sweeter "eval x=$x".
64277         * config/srclist.txt: Get lib/argp* from glibc.
64278
64279 2003-07-07  Paul Eggert  <eggert@twinsun.com>
64280
64281         * lib/mktime.c: Fix some boundary cases and remove need for floating
64282         point.
64283
64284         Issue a compile-time diagnostic if time_t is floating point, or if
64285         two's complement arithmetic is not in effect, or if arithmetic
64286         right shift does not propagate the sign.  These assumptions were
64287         all in the original code but they weren't checked.
64288
64289         (TIME_T_MIDPOINT, verify): New macros.
64290         (__isleap): Remove; it has integer overflow problems.
64291         (leapyear): New function, without those problems.
64292         (ydhms_tm_diff): Remove; splitting into two parts.
64293         (ydhms_diff): New function, containing the arithmetic part of
64294         the old ydhms_tm_diff function.  Issue a compile-time
64295         diagnostic if we are not using C99 integer division.
64296         Avoid casts when possible.
64297         (guess_time_tm): New function, containing the checking part of
64298         the old ydhms_tm_diff function.  Return the new value, rather than
64299         the difference between it and the old.  Accept a new argument T
64300         so that *T specifies the old value.  Check for overflow in the result.
64301
64302         (__mktime_internal): Use a time_t offset, not a long int offset.
64303         This undoes the 2003-06-04 change, which is no longer needed now
64304         that we have better overflow checking.
64305         (localtime_offset): Likewise.
64306
64307         (__mktime_internal): Avoid harmful overflow on hosts where time_t
64308         and long are 64-bit but int is only 32-bit.
64309         (ydhms_diff): Use long int to store year1 and yday1.
64310         Issue a compile-time diagnostic if long int is not wide enough.
64311
64312         (__mktime_internal): Use long int to store adjusted year and yday.
64313         Use plain C rather than preprocessor commands, if that doesn't
64314         affect efficiency.
64315         Check for overflow (and try to repair) after each probe
64316         rather than checking only at the very end.  This avoids some bugs
64317         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
64318         does not equal GMT offset at maximum time).
64319         Use integer to check for overflow rather than floating point; this
64320         is more portable to non-IEEE hosts, and is a tad faster.
64321         When we detect that we are oscillating between two values,
64322         don't check whether tm_isdst has the requested value, since
64323         we already know the answer.  When tm_isdst has the wrong value,
64324         use a different heuristic to find the right one, based on the
64325         extreme values actually observed in practice in tz2003a,
64326         rather than the (overly optimistic) "previous 3 calendar quarters".
64327
64328         (not_equal_tm, print_tm, check_result): Use "const T" rather than
64329         "T const" to accommodate glibc style.
64330         (check_result): Use less-confusing report format.  "long" -> "long int.
64331         (main): Likewise.
64332         Don't loop if the iteration overflows time_t.
64333         Allow a negative step in the iteration.
64334
64335 2003-07-06  Karl Berry  <karl@gnu.org>
64336
64337         * config/depcomp: update from automake.
64338         * config/config.sub: update from prep.
64339
64340 2003-07-03  Karl Berry  <karl@gnu.org>
64341
64342         * config/config.guess: update from prep.
64343
64344 2003-07-01  Paul Eggert  <eggert@twinsun.com>
64345
64346         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
64347         xreadlink.c now includes it unconditionally.
64348
64349 2003-07-01  Paul Eggert  <eggert@twinsun.com>
64350
64351         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
64352         having it depend on HAVE_SYS_TYPES_H.
64353
64354 2003-07-01  Bruno Haible  <bruno@clisp.org>
64355
64356         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
64357         <sys/types.h> should be sufficient.
64358         Reported by Paul Eggert.
64359
64360 2003-06-26  Karl Berry  <karl@gnu.org>
64361
64362         * config/depcomp: update from automake.
64363
64364 2003-06-26  Bruno Haible  <bruno@clisp.org>
64365
64366         * modules/human: Depend on module stdbool.
64367
64368 2003-06-25  Bruno Haible  <bruno@clisp.org>
64369
64370         * modules/readlink: New file.
64371         * modules/xreadlink: Depend on it.
64372         * MODULES.html.sh (func_all_modules): Add readlink.
64373
64374 2003-06-25  Bruno Haible  <bruno@clisp.org>
64375
64376         * m4/readlink.m4: New file.
64377
64378 2003-06-25  Bruno Haible  <bruno@clisp.org>
64379
64380         * lib/readlink.c: New file.
64381
64382 2003-06-22  Karl Berry  <karl@gnu.org>
64383
64384         * config/srclist.txt: update mkinstalldirs from automake.
64385         * config/mkinstalldirs: update.
64386
64387 2003-06-22  Bruno Haible  <bruno@clisp.org>
64388
64389         Portability to mingw32.
64390         * m4/ssize_t.m4: New file, from GNU gettext.
64391         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
64392         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
64393
64394 2003-06-22  Bruno Haible  <bruno@clisp.org>
64395
64396         * modules/safe-read: Add m4/ssize_t.m4.
64397         * modules/xreadlink: Add m4/ssize_t.m4.
64398
64399 2003-06-20  Bruno Haible  <bruno@clisp.org>
64400
64401         Assume C89, so PARAMS isn't needed.
64402         * lib/unicodeio.h (PARAMS): Remove.
64403         * lib/unicodeio.c: Don't use PARAMS.
64404
64405 2003-06-18  Karl Berry  <karl@gnu.org>
64406
64407         * config/config.{guess,sub}: update from prep.
64408
64409 2003-06-18  Jim Meyering  <jim@meyering.net>
64410
64411         Merge changes from coreutils.
64412         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
64413         Remove explicit declarations of xmalloc and realloc.
64414         Include xalloc.h.
64415         (read_utmp): Remove anachronistic cast of xmalloc.
64416
64417 2003-06-17  Paul Eggert  <eggert@twinsun.com>
64418
64419         Assume C89, so PARAMS isn't needed.
64420         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
64421         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
64422         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
64423         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
64424         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
64425         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
64426         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
64427         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
64428         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
64429         lib/xstrtod.h, lib/xstrtol.h: Likewise.
64430         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
64431         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
64432         no longer needed. Anyway, config.h should always be included before any
64433         other file.
64434
64435 2003-06-11  Simon Josefsson  <jas@extundo.com>
64436
64437         * modules/sysexits: New file.
64438         * MODULES.html.sh (func_all_modules): Add sysexits.
64439
64440 2003-06-11  Simon Josefsson  <jas@extundo.com>
64441
64442         * lib/sysexit_.h: New file.
64443
64444 2003-06-11  Derek Price  <derek@ximbiot.com>
64445
64446         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
64447         necessary.
64448
64449 2003-06-11  Bruno Haible  <bruno@clisp.org>
64450
64451         * m4/sysexits.m4: New file.
64452
64453 2003-06-10  Simon Josefsson  <jas@extundo.com>
64454
64455         * lib/argp.h: New file, from glibc.
64456         * lib/argp-ba.c: New file, from glibc.
64457         * lib/argp-eexst.c: New file, from glibc.
64458         * lib/argp-fmtstream.c: New file, from glibc.
64459         * lib/argp-fmtstream.h: New file, from glibc.
64460         * lib/argp-fs-xinl.c: New file, from glibc.
64461         * lib/argp-help.c: New file, from glibc.
64462         * lib/argp-namefrob.h: New file, from glibc.
64463         * lib/argp-parse.c: New file, from glibc.
64464         * lib/argp-pv.c: New file, from glibc.
64465         * lib/argp-pvh.c: New file, from glibc.
64466         * lib/argp-xinl.c: New file, from glibc.
64467
64468 2003-06-10  Simon Josefsson  <jas@extundo.com>
64469
64470         * modules/strchrnul: New file.
64471
64472 2003-06-10  Simon Josefsson  <jas@extundo.com>
64473
64474         * modules/argp: New file.
64475
64476 2003-06-10  Simon Josefsson  <jas@extundo.com>
64477
64478         * m4/strchrnul.m4: New file.
64479
64480 2003-06-10  Simon Josefsson  <jas@extundo.com>
64481
64482         * lib/strchrnul.h: New file.
64483         * lib/strchrnul.c: New file.
64484
64485 2003-06-10  Bruno Haible  <bruno@clisp.org>
64486
64487         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
64488
64489 2003-06-07  Karl Berry  <karl@gnu.org>
64490
64491         * config/config.{guess,sub}: update from prep.
64492
64493 2003-06-07  Jim Meyering  <jim@meyering.net>
64494
64495         * modules/strtod: Use $(...) notation, not @...@ for
64496         AC_REPLACE'd variables.
64497         * modules/localcharset: Likewise.
64498
64499 2003-06-07  Jim Meyering  <jim@meyering.net>
64500
64501         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
64502         in place of my name in the copyright comment.
64503         Remove definition and uses of __P.
64504
64505         From coreutils.
64506         * lib/stat.c: Don't declare xmalloc explicitly.
64507         Instead, include "xalloc.h".
64508         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
64509         xrealloc, and xcalloc return values.
64510         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
64511         Improve comment.
64512         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
64513
64514 2003-06-07  Bruno Haible  <bruno@clisp.org>
64515
64516         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
64517         avoid AC_CONFIG_LINKS.
64518         * modules/fnmatch (Makefile.am): Use explicit creation rule for
64519         fnmatch.h, to avoid AC_CONFIG_LINKS.
64520         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
64521
64522 2003-06-07  Bruno Haible  <bruno@clisp.org>
64523
64524         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
64525         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
64526         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
64527         directory.
64528         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
64529         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
64530         directory.
64531
64532 2003-06-06  Jim Meyering  <jim@meyering.net>
64533
64534         Merge from coreutils.
64535         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
64536         Consolidate declarations and initializations of *_base* locals.
64537
64538         Merge from coreutils.
64539         This avoids a core dump on systems without GNU putenv,
64540         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
64541         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
64542         (unsetenv): New static function, from GNU libc.
64543         (rpl_putenv): Use it.
64544
64545         * lib/modechange.c: Remove trailing blanks.
64546
64547         Merge from coreutils.
64548         * lib/fsusage.c: Remove declaration of statfs.
64549         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
64550
64551         * lib/posixtm.c: Include <stdbool.h> unconditionally.
64552
64553 2003-06-06  Jim Meyering  <jim@meyering.net>
64554
64555         * lib/stdbool_.h: Renamed from stdbool.h.in.
64556
64557 2003-06-06  Jim Meyering  <jim@meyering.net>
64558             Bruno Haible  <bruno@clisp.org>
64559
64560         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
64561         Adjust Makefile.am snippet not to redirect directly to target.
64562         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
64563
64564 2003-06-05  Paul Eggert  <eggert@twinsun.com>
64565
64566         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
64567         mismatch, look in future quarters as well as past.  This fixes a
64568         bug when processing fall-backwards gaps immediately after a long
64569         period of daylight-saving time.
64570
64571         * lib/mktime.c: Assume freestanding C89 or better.
64572         (HAVE_LIMITS_H): Remove.  Assume it's 1.
64573         (__P): Remove; not used.
64574         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
64575         (mktime, not_equal_tm, print_tm, check_result,
64576         main): Use prototypes.  Use const * where appropriate.
64577         (main): Fix typo in testing code that uncovered by above changes.
64578         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
64579
64580 2003-06-04  Paul Eggert  <eggert@twinsun.com>
64581
64582         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
64583         locale.h, localeconv.  This merges changes from coreutils.
64584
64585         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
64586         It can be removed after the next Autoconf is released.
64587         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
64588         needed.
64589
64590 2003-06-04  Paul Eggert  <eggert@twinsun.com>
64591
64592         * lib/mktime.c: Fix Debian bug 177940
64593         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
64594         (localtime_offset): Now long int, not time_t, because we want it
64595         to be guaranteed to be signed.  All uses changed.
64596         (__mktime_internal): If overflow would occur when adding offset,
64597         don't add it.
64598
64599         Merge 'human' changes from coreutils.  Rewrite to support
64600         locale-specific notations like thousands separators.
64601         * lib/human.c: Simplify authorship notice.
64602         Include human.h immediately after config.h.
64603         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
64604         <limits.h>: Do not include, since human.h does.
64605         (SIZE_MAX, UINTMAX_MAX): New macros.
64606         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
64607         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
64608         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
64609         (power_letter): Renamed from suffixes.
64610         (generate_suffix_backwards): Remove.
64611         (adjust_value): Now takes int style (because of human.h changes)
64612         and long double value (for greater precision on some platforms).
64613         (group_number): New function.
64614         (human_readable): Use it.  Use integer options, not enum.
64615         Put the options before the sizes in the arg list.
64616         Support all the new options.
64617         The old human_readable function has been removed;
64618         use inttostr.h instead.
64619         (human_readable, default_block_size, humblock):
64620         Use uintmax_t, not int, for block sizes.
64621         (human_readable_inexact, block_size_types): Remove.
64622         (block_size_opts): New constant.
64623         (human_options): Renamed from human_block_size, with new signature
64624         that allows block sizes up to UINTMAX_MAX.  All callers changed.
64625         * lib/human.h: Add copyright and authorship notice.
64626         Include <limits.h> and <stdbool.h> unconditionally.
64627         (PARAMS): Remove.  All uses removed.
64628         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
64629         (enum human_inexact_style): Remove tag; now a nameless enum.
64630         (human_floor, human_ceiling, human_round_to_even): Now have
64631         values 2, 0, 1 rather than -1, 1, 0.
64632         (human_group_digits, human_suppress_point_zero, human_autoscale,
64633         human_base_1024, human_SI, human_B): New constants.
64634         (human_readable_inexact, human_block_size): Remove.
64635         (human_readable): Size args are now uintmax_t, not int.
64636         (human_options): New decl.
64637
64638         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
64639         unnecessary now that we assume C89 or better.  This change
64640         imported from coreutils.
64641
64642         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
64643         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
64644         in the 2003-05-30 sync from glibc.
64645
64646         .h files should stand alone, but we shouldn't include <sys/types.h>
64647         if we can get away with just <stddef.h>.
64648
64649         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
64650         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
64651         rather than <sys/types.h>, as we merely need size_t.
64652         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
64653         to get size_t.
64654         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
64655         Include <stdio.h>, to get FILE.
64656         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
64657         memcasecmp.h has included <stddef.h> and all we need is size_t.
64658         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
64659         our interface, instead of including <sys/types.h>
64660
64661 2003-06-04  Paul Eggert  <eggert@twinsun.com>
64662
64663         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
64664         now, as glibc mktime is buggy on non-glibc systems.
64665
64666 2003-06-03  Karl Berry  <karl@gnu.org>
64667
64668         * config/config.sub: update from prep.
64669
64670 2003-06-02  Paul Eggert  <eggert@twinsun.com>
64671
64672         [from coreutils]
64673         Fix some minor time-related bugs with POSIX time arguments.
64674         Some valid time stamps were being rejected (notably -1, and
64675         time stamps before 1900 on 64-bit hosts).  And some invalid
64676         time stamps were being accepted, e.g. September 31.
64677
64678         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
64679         that we can return (time_t) -1 successfully.
64680         * lib/posixtm.c: Likewise.
64681         [HAVE_STDBOOL_H]: Include <stdbool.h>.
64682         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
64683         (t): Remove static var.
64684         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
64685         of static var.  All uses changed.
64686         (year): Do not reject years before 1900; they can occur with
64687         64-bit time_t.
64688         (posix_time_parse): Do not check for out-of-range components;
64689         that is now the caller's responsibility, since our checks were
64690         only approximations.
64691         (posixtime): Use mktime to check for out-of-range components,
64692         since it knows them exactly.
64693         If mktime returns (time_t) -1, check whether an error actually occurred
64694         by invoking localtime on -1.
64695         (main) [TEST_POSIXTIME]: Check for input data errors, and report
64696         posixtime failures better.
64697         Improve the test data (in comments only).
64698
64699 2003-06-02  Karl Berry  <karl@gnu.org>
64700
64701         * config/mkinstalldirs (version): new variable.
64702         (--version): new option.
64703         (usage): improve message.
64704
64705 2003-05-30  Karl Berry  <karl@gnu.org>
64706
64707         * lib/mktime.c: update from libc.
64708
64709 2003-05-30  Bruno Haible  <bruno@clisp.org>
64710
64711         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
64712         * config/config.rpath: Upgrade to gettext-0.12.1.
64713
64714 2003-05-30  Bruno Haible  <bruno@clisp.org>
64715
64716         * m4/gettext.m4: Upgrade to gettext-0.12.1.
64717         * m4/nls.m4: New file, from gettext-0.12.1.
64718         * m4/po.m4: New file, from gettext-0.12.1.
64719         * m4/progtest.m4: Upgrade to gettext-0.12.1.
64720
64721 2003-05-30  Bruno Haible  <bruno@clisp.org>
64722
64723         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
64724         * lib/localcharset.h: Likewise.
64725         * lib/localcharset.c: Likewise.
64726
64727 2003-05-29  Karl Berry  <karl@gnu.org>
64728
64729         * config/config.rpath: update from gettext.
64730
64731 2003-05-28  Paul Eggert  <eggert@twinsun.com>
64732
64733         Assume the headers required for C89 freestanding compilers.
64734         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
64735         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
64736         * m4/human.m4 (gl_HUMAN): Likewise.
64737         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
64738         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
64739         * m4/userspec.m4 (gl_USERSPEC): Likewise.
64740         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
64741         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
64742         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
64743
64744 2003-05-28  Paul Eggert  <eggert@twinsun.com>
64745
64746         Assume the headers required for C89 freestanding compilers.
64747         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
64748         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
64749         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
64750         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
64751         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
64752         define, since <limits.h> is guaranteed to do that.
64753         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
64754         * lib/exclude.c: Include <stdbool.h> unconditionally.
64755         * lib/tempname.c: Include <stddef.h> unconditionally.
64756         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
64757         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
64758         <stddef.h> does that.
64759         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
64760         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
64761         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
64762         needed.
64763         * lib/xstrtol.c: Likewise.
64764         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
64765         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
64766
64767         * lib/addext.c (addext): Use assignment rather than cast, to avoid
64768         warnings on some platforms.
64769
64770         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
64771         arbitrarily.
64772
64773 2003-05-26  Jim Meyering  <jim@meyering.net>
64774
64775         Merge in a change from coreutils:
64776         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
64777         that is guaranteed to be `no'.  Use `no_such_member' to indicate
64778         that condition, rather than `-1' which is slightly misleading.
64779         Change the name of the cache variable to have the gl_ prefix.
64780         Prompted by a patch from Richard Dawe for DJGPP.
64781
64782 2003-05-24  Karl Berry  <karl@gnu.org>
64783
64784         * config/config.guess: update from prep.
64785
64786 2003-05-22  Karl Berry  <karl@gnu.org>
64787
64788         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
64789
64790 2003-05-20  Karl Berry  <karl@gnu.org>
64791
64792         * config/config.guess: update from prep.
64793
64794 2003-05-18  Karl Berry  <karl@gnu.org>
64795
64796         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
64797         might actually be set by the user.
64798
64799         * config/depcomp, install-sh, mdate-sh: update from automake.
64800
64801 2003-05-17  Bruno Haible  <bruno@clisp.org>
64802
64803         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
64804         invalid expansion for AC_EGREP_CPP.
64805         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
64806         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
64807         Suggested by Akim Demaille <akim@epita.fr> in
64808         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
64809
64810 2003-05-12  Jim Meyering  <jim@meyering.net>
64811
64812         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
64813         the space-padded-by-default conversion specifiers, %e, %k, %l.
64814
64815 2003-05-12  Bruno Haible  <bruno@clisp.org>
64816
64817         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
64818         the string is longer than 4 KB.
64819
64820 2003-05-11  Karl Berry  <karl@gnu.org>
64821
64822         * config/config.{guess,sub}: update from prep.
64823
64824 2003-05-09  Bruno Haible  <bruno@clisp.org>
64825
64826         * modules/error: Add m4/strerror_r.m4 to file list.
64827
64828 2003-05-03  Bruno Haible  <bruno@clisp.org>
64829
64830         Upgrade to Unicode-4.0.
64831         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
64832         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
64833         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
64834         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
64835         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
64836         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
64837         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
64838         Change width of U+E0100..U+E01EF from 1 to 0.
64839
64840 2003-04-25  Jim Meyering  <jim@meyering.net>
64841
64842         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
64843         of type size_t, not int.
64844
64845 2003-04-25  Bruno Haible  <bruno@clisp.org>
64846
64847         * lib/copy-file.c: Include <stddef.h>, for size_t.
64848
64849 2003-04-21  Paul Eggert  <eggert@twinsun.com>
64850
64851         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
64852         code which expansion is under static control.  Patch imported from
64853         Akim Demaille's patch to Bison; see
64854         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
64855
64856 2003-04-14  Bruno Haible  <bruno@clisp.org>
64857
64858         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
64859
64860 2003-04-11  Jim Meyering  <jim@meyering.net>
64861
64862         Merge changes from Coreutils.
64863
64864         2003-03-22  Jim Meyering  <jim@meyering.net>
64865
64866         * lib/strftime.c (widen): Cast alloca return value to proper type.
64867
64868         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
64869
64870         From GNU libc.
64871         * lib/strftime.c (my_strftime): Handle very large width
64872         specifications for numeric values correctly.  Improve checks for
64873         overflow.
64874
64875         2003-01-19  Jim Meyering  <jim@meyering.net>
64876
64877         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
64878         definitions.
64879         (nl_get_alt_digit) [! defined my_strftime]: Define.
64880         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
64881         _nl_get_alt_digit and _nl_get_walt_digit.
64882
64883         * lib/strftime.c (my_strftime): Merge in locale-related changes from
64884         libc. These changes have no effect outside of _LIBC.
64885
64886 2003-04-10  Bruno Haible  <bruno@clisp.org>
64887
64888         * modules/findprog: New file.
64889         * MODULES.html.sh (func_all_modules): Add it.
64890
64891 2003-04-10  Bruno Haible  <bruno@clisp.org>
64892
64893         * m4/findprog.m4: New file.
64894         * m4/eaccess.m4: New file.
64895
64896 2003-04-10  Bruno Haible  <bruno@clisp.org>
64897
64898         * lib/findprog.h: New file, from GNU gettext.
64899         * lib/findprog.c: New file, from GNU gettext.
64900
64901 2003-04-05  Jim Meyering  <jim@meyering.net>
64902
64903         Merge changes from Coreutils.
64904
64905         * lib/exclude.h (PARAMS): Remove definition and uses.
64906         * lib/exclude.c: Remove uses of `PARAMS'.
64907
64908         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
64909         Add test-cases for DOS filenames. Declare program_name.
64910         (main): Set up program_name.  Patch by Rich Dawe.
64911
64912         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
64913         error from mntctl.
64914         Use mntctl's return value to drive the entry-processing loop, since
64915         we can't rely on the value of the vmt_length member in the last
64916         entry.  On some systems doing so could result in exhausting
64917         virtual memory.  Based in part on a patch from Mike Jetzer.
64918
64919 2003-04-04  Bruno Haible  <bruno@clisp.org>
64920
64921         * modules/linebreak: New file.
64922         * MODULES.html.sh (func_all_modules): Add it.
64923
64924 2003-04-04  Bruno Haible  <bruno@clisp.org>
64925
64926         * m4/linebreak.m4: New file.
64927
64928 2003-04-04  Bruno Haible  <bruno@clisp.org>
64929
64930         * lib/linebreak.h: New file, from GNU gettext.
64931         * lib/linebreak.c: New file, from GNU gettext with slight
64932         modifications.
64933         * lib/lbrkprop.h: New file, from GNU gettext.
64934
64935 2003-04-03  Bruno Haible  <bruno@clisp.org>
64936
64937         * modules/utf8-ucs4: New file.
64938         * modules/utf16-ucs4: New file.
64939         * modules/ucs4-utf8: New file.
64940         * modules/ucs4-utf16: New file.
64941         * MODULES.html.sh (func_all_modules): Add them.
64942
64943 2003-04-03  Bruno Haible  <bruno@clisp.org>
64944
64945         * m4/utf-ucs4.m4: New file.
64946         * m4/ucs4-utf.m4: New file.
64947
64948 2003-04-03  Bruno Haible  <bruno@clisp.org>
64949
64950         * lib/utf8-ucs4.h: New file, from GNU gettext.
64951         * lib/utf16-ucs4.h: New file, from GNU gettext.
64952         * lib/ucs4-utf8.h: New file, from GNU gettext.
64953         * lib/ucs4-utf16.h: New file, from GNU gettext.
64954
64955 2003-04-02  Bruno Haible  <bruno@clisp.org>
64956
64957         * modules/binary-io: New file.
64958         * MODULES.html.sh (func_all_modules): Add it.
64959
64960 2003-04-02  Bruno Haible  <bruno@clisp.org>
64961
64962         * lib/binary-io.h: New file, from GNU gettext.
64963
64964 2003-04-01  Bruno Haible  <bruno@clisp.org>
64965
64966         * modules/pathname: New file.
64967         * MODULES.html.sh (func_all_modules): Add it.
64968
64969 2003-04-01  Bruno Haible  <bruno@clisp.org>
64970
64971         * lib/pathname.h: New file, from GNU gettext.
64972         * lib/concatpath.c: New file, from GNU gettext.
64973
64974 2003-03-30  Bruno Haible  <bruno@clisp.org>
64975
64976         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
64977
64978 2003-03-30  Bruno Haible  <bruno@clisp.org>
64979
64980         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
64981         function chown() doesn't exist.
64982
64983 2003-03-28  Bruno Haible  <bruno@clisp.org>
64984
64985         * modules/copy-file: New file.
64986         * MODULES.html.sh (func_all_modules): Add it.
64987
64988 2003-03-28  Bruno Haible  <bruno@clisp.org>
64989
64990         * m4/copy-file.m4: New file.
64991
64992 2003-03-28  Bruno Haible  <bruno@clisp.org>
64993
64994         * lib/copy-file.h: New file, from GNU gettext.
64995         * lib/copy-file.c: New file, from GNU gettext.
64996
64997 2003-03-18  Jim Meyering  <jim@meyering.net>
64998
64999         * lib/quote.c (quote_n): Fix typo in comment.
65000
65001 2003-03-18  Bruno Haible  <bruno@clisp.org>
65002
65003         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
65004         checking.
65005         * m4/onceonly_2_57.m4: Likewise.
65006
65007 2003-03-17  Bruno Haible  <bruno@clisp.org>
65008
65009         * m4/onceonly.m4: Require autoconf 2.54 or newer.
65010         (m4_quote): Remove macro.
65011         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
65012
65013 2003-03-14  Jim Meyering  <jim@meyering.net>
65014
65015         Merge changes from Coreutils.
65016         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
65017         to be const, in order to avoid warnings.
65018         (obstack_room): Likewise.
65019         (obstack_empty_p): Likewise.
65020
65021 2003-03-14  Bruno Haible  <bruno@clisp.org>
65022
65023         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
65024         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
65025
65026 2003-03-13  Paul Eggert  <eggert@twinsun.com>
65027
65028         Merge changes from Bison.
65029         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
65030         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
65031         when compiling Bison 1.875's `bitset bset = obstack_alloc
65032         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
65033         * lib/hash.c: Include <stdbool.h> unconditionally.
65034
65035 2003-03-13  Paul Eggert  <eggert@twinsun.com>
65036
65037         * m4/onceonly.m4 (m4_quote): New macro.
65038         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
65039         Quote AC_FOREACH variable-expansions properly.
65040
65041 2003-03-13  Paul Eggert  <eggert@twinsun.com>
65042
65043         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
65044
65045 2003-03-09  Paul Eggert  <eggert@twinsun.com>
65046
65047         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
65048         Reported by Bruce Becker; see:
65049         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
65050
65051 2003-03-03  Paul Eggert  <eggert@twinsun.com>
65052             Bruno Haible  <bruno@clisp.org>
65053
65054         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
65055         Reported by John Hughes, see
65056         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
65057
65058 2003-02-20  Bruno Haible  <bruno@clisp.org>
65059
65060         * MODULES.html.sh (func_all_modules): Add poll.
65061
65062 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
65063
65064         * modules/poll: New file.
65065
65066 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
65067
65068         * lib/poll_.h: New file.
65069         * lib/poll.c: New file.
65070
65071 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
65072
65073         * m4/poll.m4: New file.
65074
65075 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
65076
65077         * modules/mathl: New file.
65078
65079 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
65080
65081         * lib/mathl.h: New file.
65082         * lib/acosl.c: New file.
65083         * lib/asinl.c: New file.
65084         * lib/atanl.c: New file.
65085         * lib/ceill.c: New file.
65086         * lib/cosl.c: New file.
65087         * lib/expl.c: New file.
65088         * lib/floorl.c: New file.
65089         * lib/frexpl.c: New file.
65090         * lib/ldexpl.c: New file.
65091         * lib/logl.c: New file.
65092         * lib/sincosl.c: New file.
65093         * lib/sinl.c: New file.
65094         * lib/sqrtl.c: New file.
65095         * lib/tanl.c: New file.
65096         * lib/trigl.c: New file.
65097         * lib/trigl.h: New file.
65098
65099 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
65100
65101         * m4/mathl.m4: New file.
65102
65103 2003-02-18  Bruno Haible  <bruno@clisp.org>
65104
65105         * MODULES.html.sh (func_all_modules): Add mathl.
65106
65107 2003-02-17  Bruno Haible  <bruno@clisp.org>
65108
65109         * modules/mkdtemp: New module.
65110         * MODULES.html.sh (func_all_modules): Add it.
65111
65112 2003-02-17  Bruno Haible  <bruno@clisp.org>
65113
65114         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
65115
65116 2003-02-17  Bruno Haible  <bruno@clisp.org>
65117
65118         * lib/mkdtemp.h: New file, from GNU gettext.
65119         * lib/mkdtemp.c: New file, from GNU gettext.
65120
65121 2003-02-02  Jim Meyering  <jim@meyering.net>
65122
65123         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
65124         e.g. glibc-2.2.93.
65125
65126 2003-01-31  Bruno Haible  <bruno@clisp.org>
65127
65128         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
65129         'rpl_rename'.
65130         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
65131         'rpl_strnlen'.
65132         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
65133         'rpl_strtod'.
65134         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
65135         'rpl_utime'.
65136
65137 2003-01-31  Bruno Haible  <bruno@clisp.org>
65138
65139         * lib/rename.c: #undef rename before defining rpl_rename.
65140         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
65141
65142 2003-01-30  Bruno Haible  <bruno@clisp.org>
65143
65144         * modules/vasnprintf, modules/vasprintf: New modules.
65145         * MODULES.html.sh (func_all_modules): Add them.
65146
65147 2003-01-30  Bruno Haible  <bruno@clisp.org>
65148
65149         * m4/signed.m4: New file, from GNU gettext.
65150         * m4/longdouble.m4: New file, from GNU gettext.
65151         * m4/wchar_t.m4: New file, from GNU gettext.
65152         * m4/wint_t.m4: New file, from GNU gettext.
65153         * m4/vasnprintf.m4: New file.
65154         * m4/vasprintf.m4: New file.
65155
65156 2003-01-30  Bruno Haible  <bruno@clisp.org>
65157
65158         * lib/printf-args.h: New file, from GNU gettext.
65159         * lib/printf-args.c: New file, from GNU gettext.
65160         * lib/printf-parse.h: New file, from GNU gettext.
65161         * lib/printf-parse.c: New file, from GNU gettext.
65162         * lib/vasnprintf.h: New file, from GNU gettext.
65163         * lib/vasnprintf.c: New file, from GNU gettext.
65164         * lib/asnprintf.c: New file, from GNU gettext.
65165         * lib/vasprintf.h: New file, from GNU gettext with modifications.
65166         * lib/vasprintf.c: New file, from GNU gettext.
65167         * lib/asprintf.c: New file, from GNU gettext.
65168
65169 2003-01-29  Bruno Haible  <bruno@clisp.org>
65170
65171         * modules/stpncpy: New module.
65172         * MODULES.html.sh (func_all_modules): Add it.
65173
65174 2003-01-29  Bruno Haible  <bruno@clisp.org>
65175
65176         * m4/stpncpy.m4: New file.
65177
65178 2003-01-29  Bruno Haible  <bruno@clisp.org>
65179
65180         * lib/stpncpy.h: New file, from GNU gettext with modifications.
65181         * lib/stpncpy.c: New file, from GNU gettext with modifications.
65182
65183 2003-01-28  Bruno Haible  <bruno@clisp.org>
65184
65185         * modules/c-ctype: New module.
65186         * MODULES.html.sh (func_all_modules): Add it.
65187
65188 2003-01-28  Bruno Haible  <bruno@clisp.org>
65189
65190         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
65191         Paul Eggert.
65192         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
65193         Paul Eggert.
65194
65195 2003-01-27  Bruno Haible  <bruno@clisp.org>
65196
65197         * modules/xsetenv: New module.
65198         * MODULES.html.sh (func_all_modules): Add it.
65199
65200 2003-01-27  Bruno Haible  <bruno@clisp.org>
65201
65202         * lib/xsetenv.h: New file, from GNU gettext.
65203         * lib/xsetenv.c: New file, from GNU gettext.
65204
65205 2003-01-23  Jim Meyering  <jim@meyering.net>
65206
65207         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
65208         from working on systems without dirfd (at least Irix and OSF1/Tru64).
65209
65210 2003-01-23  Bruno Haible  <bruno@clisp.org>
65211
65212         * modules/minmax: New module.
65213         * MODULES.html.sh (func_all_modules): Add it.
65214
65215 2003-01-23  Bruno Haible  <bruno@clisp.org>
65216
65217         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
65218         Eggert.
65219
65220 2003-01-22  Bruno Haible  <bruno@clisp.org>
65221
65222         * modules/exit: New module.
65223         * MODULES.html.sh (func_all_modules): Add it.
65224
65225 2003-01-22  Bruno Haible  <bruno@clisp.org>
65226
65227         * lib/exit.h: New file, from GNU gettext.
65228
65229 2003-01-19  Bruno Haible  <bruno@clisp.org>
65230
65231         * gnulib-tool: Recognize option --extract-maintainer.
65232         (func_get_maintainer): New function.
65233         * modules/*: Add Maintainer entry.
65234
65235 2003-01-16  Jim Meyering  <jim@meyering.net>
65236
65237         * m4/regex.m4: The `regex' struct is both input and output.
65238         Initialize it before each use.  Patch by Tim Waugh.
65239
65240 2003-01-16  Bruno Haible  <bruno@clisp.org>
65241
65242         * MODULES.html.sh: Add a table of contents. Add the module name as
65243         leftmost column. Add hyperlinks.
65244
65245 2003-01-15  Bruno Haible  <bruno@clisp.org>
65246
65247         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
65248
65249 2003-01-15  Bruno Haible  <bruno@clisp.org>
65250
65251         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
65252         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
65253         suffix.
65254
65255 2003-01-15  Bruno Haible  <bruno@clisp.org>
65256
65257         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
65258
65259 2003-01-15  Bruno Haible  <bruno@clisp.org>
65260
65261         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
65262         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
65263
65264 2003-01-14  Jim Meyering  <jim@meyering.net>
65265
65266         * lib/same.c (same_name): Tweak a comment.
65267
65268 2003-01-14  Bruno Haible  <bruno@clisp.org>
65269
65270         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
65271         when a string comparison is sufficient.
65272
65273 2003-01-14  Bruno Haible  <bruno@clisp.org>
65274
65275         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
65276         'unsigned int'.
65277
65278 2003-01-14  Bruno Haible  <bruno@clisp.org>
65279
65280         * lib/hash-pjw.c: Add comment about low quality of this function.
65281
65282 2003-01-13  Bruno Haible  <bruno@clisp.org>
65283
65284         * modules/stpcpy: Distribute lib/stpcpy.h.
65285         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
65286
65287 2003-01-13  Bruno Haible  <bruno@clisp.org>
65288
65289         * modules/*: Add a description.
65290         * modules/strpbrk: Fix Makefile.am snippet.
65291         * modules/strtoimax: Fix dependencies.
65292         * modules/strtoumax: Likewise.
65293
65294 2003-01-13  Bruno Haible  <bruno@clisp.org>
65295
65296         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
65297         * modules/alloca (Makefile.am): All object files depend on alloca.h.
65298         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
65299
65300 2003-01-13  Bruno Haible  <bruno@clisp.org>
65301
65302         * gnulib-tool (func_create_testdir): Store config/* files in the main
65303         directory.
65304         * config.rpath: Move to ...
65305         * config/config.rpath: ... here.
65306         * modules/gettext: Contains config/config.rpath, not config.rpath.
65307         * modules/iconv: Likewise.
65308
65309 2003-01-12  Paul Eggert  <eggert@twinsun.com>
65310
65311         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
65312         to avoid collisions with libcurses and libreadline.
65313
65314         * m4/getstr.m4: Remove.
65315         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
65316
65317 2003-01-12  Paul Eggert  <eggert@twinsun.com>
65318
65319         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
65320         to avoid collisions with libcurses and libreadline.
65321
65322         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
65323         * lib/getstr.h, getstr.c: Remove.
65324         * lib/getline.c: Include "getline.h", to check interface.
65325         Move body of old getstr.c here: this defines MIN_CHUNK and
65326         declares getdelim2, which is renamed from getstr.
65327         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
65328
65329         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
65330         All uses changed.
65331         * lib/linebuffer.h: Likewise.
65332         (readline): Remove backward-compatibility macro.
65333
65334 2003-01-12  Paul Eggert  <eggert@twinsun.com>
65335
65336         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
65337         to avoid collisions with libcurses and libreadline.
65338         * getstr: Remove.
65339         * MODULES.html.sh: Remove getstr.
65340         * modules/getline: Depend on unlocked-io, not getstr.
65341
65342 2003-01-12  Jim Meyering  <jim@meyering.net>
65343
65344         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
65345
65346 2003-01-10  Bruno Haible  <bruno@clisp.org>
65347
65348         * modules/alloca: Change Makefile.am requirements. Simplify Include
65349         requirements. Add lib/alloca_.h to file list.
65350
65351 2003-01-10  Bruno Haible  <bruno@clisp.org>
65352
65353         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
65354
65355 2003-01-10  Bruno Haible  <bruno@clisp.org>
65356
65357         * lib/alloca_.h: New file.
65358         * lib/getdate.y: Unconditionally include alloca.h.
65359         * lib/makepath.c: Likewise.
65360         * lib/setenv.c: Likewise.
65361         * lib/userspec.c: Likewise.
65362
65363 2003-01-09  Karl Berry  <karl@gnu.org>
65364
65365         * MODULES.html.sh: include `dirname $0` in PATH, to find
65366         gnulib-tool.
65367
65368 2003-01-09  Bruno Haible  <bruno@clisp.org>
65369
65370         * modules/stdbool: Change configure.ac, Makefile.am requirements.
65371         Simplify Include requirements. Add lib/stdbool.h.in to file list.
65372
65373 2003-01-09  Bruno Haible  <bruno@clisp.org>
65374
65375         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
65376
65377 2003-01-09  Bruno Haible  <bruno@clisp.org>
65378
65379         * lib/stdbool.h.in: New file.
65380
65381 2003-01-09  Bruno Haible  <bruno@clisp.org>
65382
65383         * gnulib-tool (func_all_modules): Ignore files ending in ~.
65384         * MODULES.html.sh: Likewise.
65385
65386 2003-01-08  Jim Meyering  <jim@meyering.net>
65387
65388         * lib/full-write.c: Undefine and define-away `const' after inclusion
65389         of errno.h, not before.  Suggestion from Bruno Haible.
65390
65391 2003-01-08  Bruno Haible  <bruno@clisp.org>
65392
65393         * modules/full-read: Depend on full-write.
65394
65395 2003-01-08  Bruno Haible  <bruno@clisp.org>
65396
65397         * lib/safe-read.c: Include specification header first, to ensure its
65398         selfcontainedness.
65399         * lib/full-write.c: Likewise.
65400
65401 2003-01-07  Jim Meyering  <jim@meyering.net>
65402
65403         * lib/full-write.c: Rework so that it may serve to define full_read,
65404         too.
65405         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
65406
65407 2003-01-07  Bruno Haible  <bruno@clisp.org>
65408
65409         * lib/strtoimax.c: Include <stdint.h> as an alternative to
65410         <inttypes.h>.
65411         * lib/xstrtol.h: Likewise.
65412         * lib/xstrtoimax.c: Likewise.
65413         * lib/xstrtoumax.c: Likewise.
65414         * lib/human.h: Likewise.
65415
65416         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
65417         on systems that have <inttypes.h> but not <stdint.h>.
65418
65419 2003-01-07  Bruno Haible  <bruno@clisp.org>
65420
65421         * MODULES.html.sh: Add copyright notice.
65422         (missed_files): Omit CVS directory entries.
65423         (func_module): Make it work with sed-3.02.
65424         * MODULES.txt: Remove file.
65425
65426 2003-01-06  Jim Meyering  <jim@meyering.net>
65427
65428         * lib/version-etc.c: Update year in translatable copyright string.
65429
65430 2003-01-03  Karl Berry  <karl@gnu.org>
65431
65432         * config/config.{guess,sub}: update from prep.
65433
65434 2003-01-02  Karl Berry  <karl@gnu.org>
65435
65436         * doc/COPYING.DOC: belatedly updated to 1.2.
65437
65438 2003-01-01  Karl Berry  <karl@gnu.org>
65439
65440         * gnulib-tool (func_verify_module): report module name $module in
65441         error message, not $1.
65442         * gnulib-tool (create-testdir): don't complain if destdir couldn't
65443         be created, only if it doesn't exist.
65444         * gnulib-tool (last_checkin_date): don't expand the $Date here.
65445
65446 2002-12-31  Paul Eggert  <eggert@twinsun.com>
65447
65448         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
65449
65450 2002-12-31  Paul Eggert  <eggert@twinsun.com>
65451
65452         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
65453         memcmp if strcoll doesn't work.
65454
65455 2002-12-31  Bruno Haible  <bruno@clisp.org>
65456
65457         * lib/utime.c (utime_null): No need to call ftruncate if the file was
65458         nonempty.
65459
65460 2002-12-31  Bruno Haible  <bruno@clisp.org>
65461
65462         * lib/memcoll.c (STRCOLL): New macro.
65463         (memcoll): Use it.
65464
65465 2002-12-31  Bruno Haible  <bruno@clisp.org>
65466
65467         * lib/localcharset.h: New file.
65468         * lib/localcharset.c: Include it.
65469         * lib/unicodeio.c: Likewise.
65470
65471 2002-12-31  Bruno Haible  <bruno@clisp.org>
65472
65473         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
65474         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
65475
65476 2002-12-31  Bruno Haible  <bruno@clisp.org>
65477
65478         * lib/getline.h: Include <stddef.h>, for size_t.
65479
65480         * lib/unicodeio.h: Include <stddef.h>, for size_t.
65481         * lib/unicodeio.c: Don't include <stddef.h>.
65482
65483 2002-12-31  Bruno Haible  <bruno@clisp.org>
65484
65485         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
65486         HAVE_TM_ZONE.
65487
65488 2002-12-24  Karl Berry  <karl@gnu.org>
65489
65490         * config/config.guess: update from prep.
65491
65492 2002-12-24  Bruno Haible  <bruno@clisp.org>
65493
65494         General infrasructure.
65495         * m4/README: Rewritten.
65496         * m4/onceonly.m4: New file.
65497         * m4/onceonly_2_57.m4: New file.
65498
65499         Module atexit.
65500         * m4/atexit.m4: New file.
65501
65502         Module strtod.
65503         * m4/strtod.m4: New file.
65504
65505         Module strtol.
65506         * m4/strtol.m4: New file.
65507
65508         Module strtoul.
65509         * m4/strtoul.m4: New file.
65510
65511         Module memchr.
65512         * m4/memchr.m4: New file.
65513
65514         Module memcmp.
65515         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
65516         (jm_FUNC_MEMCMP): Invoke it.
65517
65518         Module memcpy.
65519         * m4/memcpy.m4: New file.
65520
65521         Module memmove.
65522         * m4/memmove.m4: New file.
65523
65524         Module memset.
65525         * m4/memset.m4: New file.
65526
65527         Module strcspn.
65528         * m4/strcspn.m4: New file.
65529
65530         Module strpbrk.
65531         * m4/strpbrk.m4: New file.
65532
65533         Module strstr.
65534         * m4/strstr.m4: New file.
65535
65536         Module strerror.
65537         * m4/strerror.m4: New file.
65538
65539         Module mktime.
65540         * m4/mktime.m4: Renamed from jm-mktime.m4.
65541         (gl_PREREQ_MKTIME): New macro.
65542         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
65543
65544         Module malloc.
65545         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
65546         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
65547         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
65548
65549         Module realloc.
65550         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
65551         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
65552         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
65553
65554         Module strftime.
65555         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
65556         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
65557         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
65558         gl_TM_GMTOFF.
65559         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
65560
65561         Module xalloc.
65562         * m4/xalloc.m4: New file.
65563
65564         Module alloca.
65565         * m4/alloca.m4: New file.
65566
65567         Module putenv.
65568         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
65569         (jm_FUNC_PUTENV): Invoke it.
65570
65571         Module setenv.
65572         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
65573         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
65574         when invoked twice.
65575         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
65576         gt_FUNC_SETENV.
65577
65578         Module memrchr.
65579         * m4/memrchr.m4: New file.
65580
65581         Module stpcpy.
65582         * m4/stpcpy.m4: New file.
65583
65584         Module strcase.
65585         * m4/strcase.m4: New file.
65586
65587         Module strdup.
65588         * m4/strdup.m4: New file.
65589
65590         Module strnlen.
65591         * m4/strnlen.m4: New file.
65592
65593         Module strndup.
65594         * m4/strndup.m4: New file.
65595
65596         Module xstrtod.
65597         * m4/xstrtod.m4: New file.
65598
65599         Module xstrtol.
65600         * m4/xstrtol.m4: New file.
65601
65602         Module getdate.
65603         * m4/getdate.m4: New file.
65604
65605         Module unlocked-io.
65606         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
65607         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
65608         * m4/jm-glibc-io.m4n: Remove file.
65609
65610         Module long-options.
65611         * m4/long-options.m4: New file.
65612
65613         Module md5.
65614         * m4/md5.m4: New file.
65615
65616         Module sha.
65617         * m4/sha.m4: New file.
65618
65619         Module getstr.
65620         * m4/getstr.m4: New file.
65621
65622         Module getline.
65623         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
65624         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
65625         <sys/types.h>, for size_t. Use the function name gnu_getline, not
65626         simply getline. Infoke gl_PREREQ_GETLINE.
65627
65628         Module obstack.
65629         * m4/obstack.m4: New file.
65630
65631         Module hash.
65632         * m4/hash.m4: New file.
65633
65634         Module readtokens.
65635         * m4/readtokens.m4: New file.
65636
65637         Module strverscmp.
65638         * m4/strverscmp.m4: New file.
65639
65640         Module stdbool.
65641         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
65642         OSF/1.
65643
65644         Module strtoll.
65645         * m4/strtoll.m4: New file.
65646
65647         Module strtoull.
65648         * m4/strtoull.m4: New file.
65649
65650         Module strtoimax.
65651         * m4/strtoimax.m4: New file.
65652
65653         Module strtoumax.
65654         * m4/strtoumax.m4: New file.
65655
65656         Module xstrtoimax.
65657         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
65658         jm_AC_PREREQ_XSTRTOIMAX.
65659         Moved the strtol prerequisites to strtol.m4.
65660         Moved the strtoll prerequisites to strtoll.m4.
65661         Moved the strtoimax prerequisites to strtoimax.m4.
65662
65663         Module xstrtoumax.
65664         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
65665         jm_AC_PREREQ_XSTRTOUMAX.
65666         Moved the strtoul prerequisites to strtoul.m4.
65667         Moved the strtoull prerequisites to strtoull.m4.
65668         Moved the strtoumax prerequisites to strtoumax.m4.
65669
65670         Module chown.
65671         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
65672         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
65673
65674         Module dup2.
65675         * m4/dup2.m4: New file.
65676
65677         Module ftruncate.
65678         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
65679         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
65680
65681         Module getgroups.
65682         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
65683         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
65684
65685         Module gettimeofday.
65686         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
65687         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
65688         gl_PREREQ_GETTIMEOFDAY.
65689
65690         Module mkdir.
65691         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
65692         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
65693
65694         Module mkstemp.
65695         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
65696         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
65697         jm_AC_TYPE_UINTMAX_T.
65698         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
65699
65700         Module stat.
65701         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
65702         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
65703
65704         Module lstat.
65705         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
65706         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
65707
65708         Module timespec.
65709         * m4/timespec.m4 (gl_TIMESPEC): New macro.
65710         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
65711         * m4/st_mtim.m4: Indentation.
65712
65713         Module nanosleep.
65714         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
65715         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
65716         gl_PREREQ_NANOSLEEP.
65717
65718         Module regex.
65719         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
65720         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
65721         (gl_REGEX): New macro.
65722
65723         Module rename.
65724         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
65725         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
65726
65727         Module rmdir.
65728         * m4/rmdir.m4: New file.
65729
65730         Module utime.
65731         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
65732         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
65733         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
65734
65735         Module dirname.
65736         * m4/dirname.m4: New file.
65737
65738         Module getopt.
65739         * m4/getopt.m4: New file.
65740
65741         Module unistd-safer.
65742         * m4/unistd-safer.m4: New file.
65743
65744         Module fnmatch.
65745         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
65746         declaration.
65747         (gl_PREREQ_FNMATCH_EXTRA): New macro.
65748         (gl_FUNC_FNMATCH_POSIX): New macro.
65749         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
65750         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
65751         simply fnmatch.
65752
65753         Module exclude.
65754         * m4/exclude.m4: New file.
65755
65756         Module human.
65757         * m4/human.m4: New file.
65758
65759         Module acl.
65760         * m4/acl.m4: Nop.
65761
65762         Module backupfile.
65763         * m4/backupfile.m4: New file.
65764         * m4/d-ino.m4: Indentation.
65765
65766         Module fsusage.
65767         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
65768         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
65769         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
65770
65771         Module dirfd.
65772         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
65773         requirements.
65774
65775         Module euidaccess.
65776         * m4/euidaccess.m4: New file.
65777
65778         Module file-type.
65779         * m4/file-type.m4: New file.
65780
65781         Module fileblocks.
65782         * m4/fileblocks.m4: New file.
65783
65784         Module filemode.
65785         * m4/filemode.m4: New file.
65786
65787         Module isdir.
65788         * m4/isdir.m4: New file.
65789
65790         Module lchown.
65791         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
65792         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
65793
65794         Module makepath.
65795         * m4/makepath.m4: New file.
65796
65797         Module modechange.
65798         * m4/modechange.m4: New file.
65799
65800         Module mountlist.
65801         * m4/mountlist.m4: New file.
65802         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
65803         Indentation.
65804
65805         Module path-concat.
65806         * m4/path-concat.m4: New file.
65807
65808         Module pathmax.
65809         * m4/pathmax.m4: New file.
65810
65811         Module same.
65812         * m4/same.m4: New file.
65813
65814         Module save-cwd.
65815         * m4/save-cwd.m4: New file.
65816
65817         Module savedir.
65818         * m4/savedir.m4: New file.
65819
65820         Module xgetcwd.
65821         * m4/xgetcwd.m4: New file.
65822         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
65823
65824         Module xreadlink.
65825         * m4/xreadlink.m4: New file.
65826
65827         Module safe-read.
65828         * m4/safe-read.m4: New file.
65829
65830         Module safe-write.
65831         * m4/safe-write.m4: New file.
65832
65833         Module closeout.
65834         * m4/closeout.m4: New file.
65835
65836         Module stdio-safer.
65837         * m4/stdio-safer.m4: New file.
65838
65839         Module getpass.
65840         * m4/getpass.m4: New file.
65841
65842         Module getugroups.
65843         * m4/getugroups.m4: New file.
65844
65845         Module group-member.
65846         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
65847         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
65848
65849         Module idcache.
65850         * m4/idcache.m4: New file.
65851
65852         Module userspec.
65853         * m4/userspec.m4: New file.
65854
65855         Module gettime.
65856         * m4/clock_time.m4: New file.
65857         * m4/gettime.m4: New file.
65858
65859         Module settime.
65860         * m4/settime.m4: New file.
65861
65862         Module posixtm.
65863         * m4/posixtm.m4: New file.
65864
65865         Module gethostname.
65866         * m4/gethostname.m4: New file.
65867
65868         Module canon-host.
65869         * m4/canon-host.m4: New file.
65870
65871         Module gettext.
65872         * m4/codeset.m4: New file, from gettext-0.11.5.
65873         * m4/gettext.m4: New file, from gettext-0.11.5.
65874         * m4/glibc21.m4: New file, from gettext-0.11.5.
65875         * m4/iconv.m4: New file, from gettext-0.11.5.
65876         * m4/intdiv0.m4: New file, from gettext-0.11.5.
65877         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
65878         * m4/inttypes.m4: New file, from gettext-0.11.5.
65879         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
65880         * m4/isc-posix.m4: New file, from gettext-0.11.5.
65881         * m4/lcmessage.m4: New file, from gettext-0.11.5.
65882         * m4/lib-ld.m4: New file, from gettext-0.11.5.
65883         * m4/lib-link.m4: New file, from gettext-0.11.5.
65884         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
65885         * m4/progtest.m4: New file, from gettext-0.11.5.
65886         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
65887         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
65888         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
65889
65890         Module localcharset.
65891         * m4/localcharset.m4: New file.
65892
65893         Module hard-locale.
65894         * m4/hard-locale.m4: New file.
65895
65896         Module mbswidth.
65897         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
65898         onceonly macros.
65899         * m4/mbrtowc.m4: Add comment.
65900
65901         Module memcasecmp.
65902         * m4/memcasecmp.m4: New file.
65903
65904         Module memcoll.
65905         * m4/memcoll.m4: New file.
65906
65907         Module unicodeio.
65908         * m4/unicodeio.m4: New file.
65909
65910         Module rpmatch.
65911         * m4/rpmatch.m4: New file.
65912
65913         Module yesno.
65914         * m4/yesno.m4: New file.
65915
65916         Module exitfail.
65917         * m4/exitfail.m4: New file.
65918
65919         Module c-stack.
65920         * m4/c-stack.m4 (gl_C_STACK): New macro.
65921         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
65922
65923         Module error.
65924         * m4/error.m4 (gl_ERROR): New macro.
65925         (jm_PREREQ_ERROR): Use onceonly macros.
65926
65927         Module fatal.
65928         * m4/fatal.m4: New file.
65929
65930         Module getloadavg.
65931         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
65932         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
65933
65934         Module getpagesize.
65935         * m4/getpagesize.m4: New file.
65936
65937         Module getusershell.
65938         * m4/getusershell.m4: New file.
65939
65940         Module physmem.
65941         * m4/physmem.m4: New file.
65942
65943         Module posixver.
65944         * m4/posixver.m4: New file.
65945
65946         Module quotearg.
65947         * m4/quotearg.m4: New file.
65948
65949         Module quote.
65950         * m4/quote.m4: New file.
65951
65952         Module readutmp.
65953         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
65954
65955         Module sig2str.
65956         * m4/sig2str.m4: New file.
65957
65958         Other.
65959         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
65960         ulonglong.m4.
65961         * m4/intmax_t.m4: New file.
65962         * m4/d-type.m4: Indentation.
65963         * m4/jm-macros.m4: Update.
65964         * m4/prereq.m4 (jm_PREREQ): Update.
65965         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
65966         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
65967         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
65968         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
65969         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
65970         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
65971         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
65972         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
65973         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
65974         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
65975         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
65976         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
65977         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
65978         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
65979         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
65980         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
65981         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
65982         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
65983         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
65984
65985 2002-12-24  Bruno Haible  <bruno@clisp.org>
65986
65987         * MODULES.txt: Update according to m4/ changes.
65988
65989         Module gettext.
65990         * config.rpath: New file, from gettext-0.11.5.
65991
65992         * modules/*: New module descriptions.
65993         * gnulib-tool: New file.
65994         * MODULES.html.sh: New file.
65995
65996 2002-12-21  Karl Berry  <karl@gnu.org>
65997
65998         * doc/fdl.texi: update to version 1.2.
65999
66000 2002-12-19  Karl Berry  <karl@gnu.org>
66001
66002         * config/config.guess: update from prep.
66003
66004 2002-12-18  Bruno Haible  <bruno@clisp.org>
66005
66006         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
66007         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
66008
66009 2002-12-17  Bruno Haible  <bruno@clisp.org>
66010
66011         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
66012         stdlib.h, string.h.
66013
66014 2002-12-17  Bruno Haible  <bruno@clisp.org>
66015
66016         * lib/canon-host.c (strdup): Remove unused declaration.
66017
66018         * lib/fsusage.c: Include full_read.h.
66019         (get_fs_usage): Use full_read instead of safe_read.
66020
66021         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
66022
66023 2002-12-12  Karl Berry  <karl@gnu.org>
66024
66025         * config/config.guess: update from prep.
66026
66027 2002-12-11  Bruno Haible  <bruno@clisp.org>
66028
66029         * m4/setenv.m4: New file, from gettext-0.11.5.
66030
66031 2002-12-11  Bruno Haible  <bruno@clisp.org>
66032
66033         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
66034         not unsetenv().
66035         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
66036         modifications:
66037
66038         2002-12-11  Bruno Haible  <bruno@clisp.org>
66039
66040                 * setenv.c (alloca): Fall back to malloc.
66041                 (freea): New macro.
66042                 (setenv): Use freea() to free memory allocated with alloca().
66043
66044         2002-11-13  Bruno Haible  <bruno@clisp.org>
66045
66046                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
66047                 function declarations.
66048                 * unsetenv.c (unsetenv): Likewise.
66049
66050         2002-03-04  Bruno Haible  <bruno@clisp.org>
66051
66052                 Portability to AIX 4.3.3.
66053                 * unsetenv.c: New file, extracted from setenv.c.
66054                 * setenv.c: Move the unsetenv() function to unsetenv.c.
66055
66056         2001-12-20  Bruno Haible  <bruno@clisp.org>
66057
66058                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
66059                 use malloc instead. For SunOS 4.
66060
66061         2001-12-11  Bruno Haible  <bruno@clisp.org>
66062
66063                 * setenv.c: Declare alloca.
66064                 (compar_fn_t): New typedef.
66065                 (KNOWN_VALUE, STORE_VALUE): Use it.
66066
66067         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
66068         setenv.h.
66069
66070 2002-12-10  Paul Eggert  <eggert@twinsun.com>
66071
66072         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
66073         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
66074         Choose values that are less likely to collide with system fnmatch
66075         options.
66076         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
66077         defined (e.g., a pure POSIX system).
66078         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
66079         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
66080
66081 2002-12-06  Paul Eggert  <eggert@twinsun.com>
66082
66083         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
66084         a pain in practice to deal with generated m4 files.  This change
66085         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
66086
66087         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
66088         and jm-glibc-io.m4, as they are no longer a special case.
66089         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
66090         kludge and the auto-generation stuff.  Check only whether the
66091         functions are declared, not whether they exist, since older hosts
66092         that don't declare the functions can't use the optimization anyway.
66093
66094 2002-12-06  Jim Meyering  <jim@meyering.net>
66095
66096         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
66097
66098         Merge in changes from libc's misc/error.c, in preparation
66099         for the merge of gnulib's changes back into libc.
66100
66101         * lib/error.c (_): Define only if not already defined.
66102         Move definition to follow all #include directives.
66103         Include unlocked-io.h only if !_LIBC.
66104         [_LIBC]: Include <libio/libioP.h>.
66105         [USE_IN_LIBIO]: Include <libio/iolibio.h>
66106         (fflush): Tweak definition to use INTUSE.
66107         (putc): Define.
66108
66109 2002-12-05  Paul Eggert  <eggert@twinsun.com>
66110
66111         * lib/alloca.c [defined emacs]: Include "lisp.h".
66112         (xalloc_die) [defined emacs]: New macro.
66113         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
66114         [! defined emacs]: Include <xalloc.h>.
66115         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
66116         (pointer): Typedef to POINTER_TYPE *.
66117         (malloc): Remove decl; we now always use xmalloc.
66118         (alloca): Use old-style definition, since Emacs needs this.
66119         Check for arithmetic overflow when computing combined size.
66120
66121 2002-12-04  Paul Eggert  <eggert@twinsun.com>
66122
66123         Do not generate unlocked-io.h automatically, since it's easier to
66124         maintain it by hand.
66125
66126         * lib/unlocked-io.h: New file, from GNU diffutils,
66127         but with proper copyright notice and attribution.
66128         * lib/gen-uio: Remove.
66129         * lib/Makefile.am: Add copyright notice.
66130         (libfetish_a_SOURCES): Add unlocked-io.h.
66131         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
66132         (DISTCLEANFILES, io_functions): Remove macros.
66133         (EXTRA_DIST): Remove gen_uio.
66134         (unlocked-io.h): Remove rule.
66135
66136 2002-12-04  Jim Meyering  <jim@meyering.net>
66137
66138         Reflect the fact that stat.c and lstat.c are no longer generated.
66139         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
66140         (DISTCLEANFILES): Likewise.
66141         (EXTRA_DIST): Likewise.
66142         (all_local): Don't depend on stat.c or lstat.c.
66143         (stat.c, lstat.c): Remove rules.
66144         (EXTRA_DIST): Remove xstat.in.
66145
66146         * lib/xstat.in: Remove file.  Contents moved into stat.c.
66147         * lib/stat.c: New file.  Contents mostly from xstat.in.
66148         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
66149         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
66150
66151         * lib/safe-read.c: Rework so that it may serve to define safe_write,
66152         too.
66153         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
66154
66155 2002-12-03  Jim Meyering  <jim@meyering.net>
66156
66157         * lib/safe-read.c, safe-write.c: Change variable names and comments,
66158         but not semantics, to minimize the differences between these two files.
66159         (safe_read): Change comment to mention SAFE_READ_ERROR.
66160
66161         * lib/safe-read.c (IS_EINTR): Define.
66162         (safe_read): Use IS_EINTR in place of in-function cpp directives.
66163
66164 2002-12-02  Jim Meyering  <jim@meyering.net>
66165
66166         * lib/safe-read.c (EINTR): Define.
66167         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
66168         (INT_MAX): Provide fallback.
66169         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
66170
66171         * lib/safe-read.h (SAFE_READ_ERROR): Define.
66172
66173 2002-12-02  Bruno Haible  <bruno@clisp.org>
66174
66175         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
66176         Define, taken from safe-read.c.
66177         (INT_MAX): Provide fallback.
66178         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
66179         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
66180
66181         * lib/safe-read.c (EINTR): Remove definition.
66182         (safe_read): Don't use EINTR if it is absent.
66183
66184 2002-12-01  Jim Meyering  <jim@meyering.net>
66185
66186         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
66187         zero.
66188         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
66189
66190 2002-11-27  Paul Eggert  <eggert@twinsun.com>
66191
66192         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
66193         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
66194         with `if (! (value < limit)) abort ();', for readability.
66195
66196 2002-11-26  Karl Berry  <karl@gnu.org>
66197
66198         * lib/strdup.c: copy from libc again, with jim's ok.
66199         * lib/.cppi-disable: re-add strdup.c
66200
66201 2002-11-25  Karl Berry  <karl@gnu.org>
66202
66203         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
66204         instead of "strtol.c".
66205
66206 2002-11-25  Karl Berry  <karl@gnu.org>
66207
66208         * config/install-sh: update from automake for variable quoting, $0 in
66209         error msgs, etc.
66210
66211         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
66212         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
66213         entry.
66214
66215 2002-11-25  Jim Meyering  <jim@meyering.net>
66216
66217         * lib/mktime.c: Sync from libc, now that it has the latest fix.
66218
66219 2002-11-24  Karl Berry  <karl@gnu.org>
66220
66221         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
66222         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
66223
66224 2002-11-24  Jim Meyering  <jim@meyering.net>
66225
66226         Update from coreutils:
66227
66228         * lib/mktime.c: Merge in changes from libc.
66229
66230         Avoid a link-time failure on some Linux systems.
66231         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
66232         (otherwise).
66233         (__mon_yday): Declare with the STATIC attribute.
66234         (__mktime_internal): Likewise.
66235         Based on a report from Greg Schafer.
66236
66237 2002-11-23  Jim Meyering  <jim@meyering.net>
66238
66239         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
66240         Use `unsigned', not `int', as type of index.
66241
66242         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
66243
66244         * lib/fsusage.c: Remove unneeded parentheses around operands of
66245         `defined'.
66246
66247 2002-11-22  Paul Eggert  <eggert@twinsun.com>
66248
66249         * lib/quotearg.h: Allow multiple inclusion by surrounding with
66250         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
66251         so that we can be included first.
66252         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
66253         * lib/quotearg.c: Include quotearg.h immediately after config.h.
66254         No need to include stddef.h or sys/types.h any more.
66255         Surround local include files with "", not "<>".
66256         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
66257         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
66258         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
66259         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
66260         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
66261         (ISPRINT): Remove; no longer needed now that we assume C89.
66262
66263         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
66264         Preserve errno.
66265
66266         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
66267         quotearg_char): Use SIZE_MAX rather than
66268         (size_t) -1 when we are talking about "infinity".
66269
66270         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
66271
66272 2002-11-22  Paul Eggert  <eggert@twinsun.com>
66273
66274         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
66275         hint that one should use `if (! x) abort ();' rather than `assert
66276         (x);', and anyway it's one less thing to worry about configuring.
66277         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
66278         hash_rehash, hash_insert): Use abort rather than assert.
66279
66280 2002-11-22  Bruno Haible  <bruno@clisp.org>
66281
66282         * lib/safe-read.h: Assume C89. Add comments.
66283         (safe_read): Change return type to size_t.
66284         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
66285         byte counts > SSIZE_MAX correctly.
66286         * lib/safe-write.h: New file.
66287         * lib/safe-write.c: New file.
66288         * lib/full-read.h: New file.
66289         * lib/full-read.c: New file.
66290         * lib/full-write.h: Assume C89. Add comments.
66291         * lib/full-write.c: Include safe-write.h.
66292         (full_write): Rewritten to use safe_write.
66293         Suggested by Jim Meyering and Paul Eggert.
66294
66295 2002-11-21  Jim Meyering  <jim@meyering.net>
66296
66297         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
66298
66299         Merge in changes from the coreutils.
66300
66301         2002-09-25  Paul Eggert  <eggert@twinsun.com>
66302         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
66303         <stdint.h>.
66304         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
66305         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
66306         int.  Work more efficiently if X is the same width as uintmax_t.
66307         Do not compare X to -1, to avoid bogus compiler warning.
66308         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
66309         Don't assume that f_frsize and f_bsize are the same type.
66310
66311         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
66312         warning on FreeBSD.
66313
66314         * lib/makepath.c (make_path): Restore umask *before* creating the final
66315         component.
66316         (make_path): Minor reformatting.
66317
66318         * lib/xmalloc.c: Adjust to work with new autoconf macros,
66319         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
66320         HAVE_MALLOC/HAVE_REALLOC.
66321
66322         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
66323         dummy ones.  At least on GNU/Linux systems, `auto' means something
66324         else.
66325         From Michael Stone.
66326
66327 2002-11-21  Bruno Haible  <bruno@clisp.org>
66328
66329         Remove case insensitive option matching.
66330         * lib/argmatch.h (argcasematch): Remove declaration.
66331         (ARGCASEMATCH): Remove macro.
66332         (__xargmatch_internal): Remove case_sensitive argument.
66333         (XARGMATCH): Update.
66334         (XARGCASEMATCH): Remove macro.
66335         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
66336         case_sensitive argument.
66337         (argcasematch): Remove function.
66338         (__xargmatch_internal): Remove case_sensitive argument.
66339         (main): Use XARGMATCH instead of XARGCASEMATCH.
66340
66341         * lib/xmalloc.c: Change compile-time error message. Add comment about
66342         required autoconf version.
66343
66344 2002-11-20  Paul Eggert  <eggert@twinsun.com>
66345
66346         Merge argmatch cleanups from Bison.  Assume C89.
66347
66348         * lib/argmatch.c: Include config.h here, not in argmatch.h.
66349         Include stdlib.h, for EXIT_FAILURE.
66350         Always include <string.h>, since we assume C89.
66351         (EXIT_FAILURE): Remove pre-C89 bug workaround.
66352         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
66353         Include <stddef.h> instead, since it's all we need for size_t.
66354         (PARAMS): Remove.  All uses removed.
66355         (ARRAY_CARDINALITY): Do not bother to #undef.
66356         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
66357         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
66358         Remove unnecessary parentheses.
66359         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
66360         Insert necessary parentheses.
66361         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
66362         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
66363
66364 2002-11-19  Bruno Haible  <bruno@clisp.org>
66365
66366         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
66367         * lib/mbswidth.h: Include <stddef.h>, for size_t.
66368
66369         * lib/mbswidth.h (PARAMS): Remove macro.
66370         (mbswidth, mbsnwidth): Use ANSI C function declarations.
66371         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
66372
66373         * lib/gcd.h (PARAMS): Remove macro.
66374         (gcd): Use ANSI C function declarations.
66375         * lib/gcd.c (gcd): Likewise.
66376
66377 2002-11-15  Bruno Haible  <bruno@clisp.org>
66378
66379         * lib/strcspn.c: Include <stddef.h>.
66380         (strcspn): Use ANSI C function declaration. Change return type to
66381         size_t. Use NULL.
66382         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
66383         (strpbrk): Use NULL.
66384         * lib/strpbrk.h (PARAMS): Remove macro.
66385         (strpbrk): Use ANSI C function declaration.
66386         * lib/strstr.c: Don't include <sys/types.h>.
66387         * lib/strstr.h (PARAMS): Remove macro.
66388         (strstr): Use ANSI C function declarations.
66389
66390 2002-11-14  Karl Berry  <karl@gnu.org>
66391
66392         * config/mkinstalldirs: `do' on separate line, instead of
66393         `for var; do'.
66394
66395 2002-11-06  Bruno Haible  <bruno@clisp.org>
66396
66397         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
66398         * lib/gcd.c (gcd): Likewise.
66399
66400 2002-11-05  Bruno Haible  <bruno@clisp.org>
66401
66402         * lib/gcd.h: New file, from gettext-0.11.5.
66403         * lib/gcd.c: New file, from gettext-0.11.5.
66404
66405 2002-11-05  Bruno Haible  <bruno@clisp.org>
66406
66407         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
66408         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
66409         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
66410         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
66411
66412         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
66413         <libintl.h>.
66414         * lib/makepath.c: Include gettext.h instead of <locale.h> and
66415         <libintl.h>.
66416
66417         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
66418         * lib/human.c: Include gettext.h instead of <libintl.h>.
66419         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
66420         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
66421         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
66422         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
66423         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
66424         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
66425         (textdomain): Remove definition.
66426         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
66427
66428         * lib/long-options.c: Remove include of <libintl.h> and definition of
66429         _.
66430         * lib/same.c: Remove include of <libintl.h> and definition of _.
66431
66432 2002-11-04  Owen Taylor  <otaylor@redhat.com>
66433
66434         * lib/config.charset: A few additions for Solaris.
66435
66436 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
66437
66438         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
66439         * lib/localcharset.c (locale_charset): Declare as extern "C".
66440
66441 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
66442
66443         * lib/config.charset: msdos in uk_UA uses CP1125.
66444
66445 2002-11-04  Bruno Haible  <bruno@clisp.org>
66446
66447         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
66448         * lib/strcase.h: New file, from GNU gettext-0.11.5.
66449         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
66450         * lib/strstr.h: New file, from GNU gettext-0.11.5.
66451         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
66452
66453 2002-11-04  Bruno Haible  <bruno@clisp.org>
66454
66455         * lib/localcharset.c (locale_charset): Don't return an empty string.
66456
66457 2002-11-04  Bruno Haible  <bruno@clisp.org>
66458
66459         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
66460         aliases.
66461
66462 2002-11-04  Bruno Haible  <bruno@clisp.org>
66463
66464         * lib/config.charset: Update for newest glibc. Add canonical names
66465         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
66466
66467 2002-11-04  Bruno Haible  <bruno@clisp.org>
66468
66469         * lib/config.charset: Add support for NetBSD.
66470
66471 2002-11-04  Bruno Haible  <bruno@clisp.org>
66472
66473         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
66474
66475 2002-11-01  Bruno Haible  <bruno@clisp.org>
66476
66477         * configure.in: Add AC_CONFIG_AUX_DIR call.
66478         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
66479         test/Makefile.
66480         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
66481
66482 2002-09-28  Karl Berry  <karl@gnu.org>
66483
66484         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
66485         installed automake until the next release, since changes have been
66486         made.
66487
66488 2002-09-25  Karl Berry  <karl@gnu.org>
66489
66490         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
66491         * lib/getopt*: copy from libc/posix.
66492         * lib/gettext.h: copy from gettext.
66493         * lib/.cppi-disable: add strdup.c, gettext.h.
66494
66495 2002-09-25  Karl Berry  <karl@gnu.org>
66496
66497         * config/srclist.txt: enable gettext.h check.
66498         * config/config.{guess,sub}: update from prep.
66499         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
66500                 from automake 1.6.3.
66501         See srclist*.
66502
66503 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
66504
66505         * regex.c (PATFETCH): Remove the translating fetch.
66506         (PATFETCH_RAW): Rename to PATFETCH.
66507         (set_image_of_range): New fun.
66508         (SET_RANGE_TABLE_WORK_AREA): Use it.
66509         (regex_compile): Don't translate the pattern chars so eagerly.
66510         Only do it when inserting an `exactn' bytecode or when handling
66511         a char-range.
66512         (mutually_exclusive_p): Avoid empty statement.
66513
66514 2002-07-06  Jim Meyering  <meyering@lucent.com>
66515
66516         * m4/README: Don't mention Makefile.am.in.
66517         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
66518
66519 2002-07-01  Jim Meyering  <meyering@lucent.com>
66520
66521         * lib/c-stack.c: Include sys/time.h.
66522         From Volker Borchert.
66523
66524 2002-06-26  Paul Eggert  <eggert@twinsun.com>
66525
66526         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
66527
66528 2002-06-26  Paul Eggert  <eggert@twinsun.com>
66529
66530         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
66531         New macro.  Use it uniformly instead of
66532         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
66533         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
66534         reported by Vin Shelton.
66535
66536 2002-06-22  Paul Eggert  <eggert@twinsun.com>
66537
66538         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
66539         Do not assume SA_SIGINFO behavior.
66540         Bug reported by Jim Meyering on NetBSD 1.5.2.
66541
66542 2002-06-22  Jim Meyering  <meyering@lucent.com>
66543
66544         * m4/c-stack.m4: New file, from diffutils-2.8.2.
66545         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
66546
66547         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
66548         now that configure.ac uses AC_GNU_SOURCE.
66549         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
66550         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
66551
66552         Update to latest tools.  Suggestions from Paul Eggert.
66553         * m4/stdbool.m4: New file, from diffutils-2.8.2.
66554         * m4/gnu-source.m4: Update from diffutils-2.8.2.
66555         * m4/fnmatch.m4: Likewise.
66556         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
66557         to AC_HEADER_STDBOOL
66558
66559 2002-06-22  Jim Meyering  <meyering@lucent.com>
66560
66561         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
66562         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
66563
66564 2002-06-22  Jim Meyering  <meyering@lucent.com>
66565
66566         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
66567
66568         * lib/exitfail.c, exitfail.h: Likewise.
66569         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
66570
66571         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
66572         of fnmatch.h.
66573         (EXTRA_DIST): Add fnmatch_loop.c.
66574         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
66575
66576         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
66577         * lib/fnmatch.c: Update from diffutils-2.8.2.
66578         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
66579         * lib/fnmatch.h: Remove file.
66580
66581 2002-06-21  Jim Meyering  <meyering@lucent.com>
66582
66583         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
66584         * m4/mbrtowc.m4: Likewise.
66585
66586         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
66587         * m4/mbswidth.m4: Reflect name change:
66588         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
66589         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
66590
66591         * m4/lib-link.m4: Update from gettext-0.11.2.
66592         * m4/gettext.m4: Likewise.
66593
66594         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
66595         From Alfred M. Szmidt.
66596
66597 2002-06-18  Paul Eggert  <eggert@twinsun.com>
66598
66599         * lib/file-type.h: Report an error if neither S_ISREG nor
66600         S_IFREG is defined, instead of using a test specific to glibc
66601         2.2.  This should be safe, since POSIX requires S_ISREG and
66602         Unix Version 7 had S_IFREG.  We don't need to check for
66603         <sys/types.h> since we don't use any symbols that it defines.
66604
66605 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
66606
66607         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
66608         $@-t, so that each temporary file name is unique and valid in the first
66609         8 characters, for operation under DOS.
66610
66611 2002-06-15  Paul Eggert  <eggert@twinsun.com>
66612
66613         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
66614
66615 2002-06-15  Jim Meyering  <meyering@lucent.com>
66616
66617         Work even with DJGPP 2.03, which lacks support for symlinks.
66618         From Richard Dawe.
66619         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
66620         is defined.
66621         * lib/lchown.c (S_ISLNK): Likewise.
66622
66623 2002-06-15  Jim Meyering  <meyering@lucent.com>
66624
66625         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
66626         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
66627         have been included before this file.
66628
66629 2002-06-14  Jim Meyering  <meyering@lucent.com>
66630
66631         * lib/file-type.h: Use the version from diffutils-2.8.2.
66632         * lib/file-type.c: Likewise.
66633
66634 2002-06-07  Jim Meyering  <meyering@lucent.com>
66635
66636         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
66637         They're needed at least for NetBSD 1.5.2.
66638         ($statxfs_includes): Include those same headers.
66639         ($statxfs_includes): Include sys/vfs.h if available.
66640         ($statxfs_includes): Likewise for sys/statvfs.h.
66641         Check for the following members in both structs statfs and statvfs:
66642         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
66643
66644 2002-06-01  Jim Meyering  <meyering@lucent.com>
66645
66646         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
66647         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
66648
66649 2002-05-28  Jim Meyering  <meyering@lucent.com>
66650
66651         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
66652         Reported by Volker Borchert.
66653
66654 2002-05-27  Jim Meyering  <meyering@lucent.com>
66655
66656         Fix a problem seen only on nonconforming systems whereby ls.c's
66657         use of localtime, and then of gettimeofday would cause trouble:
66658         the localtime call used to initialize rpl_gettimeofday's save
66659         mechanism would clobber ls's current local time information so
66660         that in any long listing the first file would always be listed
66661         with date 1970-01-01.  Analysis by Volker Borchert.
66662
66663         * lib/gettimeofday.c (localtime): Undefine.
66664         (rpl_localtime): New function.
66665
66666 2002-05-27  Jim Meyering  <meyering@lucent.com>
66667
66668         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
66669         localtime.
66670
66671         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
66672         use the replacement function; it wouldn't resolve at link time.
66673         Reported by Volker Borchert.
66674
66675 2002-05-22  Jim Meyering  <meyering@lucent.com>
66676
66677         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
66678         file-type.h.
66679         * lib/file-type.h: New file.
66680         * lib/file-type.c (file_type): New file/function.  Extracted from
66681         diffutils.
66682
66683 2002-04-30  Jim Meyering  <meyering@lucent.com>
66684
66685         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
66686
66687 2002-04-29  Paul Eggert  <eggert@twinsun.com>
66688
66689         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
66690
66691 2002-04-29  Paul Eggert  <eggert@twinsun.com>
66692
66693         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
66694         Do not check for alloca.h (no longer used) or stdbool.h (was never
66695         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
66696
66697 2002-04-29  Paul Eggert  <eggert@twinsun.com>
66698
66699         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
66700
66701 2002-04-29  Jim Meyering  <meyering@lucent.com>
66702
66703         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
66704         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
66705         Use AC_FUNC_STRNLEN here instead.
66706
66707         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
66708         With autoconf-2.53a, it's part of AC_PROG_CC.
66709
66710 2002-04-28  Paul Eggert  <eggert@twinsun.com>
66711
66712         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
66713         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
66714
66715 2002-04-28  Paul Eggert  <eggert@twinsun.com>
66716
66717         * lib/sig2str.h, lib/sig2str.c: New files.
66718         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
66719
66720 2002-04-28  Paul Eggert  <eggert@twinsun.com>
66721
66722         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
66723         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
66724         of 127, since 64 is the largest conceivable number for ancient
66725         nonstandard hosts.
66726         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
66727
66728 2002-04-28  Jim Meyering  <meyering@lucent.com>
66729
66730         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
66731
66732 2002-04-24  Jim Meyering  <meyering@lucent.com>
66733
66734         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
66735         (jm_PREREQ): Use it.
66736
66737         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
66738         mach/mach.h fcntl.h.
66739         Check for this function: setlocale.
66740
66741 2002-04-24  Jim Meyering  <meyering@lucent.com>
66742
66743         * lib/gettext.h: New file, from Gettext.
66744         * lib/Makefile.am (INCLUDES): Remove -I../intl.
66745         (libfetish_a_SOURCES): Add gettext.h.
66746
66747 2002-04-16  Jim Meyering  <meyering@lucent.com>
66748
66749         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
66750         ut_pid, ut_id, ut_exit.
66751
66752 2002-04-16  Jim Meyering  <meyering@lucent.com>
66753
66754         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
66755         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
66756         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
66757
66758 2002-04-12  Jim Meyering  <meyering@lucent.com>
66759
66760         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
66761         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
66762         existence of the getmntinfo function.  Needed for Darwin 5.3.
66763
66764         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
66765         This is necessary at least on Darwin 5.3.
66766
66767         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
66768         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
66769         strnlen.o in the library, and that makes some versions of ranlib
66770         object.
66771
66772 2002-04-12  Jim Meyering  <meyering@lucent.com>
66773
66774         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
66775
66776 2002-04-09  Jim Meyering  <meyering@lucent.com>
66777
66778         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
66779         to be more precise.  Rather than saying we're checking whether the
66780         function `works', say what we're testing.
66781         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
66782         Reported by Bruno Haible.
66783
66784 2002-03-10  Jim Meyering  <meyering@lucent.com>
66785
66786         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
66787         Suggestion from Santiago Vila.
66788
66789 2002-03-08  Jim Meyering  <meyering@lucent.com>
66790
66791         * lib/rename.c: Mention that this wrapper is needed also on
66792         mips-dec-ultrix4.4 systems.
66793
66794 2002-03-02  Jim Meyering  <meyering@lucent.com>
66795
66796         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
66797         not HAVE_CLOCK_SETTIME.
66798
66799 2002-02-27  Paul Eggert  <eggert@twinsun.com>
66800
66801         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
66802         Check for clock_settime.
66803
66804 2002-02-27  Paul Eggert  <eggert@twinsun.com>
66805
66806         * lib/nanosleep.h: Rename to....
66807         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
66808
66809         * lib/gettime.c: New file.
66810         * lib/settime.c: New file.
66811         * lib/stime.c: Remove.
66812
66813         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
66814         timespec.h.  Remove nanosleep.h.
66815
66816 2002-02-25  Paul Eggert  <eggert@twinsun.com>
66817
66818         * m4/acl.m4: New file.
66819         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
66820         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
66821
66822 2002-02-25  Paul Eggert  <eggert@twinsun.com>
66823
66824         * lib/acl.c, lib/acl.h: New files.
66825         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
66826
66827 2002-02-24  Jim Meyering  <meyering@lucent.com>
66828
66829         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
66830         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
66831         cause trouble.  Reported by Nelson Beebe.
66832
66833 2002-02-23  Paul Eggert  <eggert@twinsun.com>
66834
66835         * lib/path-concat.c (xpath_concat): Reorder code to pacify
66836         compilers that don't know that xalloc_die never returns.
66837
66838 2002-02-20  Jim Meyering  <meyering@lucent.com>
66839
66840         * lib/getdate.c: Regenerate using bison-1.33.
66841
66842 2002-02-17  Jim Meyering  <meyering@lucent.com>
66843
66844         * config/config.guess (main): Don't use `head -1'; it's no longer
66845         portable. Use `sed 1q' instead.
66846
66847 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
66848
66849         * m4/codeset.m4: Upgrade to gettext-0.11.
66850         * m4/gettext.m4: Upgrade to gettext-0.11.
66851         * m4/glibc21.m4: Upgrade to gettext-0.11.
66852         * m4/iconv.m4: Upgrade to gettext-0.11.
66853         * m4/isc-posix.m4: Upgrade to gettext-0.11.
66854         * m4/lcmessage.m4: Upgrade to gettext-0.11.
66855         * m4/lib-ld.m4: New file, from gettext-0.11.
66856         * m4/lib-link.m4: New file, from gettext-0.11.
66857         * m4/lib-prefix.m4: New file, from gettext-0.11.
66858         * m4/progtest.m4: Upgrade to gettext-0.11.
66859
66860 2002-02-15  Paul Eggert  <eggert@twinsun.com>
66861
66862         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
66863         (jm_PREREQ): Use it.
66864
66865 2002-02-15  Paul Eggert  <eggert@twinsun.com>
66866
66867         * lib/posixver.c, lib/posixver.h: New files.
66868         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
66869
66870 2002-02-02  Paul Eggert  <eggert@twinsun.com>
66871             Bruno Haible  <bruno@clisp.org>
66872
66873         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
66874         (fwrite_success_callback): New declaration.
66875         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
66876         print_unicode_char. Call failure callback instead of error.
66877         (fwrite_success_callback): New function.
66878         (exit_failure_callback): New function.
66879         (fallback_failure_callback): New function.
66880         (print_unicode_char): Call unicode_to_mb.
66881
66882 2002-01-26  Jim Meyering  <meyering@lucent.com>
66883
66884         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
66885         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
66886
66887 2002-01-26  Jim Meyering  <meyering@lucent.com>
66888
66889         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
66890
66891 2002-01-22  Paul Eggert  <eggert@twinsun.com>
66892
66893         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
66894
66895 2002-01-22  Jim Meyering  <meyering@lucent.com>
66896
66897         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
66898         Otherwise, some versions of automake would omit the rule that makes
66899         Makefile from Makefile.in.
66900
66901 2002-01-21  Paul Eggert  <eggert@twinsun.com>
66902
66903         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
66904         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
66905         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
66906         (memcoll): Set errno to zero if there is no error.
66907
66908         * lib/quotearg.c (quotearg_buffer_restyled):
66909         Fix bug with quoting buffers containing NUL when backslashing escapes.
66910         This bug was exposed by the other changes in this patch.
66911         (quotearg_n_options): New arg ARGSIZE.
66912         All callers changed.
66913         (quoting_options_from_style): New function.
66914         (quotearg_n_style): Use it.
66915         (quotearg_n_style_mem): New function.
66916
66917         * lib/quotearg.h (quotearg_n_style_mem): New function.
66918
66919 2002-01-19  Jim Meyering  <meyering@lucent.com>
66920
66921         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
66922         Remove useless quotes: DF_PROG="df".
66923         * m4/strnlen.m4: New file.
66924
66925 2002-01-16  Paul Eggert  <eggert@twinsun.com>
66926
66927         * lib/backupfile.c (ISDIGIT): Comment fix.
66928         * lib/getdate.y (ISDIGIT): Likewise.
66929         * lib/posixtm.c (ISDIGIT, year): Likewise.
66930         * lib/strverscmp.c (ISDIGIT): Likewise.
66931         * lib/userspec.c (ISDIGIT): Likewise.
66932
66933 2002-01-16  Jim Meyering  <meyering@lucent.com>
66934
66935         * lib/getdate.y: Add three semicolons, each just before a closing
66936         brace. Bison (as of version 1.31) no longer papers over that mistake.
66937
66938 2002-01-05  Jim Meyering  <meyering@lucent.com>
66939
66940         * lib/version-etc.c (version_etc_copyright): Update copyright year.
66941
66942 2001-12-19  Paul Eggert  <eggert@twinsun.com>
66943
66944         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
66945         not silently exit merely because the output buffer happens to
66946         have nothing pending.
66947
66948 2001-12-18  Paul Eggert  <eggert@twinsun.com>
66949
66950         See the big note in ../ChangeLog.
66951         * lib/human.c (suffixes): Prefer K to k for 1024.
66952         (generate_suffix_backwards): New function.
66953         (human_readable_inexact): Use it.
66954         * lib/xstrtol.c (__xstrtol): If there is no number but there
66955         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
66956         Accept 'K' as well as 'k'.
66957
66958 2001-12-15  Jim Meyering  <meyering@lucent.com>
66959
66960         * lib/regex.h (__restrict_arr): Update from libc.
66961
66962         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
66963         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
66964         (STREQ): Define.
66965
66966 2001-12-14  Jim Meyering  <meyering@lucent.com>
66967
66968         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
66969         Suggestion from Bruno Haible.
66970
66971 2001-12-10  Jim Meyering  <meyering@lucent.com>
66972
66973         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
66974         xrealloc, Instead, include "xalloc.h".
66975         (initbuffer): Don't cast xmalloc return value to char*.
66976         (readline): Reword comment.
66977         Don't cast xrealloc return value to char*
66978         Return NULL, not 0.
66979
66980 2001-12-09  Jim Meyering  <meyering@lucent.com>
66981
66982         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
66983         about `signed and unsigned type in conditional expression'.
66984         * lib/posixtm.c (posix_time_parse): Likewise.
66985
66986         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
66987
66988         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
66989         to avoid a pedantic warning.
66990
66991         * lib/getstr.c: Don't include assert.h.
66992         (getstr): Remove warning-evoking assertions.
66993         Return -1 if offset parameter is out of bounds.
66994         Change the type of a local from int to size_t.
66995
66996         * lib/strftime.c (my_strftime_localtime_r): Include this function
66997         definition in the `#if ! HAVE_TM_GMTOFF' block.
66998
66999         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
67000         Include xalloc.h instead.
67001
67002 2001-12-02  Jim Meyering  <meyering@lucent.com>
67003
67004         * lib/tempname.c: Don't declare getenv, thus reverting the change of
67005         2001-11-18.  It's no longer necessary, now that stdlib.h is always
67006         included.
67007
67008         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
67009         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
67010
67011 2001-11-30  Akim Demaille  <akim@epita.fr>
67012
67013         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
67014         before being defined.
67015
67016 2001-11-27  Paul Eggert  <eggert@twinsun.com>
67017
67018         * lib/quotearg.h (quotearg_n, quotearg_n_style):
67019         First arg is int, not unsigned.
67020         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
67021         (SIZE_MAX, UINT_MAX): New macros.
67022         (quotearg_n_options): Abort if N is negative.
67023         Avoid overflow check on hosts where size_t is 64 bits and int
67024         is 32 bits, as overflow is impossible there.
67025         Fix off-by-one typo that caused unnecessary reallocation.
67026
67027 2001-11-27  Jim Meyering  <meyering@lucent.com>
67028
67029         * lib/tempname.c: Merge with version from libc.
67030         * lib/regex.c: Likewise.
67031
67032         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
67033         systems for which STDC_HEADERS is 0, it was not included, resulting in
67034         a warning about an integer-to-pointer conversion problem with getenv.
67035         Reported by Volker Borchert.
67036
67037 2001-11-26  Jim Meyering  <meyering@lucent.com>
67038
67039         * lib/gtod.h: Remove file.
67040         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
67041         * lib/gettimeofday.c: Don't include gtod.h.
67042         (GTOD_init): Remove function.
67043         (rpl_gettimeofday): Do its job here instead, rather than aborting.
67044         Suggestion from Volker Borchert.
67045
67046 2001-11-23  Jim Meyering  <meyering@lucent.com>
67047
67048         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
67049         it.
67050         * lib/hash.c (struct hash_table): Define it here instead.
67051
67052 2001-11-22  Jim Meyering  <meyering@lucent.com>
67053
67054         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
67055
67056 2001-11-20  Jim Meyering  <meyering@lucent.com>
67057
67058         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
67059         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
67060
67061 2001-11-19  Jim Meyering  <meyering@lucent.com>
67062
67063         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
67064         directory.  Use "conftestXXXXXX" as the template.
67065         Suggestion from Paul Eggert.
67066
67067         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
67068         immediately, so the test doesn't mistakenly hit the max-open-files
67069         limit.
67070
67071 2001-11-18  Paul Eggert  <eggert@twinsun.com>
67072
67073         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
67074         (TEMPORARIES): New macro.
67075         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
67076         removes an artificial limitation (e.g. HP-UX 10.20, where
67077         TMP_MAX is 17576).
67078
67079 2001-11-18  Jim Meyering  <meyering@lucent.com>
67080
67081         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
67082
67083 2001-11-18  Jim Meyering  <meyering@lucent.com>
67084
67085         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
67086         on SunOS 4.
67087
67088         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
67089         files will be created before anything else.
67090
67091 2001-11-17  Paul Eggert  <eggert@twinsun.com>
67092
67093         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
67094         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
67095
67096 2001-11-17  Jim Meyering  <meyering@lucent.com>
67097
67098         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
67099         Prompted by a report from Bob Proulx.
67100
67101         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
67102         Instead, require UTILS_FUNC_MKSTEMP.
67103
67104 2001-11-17  Jim Meyering  <meyering@lucent.com>
67105
67106         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
67107         Now, that's done as part of AC_FUNC_STRTOD.
67108
67109 2001-11-17  Jim Meyering  <meyering@lucent.com>
67110
67111         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
67112         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
67113         rather than group writable.  Patch by Juan F. Codagnone.
67114
67115         * lib/readtokens.c: Remove explicit declarations of xmalloc and
67116         xrealloc, Instead, include "xalloc.h".
67117
67118         * lib/mountlist.c: Include unlocked-io.h after all system headers.
67119         Remove explicit declarations of xmalloc, xrealloc,
67120         and xstrdup.  Instead, include "xalloc.h".
67121
67122         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
67123         unlocked-io.h.
67124         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
67125         Likewise.
67126         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
67127
67128         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
67129         Reported by Padraig Brady.
67130
67131         * lib/mkstemp.c: #undef mkstemp.
67132         Include config.h.
67133         (rpl_mkstemp): Rename from mkstemp.
67134         Protoize.
67135
67136 2001-11-16  Jim Meyering  <meyering@lucent.com>
67137
67138         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
67139         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
67140         determine the amount of total physical memory, use pstat_getstatic.
67141         HPUX-11 doesn't define _SC_PHYS_PAGES.
67142         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
67143         If sysconf couldn't be used to determine the amount of available
67144         physical memory, use both pstat_getstatic and pstat_getdynamic.
67145         Based on a patch from Bob Proulx.
67146
67147 2001-11-10  Jim Meyering  <meyering@lucent.com>
67148
67149         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
67150         (jm_PREREQ): Use it.
67151
67152 2001-11-09  Jim Meyering  <meyering@lucent.com>
67153
67154         * m4/jm-macros.m4: Require autoconf-2.52f.
67155         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
67156         Use these AC_-prefixed names, not the AM_-prefixed ones.
67157
67158         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
67159
67160 2001-11-05  Jim Meyering  <meyering@lucent.com>
67161
67162         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
67163
67164 2001-11-04  Jim Meyering  <meyering@lucent.com>
67165
67166         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
67167         $DEFS.
67168
67169 2001-11-03  Jim Meyering  <meyering@lucent.com>
67170
67171         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
67172         of AC_DEFUN.
67173
67174         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
67175         know the name of the variable in the macro definition.
67176
67177 2001-11-03  Jim Meyering  <meyering@lucent.com>
67178
67179         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
67180         in argmatch_to_argument call.
67181
67182         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
67183         argument.
67184
67185         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
67186         e.g., a fault due to an attempt to free a NULL pointer.
67187
67188 2001-11-01  Jim Meyering  <meyering@lucent.com>
67189
67190         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
67191         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
67192
67193 2001-11-01  Jim Meyering  <meyering@lucent.com>
67194
67195         * lib/dirfd.c, lib/dirfd.h: New files.
67196         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
67197
67198         * lib/hash.c (hash_print) [TESTING]: Clean up.
67199
67200 2001-10-22  Paul Eggert  <eggert@twinsun.com>
67201
67202         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
67203         to avoid a warning if -Wall.
67204
67205 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
67206
67207         * README: New file
67208         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
67209         (per RMS's instructions, this is now the canonical source)
67210         * lgpl/, gpl/: New directories.
67211
67212 2001-10-21  Paul Eggert  <eggert@twinsun.com>
67213
67214         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
67215
67216 2001-10-21  Jim Meyering  <meyering@lucent.com>
67217
67218         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
67219         this code would end up calling gettext even in packages built
67220         with --disable-nls.
67221         * lib/getopt.c (_): Likewise.
67222         * lib/regex.c (_): Likewise.
67223
67224 2001-10-20  Paul Eggert  <eggert@twinsun.com>
67225
67226         * m4/error.m4 (jm_PREREQ_ERROR):
67227         Do not invoke AC_CHECK_FUNCS with strerror_r, as
67228         AC_FUNC_STRERROR_R does that.
67229         Check for strerror declaration.
67230
67231         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
67232         are supposed to have them these days.
67233         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
67234         Merge changes from latest Autoconf CVS.
67235         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
67236         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
67237         POSIX decided to standardize on the int flavor of strerror_r.
67238
67239 2001-10-20  Paul Eggert  <eggert@twinsun.com>
67240
67241         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
67242         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
67243         Use strerror_r that is only a macro, even if it is not a function.
67244         (strerror): Check for HAVE_DECL_STRERROR before declaring.
67245         (private_strerror): Use prototypes, not old-style function definition.
67246         (print_errno_message): New function.
67247         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
67248         char*-flavored one.
67249         (error_tail, error, error_at_line): Use it.
67250
67251 2001-10-11  Jim Meyering  <meyering@lucent.com>
67252
67253         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
67254         and quote_n (1, ... to avoid clobbering a buffer.
67255
67256 2001-10-05  Jim Meyering  <meyering@lucent.com>
67257
67258         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
67259         hash-pjw.h.
67260         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
67261         * lib/hash-pjw.h: New file.
67262
67263 2001-09-30  Jim Meyering  <meyering@lucent.com>
67264
67265         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
67266         `struct fsstat' has the `f_fstypename' member.
67267         Use that to define FS_TYPE, which is now used to make
67268         the getfsstat link test tighter.
67269
67270 2001-09-30  Jim Meyering  <meyering@lucent.com>
67271
67272         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
67273         Include <sys/ucred.h>, for Apple Darwin.
67274         Include sys/mount.h and sys/fs_types.h only if available.
67275         (FS_TYPE): Define.
67276         (read_filesystem_list): Use FS_TYPE.
67277
67278 2001-09-29  Paul Eggert  <eggert@twinsun.com>
67279
67280         * lib/exclude.c (excluded_filename): 0 -> false, since it's
67281         a boolean context.
67282
67283 2001-09-29  Jim Meyering  <meyering@lucent.com>
67284
67285         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
67286         [one-argument getmntent function]): Include stdio.h before mntent.h.
67287         SunOS 4.1.x needs it for the declaration of `FILE'.
67288         Patch by Volker Borchert.
67289
67290         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
67291         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
67292         sys/fs_types.h, and make the link-test for getfsstat guard #include
67293         directives with appropriate #if HAVE_*_H tests so that we can
67294         detect getfsstat on Apple Darwin1.3.7 systems.
67295         Reported by Nelson Beebe.
67296         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
67297
67298 2001-09-28  Paul Eggert  <eggert@twinsun.com>
67299
67300         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
67301         #defines strtoimax.  Also treat the other strto* functions
67302         like strtoimax.
67303
67304         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
67305         Check for strtoul and strtoumax,
67306         as those declarations are made even in the signed case.
67307         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
67308         Likewise, for strtol and strtoimax.
67309
67310 2001-09-28  Paul Eggert  <eggert@twinsun.com>
67311
67312         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
67313         #defines strtoimax.  Also treat the other strto* functions
67314         like strtoimax.
67315
67316         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
67317         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
67318         (strtoimax, strtoumax): Do not declare if already defined as a macro.
67319
67320 2001-09-26  Jim Meyering  <meyering@lucent.com>
67321
67322         Most macros in unlocked-io.h had the wrong number of arguments.
67323         * lib/gen-uio: New script.
67324         (USE_UNLOCKED_IO): Define to 1 if not already defined.
67325         * lib/unlocked-io.hin: Remove file.
67326         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
67327         rather than trying to embed it here.
67328         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
67329         Reported by Padraig Brady.
67330
67331 2001-09-25  Volker Borchert  <bt@teknon.de>
67332
67333         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
67334         `result'.
67335
67336 2001-09-24  Jim Meyering  <meyering@lucent.com>
67337
67338         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
67339
67340 2001-09-23  Jim Meyering  <meyering@lucent.com>
67341
67342         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
67343         instead of the mere test for existence of mntent.h.  The latter
67344         would get a false-positive on AIX 3.4 systems.
67345         In the outer getmntent if-block, don't die if neither of the getmntent
67346         tests succeeds.  Instead, just fall through and continue with the
67347         remaining tests.
67348
67349 2001-09-23  Jim Meyering  <meyering@lucent.com>
67350
67351         * lib/mountlist.c: Remove useless parentheses in #if directives.
67352         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
67353         the deprecated MOUNTED symbol is no longer defined in mntent.h.
67354
67355 2001-09-22  Jim Meyering  <meyering@lucent.com>
67356
67357         * m4/gettext.m4: New file.  From gettext.
67358         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
67359         * m4/progtest.m4: Likewise
67360         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
67361         * m4/glibc21.m4: Likewise.
67362
67363         * m4/libintl.m4: Remove.  No longer used.
67364
67365 2001-09-22  Jim Meyering  <meyering@lucent.com>
67366
67367         * lib/localcharset.c: Update from latest gettext.
67368         * lib/config.charset: Likewise.
67369
67370 2001-09-20  Jim Meyering  <meyering@lucent.com>
67371
67372         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
67373         strtoimax.
67374         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
67375         strtoumax.
67376
67377 2001-09-20  Jim Meyering  <meyering@lucent.com>
67378
67379         * lib/xstrtol.c (strtoimax): Guard declaration with
67380         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
67381         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
67382         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
67383         (strtoumax): Likewise, for completeness (it wasn't necessary).
67384
67385 2001-09-17  Paul Eggert  <eggert@twinsun.com>
67386
67387         * lib/strtoimax.c (HAVE_LONG_LONG):
67388         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
67389         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
67390         to work around bug in IBM C compiler.
67391
67392 2001-09-17  Jim Meyering  <meyering@lucent.com>
67393
67394         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
67395         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
67396         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
67397         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
67398         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
67399         whenever the right hand side need not be expanded by the shell.
67400
67401 2001-09-16  Paul Eggert  <eggert@twinsun.com>
67402
67403         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
67404         library.  It's not correct, as some older glibcs are buggy.
67405         fnmatch wasn't fixed until glibc 2.2.
67406
67407         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
67408         special shell magic here.
67409
67410 2001-09-16  Jim Meyering  <meyering@lucent.com>
67411
67412         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
67413         * m4/jm-macros.m4: Require it.
67414
67415 2001-09-16  Jim Meyering  <meyering@lucent.com>
67416
67417         * lib/mkdir.c: New file.
67418
67419 2001-09-15  Jim Meyering  <meyering@lucent.com>
67420
67421         * m4/jm-macros.m4: Check for help2man.
67422
67423 2001-09-11  Jim Meyering  <meyering@lucent.com>
67424
67425         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
67426         The body, by Paul Eggert, was moved here from configure.in.
67427         * m4/jm-macros.m4: Require UTILS_HOST_OS.
67428
67429 2001-09-04  Paul Eggert  <eggert@twinsun.com>
67430
67431         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
67432         (jm_PREREQ): Use it.
67433
67434 2001-09-04  Paul Eggert  <eggert@twinsun.com>
67435
67436         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
67437         Use ssize_t, not int, to store result of readlink.
67438         Check for ssize_t overflow as well as size_t overflow,
67439         as POSIX says the result of readlink is implementation-defined
67440         when ssize_t overflows.
67441         Remove unnecessary cast to char*.
67442         Use free+malloc instead of realloc, as the storage doesn't need
67443         to be preserved and it's clearer and can be more efficient that way.
67444         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
67445         * lib/xreadlink.h (xreadlink): Update prototype.
67446
67447 2001-09-04  Paul Eggert  <eggert@twinsun.com>
67448
67449         * lib/xgetcwd.c: Revert some of the previous change; intead,
67450         fix the HAVE_GETCWD_NULL code to behave more like the
67451         !HAVE_GETCWD_NULL code used to.
67452
67453         Include "xalloc.h".
67454         (xgetcwd): Do not return NULL when memory is exhausted; instead,
67455         invoke xalloc_die.
67456
67457 2001-09-03  Paul Eggert  <eggert@twinsun.com>
67458
67459         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
67460         sys/param.h, as pathmax.h includes them.
67461
67462 2001-09-03  Paul Eggert  <eggert@twinsun.com>
67463
67464         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
67465         (jm_PREREQ_XGETCWD): New macro.
67466
67467         * m4/getcwd.m4: New file.
67468
67469 2001-09-03  Paul Eggert  <eggert@twinsun.com>
67470
67471         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
67472         like the HAVE_GETCWD_NULL code.
67473         Include pathmax.h if not HAVE_GETCWD.
67474         Do not include xalloc.h.
67475         (INITIAL_BUFFER_SIZE): New symbol.
67476         Do not use xmalloc / xrealloc, since the caller is responsible for
67477         handling errors.  Preserve errno around `free' during failure.
67478         Do not overrun buffer when using getwd.
67479
67480 2001-09-03  Paul Eggert  <eggert@twinsun.com>
67481
67482         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
67483         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
67484         getcwd (NULL, 0).
67485
67486 2001-09-03  Paul Eggert  <eggert@twinsun.com>
67487
67488         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
67489         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
67490         spotted by Jim Meyering.
67491
67492 2001-09-03  Jim Meyering  <meyering@lucent.com>
67493
67494         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
67495         failure.
67496
67497 2001-09-02  Jim Meyering  <meyering@lucent.com>
67498
67499         * lib/error.c: Update from GNU libc.
67500
67501 2001-09-01  Jim Meyering  <meyering@lucent.com>
67502
67503         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
67504         Used by df.
67505
67506 2001-09-01  Jim Meyering  <meyering@lucent.com>
67507
67508         * lib/xreadlink.c: New file.
67509         * lib/xreadlink.h: New file.
67510         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
67511         xreadlink.h.
67512
67513         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
67514         doesn't conflict with sparc Solaris 7's definition in
67515         /usr/include/sys/int_types.h.
67516
67517         * lib/exclude.c: Use `""', not `<>' to #include non-system header
67518         files.
67519         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
67520         and strncasecmp as r-values.  Unixware didn't have declarations.
67521
67522 2001-08-31  Paul Eggert  <eggert@twinsun.com>
67523
67524         * lib/xstrtol.h: Add copyright notice.
67525         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
67526         LONGINT_INVALID_SUFFIX_CHAR.
67527
67528 2001-08-31  Paul Eggert  <eggert@twinsun.com>
67529
67530         * lib/xstrtol.c (strtoimax): New decl.
67531
67532 2001-08-31  Paul Eggert  <eggert@twinsun.com>
67533
67534         * lib/xgetcwd.c: Don't include pathmax.h.
67535         Include stdlib.h and unistd.h if available.
67536         Include xalloc.h.
67537         (xmalloc, xstrdup, free): Remove decls.
67538         (xgetcwd): Don't assume sizes fit in unsigned.
67539         Check for overflow when computing sizes.
67540         Simplify reallocation code.
67541
67542 2001-08-31  Paul Eggert  <eggert@twinsun.com>
67543
67544         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
67545         a directory's st_size can have an arbitrary value, so the old
67546         usage could waste an arbitrary amount of memory.  All uses
67547         changed.
67548         * lib/savedir.h: Update prototype.
67549
67550 2001-08-31  Paul Eggert  <eggert@twinsun.com>
67551
67552         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
67553
67554         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
67555         old strtoimax.c.
67556
67557         Also, make the following further changes to make this file's
67558         configuration more similar to that of strtol.c:
67559         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
67560         (strtoumax, uintmax_t, strtoull, strtol): Remove.
67561         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
67562         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
67563         changed to signed values.
67564
67565         And make the following changes as well:
67566         Fix copyright notice, as 1999 was missing.
67567         (verify): New macro.
67568         (strtoimax): Check sizes at compile-time, not run-time.
67569         Prefer strtol to strtoll if both work.
67570         (main): Remove; it was not that useful and was a pain to maintain.
67571
67572         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
67573
67574 2001-08-31  Jim Meyering  <meyering@lucent.com>
67575
67576         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
67577         Use an initial, malloc'd, buffer of length 128 rather than
67578         a statically allocated one of length 1024.
67579
67580 2001-08-30  Paul Eggert  <eggert@twinsun.com>
67581
67582         Simplify code, partly by assuming autoconf 2.52 semantics.
67583
67584         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
67585
67586         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
67587         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
67588         All uses removed.
67589         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
67590         Move AC_REQUIRE to next-to-top level, to avoid confusion.
67591         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
67592         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
67593         jm_AC_HEADER_INTTYPES_H.
67594         * m4/jm-macros.m4 (jm_MACROS): Likewise.
67595
67596         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
67597
67598         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
67599         Quote first arg of AC_DEFUN.
67600         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
67601         since they are needed to parse the include file even if we need
67602         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
67603         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
67604         but with opposite signedness.
67605
67606 2001-08-30  Paul Eggert  <eggert@twinsun.com>
67607
67608         Merge 'exclude' changes from tar 1.13.22.
67609         This fixes one or two unlikely storage allocation overflow bugs,
67610         but doesn't change user-visible behavior otherwise.
67611
67612 2001-08-30  Paul Eggert  <eggert@twinsun.com>
67613
67614         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
67615         (jm_PREREQ_EXCLUDE): New macro.
67616
67617 2001-08-30  Paul Eggert  <eggert@twinsun.com>
67618
67619         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
67620         tm to be declared.
67621
67622 2001-08-30  Paul Eggert  <eggert@twinsun.com>
67623
67624         * lib/hash.c: Remove '2001' from copyright notice.
67625
67626 2001-08-30  Paul Eggert  <eggert@twinsun.com>
67627
67628         * lib/full-write.h: New file.
67629         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
67630         * lib/full-write.c: Correct credits, as cccp.c no longer
67631         exists and anyway it was so heavily changed from the old cccp
67632         code as to be unrecognizable.  Include full-write.h.
67633         (full_write) Return size_t, with short writes meaning failure.
67634         All callers changed.  This fixes a bug with large buffers
67635         on 64-bit hosts.
67636         * lib/utime.c: Include full-write.h.
67637
67638 2001-08-30  Paul Eggert  <eggert@twinsun.com>
67639
67640         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
67641         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
67642         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
67643         Include if available.
67644         (<xalloc.h>): Include
67645         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
67646         (verify): New macro.  Use it to verify that EXCLUDE macros do not
67647         collide with FNM macros.
67648         (struct patopts): New struct.
67649         (struct exclude): Use it, as exclude patterns now come with options.
67650         (new_exclude): Support above changes.
67651         (new_exclude, add_exclude_file):
67652         Initial size must now be a power of two to simplify overflow checking.
67653         (free_exclude, fnmatch_no_wildcards): New function.
67654         (excluded_filename): No longer requires options arg, as the options
67655         are determined by add_exclude.  Now returns bool, not int.
67656         (excluded_filename, add_exclude):
67657         Add support for the fancy new exclusion options.
67658         (add_exclude, add_exclude_file): Now takes int options arg.
67659         Check for arithmetic overflow when computing sizes.
67660         (add_exclude_file): xrealloc might modify errno, so don't
67661         realloc until after errno might be used.
67662
67663         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
67664         New macros.
67665         (free_exclude): New decl.
67666         (add_exclude, add_exclude_file): Now takes int options arg.
67667         (excluded_filename): No longer requires options arg, as the options
67668         are determined by add_exclude.  Now returns bool, not int.
67669
67670 2001-08-30  Paul Eggert  <eggert@twinsun.com>
67671
67672         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
67673
67674 2001-08-27  Jim Meyering  <meyering@lucent.com>
67675
67676         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
67677
67678         * lib/version-etc.c (N_): Remove definition.
67679         Revert most of last change.
67680         Instead, simply don't mark the `Copyright...' string for translation.
67681         Based on advice from Paul Eggert.
67682
67683         * lib/strtoxmax.c: Tweak comment.
67684
67685 2001-08-26  Jim Meyering  <meyering@lucent.com>
67686
67687         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
67688
67689         * m4/xstrtoimax.m4: New file.
67690         * m4/xstrtoumax.m4: Add comments explaining why we
67691         AC_REPLACE_FUNCS(strtol).
67692
67693 2001-08-26  Jim Meyering  <meyering@lucent.com>
67694
67695         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
67696         of copyright with `%s' so translators don't get an untranslated
67697         message in 2002.
67698         (COPYRIGHT_YEAR): Define.
67699         (version_etc): Use fprintf rather than fputs.
67700         Suggestion from Ulrich Drepper.
67701
67702         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
67703
67704         * lib/strtoll.c: New file, from GNU libc.
67705         * lib/xstrtoimax.c: New file.
67706
67707         * lib/xstrtol.h: Add xstrtoimax.
67708         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
67709         * lib/strtoimax.c: New file.  Likewise, but first define
67710         STRTOUXMAX_SIGNED.
67711
67712         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
67713         ...
67714         * lib/strtoxmax.c: ... then renamed to this.
67715
67716 2001-08-18  Paul Eggert  <eggert@twinsun.com>
67717
67718         * m4/inttypes.m4: Add AC_PREREQ(2.13).
67719         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
67720         (jm_AC_TYPE_INTMAX_T): New macro.
67721         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
67722
67723         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
67724
67725         * m4/longlong.m4: Renamed from ulonglong.m4.
67726         * m4/inttypes.m4: Renamed from inttypes_h.m4.
67727         * m4/uintmax_t.m4: Removed.
67728
67729 2001-08-13  Paul Eggert  <eggert@twinsun.com>
67730
67731         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
67732         Port to Solaris 8, where 'sed' requires a space after the 'r'
67733         command, and where sh dislikes "$/".  Clean up the spacing a bit.
67734         Redirect output to $tmp just once.
67735
67736 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
67737
67738         * lib/addext.c (<errno.h>): Include.
67739         (errno): Declare if not defined.
67740         (addext): Work correctly when pathconf returns -1 and leaves
67741         errno alone because there is no limit.  Also, work even if
67742         pathconf returns a value greater than SIZE_MAX.
67743
67744 2001-08-12  Jim Meyering  <meyering@lucent.com>
67745
67746         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
67747         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
67748         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
67749         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
67750         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
67751         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
67752         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
67753         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
67754         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
67755         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
67756         utime.m4, utimes.m4, xstrtoumax.m4:
67757         Quote the first argument in each use of AC_DEFUN.
67758
67759 2001-08-12  Jim Meyering  <meyering@lucent.com>
67760
67761         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
67762         Simply `return getcwd (NULL, 0);'.
67763         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
67764         Use 1300 as initial value for length, not PATH_MAX.
67765
67766         * lib/pathmax.h: Clean up cpp syntax.
67767
67768 2001-08-12  Jim Meyering  <meyering@lucent.com>
67769
67770         * lib/gettimeofday.c: New file.
67771         * lib/gtod.h: New file.
67772         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
67773
67774 2001-08-05  Jim Meyering  <meyering@lucent.com>
67775
67776         * m4/jm-macros.m4: Require autoconf-2.52.
67777
67778 2001-08-04  Jim Meyering  <meyering@lucent.com>
67779
67780         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
67781         stmt, to get in sync with glibc.
67782
67783 2001-08-03  Paul Eggert  <eggert@twinsun.com>
67784
67785         The following changes are from gettext 0.10.39 as maintained by
67786         Bruno Haible.
67787
67788         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
67789         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
67790         with inverted sense.  All uses changed.
67791
67792         * lib/mbswidth.c: Don't include <limits.h>.
67793         Include <stdlib.h> and <string.h> unconditionally.
67794         (iswcntrl, mbsinit, ISCNTRL): New macros.
67795         (mbsnwidth): Use K&R style function declarations.
67796         Don't bother checking for MB_LEN_MAX == 1, since the compiler
67797         can optimize it when MB_CUR_MAX == 1.
67798         The width of control characters is zero, not 1.
67799
67800 2001-08-03  Paul Eggert  <eggert@twinsun.com>
67801
67802         The following changes are from gettext 0.10.39 as maintained by
67803         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
67804
67805         * m4/codeset.m4: Upgrade to serial AM1.
67806         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
67807         all uses changed.  Quote first arg of AC_DEFUN.
67808         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
67809
67810         * m4/iconv.m4: Upgrade to serial AM2.
67811         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
67812         Add --with-libconv-prefix.
67813         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
67814         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
67815         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
67816         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
67817         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
67818
67819         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
67820         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
67821         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
67822         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
67823         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
67824         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
67825         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
67826         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
67827         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
67828
67829         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
67830         string.h any more.
67831
67832         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
67833         not the default value.
67834
67835         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
67836         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
67837         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
67838         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
67839         Also check for iswcntrl, used for wcwidth fallback.
67840         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
67841         to Autoconf 2.13.
67842
67843 2001-08-03  Jim Meyering  <meyering@lucent.com>
67844
67845         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
67846         as it was in the original.  Reported by Paul Eggert.
67847
67848 2001-07-16  Jim Meyering  <meyering@lucent.com>
67849
67850         * m4/gettimeofday.m4: New file.
67851         Prompted by a report from Bernhard Baehr.
67852
67853 2001-07-15  Jim Meyering  <meyering@lucent.com>
67854
67855         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
67856         stuff. Now it's in ../Makefile.cfg.
67857
67858 2001-07-15  Jim Meyering  <meyering@lucent.com>
67859
67860         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
67861         (BUILT_SOURCES): Add unlocked-io.h.
67862         (io_functions): Define.
67863         (unlocked-io.h): New rule.
67864         (DISTCLEANFILES): Add unlocked-io.h.
67865         (all-local): Depend on unlocked-io.h, to ensure it is created.
67866
67867         * lib/unlocked-io.hin: New file
67868
67869         * lib/regex.c: Update from glibc.
67870
67871 2001-07-05  Jim Meyering  <meyering@lucent.com>
67872
67873         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
67874         recommendation.
67875         (libfetish_a_SOURCES): Put all .h files here instead.
67876         Remove a thus-exposed (better checks in automake) duplicate and
67877         two unnecessary .h files.
67878
67879 2001-07-04  Jim Meyering  <meyering@lucent.com>
67880
67881         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
67882         that generates jm-glibc-io.m4 so that it doesn't trigger any make
67883         distcheck failure.
67884
67885 2001-07-02  Jim Meyering  <meyering@lucent.com>
67886
67887         The following changes were prompted by suggestions from Bruno Haible.
67888
67889         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
67890         is now generated.
67891         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
67892         definition of EXTRA_DIST.
67893         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
67894         ensure that the generated file is created/updated whenever the list
67895         of $(unlocked_functions) is changed.
67896         (jm-glibc-io.m4): New rule.
67897         (unlocked-io.h): New rule -- currently unused.
67898
67899 2001-06-24  Jim Meyering  <meyering@lucent.com>
67900
67901         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
67902         unmatched right bracket, rather than kludging it with an extra,
67903         falsely-matching quote in a comment.  Patch by Akim Demaille.
67904
67905 2001-06-11  Jim Meyering  <meyering@lucent.com>
67906
67907         * lib/regex.c: Update from GNU libc.
67908
67909 2001-05-27  Jim Meyering  <meyering@lucent.com>
67910
67911         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
67912         Check for ut_type in struct utmp.
67913
67914 2001-05-27  Jim Meyering  <meyering@lucent.com>
67915
67916         * lib/readutmp.h (UT_TYPE): Define.
67917
67918 2001-05-24  Jim Meyering  <meyering@lucent.com>
67919
67920         * lib/argmatch.c: Include "quote.h".
67921         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
67922         quote function.  Reported by Göran Uddeborg.
67923
67924 2001-05-22  Jim Meyering  <meyering@lucent.com>
67925
67926         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
67927         now that we use the package-supplied version unconditionally.
67928         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
67929
67930 2001-05-21  Jim Meyering  <meyering@lucent.com>
67931
67932         * m4/regex.m4: Change a couple backticks to single quotes to avoid
67933         shell syntax errors.
67934
67935 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
67936
67937         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
67938
67939 2001-05-20  Paul Eggert  <eggert@twinsun.com>
67940
67941         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
67942         Don't bother to check library strftime, since
67943         we'll be using our own my_strftime function anyway.
67944         Define my_strftime instead of strftime.
67945
67946 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
67947
67948         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
67949         which is not yet declared.
67950
67951 2001-05-15  Jim Meyering  <meyering@lucent.com>
67952
67953         * m4/regex.m4: Use proper quoting so brackets appear in the test
67954         program.
67955         Reported by, and with help from, Bruno Haible.
67956
67957 2001-05-13  Jim Meyering  <meyering@lucent.com>
67958
67959         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
67960         undefined.
67961
67962 2001-05-11  Paul Eggert  <eggert@twinsun.com>
67963
67964         dirname code cleanup.  base_name now behaves more compatibly
67965         with POSIX basename when given file names that have trailing
67966         slashes, and similarly for dir_name.  Add new primitives
67967         base_len and dir_len.  Put the directory-name-related decls
67968         into dirname.h.
67969
67970         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
67971         * lib/backupfile.c (base_name): Likewise.
67972         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
67973         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
67974         * lib/makepath.c (strip_trailing_slashes): Likewise.
67975         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
67976         ISSLASH): Likewise.
67977         * lib/rename.c (strip_trailing_slashes): Likewise.
67978         * lib/same.c (base_name): Likewise.
67979         * lib/stripslash.c (ISSLASH): Likewise.
67980
67981         * lib/addext.c: Include <dirname.h> after size_t is defined.
67982         * lib/backupfile.c: Likewise.
67983
67984         * lib/addext.c (addext): Use base_len to trim redundant
67985         trailing slashes instead of doing it ourselves.
67986         But do not trim the last slash if it is not redundant.
67987
67988         * lib/backupfile.c (find_backup_file_name,
67989         max_backup_version): Use base_len instead of rolling it ourselves.
67990         Handle the case of "" and (on DOS) "C:" correctly.
67991
67992         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
67993         needed. Include <string.h>, <dirname.h>.
67994         (base_name): Allow file names ending in slashes, other than names
67995         that are all slashes.  In this case, return the basename followed
67996         by the slashes.  This is more general, and can be used in places
67997         where the original base_name purposely had an assertion failure.
67998         (base_len): New function.
67999
68000         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
68001         Do not include <assert.h>; no longer needed.
68002         Include xalloc.h.
68003         (memrchr): Remove decl.
68004         (dir_name_r): Remove.
68005         (dir_len): Renamed from dirlen.  All callers changed.
68006         Rewrite in terms of base_name, for simplicity and consistency.
68007         (dir_name): Never return NULL.  All callers changed.
68008         Do not include <stdlib.h> in test program; no longer needed.
68009         return 0; is fine for test program.
68010
68011         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
68012         New macros.
68013         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
68014
68015         * lib/path-concat.c (path_concat): Use base_len to compute
68016         base length, not strlen; this means we cannot rely on memcpy
68017         to null-terminate.
68018
68019         * lib/same.c (STREQ): Remove.
68020         (same_name): Handle the case where the basename ends in trailing '/'.
68021
68022         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
68023         a slash was stripped.  Do not strip the last slash after a
68024         file system prefix.
68025
68026 2001-05-11  Paul Eggert  <eggert@twinsun.com>
68027
68028         * lib/Makefile.am (libfetish_a_SOURCES):
68029         Add strftime.c, since we now compile it on all hosts.
68030
68031         * lib/strftime.c (my_strftime):
68032         Define to nstrftime if emacs, but only if my_strftime is not defined.
68033         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
68034         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
68035         Add one more extra argument: a nanoseconds value.
68036         All uses changed.
68037         (ns): New macro.
68038         (my_strftime function): Add %N format.
68039         (emacs_strftimeu): Renamed from emacs_strftime,
68040         with extra ut argument.
68041
68042 2001-05-09  Paul Eggert  <eggert@twinsun.com>
68043
68044         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
68045
68046 2001-04-21  Jim Meyering  <meyering@lucent.com>
68047
68048         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
68049         doesn't interfere.
68050
68051 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
68052
68053         * m4/ftruncate.m4: Check for chsize.
68054         Link with ftruncate.o unconditionally if ftruncate is missing.
68055         This was required when cross-compiling to i586-mingw32msvc.
68056
68057 2001-04-08  Jim Meyering  <meyering@lucent.com>
68058
68059         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
68060         recomputed; that's necessary when the offset spans a DST transition.
68061         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
68062
68063 2001-04-02  Jim Meyering  <meyering@lucent.com>
68064
68065         * lib/regex.h, regex.c: Update from GNU libc.
68066
68067 2001-03-24  Jim Meyering  <meyering@lucent.com>
68068
68069         * m4/jm-macros.m4: Require autoconf-2.49d.
68070
68071 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
68072
68073         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
68074
68075 2001-03-19  Paul Eggert  <eggert@twinsun.com>
68076
68077         * lib/version-etc.c (version_etc_copyright): Update to 2001.
68078
68079 2001-03-17  Jim Meyering  <meyering@lucent.com>
68080
68081         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
68082         now that the version in autoconf is equivalent.
68083         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
68084
68085         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
68086         Suggestion from Akim Demaille.
68087
68088         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
68089         (jm_PREREQ_TEMPNAME): New function.
68090
68091 2001-03-16  Paul Eggert  <eggert@twinsun.com>
68092
68093         * lib/tempname.c (uint64_t): Define to uintmax_t if
68094         not defined, and if UINT64_MAX is not defined.
68095         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
68096         Reported by John David Anglin.
68097
68098 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
68099
68100         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
68101         resolve alias if codeset is empty.
68102         * lib/config.charset (BeOS): Use wildcard syntax.
68103
68104 2001-03-13  Jim Meyering  <meyering@lucent.com>
68105
68106         * lib/path-concat.c (path_concat)
68107         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
68108         concatenating e.g., `C:' and `foo'.
68109         From Bruno Haible.
68110
68111 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
68112
68113         * lib/localcharset.c (locale_charset): Don't use
68114         setlocale(LC_CTYPE,NULL). Don't return NULL.
68115         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
68116
68117 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
68118
68119         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
68120         support for DOS/DJGPP.
68121
68122 2001-03-01  Paul Eggert  <eggert@twinsun.com>
68123
68124         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
68125         lacks mkstemp.  Compile our own tempname.c if we compile our own
68126         mkstemp.c, as mkstemp relies on tempname.
68127
68128 2001-03-01  Jim Meyering  <meyering@lucent.com>
68129
68130         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
68131         AH_VERBATIM really does output its argument verbatim.
68132
68133 2001-02-28  Paul Eggert  <eggert@twinsun.com>
68134
68135         * lib/Makefile.am (libfetish_a_SOURCES):
68136         Add dup-safer.c, fopen-safer.c.
68137         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
68138
68139         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
68140         * lib/unistd-safer.h: New files.
68141
68142 2001-02-25  Paul Eggert  <eggert@twinsun.com>
68143
68144         The mkstemp replacement is taken from glibc 2.2.2, with some
68145         portability fixes for use outside glibc, as follows:
68146
68147         * lib/tempname.c (struct_stat64): New macro.
68148         (direxists, __gen_tempname): Use it.
68149         This avoids a portability problem with Solaris 8.
68150
68151         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
68152         (<stddef.h>, <stdint.h>, <string.h>):
68153         Include only if STDC_HEADERS || _LIBC.
68154         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
68155         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
68156         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
68157         (__set_errno): Define this macro if <errno.h> doesn't.
68158         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
68159         Define these macros if <stdio.h> doesn't.
68160         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
68161         Define these macros if <sys/stat.h>
68162         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
68163         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
68164         __xstat64): Define if not _LIBC.
68165         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
68166         (__gen_tempname): Invoke gettimeofday only if
68167         HAVE_GETTIMEOFDAY || _LIBC;
68168         otherwise, fall back on plain "time".
68169         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
68170
68171         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
68172
68173         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
68174
68175 2001-02-18  Paul Eggert  <eggert@twinsun.com>
68176
68177         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
68178
68179 2001-02-17  Paul Eggert  <eggert@twinsun.com>
68180
68181         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
68182         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
68183         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
68184         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
68185
68186 2001-02-17  Paul Eggert  <eggert@twinsun.com>
68187
68188         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
68189         Remove workaround macros for hosts that have mbrtowc but not
68190         mbstate_t, as we now insist on proper declarations for both
68191         before using mbrtowc.
68192
68193 2001-02-17  Jim Meyering  <meyering@lucent.com>
68194
68195         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
68196         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
68197         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
68198         UnixWare 7.1.1.
68199
68200         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
68201         rather than AC_CACHE_VAL.
68202
68203 2001-02-17  Jim Meyering  <meyering@lucent.com>
68204
68205         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
68206         around included file name.
68207
68208         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
68209
68210         * lib/strftime.c: Update from GNU libc (the only changes were to
68211         comments).
68212
68213 2001-02-17  Jim Meyering  <meyering@lucent.com>
68214
68215         * lib/regex.c: Update from libc.
68216
68217 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
68218
68219         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
68220         clash.
68221
68222 2001-02-16  Paul Eggert  <eggert@twinsun.com>
68223
68224         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
68225         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
68226         Reported by Mark Hounschell via Paul Eggert.
68227
68228 2001-02-07  Jim Meyering  <meyering@lucent.com>
68229
68230         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
68231
68232 2001-02-05  Jim Meyering  <meyering@lucent.com>
68233
68234         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
68235         it includes the patch required for `large file' support with at least
68236         HP-UX's 10.20 /bin/cc.
68237
68238 2001-02-03  Jim Meyering  <meyering@lucent.com>
68239
68240         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
68241         AS_IF, now that it works once again (mysteriously).
68242         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
68243
68244 2001-01-30  Jim Meyering  <meyering@lucent.com>
68245
68246         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
68247         * m4/chown.m4: Rename conftestchown to conftest.chown.
68248         * m4/rename.m4: s/conftestdir/conftest.d1/ and
68249         s/conftestdir2/conftest.d2/.
68250         * m4/utimes.m4: s/conftestdata/conftest.data/
68251         Inspired by Pavel Roskin's change in autoconf.
68252
68253 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
68254
68255         * lib/config.charset: Update for FreeBSD 4.2.
68256
68257 2001-01-27  Jim Meyering  <meyering@lucent.com>
68258
68259         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
68260         a use of AS_IF.
68261         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
68262
68263 2001-01-26  Jim Meyering  <meyering@lucent.com>
68264
68265         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
68266         quotearg.c includes it.
68267
68268 2001-01-26  Jim Meyering  <meyering@lucent.com>
68269
68270         * lib/quotearg.c: Include stddef.h.
68271         * lib/quote.c: Include stddef.h.
68272         Reported by Axel Kittenberger.
68273
68274         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
68275         line in double quotes so that it evokes a better diagnostic.
68276         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
68277         Reported by Axel Kittenberger.
68278
68279 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
68280
68281         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
68282         as if it was a `charset'.
68283
68284 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
68285
68286         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
68287         has const.
68288
68289 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
68290
68291         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
68292         to avoid a warning.  Add back 'const' to inptr.
68293
68294 2001-01-20  Jim Meyering  <meyering@lucent.com>
68295
68296         Be sure that headers are checked before used in code compiled
68297         for the type checks.
68298         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
68299         In place of that, invoke jm_CHECK_ALL_TYPES.
68300         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
68301         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
68302         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
68303         The check for ssize_t was mistakenly run before the test for unistd.h.
68304
68305         The configure-time check for stdbool.h was missing.
68306         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
68307         (jm_PREREQ_HASH): New function.
68308
68309 2001-01-17  Jim Meyering  <meyering@lucent.com>
68310
68311         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
68312         for autoconf-2.49c.
68313         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
68314
68315 2001-01-16  Jim Meyering  <meyering@lucent.com>
68316
68317         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
68318         From Bruno Haible.
68319
68320 2001-01-14  Jim Meyering  <meyering@lucent.com>
68321
68322         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
68323         foo and bar.  Create conftestdir/ in the script, not in the C code.
68324         Remove directories in the script, not in the C code.
68325         Remove conftestdir{,2} before trying to create the directory.
68326         Make the entire configure script fail if the mkdir fails.
68327
68328 2001-01-14  Jim Meyering  <meyering@lucent.com>
68329
68330         * lib/rename.c: New file.  From Volker Borchert.
68331         Include stdlib.h, string.h or strings.h, and xalloc.h.
68332         Use strip_trailing_slashes rather than open-coding it.
68333
68334 2001-01-03  Paul Eggert  <eggert@twinsun.com>
68335
68336         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
68337
68338 2001-01-03  Jim Meyering  <meyering@lucent.com>
68339
68340         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
68341         of local `inptr' to avoid warning with some system declarations of
68342         iconv.
68343
68344 2001-01-02  Volker Borchert  <bt@teknon.de>
68345
68346         * m4/rename.m4: New file.
68347         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
68348
68349 2001-01-01  Jim Meyering  <meyering@lucent.com>
68350
68351         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
68352         even on systems with utmpx.h.  It's necessary for the declaration of
68353         utmp's ut_user member.  Reported by Andreas Jaeger.
68354
68355         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
68356         available. They are required for the declarations of getgrgid and
68357         getpwuid resp.
68358         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
68359         Reported by Andreas Jaeger.
68360
68361 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
68362
68363         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
68364         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
68365         so `make install' also works in VPATH builds.
68366
68367 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
68368
68369         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
68370         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
68371         can be used in subdirectories.
68372
68373 2000-12-29  Paul Eggert  <eggert@twinsun.com>
68374
68375         * lib/modechange.c: Do not assume that mode_t uses the
68376         traditional octal encoding.  E.g. "chmod 1 FOO" should set
68377         the other-execute bit of FOO even if S_IXOTH != 1.
68378
68379         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
68380         WOTH, XOTH, ALLM): New macros.
68381         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
68382          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
68383         Use them.
68384         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
68385         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
68386         (mode_compile):
68387         No need to use uintmax_t; unsigned long is long enough.
68388         Don't bother to get suffix since we don't use it.
68389
68390 2000-12-26  Jim Meyering  <meyering@lucent.com>
68391
68392         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
68393         better with autoheader.
68394
68395 2000-12-24  Jim Meyering  <meyering@lucent.com>
68396
68397         * lib/hash.c (is_prime): Return explicit boolean values.
68398         (hash_get_first): Return NULL to appease Irix5.6's 89.
68399         Reported by Nelson Beebe.
68400
68401 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
68402
68403         * lib/localcharset.c (locale_charset): Add support for Win32.
68404
68405 2000-12-18  Paul Eggert  <eggert@twinsun.com>
68406
68407         * lib/physmem.h, lib/physmem.c: New files.
68408
68409         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
68410         (noinst_HEADERS): Add physmem.h.
68411
68412         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
68413         't' for compatibility with Solaris 8 sort.
68414
68415 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
68416
68417         * lib/config.charset: Add support for BeOS.
68418
68419 2000-12-17  Jim Meyering  <meyering@lucent.com>
68420
68421         * m4/dos.m4 (jm_AC_DOS): New file and macro.
68422         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
68423
68424 2000-12-16  Jim Meyering  <meyering@lucent.com>
68425
68426         This bug had a serious impact on chown: `chown N:M FILE' (for integer
68427         N and M) would have treated it like `chown N:N FILE'.
68428
68429         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
68430
68431 2000-12-16  Jim Meyering  <meyering@lucent.com>
68432
68433         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
68434         SHELLS_FILE to a file name that's useful on djgpp systems.
68435         Include stdlib.h.
68436         (ADDITIONAL_DEFAULT_SHELLS): Define.
68437         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
68438         Based mostly on a patch from Prashant TR.
68439
68440 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
68441
68442         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
68443         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
68444         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
68445
68446 2000-12-08  Andreas Schwab  <schwab@suse.de>
68447
68448         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
68449         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
68450
68451 2000-12-07  Jim Meyering  <meyering@lucent.com>
68452
68453         * lib/stripslash.c (ISSLASH): Define.
68454         (strip_trailing_slashes): Use ISSLASH rather than comparing against
68455         `/'.
68456         From Prashant TR.
68457
68458         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
68459         (dir_name_r): Declare this function as static.
68460         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
68461         manifest itself on a name containing a mix of slashes and
68462         backslashes.
68463         Make this function work with names starting with a DOS-style
68464         drive letter and colon prefix.
68465         (dir_name): Append `.' if necessary.
68466         Based mostly on patches from Prashant TR and Eli Zaretskii.
68467
68468         * lib/dirname.h (dir_name_r): Remove prototype.
68469
68470 2000-12-06  Paul Eggert  <eggert@twinsun.com>
68471
68472         * m4/off_t-format.m4: Remove this file.
68473         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
68474
68475 2000-12-06  Jim Meyering  <meyering@lucent.com>
68476
68477         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
68478         replacement strtoull, we may well need the replacement strtoul, too.
68479         Check for declarations of strtoul and strtoull.
68480         Check for strtol.  Mainly as a cue to cause automake to include
68481         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
68482         Check for limits.h -- strtol.c needs it.
68483
68484 2000-12-05  Jim Meyering  <meyering@lucent.com>
68485
68486         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
68487
68488 2000-12-04  Jim Meyering  <meyering@lucent.com>
68489
68490         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
68491         Also include memory.h, stdlib.h, unistd.h if appropriate.
68492         Reported by Andreas Jaeger (conflicting declaration of malloc).
68493
68494 2000-12-02  Jim Meyering  <meyering@lucent.com>
68495
68496         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
68497         * m4/jm-macros.m4 (jm_MACROS): require it.
68498
68499 2000-12-02  Jim Meyering  <meyering@lucent.com>
68500
68501         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
68502
68503 2000-12-01  Paul Eggert  <eggert@twinsun.com>
68504
68505         * lib/memrchr.c: Include <config.h> before any system include file.
68506
68507 2000-11-30  Jim Meyering  <meyering@lucent.com>
68508
68509         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
68510
68511 2000-11-30  Jim Meyering  <meyering@lucent.com>
68512
68513         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
68514
68515 2000-11-29  Paul Eggert  <eggert@twinsun.com>
68516
68517         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
68518
68519 2000-11-26  Jim Meyering  <meyering@lucent.com>
68520
68521         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
68522
68523 2000-11-22  Paul Eggert  <eggert@twinsun.com>
68524
68525         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
68526         size of (size_t) -1; it's not portable.
68527
68528 2000-11-17  Jim Meyering  <meyering@lucent.com>
68529
68530         * lib/strstr.c: Update from GNU libc.
68531
68532 2000-11-17  Akim Demaille  <akim@epita.fr>
68533
68534         * lib/obstack.h: Formatting changes.
68535         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
68536         prevent type checking.
68537         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
68538         cast the value to (void *): assigning a `foo *' to a `void *'
68539         variable is valid.
68540         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
68541
68542 2000-11-16  Jim Meyering  <meyering@lucent.com>
68543
68544         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
68545
68546 2000-11-11  Jim Meyering  <meyering@lucent.com>
68547
68548         * lib/error.c: Add a couple #includes, merging from GNU libc version.
68549
68550 2000-11-10  Jim Meyering  <meyering@lucent.com>
68551
68552         * lib/obstack.h: Update from GNU libc.
68553         * lib/obstack.c: Likewise.
68554
68555 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
68556
68557         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
68558
68559 2000-11-06  Paul Eggert  <eggert@twinsun.com>
68560
68561         * lib/getusershell.c (setusershell): Use rewind rather than
68562         fseek/fseeko, to avoid configuration hassles with fseeko.
68563         Don't bother opening SHELLS_FILE if shellstream is NULL;
68564         it's not necessary.
68565
68566 2000-11-05  Jim Meyering  <meyering@lucent.com>
68567
68568         * lib/makepath.h (make_dir): Declare.
68569         * lib/makepath.c (make_dir): Remove `static' attribute.
68570         Tweak a comment.
68571
68572 2000-11-04  Jim Meyering  <meyering@lucent.com>
68573
68574         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
68575
68576 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
68577
68578         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
68579         last one in a bucket, advance to the next bucket.
68580
68581 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
68582
68583         * lib/fnmatch.c: Do not comment out all the code if we are using
68584         the GNU C library, because in some cases we are replacing buggy
68585         code in the GNU C library itself.
68586
68587 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
68588
68589         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
68590         (regex_compile): Catch bogus \(\1\).
68591
68592 2000-10-30  Paul Eggert  <eggert@twinsun.com>
68593
68594         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
68595         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
68596         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
68597
68598 2000-10-30  Paul Eggert  <eggert@twinsun.com>
68599
68600         * lib/error.h, getline.h, modechange.h:
68601         Remove "2000" from Copyright line, as the file hasn't been
68602         changed this year other than in the copyright notice.
68603
68604         * lib/xalloc.h: Add "2000" to Copyright line, as this file
68605         was changed this year.
68606
68607 2000-10-29  Jim Meyering  <meyering@lucent.com>
68608
68609         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
68610         renaming.
68611         * m4/ls-mntd-fs.m4: Likewise
68612
68613 2000-10-29  Jim Meyering  <meyering@lucent.com>
68614
68615         * lib/xstat.in: Fix grammar in comment.
68616
68617 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
68618
68619         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
68620         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
68621         doesn't define __restrict_arr.
68622
68623 2000-10-28  Jim Meyering  <meyering@lucent.com>
68624
68625         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
68626         (jm_PREREQ_MEMCHR): New function.
68627
68628 2000-10-28  Jim Meyering  <meyering@lucent.com>
68629
68630         * lib/memchr.c: Update from libc.
68631         Adjust for portability:
68632         [HAVE_STDLIB_H]: Include stdlib.h.
68633         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
68634         Undef __memchr, too.
68635         [!weak_alias]: Define __memchr to memchr.
68636
68637         * lib/regex.c: Update from libc.
68638         * lib/regex.h: Likewise.
68639         * lib/getopt1.c: Likewise.
68640         * lib/memcmp.c: Likewise.
68641
68642         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
68643         Avoid using fseek, when possible -- it's broken by design.
68644         Patch by Ulrich Drepper.
68645
68646 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
68647
68648         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
68649         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
68650         Giving in to popular pressure to shut up the compiler with casts.
68651
68652 2000-10-26  Jim Meyering  <meyering@lucent.com>
68653
68654         * lib/strftime.c: Update from libc.
68655
68656 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
68657
68658         * regex.c: More `unsigned char' -> `re_char' changes.
68659         Also change several `int' into `re_wchar_t'.
68660         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
68661         (PUSH_FAILURE_POINTER): Don't cast any more.
68662         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
68663         We want GCC to complain, since this piece of code makes
68664         re_match non-reentrant, which *should* be fixed.
68665         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
68666         (EXTEND_BUFFER): Use RETALLOC.
68667         (SET_LIST_BIT): Don't cast.
68668         (re_wchar_t): New type.
68669         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
68670         that those two functions will always properly return.
68671         (IMMEDIATE_QUIT_CHECK): Cast to void.
68672         (analyse_first): Use recursion rather than an explicit stack.
68673         (re_compile_fastmap): Can't fail anymore.
68674         (re_search_2): Don't check re_compile_fastmap for failure.
68675         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
68676         Now also sets the new value (passed in a new argument).
68677         (re_match_2_internal): Use it.
68678         Also, use a new var `reg' of type size_t when looping through regs
68679         rather than reuse the inappropriate `mcnt'.
68680
68681 2000-10-25  Jim Meyering  <meyering@lucent.com>
68682
68683         * lib/obstack.c: Update from libc.
68684
68685 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
68686
68687         * regex.c (regex_compile): Change the way of handling a range from
68688         a char less than 256 to a char not less than 256.
68689
68690 2000-10-24  Andrew Innes  <andrewi@gnu.org>
68691
68692         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
68693         NT-Emacs only.
68694         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
68695         so that re_search functions only quit when callers expect them to.
68696
68697 2000-10-23  Jim Meyering  <meyering@lucent.com>
68698
68699         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
68700         wrong.  That set_locale call must not have any side effects.
68701         From Paul Eggert.
68702
68703 2000-10-22  Jim Meyering  <meyering@lucent.com>
68704
68705         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
68706         [CYCLIC]: Remove now-unused definition.
68707
68708         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
68709         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
68710         Suggestion from Ulrich Drepper.
68711
68712 2000-10-21  Jim Meyering  <meyering@lucent.com>
68713
68714         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
68715         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
68716         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
68717
68718 2000-10-21  Jim Meyering  <meyering@lucent.com>
68719
68720         * lib/dirname.c (memrchr): Declare if necessary.
68721         (dir_name): Remove the restriction that there be no
68722         trailing slashes.  Now, this code skips past them, effectively
68723         ignoring them.
68724         [TEST_DIRNAME] (main): New unit tests.
68725
68726         * lib/memrchr.c: New file from GNU libc.
68727         Undef __memrchr, too.
68728         [!weak_alias]: Define __memrchr to memrchr.
68729         Guard weak_alias use with `#ifdef weak_alias'.
68730
68731 2000-10-21  Jim Meyering  <meyering@lucent.com>
68732
68733         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
68734         (dir_name): Use dir_name_r.
68735         * lib/dirname.h (dir_name_r): Declare it.
68736
68737 2000-10-17  Jim Meyering  <meyering@lucent.com>
68738
68739         * lib/quote.h (PARAMS): Define and use.
68740         Reported by Akim Demaille.
68741
68742         * lib/getopt.c: Update from libc.
68743
68744 2000-10-16  Jim Meyering  <meyering@lucent.com>
68745
68746         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
68747         setlocale.
68748         From Jan Fedak.
68749
68750 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
68751
68752         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
68753
68754 2000-09-25  Jim Meyering  <meyering@lucent.com>
68755
68756         * lib/md5.h (rol): Define (from GnuPG).
68757
68758         * lib/sha.c: Give credit (GnuPG) where due.
68759         (M): Use rol rather than open-coding it.
68760         Add a FIXME comment.
68761
68762 2000-09-21  Jim Meyering  <meyering@lucent.com>
68763
68764         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
68765         Reported by Michael Stone.
68766
68767 2000-09-20  Jim Meyering  <meyering@lucent.com>
68768
68769         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
68770         (noinst_HEADERS): Add sha.h.
68771         Based on code from Scott G. Miller and from GnuPG.
68772
68773 2000-09-18  Jim Meyering  <meyering@lucent.com>
68774
68775         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
68776         LIBS. Otherwise, everyone ends up linking with -lelf for some
68777         configurations.
68778         Reported by Mike Stone.
68779
68780 2000-09-15  Jim Meyering  <meyering@lucent.com>
68781
68782         * lib/regex.c: Update from libc.
68783
68784 2000-09-10  Jim Meyering  <meyering@lucent.com>
68785
68786         * lib/getopt.c (_getopt_internal): Update from glibc.
68787
68788 2000-09-09  Jim Meyering  <meyering@lucent.com>
68789
68790         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
68791         think it should be used as a general replacement for isascii.
68792         * lib/fnmatch.c: Likewise.
68793         * lib/mbswidth.c: Likewise
68794         * lib/regex.c: Likewise.
68795
68796         Don't use atoi.
68797         * lib/userspec.c: Include sys/param.h and limits.h.
68798         Include xstrtol.h.
68799         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
68800         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
68801         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
68802         UID, GID.  Check range.
68803
68804 2000-09-06  Jim Meyering  <meyering@lucent.com>
68805
68806         * lib/getopt.c (_getopt_internal): Update from glibc.
68807
68808 2000-08-30  Jim Meyering  <meyering@lucent.com>
68809
68810         * lib/strftime.c: Merge in changes from GNU libc.
68811
68812 2000-08-26  Jim Meyering  <meyering@lucent.com>
68813
68814         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
68815         * m4/fpending.m4: New file.
68816
68817 2000-08-26  Jim Meyering  <meyering@lucent.com>
68818
68819         * lib/closeout.c: Include "__fpending.h".
68820         (close_stdout_status): Return right away if there's nothing to flush.
68821
68822         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
68823         * lib/__fpending.c: New file.
68824         * lib/__fpending.h: New file.
68825
68826 2000-08-20  Jim Meyering  <meyering@lucent.com>
68827
68828         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
68829         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
68830         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
68831
68832 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
68833
68834         Improve fileutils installation on systems where running
68835         programs (like install) can't be unlinked.
68836         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
68837         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
68838
68839 2000-08-07  Paul Eggert  <eggert@twinsun.com>
68840
68841         Standardize on "memory exhausted" instead of "Memory exhausted"
68842         or "virtual memory exhausted".
68843         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
68844         "virtual memory exhausted".
68845         * lib/same.c (same_name): Invoke xalloc_die instead of printing
68846         our own message.
68847         * lib/userspec.c (parse_user_spec): Likewise.
68848         * lib/bumpalloc.h: comment fix
68849         * lib/same.c, userspec.c: Include xalloc.h.
68850
68851         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
68852         not char *const and pointing to a constant array.
68853         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
68854         (xrealloc): Comment fix.
68855
68856         * lib/userspec.c (parse_user_spec):
68857         Don't translate a message until just before returning,
68858         to avoid unnecessary translation.
68859
68860 2000-08-07  Jim Meyering  <meyering@lucent.com>
68861
68862         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
68863         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
68864         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
68865         getgroups.c, gethostname.c, getopt.h, group-member.c,
68866         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
68867         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
68868         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
68869         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
68870         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
68871         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
68872         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
68873         yesno.c: Back out Copyright date changes for each file with no change
68874         this year.  This eases coordination with other programs using the same
68875         source code modules.  From Paul Eggert.
68876
68877 2000-08-06  Paul Eggert  <eggert@twinsun.com>
68878
68879         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
68880         not char, for compatibility with glibc 2.1.3 strftime.c.
68881
68882 2000-08-03  Greg McGary  <greg@mcgary.org>
68883
68884         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
68885         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
68886         (EXTEND_BUFFER): Use them.
68887
68888 2000-08-01  Jim Meyering  <meyering@lucent.com>
68889
68890         * lib/dirname.c (ISSLASH): Define.
68891         (BACKSLASH_IS_PATH_SEPARATOR): Define.
68892         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
68893         both `\' and `/' may be use as path separators.
68894         Based on a patch from Prashant TR.
68895
68896 2000-07-31  Paul Eggert  <eggert@twinsun.com>
68897
68898         * lib/quotearg.c (quotearg_n_options): Don't make the initial
68899         slot vector a constant, since it might get modified.
68900
68901 2000-07-31  Jim Meyering  <meyering@lucent.com>
68902
68903         * lib/xmalloc.c: Use `virtual memory exhausted', not
68904         `Memory exhausted'.
68905         * lib/obstack.c (print_and_abort): Likewise.
68906
68907 2000-07-30  Paul Eggert  <eggert@twinsun.com>
68908
68909         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
68910         buffer, so that the caller can always quote one small
68911         component of a "memory exhausted" message in slot 0.
68912         From a suggestion by Jim Meyering.
68913
68914 2000-07-30  Jim Meyering  <meyering@lucent.com>
68915
68916         * lib/makepath.c (make_path): Quote the other instance, too.
68917
68918         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
68919         (STATIC_BUF_SIZE): Define.
68920         (quotearg_n_options): Use only statically allocated storage when
68921         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
68922         than STATIC_BUF_SIZE.
68923
68924 2000-07-29  Jim Meyering  <meyering@lucent.com>
68925
68926         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
68927         * lib/dirname.c (dir_name): Likewise.
68928
68929         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
68930         `/'.
68931
68932         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
68933         (dir_name): Assert that there are no trailing slashes.
68934
68935 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
68936
68937         * lib/mbswidth.h (mbswidth): Add a flags argument.
68938         (mbswidth): New declaration.
68939         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
68940         * lib/mbswidth.c (mbswidth): Add a flags argument.
68941         (mbsnwidth): New function.
68942
68943 2000-07-24  Jim Meyering  <meyering@lucent.com>
68944
68945         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
68946
68947 2000-07-23  Paul Eggert  <eggert@twinsun.com>
68948
68949         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
68950
68951 2000-07-23  Paul Eggert  <eggert@twinsun.com>
68952
68953         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
68954         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
68955         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
68956         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
68957         invoke multibyte primitives.
68958
68959 2000-07-23  Paul Eggert  <eggert@twinsun.com>
68960
68961         * lib/quotearg.c:
68962         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
68963         so that mbstate_t is always defined.
68964
68965         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
68966         be 1 in at least one GCC installation, and this configuration
68967         error is likely to be common.  Ignoring MB_LEN_MAX hurts
68968         performance on hosts that have mbrtowc but have only unibyte
68969         locales, but I assume these hosts are rare.
68970
68971 2000-07-23  Paul Eggert  <eggert@twinsun.com>
68972
68973         * lib/mbswidth.c (_XOPEN_SOURCE):
68974         Don't define; this causes problems on Solaris 7.
68975         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
68976
68977 2000-07-23  Jim Meyering  <meyering@lucent.com>
68978
68979         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
68980         too: getgrgid, getpwuid, getuid.
68981
68982 2000-07-23  Jim Meyering  <meyering@lucent.com>
68983
68984         * lib/basename.c (base_name): Add an assertion.
68985
68986 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
68987
68988         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
68989         shadow its mbsinit function.
68990
68991 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
68992
68993         * lib/mbswidth.h: New file.
68994         * lib/mbswidth.c: New file.
68995         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
68996         (noinst_HEADERS): Add mbswidth.h.
68997
68998 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
68999
69000         * lib/config.charset: Add support for FreeBSD. Improve support for
69001         HP-UX and IRIX 6.
69002
69003 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
69004
69005         * m4/mbswidth.m4: New file.
69006         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
69007
69008 2000-07-15  Jim Meyering  <meyering@lucent.com>
69009
69010         * lib/makepath.c: Include quote.h.
69011         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
69012         corresponding argument in a `quote (...)' call.
69013         Give better diagnostics.
69014
69015         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
69016         (noinst_HEADERS): Add quote.h.
69017
69018         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
69019         from tar's src/misc.c.
69020         * lib/quote.h: New file.  Prototypes for same.
69021
69022 2000-07-14  Paul Eggert  <eggert@twinsun.com>
69023
69024         From a suggestion by Bruno Haible.
69025         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
69026         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
69027         to decide whether to define the BeOS workaround macro;
69028         this adjusts to the change to AC_MBSTATE_T.
69029
69030 2000-07-14  Jim Meyering  <meyering@lucent.com>
69031
69032         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
69033         jm_AC_TYPE_UINTMAX_T.
69034
69035 2000-07-13  Paul Eggert  <eggert@twinsun.com>
69036
69037         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
69038
69039         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
69040         quotearg_buffer_restyled): Add support for
69041         clocale_quoting_style.  Undo previous change to
69042         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
69043         and "{RIGHT QUOTATION MARK}" msgids.
69044
69045 2000-07-10  Paul Eggert  <eggert@twinsun.com>
69046
69047         From a suggestion by Bruno Haible.
69048         * m4/mbstate_t.m4 (AC_MBSTATE_T):
69049         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
69050         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
69051         and mbstate_t, to a single-part test that simply defines mbstate_t.
69052         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
69053         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
69054
69055 2000-07-10  Jim Meyering  <meyering@lucent.com>
69056
69057         * m4/strerror_r.m4: Mirror the correction made in autoconf.
69058
69059         * m4/gnu-source.m4: Output to confdefs.h directly.
69060         Suggestion from Akim Demaille.
69061
69062 2000-07-09  Paul Eggert  <eggert@twinsun.com>
69063
69064         The old behavior of quoting `like this' doesn't look good with
69065         newer, ISO-style fonts.  See:
69066         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
69067
69068         Instead, quote "like this" by default.  Let the translator
69069         tailor the locale-specific quoting behavior by providing
69070         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
69071
69072         * lib/quotearg.c (N_): New macro.
69073         (gettext_default): New function.
69074         (quotearg_buffer_restyled): Use
69075         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
69076         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
69077
69078 2000-07-09  Jim Meyering  <meyering@lucent.com>
69079
69080         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
69081         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
69082
69083         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
69084         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
69085
69086 2000-07-09  Jim Meyering  <meyering@lucent.com>
69087
69088         * lib/Most files: Update copyright dates to include 2000.
69089
69090 2000-07-08  Jim Meyering  <meyering@lucent.com>
69091
69092         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
69093         if not defined.
69094         (xgethostname): Remove now-unnecessary #ifdef.
69095         Move declaration of `err' into loop where it's used.
69096
69097 2000-07-05  Paul Eggert  <eggert@twinsun.com>
69098         and Bruno Haible  <haible@clisp.cons.org>
69099
69100         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
69101         only if the test for an object-type mbstate_t fails.  This
69102         prevents us from mistakenly reporting that mbstate_t is a
69103         system object type after we "#define mbstate_t int" to work
69104         around its lack.
69105
69106 2000-07-05  Paul Eggert  <eggert@twinsun.com>
69107         and Bruno Haible  <haible@clisp.cons.org>
69108
69109         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
69110
69111 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
69112
69113         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
69114         to strerror_r.
69115         Include <ctype.h> for use of isalpha.
69116
69117 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
69118
69119         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
69120         by allocating a larger buffer. Test the gethostname return value for
69121         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
69122         returns an error and ENAMETOOLONG isn't defined.
69123
69124 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
69125
69126         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
69127         dimension.
69128
69129 2000-07-04  Jim Meyering  <meyering@lucent.com>
69130
69131         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
69132         of the deprecated AC_CHECKING.
69133
69134 2000-07-04  Jim Meyering  <meyering@lucent.com>
69135
69136         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
69137         Reported by Bruno Haible.
69138
69139 2000-07-04  Jim Meyering  <meyering@lucent.com>
69140
69141         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
69142         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
69143         lacks mbrtowc.
69144
69145 2000-07-03  Paul Eggert  <eggert@twinsun.com>
69146
69147         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
69148         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
69149
69150 2000-07-03  Paul Eggert  <eggert@twinsun.com>
69151         and Bruno Haible  <haible@clisp.cons.org>
69152
69153         * lib/quotearg.c (mbrtowc):
69154         Assign to *pwc, and return 1 only if result is nonzero.
69155         (iswprint): Use ISPRINT when substituting our own mbrtowc.
69156
69157 2000-07-03  Jim Meyering  <meyering@lucent.com>
69158
69159         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
69160
69161 2000-07-03  Jim Meyering  <meyering@lucent.com>
69162
69163         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
69164         This is necessary to get a definition of e.g., UTMP_FILE on
69165         HP-UX 10.20.
69166         From Bob Proulx.
69167
69168 2000-07-02  Jim Meyering  <meyering@lucent.com>
69169
69170         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
69171
69172         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
69173         AC_LIBOBJ(function_name).
69174         * m4/chown.m4: Likewise.
69175         * m4/fnmatch.m4: Likewise.
69176         * m4/ftruncate.m4: Likewise.
69177         * m4/getgroups.m4: Likewise.
69178         * m4/getline.m4: Likewise.
69179         * m4/group-member.m4: Likewise.
69180         * m4/jm-macros.m4: Likewise.
69181         * m4/lstat.m4: Likewise.
69182         * m4/malloc.m4: Likewise.
69183         * m4/memcmp.m4: Likewise.
69184         * m4/nanosleep.m4: Likewise.
69185         * m4/putenv.m4: Likewise.
69186         * m4/realloc.m4: Likewise.
69187         * m4/regex.m4: Likewise.
69188         * m4/stat.m4: Likewise.
69189         * m4/strftime.m4: Likewise.
69190
69191 2000-07-02  Jim Meyering  <meyering@lucent.com>
69192
69193         * lib/quotearg.c (mbstate_t): Don't define here.
69194
69195 2000-07-02  Jim Meyering  <meyering@lucent.com>
69196
69197         * lib/nanosleep.c (SIGCONT): Define if not already defined.
69198
69199 2000-07-01  Jim Meyering  <meyering@lucent.com>
69200
69201         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
69202
69203 2000-07-01  Jim Meyering  <meyering@lucent.com>
69204
69205         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
69206         problem.
69207
69208 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
69209
69210         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
69211         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
69212
69213 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
69214
69215         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
69216         per change in ../m4/ls-mntd-fs.m4.
69217         (read_filesystem_list): Ignore symbolic links.
69218
69219 2000-06-29  Jim Meyering  <meyering@lucent.com>
69220
69221         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
69222         for declaration of strcmp.
69223
69224         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
69225
69226         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
69227         Avoid warning by casting result to `char *' to remove `const'.
69228
69229 2000-06-28  Jim Meyering  <meyering@lucent.com>
69230
69231         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
69232         included by quotearg.c, for which we perform this test.  From
69233         Bruno Haible.
69234
69235 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
69236
69237         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
69238         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
69239         <utmpx.h> exists, put readutmp.o into LIBOBJS.
69240
69241 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
69242
69243         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
69244
69245 2000-06-26  Paul Eggert  <eggert@twinsun.com>
69246
69247         savedir now sets errno on failure and invokes xmalloc to get memory.
69248         Fix a couple of other minor bugs while we're at it.
69249
69250         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
69251         (NAMLEN): Remove macro.
69252         (malloc, realloc): Remove decls.
69253         (stpcpy): Likewise.
69254         ("xalloc.h"): Include.
69255         (NAME_SIZE_DEFAULT): New macro.
69256         (savedir): Use xmalloc / xrealloc to allocate memory.
69257         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
69258         Skip "" directory entries.
69259         Use strlen to calculate directory entry length, since the old method
69260         is rarely used these days and isn't worth supporting.
69261         Don't use a pointer after freeing it.
69262         Check for integer overflow when calculating allocation size.
69263         Use memcpy to copy entries, instead of stpcpy.
69264         Set errno properly when returning NULL.
69265         Check for readdir error.
69266
69267 2000-06-26  Jim Meyering  <meyering@lucent.com>
69268
69269         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
69270
69271 2000-06-25  Jim Meyering  <meyering@lucent.com>
69272
69273         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
69274         Linux header bug when _XOPEN_SOURCE is defined to 500.
69275
69276 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
69277
69278         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
69279         deficiency.
69280
69281 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
69282
69283         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
69284         Include xalloc.h.
69285         Don't include <stdlib.h>.  Don't declare malloc, realloc.
69286
69287 2000-06-24  Jim Meyering  <meyering@lucent.com>
69288
69289         * m4/strerror_r.m4: Revive this file -- to try out an experimental
69290         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
69291         for which strerror does return char*, but which lacks a conveniently
69292         accessible declaration of the function.  If the compile-test says
69293         strerror_r doesn't work, then resort to a `run'-test that works on
69294         BeOS and segfaults on DEC Unix.
69295
69296 2000-06-24  Jim Meyering  <meyering@lucent.com>
69297
69298         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
69299
69300 2000-06-23  Paul Eggert  <eggert@twinsun.com>
69301
69302         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
69303         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
69304
69305 2000-06-23  Paul Eggert  <eggert@twinsun.com>
69306
69307         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
69308         (mbrtowc, mbstate_t): Define substitutes if
69309         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
69310         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
69311         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
69312
69313 2000-06-23  Jim Meyering  <meyering@lucent.com>
69314
69315         * m4/afs.m4: Add missing AC_MSG_RESULT.
69316         Reported by Bruno Haible.
69317
69318         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
69319         Suggestion from Bruno Haible.
69320
69321 2000-06-23  Jim Meyering  <meyering@lucent.com>
69322
69323         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
69324
69325 2000-06-21  Jim Meyering  <meyering@lucent.com>
69326
69327         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
69328
69329 2000-06-21  Jim Meyering  <meyering@lucent.com>
69330
69331         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
69332         (noinst_HEADERS): Add getstr.h.
69333
69334         * lib/getline.c (getstr): Move into a separate file.
69335         * lib/getstr.c (getstr): New file, extracted from getline.c, with
69336         the following changes: new parameter, delim2; both delim[12]
69337         parameters have type `int', not `char'.  The latter would lose
69338         with 8-bit delimiters.
69339         * lib/getstr.h: New file.
69340
69341 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
69342
69343         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
69344         than 1024, return a memory chunk of least possible size, instead
69345         of size PATH_MAX + 2. In the loop, increment the size proportionally.
69346         Use free/xmalloc instead of xrealloc to avoid copying for very long
69347         paths.
69348
69349 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
69350
69351         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
69352         the empty string.
69353
69354 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
69355
69356         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
69357         address, not strdup.  Include <stdlib.h> and don't declare free().
69358
69359 2000-06-19  Jim Meyering  <meyering@lucent.com>
69360
69361         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
69362
69363 2000-06-18  Jim Meyering  <meyering@lucent.com>
69364
69365         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
69366
69367         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
69368         `checking whether...' message to be consistent with that of the
69369         lstat test.
69370
69371 2000-06-18  Jim Meyering  <meyering@lucent.com>
69372
69373         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
69374         Besides, these days every porting target provides a mkdir function.
69375
69376         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
69377         needed. (this snippet comes from src/system.h).
69378
69379 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
69380
69381         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
69382
69383 2000-06-15  Paul Eggert  <eggert@twinsun.com>
69384
69385         * lib/human.c (adjust_value): New function.
69386         (human_readable_inexact): Apply rounding style even when
69387         printing approximate values.
69388
69389 2000-06-14  Paul Eggert  <eggert@twinsun.com>
69390
69391         * lib/human.c (human_readable_inexact): Allow an input block
69392         size that is not a multiple of the output block size, and vice versa.
69393         Reported by Piergiorgio Sartor.
69394
69395 2000-06-14  Paul Eggert  <eggert@twinsun.com>
69396
69397         * lib/getdate.y (get_date): Apply relative times after time
69398         zone indicator, not before.  Reported by Todd A. Jacobs.
69399
69400 2000-06-13  Jim Meyering  <meyering@lucent.com>
69401
69402         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
69403
69404         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
69405
69406 2000-06-12  Paul Eggert  <eggert@twinsun.com>
69407
69408         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
69409
69410 2000-06-12  Jim Meyering  <meyering@lucent.com>
69411
69412         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
69413         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
69414         optional argument.
69415         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
69416         the optional argument, `lib'.
69417
69418 2000-06-08  Jim Meyering  <meyering@lucent.com>
69419
69420         * m4/largefile.m4: Remove file (now that it's part of autoconf).
69421
69422 2000-06-04  Paul Eggert  <eggert@twinsun.com>
69423
69424         Rewrite largefile configuration so that we don't need to run
69425         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
69426         AC_CANONICAL_HOST in configure.in -- jmm]
69427
69428         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
69429         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
69430         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
69431         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
69432         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
69433         All uses changed.
69434         Instead of inspecting the output of getconf, try to compile the
69435         test program without and with the macro definition.
69436         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
69437         for getconf.  Instead, check for the needed flags by compiling
69438         test programs.
69439
69440 2000-06-04  Paul Eggert  <eggert@twinsun.com>
69441
69442         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
69443
69444 2000-06-04  Jim Meyering  <meyering@lucent.com>
69445
69446         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
69447         SunOS 4.1.4 for which gid_t is an unsigned type.
69448
69449 2000-06-03  Jim Meyering  <meyering@lucent.com>
69450
69451         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
69452         now that autoconf requires that.
69453
69454         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
69455         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
69456         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
69457
69458 2000-06-03  Jim Meyering  <meyering@lucent.com>
69459
69460         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
69461
69462 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
69463
69464         * m4/glibc21.m4: New file.
69465         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
69466
69467 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
69468
69469         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
69470         newer, don't install charset.alias.
69471         * lib/config.charset: Change the Linux/glibc rules so they become empty
69472         on glibc-2.1 or newer.
69473
69474 2000-06-02  Jim Meyering  <meyering@lucent.com>
69475
69476         * lib/mountlist.c: Back out last change.  Instead, do this...
69477         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
69478         me_dummy member using the same `ignore'-testing code.
69479         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
69480         fs_type strings.
69481         From Mark D. Roth.
69482
69483 2000-05-29  Jim Meyering  <meyering@lucent.com>
69484
69485         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
69486         mounts with the `ignore' attribute.  Based on a patch from
69487         Mark D. Roth.
69488
69489 2000-05-28  Jim Meyering  <meyering@lucent.com>
69490
69491         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
69492         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69493         * m4/stat.m4: Likewise.
69494         * m4/lstat.m4: Likewise.
69495         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
69496
69497         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
69498         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
69499
69500 2000-05-26  Jim Meyering  <meyering@lucent.com>
69501
69502         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
69503
69504 2000-05-24  Jim Meyering  <meyering@lucent.com>
69505
69506         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
69507         autoconf requires that.
69508         * m4/lib-check.m4: Likewise.
69509         * m4/jm-macros.m4: Likewise.
69510         * m4/strftime.m4: Likewise.
69511
69512         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
69513         AC_CHECK_DECLS, now that autoconf requires that.
69514
69515 2000-05-22  Jim Meyering  <meyering@lucent.com>
69516
69517         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69518         * m4/lstat.m4: Likewise.
69519
69520 2000-05-22  Jim Meyering  <meyering@lucent.com>
69521
69522         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
69523
69524 2000-05-20  Jim Meyering  <meyering@lucent.com>
69525
69526         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
69527         (jm_PREREQ): Use it.
69528
69529 2000-05-18  Jim Meyering  <meyering@lucent.com>
69530
69531         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
69532         back, too, since it may have been modified by allocate_entry.
69533         (hash_delete): Rewrite to use neither the assignment operator
69534         nor the comma operator in an if-expression.
69535
69536 2000-05-15  Paul Eggert  <eggert@twinsun.com>
69537
69538         * lib/closeout.c:
69539         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
69540         Remove; no longer needed.
69541         "quotearg.h": Add include.
69542         (file_name): Do not bother to explicitly initialize to NULL; it's less
69543         efficient on some hosts.
69544         (close_stdout_status): Remove test as to whether stdout was already
69545         closed; it breaks for the case "echo x | sort >&-".
69546         Quote file name colons.
69547         Do not assume that _("write error") lacks format strings.
69548
69549 2000-05-15  Jim Meyering  <meyering@lucent.com>
69550
69551         * lib/version-etc.c (version_etc_copyright): Update the copyright
69552         string used in all --version output.
69553
69554 2000-05-14  Jim Meyering  <meyering@lucent.com>
69555
69556         * lib/closeout.c (close_stdout_set_file_name): New function.
69557         (close_stdout_status): Use new file-scoped global.
69558         Return right away if fstat says the stdout file descriptor is invalid.
69559         * lib/closeout.h (close_stdout_set_file_name): Declare.
69560
69561 2000-05-10  Jim Meyering  <meyering@lucent.com>
69562
69563         * lib/closeout.c [default_exit_status]: New file-scoped variable.
69564         (close_stdout_set_status): New function.
69565         * lib/closeout.h (close_stdout_set_status): Declare.
69566
69567 2000-05-09  Jim Meyering  <meyering@lucent.com>
69568
69569         * m4/gettext.m4: Rename this...
69570         * m4/libintl.m4: ...to this.
69571
69572 2000-05-08  Jim Meyering  <meyering@lucent.com>
69573
69574         * lib/long-options.c: Don't include closeout.h.
69575         (parse_long_options): Don't call close_stdout for --version.
69576
69577 2000-05-06  Paul Eggert  <eggert@twinsun.com>
69578
69579         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
69580         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
69581         2.1.3 bug.  This avoids a clash when files like regex.c define
69582         _GNU_SOURCE.
69583
69584 2000-05-06  Jim Meyering  <meyering@lucent.com>
69585
69586         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
69587         (AC_REPLACE_FUNCS): Add strnlen.
69588
69589         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
69590         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
69591
69592         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
69593         AC_SEARCH_LIBS call for nanosleep.
69594         (LIB_NANOSLEEP): Set and AC_SUBST.
69595
69596 2000-05-06  Jim Meyering  <meyering@lucent.com>
69597
69598         * lib/strnlen.c: Undefine __strnlen and strnlen.
69599         [!weak_alias]: Define __strnlen to strnlen.
69600
69601         * lib/atexit.c: New file, from libiberty.
69602
69603 2000-05-06  Jim Meyering  <meyering@lucent.com>
69604
69605         * lib/closeout.c (close_stdout_status): Also check for errors on the
69606         stderr stream.
69607
69608 2000-05-05  Jim Meyering  <meyering@lucent.com>
69609
69610         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
69611         AC_SEARCH_LIBS call for clock_gettime.
69612         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
69613
69614         * m4/search-libs.m4: Update from autoconf.
69615
69616         su doesn't work on Solaris 2.6.
69617         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
69618         <shadow.h>.  Reported by Dragos Harabor.
69619
69620 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
69621
69622         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
69623         memcpy instead of xmalloc, xrealloc, path_concat.
69624         (locale_charset): Treat empty environment variables as absent.
69625         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
69626
69627 2000-05-04  Jim Meyering  <meyering@lucent.com>
69628
69629         * lib/getopt.c: Update from glibc.
69630         * lib/obstack.c: Likewise.
69631         * lib/obstack.h: Likewise.
69632         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
69633         file
69634
69635         * lib/regex.h: Likewise.
69636         * lib/strndup.c: Likewise.
69637         * lib/strnlen.c: New file, from glibc.
69638
69639 2000-05-03  Jim Meyering  <meyering@lucent.com>
69640
69641         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
69642
69643 2000-05-02  Paul Eggert  <eggert@twinsun.com>
69644
69645         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
69646         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
69647         compile-time test, rather than inspecting host and OS, to
69648         decide whether to define _LARGEFILE_SOURCE.
69649
69650 2000-05-01  Jim Meyering  <meyering@lucent.com>
69651
69652         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
69653
69654         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
69655         Based on a patch from Bruno Haible.
69656
69657 2000-05-01  Jim Meyering  <meyering@lucent.com>
69658
69659         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
69660
69661 2000-04-29  Jim Meyering  <meyering@lucent.com>
69662
69663         * lib/path-concat.c: Declare strdup only if it's not defined.
69664         * lib/canon-host.c: Likewise.
69665
69666 2000-04-28  Jim Meyering  <meyering@lucent.com>
69667
69668         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
69669         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
69670         is included first, then limits.h is included by locale.h by libintl.h.
69671         From John David Anglin.
69672
69673 2000-04-25  Jim Meyering  <meyering@lucent.com>
69674
69675         * lib/makepath.c (S_IRWXUGO): Define.
69676         (make_path): Always perform explicit chmod if MODE specifies any
69677         of the `special' permission bits.  Prompted by a bug report against
69678         install from Mate Wierdl and Joost van Baal.
69679
69680 2000-04-18  Jim Meyering  <meyering@lucent.com>
69681
69682         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
69683         (jm_PREREQ): Use it.
69684
69685 2000-04-18  Jim Meyering  <meyering@lucent.com>
69686
69687         * lib/README: New file.
69688
69689         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
69690         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
69691
69692 2000-04-17  Jim Meyering  <meyering@lucent.com>
69693
69694         Get it right :-)
69695         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
69696         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
69697         Suggestion from Akim Demaille.
69698
69699 2000-04-17  Jim Meyering  <meyering@lucent.com>
69700
69701         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
69702         the definition of it to rpl_strftime also defined-away the system's
69703         declaration.
69704
69705 2000-04-15  Jim Meyering  <meyering@lucent.com>
69706
69707         Use `C' to denote so-called `contiguous' files, the same way
69708         that tar does.
69709         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
69710         (ftypelet): Use S_ISCTG.
69711         From Michael Deutschmann.
69712
69713 2000-04-14  Jim Meyering  <meyering@lucent.com>
69714
69715         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
69716         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
69717         clobbered.
69718
69719 2000-04-14  Jim Meyering  <meyering@lucent.com>
69720
69721         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
69722
69723 2000-04-13  Jim Meyering  <meyering@lucent.com>
69724
69725         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
69726         AH_VERBATIM to insert required #ifndef into config.h.in.
69727         Suggestion from Akim Demaille.
69728
69729 2000-04-12  Jim Meyering  <meyering@lucent.com>
69730
69731         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
69732         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
69733         Christian Krackowizer.
69734
69735         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
69736         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
69737         (AC_SYS_LARGEFILE): Require.
69738         (AM_C_PROTOTYPES): Require.
69739
69740 2000-04-08  Jim Meyering  <meyering@lucent.com>
69741
69742         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
69743         names don't conflict.  Reported by Eli Zaretskii.
69744
69745 2000-04-07  Jim Meyering  <meyering@lucent.com>
69746
69747         * lib/putenv.c: Move inclusion of errno.h so it follows that of
69748         sys/types.h, to work around system header problems on AIX 3.2.5.
69749         From Bruno Haible.
69750
69751 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
69752
69753         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
69754         bug.  Deal with the different error behavior of Irix iconv.
69755
69756 2000-04-05  Paul Eggert  <eggert@twinsun.com>
69757
69758         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
69759         IRIX if the installer said otherwise.
69760
69761 2000-04-05  Jim Meyering  <meyering@lucent.com>
69762
69763         Portability tweaks required for ultrix4.3.
69764         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
69765         (jm_CHECK_DECLS): Add getutent to the list of functions.
69766         (_jm_DECL_HEADERS): Add utmpx.h.
69767         From John David Anglin.
69768
69769         * m4/strftime.m4: Back out the 2000-04-02 change.
69770         Instead of that change, simply undefine putenv in the test program.
69771
69772 2000-04-05  Jim Meyering  <meyering@lucent.com>
69773
69774         Portability tweaks required for ultrix4.3.
69775         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
69776         getutent.
69777         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
69778         * lib/canon-host.c: Declare strdup.
69779         * lib/path-concat.c: Likewise.
69780         From John David Anglin.
69781
69782 2000-04-04  Jim Meyering  <meyering@lucent.com>
69783
69784         Be more DOS 8.3-friendly.
69785         * lib/ref-add.sin: Renamed from ref-add.sed.in.
69786         * lib/ref-del.sin: Renamed from ref-del.sed.in.
69787         * lib/Makefile.am: Reflect renaming.
69788         Reported by Eli Zaretskii.
69789
69790         Use a temporary file name that won't clash with `charset.alias'
69791         in the DOS 8.3 name space.
69792         * lib/Makefile.am (charset_tmp): Define.
69793         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
69794         (uninstall-local): Likewise.
69795         Reported by Eli Zaretskii.
69796
69797 2000-04-03  Jim Meyering  <meyering@lucent.com>
69798
69799         * m4/gettext.m4: Fix typo in comment.
69800
69801         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
69802         textutils/configure.in).  Suggestion from Paul Eggert.
69803         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
69804
69805 2000-04-02  Paul Eggert  <eggert@twinsun.com>
69806
69807         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
69808         variable in the shell rather than using putenv, which isn't
69809         portable.  This avoids the configure-time inter-test dependency
69810         on the potentially-renamed putenv function.
69811
69812 2000-03-30  Paul Eggert  <eggert@twinsun.com>
69813
69814         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
69815         before checking struct stat.st_blksize, so that
69816         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
69817
69818 2000-03-29  Paul Eggert  <eggert@twinsun.com>
69819
69820         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
69821         since strftime.c uses HAVE_STRFTIME to decide whether to use
69822         the underlying strftime.
69823
69824 2000-03-29  Paul Eggert  <eggert@twinsun.com>
69825
69826         * lib/time/strftime.c (my_strftime): Make sure we call the system
69827         strftime, not ourselves, when invoking the underlying strftime.
69828
69829 2000-03-24  Jim Meyering  <meyering@lucent.com>
69830
69831         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
69832         (charset_alias): Define.
69833         (install-exec-local): Factor out common code.
69834         (uninstall-local): Split lines longer than 80.
69835         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
69836         (SUFFIXES): Define.
69837         (.sed.in.sed): New rule.  Don't redirect directly to $@.
69838         (CLEANFILES): Add ref-add.sed and ref-del.sed.
69839
69840 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
69841
69842         * lib/config.charset: Output a line containing "Packages using this
69843         file".
69844         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
69845         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
69846         ref-del.sed): New rules.
69847
69848 2000-03-17  Jim Meyering  <meyering@lucent.com>
69849
69850         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
69851         Otherwise, include <strings.h>
69852
69853 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
69854
69855         * lib/unicodeio.c (utf8_wctomb): New function.
69856         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
69857         format instead of in UCS-4 with platform dependent endianness.
69858
69859 2000-03-10  Jim Meyering  <meyering@lucent.com>
69860
69861         * m4/lib-check.m4: Look for getspnam in -lgen, too.
69862         From Marco Franzen.
69863
69864 2000-03-07  Paul Eggert  <eggert@twinsun.com>
69865
69866         * lib/savedir.c (savedir): Work even if directory size is
69867         negative; this can happen with some screwy NFS configurations.
69868
69869 2000-03-06  Jim Meyering  <meyering@lucent.com>
69870
69871         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
69872         if it's NULL (because we ran out of memory).  From Bruno Haible.
69873
69874 2000-03-05  Jim Meyering  <meyering@lucent.com>
69875
69876         * lib/localcharset.c ("path-concat.h"): Include.
69877         (get_charset_aliases): Use path_concat instead of ANSI string
69878         concatenation.
69879
69880         * lib/unicodeio.h (PARAMS): Define.
69881         Use it to guard prototype.
69882
69883 2000-03-04  Jim Meyering  <meyering@lucent.com>
69884
69885         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
69886         for lib/localcharset.c.
69887
69888 2000-03-04  Jim Meyering  <meyering@lucent.com>
69889
69890         * lib/Makefile.am (install-exec-local): Create $(libdir) before
69891         installing into it.
69892         (uninstall-local): Uncomment this rule so `make distcheck' works
69893         once again.
69894
69895         * lib/unicodeio.c (<errno.h>): Include it.
69896         (errno): Declare if not defined.
69897
69898         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
69899
69900         * lib/config.charset: New version, incorporating remarks from a linux
69901         i18n mailing list.  From Bruno Haible.
69902
69903 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
69904
69905         * m4/codeset.m4: New file.
69906         * m4/iconv.m4: New file.
69907         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
69908
69909 2000-03-03  Jim Meyering  <meyering@lucent.com>
69910
69911         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
69912
69913 2000-03-02  Jim Meyering  <meyering@lucent.com>
69914
69915         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
69916         the messages come out on separate lines.
69917
69918         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
69919         rather than jm_CHECK_DECLARATIONS.
69920         * m4/decl.m4: Remove now-unused file.
69921
69922         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
69923         geteuid.
69924
69925 2000-03-02  Jim Meyering  <meyering@lucent.com>
69926
69927         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
69928
69929 2000-03-01  Jim Meyering  <meyering@lucent.com>
69930
69931         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
69932         * lib/unicodeio.c: Likewise.
69933
69934 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
69935
69936         * lib/config.charset: New file.
69937         * lib/localcharset.c: New file.
69938         * lib/unicodeio.h, lib/unicodeio.c: New files.
69939         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
69940         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
69941         (noinst_HEADERS): Add unicodeio.h.
69942         (all-local, install-exec-local, charset.alias): New targets.
69943
69944 2000-02-28  Paul Eggert  <eggert@twinsun.com>
69945
69946         * lib/quotearg.c (ALERT_CHAR): New macro.
69947         (quotearg_buffer_restyled): Use it.
69948
69949 2000-02-27  Jim Meyering  <meyering@lucent.com>
69950
69951         * m4/check-decl.m4: Add getenv to the list.
69952
69953 2000-02-27  Jim Meyering  <meyering@lucent.com>
69954
69955         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
69956         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
69957
69958         * lib/backupfile.c: Guard inclusion of stdlib.h with
69959         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
69960         Declare malloc if needed.
69961
69962         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
69963         `#ifndef HAVE_DECL..'
69964         now that autoconf always defines the HAVE_DECL_ symbols.
69965         * lib/human.c: Likewise.
69966         * lib/same.c: Likewise.
69967         * lib/strtoumax.c: Likewise.
69968
69969         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
69970         declaration check was not run.
69971         * lib/hash.c: Likewise.
69972         * lib/human.c: Likewise.
69973         * lib/same.c: Likewise.
69974         * lib/strtoumax.c: Likewise.
69975
69976         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
69977         `.', then first look up the entire `.'-containing string as a login
69978         name.
69979
69980 2000-02-23  Jim Meyering  <meyering@lucent.com>
69981
69982         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
69983         in place of my hack.
69984
69985 2000-02-18  Paul Eggert  <eggert@twinsun.com>
69986
69987         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
69988         (textint): New typedef.
69989         (parser_control): Member year changed from int to textint.
69990         All uses changed.
69991         (YYSTYPE): Removed; replaced by %union with int and textint members.
69992         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
69993         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
69994         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
69995         (tSNUMBER, tUNUMBER): Now of type <textintval>.
69996         (date, number, to_year): Use width of number in digits, not its value,
69997         to determine whether it's a 2-digit year, or a 2-digit time.
69998         (yylex): Store number of digits of numeric tokens.
69999         Reported by John Kendall.
70000
70001         (parser_control): Changed from struct parser_control to typedef (for
70002         consistency).  All uses changed.
70003
70004         (tID): Removed; not used.
70005         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
70006
70007 2000-02-14  Paul Eggert  <eggert@twinsun.com>
70008
70009         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
70010         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
70011
70012 2000-02-12  Jim Meyering  <meyering@lucent.com>
70013
70014         * lib/userspec.c (ISDIGIT): Define it.
70015         (isdigit): Remove definition.
70016         (is_number): Use ISDIGIT, not isdigit.
70017         <libintl.h>: Include.
70018         (_ and N_): Define.
70019         (parse_user_spec): Mark translatable strings.
70020
70021 2000-02-10  Jim Meyering  <meyering@lucent.com>
70022
70023         With these changes, nanosleep.[ch] are finally enough like the other
70024         lib/* replacement files to compile on a few more losing systems.
70025
70026         * lib/nanosleep.h: Don't include config.h.
70027         Remove prototype from declaration of nanosleep.
70028         (PARAMS): Remove now-unneeded definition.
70029         * lib/nanosleep.c: #undef nanosleep.
70030         (rpl_nanosleep): Rename from nanosleep.
70031
70032 2000-02-10  Jim Meyering  <meyering@lucent.com>
70033
70034         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
70035         gnu_nanosleep to rpl_nanosleep.
70036
70037 2000-02-09  Jim Meyering  <meyering@lucent.com>
70038
70039         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
70040         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
70041
70042 2000-02-08  Akim Demaille  <akim@epita.fr>
70043
70044         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
70045         `[' and `]' and remove uses of `changequote'.
70046         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
70047         (AC_SYS_LARGEFILE): Likewise.
70048         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
70049         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
70050         of changequote.
70051         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
70052         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
70053         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
70054         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
70055
70056 2000-02-05  Jim Meyering  <meyering@lucent.com>
70057
70058         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
70059         Remove explicit use of AC_HEADER_TIME.  It is required by
70060         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
70061         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
70062         in autoconf whereby the expansion of the latter ended up preceding
70063         the expansion of its prerequisite, AC_HEADER_TIME.
70064         Reported by Volker Borchert.
70065
70066 2000-02-03  Jim Meyering  <meyering@lucent.com>
70067
70068         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
70069
70070 2000-02-03  Jim Meyering  <meyering@lucent.com>
70071
70072         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
70073         rather than with `#if HAVE_UTMPNAME'.
70074
70075 2000-02-02  Jim Meyering  <meyering@lucent.com>
70076
70077         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
70078         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
70079         Reported by Eli Zaretskii.
70080
70081 2000-02-01  Jim Meyering  <meyering@lucent.com>
70082
70083         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
70084
70085 2000-01-31  Jim Meyering  <meyering@lucent.com>
70086
70087         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
70088         functions.  Add the time.h and sys/time.h headers along with the
70089         AC_REQUIRE'ment of AC_HEADER_TIME.
70090
70091 2000-01-31  Jim Meyering  <meyering@lucent.com>
70092
70093         * lib/nanosleep.h (nanosleep): Guard declaration with
70094         `#if ! HAVE_DECL_NANOSLEEP'.
70095         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
70096         the declaration in that vendor's sys/timers.h.
70097         Reported by Christian Krackowizer.
70098
70099         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
70100         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
70101         (ISPRINT): Likewise.
70102         Reported by Tom Tromey.
70103
70104 2000-01-30  Jim Meyering  <meyering@lucent.com>
70105
70106         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
70107
70108         * m4/prereq.m4 (utmp_includes): Define.
70109         Check for ut_user and ut_name members in both struct utmpx
70110         and struct utmp.
70111
70112 2000-01-30  Jim Meyering  <meyering@lucent.com>
70113
70114         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
70115         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
70116         header files where only utmpx.ut_user is declared.
70117
70118         * lib/readutmp.h (UT_USER): Define.
70119
70120 2000-01-29  Jim Meyering  <meyering@lucent.com>
70121
70122         * m4/lib-check.m4: New file containing library-related checks from
70123         fileutils and sh-utils (textutils had none).
70124
70125 2000-01-28  Jim Meyering  <meyering@lucent.com>
70126
70127         * m4/perl.m4: Change format of warning message to look more like that
70128         from the missing script.  Suggestion from François Pinard.
70129
70130 2000-01-25  Jim Meyering  <meyering@lucent.com>
70131
70132         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
70133         well as time.h in the compile check.
70134         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
70135         Fix typo in cross-compiling case: s/yes/no/.
70136
70137 2000-01-23  Jim Meyering  <meyering@lucent.com>
70138
70139         * m4/jm-macros.m4: Move df-related tests here from
70140         fileutils/configure.in
70141
70142         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
70143         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
70144
70145         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
70146         s/space/ac_fsusage_space/.
70147         (jm_FILE_SYSTEM_USAGE): Take two parameters.
70148
70149         * m4/ftruncate.m4: New file (derived from part of
70150         fileutils/configure.in).
70151         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
70152         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
70153
70154         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
70155         AC_SUBST these here, rather than just in sh-util/configure.in, so
70156         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
70157         all the same.
70158         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
70159         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
70160         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
70161         (AC_SUBST(POW_LIBM)): Likewise.
70162         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
70163
70164 2000-01-23  Jim Meyering  <meyering@lucent.com>
70165
70166         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
70167         obstack.c.
70168
70169 2000-01-22  Jim Meyering  <meyering@lucent.com>
70170
70171         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
70172
70173         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
70174
70175         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
70176         configure.in
70177         (AC_CHECK_HEADERS): Likewise for sh-utils.
70178         (AC_CHECK_HEADERS): Likewise for textutils.
70179         Merge the three lists of headers.
70180
70181         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
70182         from fileutils' configure.in.
70183
70184         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
70185         code. Moved tests into their own function (_jm_DECL_HEADERS) in
70186         check-decl.m4.
70187
70188         * m4/check-decl.m4: Use #if rather than #ifdef.
70189         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
70190         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
70191         (_jm_DECL_HEADERS): Define new function.
70192         (jm_CHECK_DECLARATIONS): Require it.
70193
70194 2000-01-22  Jim Meyering  <meyering@lucent.com>
70195
70196         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
70197         [! HAVE_DECL_STRTOULL]: Declare strtoull.
70198         Required for some AIX systems.  Reported by Christian Krackowizer.
70199         [TESTING] (main): New function.
70200
70201         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
70202         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
70203         letters.
70204
70205         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
70206         iswprint.
70207
70208         * lib/strverscmp.c (ISDIGIT): Define.
70209         (strverscmp): Use ISDIGIT, not isdigit.
70210
70211 2000-01-19  Jim Meyering  <meyering@lucent.com>
70212
70213         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
70214         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
70215         defines `struct timespec' in <sys/time.h>
70216
70217         * m4/c-bs-a.m4: Remove uses of changequote altogether.
70218         Thanks to Akim for explaining.
70219
70220 2000-01-17  Paul Eggert  <eggert@twinsun.com>
70221
70222         * lib/nanosleep.c (nanosleep):
70223         Don't use SA_INTERRUPT to decide whether to call sigaction, as
70224         POSIX.1 doesn't require SA_INTERRUPT and some systems
70225         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
70226         it's been part of POSIX.1 since day 1 (in 1988).
70227
70228 2000-01-17  Jim Meyering  <meyering@lucent.com>
70229
70230         * lib/interlock: Remove unused file.  Reported by François Pinard.
70231
70232 2000-01-16  Paul Eggert  <eggert@twinsun.com>
70233
70234         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
70235         alert, backslash, formfeed, and vertical tab unnecessarily in
70236         shell quoting style.
70237
70238 2000-01-16  Jim Meyering  <meyering@lucent.com>
70239
70240         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
70241         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
70242         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
70243         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
70244
70245 2000-01-16  Jim Meyering  <meyering@lucent.com>
70246
70247         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
70248         because the latter didn't work.
70249
70250 2000-01-15  Jim Meyering  <meyering@lucent.com>
70251
70252         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
70253         (AC_REPLACE_FUNCS): Add memcpy and memset.
70254         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
70255         Add strpbrk.
70256         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
70257
70258 2000-01-12  Jim Meyering  <meyering@lucent.com>
70259
70260         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
70261         (jm_PREREQ): Use it.
70262         (jm_PREREQ_READUTMP): New macro.
70263         (jm_PREREQ): Use it.
70264
70265 2000-01-11  Paul Eggert  <eggert@twinsun.com>
70266
70267         Quote multibyte characters correctly.
70268         * m4/c-bs-a.m4: New file.
70269         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
70270         (jm_PREREQ): Use it.
70271
70272 2000-01-11  Paul Eggert  <eggert@twinsun.com>
70273
70274         * m4/uintmax_t.m4: Port to autoconf 2.13.
70275
70276 2000-01-08  Jim Meyering  <meyering@ascend.com>
70277
70278         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
70279         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
70280
70281 2000-01-04  Jim Meyering  <meyering@ascend.com>
70282
70283         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
70284         jm_STRUCT_DIRENT_D_TYPE.
70285         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
70286         jm_STRUCT_DIRENT_D_INO.
70287         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
70288         jm_STRUCT_UTIMBUF.
70289         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
70290         renamings.
70291         * m4/utime.m4: Likewise.
70292
70293         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
70294         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
70295
70296 2000-01-03  Paul Eggert  <eggert@twinsun.com>
70297
70298         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
70299         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
70300
70301 2000-01-02  Jim Meyering  <meyering@ascend.com>
70302
70303         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
70304         remember if this is necessary.
70305
70306 1999-12-26  Jim Meyering  <meyering@ascend.com>
70307
70308         * m4/jm-macros.m4: Use it here.
70309         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
70310
70311 1999-12-23  Jim Meyering  <meyering@ascend.com>
70312
70313         * m4/jm-macros.m4: Check for clock_gettime (moved from
70314         fileutils/configure.in)
70315         Check for gettimeofday.
70316
70317 1999-12-20  Jim Meyering  <meyering@ascend.com>
70318
70319         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
70320         autoconf-2.14a-1999-12-20.
70321
70322 1999-12-19  Jim Meyering  <meyering@ascend.com>
70323
70324         * m4/lstat-slash.m4: New file.
70325         * m4/jm-macros.m4: Use the new macro:
70326         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
70327
70328 1999-12-07  Jim Meyering  <meyering@ascend.com>
70329
70330         * m4/perl.m4: Require that File::Compare be available, too.
70331         Too many systems seem to lack it.
70332
70333         * m4/strftime.m4: Add checks for most of the cpp macros tested in
70334         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
70335
70336 1999-11-18  Paul Eggert  <eggert@twinsun.com>
70337
70338         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
70339         problem with the QNX 4.25 shell, which doesn't propagate exit
70340         status of failed commands inside shell assignments.
70341
70342 1999-11-17  Jim Meyering  <meyering@ascend.com>
70343
70344         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
70345
70346 1999-11-07  Jim Meyering  <meyering@ascend.com>
70347
70348         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
70349
70350 1999-11-06  Jim Meyering  <meyering@ascend.com>
70351
70352         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
70353         * m4/jm-macros.m4 (jm_MACROS): Use it here.
70354
70355 1999-11-05  Jim Meyering  <meyering@ascend.com>
70356
70357         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
70358         configure.in of textutils, fileutils, and sh-utils into this one
70359         (shared between those packages) file.
70360         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
70361         AC_STRUCT_ST_BLKSIZE.
70362
70363 1999-11-03  Jim Meyering  <meyering@ascend.com>
70364
70365         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
70366         of AC_CHECK_TYPE checks includes unistd.h.
70367         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
70368         Suggestion from Akim Demaille.
70369
70370 1999-10-30  Jim Meyering  <meyering@ascend.com>
70371
70372         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
70373         m4-quoted string.
70374         * m4/ls-mntd-fs.m4: Likewise.
70375         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
70376         * m4/jm-winsz1.m4: Likewise.
70377
70378         * m4/const.m4: Remove file, since the fix made it into the experimental
70379         version of autoconf.
70380         * m4/mktime.m4: Likewise.
70381
70382         * m4/check-type.m4: Remove file, now that the latest version of
70383         AC_CHECK_TYPE takes a third arg to specify additional #includes.
70384
70385         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
70386         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
70387         AC_CHECK_TYPE.
70388
70389 1999-10-04  Jim Meyering  <meyering@ascend.com>
70390
70391         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
70392
70393 1999-09-22  Paul Eggert  <eggert@twinsun.com>
70394
70395         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
70396         2.95.1 bug with HP-UX 10.20.
70397
70398 1999-09-17  Jim Meyering  <meyering@ascend.com>
70399
70400         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
70401         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
70402         due to missing strdup (against sh-utils-2.0).
70403
70404 1999-08-29  Jim Meyering  <meyering@ascend.com>
70405
70406         * m4/jm-macros.m4: Require jm_BISON.
70407         * m4/bison.m4: New file.
70408
70409 1999-08-17  Paul Eggert  <eggert@twinsun.com>
70410
70411         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
70412         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
70413
70414 1999-08-05  Jim Meyering  <meyering@ascend.com>
70415
70416         * m4/getline.m4: Rename test file from conftestdata to conftest.data
70417         to avoid conflicts with `conftest' on 8+3 filesystems.
70418         Suggestion from Eli Zaretskii.
70419
70420 1999-08-04  Jim Meyering  <meyering@ascend.com>
70421
70422         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
70423         fileutils and sh-utils (textutils's getline test was inadequate).
70424         (AM_FUNC_GETLINE): Run this test.
70425         (AC_CHECK_FUNCS): Check for getdelim.
70426         Reported by Bob Proulx.
70427
70428 1999-08-02  Jim Meyering  <meyering@ascend.com>
70429
70430         * m4/jm-macros.m4: Add a comment.
70431
70432 1999-08-01  Paul Eggert  <eggert@twinsun.com>
70433
70434         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
70435         <inttypes.h> defines strtoumax as a macro (and not as a
70436         function).
70437
70438 1999-08-01  Paul Eggert  <eggert@twinsun.com>
70439
70440         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
70441         that we can shift, multiply and divide unsigned long long
70442         values; Ultrix cc can't do it.
70443
70444 1999-08-01  Paul Eggert  <eggert@twinsun.com>
70445
70446         * m4/mktime.m4: New file, which is a preview of what should appear
70447         in the next public autoconf release.
70448
70449 1999-08-01  Paul Eggert  <eggert@twinsun.com>
70450
70451         * m4/lfs.m4: Remove this file.
70452         * m4/largefile.m4: New file.  It contains the old contents of
70453         lfs.m4, except that all names with prefix AC_LFS have been
70454         changed to use the prefix AC_SYS_LARGEFILE instead, to be
70455         compatible with future autoconf versions.  Also, some minor m4
70456         quoting problems have been fixed.
70457
70458 1999-08-01  Paul Eggert  <eggert@twinsun.com>
70459
70460         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
70461         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
70462         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
70463         and simplify the shell code.
70464
70465 1999-08-01  Jim Meyering  <meyering@ascend.com>
70466
70467         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
70468         m4.
70469
70470 1999-07-20  Jim Meyering  <meyering@ascend.com>
70471
70472         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
70473
70474 1999-07-15  Jim Meyering  <meyering@ascend.com>
70475
70476         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
70477
70478 1999-05-22  Jim Meyering  <meyering@ascend.com>
70479
70480         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
70481
70482 1999-05-20  Jim Meyering  <meyering@ascend.com>
70483
70484         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
70485         Add a colon after each `then' in case $4 is empty.
70486
70487 1999-05-16  Jim Meyering  <meyering@ascend.com>
70488
70489         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
70490
70491 1999-05-10  Jim Meyering  <meyering@ascend.com>
70492
70493         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
70494
70495         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
70496         AC_FUNC_MKTIME.
70497
70498 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
70499
70500         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
70501
70502 1999-05-04  Paul Eggert  <eggert@twinsun.com>
70503
70504         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
70505         not CPPFLAGS, so that linking works correctly in IRIX.
70506
70507 1999-04-30  Paul Eggert  <eggert@twinsun.com>
70508
70509         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
70510
70511 1999-04-20  Paul Eggert  <eggert@twinsun.com>
70512
70513         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
70514         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
70515         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
70516         jm_AC_TYPE_UNSIGNED_LONG_LONG.
70517         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
70518
70519         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
70520
70521 1999-04-20  Jim Meyering  <meyering@ascend.com>
70522
70523         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
70524         AC_REPLACE xstroull if necessary.  From Paul Eggert.
70525         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
70526
70527 1999-04-18  Jim Meyering  <meyering@ascend.com>
70528
70529         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
70530         * m4/jm-macros.m4: Use it.
70531
70532 1999-04-06  Jim Meyering  <meyering@ascend.com>
70533
70534         * m4/strftime.m4: Remove test for %f.
70535
70536 1999-03-29  Jim Meyering  <meyering@ascend.com>
70537
70538         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
70539         superset of the AC_TYPE_* checks in the textutils, fileutils,
70540         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
70541         AC_TYPE_PID_T.
70542
70543 1999-03-28  Jim Meyering  <meyering@ascend.com>
70544
70545         * m4/jm-macros.m4: Define GNU_PACKAGE here.
70546         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
70547         replaced e.g., in the *.sh files of the sh-utils.
70548
70549 1999-03-20  Jim Meyering  <meyering@ascend.com>
70550
70551         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
70552         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
70553         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
70554
70555 1999-03-19  Jim Meyering  <meyering@ascend.com>
70556
70557         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
70558
70559 1999-03-12  Jim Meyering  <meyering@ascend.com>
70560
70561         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
70562
70563 1999-03-07  Jim Meyering  <meyering@ascend.com>
70564
70565         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
70566         declared.
70567
70568 1999-02-17  Jim Meyering  <meyering@ascend.com>
70569
70570         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
70571         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
70572
70573 1999-02-07  Jim Meyering  <meyering@ascend.com>
70574
70575         * m4/group-member.m4: New file -- extracted from sh-utils'
70576         configure.in.
70577
70578         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
70579         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
70580
70581 1999-02-06  Jim Meyering  <meyering@ascend.com>
70582
70583         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
70584         * m4/fnmatch.m4: Likewise.
70585         * m4/getgroups.m4: Likewise.
70586         * m4/lstat.m4: Likewise.
70587         * m4/malloc.m4: Likewise.
70588         * m4/putenv.m4: Likewise.
70589         * m4/realloc.m4: Likewise.
70590         * m4/regex.m4: Likewise.
70591         * m4/stat.m4: Likewise.
70592         * m4/strftime.m4: Likewise.
70593         Suggestion from Alain Magloire.
70594
70595         * m4/chown.m4: Use `.$ac_objext', not `.o'.
70596         * m4/fnmatch.m4: Likewise.
70597         * m4/getgroups.m4: Likewise.
70598         * m4/getline.m4: Likewise.
70599         * m4/lstat.m4: Likewise.
70600         * m4/malloc.m4: Likewise.
70601         * m4/memcmp.m4: Likewise.
70602         * m4/putenv.m4: Likewise.
70603         * m4/realloc.m4: Likewise.
70604         * m4/regex.m4: Likewise.
70605         * m4/stat.m4: Likewise.
70606         * m4/strftime.m4: Likewise.
70607         Suggestion from Alain Magloire.
70608
70609         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
70610         an argument.
70611
70612         * m4/regex.m4: Add a run-time Test for proper operation of
70613         re_compile_pattern.
70614
70615 1999-01-31  Jim Meyering  <meyering@ascend.com>
70616
70617         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
70618
70619 1999-01-30  Jim Meyering  <meyering@ascend.com>
70620
70621         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
70622
70623         * m4/jm-mktime.m4: Make this a wrapper around the official
70624         AM_FUNC_MKTIME rather than my private copy, now that the official one
70625         is up to date.
70626         * m4/mktime.m4: Remove file.
70627
70628         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
70629         * m4/uptime.m4: Likewise.
70630         * m4/uintmax_t.m4: Likewise.
70631
70632 1999-01-28  Jim Meyering  <meyering@ascend.com>
70633
70634         * m4/jm-macros.m4: Use jm_AFS.
70635         * m4/afs.m4: New file (from fileutils' configure.in).
70636
70637         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
70638         * m4/chown.m4: Likewise.
70639         * m4/d-ino.m4: Likewise.
70640         * m4/d-type.m4: Likewise.
70641         * m4/fnmatch.m4: Likewise.
70642         * m4/getgroups.m4: Likewise.
70643         * m4/gettext.m4: Likewise.
70644         * m4/jm-mktime.m4: Likewise.
70645         * m4/jm-winsz2.m4: Likewise.
70646         * m4/lcmessage.m4: Likewise.
70647         * m4/ls-mntd-fs.m4: Likewise.
70648         * m4/malloc.m4: Likewise.
70649         * m4/memcmp.m4: Likewise.
70650         * m4/putenv.m4: Likewise.
70651         * m4/realloc.m4: Likewise.
70652         * m4/st_mtim.m4: Likewise.
70653         * m4/strftime.m4: Likewise.
70654
70655 1999-01-16  Jim Meyering  <meyering@ascend.com>
70656
70657         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
70658         (ARGMATCH_DIE_DECL): Define.
70659
70660 1999-01-12  Jim Meyering  <meyering@ascend.com>
70661
70662         * m4/Makefile.am.in: Rewrite to avoid using fmt.
70663         Reported by Lars Hecking.
70664
70665 1999-01-10  Jim Meyering  <meyering@ascend.com>
70666
70667         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
70668         gross kludge.
70669         * m4/inttypes_h.m4: Likewise.
70670         * m4/lstat.m4: Likewise.
70671         * m4/malloc.m4: Likewise.
70672         * m4/readdir.m4: Likewise.
70673         * m4/realloc.m4: Likewise.
70674         * m4/st_dm_mode.m4: Likewise.
70675         * m4/stat.m4: Likewise.
70676         * m4/utimbuf.m4: Likewise.
70677         * m4/utimes.m4: Likewise.
70678
70679         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
70680         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
70681         comments in config.h.in are meaningful.
70682
70683         * m4/jm-macros.m4: Require autoconf-2.13 here.
70684
70685         * m4/regex.m4: By default, don't use the included regex.c on systems
70686         with glibc 2.  Suggestion from Uli Drepper.
70687
70688 1999-01-02  Jim Meyering  <meyering@ascend.com>
70689
70690         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
70691
70692 1998-12-18  Jim Meyering  <meyering@ascend.com>
70693
70694         * m4/Makefile.am.in (Makefile.am): Simplify rule.
70695         Based on a suggestion from Lars Hecking.
70696
70697 1998-11-16  Paul Eggert  <eggert@twinsun.com>
70698
70699         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
70700
70701 1998-11-16  Jim Meyering  <meyering@ascend.com>
70702
70703         * m4/lfs.m4: Double-quote the `uname...` expression.
70704
70705 1998-11-14  Jim Meyering  <meyering@ascend.com>
70706
70707         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
70708         * m4/stat.m4: Likewise.
70709
70710 1998-11-03  Jim Meyering  <meyering@ascend.com>
70711
70712         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
70713         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
70714
70715 1998-10-18  Jim Meyering  <meyering@ascend.com>
70716
70717         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
70718
70719 1998-10-17  Jim Meyering  <meyering@ascend.com>
70720
70721         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
70722         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
70723         calls for those previously hard-coded headers.  Instead, take a new
70724         parameter.
70725         (jm_CHECK_DECLARATIONS): Reflect interface change.
70726         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
70727         (jm_CHECK_DECL_LOCALTIME_R): New macro.
70728
70729         * m4/mktime.m4: Test for spring-forward gap before long-running test.
70730
70731 1998-10-14  Jim Meyering  <meyering@ascend.com>
70732
70733         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
70734         instead of "TZ=America/Vancouver".  From Paul Eggert.
70735
70736 1998-10-11  Jim Meyering  <meyering@ascend.com>
70737
70738         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
70739         This adds a test for a recently added compatibility fix for mktime.c.
70740         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
70741
70742 1998-09-27  Jim Meyering  <meyering@ascend.com>
70743
70744         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
70745
70746         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
70747         ../configure.in, including a change from Gordon Matzigkeit to allow
70748         cross-compiling for the Hurd.
70749
70750         * m4/glibc.m4: New file/macro to test for the GNU C Library
70751         versions 1 and 2.  From Gordon Matzigkeit.
70752         Indent.
70753
70754 1998-09-21  Jim Meyering  <meyering@ascend.com>
70755
70756         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
70757
70758 1998-08-18  Paul Eggert  <eggert@twinsun.com>
70759
70760         Port nanosecond-resolution times to UnixWare 2.1.2 and
70761         pedantic Solaris 2.6.
70762
70763         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
70764         AC_STRUCT_ST_MTIM.
70765         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
70766         Generate name of ns member, instead of just 1 or undef.
70767         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
70768
70769 1998-08-15  Jim Meyering  <meyering@ascend.com>
70770
70771         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
70772         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
70773         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
70774         instead of jm_TYPE_SSIZE_T.
70775
70776 1998-08-12  Jim Meyering  <meyering@ascend.com>
70777
70778         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
70779
70780 1998-08-02  Jim Meyering  <meyering@ascend.com>
70781
70782         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
70783         in acconfig.h manually.
70784
70785 1998-07-31  Paul Eggert  <eggert@twinsun.com>
70786
70787         * m4/st_mtim.m4: New file.
70788
70789 1998-07-28  Jim Meyering  <meyering@ascend.com>
70790
70791         * m4/utimes.m4: Undef stat.
70792
70793 1998-07-25  Jim Meyering  <meyering@ascend.com>
70794
70795         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
70796         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
70797
70798 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
70799
70800         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
70801         uid and gid actually remain unchanged.
70802
70803 1998-07-07  Jim Meyering  <meyering@ascend.com>
70804
70805         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
70806
70807 1998-07-04  Jim Meyering  <meyering@ascend.com>
70808
70809         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
70810         to prove that this macro can be used in packages without regex.c.
70811
70812 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
70813
70814         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
70815         is to be used.
70816
70817 1998-07-03  Jim Meyering  <meyering@ascend.com>
70818
70819         * m4/gettext.m4: Add -lintl if it's found to be necessary.
70820
70821         * m4/gettext.m4: New file -- from gettext-0.10.35.
70822         * m4/lcmessage.m4: Likewise.
70823         * m4/progtest.m4: Likewise.
70824
70825         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
70826         * m4/jm-macros.m4: Require the new macro.
70827
70828 1998-06-29  Jim Meyering  <meyering@ascend.com>
70829
70830         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
70831         for the definition of NGROUPS (used in a system header included
70832         by sys/mount.h).
70833
70834 1998-06-28  Jim Meyering  <meyering@ascend.com>
70835
70836         * m4/ls-mntd-fs.m4: New file.
70837         * m4/fstypename.m4: New file.
70838
70839         * m4/jm-macros.m4: Require the new macro.
70840         * m4/jm-glibc-io.m4: New file.
70841
70842 1998-05-19  Jim Meyering  <meyering@ascend.com>
70843
70844         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
70845         * m4/lchown.m4: New file.
70846
70847         * m4/Makefile.am.in: New file.
70848         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
70849
70850 1998-05-14  Jim Meyering  <meyering@ascend.com>
70851
70852         * m4/Makefile.am (EXTRA_DIST): Add them.
70853         * m4/jm-macros.m4: New file.
70854         * m4/utimbuf.m4: New file.
70855
70856 1998-05-12  Jim Meyering  <meyering@ascend.com>
70857
70858         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
70859
70860 1998-05-11  Jim Meyering  <meyering@ascend.com>
70861
70862         * m4/isc-posix.m4: New file.
70863
70864 1998-05-10  Jim Meyering  <meyering@ascend.com>
70865
70866         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
70867
70868 1998-05-09  Jim Meyering  <meyering@ascend.com>
70869
70870         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
70871         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
70872         with automake.
70873
70874         * m4/ssize_t.m4: New file.
70875         * m4/mktime.m4: Remove file -- the new automake has this now.
70876
70877 1998-04-26  Jim Meyering  <meyering@ascend.com>
70878
70879         * m4/assert.m4: New file.
70880         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
70881
70882 1998-04-05  Jim Meyering  <meyering@ascend.com>
70883
70884         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
70885         (jm_PREREQ): Use it here.
70886
70887 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
70888
70889         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
70890         in acconfig.h.
70891
70892 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
70893
70894         * m4/prereq.m4: New file.
70895         * m4/error.m4: New file.
70896         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
70897
70898 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
70899
70900         * m4/getline.m4: Don't set am_cv_func_working_getline before the
70901         cache-check for the same variable -- that defeated the purpose of
70902         the test; the test program was never run.  This was a problem only
70903         on systems with losing getline functions -- HP-UX 10.20 is one.
70904         Reported by Bjorn Helgaas.
70905
70906 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
70907
70908         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
70909
70910 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
70911
70912         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
70913
70914         * m4/const.m4: New file.  Use an initializer in this declaration
70915         typedef int charset[2]; const charset x;
70916         Reported by Bob Glickstein.
70917
70918 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
70919
70920         * m4/chown.m4: Fix reversed types on -1 args to chown.
70921         From Kaveh Ghazi.
70922
70923 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
70924
70925         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
70926         Add lseek and memchr.
70927
70928         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
70929         T.E.Dickey <dickey@clark.net> said that some older preprocessors
70930         have a 20-character limit on names.
70931
70932 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
70933
70934         * m4/inttypes_h.m4: New file.
70935         * m4/uintmax_t.m4: New file.
70936         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
70937
70938
70939         -----
70940
70941         Local Variables:
70942         coding: utf-8
70943         End:
70944
70945         Copyright (C) 1997-2010 Free Software Foundation, Inc.
70946
70947         Copying and distribution of this file, with or without
70948         modification, are permitted provided the copyright notice
70949         and this notice are preserved.