acl: Add support for ACLs on NonStop Kernel.
[gnulib.git] / ChangeLog
1 2010-10-03  Bruno Haible  <bruno@clisp.org>
2             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
3
4         acl: Add support for ACLs on NonStop Kernel.
5         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
6         Check whether the function aclsort() exists.
7         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
8         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
9         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
10         (acl_nontrivial [HAVE_ACLSORT]: New function.
11         (file_has_acl): Implement for NonStop Kernel.
12         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
13         (qset_acl): Implement for NonStop Kernel.
14         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
15         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
16         (main): Implement for NonStop Kernel.
17         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
18         Kernel. Handle this flavor.
19         * tests/test-set-mode-acl.sh: Likewise.
20         * tests/test-copy-acl.sh: Likewise.
21         * tests/test-copy-file.sh: Likewise.
22
23 2010-10-03  Bruno Haible  <bruno@clisp.org>
24
25         Info about ACLs on NonStop Kernel.
26         * doc/acl-resources.txt: Add info about NonStop Kernel.
27         References by Joachim Schmitz <schmitz@hp.com>.
28
29 2010-10-02  Bruno Haible  <bruno@clisp.org>
30
31         Define missing EDQUOT on NonStop Kernel.
32         * lib/errno.in.h (EDQUOT): Assign a value if missing.
33         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
34         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
35         missing.
36         * doc/posix-headers/errno.texi: Mention the NSK bug.
37         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
38         Reported by Joachim Schmitz <schmitz@hp.com>.
39
40 2010-10-02  Bruno Haible  <bruno@clisp.org>
41
42         Update doc for POSIX:2008.
43         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
44         Update URL of POSIX specification.
45
46 2010-10-02  Bruno Haible  <bruno@clisp.org>
47
48         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
49         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
50         from gnulib, not from Automake.
51
52 2010-10-02  Bruno Haible  <bruno@clisp.org>
53
54         New module 'system-posix'.
55         * modules/system-posix: New file.
56         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
57         module is present.
58         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
59         GNULIB_SYSTEM_POSIX.
60         * modules/stdlib (Depends-on): Remove sys_wait.
61         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
62         * doc/posix-functions/system.texi: Mention the new module.
63         * doc/posix-headers/stdlib.texi: Likewise.
64         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
65         define test_sys_wait_macros to a no-op.
66         Reported by Sam Steingold <sds@gnu.org>.
67
68 2010-09-30  Bruno Haible  <bruno@clisp.org>
69
70         More renaming from 'getdate' to 'get_date'.
71         * doc/get_date.texi: Renamed from doc/getdate.texi.
72         * modules/get_date (Files): Update.
73         * MODULES.html.sh (Date and time <time.h>): Update.
74         * DEPENDENCIES: Update.
75         * gnulib-tool: Update comment.
76         * m4/bison.m4 (gl_BISON): Likewise.
77         * m4/get_date.m4 (gl_GET_DATE): Likewise.
78
79 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
80
81         bootstrap: support ACLOCAL_FLAGS during aclocal
82         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
83         can add additional -I dir for third-party .m4 files.
84
85 2010-09-30  Eric Blake  <eblake@redhat.com>
86
87         bootstrap: use glibtoolize on MacOS
88         * build-aux/bootstrap (check_versions): Convert libtool into
89         libtoolize.
90         (tool search): Move libtool check earlier, and look for
91         glibtoolize for MacOS.
92         (gnulib_tool_options): Auto-add --libtool when appropriate.
93         Reported by Justin Clift.
94
95         poll: fix typo that broke test on MacOS
96         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
97         Reported by Justin Clift.
98
99         getdate: rename to get_date
100         Note: getdate.h is not renamed, to minimize client impact.
101         * modules/getdate: Mark obsolete.  Move old contents...
102         * modules/get_date: ...to new module name.
103         * modules/getdate-tests: Move...
104         * modules/get_date-tests: ...here.
105         * m4/getdate.m4: Move...
106         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
107         * lib/getdate.y: Move...
108         * lib/get_date.y: ...here.
109         * tests/test-getdate.c: Move...
110         * tests/test-get_date.c: ...here.
111         * doc/posix-functions/getdate.texi (getdate): Update name.
112         * NEWS: Mention the change.
113
114 2010-09-29  Bruno Haible  <bruno@clisp.org>
115
116         Separate the module 'waitpid' from the module 'sys_wait'.
117         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
118         present.
119         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
120         gl_MODULE_INDICATOR_FOR_TESTS.
121         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
122         * modules/sys_wait (Depends-on): Remove waitpid.
123         (Makefile.am): Substitute GNULIB_WAITPID.
124         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
125         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
126         signature only if the 'waitpid' module is present.
127         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
128         * NEWS: Mention the change.
129         * modules/grantpt (Depends-on): Add waitpid.
130         * modules/wait-process (Depends-on): Likewise.
131
132 2010-09-29  Bruno Haible  <bruno@clisp.org>
133
134         More tests for module 'sys_wait'.
135         * modules/sys_wait-c++-tests: New file.
136         * tests/test-sys_wait-c++.cc: New file.
137         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
138         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
139
140 2010-09-29  Bruno Haible  <bruno@clisp.org>
141
142         New module 'waitpid'.
143         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
144         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
145         Don't include <process.h>.
146         (waitpid): Declare only, using modern idiom.
147         * m4/waitpid.m4: New file.
148         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
149         * modules/waitpid: New file.
150         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
151         (Makefile.am): Update.
152         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
153
154 2010-09-28  Bruno Haible  <bruno@clisp.org>
155
156         poll: Assume ANSI C.
157         * lib/poll.c (poll): Use an ANSI C declaration.
158
159 2010-09-28  Bruno Haible  <bruno@clisp.org>
160
161         poll-h: Create poll.h on all platforms.
162         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
163         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
164         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
165         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
166         (gl_REPLACE_POLL_H): Don't set POLL_H.
167         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
168         * modules/poll-h (Depends-on): Add include_next.
169         (Makefile.am): Create poll.h unconditionally. Substitute also
170         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
171
172 2010-09-28  Bruno Haible  <bruno@clisp.org>
173
174         Tests for module 'poll-h'.
175         * modules/poll-h-c++-tests: New file.
176         * tests/test-poll-h-c++.cc: New file.
177
178         Tests for module 'poll-h'.
179         * modules/poll-h-tests: New file.
180         * tests/test-poll-h.c: New file.
181
182 2010-09-28  Bruno Haible  <bruno@clisp.org>
183
184         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
185         * modules/poll-h (Depends-on): Add 'extensions'.
186
187 2010-09-28  Bruno Haible  <bruno@clisp.org>
188
189         New module 'poll-h'.
190         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
191         (poll): Use modern idiom.
192         * modules/poll-h: New file.
193         * modules/poll (Files): Remove lib/poll.in.h.
194         (Depends-on): Add poll-h.
195         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
196         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
197         * m4/poll_h.m4: New file.
198         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
199         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
200         and invoke gl_REPLACE_POLL_H.
201         * lib/poll.c: Use common idiom.
202         * tests/test-poll.c: Likewise.
203         * doc/posix-headers/poll.texi: Mention the poll-h module.
204         Suggested by Eric Blake.
205
206 2010-09-26  Bruno Haible  <bruno@clisp.org>
207
208         sys_wait: Implement WSTOPSIG.
209         * lib/sys_wait.in.h (WSTOPSIG): New macro.
210         Reported by Simon Josefsson.
211
212 2010-09-26  Simon Josefsson  <simon@josefsson.org>
213
214         stdlib, sys_wait: Avoid compilation error on mingw.
215         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
216
217 2010-09-26  Bruno Haible  <bruno@clisp.org>
218
219         stdlib tests: Avoid code duplication.
220         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
221         * modules/sys_wait-tests (Files): Likewise.
222         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
223         * tests/test-stdlib.c: Include test-sys_wait.h.
224         (main): Invoke test_sys_wait_macros.
225         * tests/test-sys_wait.c: Include test-sys_wait.h.
226         (main): Invoke test_sys_wait_macros.
227
228 2010-09-25  Simon Josefsson  <simon@josefsson.org>
229
230         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
231         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
232         sure Windows sockets are working before calling getaddrinfo.
233         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
234         * doc/gnulib.texi (Windows sockets): Fix typo.
235
236 2010-09-25  Bruno Haible  <bruno@clisp.org>
237
238         Tests for module 'regex-quote'.
239         * modules/regex-quote-tests: New file.
240         * tests/test-regex-quote.c: New file.
241
242         New module 'regex-quote'.
243         * lib/regex-quote.h: New file.
244         * lib/regex-quote.c: New file.
245         * modules/regex-quote: New file.
246         Suggested by Reuben Thomas <rrt@sc3d.org>.
247
248 2010-09-24  Bruno Haible  <bruno@clisp.org>
249
250         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
251         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
252
253 2010-09-23  Bruno Haible  <bruno@clisp.org>
254
255         setenv: Relax license.
256         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
257         Blake.
258         Requested by Eric Blake.
259
260 2010-09-22  Bruno Haible  <bruno@clisp.org>
261
262         termios: Relax license.
263         * modules/termios (License): Change to LGPLv2+.
264         Requested by Eric Blake.
265
266 2010-09-22  Bruno Haible  <bruno@clisp.org>
267
268         threadlib: Allow the package to change the default to 'no'.
269         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
270         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
271         Reported by Paul Eggert.
272
273 2010-09-22  Pádraig Brady  <P@draigbrady.com>
274             Bruno Haible  <bruno@clisp.org>
275
276         Fix endless loop in mbmemcasecoll.
277         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
278         byte.
279         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
280
281 2010-09-22  Bruno Haible  <bruno@clisp.org>
282
283         Tests for module 'memcoll'.
284         * modules/memcoll-tests: New file.
285         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
286
287         memcoll, xmemcoll: Clarify size vs. length.
288         * modules/memcoll.c (memcoll0): Clarify specification.
289         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
290         passed to collate_error.
291
292 2010-09-22  Bruno Haible  <bruno@clisp.org>
293
294         Tests for module 'memcasecmp'.
295         * modules/memcasecmp-tests: New file.
296         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
297
298 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
299
300         * lib/pthread.in.h: Add split double-inclusion guard, and include
301         system <pthread.h> if there is one.  Use @@-style as in other
302         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
303         pthread.h doesn't.
304         (pthread_mutexattr_destroy, pthread_mutexattr_init):
305         (pthread_mutexattr_settype, pthread_mutex_trylock):
306         New static inline functions, if there's no system <pthread.h>.
307         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
308         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
309         Approximate with mutexes if the system lacks spinlocks, as in
310         MacOS.
311         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
312         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
313         @@-style.  Check for spinlocks separately.
314         (gl_PTHREAD_DEFAULTS): New macro.
315         * modules/pthread: Redo to use a more typical style for in.h files.
316
317 2010-09-21  Eric Blake  <eblake@redhat.com>
318
319         net_if: enhance tests
320         * tests/test-net_if.c (main): Move signature checks earlier.
321         Print failures to stderr.
322         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
323         Document the bug that we do not yet fix.
324
325 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
326
327         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
328         about gnulib, not GSS.
329
330 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
331
332         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
333         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
334         for Emacs.
335         * build-aux/pmccabe2html: Make Makefile.am example code more
336         cut-and-paste friendly.
337
338 2010-09-21  Simon Josefsson  <simon@josefsson.org>
339
340         * tests/test-net_if.c: New file.
341         * modules/net_if-tests: New file.
342
343 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
344
345         pthread: add pthread_spin_destroy
346         * lib/pthread.in.h (pthread_spin_destroy): New function.
347
348 2010-09-19  Bruno Haible  <bruno@clisp.org>
349
350         gnulib-tool: Fix --help output.
351         * gnulib-tool (func_usage): Fix help message.
352         Reported by Reuben Thomas <rrt@sc3d.org>.
353
354 2010-09-18  Jim Meyering  <meyering@redhat.com>
355
356         maint.mk: avoid unexpanded \n in two diagnostics
357         * top/maint.mk (sc_prohibit_always_true_header_tests):
358         Don't use a literal \n in a halt=... assignment.  It would not be
359         expanded, and the two \n bytes would appear in the diagnostic output
360         rather than the desired newline.  Use halt=$$(printf ... instead.
361         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
362
363 2010-09-18  Bruno Haible  <bruno@clisp.org>
364
365         netinet_in: Doc tweak.
366         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
367         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
368
369 2010-09-18  Jim Meyering  <meyering@redhat.com>
370
371         init.sh: correct an outdated comment
372         * tests/init.sh (create_exe_shims_):  s/function/alias/
373
374         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
375         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
376         a file named "*.exe" is removed between the glob expansion and the
377         processing of that oddly named file.
378
379 2010-09-17  Eric Blake  <eblake@redhat.com>
380
381         mirbsd: add some more support
382         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
383         in BSD family.
384         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
385         devices as OpenBSD.
386         * m4/host-os.m4 (mirbsd): Add MirBSD.
387
388         tests: fix unportable assumption on sys/wait.h
389         * tests/test-sys_wait.c (main): Relax test.
390         * tests/test-stdlib.c (main): Likewise.
391
392         init.sh: accomodate directory with no .exes
393         * tests/init.sh: Accomodate directory containing only scripts.
394
395         tests: avoid compiler warning
396         * tests/test-stdlib.c (main): Use the variable.
397
398         fdutimens, fdutimensat: update signature, again
399         * lib/utimens.h (gl_futimens): Delete, and move signature...
400         (fdutimens): ...here.
401         (fdutimensat): Rearrange signature.
402         (lutimensat): Rename variable for clarity.
403         * lib/fdutimensat.c (fdutimensat): Update signature.
404         * lib/utimens.c (fdutimens): Likewise.
405         (gl_futimens): Delete.
406         (utimens, lutimens): Update callers.
407         * lib/futimens.c (futimens): Likewise.
408         * tests/test-fdutimensat.c: Likewise.
409         * tests/test-utimens.c: Likewise.
410         * tests/test-futimens.h: Update comment.
411         * NEWS: Mention this.
412         Suggested by Paul Eggert.
413
414 2010-09-17  Bruno Haible  <bruno@clisp.org>
415
416         Take over the maintenance of some older macros from Autoconf.
417         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
418         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
419         GNU Autoconf.
420         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
421         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
422
423 2010-09-17  Eric Blake  <eblake@redhat.com>
424
425         fdutimensat: drop atflag validation
426         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
427         with valid fd, to close a race scenario where futimens is
428         unsupported and FILE was replaced by a symlink.
429         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
430         accordingly.
431         Suggested by Paul Eggert.
432
433 2010-09-16  Bruno Haible  <bruno@clisp.org>
434
435         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
436         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
437
438 2010-09-16  Bruno Haible  <bruno@clisp.org>
439
440         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
441         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
442         login_tty exists.
443         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
444
445 2010-09-16  Bruno Haible  <bruno@clisp.org>
446
447         login_tty: Make the replacement code work on BSD systems.
448         * lib/login_tty.c: Include <sys/ioctl.h>.
449         (login_tty): Use ioctl TIOCSCTTY when available.
450         * modules/login_tty (Depends-on): Add sys_ioctl.
451         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
452
453 2010-09-16  Bruno Haible  <bruno@clisp.org>
454
455         login_tty: Stricter unit test.
456         * modules/login_tty-tests (Depends-on): Add tcgetsid.
457         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
458         and tcgetsid() after login_tty.
459         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
460
461 2010-09-16  Bruno Haible  <bruno@clisp.org>
462
463         New module 'tcgetsid'.
464         * lib/tcgetsid.c: New file.
465         * m4/tcgetsid.m4: New file.
466         * modules/tcgetsid: New file.
467         * modules/termios (Depends-on): Add c++defs, warn-on-use.
468         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
469         GNULIB_TCGETSID, HAVE_TCGETSID.
470         * lib/termios.in.h: Include <sys/types.h>.
471         (tcgetsid): New declaration.
472         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
473         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
474         * doc/posix-functions/tcgetsid.texi: Mention the new module.
475         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
476
477 2010-09-16  Bruno Haible  <bruno@clisp.org>
478
479         Tests for module 'termios'.
480         * modules/termios-c++-tests: New file.
481         * modules/termios-tests: New file.
482         * tests/test-termios-c++.cc: New file.
483         * tests/test-termios.c: New file.
484
485         New module 'termios'.
486         * modules/termios: New file.
487         * lib/termios.in.h: New file.
488         * m4/termios_h.m4: New file.
489         * doc/posix-headers/termios.texi: Mention the new module.
490
491 2010-09-16  Eric Blake  <eblake@redhat.com>
492
493         fdutimensat: add an atflag parameter
494         * lib/fdutimensat.c (fdutimensat): Add new parameter.
495         * lib/utimens.h (fdutimensat): Update prototype.
496         * tests/test-fdutimensat.c: Adjust test to match.
497         * NEWS: Document the change.
498         Suggested by Paul Eggert.
499
500 2010-09-16  Bruno Haible  <bruno@clisp.org>
501
502         Fix typos in comments.
503         * lib/striconveh.h: Fix typo in comment.
504         * lib/login_tty.c (login_tty): Likewise.
505
506 2010-09-15  Bruno Haible  <bruno@clisp.org>
507
508         stdlib: clarify MirBSD WEXITSTATUS bug
509         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
510         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
511
512 2010-09-15  Eric Blake  <eblake@redhat.com>
513
514         stdlib: work around MirBSD WEXITSTATUS bug
515         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
516         * modules/stdlib (Depends-on): Add sys_wait.
517         * tests/test-sys_wait.c (main): Enhance test.
518         * tests/test-stdlib.c (main): Likewise.
519         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
520
521         docs: mention MacOS issue with WEXITSTATUS(constant)
522         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
523         issue.
524         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
525
526         strnlen: add tests
527         * modules/strnlen-tests: New file.
528         * tests/test-strnlen.c: Likewise.
529
530 2010-09-14  Bruno Haible  <bruno@clisp.org>
531
532         unistr/base: Avoid link errors when module 'libunistring' is also used.
533         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
534         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
535         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
536         Declare also when HAVE_LIBUNISTRING is set.
537         Reported by Pádraig Brady <P@draigbrady.com>.
538
539 2010-09-14  Eric Blake  <eblake@redhat.com>
540
541         test-rawmemchr: make more robust
542         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
543         (Depends-on, configure.ac): Add needed prerequisites to use it.
544         * modules/memchr-tests (Files, Depends-on, configure.ac):
545         Likewise, to avoid implicit reliance on memchr module prereqs.
546         * tests/test-memchr.c (main): Ensure proper masking.
547         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
548         reads.
549
550         memchr: detect glibc Alpha bug
551         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
552         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
553         Alpha.
554         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
555         * tests/test-memchr.c (main): Enhance test.
556         Reported by Nelson H. F. Beebe.
557
558 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
559
560         fts, getcwd, glob: audit for dirfd returning -1
561         * lib/fts.c (opendir): Remove #define; no longer used.
562         (opendirat): New arg PDIR_FD.  All callers changed.
563         (fts_build, _opendir2): Use new opendirat to avoid the need for
564         dirfd, or for checking whether dirfd returns a negative value.
565         Don't use opendir; always use openat followed by fdopendir.
566         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
567         it.
568         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
569         returns -1 here.
570         * modules/fts (Depends-on): Remove dirfd.
571         * modules/getcwd (Depends-on): Likewise.
572
573 2010-09-13  Eric Blake  <eblake@redhat.com>
574
575         float: fix broken MirBSD header
576         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
577         * doc/posix-headers/float.texi (float.h): Document it.
578
579 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
580
581         fts: use O_NOFOLLOW to avoid race condition when opening a directory
582         * lib/fts.c (opendirat): New arg extra_flags.
583         (__opendir2): Use it to avoid following symlinks when opening
584         a directory, if symlinks are not supposed to be followed.  See
585         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
586
587         fdopendir: preserve argument fd before returning
588         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
589         (fdopendir_with_dup, fd_clone_opendir): New static functions.
590         (fdopendir): Use them, arranging for FD to be open to the same
591         directory that it was when it started.  (It might be temporarily
592         closed while fdopendir is running, so this not thread- or
593         signal-safe.)  Be careful to do the right thing even when file
594         descriptors are scarce and dup fails with errno == EMFILE.  See
595         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
596
597 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
598
599         regex: Pass the system regex if its only problem is 32-bit regoff_t.
600         * NEWS: Document change.
601         * m4/regex.m4: Disable test for regoff_t size.
602
603 2010-09-13  Jim Meyering  <meyering@redhat.com>
604
605         fts: don't operate on an invalid file descriptor after failed dup
606         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
607         negative file descriptor.
608
609 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
610
611         savedir: add streamsavedir, deprecate fdsavedir
612         * NEWS: Mention deprecation of fdsavedir.
613         * lib/savedir.c (streamsavedir): New extern function, whose name
614         ends in "savedir" to be consistent with the others.  This differs
615         from savedirstream in that it doesn't close its argument.  The
616         next version of GNU tar will use this instead of fdsavedir, to
617         avoid some race conditions and conserve file descriptors.
618         (savedirstream): Reimplement as a wrapper around streamsavedir.
619         (fdsavedir): Add a comment deprecating this function.  As far as
620         I know, only GNU tar used it, and GNU tar doesn't need it any more.
621         * lib/savedir.h (streamsavedir): New decl.
622         (fdsavedir): Add a comment deprecating this.
623
624 2010-09-10  Bruno Haible  <bruno@clisp.org>
625
626         langinfo: Fix last commit.
627         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
628         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
629         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
630
631 2010-09-10  Bruno Haible  <bruno@clisp.org>
632
633         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
634         * lib/progreloc.c (O_EXEC): Define fallback.
635
636 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
637
638         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
639         * NEWS: Document recent changes to fcntl-h.
640         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
641         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
642         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
643         Similarly for O_SEARCH; this last was already true, but not documented.
644         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
645         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
646         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
647         Likewise.
648         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
649         is zero, not whether it is defined.
650         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
651         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
652         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
653
654 2010-09-10  Bruno Haible  <bruno@clisp.org>
655
656         langinfo, nl_langinfo: Fix for IRIX 5.3.
657         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
658         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
659         HAVE_LANGINFO_YESEXPR.
660         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
661         HAVE_LANGINFO_YESEXPR.
662         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
663         HAVE_LANGINFO_T_FMT_AMPM is 0.
664         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
665         HAVE_LANGINFO_YESEXPR is 0.
666         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
667         NOEXPR.
668         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
669         * doc/posix-functions/nl_langinfo.texi: Likewise.
670         Reported by Eric Blake.
671
672 2010-09-10  Bruno Haible  <bruno@clisp.org>
673
674         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
675         * doc/glibc-functions/login_tty.texi: Mention the include file problem
676         on FreeBSD 8.0 and OpenBSD 4.6.
677         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
678         * m4/pty_h.m4 (gl_PTY_H): Likewise.
679         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
680         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
681         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
682         ac_includes_default.
683         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
684
685 2010-09-09  Eric Blake  <eblake@redhat.com>
686
687         strsignal: work around NetBSD bug
688         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
689         * lib/string.in.h (includes): Likewise.
690         * doc/posix-functions/strsignal.texi (strsignal): Document the
691         bug.
692         Reported by Nelson H. F. Beebe.
693
694         gnulib-tool: work with NetBSD /bin/sh
695         * gnulib-tool (func_cache_var, func_cache_lookup_module)
696         (func_get_description, func_get_comment, func_get_status)
697         (func_get_notice, func_get_applicability, func_get_filelist)
698         (func_get_dependencies, func_get_autoconf_early_snippet)
699         (func_get_autoconf_snippet, func_get_automake_snippet)
700         (func_get_include_directive, func_get_link_directive)
701         (func_get_license, func_get_maintainer, func_import): Avoid
702         shell syntax errors from parsing syntax extensions.
703
704 2010-09-09  Bruno Haible  <bruno@clisp.org>
705
706         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
707         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
708         a reliable way to determine whether the 'alias' command works.
709
710 2010-09-08  Jim Meyering  <meyering@redhat.com>
711
712         init.sh: penalize a set-x-impaired shell; don't disqualify it
713         * tests/init.sh: Too many shells corrupt application stderr when
714         you set -x, so we can't afford to disqualify them, since at least
715         on Irix-6.5, that would disqualify all bourne shells.
716         Instead, use a two-pass approach.
717         On the first pass, try to find a shell that meets the stricter
718         condition that set -x does not corrupt stderr.
719         If no shell meets the stricter condition, retest each candidate
720         shell, but without that extra condition.  Finally, when
721         VERBOSE=yes is requested and set -x might cause trouble, simply
722         issue a warning and refrain from enabling debug output.
723
724 2010-09-08  Eric Blake  <eblake@redhat.com>
725
726         unsetenv: fix OpenBSD bug
727         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
728         * doc/posix-functions/unsetenv.texi (unsetenv): Update
729         documentation.
730         Reported by Jim Meyering.
731
732         strtod: work around IRIX 6.5 bug
733         * lib/strtod.c (strtod): Reparse number on shorter string if
734         exponent parse was invalid.
735         * tests/test-strtod.c (main): Add check for "0x1p 2".
736         Reported by Tom G. Christensen.
737
738         getopt: optimize previous patch
739         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
740         empty variable.  Speed up awk script.
741         Reported by Paolo Bonzini.
742
743 2010-09-08  Jim Meyering  <meyering@redhat.com>
744
745         test.sh: disqualify shells for which set -x corrupts stderr
746         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
747         and OpenBSD 4.7.  They make it so with "set -x", environment settings
748         appear in stderr output.  For example, this command:
749             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
750         prints "P=1" on those two systems:
751
752 2010-09-08  Bruno Haible  <bruno@clisp.org>
753
754         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
755         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
756         commands, because some shells ignore redirections when there is an
757         error in the command lookup.
758         Reported by Eric Blake.
759
760 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
761
762         * lib/regex.h: Fix a mention of `regex_compile' (should be
763         `re_compile_pattern').
764         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
765         (re_set_registers): Correct name of parameter in comment.
766
767         * doc/regex.texi: Add documentation for missing syntax flags.
768         Remove commented-out documentation of defunct syntax option
769         RE_NO_EMPTY_ALTS.
770         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
771         Add documentation of re_set_registers.
772         Document trick to re-use a pattern buffer by setting fastmap manually.
773         Update documentation of struct re_pattern_buffer per public members.
774         Uncomment documentation of equivalence class operators and
775         collating symbol operators, since they are now implemented,
776         Explain leftmost-longest matching in relation to alternatives.
777         Tidy documentation of substring matching.
778         Remove POSIX documentation, which is done better in
779         glibc, and refer the reader there. Keep BSD API documentation, as
780         that is not readily available elsewhere.
781
782 2010-09-07  Eric Blake  <eblake@redhat.com>
783
784         getopt: handle POSIXLY_CORRECT set but not exported
785         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
786         export state of POSIXLY_CORRECT, due to bash set -o posix.
787         Reported by Dustin J. Mitchell.
788
789 2010-09-05  Bruno Haible  <bruno@clisp.org>
790
791         gnulib-tool: Highlight the changed options.
792         * gnulib-tool (func_usage): Display the --import, --add-import,
793         --remove-import explanations in bold font.
794
795 2010-09-06  Karl Berry  <karl@gnu.org>
796
797         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
798
799 2010-09-05  Bruno Haible  <bruno@clisp.org>
800
801         uniwidth/width: Update comment.
802         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
803         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
804
805 2010-09-05  Bruno Haible  <bruno@clisp.org>
806
807         isinf, isnan: Relax license.
808         * modules/isinf (License): Change from GPL to LGPL, with consent from
809         Ben Pfaff.
810         * modules/isnan (License): Likewise.
811         Requested by Ludovic Courtès.
812
813 2010-09-04  Bruno Haible  <bruno@clisp.org>
814
815         gnulib-tool: Help migration from --import to --add-import or --update.
816         * gnulib-tool: Emit a verbose error message when --import is used
817         without any module name.
818
819 2010-09-04  Bruno Haible  <bruno@clisp.org>
820
821         Update doc about gnulib-tool.
822         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
823         'gnulib-tool --update' in more detail.
824         Reported by Eric Blake.
825
826 2010-09-04  Bruno Haible  <bruno@clisp.org>
827
828         gnulib-tool: Change --import. New options --add/remove-import.
829         * gnulib-tool: New options --add-import, --remove-import.
830         (func_usage): Document them.
831         (have_associative): Define always.
832         (func_import): In import mode, don't merge the specified settings with
833         the cached settings. Implement remove-import mode.
834         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
835         Explain when to use them versus --import.
836         (Simple update): Use --add-import instead of --import.
837         * NEWS: Mention the change.
838
839 2010-09-04  Bruno Haible  <bruno@clisp.org>
840
841         * doc/gnulib-tool.texi (Initial import): Update paragraph about
842         separate gnulib.mk.
843
844 2010-09-04  Bruno Haible  <bruno@clisp.org>
845
846         gnulib-tool: Don't talk about CVS any more.
847         * gnulib-tool (func_usage, func_import): Write "version control"
848         instead of CVS.
849
850 2010-09-04  Jim Meyering  <meyering@redhat.com>
851
852         maint.mk: avoid obscure sc_copyright_check failure in coreutils
853         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
854         false positives (whose names may be ill-chosen) when searching
855         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
856         would cause a false-positive.
857
858         avoid coreutils "make distcheck" failure
859         Coreutils tests with an absolute build directory name that contains
860         a space.  Not quoting this directory name caused a failure.
861         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
862         * tests/test-vc-list-files-cvs.sh: Likewise.
863
864 2010-09-04  Bruno Haible  <bruno@clisp.org>
865
866         gnulib-tool: Avoid error when run in a package without Makefile.am.
867         * gnulib-tool: When collecting the m4dirs in a package that does not
868         have a Makefile.am, eliminate those directories that contain no
869         gnulib-cache.m4. Fix expression that counts these directories.
870
871 2010-09-04  Bruno Haible  <bruno@clisp.org>
872
873         update-copyright test: Improve output when perl is missing or too old.
874         * tests/test-update-copyright.sh: Move test of Perl version down after
875         the test whether Perl exists. Provide an explanation relating Perl's
876         error message to Automake's SKIP: message.
877
878 2010-09-04  Bruno Haible  <bruno@clisp.org>
879
880         Don't augment PATH in TESTS_ENVIRONMENT.
881         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
882         set abs_aux_dir instead of augmenting PATH.
883         * modules/vc-list-files-tests (Makefile.am): Likewise.
884         * tests/test-update-copyright.sh: Augment PATH here.
885         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
886         path_prepend_.
887         * tests/test-vc-list-files-git.sh: Likewise.
888
889 2010-09-04  Jim Meyering  <meyering@redhat.com>
890
891         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
892         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
893
894 2010-09-04  Bruno Haible  <bruno@clisp.org>
895
896         strdup: Fix compilation error in C++ mode.
897         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
898         the macro.
899
900 2010-09-04  Bruno Haible  <bruno@clisp.org>
901
902         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
903         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
904         macro into a function.
905         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
906
907 2010-09-04  Bruno Haible  <bruno@clisp.org>
908
909         Set PATH_SEPARATOR the same way autoconf does.
910         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
911         the value of PATH_SEPARATOR the same way autoconf-generated configure
912         scripts do.
913         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
914         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
915
916 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
917
918         Set PATH_SEPARATOR the same way autoconf does.
919         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
920         the same way autoconf-generated configure scripts do.
921         * posix-modules: Likewise.
922
923 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
924
925         hash: fix safe_hasher const typo
926         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
927         const; otherwise, there is a type error later.
928
929 2010-09-02  Jim Meyering  <meyering@redhat.com>
930
931         test-update-copyright.sh: require perl 5.8.0
932         * tests/test-update-copyright.sh: Require 5.8.0,
933         which Tom G. Christensen has confirmed is adequate,
934         while 5.6.1 is not.
935
936 2010-09-02  Eric Blake  <eblake@redhat.com>
937
938         tests: init.sh improvements for re-exec'ing with zsh
939         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
940         -vx through shell re-exec.
941         Reported by Tom G. Christensen.
942
943         wctype: fix typo in previous commit
944         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
945         Reported by Ludovic Courtès.
946
947 2010-09-02  Jim Meyering  <meyering@redhat.com>
948
949         test-update-copyright.sh: skip test if Perl is too old
950         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
951         Reported by Tom G. Christensen.
952
953 2010-09-02  Bruno Haible  <bruno@clisp.org>
954
955         wctype: Avoid compilation error on IRIX 6.5.30.
956         * lib/wctype.in.h (iswblank): Declare with a replacement if
957         REPLACE_ISWBLANK is set.
958         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
959         declared. Set REPLACE_ISWBLANK.
960         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
961         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
962         * doc/posix-headers/wctype.texi: Likewise.
963         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
964
965 2010-09-01  Bruno Haible  <bruno@clisp.org>
966
967         New module 'socketlib'.
968         * modules/socketlib: New file.
969         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
970         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
971         * modules/sockets (Depends-on): Add socketlib.
972         Suggested by Sam Steingold <sds@gnu.org>.
973
974 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
975
976         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
977
978         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
979         when one needs search access to a directory but not read access.
980         On systems where it is available, it works in some cases where
981         O_RDONLY does not, namely on directories that are searchable but
982         not readable, and which need only to be searchable.  If O_SEARCH
983         is not available, fall back to the traditional method of using
984         O_RDONLY.
985
986         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
987         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
988         when opening a directory that needs only to be searchable.
989         * lib/chdir-safer.c (chdir_no_follow): Likewise.
990         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
991         * lib/openat-proc.c (openat_proc_name): Likewise.
992         * lib/openat.c (openat_needs_fchdir): Likewise.
993         * lib/save-cwd.c (save_cwd): Likewise.
994         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
995
996 2010-08-28  Bruno Haible  <bruno@clisp.org>
997
998         New module 'host-cpu-c-abi'.
999         * modules/host-cpu-c-abi: New file.
1000         * m4/host-cpu-c-abi.m4: New file, based on part of
1001         clisp/src/m4/general.m4.
1002         Requested by Sam Steingold <sds@gnu.org>.
1003
1004 2010-08-31  Eric Blake  <eblake@redhat.com>
1005         and Jim Meyering  <meyering@redhat.com>
1006
1007         hash: factor, and guard against misbehaving hasher function
1008         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
1009         of table->hasher's return value.  Also protect against a hash value
1010         so large that adding it to table->bucket results in a NULL pointer.
1011         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
1012         Use it in place of open-coded check-and-abort.
1013
1014 2010-08-30  Bruno Haible  <bruno@clisp.org>
1015
1016         hash: silence spurious clang warning
1017         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
1018         Reported by Eric Blake.
1019
1020 2010-08-30  Eric Blake  <eblake@redhat.com>
1021
1022         strstr, memmem, strcasestr: avoid leaked shell message
1023         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
1024         FreeBSD.
1025         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
1026         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
1027
1028         tests: silence clang warning
1029         * tests/test-malloca.c (do_allocation): Avoid dead store.
1030
1031 2010-08-29  Bruno Haible  <bruno@clisp.org>
1032
1033         gettext: Fix recent mistake.
1034         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
1035
1036 2010-08-29  Bruno Haible  <bruno@clisp.org>
1037
1038         selinux-h: Offer a --without-selinux option.
1039         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
1040         --without-selinux was specified, skip all tests and define
1041         HAVE_SELINUX_SELINUX_H to 0.
1042         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
1043         set LIB_SELINUX to empty.
1044         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
1045         gl_LIBSELINUX. If --without-selinux was specified, replace
1046         selinux/context.h.
1047         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
1048
1049 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1050             Bruno Haible  <bruno@clisp.org>
1051
1052         Make the module 'realloc-gnu' work again on AIX and OSF/1.
1053         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
1054         of HAVE_REALLOC.
1055         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
1056         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
1057         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
1058         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
1059
1060 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1061             Bruno Haible  <bruno@clisp.org>
1062
1063         Make the module 'calloc-gnu' work again on AIX and OSF/1.
1064         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
1065         HAVE_CALLOC.
1066         * lib/xmalloc.c: Update accordingly.
1067         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
1068         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
1069         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
1070
1071 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1072             Bruno Haible  <bruno@clisp.org>
1073
1074         Make the module 'malloc-gnu' work again on AIX and OSF/1.
1075         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
1076         HAVE_MALLOC.
1077         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
1078         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
1079         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
1080
1081 2010-08-29  Bruno Haible  <bruno@clisp.org>
1082
1083         Update modules list.
1084         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
1085         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
1086         (String handling <string.h>): Add astrxfrm.
1087         (File system functions): Add readlinkat.
1088
1089 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1090
1091         Tests for module 'realloc-gnu'.
1092         * modules/realloc-gnu-tests: New file.
1093         * tests/test-realloc-gnu.c: New file.
1094
1095         Tests for module 'calloc-gnu'.
1096         * modules/calloc-gnu-tests: New file.
1097         * tests/test-calloc-gnu.c: New file.
1098
1099         Tests for module 'malloc-gnu'.
1100         * modules/malloc-gnu-tests: New file.
1101         * tests/test-malloc-gnu.c: New file.
1102
1103 2010-08-28  Bruno Haible  <bruno@clisp.org>
1104
1105         Rename module 'realloc' -> 'realloc-gnu'.
1106         * modules/realloc-gnu: New file, copied from modules/realloc.
1107         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
1108         obsolete.
1109         * modules/mgetgroups (Depends-on): Update.
1110         * doc/posix-functions/realloc.texi: Update.
1111         * NEWS: Mention the change.
1112
1113         Rename module 'calloc' -> 'calloc-gnu'.
1114         * modules/calloc-gnu: New file, copied from modules/calloc.
1115         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
1116         obsolete.
1117         * doc/posix-functions/calloc.texi: Update.
1118         * NEWS: Mention the change.
1119
1120         Rename module 'malloc' -> 'malloc-gnu'.
1121         * modules/malloc-gnu: New file, copied from modules/malloc.
1122         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
1123         obsolete.
1124         * modules/argp (Depends-on): Update.
1125         * modules/regex (Depends-on): Update.
1126         * doc/posix-functions/malloc.texi: Update.
1127         * NEWS: Mention the change.
1128
1129 2010-08-28  Eric Blake  <eblake@redhat.com>
1130
1131         pread, pwrite: add missing dependency
1132         * modules/pread (Depends-on): Add extensions.
1133         * modules/pwrite (Depends-on): Likewise.
1134
1135 2010-08-28  Bruno Haible  <bruno@clisp.org>
1136
1137         unistr/u*-strchr: Fix tests dependencies.
1138         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
1139         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
1140         Reported by Ian Beckwith <ianb@erislabs.net>.
1141
1142 2010-08-28  Bruno Haible  <bruno@clisp.org>
1143
1144         read-file: Don't occupy too much unused memory.
1145         * lib/read-file.c (fread_file): Shrink the buffer at the end.
1146
1147 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
1148             Eric Blake  <eblake@redhat.com>
1149             Bruno Haible  <bruno@clisp.org>
1150
1151         read-file: Avoid memory reallocations with regular files.
1152         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
1153         (fread_file): With regular files, use the remaining length as the
1154         initial buffer size.  Check against overflow.
1155         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
1156         sys_stat.
1157
1158 2010-08-28  Bruno Haible  <bruno@clisp.org>
1159
1160         ftello: Relax license.
1161         * modules/ftello (License): Relax to LGPLv2+.
1162         Reported by Eric Blake.
1163
1164 2010-08-28  Bruno Haible  <bruno@clisp.org>
1165
1166         Avoid relocwrapper link errors due to gnulib replacement functions.
1167         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
1168         function.
1169         Reported by Ben Pfaff <blp@cs.stanford.edu>.
1170
1171 2010-08-28  Bruno Haible  <bruno@clisp.org>
1172
1173         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
1174         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
1175         defined.
1176         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
1177         Suggested by Eric Blake.
1178
1179 2010-08-28  Bruno Haible  <bruno@clisp.org>
1180
1181         sys_socket, netdb: Ensure socklen_t gets defined.
1182         * modules/sys_socket (Depends-on): Add socklen.
1183         * modules/netdb (Depends-on): Likewise.
1184         * modules/getaddrinfo (Depends-on): Remove socklen.
1185         * modules/getsockopt (Depends-on): Likewise.
1186         * modules/setsockopt (Depends-on): Likewise.
1187         * tests/test-sys_socket.c: Check that socklen_t is defined.
1188         * tests/test-netdb.c: Likewise.
1189         * m4/socklen.m4: Update comments.
1190         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1191
1192 2010-08-27  Eric Blake  <eblake@redhat.com>
1193
1194         login_tty: add missing dependency
1195         * modules/login_tty (Depends-on): Add pty.
1196
1197 2010-08-26  Eric Blake  <eblake@redhat.com>
1198
1199         lib-symbol-versions: fix m4 quoting
1200         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
1201         format for AC_LINK_IFELSE.
1202
1203         glob: fix compile test
1204         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
1205
1206         btowc: fix missing file
1207         * modules/btowc (Files): Also ship locale-fr.m4.
1208
1209         lseek: fix link test
1210         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
1211         AC_LINK_IFELSE.
1212
1213         include_next: silence autoconf 2.68 warning
1214         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
1215         AC_COMPILE_IFELSE as special.
1216         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
1217         autoconf < 2.68.
1218
1219         acl: fix compilation test
1220         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
1221         AC_COMPILE_IFELSE.
1222
1223 2010-08-26  Bruno Haible  <bruno@clisp.org>
1224
1225         Modernize AC_TRY_RUN invocations.
1226         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
1227         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
1228         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
1229         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
1230         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
1231         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
1232         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
1233         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
1234         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
1235         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
1236         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
1237         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
1238         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
1239         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
1240         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
1241         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
1242         gl_MBRLEN_NUL_RETVAL): Likewise.
1243         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
1244         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
1245         Likewise.
1246         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
1247         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
1248         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
1249         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
1250         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
1251         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
1252         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
1253         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
1254         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
1255         Likewise.
1256         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
1257         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
1258         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
1259         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
1260         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
1261         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
1262         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
1263         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
1264         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
1265         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
1266
1267 2010-08-26  Bruno Haible  <bruno@clisp.org>
1268
1269         Modernize AC_TRY_LINK invocations.
1270         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
1271         AC_TRY_LINK.
1272         * m4/argp.m4 (gl_ARGP): Likewise.
1273         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
1274         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
1275         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
1276         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
1277         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
1278         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
1279         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
1280         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
1281         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
1282         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
1283         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
1284         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
1285         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
1286         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
1287         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
1288         * m4/hostent.m4 (gl_HOSTENT): Likewise.
1289         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
1290         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
1291         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
1292         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
1293         Likewise.
1294         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
1295         Likewise.
1296         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
1297         Likewise.
1298         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
1299         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
1300         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
1301         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
1302         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
1303         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
1304         * m4/servent.m4 (gl_SERVENT): Likewise.
1305         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
1306         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
1307         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
1308         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
1309         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
1310         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
1311         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
1312         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
1313         * modules/tsearch-tests (configure.ac): Likewise.
1314
1315 2010-08-26  Bruno Haible  <bruno@clisp.org>
1316
1317         Modernize AC_TRY_COMPILE invocations.
1318         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
1319         AC_TRY_COMPILE.
1320         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
1321         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
1322         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
1323         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
1324         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
1325         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
1326         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
1327         * m4/lock.m4 (gl_LOCK): Likewise.
1328         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
1329         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
1330         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
1331         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
1332         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
1333         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
1334         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
1335         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
1336         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
1337         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
1338         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
1339         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
1340         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
1341         extraneous semicolon.
1342
1343 2010-08-26  Jim Meyering  <meyering@redhat.com>
1344
1345         stat-time: relax license LGPL
1346         * modules/stat-time (License): Change from GPL to LGPL,
1347         with consent from all contributors, for use in libguile.
1348         Requested by Ludovic Courtès.
1349
1350 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
1351
1352         poll: return immediately on POLLHUP.
1353         * lib/poll.c (poll): Always set timeout before wait_timeout is
1354         computed.
1355
1356 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1357
1358         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
1359         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
1360         rmdir ("dir/.//"), unlinkat.
1361
1362 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1363
1364         stdbool: avoid spurious failure with modern xlc
1365         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
1366
1367 2010-08-24  Bruno Haible  <bruno@clisp.org>
1368
1369         getloadavg: simplify code
1370         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
1371         gl_have_func. Update comments.
1372
1373 2010-08-24  Eric Blake  <eblake@redhat.com>
1374
1375         getloadavg: don't define SVR4 on cygwin
1376         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
1377         only define SVR4 when -lkvm is required.
1378         Reported by Yaakov Selkowitz.
1379
1380 2010-08-24  Bruno Haible  <bruno@clisp.org>
1381
1382         priv-set: fix comment
1383         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
1384
1385 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
1386
1387         priv-set: fix comments
1388         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
1389         to match code, as suggested by David Bartley in:
1390         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
1391
1392 2010-08-23  Eric Blake  <eblake@redhat.com>
1393
1394         stdbool: avoid rejecting clang
1395         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
1396         * tests/test-stdbool.c: Enable more tests if using the system
1397         <stdbool.h> instead of the gnulib replacement.
1398         (main): Move xlc bug test to a runtime test for all compilers.
1399         Reported by Anders Kaseorg.
1400
1401         argz: fix shell quoting issue
1402         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
1403         Reported by Charles Wilson.
1404
1405 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
1406             Erik Faye-Lund <kusmabite@gmail.com>
1407
1408         poll, select: handle ERROR_BROKEN_PIPE.
1409         * lib/poll.c (win32_compute_revents): Return POLLHUP when
1410         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
1411         * lib/select.c (win32_compute_revents): Do not mark a pipe
1412         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
1413
1414 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
1415
1416         fts: allow compilation with C++
1417         * lib/fts_.h: Specify extern "C" linkage with C++.
1418
1419 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1420
1421         Fix gnulib-tool sed script de-commentation for AIX sed.
1422         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
1423         sed.
1424
1425 2010-08-17  Eric Blake  <eblake@redhat.com>
1426
1427         test-stddef: test for (some) offsetof bugs
1428         * tests/test-stddef.c: Enhance test to ensure correct type of
1429         offsetof.
1430         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
1431         that we are not fixing at this time.
1432
1433 2010-08-15  Bruno Haible  <bruno@clisp.org>
1434
1435         stpncpy: Allow stpncpy to be defined as a macro.
1436         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
1437         if it's already correctly declared.
1438         * lib/string.in.h (stpncpy): Undefine before redefining.
1439         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
1440
1441 2010-08-14  Bruno Haible  <bruno@clisp.org>
1442
1443         Rename module 'memxfrm' to 'amemxfrm'.
1444         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
1445         (amemxfrm): Renamed from memxfrm.
1446         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
1447         (amemxfrm): Renamed from memxfrm.
1448         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
1449         * NEWS: Mention the change.
1450         * MODULES.html.sh (String handling <string.h>): Update.
1451         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
1452         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
1453         * lib/unicase/u16-casexfrm.c: Likewise.
1454         * lib/unicase/u32-casexfrm.c: Likewise.
1455         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
1456         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
1457         * lib/uninorm/u16-normxfrm.c: Likewise.
1458         * lib/uninorm/u32-normxfrm.c: Likewise.
1459         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
1460         memxfrm.
1461         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
1462         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
1463         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
1464         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
1465         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
1466         Suggested by Paul Eggert.
1467
1468 2010-08-14  Bruno Haible  <bruno@clisp.org>
1469
1470         Tests for module 'astrxfrm'.
1471         * modules/astrxfrm-tests: New file.
1472         * tests/test-astrxfrm.c: New file.
1473
1474         New module 'astrxfrm'.
1475         * lib/astrxfrm.h: New file.
1476         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
1477         * modules/astrxfrm: New file.
1478
1479 2010-08-14  Reuben Thomas <rrt@sc3d.org>
1480
1481         regex: Tweak doc.
1482         * doc/regex.texi (Overview): Don't mention regex.c.
1483         (GNU Regular Expression Compiling): Likewise.
1484         (Match-end-of-line Operator): Mention 'not_eol'.
1485
1486 2010-08-14  Brian Gough  <bjg@gnu.org>
1487             Bruno Haible  <bruno@clisp.org>
1488
1489         git-merge-changelog: add doc relating to use with bzr and hg.
1490         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
1491
1492 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
1493
1494         pthread: fix pthread.h creation for srcdir != builddir
1495         * modules/pthread (Makefile.am): Fix the rule to work also in a
1496         non-srcdir build.
1497
1498 2010-08-13  Karl Berry  <karl@gnu.org>
1499
1500         * doc/regex.texi (Predefined Syntaxes): @smallexample.
1501         * doc/posix-*/*: force line break before @url of POSIX
1502         specifications.
1503         Suggested by Werner Lemberg.
1504
1505 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
1506
1507         strtod: fix const diagnostic
1508         * lib/strtod.c (strtod): Don't assign const char * to char *,
1509         as this elicits a warning from GCC when warnings are enabled.
1510
1511 2010-08-10  Pádraig Brady <P@draigbrady.com>
1512         and Eric Blake  <eblake@redhat.com>
1513
1514         copy-acl: ignore ENOTSUP on HP-UX
1515         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
1516         so that it is available for HP-UX.
1517         * lib/copy-acl.c (qcopy_acl): Use it.
1518         Reported by Patrick M. Callahan.
1519
1520 2010-08-10  Eric Blake  <eblake@redhat.com>
1521
1522         open, chown: relax license
1523         * modules/open (License): Change to LGPLv2+, with consent by all
1524         authors, for use in augeas.
1525         * modules/chown (License): Likewise.
1526         * modules/lchown (Likewise): Likewise.
1527         Requested by Adam Stokes.
1528
1529 2010-08-09  Karl Berry  <karl@gnu.org>
1530
1531         * build-aux/ar-lib: new file, import from Automake.
1532         * config/srclist.txt: autocheck for updates.
1533
1534 2010-08-09  Eric Blake  <eblake@redhat.com>
1535
1536         readlinkat: adjust client modules
1537         * modules/areadlinkat (Depends-on): Use readlinkat, not
1538         symlinkat.
1539         * modules/areadlinkat-with-size (Depends-on): Likewise.
1540
1541         mknod: be more vocal about danger of running tests as root
1542         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
1543         root, since that is just asking for problems.
1544         Suggested by Bruno Haible, based on a report by Rainer Tammer.
1545
1546         readlinkat: split into its own module
1547         * modules/symlinkat: Split readlinkat...
1548         * modules/readlinkat: ...into separate module.
1549         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
1550         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
1551         * lib/symlinkat.c (readlinkat): Move...
1552         * lib/readlinkat.c: ...into new file.
1553         * modules/symlinkat-tests: Split readlinkat test...
1554         * modules/readlinkat-tests: ...into separate module.
1555         * tests/test-symlinkat.c: Split...
1556         * tests/test-readlinkat.c: ...into new file.
1557         * NEWS: Document the split.
1558         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
1559         * lib/unistd.in.h (readlinkat): Likewise.
1560         Suggested by Bruno Haible.
1561
1562 2010-08-08  Bruno Haible  <bruno@clisp.org>
1563
1564         memxfrm: Speed up.
1565         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
1566         that usually only one call to strxfrm is necessary for each string
1567         part.
1568         Reported by Paul Eggert <eggert@cs.ucla.edu>.
1569
1570 2010-08-07  Karl Berry  <karl@gnu.org>
1571
1572         * doc/posix-headers/limits.texi,
1573         * doc/posix-functions/malloc.texi,
1574         * doc/posix-functions/strsignal.texi: missing @item.
1575         * doc/ld-version-script.texi: spurious leading i.
1576         * doc/regex.texi (Interval Operators): no commas inside @var.
1577
1578 2010-08-01  Bruno Haible  <bruno@clisp.org>
1579
1580         Integrate the regex documentation.
1581         * doc/gnulib.texi: Define 'cn' index.
1582         (Regular expressions): New a chapter that includes regex.texi and
1583         regexprops-generic.texi.
1584         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
1585         syntax.
1586
1587         Whitespace cleanup.
1588         * doc/regex.texi: Remove trailing spaces.
1589
1590         Add regex documentation.
1591         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
1592         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
1593         Written by Kathy A. Hargreaves and Karl Berry.
1594
1595 2010-08-01  Bruno Haible  <bruno@clisp.org>
1596
1597         link: Update documentation.
1598         * doc/posix-functions/link.texi: Update regarding Solaris.
1599
1600 2010-07-31  Bruno Haible  <bruno@clisp.org>
1601
1602         Update modules list.
1603         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
1604         (String handling <string.h>): Add memcmp2, memxfrm.
1605         (Container data structures): Add xlist, xsublist, xoset.
1606         (Core language properties): Add alignof, unused-parameter.
1607         (Process control, Numeric conversion functions <stdlib.h>): Renamed
1608         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
1609         (Unibyte characters <ctype.h>): New section.
1610         (String handling <string.h>): New section.
1611         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
1612         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
1613         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
1614         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
1615         tan, tanh, tanl, y0, y1, yn.
1616         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
1617         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
1618         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
1619         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
1620         unlockpt, vdprintf, vdprintf-posix.
1621         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
1622         (File system functions): Add concat-filename, sys_file, sys_ioctl,
1623         xconcat-filename.
1624         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
1625         getdtablesize, pipe2, pipe2-safer.
1626         (Security): New section.
1627         (Networking functions): Add accept4.
1628         (Signal handling): Add sigpipe.
1629         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
1630         mbmemcasecoll.
1631         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
1632         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
1633         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
1634         pipe-filter-ii.
1635         (Misc): Add argp-version-etc, login_tty, parse-duration.
1636
1637 2010-07-31  Bruno Haible  <bruno@clisp.org>
1638
1639         Improve doc in MODULES.html.
1640         * modules/linkat (Description): Add the word "function".
1641         * modules/mkfifo (Description): Likewise.
1642         * modules/mknod (Description): Likewise.
1643         * modules/remove (Description): Likewise.
1644         * modules/renameat (Description): Likewise.
1645         * modules/stat (Description): Likewise.
1646         * modules/symlink (Description): Likewise.
1647         * modules/unlink (Description): Likewise.
1648
1649 2010-07-31  Bruno Haible  <bruno@clisp.org>
1650
1651         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
1652         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
1653         option --enable/disable-c++ instead of --enable/disable-cxx.
1654         * NEWS: Mention the change.
1655
1656 2010-07-31  Bruno Haible  <bruno@clisp.org>
1657
1658         readlink, areadlink: Relax test a bit.
1659         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
1660         alternative to ENOTDIR.
1661         * tests/test-areadlink.h (test_areadlink): Likewise.
1662         Reported by Rainer Tammer.
1663
1664 2010-07-31  Bruno Haible  <bruno@clisp.org>
1665
1666         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
1667         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
1668         character, perform the search using U_STRCHR.
1669         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
1670         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
1671         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
1672         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
1673         Suggested by Paolo Bonzini.
1674
1675 2010-07-31  Bruno Haible  <bruno@clisp.org>
1676
1677         unistr/u*-strstr: Fix dependencies.
1678         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
1679         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
1680         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
1681
1682 2010-07-31  Bruno Haible  <bruno@clisp.org>
1683
1684         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
1685         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
1686         the beginning of the loop.
1687         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
1688         cases in 'switch' statement.
1689
1690         unistr/u8-strchr: Fix several bugs.
1691         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
1692         the string. When not found, return NULL, not a pointer near the end.
1693
1694         More tests for unistr/u8-strchr.
1695         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
1696         that the function does not read past the first occurrence of the byte
1697         being searched.
1698         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
1699         * tests/unistr/test-u16-strchr.c (main): New function.
1700         * tests/unistr/test-u32-strchr.c (main): New function.
1701
1702 2010-07-31  Bruno Haible  <bruno@clisp.org>
1703
1704         posix-modules: Ignore backup files of documentation files.
1705         * posix-modules: grep only through files named *.texi.
1706
1707 2010-07-31  Bruno Haible  <bruno@clisp.org>
1708
1709         symlinkat: Fix documentation.
1710         * doc/posix-functions/readlinkat.texi: Fix module name.
1711
1712 2010-07-31  Bruno Haible  <bruno@clisp.org>
1713
1714         fchownat: Replace also when chown has the trailing slash bug.
1715         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
1716         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
1717         introduced on 2010-04-10.
1718         Reported by Rainer Tammer.
1719
1720 2010-07-31  Bruno Haible  <bruno@clisp.org>
1721
1722         linkat: Work around AIX 7.1 bug.
1723         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
1724         whether linkat handles trailing slash correctly. If not, replace linkat
1725         and define LINKAT_TRAILING_SLASH_BUG.
1726         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
1727         check whether (fd1,file1) points to a directory if file1 or file2 ends
1728         in a slash. Code taken from lib/link.c.
1729         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
1730         Reported by Rainer Tammer.
1731
1732 2010-07-31  Bruno Haible  <bruno@clisp.org>
1733
1734         Correctly determine whether pow is available in libc on AIX 7 with xlc.
1735         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
1736         This disables an xlc optimization that was causing wrong test results.
1737         Reported by Rainer Tammer.
1738
1739 2010-07-31  Bruno Haible  <bruno@clisp.org>
1740
1741         iconv: Work around AIX 6.1..7.1 bug.
1742         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
1743         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
1744         cross-compiling, guess no on all versions of AIX.
1745         Reported by Rainer Tammer.
1746
1747 2010-07-31  Bruno Haible  <bruno@clisp.org>
1748
1749         readlink: Relax test a bit.
1750         * tests/test-readlink.h (test_readlink): Allow different errno value
1751         when readlink is called with a file name that ends in / and refers to
1752         a file.
1753         Suggested by Eric Blake.
1754         Reported by Rainer Tammer.
1755
1756 2010-07-31  Bruno Haible  <bruno@clisp.org>
1757
1758         copysign: Does not require -lm on glibc systems.
1759         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
1760         gl_COMMON_DOUBLE_MATHFUNC.
1761         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
1762
1763 2010-07-31  Bruno Haible  <bruno@clisp.org>
1764
1765         duplocale: Work around AIX 7.1 bug.
1766         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
1767         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
1768         * lib/duplocale.c (rpl_duplocale): Update comment.
1769         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
1770         Reported by Rainer Tammer.
1771
1772 2010-07-30  Bruno Haible  <bruno@clisp.org>
1773
1774         dirfd: Avoid link error on AIX 7.1.
1775         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
1776         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
1777         exist, set REPLACE_DIRFD.
1778         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
1779         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
1780         * doc/posix-functions/dirfd.texi: Update.
1781         Reported by Rainer Tammer.
1782
1783 2010-07-30  Eric Blake  <eblake@redhat.com>
1784
1785         strtod: next round of AIX fixes
1786         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
1787         exponent.
1788         * tests/test-strtod.c (main): Enhance tests.
1789         * doc/posix-functions/strtod.texi (strtod): Document next bug.
1790         Reported by Rainer Tammer.
1791
1792         futimens: fix configure check
1793         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
1794         Reported by Bruno Haible.
1795
1796 2010-07-30  Bruno Haible  <bruno@clisp.org>
1797
1798         getline: Update regarding AIX.
1799         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
1800         Reported by Rainer Tammer.
1801
1802 2010-07-30  Bruno Haible  <bruno@clisp.org>
1803
1804         wcwidth: Drop replacement on AIX 7.
1805         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
1806         AIX 7.
1807         Reported by Rainer Tammer.
1808
1809 2010-07-30  Bruno Haible  <bruno@clisp.org>
1810
1811         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
1812         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
1813         a 'char *'.
1814         Reported by Rainer Tammer.
1815
1816 2010-07-30  Bruno Haible  <bruno@clisp.org>
1817
1818         unlink: Update regarding AIX.
1819         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
1820         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
1821         Reported by Rainer Tammer.
1822
1823 2010-07-30  Bruno Haible  <bruno@clisp.org>
1824
1825         symlink: Update regarding AIX.
1826         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
1827         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
1828         Reported by Rainer Tammer.
1829
1830 2010-07-30  Bruno Haible  <bruno@clisp.org>
1831
1832         strndup: Update regarding AIX.
1833         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
1834         AIX 7.
1835         Reported by Rainer Tammer.
1836
1837 2010-07-30  Bruno Haible  <bruno@clisp.org>
1838
1839         stat: Update regarding AIX.
1840         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
1841         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
1842         Reported by Rainer Tammer.
1843
1844 2010-07-30  Bruno Haible  <bruno@clisp.org>
1845
1846         truncl: Fix autoconf test.
1847         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
1848         whether truncl works.
1849         Reported by Rainer Tammer.
1850
1851 2010-07-30  Bruno Haible  <bruno@clisp.org>
1852
1853         round: Update regarding AIX.
1854         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
1855         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
1856         Reported by Rainer Tammer.
1857
1858 2010-07-30  Bruno Haible  <bruno@clisp.org>
1859
1860         rename: Update regarding AIX.
1861         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
1862         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
1863         Reported by Rainer Tammer.
1864
1865 2010-07-30  Bruno Haible  <bruno@clisp.org>
1866
1867         printf.m4: Update regarding AIX.
1868         * m4/printf.m4: Update comments regarding AIX.
1869         Reported by Rainer Tammer.
1870
1871 2010-07-30  Bruno Haible  <bruno@clisp.org>
1872
1873         iconv: Update regarding AIX.
1874         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
1875         AIX 7.
1876         Reported by Rainer Tammer.
1877
1878 2010-07-30  Bruno Haible  <bruno@clisp.org>
1879
1880         getopt: Update regarding AIX.
1881         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
1882         no on AIX.
1883         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
1884         Reported by Rainer Tammer.
1885
1886 2010-07-30  Bruno Haible  <bruno@clisp.org>
1887
1888         ldexpl; Update regarding AIX.
1889         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
1890         on AIX 7.
1891         Reported by Rainer Tammer.
1892
1893 2010-07-30  Bruno Haible  <bruno@clisp.org>
1894
1895         frexpl: Update regarding AIX.
1896         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
1897         on AIX 7.
1898         Reported by Rainer Tammer.
1899
1900 2010-07-30  Bruno Haible  <bruno@clisp.org>
1901
1902         open, fopen: Update regarding AIX.
1903         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
1904         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
1905         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
1906         * doc/posix-functions/fopen.texi: Likewise.
1907         Reported by Rainer Tammer.
1908
1909 2010-07-30  Bruno Haible  <bruno@clisp.org>
1910
1911         chown: Update doc regarding AIX.
1912         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
1913         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
1914         Reported by Rainer Tammer.
1915
1916 2010-07-30  Eric Blake  <eblake@redhat.com>
1917
1918         strtod: fix bug in replacement function on AIX
1919         * lib/strtod.c (strtod): Special case broken "0x" parse in
1920         underlying strtod.
1921         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
1922         * doc/posix-functions/strtod.texi (strtod): Likewise.
1923         Reported by Rainer Tammer.
1924
1925 2010-07-30  Bruno Haible  <bruno@clisp.org>
1926
1927         mbrlen: Fix cross-compilation guess for AIX.
1928         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
1929         guess. Leftover from 2008-12-22.
1930
1931 2010-07-30  Bruno Haible  <bruno@clisp.org>
1932
1933         mbrtowc: Fix cross-compilation guess for AIX.
1934         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
1935         guess. Leftover from 2008-12-21.
1936
1937 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
1938
1939         init.sh: work around trap limitation of some shells
1940         * tests/init.sh (setup_): Move exit trap outside of shell function.
1941
1942 2010-07-29  Eric Blake  <eblake@redhat.com>
1943
1944         strtod: aid debugging
1945         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
1946         understanding why strtod is rejected.
1947
1948 2010-07-28  Bruno Haible  <bruno@clisp.org>
1949
1950         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
1951         * lib/unistr/u8-chr.c: Include <string.h>.
1952         * tests/unistr/test-u8-chr.c: Likewise.
1953         * tests/unistr/test-u16-chr.c: Likewise.
1954         * tests/unistr/test-u32-chr.c: Likewise.
1955         * tests/unistr/test-u8-strchr.c: Likewise.
1956         * tests/unistr/test-u16-strchr.c: Likewise.
1957         * tests/unistr/test-u32-strchr.c: Likewise.
1958         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
1959         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
1960         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
1961         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
1962
1963 2010-07-28  Bruno Haible  <bruno@clisp.org>
1964
1965         Use spaces for indentation, not tabs.
1966         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
1967
1968 2010-07-27  Bruno Haible  <bruno@clisp.org>
1969
1970         mbspcasecmp: Fix function specification.
1971         * lib/string.in.h (mbspcasecmp): Fix specification comment.
1972         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
1973         Reported by Eric Blake <eblake@redhat.com>.
1974
1975 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
1976
1977         timespec: use cast and not conditional, as truncation isn't possible
1978         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
1979         instead of a conditional.  Comment about the situation in more detail.
1980         This undoes most of the 2009-10-29 patch.
1981
1982 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
1983
1984         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
1985         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
1986         * lib/unistr/u8-strchr.c: Likewise.
1987         * modules/unistr/u8-chr: Depend on memchr.
1988
1989         unistr/u*-strchr: add tests
1990         * modules/unistr/u8-strchr-tests: New file.
1991         * modules/unistr/u16-strchr-tests: New file.
1992         * modules/unistr/u32-strchr-tests: New file.
1993         * tests/unistr/test-strchr.h: New file.
1994         * tests/unistr/test-u8-strchr.c: New file.
1995         * tests/unistr/test-u16-strchr.c: New file.
1996         * tests/unistr/test-u32-strchr.c: New file.
1997
1998         unistr/u*-chr: test multibyte sequences more
1999         * tests/unistr/test-chr.h: Do complete testing of the characters in the
2000         test vector.
2001         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
2002         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
2003         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
2004
2005         unistr/u*-chr: test multibyte sequences
2006         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
2007
2008         unistr/u*-chr: prepare for multibyte tests
2009         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
2010         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
2011         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
2012         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
2013         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
2014         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
2015
2016 2010-07-18  Bruno Haible  <bruno@clisp.org>
2017
2018         unistr/u8-strchr: Optimize non-ASCII argument case.
2019         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
2020         because the first byte often matches anyway.
2021         Reported by Pádraig Brady <P@draigbrady.com>.
2022
2023 2010-07-15  Karl Berry  <karl@gnu.org>
2024
2025         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
2026
2027 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
2028
2029         getcwd: on Solaris, work better if ancestors are inaccessible
2030         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
2031         buffer and size, try again with a large buffer.  This works better
2032         on Solaris, since its getcwd succeeds even if the path to the root
2033         is inaccessible, and this is helpful in common cases such as .zfs
2034         hidden directories.  Problem reported by J Chapman Flack in
2035         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
2036         Use system getcwd if it's declared, not merely if it's partly
2037         working; use the partly-working test only to avoid needless effort
2038         if the system getcwd fails.
2039         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
2040         comment that was already obsolete and is now even more obsolete.
2041         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
2042         now might call strdup.
2043
2044 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
2045
2046         pthread: Add enough so that coreutils/src/sort.c compiles.
2047         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
2048         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
2049         gnulib. Include <sched.h> and <time.h>, as per POSIX.
2050         Include <sys/types.h>, in case it defines pthread_t.
2051         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
2052         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
2053         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
2054         (pthread_rwlockattr_t, pthread_spinlock_t):
2055         New typedefs, if HAVE_PTHREAD_T is not defined.
2056         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
2057         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
2058         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
2059         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
2060         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
2061         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
2062         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
2063         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
2064         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
2065         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
2066         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
2067         New macros.
2068         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
2069         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
2070         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
2071         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
2072         (pthread_spin_unlock): New dummy functions.
2073         (pthread_create): Return EAGAIN; don't set errno.
2074         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
2075         require AC_C_INLINE.
2076         * modules/pthread (Depends-on): Add sched, time.
2077         (pthread.h): Use AM_V_GEN.
2078
2079 2010-07-13  Bruno Haible  <bruno@clisp.org>
2080
2081         striconveh: Don't malloc memory if the result buffer is sufficient.
2082         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
2083         buffer if its size is sufficient.
2084         Reported by Ludovic Courtès <ludo@gnu.org>.
2085
2086 2010-07-13  Bruno Haible  <bruno@clisp.org>
2087
2088         strtod: Add safety check.
2089         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
2090
2091 2010-07-12  Bruno Haible  <bruno@clisp.org>
2092
2093         Unify tests that set gl_cv_func_ldexpl_no_libm.
2094         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
2095         gl_FUNC_LDEXPL.
2096         (gl_FUNC_LDEXPL): Invoke it.
2097         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
2098
2099 2010-07-12  Bruno Haible  <bruno@clisp.org>
2100
2101         Unify tests that set gl_cv_func_ldexp_no_libm.
2102         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
2103         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
2104         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
2105         (configure.ac): Simply invoke gl_FUNC_LDEXP.
2106         * modules/strtod (Files): Add m4/ldexp.m4.
2107
2108 2010-07-12  Bruno Haible  <bruno@clisp.org>
2109
2110         Unify tests that set gl_cv_func_frexpl_no_libm.
2111         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
2112         gl_FUNC_FREXPL_NO_LIBM.
2113         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
2114         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
2115
2116 2010-07-12  Bruno Haible  <bruno@clisp.org>
2117
2118         Unify tests that set gl_cv_func_frexp_no_libm.
2119         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
2120         gl_FUNC_FREXP_NO_LIBM.
2121         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
2122         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
2123
2124 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
2125
2126         memcoll: clarify sizes versus lengths, document better, and tweak perf
2127         * lib/memcoll.c (strcoll_loop, memcoll0):
2128         Improve quality of descriptive comments.  Name variables
2129         consistently as to whether they are lengths (which do not include
2130         terminating null) versus sizes (which do).
2131         * lib/xmemcoll.c (xmemcoll0): Likewise.
2132         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
2133         returned when s1size == 0; this is easier to compile and saves
2134         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
2135
2136 2010-07-12  Bruno Haible  <bruno@clisp.org>
2137
2138         Tests for module '_Exit'.
2139         * modules/_Exit-tests: New file.
2140         * tests/test-_Exit.sh: New file.
2141         * tests/test-_Exit.c: New file.
2142
2143         New module '_Exit'.
2144         * lib/stdlib.in.h (__attribute__): New macro.
2145         (_Exit): New declaration.
2146         * lib/_Exit.c: New file.
2147         * m4/_Exit.m4: New file.
2148         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
2149         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
2150         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
2151         * modules/_Exit: New file.
2152         * tests/test-stdlib-c++.cc (_Exit): Check signature.
2153         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
2154
2155 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
2156
2157         strtod: make it more-accurate typically, and don't require libm
2158         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
2159         Include limits.h.  Don't include string.h.
2160         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
2161         (locale_isspace): New function, so that no casts are needed to
2162         check whether *s is a space.
2163         (ldexp): Provide an unused dummy if not available.
2164         (scale_radix_exp, parse_number, underlying_strtod): New functions.
2165         (strtod): Use them.  This implementation prefers to use the
2166         underlying strtod if available, falling back on our own code
2167         only to fix known bugs.  This is more likely to produce an
2168         accurate result.  Also, it avoids the use of libm functions.
2169         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
2170         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
2171         was absent, but it caused a test failure with coreutils.
2172         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
2173         with libm.
2174         * modules/strtod (Makefile.am, Link): libm is no longer needed.
2175         * modules/strtod-tests (Makefile.am): Likewise.
2176
2177 2010-07-11  Pádraig Brady  <P@draigBrady.com>
2178             Bruno Haible  <bruno@clisp.org>
2179
2180         unistr/u8-strchr: Optimize ASCII argument case.
2181         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
2182
2183 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
2184
2185         (x)memcoll: minor tweaks
2186         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
2187         is after the type that it qualifies.
2188         (memcoll0): Likewise.
2189         * lib/memcoll.h (memcoll0): Likewise.
2190         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
2191         * lib/xmemcoll.h (xmemcoll0): Likewise.
2192         * lib/memcoll.c (memcoll0): Correct the comment.  This function
2193         differs from memcoll in that the NUL byte is part of the argument.
2194         Omit the abort-checks, as performance is a real issue here.  Plus,
2195         the checks were wrong anyway (an off-by-one error).  Omit local
2196         variable 'diff', as it's a bit clearer that way.
2197         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
2198         no longer needed.
2199
2200 2010-07-08  Chen Guo <chenguo4@yahoo.com>
2201
2202         (x)memcoll: speedup when input is known to be NUL delimited
2203         * lib/memcoll.c: Include stdlib.
2204         (memcoll0) New function.
2205         (strcoll_loop) New function, refactored for use in both memcoll
2206         and memcoll0.
2207         * lib/memcoll.h: Add prototype for memcoll0.
2208         * lib/xmemcoll.c: (xmemcoll0) New function.
2209         (collate_error) New function, refactored for use in both xmemcoll
2210         and xmemcoll0.
2211         * lib/xmemcoll.h: Add prototype for xmemcoll0.
2212         * m4/memcoll.m4: add inline invocation.
2213
2214 2010-07-06  Pádraig Brady  <P@draigBrady.com>
2215
2216         * build-aux/bootstrap: Remove any local translations
2217         from the translation project synchronization directory,
2218         so that local only translations are not distributed.
2219
2220 2010-07-04  Bruno Haible  <bruno@clisp.org>
2221
2222         fsusage: Clarify which code applies to which platforms.
2223         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
2224         platform.
2225         * lib/fsusage.c (get_fs_usage): Likewise.
2226
2227 2010-07-04  Bruno Haible  <bruno@clisp.org>
2228
2229         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
2230         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
2231         Reported by Martin Lambers <marlam@marlam.de>.
2232
2233 2010-07-04  Jim Meyering  <meyering@redhat.com>
2234
2235         hash: once again explicitly disallow insertion of NULL
2236         * lib/hash.c (hash_insert0): Reinstate just-removed test:
2237         inserting a NULL pointer cannot work with these functions.
2238         Add a comment with details.
2239         This reverts part of the 2010-07-01 commit, 5bef1a35
2240         "hash: extend module to deal with non-pointer keys".
2241
2242 2010-07-01  Bruno Haible  <bruno@clisp.org>
2243
2244         stdbool: Update doc.
2245         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
2246         Info from Christian Weisgerber <naddy@mips.inka.de>.
2247
2248 2010-07-01  Jim Meyering  <meyering@redhat.com>
2249
2250         hash: extend module to deal with non-pointer keys
2251         * lib/hash.c (hash_insert0): New interface, much like hash_insert
2252         but that allows insertion of non-pointer entries.
2253         Do not disallow an ENTRY value of NULL.
2254         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
2255         * lib/hash.h (hash_insert0): Declare.
2256
2257 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
2258
2259         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
2260         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
2261         not present (i.e. with autoconf 2.59 and when using gettextize, not
2262         gnulib), require AC_GNU_SOURCE instead.
2263
2264 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
2265
2266         idpriv-drop: Fix tests.
2267         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
2268         not to the test-idpriv-droptemp program.
2269
2270 2010-06-29  Bruno Haible  <bruno@clisp.org>
2271
2272         string: Fix syntax error with g++ 2.96.
2273         * lib/string.in.h (__pure__): Remove definition.
2274         (_GL_ATTRIBUTE_PURE): New macro.
2275         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
2276         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
2277         Reported by Christian Weisgerber <naddy@mips.inka.de>.
2278
2279 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
2280
2281         unitypes: Fix bug introduced on 2010-05-18.
2282         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
2283
2284 2010-06-22  Eric Blake  <eblake@redhat.com>
2285
2286         memmem: slight optimization
2287         * lib/str-two-way.h (critical_factorization): Update comments.
2288         Reduce work during factorization phase.
2289         Reported by Carlos Bueno <carlos@bueno.org>.
2290
2291 2010-06-21  Bruno Haible  <bruno@clisp.org>
2292
2293         Fix HAVE_CALLOC_POSIX misnomer.
2294         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
2295         !HAVE_CALLOC_POSIX.
2296         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
2297         HAVE_CALLOC_POSIX.
2298         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
2299         instead of HAVE_CALLOC_POSIX.
2300         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
2301         HAVE_CALLOC_POSIX.
2302
2303         Use modern idiom for calloc() replacement.
2304         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
2305         AC_FUNC_CALLOC.
2306         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
2307         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
2308         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
2309         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
2310         (gl_REPLACE_CALLOC): New macro.
2311
2312 2010-06-21  Bruno Haible  <bruno@clisp.org>
2313
2314         Fix HAVE_REALLOC_POSIX misnomer.
2315         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
2316         !HAVE_REALLOC_POSIX.
2317         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
2318         HAVE_REALLOC_POSIX.
2319         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
2320         instead of HAVE_REALLOC_POSIX.
2321         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
2322         HAVE_REALLOC_POSIX.
2323
2324         Use modern idiom for realloc() replacement.
2325         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
2326         AC_FUNC_REALLOC.
2327         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
2328         Autoconf's AC_FUNC_REALLOC.
2329         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
2330         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
2331         (gl_REPLACE_REALLOC): New macro.
2332         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
2333
2334 2010-06-21  Bruno Haible  <bruno@clisp.org>
2335
2336         Fix HAVE_MALLOC_POSIX misnomer.
2337         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
2338         !HAVE_MALLOC_POSIX.
2339         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
2340         HAVE_MALLOC_POSIX.
2341         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
2342         instead of HAVE_MALLOC_POSIX.
2343         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
2344         HAVE_MALLOC_POSIX.
2345
2346         Use modern idiom for malloc() replacement.
2347         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
2348         AC_FUNC_MALLOC.
2349         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
2350         Autoconf's AC_FUNC_MALLOC.
2351         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
2352         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
2353         (gl_REPLACE_MALLOC): New macro.
2354         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
2355
2356 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
2357
2358         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
2359         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
2360         This macro takes 3 arguments, not 4.
2361
2362 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
2363
2364         ipv6: fix detection under mingw
2365         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
2366         in6_addr.
2367
2368 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
2369
2370         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
2371         that strtod() works when cross-compiling to a glibc version known
2372         to work.
2373
2374 2010-06-15  Bruno Haible  <bruno@clisp.org>
2375
2376         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
2377
2378 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
2379
2380         select: Correct timeout.
2381         * lib/select.c (rpl_select): Compute wait_timeout correctly.
2382
2383 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
2384
2385         git-version-gen: init shell var to avoid env var influence
2386         * build-aux/git-version-gen (v): Init shell var to empty.
2387
2388 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
2389
2390         priv-set: Don't assume that priv.h exists merely because getppriv does.
2391         See Jan Andersen's bug report about AIX 5L in
2392         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
2393         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
2394         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
2395         * lib/priv-set.h: Likewise.
2396         * tests/test-priv-set.c: Likewise.
2397
2398 2010-06-13  Bruno Haible  <bruno@clisp.org>
2399
2400         relocatable: Make it easier to test whether to install wrappers.
2401         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
2402         RELOCATABLE_VIA_WRAPPER.
2403
2404 2010-06-13  Bruno Haible  <bruno@clisp.org>
2405
2406         gnulib-tool: Display specified modules and dependencies differently.
2407         * gnulib-tool (func_show_module_list): New function.
2408         (func_import, func_create_testdir): Invoke it.
2409         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
2410
2411 2010-06-13  Bruno Haible  <bruno@clisp.org>
2412
2413         gnulib-tool: Align code of func_import and func_create_testdir.
2414         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
2415         specified_modules.
2416
2417 2010-06-12  Jim Meyering  <meyering@redhat.com>
2418
2419         test-inttostr: avoid spurious failure on Solaris 9
2420         * tests/test-inttostr.c (main): Skip the test when snprintf fails
2421         to accept "%ju".  Reported by Bruno Haible.
2422
2423 2010-06-11  Jim Meyering  <meyering@redhat.com>
2424
2425         test-sys_socket: mark variables as used more readably
2426         * tests/test-sys_socket.c (main): Mark otherwise unused variables
2427         as "used" explicitly via (void) statement casts.  This is more
2428         readable than using them in an artificial return expression.
2429         Suggestion from Bruno Haible.
2430
2431 2010-06-11  Bruno Haible  <bruno@clisp.org>
2432
2433         Avoid some more warnings from "gcc -Wwrite-strings".
2434         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
2435         to 'const char *'.
2436         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
2437         * tests/test-c-strcasestr.c (main): Likewise.
2438         * tests/test-mbscasestr1.c (main): Likewise.
2439         * tests/test-mbscasestr2.c (main): Likewise.
2440         * tests/test-memmem.c (main): Likewise.
2441         * tests/test-strstr.c (main): Likewise.
2442         * tests/test-strcasestr.c (main): Likewise.
2443
2444 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2445
2446         init.sh: change framework_failure_ to fail with status 99, not 1
2447         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
2448         automake's parallel-tests rule that this is an unexpected failure,
2449         even if the test is listed in XFAIL_TESTS.
2450
2451 2010-06-11  Jim Meyering  <meyering@redhat.com>
2452
2453         test-inttostr: avoid warnings about 4-6KB literal strings
2454         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
2455         Include "macros.h", for its definition of ASSERT.
2456         (CK): s/assert/ASSERT/
2457         * modules/inttostr-tests (Files): Add macros.h.
2458
2459         init.sh: don't use $ME_ or skip_ before they are defined
2460         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
2461         their first uses.  Also hoist their companions: warn_, fail_,
2462         framework_failure_, $stderr_fileno.  Prompted by a patch from
2463         Stefano Lattarini.
2464
2465         test-sys_socket: avoid set-but-not-used warnings from gcc
2466         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
2467         avoid warning about set-but-not-used variables.
2468
2469         test-xvasprintf: avoid 'const' discard warnings
2470         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
2471         "const" when assigning from literal strings.
2472         (test_xasprintf): Add "void" in function argument list to placate
2473         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
2474
2475         tests: avoid compilation warnings in argmatch and exclude tests...
2476         in packages that define ARGMATCH_DIE_DECL, like coreutils.
2477         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
2478         Since it always exits, declare with the "noreturn" attribute.
2479         * tests/test-argmatch.c: Likewise.
2480
2481         tests: avoid 'const' discard warnings in mbsstr tests
2482         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
2483         * tests/test-mbsstr2.c (main): Likewise.
2484
2485         test-verify: avoid warning from gcc's -Wmissing-declarations
2486         * tests/test-verify.c (function): Declare to be static.
2487
2488         test-inttostr.c: include <string.h> for use of strcmp
2489         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
2490
2491         test-linkat: avoid failed assertion on "other" architectures
2492         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
2493         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
2494         sparc: https://bugs.launchpad.net/bugs/591968
2495
2496 2010-06-11  Jim Meyering  <meyering@redhat.com>
2497
2498         printf.m4: avoid autoconf's "Expanded Before Required" warning
2499         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
2500         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
2501         autoconf warning.
2502
2503 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
2504
2505         Replacement header templates are now named with ".in", not "_".
2506         * doc/gnulib-intro.texi: Correct.
2507
2508 2010-06-10  Jim Meyering  <meyering@redhat.com>
2509
2510         inttostr-tests: depend on snprintf, not snprintf-posix
2511         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
2512         snprintf-posix, to avoid this aclocal failure:
2513           missing file gnulib-tests/vasnprintf.c
2514           configure.ac:45: error: expected source file, required through \
2515           AC_LIBSOURCES, not found
2516
2517 2010-06-10  Jim Meyering  <meyering@redhat.com>
2518
2519         inttostr: add a new function, inttostr, and tests
2520         The namesake function was not available.  The existence of the
2521         template file, inttostr.c makes its addition nontrivial.
2522         * lib/anytostr.c: Rename from inttostr.c.
2523         (anytostr): Rename from inttostr.
2524         * lib/inttostr.c: New file.
2525         * modules/inttostr (Files): Add anytostr.c.
2526         (Makefile.am): Set lib_SOURCES instead of ...
2527         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
2528         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
2529         * lib/offtostr.c: Likewise.
2530         * lib/uinttostr.c: Likewise.
2531         * lib/umaxtostr.c: Likewise.
2532         * modules/inttostr-tests: New file.
2533         * tests/test-inttostr.c: New file.  Test these functions.
2534
2535 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
2536             Bruno Haible  <bruno@clisp.org>
2537
2538         Add "Extending Gnulib" chapter to manual.
2539         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
2540         chapter.
2541         (Extending Gnulib): New chapter.
2542         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
2543         chapter.
2544
2545 2010-06-09  Bruno Haible  <bruno@clisp.org>
2546
2547         Avoid relocwrapper link errors due to gnulib replacement functions.
2548         * lib/areadlink.c: Use the system's malloc, realloc functions.
2549         (areadlink): Set errno to ENOMEM explicitly.
2550         * modules/areadlink (Depends-on): Remove malloc-posix.
2551         Reported by Ben Pfaff <blp@cs.stanford.edu>.
2552
2553 2010-06-09  Bruno Haible  <bruno@clisp.org>
2554
2555         Avoid relocwrapper link errors due to gnulib replacement functions.
2556         * lib/canonicalize-lgpl.c: Use the system's malloc function.
2557         * lib/malloca.c: Likewise.
2558         * lib/relocatable.c: Likewise.
2559         * lib/progreloc.c: Use the system's malloc, sprintf functions.
2560         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
2561         * lib/setenv.c: Use the system's malloc, realloc functions.
2562         * lib/strerror.c: Use the system's sprintf function.
2563         Reported by Ben Pfaff <blp@cs.stanford.edu>.
2564
2565 2010-06-04  Bruno Haible  <bruno@clisp.org>
2566
2567         Prefer documented low-level autoconf macro names.
2568         * m4/lib-link.m4: Use m4_translit instead of translit.
2569         * m4/environ.m4: Likewise.
2570         * m4/mathfunc.m4: Likewise.
2571         * m4/onceonly.m4: Likewise.
2572         * m4/stdint.m4: Likewise.
2573         Suggested by Eric Blake.
2574
2575 2010-06-04  Martin Lambers  <marlam@marlam.de>
2576             Bruno Haible  <bruno@clisp.org>
2577
2578         havelib: Allow library names with '+' characters.
2579         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
2580         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
2581
2582 2010-06-09  Bruno Haible  <bruno@clisp.org>
2583
2584         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
2585         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
2586         realloc failed.
2587
2588 2010-06-08  Peter Simons  <simons@cryp.to>
2589
2590         maint.mk: make the news-check rule more configurable
2591         * top/maint.mk (news-check-lines-spec) New variable.
2592         (news-check): Use "sed -n 1,10p" in place of "head".
2593
2594 2010-06-07  Jim Meyering  <meyering@redhat.com>
2595
2596         do-release-commit-and-tag: fix typo in --help
2597         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
2598
2599         regex: avoid new dead-code warning with gcc-4.6.0
2600         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
2601         if-block containing a while-loop.  It's been unused for at least
2602         5 years.
2603
2604 2010-06-05  Bruno Haible  <bruno@clisp.org>
2605
2606         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
2607         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
2608
2609 2010-06-04  Bruno Haible  <bruno@clisp.org>
2610
2611         Update to GNU gettext 0.18.1.
2612         * modules/gettext (configure.ac): Require gettext infrastructure from
2613         version 0.18.1.
2614
2615 2010-06-03  Bruno Haible  <bruno@clisp.org>
2616
2617         Don't use AC_LIBOBJ with file names in subdirectories.
2618         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
2619         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
2620         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
2621         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
2622         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
2623         gl_LIBUNISTRING_LIBSOURCE.
2624         (Makefile.am): Augment lib_SOURCES here, conditionally.
2625         * NEWS: Drop requirement for Automake option 'subdir-objects'.
2626
2627 2010-06-03  Bruno Haible  <bruno@clisp.org>
2628
2629         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
2630         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
2631         expansion does not end with a newline.
2632         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
2633         unnecessary newline.
2634
2635 2010-06-03  Bruno Haible  <bruno@clisp.org>
2636
2637         Reduce dependencies.
2638         * tests/test-quotearg.h: New file, extracted from
2639         tests/test-quotearg.c.
2640         * tests/test-quotearg-simple.c: New file, extracted from
2641         tests/test-quotearg.c.
2642         * tests/test-quotearg.c: Don't include <ctype.h>.
2643         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
2644         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
2645         use_quote_double_quotes, use_quotearg_colon): Moved to
2646         tests/test-quotearg.h.
2647         (results_g, flag_results, custom_quotes, custom_results): Moved
2648         to tests/test-quotearg-simple.c.
2649         (main): Moved the part that does not depend on gettext to
2650         tests/test-quotearg-simple.c. Return 77 if the test cannot be
2651         performed.
2652         * modules/quotearg-simple: New file.
2653         * modules/quotearg-simple-tests: New file.
2654         * modules/quotearg (Depends-on): Add quotearg-simple.
2655         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
2656         (Files): Add tests/test-quotearg.h.
2657         Reported by Paolo Bonzini.
2658
2659 2010-06-03  Bruno Haible  <bruno@clisp.org>
2660
2661         Reduce dependencies.
2662         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
2663
2664 2010-06-03  Bruno Haible  <bruno@clisp.org>
2665
2666         time: Undefine more broken macros.
2667         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
2668         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
2669         Reported by Eric Blake.
2670
2671 2010-06-03  Bruno Haible  <bruno@clisp.org>
2672
2673         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
2674         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
2675         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
2676         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
2677         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
2678         Reported by Ludovic Courtès <ludo@gnu.org>.
2679
2680 2010-06-02  Eric Blake  <eblake@redhat.com>
2681
2682         time: work with mingw + pthreads-win32 library
2683         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
2684         if timespec is defined only in pthread.h.
2685         * modules/time (Makefile.am): Substitute it.
2686         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
2687         <pthread.h>, when needed.
2688         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
2689         from the library.
2690
2691 2010-05-31  Bruno Haible  <bruno@clisp.org>
2692
2693         Avoid expanding two macros in the wrong order.
2694         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
2695         gl_LIBUNISTRING if it is defined.
2696         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
2697         autoconf >= 2.64.
2698         Reported by Ludovic Courtès <ludo@gnu.org>.
2699
2700 2010-05-27  Jim Meyering  <meyering@redhat.com>
2701
2702         maint.mk: also prohibit "#undef" of always-defined symbols
2703         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
2704         Allow more than one space before the symbol name.
2705         (sc_prohibit_always-defined_macros): Use grep's -E, now that
2706         the regexp uses alternation.
2707
2708 2010-05-26  Eric Blake  <eblake@redhat.com>
2709
2710         maint.mk: avoid echo -e
2711         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
2712         Convert all uses of echo -* to printf.
2713         Reported by Matthias Bolte.
2714
2715 2010-05-25  Bruno Haible  <bruno@clisp.org>
2716
2717         Update to GNU gettext 0.18, part 2.
2718         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
2719         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
2720
2721 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2722
2723         Add missing include in test-pwrite.c.
2724         * tests/test-pwrite.c: Include string.h, for strcmp.
2725
2726 2010-05-24  Bruno Haible  <bruno@clisp.org>
2727
2728         * NEWS: Mention requirement for Automake option 'subdir-objects'.
2729
2730 2010-05-24  Bruno Haible  <bruno@clisp.org>
2731
2732         Don't use conversion with transliteration in u{8,16,32}_strcoll.
2733         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
2734         iconveh_error argument.
2735         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
2736         U_STRCONV_TO_LOCALE.
2737         * lib/unistr/u16-strcoll.c: Likewise.
2738         * lib/unistr/u32-strcoll.c: Likewise.
2739         * modules/unistr/u8-strcoll (Depends-on): Add
2740         uniconv/u8-strconv-to-enc, localcharset. Remove
2741         uniconv/u8-strconv-to-locale.
2742         (configure.ac): Bump version number.
2743         * modules/unistr/u16-strcoll (Depends-on): Add
2744         uniconv/u16-strconv-to-enc, localcharset. Remove
2745         uniconv/u16-strconv-to-locale.
2746         (configure.ac): Bump version number.
2747         * modules/unistr/u32-strcoll (Depends-on): Add
2748         uniconv/u32-strconv-to-enc, localcharset. Remove
2749         uniconv/u32-strconv-to-locale.
2750         (configure.ac): Bump version number.
2751
2752 2010-05-24  Bruno Haible  <bruno@clisp.org>
2753
2754         Avoid a test failure on NetBSD 5.0.
2755         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
2756         an iconv() bug.
2757
2758 2010-05-24  Bruno Haible  <bruno@clisp.org>
2759
2760         Adjust #include directive style.
2761         * modules/regex (Includes): Recommend to write <regex.h>.
2762
2763 2010-05-24  Bruno Haible  <bruno@clisp.org>
2764
2765         regex: Don't require alloca.
2766         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
2767         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
2768         only inside if (0).
2769
2770 2010-05-23  Jim Meyering  <meyering@redhat.com>
2771
2772         test-renameat.c: include <sys/stat.h>
2773         * tests/test-renameat.c: Include <sys/stat.h>; required for
2774         definition of S_IS* macros.
2775
2776 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
2777
2778         Update maintainer documentation for 'relocatable-prog' module.
2779         * doc/relocatable-maint.texi: Update.
2780         Comments by Bruno Haible.
2781
2782 2010-05-23  Bruno Haible  <bruno@clisp.org>
2783
2784         git-merge-changelog: Enable --split-merged-entry by default.
2785         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
2786         (usage): Don't mention this option any more.
2787         Reported by Ralf Wildenhues.
2788
2789 2010-05-23  Jim Meyering  <meyering@redhat.com>
2790
2791         test-pwrite: do not leave behind a test file named "out"
2792         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
2793         The trivial-looking use of init.sh is really necessary.
2794         It ensures that the temporary file, "out", is created in
2795         a temporary directory, and removed upon termination.
2796         * tests/test-pwrite.sh: Re-add file.
2797         * modules/pwrite-tests: Reference it.
2798
2799 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2800
2801         Fix output redirection buglet in init.sh.
2802         * tests/init.sh: Fix redirection of stderr.
2803
2804 2010-05-20  Simon Josefsson  <simon@josefsson.org>
2805
2806         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
2807
2808 2010-05-17  Simon Josefsson  <simon@josefsson.org>
2809
2810         * modules/valgrind-tests: New file.
2811         * m4/valgrind-tests.m4: New file.
2812         * doc/valgrind-tests.texi: New file.
2813         * doc/gnulib.texi (Running self-tests under valgrind): New
2814         section.
2815
2816 2010-05-19  Bruno Haible  <bruno@clisp.org>
2817
2818         Clean up dead code in recent commit.
2819         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
2820         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
2821         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
2822         Suggested by Paolo Bonzini.
2823
2824 2010-05-19  Bruno Haible  <bruno@clisp.org>
2825
2826         Avoid valgrind error reports from libunistring.
2827         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
2828         * modules/libunistring (Files): Add it.
2829         * modules/libunistring-optional (Files): Likewise.
2830
2831 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
2832             Bruno Haible  <bruno@clisp.org>
2833
2834         New module 'libunistring-optional'.
2835         * modules/libunistring-optional: New file.
2836         * m4/libunistring-base.m4: New file.
2837         * m4/libunistring-optional.m4: New file.
2838         * lib/unicase.in.h: Renamed from lib/unicase.h.
2839         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
2840         * lib/unictype.in.h: Renamed from lib/unictype.h.
2841         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
2842         * lib/uniname.in.h: Renamed from lib/uniname.h.
2843         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
2844         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
2845         * lib/unistr.in.h: Renamed from lib/unistr.h.
2846         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
2847         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
2848         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
2849         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
2850         gl_LIBUNISTRING. If the library was found, determine the installed
2851         version and set LIBUNISTRING_VERSION.
2852         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
2853         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
2854         handle a configuration option --with-included-libunistring.
2855         * modules/libunistring (Files): Add m4/absolute-header.m4.
2856         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
2857         Add m4/libunistring-base.m4.
2858         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2859         (Makefile.am): Build unicase.h from unicase.in.h.
2860         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
2861         Add m4/libunistring-base.m4.
2862         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2863         (Makefile.am): Build uniconv.h from uniconv.in.h.
2864         * modules/unictype/base (Files): Use unictype.in.h instead of
2865         unictype.h. Add m4/libunistring-base.m4.
2866         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2867         (Makefile.am): Build unictype.h from unictype.in.h.
2868         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
2869         Add m4/libunistring-base.m4.
2870         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2871         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
2872         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
2873         Add m4/libunistring-base.m4.
2874         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2875         (Makefile.am): Build uniname.h from uniname.in.h.
2876         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
2877         Add m4/libunistring-base.m4.
2878         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2879         (Makefile.am): Build uninorm.h from uninorm.in.h.
2880         * modules/unistdio/base (Files): Use unistdio.in.h instead of
2881         unistdio.h. Add m4/libunistring-base.m4.
2882         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2883         (Makefile.am): Build unistdio.h from unistdio.in.h.
2884         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
2885         Add m4/libunistring-base.m4.
2886         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2887         (Makefile.am): Build unistr.h from unistr.in.h.
2888         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
2889         Add m4/libunistring-base.m4.
2890         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2891         (Makefile.am): Build unitypes.h from unitypes.in.h.
2892         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
2893         Add m4/libunistring-base.m4.
2894         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2895         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
2896         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
2897         uniwidth.h. Add m4/libunistring-base.m4.
2898         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
2899         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
2900         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
2901         instead of augmenting lib_SOURCES.
2902         * modules/unicase/empty-suffix-context: Likewise.
2903         * modules/unicase/locale-language: Likewise.
2904         * modules/unicase/tolower: Likewise.
2905         * modules/unicase/totitle: Likewise.
2906         * modules/unicase/toupper: Likewise.
2907         * modules/unicase/u8-casecmp: Likewise.
2908         * modules/unicase/u8-casecoll: Likewise.
2909         * modules/unicase/u8-casefold: Likewise.
2910         * modules/unicase/u8-casexfrm: Likewise.
2911         * modules/unicase/u8-ct-casefold: Likewise.
2912         * modules/unicase/u8-ct-tolower: Likewise.
2913         * modules/unicase/u8-ct-totitle: Likewise.
2914         * modules/unicase/u8-ct-toupper: Likewise.
2915         * modules/unicase/u8-is-cased: Likewise.
2916         * modules/unicase/u8-is-casefolded: Likewise.
2917         * modules/unicase/u8-is-lowercase: Likewise.
2918         * modules/unicase/u8-is-titlecase: Likewise.
2919         * modules/unicase/u8-is-uppercase: Likewise.
2920         * modules/unicase/u8-prefix-context: Likewise.
2921         * modules/unicase/u8-suffix-context: Likewise.
2922         * modules/unicase/u8-tolower: Likewise.
2923         * modules/unicase/u8-totitle: Likewise.
2924         * modules/unicase/u8-toupper: Likewise.
2925         * modules/unicase/u16-casecmp: Likewise.
2926         * modules/unicase/u16-casecoll: Likewise.
2927         * modules/unicase/u16-casefold: Likewise.
2928         * modules/unicase/u16-casexfrm: Likewise.
2929         * modules/unicase/u16-ct-casefold: Likewise.
2930         * modules/unicase/u16-ct-tolower: Likewise.
2931         * modules/unicase/u16-ct-totitle: Likewise.
2932         * modules/unicase/u16-ct-toupper: Likewise.
2933         * modules/unicase/u16-is-cased: Likewise.
2934         * modules/unicase/u16-is-casefolded: Likewise.
2935         * modules/unicase/u16-is-lowercase: Likewise.
2936         * modules/unicase/u16-is-titlecase: Likewise.
2937         * modules/unicase/u16-is-uppercase: Likewise.
2938         * modules/unicase/u16-prefix-context: Likewise.
2939         * modules/unicase/u16-suffix-context: Likewise.
2940         * modules/unicase/u16-tolower: Likewise.
2941         * modules/unicase/u16-totitle: Likewise.
2942         * modules/unicase/u16-toupper: Likewise.
2943         * modules/unicase/u32-casecmp: Likewise.
2944         * modules/unicase/u32-casecoll: Likewise.
2945         * modules/unicase/u32-casefold: Likewise.
2946         * modules/unicase/u32-casexfrm: Likewise.
2947         * modules/unicase/u32-ct-casefold: Likewise.
2948         * modules/unicase/u32-ct-tolower: Likewise.
2949         * modules/unicase/u32-ct-totitle: Likewise.
2950         * modules/unicase/u32-ct-toupper: Likewise.
2951         * modules/unicase/u32-is-cased: Likewise.
2952         * modules/unicase/u32-is-casefolded: Likewise.
2953         * modules/unicase/u32-is-lowercase: Likewise.
2954         * modules/unicase/u32-is-titlecase: Likewise.
2955         * modules/unicase/u32-is-uppercase: Likewise.
2956         * modules/unicase/u32-prefix-context: Likewise.
2957         * modules/unicase/u32-suffix-context: Likewise.
2958         * modules/unicase/u32-tolower: Likewise.
2959         * modules/unicase/u32-totitle: Likewise.
2960         * modules/unicase/u32-toupper: Likewise.
2961         * modules/unicase/ulc-casecmp: Likewise.
2962         * modules/unicase/ulc-casecoll: Likewise.
2963         * modules/unicase/ulc-casexfrm: Likewise.
2964         * modules/uniconv/u8-conv-from-enc: Likewise.
2965         * modules/uniconv/u8-conv-to-enc: Likewise.
2966         * modules/uniconv/u8-strconv-from-enc: Likewise.
2967         * modules/uniconv/u8-strconv-from-locale: Likewise.
2968         * modules/uniconv/u8-strconv-to-enc: Likewise.
2969         * modules/uniconv/u8-strconv-to-locale: Likewise.
2970         * modules/uniconv/u16-conv-from-enc: Likewise.
2971         * modules/uniconv/u16-conv-to-enc: Likewise.
2972         * modules/uniconv/u16-strconv-from-enc: Likewise.
2973         * modules/uniconv/u16-strconv-from-locale: Likewise.
2974         * modules/uniconv/u16-strconv-to-enc: Likewise.
2975         * modules/uniconv/u16-strconv-to-locale: Likewise.
2976         * modules/uniconv/u32-conv-from-enc: Likewise.
2977         * modules/uniconv/u32-conv-to-enc: Likewise.
2978         * modules/uniconv/u32-strconv-from-enc: Likewise.
2979         * modules/uniconv/u32-strconv-from-locale: Likewise.
2980         * modules/uniconv/u32-strconv-to-enc: Likewise.
2981         * modules/uniconv/u32-strconv-to-locale: Likewise.
2982         * modules/unictype/bidicategory-byname: Likewise.
2983         * modules/unictype/bidicategory-name: Likewise.
2984         * modules/unictype/bidicategory-of: Likewise.
2985         * modules/unictype/bidicategory-test: Likewise.
2986         * modules/unictype/block-list: Likewise.
2987         * modules/unictype/block-test: Likewise.
2988         * modules/unictype/category-C: Likewise.
2989         * modules/unictype/category-Cc: Likewise.
2990         * modules/unictype/category-Cf: Likewise.
2991         * modules/unictype/category-Cn: Likewise.
2992         * modules/unictype/category-Co: Likewise.
2993         * modules/unictype/category-Cs: Likewise.
2994         * modules/unictype/category-L: Likewise.
2995         * modules/unictype/category-Ll: Likewise.
2996         * modules/unictype/category-Lm: Likewise.
2997         * modules/unictype/category-Lo: Likewise.
2998         * modules/unictype/category-Lt: Likewise.
2999         * modules/unictype/category-Lu: Likewise.
3000         * modules/unictype/category-M: Likewise.
3001         * modules/unictype/category-Mc: Likewise.
3002         * modules/unictype/category-Me: Likewise.
3003         * modules/unictype/category-Mn: Likewise.
3004         * modules/unictype/category-N: Likewise.
3005         * modules/unictype/category-Nd: Likewise.
3006         * modules/unictype/category-Nl: Likewise.
3007         * modules/unictype/category-No: Likewise.
3008         * modules/unictype/category-P: Likewise.
3009         * modules/unictype/category-Pc: Likewise.
3010         * modules/unictype/category-Pd: Likewise.
3011         * modules/unictype/category-Pe: Likewise.
3012         * modules/unictype/category-Pf: Likewise.
3013         * modules/unictype/category-Pi: Likewise.
3014         * modules/unictype/category-Po: Likewise.
3015         * modules/unictype/category-Ps: Likewise.
3016         * modules/unictype/category-S: Likewise.
3017         * modules/unictype/category-Sc: Likewise.
3018         * modules/unictype/category-Sk: Likewise.
3019         * modules/unictype/category-Sm: Likewise.
3020         * modules/unictype/category-So: Likewise.
3021         * modules/unictype/category-Z: Likewise.
3022         * modules/unictype/category-Zl: Likewise.
3023         * modules/unictype/category-Zp: Likewise.
3024         * modules/unictype/category-Zs: Likewise.
3025         * modules/unictype/category-and: Likewise.
3026         * modules/unictype/category-and-not: Likewise.
3027         * modules/unictype/category-byname: Likewise.
3028         * modules/unictype/category-name: Likewise.
3029         * modules/unictype/category-none: Likewise.
3030         * modules/unictype/category-of: Likewise.
3031         * modules/unictype/category-or: Likewise.
3032         * modules/unictype/category-test: Likewise.
3033         * modules/unictype/combining-class: Likewise.
3034         * modules/unictype/ctype-alnum: Likewise.
3035         * modules/unictype/ctype-alpha: Likewise.
3036         * modules/unictype/ctype-blank: Likewise.
3037         * modules/unictype/ctype-cntrl: Likewise.
3038         * modules/unictype/ctype-digit: Likewise.
3039         * modules/unictype/ctype-graph: Likewise.
3040         * modules/unictype/ctype-lower: Likewise.
3041         * modules/unictype/ctype-print: Likewise.
3042         * modules/unictype/ctype-punct: Likewise.
3043         * modules/unictype/ctype-space: Likewise.
3044         * modules/unictype/ctype-upper: Likewise.
3045         * modules/unictype/ctype-xdigit: Likewise.
3046         * modules/unictype/decimal-digit: Likewise.
3047         * modules/unictype/digit: Likewise.
3048         * modules/unictype/mirror: Likewise.
3049         * modules/unictype/numeric: Likewise.
3050         * modules/unictype/property-alphabetic: Likewise.
3051         * modules/unictype/property-ascii-hex-digit: Likewise.
3052         * modules/unictype/property-bidi-arabic-digit: Likewise.
3053         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
3054         * modules/unictype/property-bidi-block-separator: Likewise.
3055         * modules/unictype/property-bidi-boundary-neutral: Likewise.
3056         * modules/unictype/property-bidi-common-separator: Likewise.
3057         * modules/unictype/property-bidi-control: Likewise.
3058         * modules/unictype/property-bidi-embedding-or-override: Likewise.
3059         * modules/unictype/property-bidi-eur-num-separator: Likewise.
3060         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
3061         * modules/unictype/property-bidi-european-digit: Likewise.
3062         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
3063         * modules/unictype/property-bidi-left-to-right: Likewise.
3064         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
3065         * modules/unictype/property-bidi-other-neutral: Likewise.
3066         * modules/unictype/property-bidi-pdf: Likewise.
3067         * modules/unictype/property-bidi-segment-separator: Likewise.
3068         * modules/unictype/property-bidi-whitespace: Likewise.
3069         * modules/unictype/property-byname: Likewise.
3070         * modules/unictype/property-combining: Likewise.
3071         * modules/unictype/property-composite: Likewise.
3072         * modules/unictype/property-currency-symbol: Likewise.
3073         * modules/unictype/property-dash: Likewise.
3074         * modules/unictype/property-decimal-digit: Likewise.
3075         * modules/unictype/property-default-ignorable-code-point: Likewise.
3076         * modules/unictype/property-deprecated: Likewise.
3077         * modules/unictype/property-diacritic: Likewise.
3078         * modules/unictype/property-extender: Likewise.
3079         * modules/unictype/property-format-control: Likewise.
3080         * modules/unictype/property-grapheme-base: Likewise.
3081         * modules/unictype/property-grapheme-extend: Likewise.
3082         * modules/unictype/property-grapheme-link: Likewise.
3083         * modules/unictype/property-hex-digit: Likewise.
3084         * modules/unictype/property-hyphen: Likewise.
3085         * modules/unictype/property-id-continue: Likewise.
3086         * modules/unictype/property-id-start: Likewise.
3087         * modules/unictype/property-ideographic: Likewise.
3088         * modules/unictype/property-ids-binary-operator: Likewise.
3089         * modules/unictype/property-ids-trinary-operator: Likewise.
3090         * modules/unictype/property-ignorable-control: Likewise.
3091         * modules/unictype/property-iso-control: Likewise.
3092         * modules/unictype/property-join-control: Likewise.
3093         * modules/unictype/property-left-of-pair: Likewise.
3094         * modules/unictype/property-line-separator: Likewise.
3095         * modules/unictype/property-logical-order-exception: Likewise.
3096         * modules/unictype/property-lowercase: Likewise.
3097         * modules/unictype/property-math: Likewise.
3098         * modules/unictype/property-non-break: Likewise.
3099         * modules/unictype/property-not-a-character: Likewise.
3100         * modules/unictype/property-numeric: Likewise.
3101         * modules/unictype/property-other-alphabetic: Likewise.
3102         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
3103         * modules/unictype/property-other-grapheme-extend: Likewise.
3104         * modules/unictype/property-other-id-continue: Likewise.
3105         * modules/unictype/property-other-id-start: Likewise.
3106         * modules/unictype/property-other-lowercase: Likewise.
3107         * modules/unictype/property-other-math: Likewise.
3108         * modules/unictype/property-other-uppercase: Likewise.
3109         * modules/unictype/property-paired-punctuation: Likewise.
3110         * modules/unictype/property-paragraph-separator: Likewise.
3111         * modules/unictype/property-pattern-syntax: Likewise.
3112         * modules/unictype/property-pattern-white-space: Likewise.
3113         * modules/unictype/property-private-use: Likewise.
3114         * modules/unictype/property-punctuation: Likewise.
3115         * modules/unictype/property-quotation-mark: Likewise.
3116         * modules/unictype/property-radical: Likewise.
3117         * modules/unictype/property-sentence-terminal: Likewise.
3118         * modules/unictype/property-soft-dotted: Likewise.
3119         * modules/unictype/property-space: Likewise.
3120         * modules/unictype/property-terminal-punctuation: Likewise.
3121         * modules/unictype/property-test: Likewise.
3122         * modules/unictype/property-titlecase: Likewise.
3123         * modules/unictype/property-unassigned-code-value: Likewise.
3124         * modules/unictype/property-unified-ideograph: Likewise.
3125         * modules/unictype/property-uppercase: Likewise.
3126         * modules/unictype/property-variation-selector: Likewise.
3127         * modules/unictype/property-white-space: Likewise.
3128         * modules/unictype/property-xid-continue: Likewise.
3129         * modules/unictype/property-xid-start: Likewise.
3130         * modules/unictype/property-zero-width: Likewise.
3131         * modules/unictype/scripts: Likewise.
3132         * modules/unictype/syntax-c-ident: Likewise.
3133         * modules/unictype/syntax-c-whitespace: Likewise.
3134         * modules/unictype/syntax-java-ident: Likewise.
3135         * modules/unictype/syntax-java-whitespace: Likewise.
3136         * modules/unilbrk/u8-possible-linebreaks: Likewise.
3137         * modules/unilbrk/u8-width-linebreaks: Likewise.
3138         * modules/unilbrk/u16-possible-linebreaks: Likewise.
3139         * modules/unilbrk/u16-width-linebreaks: Likewise.
3140         * modules/unilbrk/u32-possible-linebreaks: Likewise.
3141         * modules/unilbrk/u32-width-linebreaks: Likewise.
3142         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
3143         * modules/unilbrk/ulc-width-linebreaks: Likewise.
3144         * modules/uniname/uniname: Likewise.
3145         * modules/uninorm/canonical-decomposition: Likewise.
3146         * modules/uninorm/composition: Likewise.
3147         * modules/uninorm/decomposing-form: Likewise.
3148         * modules/uninorm/decomposition: Likewise.
3149         * modules/uninorm/filter: Likewise.
3150         * modules/uninorm/nfc: Likewise.
3151         * modules/uninorm/nfd: Likewise.
3152         * modules/uninorm/nfkc: Likewise.
3153         * modules/uninorm/nfkd: Likewise.
3154         * modules/uninorm/u8-normalize: Likewise.
3155         * modules/uninorm/u8-normcmp: Likewise.
3156         * modules/uninorm/u8-normcoll: Likewise.
3157         * modules/uninorm/u8-normxfrm: Likewise.
3158         * modules/uninorm/u16-normalize: Likewise.
3159         * modules/uninorm/u16-normcmp: Likewise.
3160         * modules/uninorm/u16-normcoll: Likewise.
3161         * modules/uninorm/u16-normxfrm: Likewise.
3162         * modules/uninorm/u32-normalize: Likewise.
3163         * modules/uninorm/u32-normcmp: Likewise.
3164         * modules/uninorm/u32-normcoll: Likewise.
3165         * modules/uninorm/u32-normxfrm: Likewise.
3166         * modules/unistdio/u8-asnprintf: Likewise.
3167         * modules/unistdio/u8-asprintf: Likewise.
3168         * modules/unistdio/u8-snprintf: Likewise.
3169         * modules/unistdio/u8-sprintf: Likewise.
3170         * modules/unistdio/u8-u8-asnprintf: Likewise.
3171         * modules/unistdio/u8-u8-asprintf: Likewise.
3172         * modules/unistdio/u8-u8-snprintf: Likewise.
3173         * modules/unistdio/u8-u8-sprintf: Likewise.
3174         * modules/unistdio/u8-u8-vasnprintf: Likewise.
3175         * modules/unistdio/u8-u8-vasprintf: Likewise.
3176         * modules/unistdio/u8-u8-vsnprintf: Likewise.
3177         * modules/unistdio/u8-u8-vsprintf: Likewise.
3178         * modules/unistdio/u8-vasnprintf: Likewise.
3179         * modules/unistdio/u8-vasprintf: Likewise.
3180         * modules/unistdio/u8-vsnprintf: Likewise.
3181         * modules/unistdio/u8-vsprintf: Likewise.
3182         * modules/unistdio/u16-asnprintf: Likewise.
3183         * modules/unistdio/u16-asprintf: Likewise.
3184         * modules/unistdio/u16-snprintf: Likewise.
3185         * modules/unistdio/u16-sprintf: Likewise.
3186         * modules/unistdio/u16-u16-asnprintf: Likewise.
3187         * modules/unistdio/u16-u16-asprintf: Likewise.
3188         * modules/unistdio/u16-u16-snprintf: Likewise.
3189         * modules/unistdio/u16-u16-sprintf: Likewise.
3190         * modules/unistdio/u16-u16-vasnprintf: Likewise.
3191         * modules/unistdio/u16-u16-vasprintf: Likewise.
3192         * modules/unistdio/u16-u16-vsnprintf: Likewise.
3193         * modules/unistdio/u16-u16-vsprintf: Likewise.
3194         * modules/unistdio/u16-vasnprintf: Likewise.
3195         * modules/unistdio/u16-vasprintf: Likewise.
3196         * modules/unistdio/u16-vsnprintf: Likewise.
3197         * modules/unistdio/u16-vsprintf: Likewise.
3198         * modules/unistdio/u32-asnprintf: Likewise.
3199         * modules/unistdio/u32-asprintf: Likewise.
3200         * modules/unistdio/u32-snprintf: Likewise.
3201         * modules/unistdio/u32-sprintf: Likewise.
3202         * modules/unistdio/u32-u32-asnprintf: Likewise.
3203         * modules/unistdio/u32-u32-asprintf: Likewise.
3204         * modules/unistdio/u32-u32-snprintf: Likewise.
3205         * modules/unistdio/u32-u32-sprintf: Likewise.
3206         * modules/unistdio/u32-u32-vasnprintf: Likewise.
3207         * modules/unistdio/u32-u32-vasprintf: Likewise.
3208         * modules/unistdio/u32-u32-vsnprintf: Likewise.
3209         * modules/unistdio/u32-u32-vsprintf: Likewise.
3210         * modules/unistdio/u32-vasnprintf: Likewise.
3211         * modules/unistdio/u32-vasprintf: Likewise.
3212         * modules/unistdio/u32-vsnprintf: Likewise.
3213         * modules/unistdio/u32-vsprintf: Likewise.
3214         * modules/unistdio/ulc-asnprintf: Likewise.
3215         * modules/unistdio/ulc-asprintf: Likewise.
3216         * modules/unistdio/ulc-fprintf: Likewise.
3217         * modules/unistdio/ulc-snprintf: Likewise.
3218         * modules/unistdio/ulc-sprintf: Likewise.
3219         * modules/unistdio/ulc-vasnprintf: Likewise.
3220         * modules/unistdio/ulc-vasprintf: Likewise.
3221         * modules/unistdio/ulc-vfprintf: Likewise.
3222         * modules/unistdio/ulc-vsnprintf: Likewise.
3223         * modules/unistdio/ulc-vsprintf: Likewise.
3224         * modules/unistr/u8-check: Likewise.
3225         * modules/unistr/u8-chr: Likewise.
3226         * modules/unistr/u8-cmp: Likewise.
3227         * modules/unistr/u8-cmp2: Likewise.
3228         * modules/unistr/u8-cpy: Likewise.
3229         * modules/unistr/u8-cpy-alloc: Likewise.
3230         * modules/unistr/u8-endswith: Likewise.
3231         * modules/unistr/u8-mblen: Likewise.
3232         * modules/unistr/u8-mbsnlen: Likewise.
3233         * modules/unistr/u8-mbtouc: Likewise.
3234         * modules/unistr/u8-mbtouc-unsafe: Likewise.
3235         * modules/unistr/u8-mbtoucr: Likewise.
3236         * modules/unistr/u8-move: Likewise.
3237         * modules/unistr/u8-next: Likewise.
3238         * modules/unistr/u8-prev: Likewise.
3239         * modules/unistr/u8-set: Likewise.
3240         * modules/unistr/u8-startswith: Likewise.
3241         * modules/unistr/u8-stpcpy: Likewise.
3242         * modules/unistr/u8-stpncpy: Likewise.
3243         * modules/unistr/u8-strcat: Likewise.
3244         * modules/unistr/u8-strchr: Likewise.
3245         * modules/unistr/u8-strcmp: Likewise.
3246         * modules/unistr/u8-strcoll: Likewise.
3247         * modules/unistr/u8-strcpy: Likewise.
3248         * modules/unistr/u8-strcspn: Likewise.
3249         * modules/unistr/u8-strdup: Likewise.
3250         * modules/unistr/u8-strlen: Likewise.
3251         * modules/unistr/u8-strmblen: Likewise.
3252         * modules/unistr/u8-strmbtouc: Likewise.
3253         * modules/unistr/u8-strncat: Likewise.
3254         * modules/unistr/u8-strncmp: Likewise.
3255         * modules/unistr/u8-strncpy: Likewise.
3256         * modules/unistr/u8-strnlen: Likewise.
3257         * modules/unistr/u8-strpbrk: Likewise.
3258         * modules/unistr/u8-strrchr: Likewise.
3259         * modules/unistr/u8-strspn: Likewise.
3260         * modules/unistr/u8-strstr: Likewise.
3261         * modules/unistr/u8-strtok: Likewise.
3262         * modules/unistr/u8-to-u16: Likewise.
3263         * modules/unistr/u8-to-u32: Likewise.
3264         * modules/unistr/u8-uctomb: Likewise.
3265         * modules/unistr/u16-check: Likewise.
3266         * modules/unistr/u16-chr: Likewise.
3267         * modules/unistr/u16-cmp: Likewise.
3268         * modules/unistr/u16-cmp2: Likewise.
3269         * modules/unistr/u16-cpy: Likewise.
3270         * modules/unistr/u16-cpy-alloc: Likewise.
3271         * modules/unistr/u16-endswith: Likewise.
3272         * modules/unistr/u16-mblen: Likewise.
3273         * modules/unistr/u16-mbsnlen: Likewise.
3274         * modules/unistr/u16-mbtouc: Likewise.
3275         * modules/unistr/u16-mbtouc-unsafe: Likewise.
3276         * modules/unistr/u16-mbtoucr: Likewise.
3277         * modules/unistr/u16-move: Likewise.
3278         * modules/unistr/u16-next: Likewise.
3279         * modules/unistr/u16-prev: Likewise.
3280         * modules/unistr/u16-set: Likewise.
3281         * modules/unistr/u16-startswith: Likewise.
3282         * modules/unistr/u16-stpcpy: Likewise.
3283         * modules/unistr/u16-stpncpy: Likewise.
3284         * modules/unistr/u16-strcat: Likewise.
3285         * modules/unistr/u16-strchr: Likewise.
3286         * modules/unistr/u16-strcmp: Likewise.
3287         * modules/unistr/u16-strcoll: Likewise.
3288         * modules/unistr/u16-strcpy: Likewise.
3289         * modules/unistr/u16-strcspn: Likewise.
3290         * modules/unistr/u16-strdup: Likewise.
3291         * modules/unistr/u16-strlen: Likewise.
3292         * modules/unistr/u16-strmblen: Likewise.
3293         * modules/unistr/u16-strmbtouc: Likewise.
3294         * modules/unistr/u16-strncat: Likewise.
3295         * modules/unistr/u16-strncmp: Likewise.
3296         * modules/unistr/u16-strncpy: Likewise.
3297         * modules/unistr/u16-strnlen: Likewise.
3298         * modules/unistr/u16-strpbrk: Likewise.
3299         * modules/unistr/u16-strrchr: Likewise.
3300         * modules/unistr/u16-strspn: Likewise.
3301         * modules/unistr/u16-strstr: Likewise.
3302         * modules/unistr/u16-strtok: Likewise.
3303         * modules/unistr/u16-to-u32: Likewise.
3304         * modules/unistr/u16-to-u8: Likewise.
3305         * modules/unistr/u16-uctomb: Likewise.
3306         * modules/unistr/u32-check: Likewise.
3307         * modules/unistr/u32-chr: Likewise.
3308         * modules/unistr/u32-cmp: Likewise.
3309         * modules/unistr/u32-cmp2: Likewise.
3310         * modules/unistr/u32-cpy: Likewise.
3311         * modules/unistr/u32-cpy-alloc: Likewise.
3312         * modules/unistr/u32-endswith: Likewise.
3313         * modules/unistr/u32-mblen: Likewise.
3314         * modules/unistr/u32-mbsnlen: Likewise.
3315         * modules/unistr/u32-mbtouc: Likewise.
3316         * modules/unistr/u32-mbtouc-unsafe: Likewise.
3317         * modules/unistr/u32-mbtoucr: Likewise.
3318         * modules/unistr/u32-move: Likewise.
3319         * modules/unistr/u32-next: Likewise.
3320         * modules/unistr/u32-prev: Likewise.
3321         * modules/unistr/u32-set: Likewise.
3322         * modules/unistr/u32-startswith: Likewise.
3323         * modules/unistr/u32-stpcpy: Likewise.
3324         * modules/unistr/u32-stpncpy: Likewise.
3325         * modules/unistr/u32-strcat: Likewise.
3326         * modules/unistr/u32-strchr: Likewise.
3327         * modules/unistr/u32-strcmp: Likewise.
3328         * modules/unistr/u32-strcoll: Likewise.
3329         * modules/unistr/u32-strcpy: Likewise.
3330         * modules/unistr/u32-strcspn: Likewise.
3331         * modules/unistr/u32-strdup: Likewise.
3332         * modules/unistr/u32-strlen: Likewise.
3333         * modules/unistr/u32-strmblen: Likewise.
3334         * modules/unistr/u32-strmbtouc: Likewise.
3335         * modules/unistr/u32-strncat: Likewise.
3336         * modules/unistr/u32-strncmp: Likewise.
3337         * modules/unistr/u32-strncpy: Likewise.
3338         * modules/unistr/u32-strnlen: Likewise.
3339         * modules/unistr/u32-strpbrk: Likewise.
3340         * modules/unistr/u32-strrchr: Likewise.
3341         * modules/unistr/u32-strspn: Likewise.
3342         * modules/unistr/u32-strstr: Likewise.
3343         * modules/unistr/u32-strtok: Likewise.
3344         * modules/unistr/u32-to-u16: Likewise.
3345         * modules/unistr/u32-to-u8: Likewise.
3346         * modules/unistr/u32-uctomb: Likewise.
3347         * modules/uniwbrk/u8-wordbreaks: Likewise.
3348         * modules/uniwbrk/u16-wordbreaks: Likewise.
3349         * modules/uniwbrk/u32-wordbreaks: Likewise.
3350         * modules/uniwbrk/ulc-wordbreaks: Likewise.
3351         * modules/uniwbrk/wordbreak-property: Likewise.
3352         * modules/uniwidth/u8-strwidth: Likewise.
3353         * modules/uniwidth/u8-width: Likewise.
3354         * modules/uniwidth/u16-strwidth: Likewise.
3355         * modules/uniwidth/u16-width: Likewise.
3356         * modules/uniwidth/u32-strwidth: Likewise.
3357         * modules/uniwidth/u32-width: Likewise.
3358         * modules/uniwidth/width: Likewise.
3359         * modules/unicase/cased-tests (Makefile.am): Link all test programs
3360         with $(LIBUNISTRING).
3361         * modules/unicase/ignorable-tests: Likewise.
3362         * modules/unicase/locale-language-tests: Likewise.
3363         * modules/unicase/tolower-tests: Likewise.
3364         * modules/unicase/totitle-tests: Likewise.
3365         * modules/unicase/toupper-tests: Likewise.
3366         * modules/unicase/u8-casecmp-tests: Likewise.
3367         * modules/unicase/u8-casecoll-tests: Likewise.
3368         * modules/unicase/u8-casefold-tests: Likewise.
3369         * modules/unicase/u8-is-cased-tests: Likewise.
3370         * modules/unicase/u8-is-casefolded-tests: Likewise.
3371         * modules/unicase/u8-is-lowercase-tests: Likewise.
3372         * modules/unicase/u8-is-titlecase-tests: Likewise.
3373         * modules/unicase/u8-is-uppercase-tests: Likewise.
3374         * modules/unicase/u8-tolower-tests: Likewise.
3375         * modules/unicase/u8-totitle-tests: Likewise.
3376         * modules/unicase/u8-toupper-tests: Likewise.
3377         * modules/unicase/u16-casecmp-tests: Likewise.
3378         * modules/unicase/u16-casecoll-tests: Likewise.
3379         * modules/unicase/u16-casefold-tests: Likewise.
3380         * modules/unicase/u16-is-cased-tests: Likewise.
3381         * modules/unicase/u16-is-casefolded-tests: Likewise.
3382         * modules/unicase/u16-is-lowercase-tests: Likewise.
3383         * modules/unicase/u16-is-titlecase-tests: Likewise.
3384         * modules/unicase/u16-is-uppercase-tests: Likewise.
3385         * modules/unicase/u16-tolower-tests: Likewise.
3386         * modules/unicase/u16-totitle-tests: Likewise.
3387         * modules/unicase/u16-toupper-tests: Likewise.
3388         * modules/unicase/u32-casecmp-tests: Likewise.
3389         * modules/unicase/u32-casecoll-tests: Likewise.
3390         * modules/unicase/u32-casefold-tests: Likewise.
3391         * modules/unicase/u32-is-cased-tests: Likewise.
3392         * modules/unicase/u32-is-casefolded-tests: Likewise.
3393         * modules/unicase/u32-is-lowercase-tests: Likewise.
3394         * modules/unicase/u32-is-titlecase-tests: Likewise.
3395         * modules/unicase/u32-is-uppercase-tests: Likewise.
3396         * modules/unicase/u32-tolower-tests: Likewise.
3397         * modules/unicase/u32-totitle-tests: Likewise.
3398         * modules/unicase/u32-toupper-tests: Likewise.
3399         * modules/unicase/ulc-casecmp-tests: Likewise.
3400         * modules/unicase/ulc-casecoll-tests: Likewise.
3401         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
3402         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
3403         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
3404         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
3405         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
3406         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
3407         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
3408         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
3409         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
3410         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
3411         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
3412         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
3413         * modules/unictype/bidicategory-byname-tests: Likewise.
3414         * modules/unictype/bidicategory-name-tests: Likewise.
3415         * modules/unictype/bidicategory-of-tests: Likewise.
3416         * modules/unictype/bidicategory-test-tests: Likewise.
3417         * modules/unictype/block-list-tests: Likewise.
3418         * modules/unictype/block-of-tests: Likewise.
3419         * modules/unictype/block-test-tests: Likewise.
3420         * modules/unictype/category-C-tests: Likewise.
3421         * modules/unictype/category-Cc-tests: Likewise.
3422         * modules/unictype/category-Cf-tests: Likewise.
3423         * modules/unictype/category-Cn-tests: Likewise.
3424         * modules/unictype/category-Co-tests: Likewise.
3425         * modules/unictype/category-Cs-tests: Likewise.
3426         * modules/unictype/category-L-tests: Likewise.
3427         * modules/unictype/category-Ll-tests: Likewise.
3428         * modules/unictype/category-Lm-tests: Likewise.
3429         * modules/unictype/category-Lo-tests: Likewise.
3430         * modules/unictype/category-Lt-tests: Likewise.
3431         * modules/unictype/category-Lu-tests: Likewise.
3432         * modules/unictype/category-M-tests: Likewise.
3433         * modules/unictype/category-Mc-tests: Likewise.
3434         * modules/unictype/category-Me-tests: Likewise.
3435         * modules/unictype/category-Mn-tests: Likewise.
3436         * modules/unictype/category-N-tests: Likewise.
3437         * modules/unictype/category-Nd-tests: Likewise.
3438         * modules/unictype/category-Nl-tests: Likewise.
3439         * modules/unictype/category-No-tests: Likewise.
3440         * modules/unictype/category-P-tests: Likewise.
3441         * modules/unictype/category-Pc-tests: Likewise.
3442         * modules/unictype/category-Pd-tests: Likewise.
3443         * modules/unictype/category-Pe-tests: Likewise.
3444         * modules/unictype/category-Pf-tests: Likewise.
3445         * modules/unictype/category-Pi-tests: Likewise.
3446         * modules/unictype/category-Po-tests: Likewise.
3447         * modules/unictype/category-Ps-tests: Likewise.
3448         * modules/unictype/category-S-tests: Likewise.
3449         * modules/unictype/category-Sc-tests: Likewise.
3450         * modules/unictype/category-Sk-tests: Likewise.
3451         * modules/unictype/category-Sm-tests: Likewise.
3452         * modules/unictype/category-So-tests: Likewise.
3453         * modules/unictype/category-Z-tests: Likewise.
3454         * modules/unictype/category-Zl-tests: Likewise.
3455         * modules/unictype/category-Zp-tests: Likewise.
3456         * modules/unictype/category-Zs-tests: Likewise.
3457         * modules/unictype/category-and-not-tests: Likewise.
3458         * modules/unictype/category-and-tests: Likewise.
3459         * modules/unictype/category-byname-tests: Likewise.
3460         * modules/unictype/category-name-tests: Likewise.
3461         * modules/unictype/category-none-tests: Likewise.
3462         * modules/unictype/category-of-tests: Likewise.
3463         * modules/unictype/category-or-tests: Likewise.
3464         * modules/unictype/category-test-withtable-tests: Likewise.
3465         * modules/unictype/combining-class-tests: Likewise.
3466         * modules/unictype/ctype-alnum-tests: Likewise.
3467         * modules/unictype/ctype-alpha-tests: Likewise.
3468         * modules/unictype/ctype-blank-tests: Likewise.
3469         * modules/unictype/ctype-cntrl-tests: Likewise.
3470         * modules/unictype/ctype-digit-tests: Likewise.
3471         * modules/unictype/ctype-graph-tests: Likewise.
3472         * modules/unictype/ctype-lower-tests: Likewise.
3473         * modules/unictype/ctype-print-tests: Likewise.
3474         * modules/unictype/ctype-punct-tests: Likewise.
3475         * modules/unictype/ctype-space-tests: Likewise.
3476         * modules/unictype/ctype-upper-tests: Likewise.
3477         * modules/unictype/ctype-xdigit-tests: Likewise.
3478         * modules/unictype/decimal-digit-tests: Likewise.
3479         * modules/unictype/digit-tests: Likewise.
3480         * modules/unictype/mirror-tests: Likewise.
3481         * modules/unictype/numeric-tests: Likewise.
3482         * modules/unictype/property-alphabetic-tests: Likewise.
3483         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
3484         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
3485         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
3486         * modules/unictype/property-bidi-block-separator-tests: Likewise.
3487         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
3488         * modules/unictype/property-bidi-common-separator-tests: Likewise.
3489         * modules/unictype/property-bidi-control-tests: Likewise.
3490         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
3491         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
3492         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
3493         * modules/unictype/property-bidi-european-digit-tests: Likewise.
3494         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
3495         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
3496         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
3497         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
3498         * modules/unictype/property-bidi-pdf-tests: Likewise.
3499         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
3500         * modules/unictype/property-bidi-whitespace-tests: Likewise.
3501         * modules/unictype/property-byname-tests: Likewise.
3502         * modules/unictype/property-combining-tests: Likewise.
3503         * modules/unictype/property-composite-tests: Likewise.
3504         * modules/unictype/property-currency-symbol-tests: Likewise.
3505         * modules/unictype/property-dash-tests: Likewise.
3506         * modules/unictype/property-decimal-digit-tests: Likewise.
3507         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
3508         * modules/unictype/property-deprecated-tests: Likewise.
3509         * modules/unictype/property-diacritic-tests: Likewise.
3510         * modules/unictype/property-extender-tests: Likewise.
3511         * modules/unictype/property-format-control-tests: Likewise.
3512         * modules/unictype/property-grapheme-base-tests: Likewise.
3513         * modules/unictype/property-grapheme-extend-tests: Likewise.
3514         * modules/unictype/property-grapheme-link-tests: Likewise.
3515         * modules/unictype/property-hex-digit-tests: Likewise.
3516         * modules/unictype/property-hyphen-tests: Likewise.
3517         * modules/unictype/property-id-continue-tests: Likewise.
3518         * modules/unictype/property-id-start-tests: Likewise.
3519         * modules/unictype/property-ideographic-tests: Likewise.
3520         * modules/unictype/property-ids-binary-operator-tests: Likewise.
3521         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
3522         * modules/unictype/property-ignorable-control-tests: Likewise.
3523         * modules/unictype/property-iso-control-tests: Likewise.
3524         * modules/unictype/property-join-control-tests: Likewise.
3525         * modules/unictype/property-left-of-pair-tests: Likewise.
3526         * modules/unictype/property-line-separator-tests: Likewise.
3527         * modules/unictype/property-logical-order-exception-tests: Likewise.
3528         * modules/unictype/property-lowercase-tests: Likewise.
3529         * modules/unictype/property-math-tests: Likewise.
3530         * modules/unictype/property-non-break-tests: Likewise.
3531         * modules/unictype/property-not-a-character-tests: Likewise.
3532         * modules/unictype/property-numeric-tests: Likewise.
3533         * modules/unictype/property-other-alphabetic-tests: Likewise.
3534         * modules/unictype/property-other-default-ignorable-code-point-tests:
3535         Likewise.
3536         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
3537         * modules/unictype/property-other-id-continue-tests: Likewise.
3538         * modules/unictype/property-other-id-start-tests: Likewise.
3539         * modules/unictype/property-other-lowercase-tests: Likewise.
3540         * modules/unictype/property-other-math-tests: Likewise.
3541         * modules/unictype/property-other-uppercase-tests: Likewise.
3542         * modules/unictype/property-paired-punctuation-tests: Likewise.
3543         * modules/unictype/property-paragraph-separator-tests: Likewise.
3544         * modules/unictype/property-pattern-syntax-tests: Likewise.
3545         * modules/unictype/property-pattern-white-space-tests: Likewise.
3546         * modules/unictype/property-private-use-tests: Likewise.
3547         * modules/unictype/property-punctuation-tests: Likewise.
3548         * modules/unictype/property-quotation-mark-tests: Likewise.
3549         * modules/unictype/property-radical-tests: Likewise.
3550         * modules/unictype/property-sentence-terminal-tests: Likewise.
3551         * modules/unictype/property-soft-dotted-tests: Likewise.
3552         * modules/unictype/property-space-tests: Likewise.
3553         * modules/unictype/property-terminal-punctuation-tests: Likewise.
3554         * modules/unictype/property-test-tests: Likewise.
3555         * modules/unictype/property-titlecase-tests: Likewise.
3556         * modules/unictype/property-unassigned-code-value-tests: Likewise.
3557         * modules/unictype/property-unified-ideograph-tests: Likewise.
3558         * modules/unictype/property-uppercase-tests: Likewise.
3559         * modules/unictype/property-variation-selector-tests: Likewise.
3560         * modules/unictype/property-white-space-tests: Likewise.
3561         * modules/unictype/property-xid-continue-tests: Likewise.
3562         * modules/unictype/property-xid-start-tests: Likewise.
3563         * modules/unictype/property-zero-width-tests: Likewise.
3564         * modules/unictype/scripts-tests: Likewise.
3565         * modules/unictype/syntax-c-ident-tests: Likewise.
3566         * modules/unictype/syntax-c-whitespace-tests: Likewise.
3567         * modules/unictype/syntax-java-ident-tests: Likewise.
3568         * modules/unictype/syntax-java-whitespace-tests: Likewise.
3569         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
3570         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
3571         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
3572         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
3573         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
3574         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
3575         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
3576         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
3577         * modules/uniname/uniname-tests: Likewise.
3578         * modules/uninorm/canonical-decomposition-tests: Likewise.
3579         * modules/uninorm/compat-decomposition-tests: Likewise.
3580         * modules/uninorm/composition-tests: Likewise.
3581         * modules/uninorm/decomposing-form-tests: Likewise.
3582         * modules/uninorm/decomposition-tests: Likewise.
3583         * modules/uninorm/filter-tests: Likewise.
3584         * modules/uninorm/nfc-tests: Likewise.
3585         * modules/uninorm/nfd-tests: Likewise.
3586         * modules/uninorm/nfkc-tests: Likewise.
3587         * modules/uninorm/nfkd-tests: Likewise.
3588         * modules/uninorm/u8-normcmp-tests: Likewise.
3589         * modules/uninorm/u8-normcoll-tests: Likewise.
3590         * modules/uninorm/u16-normcmp-tests: Likewise.
3591         * modules/uninorm/u16-normcoll-tests: Likewise.
3592         * modules/uninorm/u32-normcmp-tests: Likewise.
3593         * modules/uninorm/u32-normcoll-tests: Likewise.
3594         * modules/unistdio/u8-asnprintf-tests: Likewise.
3595         * modules/unistdio/u8-vasnprintf-tests: Likewise.
3596         * modules/unistdio/u8-vasprintf-tests: Likewise.
3597         * modules/unistdio/u8-vsnprintf-tests: Likewise.
3598         * modules/unistdio/u8-vsprintf-tests: Likewise.
3599         * modules/unistdio/u16-asnprintf-tests: Likewise.
3600         * modules/unistdio/u16-vasnprintf-tests: Likewise.
3601         * modules/unistdio/u16-vasprintf-tests: Likewise.
3602         * modules/unistdio/u16-vsnprintf-tests: Likewise.
3603         * modules/unistdio/u16-vsprintf-tests: Likewise.
3604         * modules/unistdio/u32-asnprintf-tests: Likewise.
3605         * modules/unistdio/u32-vasnprintf-tests: Likewise.
3606         * modules/unistdio/u32-vasprintf-tests: Likewise.
3607         * modules/unistdio/u32-vsnprintf-tests: Likewise.
3608         * modules/unistdio/u32-vsprintf-tests: Likewise.
3609         * modules/unistdio/ulc-asnprintf-tests: Likewise.
3610         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
3611         * modules/unistdio/ulc-vasprintf-tests: Likewise.
3612         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
3613         * modules/unistdio/ulc-vsprintf-tests: Likewise.
3614         * modules/unistr/u8-check-tests: Likewise.
3615         * modules/unistr/u8-chr-tests: Likewise.
3616         * modules/unistr/u8-cmp-tests: Likewise.
3617         * modules/unistr/u8-cmp2-tests: Likewise.
3618         * modules/unistr/u8-cpy-alloc-tests: Likewise.
3619         * modules/unistr/u8-cpy-tests: Likewise.
3620         * modules/unistr/u8-mblen-tests: Likewise.
3621         * modules/unistr/u8-mbsnlen-tests: Likewise.
3622         * modules/unistr/u8-mbtouc-tests: Likewise.
3623         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
3624         * modules/unistr/u8-mbtoucr-tests: Likewise.
3625         * modules/unistr/u8-move-tests: Likewise.
3626         * modules/unistr/u8-next-tests: Likewise.
3627         * modules/unistr/u8-prev-tests: Likewise.
3628         * modules/unistr/u8-set-tests: Likewise.
3629         * modules/unistr/u8-stpcpy-tests: Likewise.
3630         * modules/unistr/u8-stpncpy-tests: Likewise.
3631         * modules/unistr/u8-strcat-tests: Likewise.
3632         * modules/unistr/u8-strcmp-tests: Likewise.
3633         * modules/unistr/u8-strcoll-tests: Likewise.
3634         * modules/unistr/u8-strcpy-tests: Likewise.
3635         * modules/unistr/u8-strdup-tests: Likewise.
3636         * modules/unistr/u8-strlen-tests: Likewise.
3637         * modules/unistr/u8-strmblen-tests: Likewise.
3638         * modules/unistr/u8-strmbtouc-tests: Likewise.
3639         * modules/unistr/u8-strncat-tests: Likewise.
3640         * modules/unistr/u8-strncmp-tests: Likewise.
3641         * modules/unistr/u8-strncpy-tests: Likewise.
3642         * modules/unistr/u8-strnlen-tests: Likewise.
3643         * modules/unistr/u8-to-u16-tests: Likewise.
3644         * modules/unistr/u8-to-u32-tests: Likewise.
3645         * modules/unistr/u8-uctomb-tests: Likewise.
3646         * modules/unistr/u16-check-tests: Likewise.
3647         * modules/unistr/u16-chr-tests: Likewise.
3648         * modules/unistr/u16-cmp-tests: Likewise.
3649         * modules/unistr/u16-cmp2-tests: Likewise.
3650         * modules/unistr/u16-cpy-alloc-tests: Likewise.
3651         * modules/unistr/u16-cpy-tests: Likewise.
3652         * modules/unistr/u16-mblen-tests: Likewise.
3653         * modules/unistr/u16-mbsnlen-tests: Likewise.
3654         * modules/unistr/u16-mbtouc-tests: Likewise.
3655         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
3656         * modules/unistr/u16-mbtoucr-tests: Likewise.
3657         * modules/unistr/u16-move-tests: Likewise.
3658         * modules/unistr/u16-next-tests: Likewise.
3659         * modules/unistr/u16-prev-tests: Likewise.
3660         * modules/unistr/u16-set-tests: Likewise.
3661         * modules/unistr/u16-stpcpy-tests: Likewise.
3662         * modules/unistr/u16-stpncpy-tests: Likewise.
3663         * modules/unistr/u16-strcat-tests: Likewise.
3664         * modules/unistr/u16-strcmp-tests: Likewise.
3665         * modules/unistr/u16-strcoll-tests: Likewise.
3666         * modules/unistr/u16-strcpy-tests: Likewise.
3667         * modules/unistr/u16-strdup-tests: Likewise.
3668         * modules/unistr/u16-strlen-tests: Likewise.
3669         * modules/unistr/u16-strmblen-tests: Likewise.
3670         * modules/unistr/u16-strmbtouc-tests: Likewise.
3671         * modules/unistr/u16-strncat-tests: Likewise.
3672         * modules/unistr/u16-strncmp-tests: Likewise.
3673         * modules/unistr/u16-strncpy-tests: Likewise.
3674         * modules/unistr/u16-strnlen-tests: Likewise.
3675         * modules/unistr/u16-to-u32-tests: Likewise.
3676         * modules/unistr/u16-to-u8-tests: Likewise.
3677         * modules/unistr/u16-uctomb-tests: Likewise.
3678         * modules/unistr/u32-check-tests: Likewise.
3679         * modules/unistr/u32-chr-tests: Likewise.
3680         * modules/unistr/u32-cmp-tests: Likewise.
3681         * modules/unistr/u32-cmp2-tests: Likewise.
3682         * modules/unistr/u32-cpy-alloc-tests: Likewise.
3683         * modules/unistr/u32-cpy-tests: Likewise.
3684         * modules/unistr/u32-mblen-tests: Likewise.
3685         * modules/unistr/u32-mbsnlen-tests: Likewise.
3686         * modules/unistr/u32-mbtouc-tests: Likewise.
3687         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
3688         * modules/unistr/u32-mbtoucr-tests: Likewise.
3689         * modules/unistr/u32-move-tests: Likewise.
3690         * modules/unistr/u32-next-tests: Likewise.
3691         * modules/unistr/u32-prev-tests: Likewise.
3692         * modules/unistr/u32-set-tests: Likewise.
3693         * modules/unistr/u32-stpcpy-tests: Likewise.
3694         * modules/unistr/u32-stpncpy-tests: Likewise.
3695         * modules/unistr/u32-strcat-tests: Likewise.
3696         * modules/unistr/u32-strcmp-tests: Likewise.
3697         * modules/unistr/u32-strcoll-tests: Likewise.
3698         * modules/unistr/u32-strcpy-tests: Likewise.
3699         * modules/unistr/u32-strdup-tests: Likewise.
3700         * modules/unistr/u32-strlen-tests: Likewise.
3701         * modules/unistr/u32-strmblen-tests: Likewise.
3702         * modules/unistr/u32-strmbtouc-tests: Likewise.
3703         * modules/unistr/u32-strncat-tests: Likewise.
3704         * modules/unistr/u32-strncmp-tests: Likewise.
3705         * modules/unistr/u32-strncpy-tests: Likewise.
3706         * modules/unistr/u32-strnlen-tests: Likewise.
3707         * modules/unistr/u32-to-u16-tests: Likewise.
3708         * modules/unistr/u32-to-u8-tests: Likewise.
3709         * modules/unistr/u32-uctomb-tests: Likewise.
3710         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
3711         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
3712         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
3713         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
3714         * modules/uniwidth/u8-strwidth-tests: Likewise.
3715         * modules/uniwidth/u8-width-tests: Likewise.
3716         * modules/uniwidth/u16-strwidth-tests: Likewise.
3717         * modules/uniwidth/u16-width-tests: Likewise.
3718         * modules/uniwidth/u32-strwidth-tests: Likewise.
3719         * modules/uniwidth/u32-width-tests: Likewise.
3720         * modules/uniwidth/width-tests: Likewise.
3721
3722 2010-05-18  Richard Jones  <rjones@redhat.com>
3723
3724         doc: users.txt: list hivex
3725         * users.txt: Add hivex.
3726
3727 2010-05-18  Richard Jones  <rjones@redhat.com>
3728
3729         doc: users.txt: list febootstrap
3730         * users.txt: Add febootstrap.
3731
3732 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
3733
3734         bootstrap: fix an error when gnulib is not used as a git submodule
3735         * build-aux/bootstrap (gnulib_path): If its length is zero then
3736         assign "gnulib" to it.
3737         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
3738
3739 2010-05-16  Bruno Haible  <bruno@clisp.org>
3740
3741         Avoid autoconf warnings about AM_ICONV.
3742         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
3743         2.64.
3744
3745 2010-05-16  Bruno Haible  <bruno@clisp.org>
3746
3747         absolute-header: Make the macro usable in more situations.
3748         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
3749         from gl_ABSOLUTE_HEADER.
3750         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
3751
3752 2010-05-16  James Youngman  <jay@gnu.org>
3753
3754         doc: update users.txt
3755         * users.txt: Add CSSC.
3756
3757 2010-05-16  Jim Meyering  <meyering@redhat.com>
3758
3759         init.sh: fix an error in the previous change; add more comments
3760         * tests/init.sh: Compare exit code in loop against 9, not 2.
3761         Patch by Bruno Haible.
3762         Make the two tests more similar by adding an empty "then" clause.
3763         Add comments.
3764
3765         init.sh: avoid unnecessary shell re-exec
3766         * tests/init.sh: Improve the re-exec-required check to first test the
3767         current shell.  If it passes the test, do not search for a shell that
3768         does pass, and do not re-exec.  This test is particularly contorted to
3769         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
3770         of $(...) evokes a syntax error and causes immediate shell exit with
3771         status 2.  Bruno Haible reported that the re-exec made it impossible
3772         to single-step through any init.sh-using script.
3773
3774 2010-05-16  Bruno Haible  <bruno@clisp.org>
3775
3776         Fix collision between gnulib's and libintl's printf replacements.
3777         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
3778         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
3779         (printf): When using GNU C, map the __printf__ function to rpl_printf
3780         via __asm__. When not using GNU C, define rpl_printf instead of
3781         __printf__.
3782         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
3783         commit.
3784         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
3785         commit.
3786         * m4/asm-underscore.m4: New file.
3787         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
3788         * modules/stdio (Files): Add m4/asm-underscore.m4.
3789         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
3790         Reported by Ben Pfaff.
3791
3792 2010-05-16  Bruno Haible  <bruno@clisp.org>
3793
3794         verify: Avoid skipping the test on openSUSE 11.0.
3795         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
3796
3797 2010-05-13  Bruno Haible  <bruno@clisp.org>
3798
3799         Avoid useless warnings from G++.
3800         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
3801         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
3802         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
3803
3804 2010-05-11  Jim Meyering  <meyering@redhat.com>
3805
3806         maint.mk: tweak preceding change
3807         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
3808         regexps tighter by anchoring at EOL, and make the new group "shy"
3809         for slightly decreased overhead.
3810
3811 2010-05-11  Eric Blake  <eblake@redhat.com>
3812
3813         maint.mk: gnulib doesn't guarantee NSIG
3814         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
3815
3816 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
3817
3818         test-pwrite.c: Remove unused variable declaration.
3819         * tests/test-pwrite.c (main): Remove read_buf declaration.
3820
3821         Remove useless test-pwrite.sh file.
3822         * tests/test-pwrite.sh: Delete file.
3823         * modules/pwrite-tests: Remove references.
3824         Reported by Bruno Haible.
3825
3826 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
3827
3828         init.sh: fix a typo
3829         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
3830
3831 2010-05-10  Jim Meyering  <meyering@redhat.com>
3832
3833         maint.mk: avoid using a temporary file in the always-defined-macros check
3834         * top/maint.mk (.re-defmac): Remove rule.
3835         (gl_trap_): Remove definition.
3836         (sc_prohibit_always-defined_macros): Rewrite not to create and
3837         depend on a temporary file.  Instead, depend on GNU grep's ability
3838         to read a list of regular expressions from stdin when given "-f -".
3839
3840 2010-05-09  Bruno Haible  <bruno@clisp.org>
3841
3842         Update to GNU gettext 0.18, part 1.
3843         * m4/gettext.m4: Update to GNU gettext 0.18.
3844         * m4/intl.m4: Likewise.
3845         * m4/po.m4: Likewise.
3846         * modules/gettext (Files): Add m4/fcntl-o.m4.
3847         (configure.ac): Require gettext infrastructure from version 0.18.
3848
3849 2010-05-09  Jim Meyering  <meyering@redhat.com>
3850
3851         init.sh: enable MALLOC_PERTURB_
3852         * tests/init.sh: Enable glibc's malloc-perturbing option.
3853
3854         maint.mk: improve sc_cross_check_PATH_usage_in_tests
3855         With my recent change in init.sh from the two-line form:
3856             -#   : ${srcdir=.}
3857             -#   . "$srcdir/init.sh"; path_prepend_ .
3858             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
3859         I noticed that using the one-line form would cause this test
3860         to fail with a false-positive, or to stop working altogether,
3861         depending on whether help-version changed or all the tests did.
3862         * top/maint.mk (_hv_regex): Remove this definition.
3863         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
3864         (_hv_regex_strong): Use a stronger regex to check for conformance.
3865         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
3866         Give a separate diagnostic for lack of conforming use.
3867
3868         maint.mk: prohibit definition of symbols defined by gnulib
3869         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
3870         definition of symbols defined by gnulib.
3871
3872 2010-05-09  Bruno Haible  <bruno@clisp.org>
3873
3874         acl: Avoid test failure on Cygwin-hosted mingw.
3875         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
3876
3877 2010-05-09  Bruno Haible  <bruno@clisp.org>
3878
3879         error: Use system's fcntl function.
3880         * lib/error.c (fcntl): Undefine.
3881
3882 2010-05-09  Jim Meyering  <meyering@redhat.com>
3883
3884         verify: adjust formatting to be more consistent
3885         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
3886         argument-list '('s, and after one comma.
3887
3888 2010-05-09  Bruno Haible  <bruno@clisp.org>
3889
3890         error: More reliable output on mingw.
3891         * lib/error.c: Include <windows.h>.
3892         (is_open): New function.
3893         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
3894         defined.
3895
3896 2010-05-09  Bruno Haible  <bruno@clisp.org>
3897
3898         vasnprintf: Fix syntax errors in libintl build on mingw.
3899         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
3900         pad_ourselves and prec_ourselves after use.
3901
3902 2010-05-08  Bruno Haible  <bruno@clisp.org>
3903
3904         * lib/config.charset: Update comments for Cygwin 1.7.
3905         * lib/localcharset.c: Likewise.
3906
3907 2010-05-07  Jim Meyering  <meyering@redhat.com>
3908
3909         init.sh: improve comments
3910         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
3911         . "${srcdir=.}/init.sh"; path_prepend_ .
3912         Add a note about path_prepend_ and the alternative of using
3913         TESTS_ENVIRONMENT.
3914
3915 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
3916
3917         exclude: Unescape hashed patterns in wildcard mode.
3918         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
3919         to the hash list.
3920         * tests/test-exclude8.sh: New test case.
3921         * modules/exclude-tests: Add new test.
3922
3923 2010-05-05  Eric Blake  <eblake@redhat.com>
3924
3925         verify: automate tests
3926         * modules/verify-tests: New module.
3927         * tests/test-verify.sh: New file.
3928         * tests/test-verify.c: Guard each negative test with a unique id.
3929         Also avoid warning about unused left hand of comma expressions.
3930
3931 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
3932
3933         Further improvements to verify.h, suggested by Eric Blake.
3934         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
3935         the GL_* versions, to avoid collision with OpenGL.
3936         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
3937         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
3938         than testing merely whether it's defined.
3939
3940         Modify verify.h to pacify gcc -Wredundant_decls.
3941         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
3942         These use the prefix "GL_" since they're likely to be useful elsewhere.
3943         We may need to break them out into a different .h file.
3944         (__COUNTER__): Define to 0 if the compiler doesn't support it.
3945         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
3946         of verify_function__.
3947
3948 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
3949
3950         Tests for module pwrite.
3951         * modules/pwrite-tests: New file.
3952         * tests/test-pwrite.sh: New file.
3953         * tests/test-pwrite.c: New file.
3954
3955         New module pwrite.
3956         * lib/unistd.in.h (pwrite): New declaration.
3957         * lib/pwrite.c: New file, from glibc with modifications.
3958         * m4/pwrite.m4: New file.
3959         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
3960         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
3961         REPLACE_PWRITE.
3962         * modules/pwrite: New file.
3963         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
3964         REPLACE_PWRITE.
3965         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
3966         * doc/posix-functions/pwrite.texi: Mention the new module.
3967
3968 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
3969
3970         pread: Update documentation.
3971         * doc/posix-functions/pread.texi: Mention the 'pread' module.
3972
3973 2010-05-04  Eric Blake  <eblake@redhat.com>
3974
3975         docs: update cygwin progress
3976         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
3977         this bug.
3978         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
3979         Added in cygwin 1.7.2.
3980         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
3981         Likewise.
3982         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
3983         Likewise.
3984         * doc/glibc-functions/dup3.texi (dup3): Likewise.
3985         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
3986         * doc/glibc-functions/accept4.texi (accept4): Likewise.
3987         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
3988         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
3989         Mention nproc module.
3990         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
3991         bug in cygwin 1.7.5 addition.
3992         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
3993         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
3994         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
3995         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
3996         1.7.5.
3997         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
3998         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
3999         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
4000         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
4001         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
4002         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
4003         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
4004         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
4005         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
4006         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
4007         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
4008         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
4009         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
4010         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
4011         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
4012         Likewise.
4013         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
4014         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
4015         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
4016         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
4017         Likewise.
4018         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
4019         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
4020         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
4021         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
4022         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
4023         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
4024         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
4025         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
4026         Likewise.
4027         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
4028         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
4029         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
4030         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
4031         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
4032         Likewise.
4033         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
4034         Likewise.
4035         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
4036         Likewise.
4037         * doc/glibc-functions/xdrrec_endofrecord.texi
4038         (xdrrec_endofrecord): Likewise.
4039         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
4040         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
4041         Likewise.
4042         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
4043         Likewise.
4044
4045 2010-05-04  Jim Meyering  <meyering@redhat.com>
4046
4047         gendocs.sh: make its "-s FILE" option more useful
4048         * build-aux/gendocs.sh: When honoring the -s FILE option, update
4049         $PACKAGE to reflect the probably-different basename of "FILE".
4050
4051 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
4052
4053         bootstrap: don't ignore download_po_files failure
4054         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
4055         failure.
4056
4057 2010-05-03  Jim Meyering  <meyering@redhat.com>
4058
4059         maint.mk: allow to pass options to gendocs.sh
4060         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
4061         (gendocs_options_): New overridable variable.
4062
4063         gnu-web-doc-update: don't ignore configure or build failure
4064         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
4065
4066         announce-gen: backslash-escape '@'s in --help output
4067         * build-aux/announce-gen: Fix syntax errors.
4068
4069         maint.mk, announce-gen: allow project-specific announcement mail headers
4070         * top/maint.mk (translation_project_): Define default.
4071         (announcement_Cc_, announcement_mail_headers_): Likewise.
4072         (announcement): Invoke announce-gen with new --mail-headers option.
4073         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
4074
4075         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
4076         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
4077         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
4078         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
4079         line in the "err2" output file when running "make check" in verbose
4080         mode (i.e., with set -x enabled).
4081
4082 2010-05-03  Bruno Haible  <bruno@clisp.org>
4083
4084         wctob: Fix for weird platforms.
4085         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
4086         argument value.
4087
4088 2010-05-03  Jim Meyering  <meyering@redhat.com>
4089
4090         maint.mk: prohibit unwarranted use of <strings.h>
4091         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
4092         strings.h in a file that does not also use strcasecmp, strncasecmp,
4093         ffs or ffsll.
4094
4095         maint.mk: remove obsolete comments
4096         * top/maint.mk: Remove stale, commented-out rules.
4097
4098 2010-05-02  Bruno Haible  <bruno@clisp.org>
4099
4100         wcwidth: Declare also when it's aliased.
4101         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
4102         macro.
4103
4104 2010-05-02  Bruno Haible  <bruno@clisp.org>
4105
4106         Fix regression from 2010-04-25.
4107         * gnulib-tool (func_modules_transitive_closure): Check the status of
4108         all modules, not only of the tests that are of the form foo-tests where
4109         foo is a module.
4110
4111 2010-05-02  Bruno Haible  <bruno@clisp.org>
4112
4113         wctob: Work around nasty Cygwin 1.7.2 bug.
4114         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
4115         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
4116
4117 2010-05-01  Bruno Haible  <bruno@clisp.org>
4118
4119         fpurge: Sharper test.
4120         * tests/test-fpurge.c (main): Add one more ftell check.
4121         * modules/fpurge-tests (Depends-on): Add ftell.
4122         Suggested by Eric Blake.
4123
4124 2010-05-01  Bruno Haible  <bruno@clisp.org>
4125
4126         ftello: Another test.
4127         * tests/test-ftello3.c: New file.
4128         * modules/ftello-tests (Files): Add it.
4129         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
4130         MOSTLYCLEANFILES.
4131
4132         ftell: Another test.
4133         * tests/test-ftell3.c: New file.
4134         * modules/ftell-tests (Files): Add it.
4135         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
4136         MOSTLYCLEANFILES.
4137
4138 2010-05-01  Bruno Haible  <bruno@clisp.org>
4139
4140         ftell, ftello: Work around Solaris bug.
4141         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
4142         * lib/ftello.c: Include stdio-impl.h.
4143         (ftello): On Solaris, when _IOWRT is set, compute the result without
4144         looking at _IOREAD.
4145         * modules/ftello (Files): Add lib/stdio-impl.h.
4146         * doc/posix-functions/ftell.texi: Mention Solaris bug.
4147         * doc/posix-functions/ftello.texi: Likewise.
4148         Reported by Eric Blake.
4149
4150 2010-05-01  Bruno Haible  <bruno@clisp.org>
4151
4152         freading: Adapt to special meaning of _IOREAD flag on Solaris.
4153         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
4154         the _IOWRT flag is also set.
4155
4156 2010-05-01  Bruno Haible  <bruno@clisp.org>
4157
4158         Fix doc about a HP-UX stdio bug.
4159         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
4160         * doc/posix-functions/ftello.texi: Likewise.
4161
4162 2010-05-01  Bruno Haible  <bruno@clisp.org>
4163
4164         lseek test: Fix failure on Solaris.
4165         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
4166         output.
4167
4168 2010-04-30  Jim Meyering  <meyering@redhat.com>
4169
4170         bootstrap: don't ignore failure to generate po*/Makevars
4171         * build-aux/bootstrap (with_gettext): Don't ignore failure
4172         to create po/Makevars or runtime-po/Makevars.
4173
4174 2010-04-29  Eric Blake  <eblake@redhat.com>
4175
4176         headers: relax license to LGPLv2+
4177         * modules/fcntl-h (License): Relax license.
4178         * modules/getopt-posix (License): Likewise.
4179         * modules/locale (License): Likewise.
4180         * modules/math (License): Likewise.
4181         * modules/pty (License): Likewise.
4182         * modules/sched (License): Likewise.
4183         * modules/search (License): Likewise.
4184         * modules/spawn (License): Likewise.
4185         * modules/stdarg (License): Likewise.
4186         * modules/sysexits (License): Likewise.
4187
4188 2010-04-29  Jim Meyering  <meyering@redhat.com>
4189
4190         inttypes: relax license to LGPLv2+
4191         * modules/inttypes (License): Relax license.
4192
4193 2010-04-29  Simon Josefsson  <simon@josefsson.org>
4194
4195         * top/maint.mk (indent): Run twice to produce idempotent results.
4196
4197 2010-04-28  Bruno Haible  <bruno@clisp.org>
4198
4199         getdate: Generate getdate.c in the source directory.
4200         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
4201         MOSTLYCLEANFILES.
4202         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
4203
4204 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
4205
4206         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
4207         is not declared as a const *; avoid warnings in that case.
4208
4209 2010-04-28  Eric Blake  <eblake@redhat.com>
4210
4211         canonicalize-lgpl: avoid compiler warning
4212         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
4213         declaration' / 'extraneous semicolon' warning with some compilers.
4214         Reported by Andreas Gruenbacher.
4215
4216 2010-04-28  Jim Meyering  <meyering@redhat.com>
4217
4218         init.sh: ensure a more reliable exit status when exiting via trap
4219         * tests/init.sh (setup_): Don't rely on $? in signal handler.
4220         Inspired by patches from Dmitry V. Levin.
4221         Also trap on signal 3 (SIGQUIT).
4222
4223 2010-04-27  Bruno Haible  <bruno@clisp.org>
4224
4225         Update doc about utimes().
4226         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
4227         'utimens' module.
4228         Reported by Andreas Gruenbacher <agruen@suse.de>.
4229
4230 2010-04-27  Eric Blake  <eblake@redhat.com>
4231
4232         full-read, full-write: relax license
4233         * modules/full-read (License): Drop to LGPLv2+.
4234         * modules/full-write (License): Likewise.
4235         * modules/safe-read (License): Likewise.
4236         * modules/safe-write (License): Likewise.
4237
4238         pthread: mention library for linking
4239         * modules/pthread (Link): Mention $(LIB_PTHREAD).
4240
4241 2010-04-27  Jim Meyering  <meyering@redhat.com>
4242
4243         maint.mk: fix a bug introduced in last change
4244         * top/maint.mk (gl_assured_headers_): Now that all names are on
4245         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
4246         is not anchored to end of word, it should be adequate.
4247
4248         maint.mk: avoid side-effect in latest syntax-check
4249         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
4250         to run commands via $(shell...), and hence to incur cost only when
4251         the new rule is actually run.
4252
4253         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
4254         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
4255         and use that to create a regexp used to detect all #if HAVE_..._H uses.
4256         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
4257         (gl_assured_headers_, az_, AZ_): Define.
4258         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
4259
4260 2010-04-26  Jim Meyering  <jim@meyering.net>
4261             Bruno Haible  <bruno@clisp.org>
4262
4263         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
4264         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
4265         Prompted by an exchange with Gilles Espinasse.
4266
4267 2010-04-26  Jim Meyering  <meyering@redhat.com>
4268
4269         git-version-gen: aesthetic tweak
4270         * build-aux/git-version-gen: Use "$nl" rather than a literal,
4271         so that the command remains on a single line.
4272
4273 2010-04-26  Eric Blake  <eblake@redhat.com>
4274
4275         git-version-gen: allow use on EBCDIC hosts
4276         * build-aux/git-version-gen (dirty): Use literal rather than tying
4277         ourselves to ascii.
4278         Reported by Steve Goetze.
4279
4280 2010-04-25  Bruno Haible  <bruno@clisp.org>
4281
4282         netdb: Add support for GNULIB_POSIXCHECK.
4283         * lib/netdb.in.h: Include warn-on-use.h.
4284         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
4285         functions are used when GNULIB_POSIXCHECK is defined and the
4286         getaddrinfo module is not in use.
4287         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
4288         freeaddrinfo, gai_strerror, getnameinfo are declared.
4289         * modules/netdb (Depends-on): Add warn-on-use.
4290         (Makefile.am): Include warn-on-use.h in netdb.h.
4291
4292 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
4293
4294         build: avoid "make check" failure without .git/ directory
4295         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
4296         there is no .git/ directory.
4297
4298 2010-04-25  Bruno Haible  <bruno@clisp.org>
4299
4300         ptsname: Fix misuse of ttyname_r.
4301         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
4302         of errno.
4303
4304 2010-04-25  Bruno Haible  <bruno@clisp.org>
4305
4306         ttyname_r: Make it work on Solaris 10.
4307         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
4308         if the system function has the POSIX declaration. Test whether the
4309         function fails if the buffer is less than 128 bytes large.
4310         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
4311         system's ttyname_r function. Provide a reasonably large buffer.
4312         * modules/ttyname_r (Depends-on): Add extensions.
4313         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
4314
4315 2010-04-25  Bruno Haible  <bruno@clisp.org>
4316
4317         Use the 'extensions' module for some more functions on Solaris.
4318         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
4319         module.
4320         * doc/posix-functions/ctime_r.texi: Likewise.
4321         * doc/posix-functions/getgrgid_r.texi: Likewise.
4322         * doc/posix-functions/getgrnam_r.texi: Likewise.
4323         * doc/posix-functions/getpwnam_r.texi: Likewise.
4324         * doc/posix-functions/getpwuid_r.texi: Likewise.
4325         * doc/posix-functions/readdir_r.texi: Likewise.
4326         * doc/posix-functions/sigwait.texi: Likewise.
4327         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
4328         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
4329
4330 2010-04-25  Bruno Haible  <bruno@clisp.org>
4331
4332         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
4333         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
4334         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
4335         * lib/ttyname_r.c: Include <limits.h>.
4336         (ttyname_r): Define using the system's ttyname_r function, if it exists
4337         and not on Solaris.
4338         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
4339         set.
4340         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
4341         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
4342         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
4343         Reported by Simon Josefsson.
4344
4345 2010-04-25  Bruno Haible  <bruno@clisp.org>
4346
4347         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
4348         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
4349         * doc/posix-functions/ctime_r.texi: Likewise.
4350         * doc/posix-functions/getgrgid_r.texi: Likewise.
4351         * doc/posix-functions/getgrnam_r.texi: Likewise.
4352         * doc/posix-functions/getlogin_r.texi: Likewise.
4353         * doc/posix-functions/getpwnam_r.texi: Likewise.
4354         * doc/posix-functions/getpwuid_r.texi: Likewise.
4355         * doc/posix-functions/readdir_r.texi: Likewise.
4356         * doc/posix-functions/sigwait.texi: Likewise.
4357         * doc/posix-functions/ttyname_r.texi: Likewise.
4358         Reported by Simon Josefsson.
4359
4360 2010-04-25  Bruno Haible  <bruno@clisp.org>
4361
4362         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
4363         * gnulib-tool (func_usage): Document that --with-*-tests options apply
4364         also to --create-testdir.
4365         (func_acceptable): Don't consider the status of *-tests modules here.
4366         (func_modules_transitive_closure): Consider it here, before including a
4367         test module.
4368         (func_import, func_create_testdir): Set inc_all_direct_tests,
4369         inc_all_indirect_tests.
4370         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
4371         --create-testdir and --create-megatestdir.
4372
4373 2010-04-25  Bruno Haible  <bruno@clisp.org>
4374
4375         gnulib-tool: Add --without-*-tests options.
4376         * gnulib-tool (func_usage): Document the --without-*-tests options.
4377         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
4378         excl_unportable_tests): New variables.
4379         Fail if they are specified with --import or --update.
4380         (func_acceptable): Respect the excl_*_tests variables.
4381         (func_import): Set the excl_*_tests variables to empty.
4382
4383 2010-04-25  Simon Josefsson  <simon@josefsson.org>
4384             Bruno Haible  <bruno@clisp.org>
4385
4386         Work around a MacOS X 10.4 bug with openpty.
4387         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
4388         * tests/test-openpty.c (main): Close the master side explicitly.
4389
4390 2010-04-25  Bruno Haible  <bruno@clisp.org>
4391
4392         strnlen: Fix a C++ test error on MacOS X and Solaris.
4393         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
4394         the function is not declared.
4395         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
4396         Simon Josefsson.
4397
4398 2010-04-24  Bruno Haible  <bruno@clisp.org>
4399
4400         Avoid a gcc warning.
4401         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
4402         of correct type for %08lx directive.
4403         Reported by Eric Blake.
4404
4405 2010-04-24  Bruno Haible  <bruno@clisp.org>
4406
4407         vasnprintf: Correct errno value in case of out-of-memory.
4408         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
4409         or sprintf. Use the errno value from SNPRINTF or sprintf.
4410         Reported by Ian Beckwith <ianb@erislabs.net>.
4411
4412 2010-04-24  Bruno Haible  <bruno@clisp.org>
4413
4414         ansi-c++-opt: Find correct compiler when cross-compiling.
4415         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
4416         AC_CHECK_PROGS.
4417         Reported by Simon Josefsson.
4418
4419 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
4420
4421         vc-list-files: Add support for subversion
4422         * build-aux/vc-list-files: Use "svn list" to generate the list of
4423         files controlled by subversion.
4424
4425 2010-04-23  Jim Meyering  <meyering@redhat.com>
4426
4427         vc-list-files tests: convert to use init.sh
4428         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
4429         path_prepend_.
4430         Use Exit, not exit.
4431         Use skip_ rather than open coding it.
4432         Remove trap set-up and compare definitions.
4433         * tests/test-vc-list-files-git.sh: Likewise.
4434         * modules/vc-list-files-tests (Files): Add tests/init.sh.
4435
4436 2010-04-22  Simon Josefsson  <simon@josefsson.org>
4437
4438         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
4439         backup files.
4440
4441 2010-04-21  Simon Josefsson  <simon@josefsson.org>
4442
4443         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
4444
4445 2010-04-20  Eric Blake  <eblake@redhat.com>
4446
4447         tests: be robust to ignored SIGPIPE
4448         * tests/test-select-in.sh: Consume all output.
4449         * tests/test-lseek.sh: Check correct exit status, while avoiding
4450         EPIPE.
4451
4452 2010-04-20  Simon Josefsson  <simon@josefsson.org>
4453             Bruno Haible  <bruno@clisp.org>
4454
4455         visibility: Don't use -fvisibility if it leads to a warning.
4456         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
4457         yes, don't pretend that visibility works if it leads to a warning.
4458         Reported by Mike Gran <spk121@yahoo.com>.
4459
4460 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
4461
4462         * build-aux/bootstrap: Use "git -h" for testing for supported options
4463         instead of "git --help".  The short-form option only shows a summary,
4464         and doesn't layout the full man page.  Grep for the full option name
4465         in the summary, too.
4466
4467 2010-04-19  Bruno Haible  <bruno@clisp.org>
4468
4469         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
4470         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
4471         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
4472         mention of RELOCATABLE_STRIP.
4473         Reported by Sylvain Beucler <beuc@beuc.net>.
4474
4475 2010-04-19  Bruno Haible  <bruno@clisp.org>
4476
4477         * lib/diffseq.h: Fix typo in comment.
4478         Reported by Eric Blake.
4479
4480 2010-04-19  Bruno Haible  <bruno@clisp.org>
4481
4482         ioctl: Move autoconf macro to a .m4 file.
4483         * m4/ioctl.m4: New file, extracted from modules/ioctl.
4484         * modules/ioctl (Files): Add it.
4485         (configure.ac): Simply invoke gl_FUNC_IOCTL.
4486         Reported by Ian Beckwith <ianb@erislabs.net>.
4487
4488 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
4489             Bruno Haible  <bruno@clisp.org>
4490
4491         diffseq: Accommodate use-case with abstract arrays.
4492         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
4493         is not defined.
4494         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
4495         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
4496
4497 2010-04-18  Bruno Haible  <bruno@clisp.org>
4498
4499         * doc/posix-headers/stdbool.texi: More precise wording.
4500
4501 2010-04-17  Jim Meyering  <meyering@redhat.com>
4502
4503         maint.mk: use gnu-style indentation in an embedded perl script
4504         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
4505         Rename variable: s/two/last_two_bytes/
4506
4507 2010-04-16  Eric Blake  <eblake@redhat.com>
4508
4509         test-stdbool: skip test that fails with Solaris CC
4510         * tests/test-stdbool.c (f): Skip test that causes compilation
4511         error under buggy C++ compiler.
4512         * lib/stdbool.in.h: Document the limitation.
4513         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
4514
4515         setenv: allow compilation with C++
4516         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
4517         register keyword.
4518
4519         stdint: allow test to pass with C++
4520         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
4521
4522         getopt: allow compilation with C++
4523         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
4524         struct.
4525         * lib/getopt.c (_getopt_internal_r): Use correct type.
4526         Reported by Dagobert Michelson, via Joel E. Denny.
4527
4528 2010-04-16  Bruno Haible  <bruno@clisp.org>
4529
4530         Override netdb.h always.
4531         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
4532         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
4533         Reported by Ludovic Courtès <ludo@gnu.org>.
4534
4535 2010-04-15  Bruno Haible  <bruno@clisp.org>
4536
4537         openpty: Fix mistake from 2010-03-21.
4538         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
4539         Reported by Simon Josefsson.
4540
4541 2010-04-15  Eric Blake  <eblake@redhat.com>
4542
4543         test-forkpty: fix expected signature
4544         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
4545         Reported by Simon Josefsson.
4546
4547 2010-04-15  Jim Meyering  <meyering@redhat.com>
4548
4549         maint.mk: texinfo_suffix_re_: correct the default regexp
4550         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
4551
4552         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
4553         make it configurable via texinfo_suffix_re_.
4554
4555 2010-04-14  Eric Blake  <eblake@redhat.com>
4556
4557         strtok_r: relax license to LGPLv2+
4558         * modules/strtok_r (License): Relax license.
4559         Reported by Matthias Bolte.
4560
4561 2010-04-14  Simon Josefsson  <simon@josefsson.org>
4562
4563         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
4564         version 1.4.4 by default instead of requiring the libgcrypt
4565         version used during build.  This makes it possible to use the
4566         application with older but still binary compatible libgcrypt
4567         versions.
4568
4569 2010-04-13  Eric Blake  <eblake@redhat.com>
4570
4571         getopt-gnu: match recent glibc fixes and posix ruling
4572         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
4573         '+' handling, when requesting extensions.
4574         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
4575         'W;' handling.
4576         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
4577         * doc/posix-functions/getopt.texi (getopt): Document this.
4578         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
4579         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4580         Likewise.
4581
4582         getopt: merge bug fixes from glibc
4583         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
4584         diagnostics.  Honor '+:' correctly.  Reject ';'.
4585
4586         getopt-posix: detect MacOS bug
4587         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
4588         optind when missing a required argument.
4589         * doc/posix-functions/getopt.texi (getopt): Document the bug.
4590         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
4591         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4592         Likewise.
4593
4594         getopt-posix: avoid spurious failure on Solaris
4595         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
4596         an indicator that setting optind=1 is sufficient for reset.
4597
4598         getopt-posix: avoid spurious failure on FreeBSD
4599         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
4600         in POSIX mode, since the m4 test uses it.
4601
4602         gnulib-tool: silence warning on BSD sh
4603         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
4604
4605 2010-04-13  Jim Meyering  <meyering@redhat.com>
4606
4607         doc: users.txt: GNU patch now uses gnulib
4608         * users.txt: Add patch.
4609
4610 2010-04-12  Jim Meyering  <meyering@redhat.com>
4611
4612         maint.mk: generate more concise timing data for syntax-check rules
4613         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
4614         " done" from each line that reports a syntax-check test duration.
4615
4616 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
4617
4618         git-version-gen: use "git update-index..." rather than "git status"
4619         * build-aux/git-version-gen: Use git update-index --refresh, not
4620         "git status".  With some versions of git, "git status" would fail
4621         to update the index and result in an unwarranted "-dirty" suffix.
4622
4623 2010-04-11  Jim Meyering  <meyering@redhat.com>
4624
4625         openat: correct formatting (no semantic change)
4626         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
4627         Suggested by Bruno Haible.
4628
4629 2010-04-11  Bruno Haible  <bruno@clisp.org>
4630
4631         Stricter declaration checking in testdirs.
4632         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
4633         If for_tests is true, augment AM_CPPFLAGS to define
4634         GNULIB_STRICT_CHECKING.
4635         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
4636         GNULIB_STRICT_CHECKING is defined, verify that the function is
4637         declared.
4638
4639 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
4640             Bruno Haible  <bruno@clisp.org>
4641
4642         libunistring: Improve configure output.
4643         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
4644         Don't say "consider installing GNU libunistring" when checking again
4645         with libiconv.
4646
4647 2010-04-11  Bruno Haible  <bruno@clisp.org>
4648
4649         libunistring: Correct value of $LTLIBUNISTRING.
4650         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
4651         correct the value of $LTLIBUNISTRING.
4652
4653 2010-04-11  Bruno Haible  <bruno@clisp.org>
4654
4655         havelib: Add static libraries to LIBS in the right order.
4656         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
4657         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
4658
4659 2010-04-11  Bruno Haible  <bruno@clisp.org>
4660
4661         libunistring: Detect libunistring also when it depends on libiconv.
4662         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
4663         the second AC_LIB_HAVE_LINKFLAGS invocation.
4664
4665 2010-04-11  James Youngman  <jay@gnu.org>
4666
4667         close-stream: declare local scalars to be "const"
4668         * lib/close-stream.c (close_stream): Make boolean variables const
4669         to document the fact that we set but do not change them.
4670
4671 2010-04-11  Bruno Haible  <bruno@clisp.org>
4672
4673         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
4674
4675 2010-04-11  Jim Meyering  <meyering@redhat.com>
4676
4677         maint.mk: don't include dist-check.mk
4678         * top/maint.mk: Remove bogus include directive.
4679
4680         maint.mk: improve empty-line-at-EOF check
4681         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
4682         solution, rather than tail+Perl-based one.  The latter would read
4683         a few kilobytes from the end of each file, and did not handle empty
4684         files properly.
4685
4686         maint.mk: print the elapsed time for each syntax-check rule
4687         * top/maint.mk (sc_m_rules_): Save start time in a file.
4688         (sc_z_rules_): New rules: remove temp file and print elapsed time.
4689         (local-check): Interpose the .z rules
4690
4691 2010-04-11  Jim Meyering  <meyering@redhat.com>
4692
4693         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
4694         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
4695         empty file with one that ends in an empty line.
4696
4697 2010-04-10  Bruno Haible  <bruno@clisp.org>
4698
4699         mkdir: Make it work on mingw64.
4700         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
4701         * lib/mkdir.c: Update comment.
4702         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
4703
4704 2010-04-10  Bruno Haible  <bruno@clisp.org>
4705
4706         Don't override improved macro from newer autoconf.
4707         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
4708         autoconf >= 2.62.
4709         Reported by Joel E. Denny <jdenny@clemson.edu>.
4710
4711 2010-04-10  Jim Meyering  <meyering@redhat.com>
4712
4713         maint.mk: new syntax-check rule: prohibit empty lines at end of file
4714         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
4715
4716         maint.mk: correct a diagnostic
4717         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
4718         in diagnostic; now use $prohibit.
4719
4720 2010-04-10  Bruno Haible  <address@hidden>
4721
4722         fchownat: Fix a C++ test error on Solaris 8.
4723         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
4724         the function does not exist.
4725
4726 2010-04-10  Bruno Haible  <bruno@clisp.org>
4727
4728         vasnprintf: Add more tests.
4729         * tests/test-vasnprintf-posix.c: Include <errno.h>.
4730         (test_function): Test converting an invalid wide string.
4731
4732         vasnprintf: Correct handling of unconvertible wide string arguments.
4733         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
4734         VASNPRINTF.
4735         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
4736         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
4737         smaller than the expected maximum need for the directive. Set errno to
4738         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
4739         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
4740         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
4741         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
4742         * modules/vasnprintf (Files): Add m4/printf.m4.
4743         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4744
4745 2010-04-10  Bruno Haible  <bruno@clisp.org>
4746
4747         vasnprintf: Fix crash in %ls directive.
4748         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
4749         string is passed as argument to %ls, with no precision and no width.
4750         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4751
4752 2010-04-10  Bruno Haible  <bruno@clisp.org>
4753
4754         vasnprintf: Fix multiple test failures on mingw.
4755         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
4756         _snprintf, or snwprintf, not _snwprintf.
4757
4758 2010-04-10  Bruno Haible  <bruno@clisp.org>
4759
4760         write: Fix a C++ test error on mingw.
4761         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
4762
4763 2010-04-10  Bruno Haible  <bruno@clisp.org>
4764
4765         vasnprintf test: Reduce code duplication.
4766         * tests/test-vasnprintf.c (test_function): New function, extracted from
4767         test_vasnprintf.
4768         (test_vasnprintf, test_asnprintf): Invoke it.
4769
4770 2010-04-10  Bruno Haible  <bruno@clisp.org>
4771
4772         strnlen: Fix warning in C++ mode on MacOS X.
4773         * lib/string.in.h (strnlen): Use the modern idiom.
4774         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
4775         defining strnlen as a macro already in <config.h>.
4776         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
4777         REPLACE_STRNLEN.
4778         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
4779         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4780
4781 2010-04-08  James Youngman  <jay@gnu.org>
4782
4783         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
4784         the example.
4785
4786 2010-04-09  Jim Meyering  <meyering@redhat.com>
4787
4788         maint.mk: print better diagnostic when there is no $(_hv_file)
4789         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
4790         announce that when $(_hv_file) (aka help-version) does not exist.
4791
4792         init.sh: run tr in the "C" locale to avoid multibyte interpretation
4793         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
4794         not try to interpret its random input bytes.  Jarno Rajahalme reported
4795         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
4796         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
4797         (mktempd_): Likewise, just in case.
4798
4799         ftruncate: add two years to projected module removal date: 2012
4800         * m4/ftruncate.m4: Adjust comments.
4801
4802         ftruncate: mark module as obsolete; even MinGW provides it, now
4803         * modules/ftruncate (Status): Obsolete.
4804         (Notice): Say that.
4805         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
4806         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
4807
4808 2010-04-08  Bruno Haible  <bruno@clisp.org>
4809
4810         Fix side effects from tests-related modules.
4811         * modules/dprintf-posix (Comment): New section.
4812         * modules/fprintf-posix (Comment): Likewise.
4813         * modules/obstack-printf-posix (Comment): Likewise.
4814         * modules/printf-posix (Comment): Likewise.
4815         * modules/snprintf-posix (Comment): Likewise.
4816         * modules/sprintf-posix (Comment): Likewise.
4817         * modules/vasnprintf-posix (Comment): Likewise.
4818         * modules/vasprintf-posix (Comment): Likewise.
4819         * modules/vdprintf-posix (Comment): Likewise.
4820         * modules/vfprintf-posix (Comment): Likewise.
4821         * modules/vprintf-posix (Comment): Likewise.
4822         * modules/vsnprintf-posix (Comment): Likewise.
4823         * modules/vsprintf-posix (Comment): Likewise.
4824         * modules/xprintf-posix (Comment): Likewise.
4825         * modules/xvasprintf-posix (Comment): Likewise.
4826         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
4827         * modules/floorf-tests (Depends-on): Likewise.
4828         * modules/round-tests (Depends-on): Likewise.
4829         * modules/roundf-tests (Depends-on): Likewise.
4830         * modules/trunc-tests (Depends-on): Likewise.
4831         * modules/truncf-tests (Depends-on): Likewise.
4832         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
4833         'fprintf-posix' module is not present.
4834         * tests/test-floorf2.c (check): Likewise.
4835         * tests/test-trunc2.c (check): Likewise.
4836         * tests/test-truncf2.c (check): Likewise.
4837         * tests/test-round2.c (equal): Likewise.
4838         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
4839
4840 2010-04-07  Karl Berry  <karl@gnu.org>
4841
4842         * config/srclist.txt,
4843         * config/srclistvars.sh,
4844         * config/srclist-update: doc fixes.
4845
4846 2010-04-07  Jim Meyering  <meyering@redhat.com>
4847
4848         maint.mk: add a PATH crosschecking syntax-check rule
4849         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
4850         Useful if you use a test like the one in help-version (coreutils,
4851         diffutils, grep, gzip) that ensures $(VERSION) matches what is
4852         printed by prog --version.
4853
4854 2010-04-06  Bruno Haible  <bruno@clisp.org>
4855
4856         Fix link error on mingw.
4857         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
4858         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
4859
4860 2010-04-06  Bruno Haible  <bruno@clisp.org>
4861
4862         Assume rmdir exists.
4863         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
4864
4865 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
4866
4867         doc: update users.txt
4868         * users.txt: Add gcal.
4869
4870 2010-04-06  Jim Meyering  <meyering@redhat.com>
4871
4872         init.sh: simply unset TMPDIR rather than risking env -i
4873         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
4874         although it probably works fine on all Unix-based systems, some
4875         systems (Cygwin?) cannot tolerate a totally cleared environment.
4876         Suggestion from Eric Blake.
4877
4878 2010-04-06  Jim Meyering  <meyering@redhat.com>
4879
4880         init.sh: portability fix: use env's POSIX-specified -i option not -u
4881         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
4882         than unportable env -u.  Solaris 5.11's env lacks support for -u.
4883
4884 2010-04-05  Bruno Haible  <bruno@clisp.org>
4885
4886         btowc: Work around Cygwin 1.7.2 bug.
4887         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
4888         does not map NUL to 0.
4889         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
4890
4891 2010-04-05  Bruno Haible  <bruno@clisp.org>
4892
4893         Make the multithread modules work on Cygwin 1.7.2.
4894         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
4895         imported symbols can be declared weak, so that it returns "no" on
4896         Cygwin 1.7.2.
4897
4898 2010-04-05  Bruno Haible  <bruno@clisp.org>
4899
4900         Use the module 'strncat'.
4901         * modules/unistr/u8-strncat (Depends-on): Add strncat.
4902
4903         Tests for module 'strncat'.
4904         * modules/strncat-tests: New file.
4905         * tests/test-strncat.c: New file.
4906
4907         New module 'strncat'.
4908         * lib/string.in.h (strncat): New declaration.
4909         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
4910         * m4/strncat.m4: New file, based on m4/memchr.m4.
4911         * modules/strncat: New file.
4912         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
4913         is declared.
4914         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
4915         REPLACE_STRNCAT.
4916         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
4917         REPLACE_STRNCAT.
4918         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
4919         module.
4920         * tests/test-string-c++.cc: Check signature of strncat.
4921
4922 2010-04-05  Jim Meyering  <meyering@redhat.com>
4923
4924         xstrtoumax-tests: convert to use init.sh
4925         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
4926         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4927         Use Exit, not exit.
4928         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4929
4930         xstrtoimax-tests: convert to use init.sh
4931         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
4932         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
4933         Use Exit, not exit.
4934         Remove uses of $EXEEXT and "./" to run a program in the current dir.
4935
4936 2010-04-05  Bruno Haible  <bruno@clisp.org>
4937
4938         sys_socket: Avoid #define replacements in C++ mode.
4939         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
4940         warning to the function if possible, rather than #defining the symbol
4941         to a dysfunctional alias.
4942
4943 2010-04-05  Bruno Haible  <bruno@clisp.org>
4944
4945         fseeko: Fix C++ test error on mingw.
4946         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
4947         gl_FUNC_FSEEKO.
4948         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
4949         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
4950         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
4951         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
4952
4953 2010-04-05  Bruno Haible  <bruno@clisp.org>
4954
4955         duplocale: Improve test output.
4956         * tests/test-duplocale.c (main): Print reason for skipped test.
4957
4958 2010-04-05  Bruno Haible  <bruno@clisp.org>
4959
4960         Assume rmdir exists.
4961         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
4962         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
4963
4964 2010-04-05  Bruno Haible  <bruno@clisp.org>
4965
4966         Fix link error on Solaris 8 with cc.
4967         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
4968
4969 2010-04-05  Bruno Haible  <bruno@clisp.org>
4970
4971         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
4972         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
4973
4974 2010-04-05  Bruno Haible  <bruno@clisp.org>
4975
4976         vasprintf: Update documentation.
4977         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
4978
4979 2010-04-05  Bruno Haible  <bruno@clisp.org>
4980
4981         ptsname: Improve test.
4982         * tests/test-ptsname.c (main): Also try the various master names of BSD
4983         systems.
4984
4985 2010-04-05  Bruno Haible  <bruno@clisp.org>
4986
4987         memchr: Avoid a possible C++ test error.
4988         * lib/string.in.h (memchr): Provide declaration if function is missing.
4989         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
4990         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
4991         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
4992         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
4993
4994 2010-04-05  Bruno Haible  <bruno@clisp.org>
4995
4996         strtok_r: Improve idiom.
4997         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
4998         AC_LIBOBJ is used.
4999
5000 2010-04-05  Bruno Haible  <bruno@clisp.org>
5001
5002         strdup: Improve idiom.
5003         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
5004         AC_LIBOBJ is used.
5005         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
5006         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
5007         when AC_LIBOBJ is used.
5008
5009 2010-04-05  Bruno Haible  <bruno@clisp.org>
5010
5011         mbsinit, mbrtowc, wcrtomb: Improve idioms.
5012         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
5013         don't set REPLACE_MBSINIT to 1.
5014         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
5015         don't set REPLACE_MBRTOWC to 1.
5016         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
5017         exist, don't set REPLACE_MBSRTOWCS to 1.
5018         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
5019         exist, don't set REPLACE_MBSNRTOWCS to 1.
5020         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
5021         don't set REPLACE_WCRTOMB to 1.
5022         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
5023         exist, don't set REPLACE_WCSRTOMBS to 1.
5024         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
5025         exist, don't set REPLACE_WCSNRTOMBS to 1.
5026
5027 2010-04-05  Bruno Haible  <bruno@clisp.org>
5028
5029         ldexpl: Improve idiom.
5030         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
5031         make sure to set HAVE_DECL_LDEXPL to 0.
5032
5033 2010-04-05  Jim Meyering  <meyering@redhat.com>
5034
5035         xstrtol-tests: convert to use init.sh
5036         * modules/xstrtol-tests (Files): Add tests/init.sh.
5037         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
5038         Use Exit, not exit.
5039         Remove uses of $EXEEXT and "./" to run a program in the current dir.
5040
5041         atexit-tests: convert to use init.sh
5042         * modules/atexit-tests (Files): Add tests/init.sh.
5043         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
5044         Use Exit, not exit.
5045         Remove uses of $EXEEXT and "./" to run a program in the current dir.
5046
5047         init.sh: fix typo
5048         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
5049
5050         init.sh: make it easier for a test script to write to the tty, ...
5051         when using automake's parallel-tests mode.
5052         * tests/init.sh (stderr_fileno_): Define overridable variable.
5053         (warn_): New function, to use it.
5054         (fail_, skip_, framework_failure_): Use warn_.
5055
5056 2010-04-04  Bruno Haible  <bruno@clisp.org>
5057
5058         btowc: Avoid warning.
5059         * lib/btowc.c: Include <stdlib.h>.
5060         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
5061
5062 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
5063             Bruno Haible  <bruno@clisp.org>
5064
5065         wchar: Port to NetBSD 1.5.
5066         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
5067         * lib/wctype.in.h (WEOF): Likewise.
5068
5069 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
5070             Bruno Haible  <bruno@clisp.org>
5071
5072         Port extended stdio to NetBSD 1.5.
5073         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
5074         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
5075         older.
5076
5077 2010-04-04  Bruno Haible  <bruno@clisp.org>
5078
5079         string: Remove unused substitution.
5080         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
5081         HAVE_DECL_STRERROR.
5082         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
5083
5084 2010-04-04  Bruno Haible  <bruno@clisp.org>
5085
5086         strtod: Avoid a possible C++ test error.
5087         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
5088         set REPLACE_STRTOD.
5089
5090 2010-04-04  Bruno Haible  <bruno@clisp.org>
5091
5092         strerror: Update documentation.
5093         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
5094
5095 2010-04-04  Bruno Haible  <bruno@clisp.org>
5096
5097         stdio: Fix some C++ test errors on Solaris 8 with GCC.
5098         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
5099         _GL_CXXALIAS_SYS_CAST.
5100
5101 2010-04-04  Bruno Haible  <bruno@clisp.org>
5102
5103         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
5104         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
5105         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
5106         REPLACE_FREXPL to 1.
5107         * doc/posix-functions/frexpl.texi: Update documentation.
5108
5109 2010-04-04  Bruno Haible  <bruno@clisp.org>
5110
5111         math: Fix some C++ test errors on Solaris 8 and Cygwin.
5112         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
5113
5114 2010-04-04  Bruno Haible  <bruno@clisp.org>
5115
5116         Implement nanosleep for native Windows.
5117         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
5118
5119 2010-04-04  Bruno Haible  <bruno@clisp.org>
5120
5121         math: Fix some C++ test errors on Solaris 8.
5122         * lib/math.in.h (truncf, trunc): Use simpler idiom.
5123
5124 2010-04-04  Bruno Haible  <bruno@clisp.org>
5125
5126         math: Fix some C++ test errors on Cygwin.
5127         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
5128         truncl): Provide declaration if the system does not have it.
5129         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
5130         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
5131         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
5132         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
5133         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
5134         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
5135         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
5136         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
5137         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
5138         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
5139         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
5140         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
5141         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
5142         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
5143         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
5144         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
5145         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
5146         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
5147         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
5148         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
5149         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
5150         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
5151
5152 2010-04-04  Bruno Haible  <bruno@clisp.org>
5153
5154         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
5155         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
5156         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
5157         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
5158         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
5159         * m4/isinf.m4 (gl_ISINF): Likewise.
5160         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
5161
5162 2010-04-04  Bruno Haible  <bruno@clisp.org>
5163
5164         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
5165         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
5166
5167 2010-04-04  Bruno Haible  <bruno@clisp.org>
5168
5169         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
5170         * modules/tmpfile (configure.ac): Update.
5171
5172         tmpfile: Fix C++ test error on mingw.
5173         * lib/stdio.in.h (tmpfile): New declaration.
5174         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
5175         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
5176         * modules/tmpfile (Depends-on): Add stdio.
5177         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
5178         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
5179         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
5180         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
5181         REPLACE_TMPFILE.
5182         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
5183
5184 2010-04-04  Bruno Haible  <bruno@clisp.org>
5185
5186         ioctl: Fix C++ test error on mingw.
5187         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
5188         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
5189         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
5190
5191 2010-04-03  Bruno Haible  <bruno@clisp.org>
5192
5193         wcwidth: Fix C++ test error on mingw.
5194         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
5195         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
5196         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
5197
5198 2010-04-03  Bruno Haible  <bruno@clisp.org>
5199
5200         nanosleep: Fix C++ test error on mingw.
5201         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
5202         * lib/time.in.h (nanosleep): Use modern idiom.
5203         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
5204         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
5205         REPLACE_NANOSLEEP to 1.
5206         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
5207         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
5208
5209 2010-04-03  Bruno Haible  <bruno@clisp.org>
5210
5211         strptime: Fix C++ test error on mingw.
5212         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
5213         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
5214         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
5215         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
5216         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
5217         not REPLACE_STRPTIME.
5218         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
5219         REPLACE_STRPTIME.
5220
5221 2010-04-03  Bruno Haible  <bruno@clisp.org>
5222
5223         timegm: Fix C++ test error on mingw.
5224         * lib/time.in.h (timegm): Use modern idiom.
5225         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
5226         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
5227         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
5228         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
5229
5230 2010-04-03  Bruno Haible  <bruno@clisp.org>
5231
5232         timegm: Assume declaration if function exists.
5233         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
5234         if it exists. Don't clobber ac_cv_func_timegm.
5235
5236 2010-04-03  Bruno Haible  <bruno@clisp.org>
5237
5238         time_r: Fix C++ test error on mingw.
5239         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
5240         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
5241         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
5242         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
5243         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
5244
5245 2010-04-03  Bruno Haible  <bruno@clisp.org>
5246
5247         time_r: Minor updates.
5248         * modules/time_r (Description): Mention the provided functions.
5249         * lib/time_r.c: Don't include <string.h>.
5250         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
5251         * doc/posix-functions/localtime_r.texi: Likewise.
5252
5253 2010-04-03  Bruno Haible  <bruno@clisp.org>
5254
5255         time: Fix regression introduced on 2010-03-08.
5256         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
5257         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
5258
5259 2010-04-03  Jim Meyering  <meyering@redhat.com>
5260
5261         maint.mk: don't silently disable project-specific syntax-check rules
5262         * top/maint.mk (_prohibit_regexp): Define, to help people realize
5263         that they need to convert their project-specific syntax-check rules
5264         to use the new _sc_search_regexp.
5265
5266 2010-04-03  Bruno Haible  <bruno@clisp.org>
5267
5268         fchdir: Fix regression introduced on 2010-03-08.
5269         * lib/unistd.in.h (fchdir): Fix declaration.
5270         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
5271         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
5272         REPLACE_FCHDIR.
5273         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
5274         REPLACE_FCHDIR.
5275
5276 2010-04-03  Bruno Haible  <bruno@clisp.org>
5277
5278         getpagesize: Fix C++ test error on mingw.
5279         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
5280         system does not declare the function.
5281         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
5282         declared.
5283         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
5284         HAVE_DECL_GETPAGESIZE.
5285         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
5286
5287 2010-04-03  Bruno Haible  <bruno@clisp.org>
5288
5289         stdio: Make C++ tests work on mingw.
5290         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
5291         does not declare the function.
5292
5293 2010-04-03  Bruno Haible  <bruno@clisp.org>
5294
5295         ftello: Fix C++ test error on mingw.
5296         * lib/stdio.in.h (ftello): Use modern idiom.
5297         * lib/ftello.c (ftello): Renamed from rpl_ftello.
5298         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
5299         is missing and that it needs to be replaced.
5300         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
5301         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
5302         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
5303
5304 2010-04-03  Bruno Haible  <bruno@clisp.org>
5305
5306         fseeko: Fix C++ test error on mingw.
5307         * lib/stdio.in.h (fseeko): Use modern idiom.
5308         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
5309         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
5310         is missing and that it needs to be replaced.
5311         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
5312         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
5313         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
5314
5315 2010-04-03  Bruno Haible  <bruno@clisp.org>
5316
5317         mkstemp: Fix C++ test error on mingw.
5318         * lib/stdlib.in.h (mkstemp): Use modern idiom.
5319         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
5320         function is missing and that it needs to be replaced.
5321         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
5322         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
5323
5324 2010-04-03  Bruno Haible  <bruno@clisp.org>
5325
5326         stpncpy: Fix C++ test error on mingw.
5327         * lib/string.in.h (stpncpy): Use modern idiom.
5328         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
5329         function is missing and that it needs to be replaced.
5330         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
5331         REPLACE_STPNCPY.
5332         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
5333
5334 2010-04-03  Bruno Haible  <bruno@clisp.org>
5335
5336         sys_stat: Fix C++ test error on mingw.
5337         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
5338         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
5339
5340 2010-04-03  Bruno Haible  <bruno@clisp.org>
5341
5342         pty: Update doc.
5343         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
5344
5345 2010-04-03  Bruno Haible  <bruno@clisp.org>
5346
5347         unistd: Fix C++ test error on mingw.
5348         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
5349
5350 2010-04-03  Bruno Haible  <bruno@clisp.org>
5351
5352         Update doc regarding mingw.
5353         * doc/glibc-functions/openpty.texi: Update regarding mingw.
5354         * doc/glibc-functions/login_tty.texi: Likewise.
5355         * doc/glibc-functions/forkpty.texi: Likewise.
5356
5357 2010-04-03  Bruno Haible  <bruno@clisp.org>
5358
5359         stdlib: Avoid compilation failure of c-strtold on mingw.
5360         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
5361
5362 2010-04-03  Bruno Haible  <bruno@clisp.org>
5363
5364         locale: Make C++ tests work on Cygwin and mingw.
5365         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
5366         cannot provide the function.
5367         Reported by Simon Josefsson.
5368
5369 2010-04-03  Bruno Haible  <bruno@clisp.org>
5370
5371         localename: Port to MacOS X 10.6.
5372         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
5373         memory layout of the locales in MacOS X 10.6 as well.
5374         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
5375
5376 2010-04-02  Bruno Haible  <bruno@clisp.org>
5377
5378         gnulib-tool: Ensure that long-running tests are executed last.
5379         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
5380         running tests after the one for the other tests.
5381
5382 2010-04-02  Bruno Haible  <bruno@clisp.org>
5383
5384         gnulib-tool: Ensure the tests in the main directory are executed first.
5385         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
5386         start with the current directory.
5387
5388 2010-04-02  Bruno Haible  <bruno@clisp.org>
5389
5390         Tests for module 'havelib', moved here from GNU gettext.
5391         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
5392         modifications.
5393         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
5394         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
5395         with modifications.
5396         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
5397         modifications.
5398         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
5399         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
5400         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
5401         with modifications.
5402         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
5403         with modifications.
5404         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
5405         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
5406         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
5407         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
5408         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
5409         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
5410         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
5411         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
5412         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
5413         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
5414         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
5415         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
5416         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
5417         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
5418         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
5419         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
5420         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
5421         with modifications.
5422         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
5423         with modifications.
5424         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
5425         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
5426         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
5427         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
5428         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
5429         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
5430         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
5431         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
5432         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
5433         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
5434         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
5435         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
5436         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
5437         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
5438         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
5439         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
5440         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
5441         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
5442         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
5443         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
5444         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
5445         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
5446         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
5447         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
5448         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
5449         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
5450         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
5451         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
5452         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
5453         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
5454         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
5455         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
5456         * tests/havelib/rpathx/rpathx.c: New file, from
5457         gettext/autoconf-lib-link.
5458         * tests/havelib/rpathx/Makefile.am: New file, from
5459         gettext/autoconf-lib-link.
5460         * tests/havelib/rpathx/configure.ac: New file, from
5461         gettext/autoconf-lib-link with modifications.
5462         * tests/havelib/rpathy/rpathy.c: New file, from
5463         gettext/autoconf-lib-link.
5464         * tests/havelib/rpathy/Makefile.am: New file, from
5465         gettext/autoconf-lib-link.
5466         * tests/havelib/rpathy/configure.ac: New file, from
5467         gettext/autoconf-lib-link with modifications.
5468         * tests/havelib/rpathz/rpathz.c: New file, from
5469         gettext/autoconf-lib-link.
5470         * tests/havelib/rpathz/Makefile.am: New file, from
5471         gettext/autoconf-lib-link.
5472         * tests/havelib/rpathz/configure.ac: New file, from
5473         gettext/autoconf-lib-link with modifications.
5474         * tests/havelib/rpathlx/usex.c: New file, from
5475         gettext/autoconf-lib-link.
5476         * tests/havelib/rpathlx/Makefile.am: New file, from
5477         gettext/autoconf-lib-link.
5478         * tests/havelib/rpathlx/configure.ac: New file, from
5479         gettext/autoconf-lib-link with modifications.
5480         * tests/havelib/rpathly/usey.c: New file, from
5481         gettext/autoconf-lib-link.
5482         * tests/havelib/rpathly/Makefile.am: New file, from
5483         gettext/autoconf-lib-link.
5484         * tests/havelib/rpathly/configure.ac: New file, from
5485         gettext/autoconf-lib-link with modifications.
5486         * tests/havelib/rpathlz/usez.c: New file, from
5487         gettext/autoconf-lib-link.
5488         * tests/havelib/rpathlz/Makefile.am: New file, from
5489         gettext/autoconf-lib-link.
5490         * tests/havelib/rpathlz/configure.ac: New file, from
5491         gettext/autoconf-lib-link with modifications.
5492         * tests/havelib/rpathlyx/usey.c: New file, from
5493         gettext/autoconf-lib-link.
5494         * tests/havelib/rpathlyx/Makefile.am: New file, from
5495         gettext/autoconf-lib-link.
5496         * tests/havelib/rpathlyx/configure.ac: New file, from
5497         gettext/autoconf-lib-link with modifications.
5498         * tests/havelib/rpathlzyx/usez.c: New file, from
5499         gettext/autoconf-lib-link.
5500         * tests/havelib/rpathlzyx/Makefile.am: New file, from
5501         gettext/autoconf-lib-link.
5502         * tests/havelib/rpathlzyx/configure.ac: New file, from
5503         gettext/autoconf-lib-link with modifications.
5504         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
5505         with modifications.
5506
5507 2010-04-02  Bruno Haible  <bruno@clisp.org>
5508
5509         gnulib-tool: Create distributed built sources also for the tests.
5510         * gnulib-tool (func_create_testdir): Also generate distributed built
5511         sources in the tests directory.
5512
5513 2010-04-02  Bruno Haible  <bruno@clisp.org>
5514
5515         gnulib-tool: Obey user's environment variables.
5516         * gnulib-tool (func_create_testdir): When creating built sources,
5517         respect the environment variables for autoconf, automake, etc. given by
5518         the user.
5519
5520 2010-04-02  Bruno Haible  <bruno@clisp.org>
5521
5522         gnulib-tool: Provide the value of --m4-base to modules.
5523         * gnulib-tool (func_import, func_create_testdir): Emit a definition
5524         of gl_m4_base.
5525
5526 2010-04-02  Eric Blake  <eblake@redhat.com>
5527
5528         maint.mk: fix some fallout
5529         * NEWS: Document the incompatible change, and its effect on cfg.mk.
5530         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
5531
5532 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
5533
5534         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
5535         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
5536         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
5537         (sc_cast_of_x_alloc_return_value): Likewise.
5538         (sc_cast_of_alloca_return_value): Likewise.
5539         (sc_space_tab): Likewise.
5540         (sc_prohibit_atoi_atof): Likewise.
5541         (sc_prohibit_magic_number_exit): Likewise.
5542         (sc_error_exit_success): Likewise.
5543         (sc_file_system): Likewise.
5544         (sc_prohibit_have_config_h): Likewise.
5545         (sc_require_config_h): Likewise.
5546         (sc_prohibit_HAVE_MBRTOWC): Likewise.
5547         (sc_obsolete_symbols): Likewise.
5548         (sc_changelog): Likewise.
5549         (sc_program_name): Likewise.
5550         (sc_the_the): Likewise.
5551         (sc_trailing_blank): Likewise.
5552         (sc_two_space_separator_in_usage): Likewise.
5553         (sc_useless_cpp_parens): Likewise.
5554         (sc_GPL_version): Likewise.
5555         (sc_GFDL_version): Likewise.
5556         (sc_texinfo_acronym): Likewise.
5557         (sc_prohibit_cvs_keyword): Likewise.
5558         (sc_prohibit_stat_st_blocks): Likewise.
5559         (sc_prohibit_S_IS_definition): Likewise.
5560         (sc_redundant_const): Likewise.
5561         (sc_makefile_TAB_only_indentation): Likewise.
5562         (sc_m4_quote_check): Likewise.
5563         (sc_makefile_path_separator_check): Likewise.
5564         (sc_copyright_check): Likewise.
5565         (sc_Wundef_boolean): Likewise.
5566         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
5567
5568         maint.mk: match 0 or more whitespace-before-function-call '('
5569         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
5570         that have zero or two-and-more spaces between the function name
5571         and the open parenthesis.
5572         (sc_error_message_warn_fatal): Likewise.
5573         (sc_error_message_uppercase): Likewise.
5574         (sc_error_message_period): Likewise.
5575
5576 2010-03-31  Eric Blake  <eblake@redhat.com>
5577
5578         maint.mk: check for [ as well as test
5579         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
5580         Based on a libvirt report by Matthias Bolte.
5581
5582         gnumakefile: don't squelch _version output
5583         * top/GNUmakefile (_version): Create one-shot dependency rather
5584         than using $(shell) when version must be regenerated.
5585         (_autoreconf): Run verbosely, by default.
5586
5587         sys_time: avoid compiler warnings
5588         * lib/sys_time.in.h (includes): Ensure gcc pragma is
5589         unconditional, fixing regression from 2010-03-29.
5590         Reported by Simon Josefsson.
5591
5592 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
5593
5594         maint.mk: s/_header_without_use/_sc_header_without_use/
5595         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
5596         (sc_prohibit_assert_without_use): Use the new name.
5597         (sc_prohibit_close_stream_without_use): Likewise.
5598         (sc_prohibit_getopt_without_use): Likewise.
5599         (sc_prohibit_quotearg_without_use): Likewise.
5600         (sc_prohibit_quote_without_use): Likewise.
5601         (sc_prohibit_long_options_without_use): Likewise.
5602         (sc_prohibit_inttostr_without_use): Likewise.
5603         (sc_prohibit_ignore_value_without_use): Likewise.
5604         (sc_prohibit_error_without_use): Likewise.
5605         (sc_prohibit_xalloc_without_use): Likewise.
5606         (sc_prohibit_hash_without_use): Likewise.
5607         (sc_prohibit_hash_pjw_without_use): Likewise.
5608         (sc_prohibit_safe_read_without_use): Likewise.
5609         (sc_prohibit_argmatch_without_use): Likewise.
5610         (sc_prohibit_canonicalize_without_use): Likewise.
5611         (sc_prohibit_root_dev_ino_without_use): Likewise.
5612         (sc_prohibit_openat_without_use): Likewise.
5613         (sc_prohibit_c_ctype_without_use): Likewise.
5614         (sc_prohibit_signal_without_use): Likewise.
5615         (sc_prohibit_intprops_without_use): Likewise.
5616
5617 2010-03-30  Eric Blake  <eblake@redhat.com>
5618
5619         maint: improve module indicators
5620         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
5621         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
5622         columns, and avoid extra macro expansion.
5623
5624         fdopendir: work around FreeBSD bug
5625         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
5626         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
5627         * modules/dirent (Makefile.am): Substitute it.
5628         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
5629         declaration.
5630         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
5631         fix.
5632         Reported by Christian Weisgerber <naddy@mips.inka.de>.
5633
5634 2010-03-29  Bruno Haible  <bruno@clisp.org>
5635
5636         Emit #pragma system_header after the inclusion guard, not before.
5637         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
5638         guard that spans the entire file, not before. This enables an
5639         optimization in GCC's preprocessor.
5640         * lib/ctype.in.h: Likewise.
5641         * lib/dirent.in.h: Likewise.
5642         * lib/errno.in.h: Likewise.
5643         * lib/float.in.h: Likewise.
5644         * lib/getopt.in.h: Likewise.
5645         * lib/iconv.in.h: Likewise.
5646         * lib/langinfo.in.h: Likewise.
5647         * lib/locale.in.h: Likewise.
5648         * lib/math.in.h: Likewise.
5649         * lib/netdb.in.h: Likewise.
5650         * lib/netinet_in.in.h: Likewise.
5651         * lib/pty.in.h: Likewise.
5652         * lib/sched.in.h: Likewise.
5653         * lib/se-selinux.in.h: Likewise.
5654         * lib/search.in.h: Likewise.
5655         * lib/spawn.in.h: Likewise.
5656         * lib/stdarg.in.h: Likewise.
5657         * lib/stdint.in.h: Likewise.
5658         * lib/string.in.h: Likewise.
5659         * lib/strings.in.h: Likewise.
5660         * lib/sys_file.in.h: Likewise.
5661         * lib/sys_ioctl.in.h: Likewise.
5662         * lib/sys_time.in.h: Likewise.
5663         * lib/sys_times.in.h: Likewise.
5664         * lib/sys_utsname.in.h: Likewise.
5665         * lib/sys_wait.in.h: Likewise.
5666         * lib/sysexits.in.h: Likewise.
5667         * lib/wctype.in.h: Likewise.
5668
5669 2010-03-28  James Youngman  <jay@gnu.org>
5670
5671         save-cwd: don't leak a file descriptor when the caller execs.
5672         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
5673         saved file descriptor.
5674         * modules/save-cwd (Depends-on): Depend on cloexec.
5675
5676 2010-03-29  Bruno Haible  <bruno@clisp.org>
5677
5678         Remove vestiges of fts-lgpl module.
5679         * lib/fts_.h: Assume GNULIB_FTS is 1.
5680         * lib/fts.c: Likewise.
5681         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
5682
5683 2010-03-28  Bruno Haible  <bruno@clisp.org>
5684
5685         Fix definition of tests witness macro.
5686         * gnulib-tool (func_import): Fix definition of witness macro.
5687
5688 2010-03-28  Bruno Haible  <bruno@clisp.org>
5689
5690         Fix ioctl's protoype on glibc systems.
5691         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
5692         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
5693         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
5694         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
5695         signature. If not, arrange to replace the ioctl function.
5696         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
5697         REPLACE_IOCTL.
5698         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
5699         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
5700         Reported by Ludovic Courtès <ludo@gnu.org>.
5701
5702 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
5703
5704         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
5705         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
5706         made it so grep -r --include=GLOB* ... did not work.
5707
5708 2010-03-26  Jim Meyering  <meyering@redhat.com>
5709             Eric Blake  <eblake@redhat.com>
5710
5711         maint.mk: prohibit use of test's -o and -a operators
5712         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
5713
5714 2010-03-28  Bruno Haible  <bruno@clisp.org>
5715
5716         Remove unused GNULIB_XYZ macro definitions.
5717         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
5718         invocation.
5719
5720 2010-03-28  Bruno Haible  <bruno@clisp.org>
5721
5722         Mark privileged tests modules.
5723         * modules/idpriv-drop-tests (Status): New section.
5724         * modules/idpriv-droptemp-tests (Status): New section.
5725
5726 2010-03-28  Bruno Haible  <bruno@clisp.org>
5727
5728         Split C++ tests into separate tests modules.
5729         * modules/dirent-c++-tests: New file, extracted from
5730         modules/dirent-tests.
5731         * modules/dirent-tests: Depend on it.
5732         * modules/fcntl-h-c++-tests: New file, extracted from
5733         modules/fcntl-h-tests.
5734         * modules/fcntl-h-tests: Depend on it.
5735         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
5736         * modules/glob-tests: Depend on it.
5737         * modules/iconv-h-c++-tests: New file, extracted from
5738         modules/iconv-h-tests.
5739         * modules/iconv-h-tests: Depend on it.
5740         * modules/langinfo-c++-tests: New file, extracted from
5741         modules/langinfo-tests.
5742         * modules/langinfo-tests: Depend on it.
5743         * modules/locale-c++-tests: New file, extracted from
5744         modules/locale-tests.
5745         * modules/locale-tests: Depend on it.
5746         * modules/math-c++-tests: New file, extracted from modules/math-tests.
5747         * modules/math-tests: Depend on it.
5748         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
5749         * modules/pty-tests: Depend on it.
5750         * modules/search-c++-tests: New file, extracted from
5751         modules/search-tests.
5752         * modules/search-tests: Depend on it.
5753         * modules/signal-c++-tests: New file, extracted from
5754         modules/signal-tests.
5755         * modules/signal-tests: Depend on it.
5756         * modules/spawn-c++-tests: New file, extracted from
5757         modules/spawn-tests.
5758         * modules/spawn-tests: Depend on it.
5759         * modules/stdio-c++-tests: New file, extracted from
5760         modules/stdio-tests.
5761         * modules/stdio-tests: Depend on it.
5762         * modules/stdlib-c++-tests: New file, extracted from
5763         modules/stdlib-tests.
5764         * modules/stdlib-tests: Depend on it.
5765         * modules/string-c++-tests: New file, extracted from
5766         modules/string-tests.
5767         * modules/string-tests: Depend on it.
5768         * modules/sys_ioctl-c++-tests: New file, extracted from
5769         modules/sys_ioctl-tests.
5770         * modules/sys_ioctl-tests: Depend on it.
5771         * modules/sys_select-c++-tests: New file, extracted from
5772         modules/sys_select-tests.
5773         * modules/sys_select-tests: Depend on it.
5774         * modules/sys_socket-c++-tests: New file, extracted from
5775         modules/sys_socket-tests.
5776         * modules/sys_socket-tests: Depend on it.
5777         * modules/sys_stat-c++-tests: New file, extracted from
5778         modules/sys_stat-tests.
5779         * modules/sys_stat-tests: Depend on it.
5780         * modules/sys_time-c++-tests: New file, extracted from
5781         modules/sys_time-tests.
5782         * modules/sys_time-tests: Depend on it.
5783         * modules/time-c++-tests: New file, extracted from modules/time-tests.
5784         * modules/time-tests: Depend on it.
5785         * modules/unistd-c++-tests: New file, extracted from
5786         modules/unistd-tests.
5787         * modules/unistd-tests: Depend on it.
5788         * modules/wchar-c++-tests: New file, extracted from
5789         modules/wchar-tests.
5790         * modules/wchar-tests: Depend on it.
5791         * modules/wctype-c++-tests: New file, extracted from
5792         modules/wctype-tests.
5793         * modules/wctype-tests: Depend on it.
5794         Reported by Simon Josefsson.
5795
5796 2010-03-28  Bruno Haible  <bruno@clisp.org>
5797
5798         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
5799         * gnulib-tool (func_exists_module): New function, extracted from
5800         func_verify_module.
5801         (func_verify_module): Use it.
5802         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
5803         'foo' only if 'foo' exists.
5804         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
5805         module.
5806
5807 2010-03-28  Bruno Haible  <bruno@clisp.org>
5808
5809         gnulib-tool: Add support for special categories of tests.
5810         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
5811         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
5812         (func_usage): Document them.
5813         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
5814         inc_unportable_tests, inc_all_tests): New variables.
5815         (func_acceptable): Consider these variables.
5816         (func_modules_transitive_closure): Make it work when the 'Status' field
5817         consists of multiple words.
5818         (func_import): Store and restore the values of inc_cxx_tests,
5819         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
5820         inc_all_tests in gnulib-comp.m4.
5821         (func_create_testdir): Set inc_all_tests to true.
5822         * doc/gnulib.texi (Extra tests modules): New section.
5823         Suggested by Jim Meyering.
5824
5825 2010-03-28  Bruno Haible  <bruno@clisp.org>
5826
5827         ansi-c++-opt: Allow turning off the C++ build by default.
5828         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
5829         gl_CXX_CHOICE_DEFAULT_NO is defined.
5830         Requested by Eric Blake.
5831
5832 2010-03-28  Bruno Haible  <bruno@clisp.org>
5833
5834         unistd: Avoid #define replacements in C++ mode.
5835         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
5836         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
5837         setsockopt, shutdown, select): In C++, attach a warning to the function
5838         if possible, rather than #defining the symbol to a dysfunctional alias.
5839         Reported by John W. Eaton <jwe@gnu.org>.
5840
5841 2010-03-28  Bruno Haible  <bruno@clisp.org>
5842
5843         Fix link errors on mingw.
5844         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
5845         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
5846         $(LIBSOCKET).
5847         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
5848         $(LIBSOCKET).
5849
5850 2010-03-28  Bruno Haible  <bruno@clisp.org>
5851             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5852
5853         lib-ignore: Determine different options for different compilers.
5854         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
5855         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
5856         Add comments.
5857         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
5858         * NEWS: Mention the change.
5859
5860 2010-03-27  Bruno Haible  <bruno@clisp.org>
5861
5862         Remove unused GNULIB_XYZ macro definitions.
5863         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
5864         * modules/fseek (configure.ac): Likewise.
5865         * modules/ioctl (configure.ac): Likewise.
5866         * modules/open (configure.ac): Likewise.
5867         * modules/stdlib-safer (configure.ac): Likewise.
5868
5869 2010-03-27  Bruno Haible  <bruno@clisp.org>
5870
5871         Add a remark about certain modules.
5872         * modules/malloc (Comment): New section.
5873         * modules/realloc (Comment): Likewise.
5874         * modules/sigpipe (Comment): Likewise.
5875
5876 2010-03-27  Bruno Haible  <bruno@clisp.org>
5877
5878         Resolve conflict between the two kinds of module indicators.
5879         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
5880         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
5881         * modules/canonicalize (configure.ac): Invoke
5882         gl_MODULE_INDICATOR_FOR_TESTS.
5883         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
5884         GNULIB_XYZ.
5885         * tests/test-dirent-c++.cc: Likewise.
5886         * tests/test-dirent-safer.c: Likewise.
5887         * tests/test-dup2.c: Likewise.
5888         * tests/test-fchdir.c: Likewise.
5889         * tests/test-fcntl-h-c++.cc: Likewise.
5890         * tests/test-getopt.c: Likewise.
5891         * tests/test-getopt.h: Likewise.
5892         * tests/test-langinfo-c++.cc: Likewise.
5893         * tests/test-locale-c++.cc: Likewise.
5894         * tests/test-math-c++.cc: Likewise.
5895         * tests/test-pty-c++.cc: Likewise.
5896         * tests/test-search-c++.cc: Likewise.
5897         * tests/test-signal-c++.cc: Likewise.
5898         * tests/test-spawn-c++.cc: Likewise.
5899         * tests/test-stdio-c++.cc: Likewise.
5900         * tests/test-stdlib-c++.cc: Likewise.
5901         * tests/test-string-c++.cc: Likewise.
5902         * tests/test-sys_ioctl-c++.cc: Likewise.
5903         * tests/test-sys_select-c++.cc: Likewise.
5904         * tests/test-sys_socket-c++.cc: Likewise.
5905         * tests/test-sys_stat-c++.cc: Likewise.
5906         * tests/test-sys_time-c++.cc: Likewise.
5907         * tests/test-time-c++.cc: Likewise.
5908         * tests/test-unistd-c++.cc: Likewise.
5909         * tests/test-wchar-c++.cc: Likewise.
5910         * tests/uninorm/test-u8-nfc.c: Likewise.
5911         * tests/uninorm/test-u8-nfd.c: Likewise.
5912         * tests/uninorm/test-u8-nfkc.c: Likewise.
5913         * tests/uninorm/test-u8-nfkd.c: Likewise.
5914         * tests/uninorm/test-u16-nfc.c: Likewise.
5915         * tests/uninorm/test-u16-nfd.c: Likewise.
5916         * tests/uninorm/test-u16-nfkc.c: Likewise.
5917         * tests/uninorm/test-u16-nfkd.c: Likewise.
5918         * tests/uninorm/test-u32-nfc.c: Likewise.
5919         * tests/uninorm/test-u32-nfc-big.c: Likewise.
5920         * tests/uninorm/test-u32-nfd.c: Likewise.
5921         * tests/uninorm/test-u32-nfd-big.c: Likewise.
5922         * tests/uninorm/test-u32-nfkc.c: Likewise.
5923         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
5924         * tests/uninorm/test-u32-nfkd.c: Likewise.
5925         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
5926         * tests/uninorm/test-u32-normalize-big.c: Likewise.
5927
5928 2010-03-27  Bruno Haible  <bruno@clisp.org>
5929
5930         Distinguish two kinds of module indicators.
5931         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
5932         gl_MODULE_INDICATOR.
5933         (gl_MODULE_INDICATOR): New macro.
5934         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
5935         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
5936         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
5937         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
5938         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
5939         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
5940         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
5941         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
5942         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
5943         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
5944         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
5945         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
5946         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
5947         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
5948         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
5949         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
5950         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
5951         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
5952         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
5953         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
5954         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
5955         * modules/cloexec (configure.ac): Likewise.
5956         * modules/getopt-gnu (configure.ac): Likewise.
5957         * modules/uninorm/u8-normalize (configure.ac): Likewise.
5958         * modules/uninorm/u16-normalize (configure.ac): Likewise.
5959         * modules/uninorm/u32-normalize (configure.ac): Likewise.
5960         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
5961
5962 2010-03-27  Bruno Haible  <bruno@clisp.org>
5963
5964         New module description field 'Comment'.
5965         * gnulib-tool: New option --extract-comment.
5966         (func_usage): Document it.
5967         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
5968         (func_get_comment): New function.
5969         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
5970
5971 2010-03-27  Bruno Haible  <bruno@clisp.org>
5972
5973         Addendum to 2010-02-07 commit.
5974         * gnulib-tool (func_usage): Document --extract-applicability option.
5975
5976 2010-03-27  Bruno Haible  <bruno@clisp.org>
5977
5978         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
5979         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
5980         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
5981         rather than link errors.
5982
5983 2010-03-27  Bruno Haible  <bruno@clisp.org>
5984
5985         Avoid side effects from tests-related modules on the compilation of lib.
5986         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
5987         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
5988         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
5989         parameter. Emit into AM_CPPFLAGS a definition of the designated C
5990         macro.
5991         (func_import): Define a witness macro. Assign it a value that depends
5992         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
5993         tests-related modules.
5994         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
5995         Reported by Jim Meyering.
5996
5997 2010-03-27  Bruno Haible  <bruno@clisp.org>
5998
5999         Factorize common .m4 code.
6000         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
6001         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
6002         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
6003         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
6004         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
6005         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
6006         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
6007         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
6008         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
6009         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
6010         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
6011         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
6012         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
6013         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
6014         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
6015         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
6016         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
6017         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
6018         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
6019         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
6020         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
6021         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
6022         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
6023         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
6024         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
6025         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
6026         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
6027         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
6028         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
6029         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
6030         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
6031         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
6032
6033 2010-03-27  Bruno Haible  <bruno@clisp.org>
6034
6035         Fix a compilation error on Cygwin with g++ >= 4.3.
6036         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
6037         if it is undefined or if we alias it to chmod.
6038         (lstat): Don't warn about the use of this function if it is undefined
6039         or if we alias it to stat.
6040         Reported by Simon Josefsson.
6041
6042 2010-03-27  Bruno Haible  <bruno@clisp.org>
6043
6044         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
6045         * modules/getlogin (configure.ac): Update.
6046
6047         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
6048         * modules/getlogin_r (configure.ac): Update.
6049
6050         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
6051         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
6052         * modules/inet_ntop (configure.ac): Update.
6053
6054         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
6055         * modules/inet_pton (configure.ac): Update.
6056
6057         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
6058         * modules/mbslen (configure.ac): Update.
6059
6060         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
6061         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
6062         * modules/forkpty (configure.ac): Update.
6063         * modules/openpty (configure.ac): Update.
6064
6065 2010-03-26  Simon Josefsson  <simon@josefsson.org>
6066
6067         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
6068         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
6069
6070 2010-03-25  Eric Blake  <eblake@redhat.com>
6071
6072         maint: use pragma consistently across replacement headers
6073         * lib/ctype.in.h (system_header): Hoist for consistent placement.
6074         * lib/dirent.in.h (system_header): Likewise.
6075         * lib/errno.in.h (system_header): Likewise.
6076         * lib/float.in.h (system_header): Likewise.
6077         * lib/getopt.in.h (system_header): Likewise.
6078         * lib/iconv.in.h (system_header): Likewise.
6079         * lib/inttypes.in.h (system_header): Likewise.
6080         * lib/langinfo.in.h (system_header): Likewise.
6081         * lib/locale.in.h (system_header): Likewise.
6082         * lib/math.in.h (system_header): Likewise.
6083         * lib/netdb.in.h (system_header): Likewise.
6084         * lib/netinet_in.in.h (system_header): Likewise.
6085         * lib/pty.in.h (system_header): Likewise.
6086         * lib/sched.in.h (system_header): Likewise.
6087         * lib/se-selinux.in.h (system_header): Likewise.
6088         * lib/search.in.h (system_header): Likewise.
6089         * lib/spawn.in.h (system_header): Likewise.
6090         * lib/stdarg.in.h (system_header): Likewise.
6091         * lib/stdint.in.h (system_header): Likewise.
6092         * lib/string.in.h (system_header): Likewise.
6093         * lib/strings.in.h (system_header): Likewise.
6094         * lib/sys_file.in.h (system_header): Likewise.
6095         * lib/sys_ioctl.in.h (system_header): Likewise.
6096         * lib/sys_socket.in.h (system_header): Likewise.
6097         * lib/sys_times.in.h (system_header): Likewise.
6098         * lib/sys_utsname.in.h (system_header): Likewise.
6099         * lib/sys_wait.in.h (system_header): Likewise.
6100         * lib/sysexits.in.h (system_header): Likewise.
6101         * lib/unistd.in.h (system_header): Likewise.
6102         * lib/wctype.in.h (system_header): Likewise.
6103
6104         arpa/inet: fix mingw compilation warning
6105         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
6106         Reported by Matthew Bolte.
6107
6108 2010-03-25  Bruno Haible  <bruno@clisp.org>
6109
6110         Avoid collision between gnulib wrapper and libintl wrapper.
6111         * lib/printf.c (printf): Don't define if a printf wrapper is already
6112         defined in intl/printf.c.
6113         Reported by Michel Boaventura <michel@michelboaventura.com>.
6114
6115 2010-03-25  Bruno Haible  <bruno@clisp.org>
6116
6117         Use ANSI C.
6118         * lib/readutmp.h (getutent): Provide ANSI C prototype.
6119
6120 2010-03-25  Bruno Haible  <bruno@clisp.org>
6121
6122         Minor formatting changes.
6123         * lib/acosl.c: Insert space before function argument list.
6124         * lib/argz.c: Likewise.
6125         * lib/asinl.c: Likewise.
6126         * lib/expl.c: Likewise.
6127         * lib/gen-uni-tables.c: Likewise.
6128         * lib/gettext.h: Likewise.
6129         * lib/glthread/lock.h: Likewise.
6130         * lib/tanl.c: Likewise.
6131         * lib/uniname/uniname.c: Likewise.
6132         * tests/test-idpriv-drop.c: Likewise.
6133         * tests/test-idpriv-droptemp.c: Likewise.
6134         * tests/test-lock.c: Likewise.
6135         * tests/test-tls.c: Likewise.
6136         * lib/argp-help.c: Insert space before function-like macro argument
6137         list.
6138         * lib/memcmp.c: Likewise.
6139         * tests/test-base64.c: Likewise.
6140         * lib/localename.c: Insert space before sizeof's argument list.
6141         * lib/safe-alloc.h: Likewise.
6142         * lib/file-set.h: Insert space before macro argument list.
6143         * tests/test-argp.c: Likewise.
6144         * lib/argp-namefrob.h: Insert space before function parameter list.
6145         * lib/getaddrinfo.c: Likewise.
6146         * lib/netdb.in.h: Likewise.
6147         * lib/parse-duration.h: Likewise.
6148         * lib/parse-duration.c: Likewise.
6149         * lib/poll.c: Likewise.
6150         * lib/select.c: Likewise.
6151         * lib/trim.h: Likewise.
6152         * tests/test-usleep.c: Likewise.
6153         * lib/ldexpl.c: Insert space before function parameter list and before
6154         function argument list.
6155         * lib/logl.c: Likewise.
6156         * lib/sqrtl.c: Likewise.
6157         * lib/trim.c: Likewise.
6158         * lib/cosl.c: Use GNU style indentation. Insert space before function
6159         argument list.
6160         * lib/sinl.c: Likewise.
6161         * lib/tsearch.c: Insert space after 'for'.
6162         Reported by Jim Meyering.
6163
6164 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
6165
6166         * maint.mk (sc_Wundef_boolean): Check for the presence of the
6167         config header before grepping, as it's not present before
6168         autoreconf/configure are run.  Reported by Simon Josefsson.
6169
6170 2010-03-23  Bruno Haible  <bruno@clisp.org>
6171
6172         pt_chown: Make it work with automake < 1.11.
6173         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
6174         Reported by Simon Josefsson.
6175
6176 2010-03-23  Bruno Haible  <bruno@clisp.org>
6177
6178         pt_chown: Don't depend on GPLed modules.
6179         * lib/pt_chown.c: Don't include idpriv.h.
6180         (main): Don't drop privileges.
6181         * modules/pt_chown (Depends-on): Remove idpriv-drop.
6182         Reported by Simon Josefsson.
6183
6184 2010-03-24  Simon Josefsson  <simon@josefsson.org>
6185
6186         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
6187         suggestions from karl@freefriends.org (Karl Berry).
6188
6189 2010-03-22  Eric Blake  <eblake@redhat.com>
6190
6191         gethostname: further tweaks
6192         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
6193         are overriding gethostname.
6194         Suggested by Bruno Haible.
6195
6196 2010-03-21  Bruno Haible  <bruno@clisp.org>
6197
6198         Fix comments.
6199         * lib/forkpty.c (rpl_forkpty): Fix comment.
6200         * lib/openpty.c (rpl_openpty): Likewise.
6201         Reported by Eric Blake.
6202
6203 2010-03-22  Eric Blake  <eblake@redhat.com>
6204
6205         gethostname: fix build on mingw
6206         * lib/unistd.in.h (includes): Work around fact that mingw
6207         <winsock2.h> re-includes <unistd.h>, by avoiding any
6208         redeclarations if we are being included by <winsock2.h>.
6209         Reported by Matthias Bolte.
6210
6211 2010-03-21  Bruno Haible  <bruno@clisp.org>
6212
6213         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
6214         * lib/forkpty.c (forkpty): New replacement function, from glibc with
6215         modifications.
6216         * lib/pty.in.h (forkpty): Update declaration. Add comments.
6217         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
6218         provide the replacement.
6219         * modules/forkpty (Depends-on): Add openpty, login_tty.
6220         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
6221         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
6222         * doc/glibc-functions/forkpty.texi: More supported platforms.
6223         * config/srclist.txt: Add forkpty.c (commented).
6224
6225 2010-03-21  Bruno Haible  <bruno@clisp.org>
6226
6227         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
6228         (Makefile.am): Verify that PTY_LIB is defined.
6229
6230         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
6231
6232 2010-03-21  Bruno Haible  <bruno@clisp.org>
6233
6234         Tests for module 'login_tty'.
6235         * modules/login_tty-tests: New file.
6236         * tests/test-login_tty.c: New file.
6237
6238         New module 'login_tty'.
6239         * lib/login_tty.c: New file.
6240         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
6241         * modules/login_tty: New file.
6242         * doc/glibc-functions/login_tty.texi: Mention the new module.
6243
6244 2010-03-21  Bruno Haible  <bruno@clisp.org>
6245
6246         login_tty: Documentation.
6247         * doc/glibc-functions/login_tty.texi: New file.
6248         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
6249
6250 2010-03-21  Bruno Haible  <bruno@clisp.org>
6251
6252         pty: Consistent macro naming.
6253         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
6254         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
6255         * modules/pty (configure.ac): Update.
6256
6257 2010-03-21  Bruno Haible  <bruno@clisp.org>
6258
6259         Tests for openpty: Make stricter.
6260         * tests/test-openpty.c (main): Add test of canonical processing and
6261         erase.
6262         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
6263
6264         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
6265         * lib/openpty.c (openpty): New replacement function.
6266         * lib/pty.in.h: Include <termios.h>.
6267         (openpty): Update declaration. Add comments.
6268         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
6269         is not declared, arrange to provide the replacement. Check for _getpty
6270         and posix_openpt.
6271         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
6272         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
6273         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
6274         * modules/pty-tests (test_pty_c___LDADD): New variable.
6275         * doc/glibc-functions/openpty.texi: More supported platforms.
6276
6277 2010-03-21  Bruno Haible  <bruno@clisp.org>
6278
6279         setenv: Tweaks.
6280         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
6281         the test program.
6282         * doc/posix-functions/setenv.texi: Update platforms list.
6283
6284 2010-03-21  Bruno Haible  <bruno@clisp.org>
6285
6286         New module 'unlockpt'.
6287         * lib/unlockpt.c: New file, from glibc with modifications.
6288         * m4/unlockpt.m4: New file.
6289         * modules/unlockpt: New file.
6290         * lib/stdlib.in.h (unlockpt): New declaration.
6291         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
6292         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
6293         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
6294         HAVE_UNLOCKPT.
6295         * doc/posix-functions/unlockpt.texi: Mention the new module.
6296         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
6297         * config/srclist.txt: Add unlockpt.c (commented).
6298
6299 2010-03-21  Jim Meyering  <meyering@redhat.com>
6300
6301         maint.mk: prohibit inclusion of "intprops.h" without use
6302         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
6303
6304 2010-03-21  Bruno Haible  <bruno@clisp.org>
6305
6306         New module 'grantpt'.
6307         * lib/grantpt.c: New file, from glibc with modifications.
6308         * m4/grantpt.m4: New file.
6309         * modules/grantpt: New file.
6310         * lib/stdlib.in.h (grantpt): New declaration.
6311         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
6312         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
6313         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
6314         HAVE_GRANTPT.
6315         * doc/posix-functions/grantpt.texi: Mention the new module.
6316         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
6317         * config/srclist.txt: Add grantpt.c (commented).
6318
6319 2010-03-21  Bruno Haible  <bruno@clisp.org>
6320
6321         New module 'pt_chown'.
6322         * lib/pt_chown.c: New file, from glibc with modifications.
6323         * lib/pty-private.h: New file, from glibc with modifications.
6324         * modules/pt_chown: New file.
6325         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
6326
6327 2010-03-21  Bruno Haible  <bruno@clisp.org>
6328
6329         Tests for module 'ptsname'.
6330         * modules/ptsname-tests: New file.
6331         * tests/test-ptsname.c: New file.
6332
6333         New module 'ptsname'.
6334         * lib/ptsname.c: New file, from glibc with modifications.
6335         * m4/ptsname.m4: New file.
6336         * modules/ptsname: New file.
6337         * lib/stdlib.in.h (ptsname): New declaration.
6338         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
6339         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
6340         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
6341         HAVE_PTSNAME.
6342         * doc/posix-functions/ptsname.texi: Mention the new module.
6343         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
6344         * config/srclist.txt: Add ptsname.c (commented).
6345
6346 2010-03-21  Bruno Haible  <bruno@clisp.org>
6347
6348         Tests for module 'ttyname_r'.
6349         * modules/ttyname_r-tests: New file.
6350         * tests/test-ttyname_r.c: New file.
6351
6352         New module 'ttyname_r'.
6353         * lib/ttyname_r.c: New file.
6354         * m4/ttyname_r.m4: New file.
6355         * modules/ttyname_r: New file.
6356         * lib/unistd.in.h (ttyname_r): New declaration.
6357         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
6358         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
6359         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
6360         HAVE_TTYNAME_R.
6361         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
6362         * doc/posix-functions/ttyname_r.texi: Mention the new module.
6363
6364 2010-03-20  Bruno Haible  <bruno@clisp.org>
6365
6366         signal: Undefine macro definitions in C++ mode.
6367         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
6368         sigfillset): Undefine macro definitions from the system header in C++
6369         mode.
6370         Reported by John W. Eaton <jwe@gnu.org>.
6371
6372 2010-03-20  Bruno Haible  <bruno@clisp.org>
6373
6374         Ensure no #include statements inside extern "C" { ... }.
6375         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
6376         contain #include statements.
6377         * lib/time.in.h: Likewise.
6378
6379 2010-03-20  Bruno Haible  <bruno@clisp.org>
6380
6381         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
6382         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
6383         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
6384         Reported by John W. Eaton <jwe@gnu.org>.
6385
6386 2010-03-20  Bruno Haible  <bruno@clisp.org>
6387
6388         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
6389         Reported by Jim Meyering.
6390
6391 2010-03-20  Bruno Haible  <bruno@clisp.org>
6392
6393         pipe: Set errno upon failure.
6394         * lib/pipe.h: Specify that when -1 is returned, errno is set.
6395         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
6396         errno value in error message.
6397
6398 2010-03-20  Bruno Haible  <bruno@clisp.org>
6399             Jim Meyering  <meyering@redhat.com>
6400
6401         lchown: Avoid "unused variable" warning.
6402         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
6403
6404 2010-03-20  Bruno Haible  <bruno@clisp.org>
6405
6406         Work around unlink() bug on MacOS X 10.5.6.
6407         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
6408         attempting to unlink a parent directory.
6409         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
6410         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
6411         activate for the replacement function.
6412         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
6413
6414 2010-03-20  Bruno Haible  <bruno@clisp.org>
6415
6416         Fix link errors on Solaris 8.
6417         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
6418         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
6419
6420 2010-03-19  Jim Meyering  <meyering@redhat.com>
6421
6422         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
6423         The _LIBC implementation of build_range_exp correctly honors the
6424         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
6425         However, the non-_LIBC implementation would ignore that syntax-bit
6426         flag and return REG_ERANGE unconditionally.
6427         This change makes it honor that flag.
6428         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
6429         Make two pointer parameters "const".
6430         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
6431         (parse_bracket_exp): Update caller.
6432
6433         regex.m4: correct the reversed range endpoint ([b-a]) test
6434         * m4/regex.m4: When requiring that [b-a] evoke failure,
6435         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
6436         test pass once again for x86-based systems.
6437
6438 2010-03-19  Bruno Haible  <bruno@clisp.org>
6439
6440         scandir: Fix link error on Solaris 8.
6441         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
6442         macros.
6443
6444 2010-03-19  Bruno Haible  <bruno@clisp.org>
6445
6446         getusershell: Fix documentation.
6447         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
6448         module.
6449         * doc/glibc-functions/setusershell.texi: Likewise.
6450
6451         getusershell: Provide declaration, missing on Solaris 9.
6452         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
6453         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
6454         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
6455         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
6456         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6457         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
6458         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
6459         HAVE_GETUSERSHELL.
6460         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
6461
6462 2010-03-19  Bruno Haible  <bruno@clisp.org>
6463
6464         wctype: Provide iswblank function.
6465         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
6466         exists and is fine.
6467         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
6468         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
6469         * tests/test-wctype.c (main): Re-enable the iswblank tests.
6470         * doc/posix-functions/iswblank.texi: Update.
6471
6472 2010-03-19  Bruno Haible  <bruno@clisp.org>
6473
6474         Tests of module 'pty' in C++ mode.
6475         * modules/pty-tests: New file.
6476         * tests/test-pty-c++.cc: New file.
6477         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
6478
6479 2010-03-19  Eric Blake  <eblake@redhat.com>
6480
6481         logb: fix documentation
6482         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
6483         1.5 declaration bug.
6484
6485         forkpty, openpty: prefer glibc's const-safe prototype
6486         * lib/forkpty.c (rpl_forkpty): New file.
6487         * lib/openpty.c (rpl_openpty): Likewise.
6488         * modules/forkpty (Files): Distribute it.
6489         * modules/openpty (Files): Likewise.
6490         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
6491         check...
6492         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
6493         replacement for for non-const BSD signature.
6494         * modules/pty (Makefile.am): Substitute witnesses.
6495         * lib/pty.in.h (forkpty, openpty): Declare replacements.
6496         * tests/test-forkpty.c: Update signature check.
6497         * tests/test-openpty.c: Likewise.
6498         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
6499         * doc/glibc-functions/openpty.texi (openpty): Likewise.
6500
6501         forkpty, openpty: split functions into new modules
6502         * modules/pty (Makefile.am): Substitute new witnesses.
6503         (Libraries): Move library detection...
6504         * modules/forkpty: ...into new module.
6505         * modules/openpty: Another new module.
6506         * modules/pty-tests: Rename and split...
6507         * modules/forkpty-tests: ...to this...
6508         * modules/openpty-tests: ...and this.
6509         * tests/test-pty.c: Rename and split...
6510         * tests/test-forkpty.c: ...to this...
6511         * tests/test-openpty.c: ...and this.
6512         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
6513         (gl_PTY): Split library searching...
6514         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
6515         (gl_FORKPTY, gl_OPENPTY): New macros.
6516         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
6517         * NEWS: Mention the split.
6518         * MODULES.html.sh (Misc): Document the modules.
6519         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
6520         * doc/glibc-functions/openpty.texi (openpty): Likewise.
6521
6522         pty: improve replacement header
6523         * lib/pty.in.h: New file.
6524         * modules/pty (Files): Ship it.
6525         (Makefile.am): Always build replacement.
6526         * m4/pty.m4: Rename...
6527         * m4/pty_h.m4: ...to this.
6528         (gl_PTY): Modernize setting of witness macros; update check of
6529         forkpty to take proper advantage of cache.
6530         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
6531
6532         getopt: avoid compiler warning
6533         * lib/getopt.c (attribute_hidden): Remove unused macro.
6534
6535 2010-03-18  Bruno Haible  <bruno@clisp.org>
6536
6537         Fix link errors on Solaris 8.
6538         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
6539         * modules/search-tests (test_search_c___LDADD): Likewise.
6540         * modules/signal-tests (test_signal_c___LDADD): Likewise.
6541         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
6542         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
6543         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
6544         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
6545         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
6546         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
6547
6548 2010-03-18  Bruno Haible  <bruno@clisp.org>
6549
6550         Fix bug introduced on 2010-03-14.
6551         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
6552         (gl_SPAWN_H): Require it.
6553         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
6554         Reported by Simon Josefsson.
6555
6556 2010-03-18  Bruno Haible  <bruno@clisp.org>
6557
6558         Fix typo introduced on 2009-12-31.
6559         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
6560         posix_spawn_file_actions_adddup2.
6561
6562 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
6563         and Eric Blake  <eblake@redhat.com>
6564
6565         test-vc-list-files-git: make more robust
6566         * tests/test-vc-list-files-git.sh: Unset problematic environment
6567         variables.  Chain commands together.
6568
6569 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
6570
6571         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
6572         `AC_CHECK_DECL' invocation.
6573
6574 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
6575
6576         * lib/inttostr.c (inttostr): Make sure the invocation of verify
6577         appears before executable statements. Suggested by Petr Sumbera
6578         <Petr.Sumbera@Sun.COM>.
6579
6580 2010-03-14  Bruno Haible  <bruno@clisp.org>
6581
6582         * tests/test-flock.c (test_exclusive): Comment out a test that causes
6583         portability problems. Instead use a simpler test.
6584         (main): Check that invalid arguments are rejected only on Linux.
6585
6586 2010-03-14  Bruno Haible  <bruno@clisp.org>
6587
6588         Fix bug introduced on 2009-12-31.
6589         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
6590         gl_PREREQ_SYS_H_WINSOCK2 always.
6591         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
6592         SYS_SOCKET_H variable.
6593         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
6594         Update comments.
6595         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
6596         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
6597         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
6598         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
6599         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
6600
6601 2010-03-14  Bruno Haible  <bruno@clisp.org>
6602
6603         Fix values returned by sinl, cosl.
6604         * lib/trigl.h: Add specification comments.
6605         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
6606         that combines the values from the precomputed table with the values of
6607         the Chebyshev polynomials.
6608
6609 2010-03-14  Bruno Haible  <bruno@clisp.org>
6610
6611         Fix compilation error when modules 'posix_spawn[p]' are not used.
6612         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
6613         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
6614
6615 2010-03-14  Bruno Haible  <bruno@clisp.org>
6616
6617         Fix compilation error on mingw when module 'time_r' is not used.
6618         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
6619         is 1.
6620         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
6621         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
6622         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
6623         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
6624
6625 2010-03-14  Bruno Haible  <bruno@clisp.org>
6626
6627         Fix compilation error with Sun C.
6628         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
6629         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
6630         instead of GCC specific ULONG_LONG_MAX.
6631         * lib/xstrtoll.c: Likewise.
6632         * lib/xstrtoull.c: Likewise.
6633
6634 2010-03-13  Bruno Haible  <bruno@clisp.org>
6635
6636         Allow the user to disable C++ code and tests.
6637         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
6638         (gl_PROG_ANSI_CXX): Require it.
6639
6640 2010-03-13  Bruno Haible  <bruno@clisp.org>
6641
6642         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
6643         cases.
6644
6645 2010-03-13  Bruno Haible  <bruno@clisp.org>
6646
6647         Test that gnulib does not break the standard C++ headers.
6648         * tests/test-locale-c++2.cc: New file.
6649         * modules/locale-tests (Files): Add it.
6650         (Makefile.am): Compile it for test-locale-c++.
6651         * tests/test-math-c++2.cc: New file.
6652         * modules/math-tests (Files): Add it.
6653         (Makefile.am): Compile it for test-math-c++.
6654         * tests/test-signal-c++2.cc: New file.
6655         * modules/signal-tests (Files): Add it.
6656         (Makefile.am): Compile it for test-signal-c++.
6657         * tests/test-stdio-c++2.cc: New file.
6658         * modules/stdio-tests (Files): Add it.
6659         (Makefile.am): Compile it for test-stdio-c++.
6660         * tests/test-stdlib-c++2.cc: New file.
6661         * modules/stdlib-tests (Files): Add it.
6662         (Makefile.am): Compile it for test-stdlib-c++.
6663         * tests/test-string-c++2.cc: New file.
6664         * modules/string-tests (Files): Add it.
6665         (Makefile.am): Compile it for test-string-c++.
6666         * tests/test-time-c++2.cc: New file.
6667         * modules/time-tests (Files): Add it.
6668         (Makefile.am): Compile it for test-time-c++.
6669         Reported by John W. Eaton <jwe@gnu.org>.
6670
6671 2010-03-13  Bruno Haible  <bruno@clisp.org>
6672
6673         * gnulib-tool (func_usage): Clarify which options are available for
6674         --create-testdir and --create-megatestdir.
6675
6676 2010-03-13  Bruno Haible  <bruno@clisp.org>
6677
6678         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
6679         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
6680         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
6681         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
6682         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
6683         when appropriate.
6684         Reported by Jim Meyering.
6685
6686 2010-03-12  Simon Josefsson  <simon@josefsson.org>
6687
6688         * gnulib-tool (func_import): Explain origin of code.
6689
6690 2010-03-12  Bruno Haible  <bruno@clisp.org>
6691
6692         Fix problem with automake's definition of CXXLINK.
6693         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
6694         Reported by Simon Josefsson and Ludovic Courtès.
6695
6696 2010-03-12  Bruno Haible  <bruno@clisp.org>
6697
6698         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
6699         stable releases.
6700
6701 2010-03-11  Bruno Haible  <bruno@clisp.org>
6702
6703         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
6704         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
6705         whether the system provides one variant or multiple variants of the
6706         function.
6707         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
6708         C++ compilers.
6709         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
6710         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
6711         Reported by Jim Meyering.
6712
6713 2010-03-09  Simon Josefsson  <simon@josefsson.org>
6714
6715         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
6716
6717 2010-03-08  Bruno Haible  <bruno@clisp.org>
6718
6719         gnulib-tool: Add support for --libtool in --create-testdir.
6720         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
6721         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
6722
6723 2010-03-08  Eric Blake  <eblake@redhat.com>
6724
6725         gnulib-tool.texi: mention possibility of git submodule
6726         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
6727         submodules.
6728         * doc/.gitignore: Ignore another generated file.
6729
6730 2010-03-08  Karl Berry  <karl@gnu.org>
6731
6732         * doc/gnulib-tool.texi (VCS Issues): Mention third option
6733         of committing gnulib files while skipping others.
6734
6735 2010-03-07  Bruno Haible  <bruno@clisp.org>
6736
6737         Tests of module 'wctype' in C++ mode.
6738         * tests/test-wctype-c++.cc: New file.
6739         * modules/wctype-tests (Files): Add it and tests/signature.h.
6740         (Depends-on): Add ansi-c++-opt.
6741         (Makefile.am): Arrange to compile and run test-wctype-c++.
6742
6743         Tests of module 'wchar' in C++ mode.
6744         * tests/test-wchar-c++.cc: New file.
6745         * modules/wchar-tests (Files): Add it and tests/signature.h.
6746         (Depends-on): Add ansi-c++-opt.
6747         (Makefile.am): Arrange to compile and run test-wchar-c++.
6748         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
6749         gl_MODULE_INDICATOR.
6750
6751         Tests of module 'unistd' in C++ mode.
6752         * tests/test-unistd-c++.cc: New file.
6753         * modules/unistd-tests (Files): Add it and tests/signature.h.
6754         (Depends-on): Add ansi-c++-opt.
6755         (Makefile.am): Arrange to compile and run test-unistd-c++.
6756         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
6757         gl_MODULE_INDICATOR.
6758
6759         Tests of module 'time' in C++ mode.
6760         * tests/test-time-c++.cc: New file.
6761         * modules/time-tests (Files): Add it and tests/signature.h.
6762         (Depends-on): Add ansi-c++-opt.
6763         (Makefile.am): Arrange to compile and run test-time-c++.
6764         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
6765
6766         Tests of module 'sys_time' in C++ mode.
6767         * tests/test-sys_time-c++.cc: New file.
6768         * modules/sys_time-tests (Files): Add it and tests/signature.h.
6769         (Depends-on): Add ansi-c++-opt.
6770         (Makefile.am): Arrange to compile and run test-sys_time-c++.
6771         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
6772         gl_MODULE_INDICATOR.
6773
6774         Tests of module 'sys_stat' in C++ mode.
6775         * tests/test-sys_stat-c++.cc: New file.
6776         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
6777         (Depends-on): Add ansi-c++-opt.
6778         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
6779         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
6780         gl_MODULE_INDICATOR.
6781
6782         Tests of module 'sys_socket' in C++ mode.
6783         * tests/test-sys_socket-c++.cc: New file.
6784         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
6785         (Depends-on): Add ansi-c++-opt.
6786         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
6787         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
6788         gl_MODULE_INDICATOR.
6789
6790         Tests of module 'sys_select' in C++ mode.
6791         * tests/test-sys_select-c++.cc: New file.
6792         * modules/sys_select-tests (Files): Add it and tests/signature.h.
6793         (Depends-on): Add ansi-c++-opt.
6794         (Makefile.am): Arrange to compile and run test-sys_select-c++.
6795         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
6796         gl_MODULE_INDICATOR.
6797
6798         Tests of module 'sys_ioctl' in C++ mode.
6799         * tests/test-sys_ioctl-c++.cc: New file.
6800         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
6801         (Depends-on): Add ansi-c++-opt.
6802         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
6803         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
6804         gl_MODULE_INDICATOR.
6805
6806         Tests of module 'string' in C++ mode.
6807         * tests/test-string-c++.cc: New file.
6808         * modules/string-tests (Files): Add it and tests/signature.h.
6809         (Depends-on): Add ansi-c++-opt.
6810         (Makefile.am): Arrange to compile and run test-string-c++.
6811         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
6812         gl_MODULE_INDICATOR.
6813
6814         Tests of module 'stdlib' in C++ mode.
6815         * tests/test-stdlib-c++.cc: New file.
6816         * modules/stdlib-tests (Files): Add it and tests/signature.h.
6817         (Depends-on): Add ansi-c++-opt.
6818         (Makefile.am): Arrange to compile and run test-stdlib-c++.
6819         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
6820         gl_MODULE_INDICATOR.
6821
6822         Tests of module 'stdio' in C++ mode.
6823         * tests/test-stdio-c++.cc: New file.
6824         * modules/stdio-tests (Files): Add it and tests/signature.h.
6825         (Depends-on): Add ansi-c++-opt.
6826         (Makefile.am): Arrange to compile and run test-stdio-c++.
6827         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
6828         gl_MODULE_INDICATOR.
6829
6830         Tests of module 'spawn' in C++ mode.
6831         * tests/test-spawn-c++.cc: New file.
6832         * modules/spawn-tests (Files): Add it and tests/signature.h.
6833         (Depends-on): Add ansi-c++-opt.
6834         (Makefile.am): Arrange to compile and run test-spawn-c++.
6835         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
6836         gl_MODULE_INDICATOR.
6837
6838         Tests of module 'signal' in C++ mode.
6839         * tests/test-signal-c++.cc: New file.
6840         * modules/signal-tests (Files): Add it and tests/signature.h.
6841         (Depends-on): Add ansi-c++-opt.
6842         (Makefile.am): Arrange to compile and run test-signal-c++.
6843         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
6844         gl_MODULE_INDICATOR.
6845
6846         Tests of module 'search' in C++ mode.
6847         * tests/test-search-c++.cc: New file.
6848         * modules/search-tests (Files): Add it and tests/signature.h.
6849         (Depends-on): Add ansi-c++-opt.
6850         (Makefile.am): Arrange to compile and run test-search-c++.
6851         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
6852         gl_MODULE_INDICATOR.
6853
6854         Tests of module 'math' in C++ mode.
6855         * tests/test-math-c++.cc: New file.
6856         * modules/math-tests (Files): Add it and tests/signature.h.
6857         (Depends-on): Add ansi-c++-opt.
6858         (Makefile.am): Arrange to compile and run test-math-c++.
6859         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
6860
6861         Tests of module 'locale' in C++ mode.
6862         * tests/test-locale-c++.cc: New file.
6863         * modules/locale-tests (Files): Add it and tests/signature.h.
6864         (Depends-on): Add ansi-c++-opt.
6865         (Makefile.am): Arrange to compile and run test-locale-c++.
6866         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
6867         gl_MODULE_INDICATOR.
6868
6869         Tests of module 'langinfo' in C++ mode.
6870         * tests/test-langinfo-c++.cc: New file.
6871         * modules/langinfo-tests (Files): Add it and tests/signature.h.
6872         (Depends-on): Add ansi-c++-opt.
6873         (Makefile.am): Arrange to compile and run test-langinfo-c++.
6874         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
6875         gl_MODULE_INDICATOR.
6876
6877         Tests of module 'iconv-h' in C++ mode.
6878         * tests/test-iconv-h-c++.cc: New file.
6879         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
6880         (Depends-on): Add ansi-c++-opt.
6881         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
6882
6883         Tests of module 'glob' in C++ mode.
6884         * tests/test-glob-c++.cc: New file.
6885         * modules/glob-tests (Files): Add it.
6886         (Depends-on): Add ansi-c++-opt.
6887         (Makefile.am): Arrange to compile and run test-glob-c++.
6888
6889         Tests of module 'fcntl-h' in C++ mode.
6890         * tests/test-fcntl-h-c++.cc: New file.
6891         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
6892         (Depends-on): Add ansi-c++-opt.
6893         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
6894         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
6895         gl_MODULE_INDICATOR.
6896
6897         Tests of module 'dirent' in C++ mode.
6898         * tests/test-dirent-c++.cc: New file.
6899         * modules/dirent-tests (Files): Add it and tests/signature.h.
6900         (Depends-on): Add ansi-c++-opt.
6901         (Makefile.am): Arrange to compile and run test-dirent-c++.
6902         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
6903         gl_MODULE_INDICATOR.
6904
6905         New module 'ansi-c++-opt'.
6906         * modules/ansi-c++-opt: New file.
6907         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
6908
6909         Document C++ namespace mode.
6910         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
6911
6912         wctype: Avoid #define replacements in C++ mode.
6913         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
6914         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
6915         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
6916         In C++, define a namespaced alias symbol.
6917         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
6918         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
6919         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
6920         rule.
6921
6922         wchar: Avoid #define replacements in C++ mode.
6923         * lib/wchar.in.h: Include c++defs.h.
6924         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
6925         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
6926         symbol.
6927         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
6928         * modules/wchar (Depends-on): Add c++defs.
6929         (Makefile.am): Update wchar.h rule.
6930
6931         unistd: Avoid #define replacements in C++ mode.
6932         * lib/unistd.in.h: Include c++defs.h.
6933         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
6934         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
6935         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
6936         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
6937         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
6938         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
6939         symbol.
6940         (environ): Update.
6941         * modules/unistd (Depends-on): Add c++defs.
6942         (Makefile.am): Update unistd.h rule.
6943
6944         time: Avoid #define replacements in C++ mode.
6945         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
6946         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
6947         define a namespaced alias symbol.
6948         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
6949         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
6950         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
6951         * modules/time (Depends-on): Add c++defs, warn-on-use.
6952         (Makefile.am): Update time.h rule.
6953         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
6954         * modules/nanosleep (configure.ac): Likewise.
6955         * modules/strptime (configure.ac): Likewise.
6956         * modules/timegm (configure.ac): Likewise.
6957
6958         sys_time: Avoid #define replacements in C++ mode.
6959         * lib/sys_time.in.h: Include c++defs.h.
6960         (gettimeofday): In C++, define a namespaced alias symbol.
6961         * modules/sys_time (Depends-on): Add c++defs.
6962         (Makefile.am): Update sys/time.h rule.
6963
6964         sys_stat: Avoid #define replacements in C++ mode.
6965         * lib/sys_stat.in.h: Include c++defs.h.
6966         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
6967         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
6968         namespaced alias symbol.
6969         In C++, define a namespaced alias symbol.
6970         * modules/sys_stat (Depends-on): Add c++defs.
6971         (Makefile.am): Update sys/stat.h rule.
6972
6973         sys_socket: Avoid #define replacements in C++ mode.
6974         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
6975         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
6976         definitions also when the system has a <sys/socket.h>.
6977         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
6978         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
6979         In C++, define a namespaced alias symbol.
6980         * modules/sys_socket (Depends-on): Add c++defs.
6981         (Makefile.am): Update sys/socket.h rule.
6982
6983         sys_select: Avoid #define replacements in C++ mode.
6984         * lib/sys_select.in.h: Include c++defs.h. Enable the function
6985         definitions also when the system has a <sys/select.h>.
6986         (select): In C++, define a namespaced alias symbol.
6987         * modules/sys_select (Depends-on): Add c++defs.
6988         (Makefile.am): Update sys/select.h rule.
6989
6990         sys_ioctl: Avoid #define replacements in C++ mode.
6991         * lib/sys_ioctl.in.h: Include c++defs.h.
6992         (ioctl): In C++, define a namespaced alias symbol.
6993         * modules/sys_ioctl (Depends-on): Add c++defs.
6994         (Makefile.am): Update sys/ioctl.h rule.
6995
6996         string: Avoid #define replacements in C++ mode.
6997         * lib/string.in.h: Include c++defs.h.
6998         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
6999         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
7000         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
7001         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
7002         strsignal, strverscmp): In C++, define a namespaced alias symbol.
7003         * modules/string (Depends-on): Add c++defs.
7004         (Makefile.am): Update string.h rule.
7005
7006         stdlib: Avoid #define replacements in C++ mode.
7007         * lib/stdlib.in.h: Include c++defs.h.
7008         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
7009         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
7010         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
7011         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
7012         symbol.
7013         * modules/stdlib (Depends-on): Add c++defs.
7014         (Makefile.am): Update stdlib.h rule.
7015
7016         stdio: Avoid #define replacements in C++ mode.
7017         * lib/stdio.in.h: Include c++defs.h.
7018         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
7019         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
7020         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
7021         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
7022         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
7023         namespaced alias symbol.
7024         * modules/stdio (Depends-on): Add c++defs.
7025         (Makefile.am): Update stdio.h rule.
7026
7027         spawn: Avoid #define replacements in C++ mode.
7028         * lib/spawn.in.h: Include c++defs.h.
7029         (posix_spawn, posix_spawnp, posix_spawnattr_init,
7030         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
7031         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
7032         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
7033         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
7034         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
7035         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
7036         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
7037         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
7038         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
7039         In C++, define a namespaced alias symbol.
7040         * modules/spawn (Depends-on): Add c++defs.
7041         (Makefile.am): Update spawn.h rule.
7042
7043         signal: Avoid #define replacements in C++ mode.
7044         * lib/signal.in.h: Include c++defs.h.
7045         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
7046         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
7047         namespaced alias symbol.
7048         * modules/signal (Depends-on): Add c++defs.
7049         (Makefile.am): Update signal.h rule.
7050
7051         search: Avoid #define replacements in C++ mode.
7052         * lib/search.in.h: Include c++defs.h.
7053         (_gl_search_compar_fn, _gl_search_action_fn): New types.
7054         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
7055         symbol.
7056         * modules/search (Depends-on): Add c++defs.
7057         (Makefile.am): Update search.h rule.
7058
7059         math: Avoid #define replacements in C++ mode.
7060         * lib/math.in.h: Include c++defs.h.
7061         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
7062         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
7063         trunc, truncl): In C++, define a namespaced alias symbol.
7064         * modules/math (Depends-on): Add c++defs.
7065         (Makefile.am): Update math.h rule.
7066
7067         locale: Avoid #define replacements in C++ mode.
7068         * lib/locale.in.h: Include c++defs.h.
7069         (duplocale): In C++, define a namespaced alias symbol.
7070         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
7071         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
7072         * modules/locale (Depends-on): Add c++defs.
7073         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
7074
7075         langinfo: Avoid #define replacements in C++ mode.
7076         * lib/langinfo.in.h: Include c++defs.h.
7077         (nl_langinfo): In C++, define a namespaced alias symbol.
7078         * modules/langinfo (Depends-on): Add c++defs.
7079         (Makefile.am): Update langinfo.h rule.
7080
7081         iconv-h: Avoid #define replacements in C++ mode.
7082         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
7083         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
7084         symbol.
7085         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
7086         whenever iconv is present.
7087         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
7088         (Makefile.am): Update iconv.h rule.
7089
7090         glob: Avoid #define replacements in C++ mode.
7091         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
7092         (_gl_glob_errfunc_fn): New type.
7093         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
7094         symbol.
7095         * modules/glob (Depends-on): Add c++defs, warn-on-use.
7096         (Makefile.am): Update glob.h rule.
7097
7098         fcntl-h: Avoid #define replacements in C++ mode.
7099         * lib/fcntl.in.h: Include c++defs.h.
7100         (fcntl, open, openat): In C++, define a namespaced alias symbol.
7101         * modules/fcntl-h (Depends-on): Add c++defs.
7102         (Makefile.am): Update fcntl.h rule.
7103
7104         dirent: Avoid #define replacements in C++ mode.
7105         * lib/dirent.in.h: Include c++defs.h.
7106         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
7107         namespaced alias symbol.
7108         (dirfd): Update declaration.
7109         * modules/dirent (Depends-on): Add c++defs.
7110         (Makefile.am): Update dirent.h rule.
7111
7112         ctype: Make it usable in C++ code.
7113         * lib/ctype.in.h: Include c++defs.h.
7114         (isblank): Declare as extern "C".
7115         * modules/ctype (Depends-on): Add c++defs.
7116         (Makefile.am): Update ctype.h rule.
7117
7118         New module 'c++defs'.
7119         * modules/c++defs: New file.
7120         * build-aux/c++defs.h: New file.
7121         Reported by John W. Eaton <jwe@gnu.org>.
7122
7123 2010-03-07  Bruno Haible  <bruno@clisp.org>
7124
7125         logb: Provide missing declaration for Cygwin.
7126         * lib/math.in.h (logb): New declaration.
7127         * m4/logb.m4: New file.
7128         * modules/logb (Files): Add m4/logb.m4.
7129         (Depends-on): Add math.
7130         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
7131         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
7132         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
7133         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
7134         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
7135
7136 2010-03-07  Bruno Haible  <bruno@clisp.org>
7137
7138         Fix test-cond link error.
7139         * tests/test-cond.c: Include <stdio.h>.
7140
7141 2010-03-07  Bruno Haible  <bruno@clisp.org>
7142
7143         Fix test-dirent-safer link error.
7144         * modules/dirent-safer-tests (Makefile.am): Define
7145         test_dirent_safer_LDADD.
7146
7147 2010-03-07  Bruno Haible  <bruno@clisp.org>
7148
7149         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
7150         among default module list.
7151
7152 2010-03-07  Bruno Haible  <bruno@clisp.org>
7153
7154         Fix link error on platforms with GNU libiconv.
7155         * modules/unistr/u8-strcoll-tests (Makefile): Define
7156         test_u8_strcoll_LDADD.
7157         * modules/unistr/u16-strcoll-tests (Makefile): Define
7158         test_u16_strcoll_LDADD.
7159         * modules/unistr/u32-strcoll-tests (Makefile): Define
7160         test_u32_strcoll_LDADD.
7161
7162 2010-03-07  Bruno Haible  <bruno@clisp.org>
7163
7164         Use POSIX declarations for socket functions.
7165         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
7166         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
7167         rpl_sendto): Change declaration to match POSIX.
7168         * lib/connect.c (rpl_connect): Likewise.
7169         * lib/accept.c (rpl_accept): Likewise.
7170         * lib/bind.c (rpl_bind): Likewise.
7171         * lib/getpeername.c (rpl_getpeername): Likewise.
7172         * lib/getsockname.c (rpl_getsockname): Likewise.
7173         * lib/recv.c (rpl_recv): Likewise.
7174         * lib/send.c (rpl_send): Likewise.
7175         * lib/recvfrom.c (rpl_recvfrom): Likewise.
7176         * lib/sendto.c (rpl_sendto): Likewise.
7177
7178 2010-03-06  Bruno Haible  <bruno@clisp.org>
7179
7180         Clarify access, euidaccess, faccessat.
7181         * doc/posix-functions/faccessat.texi: Mention security problem under
7182         "Other problems", not "Portability problems".
7183         * doc/posix-functions/access.texi: Likewise. Mention a related security
7184         problem.
7185         * doc/glibc-functions/euidaccess.texi: Mention security problems.
7186         * lib/euidaccess.c: Add comments about platforms.
7187         * lib/unistd.in.h (access, euidaccess): Add warnings.
7188
7189 2010-03-07  Bruno Haible  <bruno@clisp.org>
7190
7191         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
7192         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
7193         (POSIX_SPAWN_SETSCHEDULER): Likewise.
7194         (POSIX_SPAWN_USEVFORK): Define in a way that works when
7195         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
7196         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
7197         declare when POSIX_SPAWN_SETSCHEDULER is zero.
7198         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
7199         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
7200         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
7201         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
7202         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
7203         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
7204         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
7205         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
7206         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
7207         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
7208         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
7209         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
7210         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
7211         Likewise.
7212         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
7213         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
7214         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
7215         Likewise.
7216         * tests/test-spawn.c (main): Make it work when
7217         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
7218
7219 2010-03-07  Bruno Haible  <bruno@clisp.org>
7220
7221         Fix incorrect Makefile.am generation in German locale.
7222         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
7223         Execute sed command with character range in C locale.
7224
7225 2010-03-06  Bruno Haible  <bruno@clisp.org>
7226
7227         Tests for module 'iconv-h'.
7228         * modules/iconv-h-tests: New file.
7229         * tests/test-iconv-h.c: New file.
7230
7231         New module 'iconv-h'.
7232         * modules/iconv-h: New file.
7233         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
7234         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
7235         (configure.ac): Remove gl_ICONV_H.
7236         (Makefile.am): Remove rule for iconv.h.
7237
7238 2010-03-06  Bruno Haible  <bruno@clisp.org>
7239
7240         More consistent naming of *.m4 files.
7241         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
7242         * modules/wctype (Files): Update.
7243
7244         More consistent naming of *.m4 files.
7245         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
7246         * modules/wchar (Files): Update.
7247
7248 2010-03-06  Jim Meyering  <meyering@redhat.com>
7249
7250         euidaccess: relax license to LGPLv2+
7251         * modules/euidaccess (License): Relax to LGPLv2+.
7252
7253 2010-03-06  Bruno Haible  <bruno@clisp.org>
7254
7255         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
7256         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
7257         (Makefile.am): Augment lib_SOURCES instead.
7258
7259 2010-03-04  Jim Meyering  <meyering@redhat.com>
7260
7261         utime: remove obsolete module
7262         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
7263         unnecessary for years, and has been marked as obsolete for 10 months.
7264         * modules/utime: Remove file.
7265         * lib/utime.c: Remove file.
7266         * m4/utime.m4: Remove file.
7267         * m4/utimes-null.m4: Remove file.
7268         * doc/posix-functions/utime.texi (utime): Remove reference to
7269         the module.  Move the sole "fixed by gnulib" item into the
7270         "problems not fixed by Gnulib" list.
7271         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
7272
7273 2010-03-05  Simon Josefsson  <simon@josefsson.org>
7274
7275         * modules/exit (License): Relax license to LGPLv2+.
7276         (Status): Mark as obsolete.
7277         * NEWS: Mention deprecated 'exit' module.
7278         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
7279         of now obsolete 'exit'.
7280
7281 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7282
7283         fts-lgpl: remove unused module
7284         * modules/fts-lgpl: Remove.
7285         * MODULES.html.sh (func_all_modules): Adjust.
7286         * check-module (find_included_lib_files): Adjust.
7287         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
7288
7289 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
7290
7291         copy-acl: enhance Solaris ACL error handling
7292         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
7293         * lib/set-mode-acl.c (qset_acl): Likewise.
7294
7295 2010-03-02  Bruno Haible  <bruno@clisp.org>
7296
7297         spawn: Don't override the system defined values on FreeBSD 8.
7298         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
7299         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
7300         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
7301         if HAVE_POSIX_SPAWN is 1.
7302         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
7303
7304 2010-03-01  Bruno Haible  <bruno@clisp.org>
7305
7306         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
7307         regarding Automake.
7308
7309 2010-02-25  Bruno Haible  <bruno@clisp.org>
7310
7311         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
7312         * gnulib-tool: Define 'echo' as a function only before the ksh alias
7313         setting, not afterwards.
7314         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
7315
7316 2010-02-24  Eric Blake  <eblake@redhat.com>
7317
7318         bootstrap, git-version-gen: use timestamp
7319         * build-aux/git-version-gen (scriptversion): Force UTC.
7320         * build-aux/bootstrap (scriptversion): New variable.
7321
7322         bootstrap: allow older git
7323         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
7324         older than 1.6.4.  Requested by the libvirt project.
7325
7326 2010-02-23  Eric Blake  <eblake@redhat.com>
7327
7328         warn-on-use: work with old autoconf
7329         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
7330         AS_VAR semantics of autoconf 2.60.
7331         Reported by Bruno Haible.
7332
7333         bootstrap: improve some comments
7334         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
7335         clarification comments.
7336
7337         gettimeofday: provide correct function
7338         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
7339         when replacement is declared, otherwise provide gettimeofday.
7340         Reported by Michael Goffioul.
7341
7342 2010-02-23  Jim Meyering  <meyering@redhat.com>
7343
7344         lib-ignore: relax license to "unlimited", not LGPLv2+
7345         * modules/lib-ignore (License): Relax to "unlimited".
7346
7347 2010-02-23  Jim Meyering  <meyering@redhat.com>
7348
7349         lib-ignore: relax license to LGPLv2+
7350         * modules/lib-ignore (License): Relax to LGPLv2+.
7351
7352 2010-02-22  Eric Blake  <eblake@redhat.com>
7353
7354         lseek: avoid bash 3.2 broken pipe bug
7355         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
7356         warning from bash 3.2.
7357         Reported by Ben Pfaff, with analysis from Bruno Haible.
7358
7359         bootstrap: support non-FSF copyright holder
7360         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
7361         bootstrap.conf override of COPYRIGHT_HOLDER.
7362         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
7363
7364         bootstrap: interoperate with gettext 0.14.1
7365         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
7366
7367         bootstrap: allow for alternate submodule location
7368         * build-aux/bootstrap (gnulib_path): New variable; use instead of
7369         hardcoding submodule location.
7370         (gnulib_mk): Allow direct use of Makefile.am.
7371
7372         bootstrap: use GNULIB_SRCDIR to reduce disk usage
7373         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
7374         rather than reconfiguring where the submodule points.
7375
7376         gettimeofday: restore support for platforms that lack function
7377         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
7378         replacement if function is missing.
7379         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
7380         * modules/sys_time (Makefile.am): Substitute it.
7381         * lib/sys_time.in.h (gettimeofday): Check it.
7382         Reported by Michael Goffioul.
7383
7384 2010-02-21  Bruno Haible  <bruno@clisp.org>
7385
7386         * lib/stdio.in.h (obstack_printf): Fix typo.
7387
7388 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
7389
7390         vc-list-files: use bzr ls's -R option
7391         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
7392         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
7393
7394 2010-02-21  Jim Meyering  <meyering@redhat.com>
7395
7396         init.sh: fix EXEEXT shims to work also for names like test-prog
7397         * tests/init.sh: Re-exec a better shell, when needed.
7398         If the current shell lacks support for posix $(...), an init.sh-using
7399         test will now try to find a shell that supports that.  If EXEEXT is
7400         nonempty, we also require support for hyphen-in-alias-name and shell
7401         substitutions like ${var#glob}.  Failure to find such a shell results
7402         in a skipped test.
7403
7404 2010-02-21  Bruno Haible  <bruno@clisp.org>
7405
7406         Really work around around "broken pipe" error message from bash 3.2.
7407         * gnulib-tool (func_reset_sigpipe): Remove function.
7408         (echo): In bash 3.2, define to a function that uses printf.
7409         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
7410
7411 2010-02-20  Bruno Haible  <bruno@clisp.org>
7412
7413         Restore support for automake 1.9.6 with autoconf 2.61.
7414         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
7415         Reported by James Youngman <jay@gnu.org>.
7416
7417 2010-02-20  Bruno Haible  <bruno@clisp.org>
7418
7419         Improve *printf warning condition.
7420         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
7421         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
7422         and the function is overridden due to SIGPIPE emulation.
7423
7424 2010-02-20  Bruno Haible  <bruno@clisp.org>
7425
7426         * lib/stdio.in.h: Tweak comments.
7427
7428 2010-02-19  Bruno Haible  <bruno@clisp.org>
7429
7430         Make it easier to find modules. New gnulib-tool option '--find'.
7431         * gnulib-tool: New option --find.
7432         (func_usage): Document it.
7433         (func_sanitize_modulelist): New function, extracted from
7434         func_all_modules.
7435         (func_all_modules): Invoke it.
7436         * doc/gnulib-tool.texi (Which modules?): New node.
7437
7438 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
7439
7440         * lib/sys_select.in.h: Provide select replacement even if
7441         sys/select.h exists on a system, for Interix.
7442
7443 2010-02-18  Jim Meyering  <meyering@redhat.com>
7444
7445         init.sh: don't use $(...) just yet
7446         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
7447         to accommodate e.g., Solaris' /bin/sh.
7448
7449 2010-02-17  Bruno Haible  <bruno@clisp.org>
7450
7451         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
7452         Reported by Ludovic Courtès <ludo@gnu.org>.
7453
7454 2010-02-16  Simon Josefsson  <simon@josefsson.org>
7455
7456         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
7457         linking with -lintl.
7458
7459 2010-02-17  Simon Josefsson  <simon@josefsson.org>
7460
7461         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
7462         if not provided by the system's netdb.h.  Reported by
7463         ludo@gnu.org (Ludovic Courtès).
7464
7465 2010-02-15  Jim Meyering  <meyering@redhat.com>
7466
7467         init.sh: improve portability and efficiency
7468         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
7469         "dummy" in a for loop.
7470         Use '!', not '^' to select the complement of a character set used
7471         in a "case" statement.
7472         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
7473         Suggestions from Eric Blake.
7474
7475         init.sh: automatically accommodate programs with the .exe suffix
7476         Automatically arrange for an invocation of "prog" to execute the
7477         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
7478         may use the simpler "prog", yet still work when built on a system
7479         that requires specifying the added suffix.
7480         Do this by constructing a function named "prog" that invokes
7481         "prog.exe" for each .exe file in selected directories.
7482         * tests/init.sh (find_exe_basenames_): New function.
7483         (create_exe_shim_functions_): New function.
7484         (path_prepend_): Use it.
7485
7486         maint.mk: mark syntax-check sc_*.m rules as .PHONY
7487         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
7488         "make -t syntax-check" doesn't create a ton of sc_*.m files.
7489
7490 2010-02-14  Jim Meyering  <meyering@redhat.com>
7491
7492         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
7493         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
7494         (sc_prohibit_hash_pjw_without_use): New rule.
7495
7496         maint.mk: allow the default upload destination dir to be overridden
7497         * top/maint.mk (upload_dest_dir_): Define with a default that
7498         preserves the status quo.
7499         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
7500         Reported by Peter Simons.
7501
7502         maint.mk: prohibit inclusion of "hash.h" without_use
7503         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
7504
7505 2010-02-10  Jim Meyering  <meyering@redhat.com>
7506
7507         maint.mk: prohibit inclusion of "ignore-value.h" without_use
7508         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
7509
7510 2010-02-09  Eric Blake  <ebb9@byu.net>
7511         and Bruno Haible  <bruno@clisp.org>
7512
7513         obstack-printf-posix: ensure declaration
7514         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
7515         extracted from gl_FUNC_OBSTACK_PRINTF.
7516         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
7517         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
7518         Likewise.
7519         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
7520         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
7521         0.
7522
7523 2010-02-08  Bruno Haible  <bruno@clisp.org>
7524
7525         gnulib-tool: Fix typo in 2010-02-07 commit.
7526         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
7527         Reported by Eric Blake.
7528
7529 2010-02-07  Bruno Haible  <bruno@clisp.org>
7530
7531         gnulib-tool: Fix up caching patches.
7532         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
7533         option --no-cache. Use associative arrays when supported by the shell.
7534         (sed_comments): New variable.
7535         (modcache): Renamed from do_cache.
7536         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
7537         abbreviate unnecessarily.
7538         (have_associative): New variable.
7539         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
7540         way also for ksh and zsh.
7541         (func_init_sed_convert_to_cache_statements): New function, extracted
7542         from func_cache_lookup_module. Add support for associative arrays.
7543         Don't set the c_MODULE_cached variable here. Ignore all lines before
7544         the first field header. Remove only the final newline, not all trailing
7545         newlines. Support empty fields correctly. Limit the use of 'eval' to
7546         assignments.
7547         (func_get_description, func_get_status, func_get_notice,
7548         func_get_applicability, func_get_filelist, func_get_dependencies,
7549         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
7550         func_get_automake_snippet, func_get_include_directive,
7551         func_get_link_directive, func_get_license, func_get_maintainer):
7552         Update documentation. List the unoptimized code first. Add support for
7553         associative arrays. Limit the use of 'eval' to assignments.
7554         (func_get_applicability): Undo stylistic pessimisations.
7555         (func_get_automake_snippet, func_get_include_directive): Reduce code
7556         duplication.
7557         (func_modules_transitive_closure, func_modules_add_dummy,
7558         func_modules_notice, func_modules_to_filelist, func_add_file,
7559         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
7560         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
7561         func_create_testdir, func_create_megatestdir): Update documentation.
7562
7563 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7564
7565         * gnulib-tool (func_cache_lookup_module): Store the module name
7566         belonging to the cache variable; error out if two different
7567         module names map to the same cache variable name.
7568
7569 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7570
7571         gnulib-tool: Make caching optional.
7572         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
7573         Update matching short versions of --no-changelog.
7574         (func_usage): Update.
7575         (sed_extract_cache_prog): Renamed from ...
7576         (sed_extract_prog): ... this; revert to old extraction script.
7577         (func_get_description, func_get_status)
7578         (func_get_notice, func_get_applicability, func_get_filelist)
7579         (func_get_dependencies, func_get_autoconf_early_snippet)
7580         (func_get_autoconf_snippet, func_get_automake_snippet)
7581         (func_get_include_directive, func_get_link_directive)
7582         (func_get_license, func_get_maintainer): If $do_cache is false,
7583         use old, non-caching extraction scripts.
7584         Suggestion by Bruno Haible.
7585
7586 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7587
7588         gnulib-tool: cache module metainformation.
7589         * gnulib-tool (sed_extract_prog): Match newline before each
7590         header, and rewrite header to a shell variable suffix.
7591         (func_cache_var, func_cache_lookup_module): New functions,
7592         to turn a module name into a cache variable prefix, and to
7593         look up and cache module metainformation.
7594         (func_get_description, func_get_status)
7595         (func_get_notice, func_get_applicability, func_get_filelist)
7596         (func_get_dependencies, func_get_autoconf_early_snippet)
7597         (func_get_autoconf_snippet, func_get_automake_snippet)
7598         (func_get_include_directive, func_get_link_directive)
7599         (func_get_license, func_get_maintainer): Use
7600         func_cache_lookup_module.
7601
7602 2010-02-07  Bruno Haible  <bruno@clisp.org>
7603
7604         fnctl: Fix missing dependency.
7605         * modules/fcntl (Depends-on): Add getdtablesize.
7606         Reported by John W. Eaton <jwe@gnu.org>.
7607
7608 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
7609
7610         Argp: fix recognition of short alias options.
7611
7612         * lib/argp-parse.c (convert_options): Fix improper use of
7613         `|' between character values.
7614         * tests/test-argp.c (group1_option): New alias option
7615         --read (-r).
7616         (group1_parser): Special handling for 'r'.
7617         (test15): New test case.
7618         (test_fun): Add test15.
7619         * tests/test-argp-2.sh: Update expected --help and --usage
7620         outputs.
7621
7622 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
7623
7624         * tests/test-argp.c: Fix indentation.
7625
7626 2010-02-04  Eric Blake  <ebb9@byu.net>
7627
7628         gettimeofday: expose type of second argument
7629         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
7630         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
7631         * tests/test-gettimeofday.c: Use it to silence warning.
7632         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
7633         the issue.
7634
7635 2010-02-03  Jim Meyering  <meyering@redhat.com>
7636
7637         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
7638         * lib/regcomp.c (TYPE_SIGNED): Define.
7639         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
7640
7641         regcomp.c: avoid a new -Wshadow warning
7642         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
7643
7644 2010-02-01  Jim Meyering  <meyering@redhat.com>
7645
7646         removing useless parentheses in cpp #define directives
7647         For motivation, see commit c0221df4, "define STREQ(a,b)
7648         consistently, removing useless parentheses"
7649         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
7650         * lib/mountlist.c (MNT_IGNORE): Likewise.
7651         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
7652
7653 2010-02-01  Eric Blake  <ebb9@byu.net>
7654
7655         sys_time: use link-warning
7656         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
7657         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
7658         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
7659         * modules/sys_time (Depends-on): Add warn-on-use.
7660         (Makefile.am): Always build replacement.
7661         (configure.ac): Update substitutions.
7662         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
7663         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
7664         bother with SYS_TIME_H.
7665         * modules/gettimeofday (configure.ac): Declare indicator.
7666         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
7667         in use.
7668
7669         closein-tests: silence compiler warning
7670         * tests/test-closein.c (main): Ignore fread result.
7671         * modules/closein-tests (Depends-on): Add ignore-value.
7672
7673         tests: silence warning about system return
7674         * tests/test-areadlink-with-size.c (main): Ignore system result.
7675         * tests/test-areadlink.c (main): Likewise.
7676         * tests/test-areadlinkat-with-size.c (main): Likewise.
7677         * tests/test-areadlinkat.c (main): Likewise.
7678         * tests/test-canonicalize-lgpl.c (main): Likewise.
7679         * tests/test-canonicalize.c (main): Likewise.
7680         * tests/test-chown.c (main): Likewise.
7681         * tests/test-fchownat.c (main): Likewise.
7682         * tests/test-fdutimensat.c (main): Likewise.
7683         * tests/test-fstatat.c (main): Likewise.
7684         * tests/test-futimens.c (main): Likewise.
7685         * tests/test-lchown.c (main): Likewise.
7686         * tests/test-link.c (main): Likewise.
7687         * tests/test-linkat.c (main): Likewise.
7688         * tests/test-lstat.c (main): Likewise.
7689         * tests/test-mkdir.c (main): Likewise.
7690         * tests/test-mkdirat.c (main): Likewise.
7691         * tests/test-mkfifo.c (main): Likewise.
7692         * tests/test-mkfifoat.c (main): Likewise.
7693         * tests/test-mknod.c (main): Likewise.
7694         * tests/test-readlink.c (main): Likewise.
7695         * tests/test-remove.c (main): Likewise.
7696         * tests/test-rename.c (main): Likewise.
7697         * tests/test-renameat.c (main): Likewise.
7698         * tests/test-rmdir.c (main): Likewise.
7699         * tests/test-symlink.c (main): Likewise.
7700         * tests/test-symlinkat.c (main): Likewise.
7701         * tests/test-unlink.c (main): Likewise.
7702         * tests/test-unlinkat.c (main): Likewise.
7703         * tests/test-utimens.c (main): Likewise.
7704         * tests/test-utimensat.c (main): Likewise.
7705         * modules/areadlink-tests (Depends-on): Add ignore-value.
7706         * modules/areadlink-with-size-tests (Depends-on): Likewise.
7707         * modules/areadlinkat-tests (Depends-on): Likewise.
7708         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
7709         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
7710         * modules/canonicalize-tests (Depends-on): Likewise.
7711         * modules/chown-tests (Depends-on): Likewise.
7712         * modules/fdutimensat-tests (Depends-on): Likewise.
7713         * modules/futimens-tests (Depends-on): Likewise.
7714         * modules/lchown-tests (Depends-on): Likewise.
7715         * modules/link-tests (Depends-on): Likewise.
7716         * modules/linkat-tests (Depends-on): Likewise.
7717         * modules/lstat-tests (Depends-on): Likewise.
7718         * modules/mkdir-tests (Depends-on): Likewise.
7719         * modules/mkfifo-tests (Depends-on): Likewise.
7720         * modules/mkfifoat-tests (Depends-on): Likewise.
7721         * modules/mknod-tests (Depends-on): Likewise.
7722         * modules/openat-tests (Depends-on): Likewise.
7723         * modules/readlink-tests (Depends-on): Likewise.
7724         * modules/remove-tests (Depends-on): Likewise.
7725         * modules/rename-tests (Depends-on): Likewise.
7726         * modules/renameat-tests (Depends-on): Likewise.
7727         * modules/rmdir-tests (Depends-on): Likewise.
7728         * modules/symlink-tests (Depends-on): Likewise.
7729         * modules/symlinkat-tests (Depends-on): Likewise.
7730         * modules/unlink-tests (Depends-on): Likewise.
7731         * modules/utimens-tests (Depends-on): Likewise.
7732         * modules/utimensat-tests (Depends-on): Likewise.
7733
7734 2010-01-31  Bruno Haible  <bruno@clisp.org>
7735
7736         Perform the same test for many <math.h> functions.
7737         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
7738         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
7739         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
7740         of gl_MATHFUNC.
7741         * modules/acos (configure.ac): Likewise.
7742         * modules/asin (configure.ac): Likewise.
7743         * modules/atan (configure.ac): Likewise.
7744         * modules/atan2 (configure.ac): Likewise.
7745         * modules/cbrt (configure.ac): Likewise.
7746         * modules/copysign (configure.ac): Likewise.
7747         * modules/cos (configure.ac): Likewise.
7748         * modules/cosh (configure.ac): Likewise.
7749         * modules/erf (configure.ac): Likewise.
7750         * modules/erfc (configure.ac): Likewise.
7751         * modules/exp (configure.ac): Likewise.
7752         * modules/fmod (configure.ac): Likewise.
7753         * modules/hypot (configure.ac): Likewise.
7754         * modules/j0 (configure.ac): Likewise.
7755         * modules/j1 (configure.ac): Likewise.
7756         * modules/jn (configure.ac): Likewise.
7757         * modules/lgamma (configure.ac): Likewise.
7758         * modules/log (configure.ac): Likewise.
7759         * modules/log10 (configure.ac): Likewise.
7760         * modules/log1p (configure.ac): Likewise.
7761         * modules/pow (configure.ac): Likewise.
7762         * modules/remainder (configure.ac): Likewise.
7763         * modules/sin (configure.ac): Likewise.
7764         * modules/sinh (configure.ac): Likewise.
7765         * modules/tan (configure.ac): Likewise.
7766         * modules/tanh (configure.ac): Likewise.
7767         * modules/y0 (configure.ac): Likewise.
7768         * modules/y1 (configure.ac): Likewise.
7769         * modules/yn (configure.ac): Likewise.
7770         Suggested by Paolo Bonzini.
7771
7772 2010-01-31  Bruno Haible  <bruno@clisp.org>
7773
7774         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
7775
7776 2010-01-31  Bruno Haible  <bruno@clisp.org>
7777
7778         Work around getdelim() bug on FreeBSD 8.0.
7779         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
7780         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
7781         not work.
7782         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
7783         is 1.
7784         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
7785         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
7786         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
7787         a non-zero size.
7788         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
7789
7790 2010-01-31  Bruno Haible  <bruno@clisp.org>
7791
7792         Work around getline() bug on FreeBSD 8.0.
7793         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
7794         and a non-zero size.
7795         * tests/test-getline.c (main): Likewise.
7796         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
7797         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
7798
7799 2010-01-28  Eric Blake  <ebb9@byu.net>
7800
7801         regex: fix build failure
7802         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
7803         platforms.
7804
7805 2010-01-28  Jim Meyering  <meyering@redhat.com>
7806
7807         regex: do not ignore memory allocation failure
7808         * lib/regex_internal.c (create_cd_newstate): Detect
7809         re_node_set_init_copy failure.   Extracted from glibc commit
7810         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
7811
7812         regex: sync more white-space changes from libc
7813         * lib/regex_internal.c: White-space only changes.
7814         * lib/regexec.c: Likewise.
7815
7816         regex: add many uses of __attribute_warn_unused_result__
7817         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
7818         * lib/regexec.c: Likewise.
7819         Extracted from a messy glibc commit.
7820
7821         regcomp.c: spelling and merge-artifact from glibc
7822         * lib/regcomp.c: Merge remainder of glibc's
7823         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
7824
7825         regcomp.c: sync white-space changes from glibc
7826         * lib/regcomp.c: Merge to accommodate white space
7827         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
7828
7829         regcomp.c: do not ignore internal return values
7830         * lib/regcomp.c: Do not ignore internal return values.
7831         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
7832         but without its white-space changes and spelling fixes.
7833
7834         regex_internal.h: define __attribute_warn_unused_result__
7835         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
7836
7837         maint: add a syntax-check rule to check for vulnerable Makefile.in
7838         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
7839
7840 2010-01-27  Jim Meyering  <meyering@redhat.com>
7841
7842         ncftpput-ftp: clean up spaces
7843         * build-aux/ncftpput-ftp: Make Copyright line consistent.
7844         Remove trailing blanks.
7845
7846 2010-01-27  Simon Josefsson  <simon@josefsson.org>
7847
7848         * build-aux/git-version-gen: Fix copyright statement.
7849         * build-aux/gnupload: Likewise.
7850         * tests/test-arcfour.c: Likewise.
7851         * tests/test-arctwo.c: Likewise.
7852         * tests/test-count-one-bits.c: Likewise.
7853         * tests/test-crc.c: Likewise.
7854         * tests/test-des.c: Likewise.
7855         * tests/test-gc-arcfour.c: Likewise.
7856         * tests/test-gc-arctwo.c: Likewise.
7857         * tests/test-gc-des.c: Likewise.
7858         * tests/test-gc-hmac-md5.c: Likewise.
7859         * tests/test-gc-hmac-sha1.c: Likewise.
7860         * tests/test-gc-md2.c: Likewise.
7861         * tests/test-gc-md4.c: Likewise.
7862         * tests/test-gc-md5.c: Likewise.
7863         * tests/test-gc-pbkdf2-sha1.c: Likewise.
7864         * tests/test-gc-rijndael.c: Likewise.
7865         * tests/test-gc-sha1.c: Likewise.
7866         * tests/test-gc.c: Likewise.
7867         * tests/test-gethostname.c: Likewise.
7868         * tests/test-gettimeofday.c: Likewise.
7869         * tests/test-hash.c: Likewise.
7870         * tests/test-hmac-md5.c: Likewise.
7871         * tests/test-hmac-sha1.c: Likewise.
7872         * tests/test-md2.c: Likewise.
7873         * tests/test-md4.c: Likewise.
7874         * tests/test-md5.c: Likewise.
7875         * tests/test-memchr.c: Likewise.
7876         * tests/test-memchr2.c: Likewise.
7877         * tests/test-memcmp.c: Likewise.
7878         * tests/test-memmem.c: Likewise.
7879         * tests/test-memrchr.c: Likewise.
7880         * tests/test-rawmemchr.c: Likewise.
7881         * tests/test-read-file.c: Likewise.
7882         * tests/test-rijndael.c: Likewise.
7883         * tests/test-sockets.c: Likewise.
7884         * tests/test-strchrnul.c: Likewise.
7885         * tests/test-strstr.c: Likewise.
7886         * tests/test-strtod.c: Likewise.
7887         * build-aux/ncftpput-ftp: Likewise.
7888
7889 2010-01-26  Eric Blake  <ebb9@byu.net>
7890
7891         ignore-value: update recommended header name
7892         * modules/ignore-value (Include): Only use <> for headers that
7893         exist in glibc.
7894
7895 2010-01-26  Jim Meyering  <meyering@redhat.com>
7896
7897         test-userspec.c: avoid compiler warnings
7898         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
7899         and "initialization discards qualifiers..." warnings.
7900         Put the first "uid" in its own scope, and make char* members "const".
7901
7902 2010-01-25  Bruno Haible  <bruno@clisp.org>
7903
7904         gnulib-tool: Make warning diagnostics consistent.
7905         * gnulib-tool (func_warning): New function.
7906         Use it everywhere where gnulib-tool produces output to stderr and it is
7907         not a fatal error.
7908
7909 2010-01-25  Bruno Haible  <bruno@clisp.org>
7910
7911         Fix test dependencies.
7912         * modules/xstrtol-tests (Depends-on): Add inttypes.
7913         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
7914
7915 2010-01-25 Pádraig Brady <P@draigBrady.com>
7916
7917         syntax-check: detect incorrect boolean macro values in config.h
7918         * modules/maintainer-makefile (configure.ac): Parameterize the location
7919         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
7920         The logic is from Eric Blake and the location indicated by Jim Meyering.
7921         Note the more natural CONFIG_HEADER name is prohibited by automake
7922         for backwards compatibility reasons.
7923         * top/maint.mk (sc_Wundef_boolean): New rule.
7924
7925 2010-01-25  Jim Meyering  <meyering@redhat.com>
7926
7927         bootstrap: detect MacOS 10.6's shasum, too
7928         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
7929         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
7930
7931 2010-01-23  Jim Meyering  <meyering@redhat.com>
7932
7933         xstrtoll: new module
7934         * modules/xstrtoll: New file.
7935         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
7936         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
7937         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
7938         ./configure fails if you use this module and lack "long long".
7939         * modules/xstrtoll-tests: New module.
7940         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
7941         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
7942         new init.sh-based test framework.
7943
7944 2010-01-24  Bruno Haible  <bruno@clisp.org>
7945
7946         Tests for module 'yn'.
7947         * modules/yn-tests: New file.
7948         * tests/test-yn.c: New file.
7949
7950         Tests for module 'y1'.
7951         * modules/y1-tests: New file.
7952         * tests/test-y1.c: New file.
7953
7954         Tests for module 'y0'.
7955         * modules/y0-tests: New file.
7956         * tests/test-y0.c: New file.
7957
7958         Tests for module 'tanh'.
7959         * modules/tanh-tests: New file.
7960         * tests/test-tanh.c: New file.
7961
7962         Tests for module 'tan'.
7963         * modules/tan-tests: New file.
7964         * tests/test-tan.c: New file.
7965
7966         Tests for module 'sqrt'.
7967         * modules/sqrt-tests: New file.
7968         * tests/test-sqrt.c: New file.
7969
7970         Tests for module 'sinh'.
7971         * modules/sinh-tests: New file.
7972         * tests/test-sinh.c: New file.
7973
7974         Tests for module 'sin'.
7975         * modules/sin-tests: New file.
7976         * tests/test-sin.c: New file.
7977
7978         Tests for module 'rint'.
7979         * modules/rint-tests: New file.
7980         * tests/test-rint.c: New file.
7981
7982         Tests for module 'remainder'.
7983         * modules/remainder-tests: New file.
7984         * tests/test-remainder.c: New file.
7985
7986         Tests for module 'pow'.
7987         * modules/pow-tests: New file.
7988         * tests/test-pow.c: New file.
7989
7990         Tests for module 'nextafter'.
7991         * modules/nextafter-tests: New file.
7992         * tests/test-nextafter.c: New file.
7993
7994         Tests for module 'modf'.
7995         * modules/modf-tests: New file.
7996         * tests/test-modf.c: New file.
7997
7998         Tests for module 'logb'.
7999         * modules/logb-tests: New file.
8000         * tests/test-logb.c: New file.
8001
8002         Tests for module 'log1p'.
8003         * modules/log1p-tests: New file.
8004         * tests/test-log1p.c: New file.
8005
8006         Tests for module 'log10'.
8007         * modules/log10-tests: New file.
8008         * tests/test-log10.c: New file.
8009
8010         Tests for module 'log'.
8011         * modules/log-tests: New file.
8012         * tests/test-log.c: New file.
8013
8014         Tests for module 'lgamma'.
8015         * modules/lgamma-tests: New file.
8016         * tests/test-lgamma.c: New file.
8017
8018         Tests for module 'ldexp'.
8019         * modules/ldexp-tests: New file.
8020         * tests/test-ldexp.c: New file.
8021
8022         Tests for module 'jn'.
8023         * modules/jn-tests: New file.
8024         * tests/test-jn.c: New file.
8025
8026         Tests for module 'j1'.
8027         * modules/j1-tests: New file.
8028         * tests/test-j1.c: New file.
8029
8030         Tests for module 'j0'.
8031         * modules/j0-tests: New file.
8032         * tests/test-j0.c: New file.
8033
8034         Tests for module 'hypot'.
8035         * modules/hypot-tests: New file.
8036         * tests/test-hypot.c: New file.
8037
8038         Tests for module 'fmod'.
8039         * modules/fmod-tests: New file.
8040         * tests/test-fmod.c: New file.
8041
8042         Tests for module 'fabs'.
8043         * modules/fabs-tests: New file.
8044         * tests/test-fabs.c: New file.
8045
8046         Tests for module 'exp'.
8047         * modules/exp-tests: New file.
8048         * tests/test-exp.c: New file.
8049
8050         Tests for module 'erfc'.
8051         * modules/erfc-tests: New file.
8052         * tests/test-erfc.c: New file.
8053
8054         Tests for module 'erf'.
8055         * modules/erf-tests: New file.
8056         * tests/test-erf.c: New file.
8057
8058         Tests for module 'cosh'.
8059         * modules/cosh-tests: New file.
8060         * tests/test-cosh.c: New file.
8061
8062         Tests for module 'cos'.
8063         * modules/cos-tests: New file.
8064         * tests/test-cos.c: New file.
8065
8066         Tests for module 'copysign'.
8067         * modules/copysign-tests: New file.
8068         * tests/test-copysign.c: New file.
8069
8070         Tests for module 'cbrt'.
8071         * modules/cbrt-tests: New file.
8072         * tests/test-cbrt.c: New file.
8073
8074         Tests for module 'atan2'.
8075         * modules/atan2-tests: New file.
8076         * tests/test-atan2.c: New file.
8077
8078         Tests for module 'atan'.
8079         * modules/atan-tests: New file.
8080         * tests/test-atan.c: New file.
8081
8082         Tests for module 'asin'.
8083         * modules/asin-tests: New file.
8084         * tests/test-asin.c: New file.
8085
8086         Tests for module 'acos'.
8087         * modules/acos-tests: New file.
8088         * tests/test-acos.c: New file.
8089
8090 2010-01-24  Bruno Haible  <bruno@clisp.org>
8091
8092         Fix tests for common <math.h> functions.
8093         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
8094         code snippet that references the function pointer, rather than merely
8095         calling the function. Substitute the FUNC_LIBM variable.
8096         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
8097         * modules/acos (configure.ac): Likewise.
8098         * modules/asin (configure.ac): Likewise.
8099         * modules/atan (configure.ac): Likewise.
8100         * modules/atan2 (configure.ac): Likewise.
8101         * modules/cbrt (configure.ac): Likewise.
8102         * modules/copysign (configure.ac): Likewise.
8103         * modules/cos (configure.ac): Likewise.
8104         * modules/cosh (configure.ac): Likewise.
8105         * modules/erf (configure.ac): Likewise.
8106         * modules/erfc (configure.ac): Likewise.
8107         * modules/exp (configure.ac): Likewise.
8108         * modules/fabs (configure.ac): Likewise.
8109         * modules/fmod (configure.ac): Likewise.
8110         * modules/hypot (configure.ac): Likewise.
8111         * modules/j0 (configure.ac): Likewise.
8112         * modules/j1 (configure.ac): Likewise.
8113         * modules/jn (configure.ac): Likewise.
8114         * modules/ldexp (configure.ac): Likewise.
8115         * modules/lgamma (configure.ac): Likewise.
8116         * modules/log (configure.ac): Likewise.
8117         * modules/log10 (configure.ac): Likewise.
8118         * modules/log1p (configure.ac): Likewise.
8119         * modules/logb (configure.ac): Likewise.
8120         * modules/modf (configure.ac): Likewise.
8121         * modules/nextafter (configure.ac): Likewise.
8122         * modules/pow (configure.ac): Likewise.
8123         * modules/remainder (configure.ac): Likewise.
8124         * modules/rint (configure.ac): Likewise.
8125         * modules/sin (configure.ac): Likewise.
8126         * modules/sinh (configure.ac): Likewise.
8127         * modules/tan (configure.ac): Likewise.
8128         * modules/tanh (configure.ac): Likewise.
8129         * modules/y0 (configure.ac): Likewise.
8130         * modules/y1 (configure.ac): Likewise.
8131         * modules/yn (configure.ac): Likewise.
8132
8133 2010-01-24  Bruno Haible  <bruno@clisp.org>
8134
8135         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
8136         * tests/test-acosl.c (x): New variable.
8137         (main): Store argument in x and fetch it from x.
8138         * tests/test-asinl.c (x): New variable.
8139         (main): Store argument in x and fetch it from x.
8140         * tests/test-atanl.c (x): New variable.
8141         (main): Store argument in x and fetch it from x.
8142         * tests/test-cosl.c (x): New variable.
8143         (main): Store argument in x and fetch it from x.
8144         * tests/test-expl.c (x): New variable.
8145         (main): Store argument in x and fetch it from x.
8146         * tests/test-logl.c (x): New variable.
8147         (main): Store argument in x and fetch it from x.
8148         * tests/test-sinl.c (x): New variable.
8149         (main): Store argument in x and fetch it from x.
8150         * tests/test-sqrtl.c (x): New variable.
8151         (main): Store argument in x and fetch it from x.
8152         * tests/test-tanl.c (x): New variable.
8153         (main): Store argument in x and fetch it from x.
8154
8155 2010-01-24  Bruno Haible  <bruno@clisp.org>
8156
8157         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
8158         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
8159         assignments to the initial TESTS_ENVIRONMENT.
8160         * doc/gnulib.texi (Unit test modules): Document it.
8161         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
8162         TESTS_ENVIRONMENT.
8163         * modules/btowc-tests (Makefile.am): Likewise.
8164         * modules/c-stack-tests (Makefile.am): Likewise.
8165         * modules/c-strcase-tests (Makefile.am): Likewise.
8166         * modules/copy-file-tests (Makefile.am): Likewise.
8167         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
8168         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
8169         * modules/mbrtowc-tests (Makefile.am): Likewise.
8170         * modules/mbscasecmp-tests (Makefile.am): Likewise.
8171         * modules/mbscasestr-tests (Makefile.am): Likewise.
8172         * modules/mbschr-tests (Makefile.am): Likewise.
8173         * modules/mbscspn-tests (Makefile.am): Likewise.
8174         * modules/mbsinit-tests (Makefile.am): Likewise.
8175         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
8176         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
8177         * modules/mbspbrk-tests (Makefile.am): Likewise.
8178         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
8179         * modules/mbsrchr-tests (Makefile.am): Likewise.
8180         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
8181         * modules/mbsspn-tests (Makefile.am): Likewise.
8182         * modules/mbsstr-tests (Makefile.am): Likewise.
8183         * modules/nl_langinfo-tests (Makefile.am): Likewise.
8184         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
8185         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
8186         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
8187         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
8188         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
8189         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
8190         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
8191         * modules/wcrtomb-tests (Makefile.am): Likewise.
8192         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
8193         * modules/wcsrtombs-tests (Makefile.am): Likewise.
8194         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
8195         assignments from TESTS_ENVIRONMENT.
8196         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
8197         augmentation.
8198         * modules/argp-version-etc-tests (Makefile.am): Likewise.
8199         * modules/atexit-tests (Makefile.am): Likewise.
8200         * modules/binary-io-tests (Makefile.am): Likewise.
8201         * modules/closein-tests (Makefile.am): Likewise.
8202         * modules/dprintf-posix-tests (Makefile.am): Likewise.
8203         * modules/exclude-tests (Makefile.am): Likewise.
8204         * modules/fflush-tests (Makefile.am): Likewise.
8205         * modules/fpending-tests (Makefile.am): Likewise.
8206         * modules/fprintf-posix-tests (Makefile.am): Likewise.
8207         * modules/freadahead-tests (Makefile.am): Likewise.
8208         * modules/freadptr-tests (Makefile.am): Likewise.
8209         * modules/freadseek-tests (Makefile.am): Likewise.
8210         * modules/fseek-tests (Makefile.am): Likewise.
8211         * modules/fseeko-tests (Makefile.am): Likewise.
8212         * modules/ftell-tests (Makefile.am): Likewise.
8213         * modules/ftello-tests (Makefile.am): Likewise.
8214         * modules/idpriv-drop-tests (Makefile.am): Likewise.
8215         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
8216         * modules/lseek-tests (Makefile.am): Likewise.
8217         * modules/parse-duration-tests (Makefile.am): Likewise.
8218         * modules/perror-tests (Makefile.am): Likewise.
8219         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
8220         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
8221         * modules/pipe-tests (Makefile.am): Likewise.
8222         * modules/pread-tests (Makefile.am): Likewise.
8223         * modules/printf-posix-tests (Makefile.am): Likewise.
8224         * modules/select-tests (Makefile.am): Likewise.
8225         * modules/sigpipe-tests (Makefile.am): Likewise.
8226         * modules/tsearch-tests (Makefile.am): Likewise.
8227         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
8228         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
8229         * modules/uniname/uniname-tests (Makefile.am): Likewise.
8230         * modules/uniwidth/width-tests (Makefile.am): Likewise.
8231         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
8232         * modules/version-etc-tests (Makefile.am): Likewise.
8233         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
8234         * modules/vprintf-posix-tests (Makefile.am): Likewise.
8235         * modules/xalloc-die-tests (Makefile.am): Likewise.
8236         * modules/xprintf-posix-tests (Makefile.am): Likewise.
8237         * modules/xstrtoimax-tests (Makefile.am): Likewise.
8238         * modules/xstrtol-tests (Makefile.am): Likewise.
8239         * modules/xstrtoumax-tests (Makefile.am): Likewise.
8240         * modules/yesno-tests (Makefile.am): Likewise.
8241         Suggested by Jim Meyering.
8242
8243 2010-01-24  Bruno Haible  <bruno@clisp.org>
8244
8245         More documentation.
8246         * doc/gnulib.texi (Writing modules): New chapter.
8247         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
8248         the new chapter.
8249
8250 2010-01-24  Jim Meyering  <meyering@redhat.com>
8251
8252         maint.mk: do not prepend "./" after filtering
8253         * top/maint.mk (_prepend_srcdir_prefix): New variable
8254         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
8255         "./" when $(srcdir) is ".".
8256
8257         define STREQ(a,b) consistently, removing useless parentheses
8258         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
8259         since the only risk is that "a" or "b" contains an unparenthesized
8260         comma, but if either did that, STREQ would have 3 or more arguments.
8261         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
8262         * lib/fts.c (STREQ): Remove unnecessary parentheses.
8263         * lib/hash-triple.c (STREQ): Likewise.
8264         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
8265         * lib/getugroups.c (STREQ): Likewise.
8266
8267 2010-01-23  Jim Meyering  <meyering@redhat.com>
8268
8269         maint.mk: fix syntax-check in a non-srcdir build directory
8270         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
8271         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
8272
8273 2010-01-22  Jim Meyering  <meyering@redhat.com>
8274
8275         userspec: add unit tests
8276         * tests/test-userspec.c: New file.
8277         * modules/userspec-tests: Likewise.
8278
8279 2010-01-21  Jim Meyering  <meyering@redhat.com>
8280
8281         maint.mk: handle source file names containing "." robustly
8282         * top/maint.mk (_dot_escaped_srcdir): Define.
8283         (VC_LIST): Use it in LHS of sed substitution.
8284
8285 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
8286
8287         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
8288         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
8289         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
8290         from a non-srcdir build.
8291
8292 2010-01-20  Eric Blake  <ebb9@byu.net>
8293
8294         warn-on-use: use instead of link-warning
8295         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
8296         * modules/unistd (Depends-on, Makefile.am): Likewise.
8297         * modules/arpa_inet (Depends-on): Replace link-warning with
8298         warn-on-use.
8299         (Makefile.am): Update rules accordingly.
8300         * modules/ctype (Depends-on, Makefile.am): Likewise.
8301         * modules/dirent (Depends-on, Makefile.am): Likewise.
8302         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
8303         * modules/inttypes (Depends-on, Makefile.am): Likewise.
8304         * modules/langinfo (Depends-on, Makefile.am): Likewise.
8305         * modules/locale (Depends-on, Makefile.am): Likewise.
8306         * modules/math (Depends-on, Makefile.am): Likewise.
8307         * modules/search (Depends-on, Makefile.am): Likewise.
8308         * modules/signal (Depends-on, Makefile.am): Likewise.
8309         * modules/spawn (Depends-on, Makefile.am): Likewise.
8310         * modules/stdlib (Depends-on, Makefile.am): Likewise.
8311         * modules/string (Depends-on, Makefile.am): Likewise.
8312         * modules/strings (Depends-on, Makefile.am): Likewise.
8313         * modules/sys_file (Depends-on, Makefile.am): Likewise.
8314         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
8315         * modules/sys_select (Depends-on, Makefile.am): Likewise.
8316         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
8317         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
8318         * modules/sys_times (Depends-on, Makefile.am): Likewise.
8319         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
8320         * modules/wchar (Depends-on, Makefile.am): Likewise.
8321         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
8322         should be poisoned.
8323         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
8324         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
8325         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
8326         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
8327         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
8328         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
8329         * m4/math_h.m4 (gl_MATH_H): Likewise.
8330         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
8331         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
8332         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
8333         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
8334         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
8335         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
8336         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
8337         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
8338         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
8339         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
8340         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
8341         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
8342         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
8343         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
8344         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
8345         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
8346         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
8347         GL_LINK_WARNING.
8348         * lib/ctype.in.h: Likewise.
8349         * lib/dirent.in.h: Likewise.
8350         * lib/fcntl.in.h: Likewise.
8351         * lib/inttypes.in.h: Likewise.
8352         * lib/langinfo.in.h: Likewise.
8353         * lib/locale.in.h: Likewise.
8354         * lib/math.in.h: Likewise.
8355         * lib/search.in.h: Likewise.
8356         * lib/signal.in.h: Likewise.
8357         * lib/spawn.in.h: Likewise.
8358         * lib/stdio.in.h: Likewise.
8359         * lib/stdlib.in.h: Likewise.
8360         * lib/string.in.h: Likewise.
8361         * lib/strings.in.h: Likewise.
8362         * lib/sys_file.in.h: Likewise.
8363         * lib/sys_ioctl.in.h: Likewise.
8364         * lib/sys_select.in.h: Likewise.
8365         * lib/sys_socket.in.h: Likewise.
8366         * lib/sys_stat.in.h: Likewise.
8367         * lib/sys_times.in.h: Likewise.
8368         * lib/sys_utsname.in.h: Likewise.
8369         * lib/unistd.in.h: Likewise.
8370         * lib/wchar.in.h: Likewise.
8371
8372 2010-01-20  Bruno Haible  <bruno@clisp.org>
8373
8374         Avoid duplicate -lm.
8375         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
8376         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
8377         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
8378         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
8379         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
8380         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
8381         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
8382         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
8383         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
8384         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
8385         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
8386         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
8387         Reported by Paolo Bonzini.
8388
8389 2010-01-19  Bruno Haible  <bruno@clisp.org>
8390
8391         langinfo, nl_langinfo: Relicense under LGPLv2+.
8392         * modules/langinfo (License): Change to LGPLv2+.
8393         * modules/nl_langinfo (License): Likewise.
8394         Patch by David Lutterkort <lutter@redhat.com>.
8395
8396 2010-01-19  Bruno Haible  <bruno@clisp.org>
8397
8398         Avoid compilation error with cc on OSF/1 5.1.
8399         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
8400         statement, not before.
8401         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8402
8403 2010-01-18  Bruno Haible  <bruno@clisp.org>
8404
8405         Avoid a link error due to the __printf__ symbol.
8406         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
8407         and 2.6.x.
8408         (__format__, __printf__): Remove definitions.
8409         * lib/argp-fmtstream.h: Likewise.
8410         * lib/argp.h: Likewise.
8411         * lib/error.h: Likewise.
8412         * lib/vasnprintf.h: Likewise.
8413         * lib/xprintf.h: Likewise.
8414         * lib/xvasprintf.h: Likewise.
8415         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8416
8417 2010-01-18  Bruno Haible  <bruno@clisp.org>
8418
8419         Tests for module 'tanl'.
8420         * modules/tanl-tests: New file.
8421         * tests/test-tanl.c: New file.
8422
8423         Tests for module 'sqrtl'.
8424         * modules/sqrtl-tests: New file.
8425         * tests/test-sqrtl.c: New file.
8426
8427         Tests for module 'sinl'.
8428         * modules/sinl-tests: New file.
8429         * tests/test-sinl.c: New file.
8430
8431         Tests for module 'logl'.
8432         * modules/logl-tests: New file.
8433         * tests/test-logl.c: New file.
8434
8435         Tests for module 'expl'.
8436         * modules/expl-tests: New file.
8437         * tests/test-expl.c: New file.
8438
8439         Tests for module 'cosl'.
8440         * modules/cosl-tests: New file.
8441         * tests/test-cosl.c: New file.
8442
8443         Tests for module 'atanl'.
8444         * modules/atanl-tests: New file.
8445         * tests/test-atanl.c: New file.
8446
8447         Tests for module 'asinl'.
8448         * modules/asinl-tests: New file.
8449         * tests/test-asinl.c: New file.
8450
8451         Tests for module 'acosl'.
8452         * modules/acosl-tests: New file.
8453         * tests/test-acosl.c: New file.
8454
8455         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
8456         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
8457         tanl): Use the standard gnulib idiom.
8458         * lib/cosl.c: Don't include trigl.c and sincosl.c.
8459         * lib/sinl.c: Likewise.
8460         * lib/tanl.c: Don't include trigl.c.
8461         (kernel_tanl): Make static.
8462         * lib/sincosl.c: Include trigl.h first.
8463         * lib/trigl.c: Likewise.
8464         * m4/acosl.m4: New file.
8465         * m4/asinl.m4: New file.
8466         * m4/atanl.m4: New file.
8467         * m4/cosl.m4: New file.
8468         * m4/expl.m4: New file.
8469         * m4/logl.m4: New file.
8470         * m4/sinl.m4: New file.
8471         * m4/sqrtl.m4: New file.
8472         * m4/tanl.m4: New file.
8473         * m4/mathl.m4: Remove file.
8474         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
8475         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
8476         Don't initialize GNULIB_MATHL.
8477         * modules/acosl: New file.
8478         * modules/asinl: New file.
8479         * modules/atanl: New file.
8480         * modules/cosl: New file.
8481         * modules/expl: New file.
8482         * modules/logl: New file.
8483         * modules/sinl: New file.
8484         * modules/sqrtl: New file.
8485         * modules/tanl: New file.
8486         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
8487         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
8488         substitute GNULIB_MATHL.
8489         * modules/mathl: Rewritten.
8490         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
8491         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
8492         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
8493         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
8494         * doc/posix-functions/expl.texi: Mention the 'expl' module.
8495         * doc/posix-functions/logl.texi: Mention the 'logl' module.
8496         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
8497         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
8498         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
8499
8500 2010-01-18  Bruno Haible  <bruno@clisp.org>
8501
8502         sqrt: Make gl_FUNC_SQRT requirable.
8503         * m4/sqrt.m4: New file.
8504         * modules/sqrt (Files): Add it.
8505         (configure.ac): Invoke gl_FUNC_SQRT.
8506
8507 2010-01-18  Bruno Haible  <bruno@clisp.org>
8508
8509         New modules for common <math.h> functions.
8510         * m4/mathfunc.m4: New file.
8511         * modules/acos: New file.
8512         * modules/asin: New file.
8513         * modules/atan: New file.
8514         * modules/atan2: New file.
8515         * modules/cbrt: New file.
8516         * modules/copysign: New file.
8517         * modules/cos: New file.
8518         * modules/cosh: New file.
8519         * modules/erf: New file.
8520         * modules/erfc: New file.
8521         * modules/exp: New file.
8522         * modules/fabs: New file.
8523         * modules/fmod: New file.
8524         * modules/hypot: New file.
8525         * modules/j0: New file.
8526         * modules/j1: New file.
8527         * modules/jn: New file.
8528         * modules/ldexp: New file.
8529         * modules/lgamma: New file.
8530         * modules/log: New file.
8531         * modules/log10: New file.
8532         * modules/log1p: New file.
8533         * modules/logb: New file.
8534         * modules/modf: New file.
8535         * modules/nextafter: New file.
8536         * modules/pow: New file.
8537         * modules/remainder: New file.
8538         * modules/rint: New file.
8539         * modules/sin: New file.
8540         * modules/sinh: New file.
8541         * modules/sqrt: New file.
8542         * modules/tan: New file.
8543         * modules/tanh: New file.
8544         * modules/y0: New file.
8545         * modules/y1: New file.
8546         * modules/yn: New file.
8547         * doc/posix-functions/acos.texi: Mention the 'acos' module.
8548         * doc/posix-functions/asin.texi: Mention the 'asin' module.
8549         * doc/posix-functions/atan.texi: Mention the 'atan' module.
8550         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
8551         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
8552         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
8553         * doc/posix-functions/cos.texi: Mention the 'cos' module.
8554         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
8555         * doc/posix-functions/erf.texi: Mention the 'erf' module.
8556         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
8557         * doc/posix-functions/exp.texi: Mention the 'exp' module.
8558         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
8559         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
8560         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
8561         * doc/posix-functions/j0.texi: Mention the 'j0' module.
8562         * doc/posix-functions/j1.texi: Mention the 'j1' module.
8563         * doc/posix-functions/jn.texi: Mention the 'jn' module.
8564         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
8565         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
8566         * doc/posix-functions/log.texi: Mention the 'log' module.
8567         * doc/posix-functions/log10.texi: Mention the 'log10' module.
8568         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
8569         * doc/posix-functions/logb.texi: Mention the 'logb' module.
8570         * doc/posix-functions/modf.texi: Mention the 'modf' module.
8571         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
8572         * doc/posix-functions/pow.texi: Mention the 'pow' module.
8573         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
8574         * doc/posix-functions/rint.texi: Mention the 'rint' module.
8575         * doc/posix-functions/sin.texi: Mention the 'sin' module.
8576         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
8577         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
8578         * doc/posix-functions/tan.texi: Mention the 'tan' module.
8579         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
8580         * doc/posix-functions/y0.texi: Mention the 'y0' module.
8581         * doc/posix-functions/y1.texi: Mention the 'y1' module.
8582         * doc/posix-functions/yn.texi: Mention the 'yn' module.
8583
8584 2010-01-18  Jim Meyering  <meyering@redhat.com>
8585
8586         ignore-value: relax license to LGPLv2+
8587         * modules/ignore-value (License): Relax to LGPLv2+.
8588
8589         getdate: don't leak when TZ contains two or more '"'s
8590         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
8591         double quote in TZ after the first one.
8592
8593         readtokens: do not leak internal token_lengths buffer
8594         * lib/readtokens.c (readtokens): Free the local, lengths,
8595         when the supplied "token_lengths" parameter is NULL.
8596
8597 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8598
8599         Fix a couple of missing LIBTHREAD link failures on AIX.
8600         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
8601         $(LIBTHREAD).
8602         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
8603
8604         Link test-poll against INET_PTON_LIB.
8605         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
8606         for inet_pton on Solaris 10.
8607
8608 2010-01-17  Bruno Haible  <bruno@clisp.org>
8609
8610         unistdio/*-sprintf: Fix typo in module description.
8611         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
8612         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
8613         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
8614         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
8615         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
8616         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
8617         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
8618         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8619
8620 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8621
8622         gnulib-tool: fix filelist for AIX, HP-UX ksh.
8623         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
8624         variables in shell case patterns, for AIX and HP-UX ksh.
8625
8626         Split large sed scripts, for HP-UX sed.
8627         * modules/stdio: Split sed scripts around 50 sed commands,
8628         to avoid HP-UX limit of 99 commands, in the near future.
8629         * modules/string: Likewise.
8630         * modules/unistd: Likewise.
8631
8632         gnulib-tool: avoid writing in the current directory.
8633         * gnulib-tool (func_emit_lib_Makefile_am)
8634         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
8635         not in the current directory, so concurrent gnulib-tool
8636         instances do not interfere.
8637
8638 2010-01-16  Jim Meyering  <meyering@redhat.com>
8639
8640         doc: update users.txt
8641         * users.txt: Add grep.
8642         (diffutils, gzip): Update URLs.
8643
8644 2010-01-12  Bruno Haible  <bruno@clisp.org>
8645
8646         posix_spawn: Avoid test failure on Cygwin.
8647         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
8648         characters.
8649         Reported by Simon Josefsson.
8650
8651 2010-01-12  Bruno Haible  <bruno@clisp.org>
8652
8653         * tests/test-cond.c (main): When skipping the test, show the reason.
8654
8655 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8656
8657         * lib/striconv.c (str_cd_iconv): Avoid if before free.
8658
8659 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8660
8661         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
8662         VC_LIST_ALWAYS_EXCLUDE_REGEX.
8663
8664 2010-01-12  Eric Blake  <ebb9@byu.net>
8665
8666         build: guarantee AS_VAR_IF
8667         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
8668         (gl_AS_VAR_IF): Move...
8669         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
8670         Reported by Simon Josefsson.
8671
8672 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8673
8674         * lib/stdio.in.h: Fix typo.
8675
8676 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8677
8678         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
8679         libgpg-error.
8680
8681 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8682
8683         * tests/test-xalloc-die.sh: Use $EXEEXT.
8684
8685 2010-01-12  Simon Josefsson  <simon@josefsson.org>
8686             Bruno Haible  <bruno@clisp.org>
8687
8688         getlogin, getlogin_r: Avoid test failure.
8689         * tests/test-getlogin.c: Include <stdio.h>.
8690         (main): Skip the test when the function fails because stdin is not a
8691         tty.
8692         * tests/test-getlogin_r.c: Include <stdio.h>.
8693         (main): Skip the test when the function fails because stdin is not a
8694         tty.
8695
8696 2010-01-11  Eric Blake  <ebb9@byu.net>
8697
8698         tests: avoid more large file warnings
8699         * tests/test-fflush.c: Avoid warning about ftell use.
8700         * tests/test-fseek.c: Avoid warning about fseek use.
8701
8702 2010-01-10  Bruno Haible  <bruno@clisp.org>
8703
8704         nproc: Work better on Linux when /proc and /sys are not mounted.
8705         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
8706         as lower bound when, on glibc/Linux systems,
8707         sysconf (_SC_NPROCESSORS_CONF) returns 1.
8708         Suggested by Pádraig Brady <P@draigbrady.com>.
8709         Reported by Dmitry V. Levin <ldv@altlinux.org>.
8710
8711         nproc: Refactor.
8712         * lib/nproc.c (num_processors_via_affinity_mask): New function,
8713         extracted from num_processors.
8714         (num_processors): Call it.
8715
8716 2010-01-11  Jim Meyering  <meyering@redhat.com>
8717
8718         utimecmp: avoid new warning from upcoming gcc-4.5.0
8719         * lib/utimecmp.c (BILLION): Define using #define rather than an
8720         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
8721
8722 2010-01-11  Eric Blake  <ebb9@byu.net>
8723
8724         math: add portability warnings for classification macros
8725         * modules/math (Depends-on): Add warn-on-use.
8726         (Makefile.am): Provide new substitutions.
8727         * m4/math_h.m4 (gl_MATH_H): Require inline.
8728         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
8729         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
8730         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
8731         implement warnings.
8732
8733         unistd: warn on use of environ without module
8734         * modules/unistd (Depends-on): Add warn-on-use.
8735         (Makefile.am): Provide new substitutions.
8736         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
8737         * lib/unistd.in.h (environ): Wrap with a warning helper function.
8738
8739         stdio: warn on suspicious uses
8740         * modules/stdio (Depends-on): Add warn-on-use.
8741         (Makefile.am): Provide new substitutions.
8742         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
8743         fseeko.
8744         * lib/stdio.in.h (gets): Always warn on use.
8745         (fseek, ftell): Adjust when warnings are issued, and honor
8746         _GL_NO_LARGE_FILES as a way to silence the warning.
8747         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
8748         any warning about large file offsets.
8749         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
8750         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
8751         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
8752         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
8753         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
8754         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
8755         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
8756         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
8757
8758         warn-on-use: new module
8759         * modules/warn-on-use: New file.
8760         * build-aux/warn-on-use.h: Likewise.
8761         * m4/warn-on-use.m4: Likewise.
8762         * MODULES.html.sh (Support for building): Mention it.
8763
8764 2010-01-10  Bruno Haible  <bruno@clisp.org>
8765
8766         Tests for module 'unistr/u32-strdup'.
8767         * modules/unistr/u32-strdup-tests: New file.
8768         * tests/unistr/test-u32-strdup.c: New file.
8769
8770         Tests for module 'unistr/u16-strdup'.
8771         * modules/unistr/u16-strdup-tests: New file.
8772         * tests/unistr/test-u16-strdup.c: New file.
8773
8774         Tests for module 'unistr/u8-strdup'.
8775         * modules/unistr/u8-strdup-tests: New file.
8776         * tests/unistr/test-u8-strdup.c: New file.
8777         * tests/unistr/test-strdup.h: New file.
8778
8779         Tests for module 'unistr/u32-strncmp'.
8780         * modules/unistr/u32-strncmp-tests: New file.
8781         * tests/unistr/test-u32-strncmp.c: New file.
8782
8783         Tests for module 'unistr/u16-strncmp'.
8784         * modules/unistr/u16-strncmp-tests: New file.
8785         * tests/unistr/test-u16-strncmp.c: New file.
8786
8787         Tests for module 'unistr/u8-strncmp'.
8788         * modules/unistr/u8-strncmp-tests: New file.
8789         * tests/unistr/test-u8-strncmp.c: New file.
8790         * tests/unistr/test-strncmp.h: New file.
8791
8792         Tests for module 'unistr/u32-strcoll'.
8793         * modules/unistr/u32-strcoll-tests: New file.
8794         * tests/unistr/test-u32-strcoll.c: New file.
8795
8796         Tests for module 'unistr/u16-strcoll'.
8797         * modules/unistr/u16-strcoll-tests: New file.
8798         * tests/unistr/test-u16-strcoll.c: New file.
8799
8800         Tests for module 'unistr/u8-strcoll'.
8801         * modules/unistr/u8-strcoll-tests: New file.
8802         * tests/unistr/test-u8-strcoll.c: New file.
8803
8804         Tests for module 'unistr/u32-strcmp'.
8805         * modules/unistr/u32-strcmp-tests: New file.
8806         * tests/unistr/test-u32-strcmp.c: New file.
8807         * tests/unistr/test-u32-strcmp.h: New file.
8808
8809         Tests for module 'unistr/u16-strcmp'.
8810         * modules/unistr/u16-strcmp-tests: New file.
8811         * tests/unistr/test-u16-strcmp.c: New file.
8812         * tests/unistr/test-u16-strcmp.h: New file.
8813
8814         Tests for module 'unistr/u8-strcmp'.
8815         * modules/unistr/u8-strcmp-tests: New file.
8816         * tests/unistr/test-u8-strcmp.c: New file.
8817         * tests/unistr/test-u8-strcmp.h: New file.
8818         * tests/unistr/test-strcmp.h: New file.
8819
8820         Tests for module 'unistr/u32-strncat'.
8821         * modules/unistr/u32-strncat-tests: New file.
8822         * tests/unistr/test-u32-strncat.c: New file.
8823
8824         Tests for module 'unistr/u16-strncat'.
8825         * modules/unistr/u16-strncat-tests: New file.
8826         * tests/unistr/test-u16-strncat.c: New file.
8827
8828         Tests for module 'unistr/u8-strncat'.
8829         * modules/unistr/u8-strncat-tests: New file.
8830         * tests/unistr/test-u8-strncat.c: New file.
8831         * tests/unistr/test-strncat.h: New file.
8832
8833         Tests for module 'unistr/u32-strcat'.
8834         * modules/unistr/u32-strcat-tests: New file.
8835         * tests/unistr/test-u32-strcat.c: New file.
8836
8837         Tests for module 'unistr/u16-strcat'.
8838         * modules/unistr/u16-strcat-tests: New file.
8839         * tests/unistr/test-u16-strcat.c: New file.
8840
8841         Tests for module 'unistr/u8-strcat'.
8842         * modules/unistr/u8-strcat-tests: New file.
8843         * tests/unistr/test-u8-strcat.c: New file.
8844         * tests/unistr/test-strcat.h: New file.
8845
8846         Tests for module 'unistr/u32-stpncpy'.
8847         * modules/unistr/u32-stpncpy-tests: New file.
8848         * tests/unistr/test-u32-stpncpy.c: New file.
8849
8850         Tests for module 'unistr/u16-stpncpy'.
8851         * modules/unistr/u16-stpncpy-tests: New file.
8852         * tests/unistr/test-u16-stpncpy.c: New file.
8853
8854         Tests for module 'unistr/u8-stpncpy'.
8855         * modules/unistr/u8-stpncpy-tests: New file.
8856         * tests/unistr/test-u8-stpncpy.c: New file.
8857         * tests/unistr/test-stpncpy.h: New file.
8858
8859         Tests for module 'unistr/u32-strncpy'.
8860         * modules/unistr/u32-strncpy-tests: New file.
8861         * tests/unistr/test-u32-strncpy.c: New file.
8862
8863         Tests for module 'unistr/u16-strncpy'.
8864         * modules/unistr/u16-strncpy-tests: New file.
8865         * tests/unistr/test-u16-strncpy.c: New file.
8866
8867         Tests for module 'unistr/u8-strncpy'.
8868         * modules/unistr/u8-strncpy-tests: New file.
8869         * tests/unistr/test-u8-strncpy.c: New file.
8870         * tests/unistr/test-strncpy.h: New file.
8871
8872         Tests for module 'unistr/u32-stpcpy'.
8873         * modules/unistr/u32-stpcpy-tests: New file.
8874         * tests/unistr/test-u32-stpcpy.c: New file.
8875
8876         Tests for module 'unistr/u16-stpcpy'.
8877         * modules/unistr/u16-stpcpy-tests: New file.
8878         * tests/unistr/test-u16-stpcpy.c: New file.
8879
8880         Tests for module 'unistr/u8-stpcpy'.
8881         * modules/unistr/u8-stpcpy-tests: New file.
8882         * tests/unistr/test-u8-stpcpy.c: New file.
8883         * tests/unistr/test-stpcpy.h: New file.
8884
8885         Tests for module 'unistr/u32-strcpy'.
8886         * modules/unistr/u32-strcpy-tests: New file.
8887         * tests/unistr/test-u32-strcpy.c: New file.
8888
8889         Tests for module 'unistr/u16-strcpy'.
8890         * modules/unistr/u16-strcpy-tests: New file.
8891         * tests/unistr/test-u16-strcpy.c: New file.
8892
8893         Tests for module 'unistr/u8-strcpy'.
8894         * modules/unistr/u8-strcpy-tests: New file.
8895         * tests/unistr/test-u8-strcpy.c: New file.
8896         * tests/unistr/test-strcpy.h: New file.
8897
8898         Tests for module 'unistr/u32-strnlen'.
8899         * modules/unistr/u32-strnlen-tests: New file.
8900         * tests/unistr/test-u32-strnlen.c: New file.
8901
8902         Tests for module 'unistr/u16-strnlen'.
8903         * modules/unistr/u16-strnlen-tests: New file.
8904         * tests/unistr/test-u16-strnlen.c: New file.
8905
8906         Tests for module 'unistr/u8-strnlen'.
8907         * modules/unistr/u8-strnlen-tests: New file.
8908         * tests/unistr/test-u8-strnlen.c: New file.
8909         * tests/unistr/test-strnlen.h: New file.
8910
8911         Tests for module 'unistr/u32-strlen'.
8912         * modules/unistr/u32-strlen-tests: New file.
8913         * tests/unistr/test-u32-strlen.c: New file.
8914
8915         Tests for module 'unistr/u16-strlen'.
8916         * modules/unistr/u16-strlen-tests: New file.
8917         * tests/unistr/test-u16-strlen.c: New file.
8918
8919         Tests for module 'unistr/u8-strlen'.
8920         * modules/unistr/u8-strlen-tests: New file.
8921         * tests/unistr/test-u8-strlen.c: New file.
8922
8923         Tests for module 'unistr/u32-prev'.
8924         * modules/unistr/u32-prev-tests: New file.
8925         * tests/unistr/test-u32-prev.c: New file.
8926
8927         Tests for module 'unistr/u16-prev'.
8928         * modules/unistr/u16-prev-tests: New file.
8929         * tests/unistr/test-u16-prev.c: New file.
8930
8931         Tests for module 'unistr/u8-prev'.
8932         * modules/unistr/u8-prev-tests: New file.
8933         * tests/unistr/test-u8-prev.c: New file.
8934
8935         Tests for module 'unistr/u32-next'.
8936         * modules/unistr/u32-next-tests: New file.
8937         * tests/unistr/test-u32-next.c: New file.
8938
8939         Tests for module 'unistr/u16-next'.
8940         * modules/unistr/u16-next-tests: New file.
8941         * tests/unistr/test-u16-next.c: New file.
8942
8943         Tests for module 'unistr/u8-next'.
8944         * modules/unistr/u8-next-tests: New file.
8945         * tests/unistr/test-u8-next.c: New file.
8946
8947         Tests for module 'unistr/u32-strmbtouc'.
8948         * modules/unistr/u32-strmbtouc-tests: New file.
8949         * tests/unistr/test-u32-strmbtouc.c: New file.
8950
8951         Tests for module 'unistr/u16-strmbtouc'.
8952         * modules/unistr/u16-strmbtouc-tests: New file.
8953         * tests/unistr/test-u16-strmbtouc.c: New file.
8954
8955         Tests for module 'unistr/u8-strmbtouc'.
8956         * modules/unistr/u8-strmbtouc-tests: New file.
8957         * tests/unistr/test-u8-strmbtouc.c: New file.
8958
8959         Tests for module 'unistr/u32-strmblen'.
8960         * modules/unistr/u32-strmblen-tests: New file.
8961         * tests/unistr/test-u32-strmblen.c: New file.
8962
8963         Tests for module 'unistr/u16-strmblen'.
8964         * modules/unistr/u16-strmblen-tests: New file.
8965         * tests/unistr/test-u16-strmblen.c: New file.
8966
8967         Tests for module 'unistr/u8-strmblen'.
8968         * modules/unistr/u8-strmblen-tests: New file.
8969         * tests/unistr/test-u8-strmblen.c: New file.
8970
8971         Tests for module 'unistr/u32-cpy-alloc'.
8972         * modules/unistr/u32-cpy-alloc-tests: New file.
8973         * tests/unistr/test-u32-cpy-alloc.c: New file.
8974
8975         Tests for module 'unistr/u16-cpy-alloc'.
8976         * modules/unistr/u16-cpy-alloc-tests: New file.
8977         * tests/unistr/test-u16-cpy-alloc.c: New file.
8978
8979         Tests for module 'unistr/u8-cpy-alloc'.
8980         * modules/unistr/u8-cpy-alloc-tests: New file.
8981         * tests/unistr/test-u8-cpy-alloc.c: New file.
8982         * tests/unistr/test-cpy-alloc.h: New file.
8983
8984         Tests for module 'unistr/u32-mbsnlen'.
8985         * modules/unistr/u32-mbsnlen-tests: New file.
8986         * tests/unistr/test-u32-mbsnlen.c: New file.
8987
8988         Tests for module 'unistr/u16-mbsnlen'.
8989         * modules/unistr/u16-mbsnlen-tests: New file.
8990         * tests/unistr/test-u16-mbsnlen.c: New file.
8991
8992         Tests for module 'unistr/u8-mbsnlen'.
8993         * modules/unistr/u8-mbsnlen-tests: New file.
8994         * tests/unistr/test-u8-mbsnlen.c: New file.
8995
8996         Tests for module 'unistr/u32-chr'.
8997         * modules/unistr/u32-chr-tests: New file.
8998         * tests/unistr/test-u32-chr.c: New file.
8999
9000         Tests for module 'unistr/u16-chr'.
9001         * modules/unistr/u16-chr-tests: New file.
9002         * tests/unistr/test-u16-chr.c: New file.
9003
9004         Tests for module 'unistr/u8-chr'.
9005         * modules/unistr/u8-chr-tests: New file.
9006         * tests/unistr/test-u8-chr.c: New file.
9007         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
9008
9009         Tests for module 'unistr/u32-cmp2'.
9010         * modules/unistr/u32-cmp2-tests: New file.
9011         * tests/unistr/test-u32-cmp2.c: New file.
9012
9013         Tests for module 'unistr/u16-cmp2'.
9014         * modules/unistr/u16-cmp2-tests: New file.
9015         * tests/unistr/test-u16-cmp2.c: New file.
9016
9017         Tests for module 'unistr/u8-cmp2'.
9018         * modules/unistr/u8-cmp2-tests: New file.
9019         * tests/unistr/test-u8-cmp2.c: New file.
9020         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
9021
9022         Tests for module 'unistr/u32-cmp'.
9023         * modules/unistr/u32-cmp-tests: New file.
9024         * tests/unistr/test-u32-cmp.c: New file.
9025
9026         Tests for module 'unistr/u16-cmp'.
9027         * modules/unistr/u16-cmp-tests: New file.
9028         * tests/unistr/test-u16-cmp.c: New file.
9029
9030         Tests for module 'unistr/u8-cmp'.
9031         * modules/unistr/u8-cmp-tests: New file.
9032         * tests/unistr/test-u8-cmp.c: New file.
9033         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
9034
9035         Tests for module 'unistr/u32-set'.
9036         * modules/unistr/u32-set-tests: New file.
9037         * tests/unistr/test-u32-set.c: New file.
9038
9039         Tests for module 'unistr/u16-set'.
9040         * modules/unistr/u16-set-tests: New file.
9041         * tests/unistr/test-u16-set.c: New file.
9042
9043         Tests for module 'unistr/u8-set'.
9044         * modules/unistr/u8-set-tests: New file.
9045         * tests/unistr/test-u8-set.c: New file.
9046         * tests/unistr/test-set.h: New file.
9047
9048         Tests for module 'unistr/u32-move'.
9049         * modules/unistr/u32-move-tests: New file.
9050         * tests/unistr/test-u32-move.c: New file.
9051
9052         Tests for module 'unistr/u16-move'.
9053         * modules/unistr/u16-move-tests: New file.
9054         * tests/unistr/test-u16-move.c: New file.
9055
9056         Tests for module 'unistr/u8-move'.
9057         * modules/unistr/u8-move-tests: New file.
9058         * tests/unistr/test-u8-move.c: New file.
9059         * tests/unistr/test-move.h: New file.
9060
9061         Tests for module 'unistr/u32-cpy'.
9062         * modules/unistr/u32-cpy-tests: New file.
9063         * tests/unistr/test-u32-cpy.c: New file.
9064
9065         Tests for module 'unistr/u16-cpy'.
9066         * modules/unistr/u16-cpy-tests: New file.
9067         * tests/unistr/test-u16-cpy.c: New file.
9068
9069         Tests for module 'unistr/u8-cpy'.
9070         * modules/unistr/u8-cpy-tests: New file.
9071         * tests/unistr/test-u8-cpy.c: New file.
9072         * tests/unistr/test-cpy.h: New file.
9073
9074 2010-01-09  Bruno Haible  <bruno@clisp.org>
9075
9076         Tests for module 'unistr/u32-uctomb'.
9077         * modules/unistr/u32-uctomb-tests: New file.
9078         * tests/unistr/test-u32-uctomb.c: New file.
9079
9080         Tests for module 'unistr/u16-uctomb'.
9081         * modules/unistr/u16-uctomb-tests: New file.
9082         * tests/unistr/test-u16-uctomb.c: New file.
9083
9084         Tests for module 'unistr/u8-uctomb'.
9085         * modules/unistr/u8-uctomb-tests: New file.
9086         * tests/unistr/test-u8-uctomb.c: New file.
9087
9088         Tests for module 'unistr/u32-mbtoucr'.
9089         * modules/unistr/u32-mbtoucr-tests: New file.
9090         * tests/unistr/test-u32-mbtoucr.c: New file.
9091
9092         Tests for module 'unistr/u16-mbtoucr'.
9093         * modules/unistr/u16-mbtoucr-tests: New file.
9094         * tests/unistr/test-u16-mbtoucr.c: New file.
9095
9096         Tests for module 'unistr/u8-mbtoucr'.
9097         * modules/unistr/u8-mbtoucr-tests: New file.
9098         * tests/unistr/test-u8-mbtoucr.c: New file.
9099
9100         Tests for module 'unistr/u32-mbtouc'.
9101         * modules/unistr/u32-mbtouc-tests: New file.
9102         * tests/unistr/test-u32-mbtouc.c: New file.
9103
9104         Tests for module 'unistr/u16-mbtouc'.
9105         * modules/unistr/u16-mbtouc-tests: New file.
9106         * tests/unistr/test-u16-mbtouc.c: New file.
9107
9108         Tests for module 'unistr/u8-mbtouc'.
9109         * modules/unistr/u8-mbtouc-tests: New file.
9110         * tests/unistr/test-u8-mbtouc.c: New file.
9111
9112         Tests for module 'unistr/u32-mbtouc-unsafe'.
9113         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
9114         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
9115         * tests/unistr/test-u32-mbtouc.h: New file.
9116
9117         Tests for module 'unistr/u16-mbtouc-unsafe'.
9118         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
9119         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
9120         * tests/unistr/test-u16-mbtouc.h: New file.
9121
9122         Tests for module 'unistr/u8-mbtouc-unsafe'.
9123         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
9124         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
9125         * tests/unistr/test-u8-mbtouc.h: New file.
9126
9127         Tests for module 'unistr/u32-mblen'.
9128         * modules/unistr/u32-mblen-tests: New file.
9129         * tests/unistr/test-u32-mblen.c: New file.
9130
9131         Tests for module 'unistr/u16-mblen'.
9132         * modules/unistr/u16-mblen-tests: New file.
9133         * tests/unistr/test-u16-mblen.c: New file.
9134
9135         Tests for module 'unistr/u8-mblen'.
9136         * modules/unistr/u8-mblen-tests: New file.
9137         * tests/unistr/test-u8-mblen.c: New file.
9138
9139         Tests for module 'unistr/u32-to-u16'.
9140         * modules/unistr/u32-to-u16-tests: New file.
9141         * tests/unistr/test-u32-to-u16.c: New file.
9142
9143         Tests for module 'unistr/u32-to-u8'.
9144         * modules/unistr/u32-to-u8-tests: New file.
9145         * tests/unistr/test-u32-to-u8.c: New file.
9146
9147         Tests for module 'unistr/u16-to-u32'.
9148         * modules/unistr/u16-to-u32-tests: New file.
9149         * tests/unistr/test-u16-to-u32.c: New file.
9150
9151         Tests for module 'unistr/u16-to-u8'.
9152         * modules/unistr/u16-to-u8-tests: New file.
9153         * tests/unistr/test-u16-to-u8.c: New file.
9154
9155         Tests for module 'unistr/u8-to-u32'.
9156         * modules/unistr/u8-to-u32-tests: New file.
9157         * tests/unistr/test-u8-to-u32.c: New file.
9158
9159         Tests for module 'unistr/u8-to-u16'.
9160         * modules/unistr/u8-to-u16-tests: New file.
9161         * tests/unistr/test-u8-to-u16.c: New file.
9162
9163         Tests for module 'unistr/u32-check'.
9164         * modules/unistr/u32-check-tests: New file.
9165         * tests/unistr/test-u32-check.c: New file.
9166
9167         Tests for module 'unistr/u16-check'.
9168         * modules/unistr/u16-check-tests: New file.
9169         * tests/unistr/test-u16-check.c: New file.
9170
9171         Tests for module 'unistr/u8-check'.
9172         * modules/unistr/u8-check-tests: New file.
9173         * tests/unistr/test-u8-check.c: New file.
9174
9175         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
9176         (category_equals): New function.
9177         (main): Add more tests.
9178         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
9179
9180         * tests/unictype/test-bidi_byname.c (main): Add more tests.
9181
9182 2010-01-10  Bruno Haible  <bruno@clisp.org>
9183
9184         unistr/u*-strcoll: Try harder to distinguish different strings.
9185         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
9186         compare s1 and s2 to see if they are different.
9187
9188 2010-01-10  Bruno Haible  <bruno@clisp.org>
9189
9190         unistr/u*-stpncpy: Fix the return value.
9191         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
9192         description of the return value consistent with stpncpy in glibc.
9193         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
9194         written non-NUL unit.
9195
9196 2010-01-10  Bruno Haible  <bruno@clisp.org>
9197
9198         unistr/u*-next: Add missing dependencies.
9199         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
9200         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
9201         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
9202
9203 2010-01-10  Bruno Haible  <bruno@clisp.org>
9204
9205         unistr/u8-mbsnlen: Fix return value for incomplete character.
9206         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
9207         u8_mblen.
9208         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
9209         Remove unistr/u8-mblen.
9210         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
9211         u16_mblen.
9212         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
9213         Remove unistr/u16-mblen.
9214
9215 2010-01-10  Bruno Haible  <bruno@clisp.org>
9216
9217         wchar: Fix compilation error when <wchar.h> is used from coreutils.
9218         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
9219         Reported by Brian Gough <bjg@gnu.org> and
9220         Chris Clayton <chris2553@googlemail.com> via
9221         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
9222
9223 2010-01-09  Bruno Haible  <bruno@clisp.org>
9224
9225         unistr/u16-to-u32: Reject invalid input.
9226         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
9227         u16_mbtouc.
9228         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
9229         Remove unistr/u16-mbtouc.
9230
9231         unistr/u16-to-u8: Reject invalid input.
9232         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
9233         u16_mbtouc.
9234         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
9235         Remove unistr/u16-mbtouc.
9236
9237         unistr/u8-to-u32: Reject invalid input.
9238         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
9239         u8_mbtouc.
9240         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
9241         Remove unistr/u8-mbtouc.
9242
9243         unistr/u8-to-u16: Reject invalid input.
9244         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
9245         u8_mbtouc.
9246         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
9247         Remove unistr/u8-mbtouc.
9248
9249 2010-01-09  Bruno Haible  <bruno@clisp.org>
9250
9251         Tests for module 'getlogin'.
9252         * modules/getlogin-tests: New file.
9253         * tests/test-getlogin.c: New file.
9254
9255         New module 'getlogin'.
9256         * lib/unistd.in.h (getlogin): New declaration.
9257         * lib/getlogin.c: New file.
9258         * m4/getlogin.m4: New file.
9259         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
9260         HAVE_GETLOGIN.
9261         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
9262         HAVE_GETLOGIN.
9263         * modules/getlogin: New file.
9264         * doc/posix-functions/getlogin.texi: Mention the new module.
9265         Reported by John W. Eaton <jwe@gnu.org>.
9266
9267 2010-01-09  Bruno Haible  <bruno@clisp.org>
9268
9269         getlogin_r: Support for native Windows.
9270         * lib/getlogin_r.c: Include <windows.h>
9271         (getlogin_r): Implement for native Windows.
9272         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
9273         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
9274         via John W. Eaton <jwe@gnu.org>.
9275
9276 2010-01-09  Bruno Haible  <bruno@clisp.org>
9277
9278         getlogin_r: Small fixes.
9279         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
9280         succeeds.
9281         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
9282         before testing whether getlogin_r is declared. No need to set
9283         HAVE_DECL_GETLOGIN_R to 1.
9284         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
9285
9286 2010-01-09  Bruno Haible  <bruno@clisp.org>
9287
9288         * lib/unistd.in.h (getlogin_r): Add comment.
9289
9290 2010-01-09  Bruno Haible  <bruno@clisp.org>
9291
9292         Tests for module 'getlogin_r'.
9293         * modules/getlogin_r-tests: New file.
9294         * tests/test-getlogin_r.c: New file.
9295
9296 2010-01-09  Jim Meyering  <meyering@redhat.com>
9297
9298         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
9299         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
9300         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
9301
9302 2010-01-08  Simon Josefsson  <simon@josefsson.org>
9303
9304         * lib/dup2.c (rpl_dup2): Improve comment.
9305
9306 2010-01-08  Eric Blake  <ebb9@byu.net>
9307
9308         maint.mk: allow packages to add makefile @@ exceptions
9309         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
9310         (sc_makefile_check): Rename...
9311         (sc_makefile_at_at_check): ...to this, and use hook.
9312
9313         dup2: work around mingw bug
9314         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
9315         Reported by Simon Josefsson.
9316
9317 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
9318
9319         glob: Fix C++ compilation.
9320         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
9321         C++.
9322
9323 2010-01-07  Bruno Haible  <bruno@clisp.org>
9324
9325         Fix indentation of wctype.in.h, broken since 2007-01-06.
9326         * lib/wctype.in.h: Fix indentation of preprocessor directives.
9327
9328 2010-01-07  Bruno Haible  <bruno@clisp.org>
9329
9330         mbslen: Avoid collision with system function.
9331         * lib/string.in.h [MirBSD]: Include <wchar.h>.
9332         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
9333         * m4/mbslen.m4: New file.
9334         * modules/mbslen (Files): Add it.
9335         (configure.ac): Invoke gl_MBSLEN.
9336         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
9337         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
9338         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
9339         via Ian Beckwith <ianb@erislabs.net>.
9340
9341 2010-01-07  Bruno Haible  <bruno@clisp.org>
9342
9343         dirent: Document the last fix.
9344         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
9345
9346 2010-01-07  Bruno Haible  <bruno@clisp.org>
9347
9348         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
9349         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
9350         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
9351         va_list are defined.
9352         * doc/posix-headers/stdio.texi: Document the bug of missing types.
9353         Reported by Eric Blake.
9354
9355 2010-01-07  Bruno Haible  <bruno@clisp.org>
9356
9357         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
9358         * modules/xlist (Depends-on): Add 'list',
9359         * modules/xoset (Depends-on): Add 'oset'.
9360         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9361
9362 2010-01-07  Bruno Haible  <bruno@clisp.org>
9363
9364         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
9365         * doc/posix-functions/strncasecmp.texi: Likewise.
9366
9367 2010-01-07  Bruno Haible  <bruno@clisp.org>
9368
9369         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
9370
9371 2010-01-07  John W. Eaton  <jwe@octave.org>
9372
9373         wctype: allow C++ use
9374         * lib/wctype.in.h: Add extern "C" block for C++.
9375
9376 2010-01-06  Eric Blake  <ebb9@byu.net>
9377
9378         maint.mk: detect incorrect GFDL usage
9379         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
9380
9381 2010-01-06  Jim Meyering  <meyering@redhat.com>
9382         and Eric Blake  <ebb9@byu.net>
9383
9384         maint.mk: ignore multi-line copyright in NEWS
9385         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
9386
9387 2010-01-06  Eric Blake  <ebb9@byu.net>
9388
9389         select: add missing dependency
9390         * modules/select-tests (Depends-on): Move sockets dependency...
9391         * modules/select (Depends-on): ...here.
9392         Reported by Ian Beckwith.
9393
9394         doc: regenerate INSTALL
9395         * doc/INSTALL: Reflect recent autoconf update.
9396         * doc/INSTALL.ISO: Likewise.
9397         * doc/INSTALL.UTF-8: Likewise.
9398
9399         pread: fix compilation on glibc
9400         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
9401         Reported by Ralf Wildenhues.
9402
9403         dirent: fix test failure
9404         * lib/dirent.in.h (includes): Guarantee ino_t.
9405         Reported by Ralf Wildenhues.
9406
9407 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
9408
9409         linkat, renameat: avoid bad free
9410         * lib/at-func2.c (at_func2): Fix typo.
9411         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
9412
9413 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9414
9415         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
9416         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
9417         to avoid failure of symlink test later.
9418
9419 2010-01-06  Eric Blake  <ebb9@byu.net>
9420
9421         stdio, unistd: guarantee ssize_t
9422         * lib/unistd.in.h (includes): Ensure that types required by POSIX
9423         2008 are exposed when needed.
9424         * lib/stdio.in.h (includes): Likewise.
9425         Reported by Ralf Wildenhues.
9426
9427 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
9428
9429         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
9430         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
9431         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
9432
9433 2010-01-06  Jim Meyering  <meyering@redhat.com>
9434
9435         readtokens: this module *does* require xalloc.h
9436         It uses only functions that were omitted by the old syntax-check rule.
9437         * lib/readtokens.c: Include "xalloc.h" once again.
9438         * modules/readtokens (Depends-on): Add xalloc.
9439         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
9440
9441 2010-01-05  Eric Blake  <ebb9@byu.net>
9442
9443         maint: support 'make announcement' from a VPATH build
9444         * top/maint.mk (announcement): Look for correct NEWS file.
9445
9446 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
9447
9448         utimens (fdutimens): ignore a negative FD, per contract
9449         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
9450         when we have a valid file descriptor.  Otherwise, using a brand
9451         new glibc (with just-patched futimens that now fails with EBADF)
9452         would cause this function to fail with ENOSYS.
9453         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
9454         See also http://bugzilla.redhat.com/552320.
9455
9456 2010-01-05  Eric Blake  <ebb9@byu.net>
9457
9458         strcase: document what it provides
9459         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
9460         gnulib module.
9461         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
9462         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
9463
9464 2010-01-05  Jim Meyering  <meyering@redhat.com>
9465
9466         maint: remove useless inclusions of "xalloc.h"
9467         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
9468         * lib/readtokens.c: Likewise.
9469         * lib/same.c: Likewise.
9470         * modules/getloadavg (Depends-on): Remove xalloc.
9471         * modules/readtokens: Likewise.
9472         * modules/same: Likewise.
9473
9474         maint.mk: include 4 more function names in alloca.h-checking regexp
9475         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
9476         regexp.  Before, we would give a false-positive (saying alloca.h
9477         is included unnecessarily) when the only uses involved omitted symbols.
9478
9479         xalloc.h: use consistent formatting
9480         * lib/xalloc.h: Move declarations to start in the first column.
9481
9482 2010-01-05  Eric Blake  <ebb9@byu.net>
9483
9484         mkdir: avoid xalloc
9485         * lib/mkdir.c (includes): Drop unused header.
9486         Reported by John W. Eaton.
9487
9488 2010-01-04  Jim Meyering  <meyering@redhat.com>
9489
9490         nl_langinfo: avoid configure-time syntax error
9491         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
9492         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
9493         the empty string.  Don't let that provoke a shell syntax error.
9494
9495         regcomp, regexec, fnmatch: avoid array bounds read error
9496         * lib/regcomp.c (build_equiv_class): From glibc:
9497         Use only the low 24 bits of a findidx return value as an index
9498         into the weights array.  Patch by Ulrich Drepper:
9499         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
9500         * lib/regexec.c (check_node_accept_bytes): Likewise.
9501         * lib/fnmatch_loop.c (FCT): Likewise.
9502
9503         regcomp: skip collseq lookup when there are no rules
9504         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
9505         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
9506
9507         regcomp: recognize ill-formed { } expressions
9508         * lib/regcomp.c (parse_dup_op): From glibc:
9509         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
9510
9511         regcomp: fix typo in comment
9512         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
9513         s/satisfy/satisfies/.
9514
9515         regcomp: sync from glibc: remove dead store
9516         * lib/regcomp.c (duplicate_node_closure): Remove useless
9517         search_duplicated_node call and dead store.
9518
9519         regcomp: sync from glibc; always use nl_langinfo
9520         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
9521         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
9522         * modules/regex (Depends-on): Add nl_langinfo.
9523
9524 2010-01-04  Eric Blake  <ebb9@byu.net>
9525
9526         fdopendir: fix configure test
9527         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
9528
9529 2010-01-01  Bruno Haible  <bruno@clisp.org>
9530
9531         wchar: Remove unused configure check.
9532         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
9533
9534 2010-01-01  Eric Blake  <ebb9@byu.net>
9535
9536         headers: make check of system header explicit
9537         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
9538         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
9539         ourselves.
9540         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
9541         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9542         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
9543         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
9544         internals.
9545         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
9546         missing.
9547         Suggested by Bruno Haible.
9548
9549 2010-01-01  Jim Meyering  <meyering@redhat.com>
9550
9551         ChangeLog: tweak to eliminate unnecessary copyright line
9552         * ChangeLog: Remove a copyright line that was mistakenly updated
9553         by today's update-copyright run.  Reported by Eric Blake.
9554
9555         test-update-copyright: don't let envvar setting cause test failure
9556         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
9557
9558 2010-01-01  Bruno Haible  <bruno@clisp.org>
9559
9560         localename: Avoid gcc warning.
9561         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
9562         function if it is not used.
9563
9564 2010-01-01  Jim Meyering  <meyering@redhat.com>
9565
9566         update nearly all FSF copyright year lists to include 2010
9567         Use the same procedure as for 2009, outlined in
9568         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
9569
9570         version-etc: set COPYRIGHT_YEAR to 2010
9571         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
9572
9573 2009-12-31  Eric Blake  <ebb9@byu.net>
9574
9575         doc: correct availability of cygwin 1.5.x getopt
9576         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
9577         variables.
9578         * doc/posix-functions/opterr.texi (opterr): Likewise.
9579         * doc/posix-functions/optind.texi (optind): Likewise.
9580         * doc/posix-functions/optopt.texi (optopt): Likewise.
9581         * doc/posix-functions/tzname.texi (tzname): Likewise.
9582
9583         openat: update maintainer
9584         * modules/openat (Maintainer): Add myself.
9585
9586         utimens: avoid shadowing warning
9587         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
9588         buffers into one, to avoid shadowing, as well as avoiding a
9589         redundant stat.
9590         Reported by Jim Meyering.
9591
9592         test-dup2: avoid compiler warning
9593         * tests/test-dup2.c (is_inheritable): Only define if used.
9594
9595 2010-01-01  Bruno Haible  <bruno@clisp.org>
9596
9597         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
9598         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
9599         defined, use wctomb instead of wcrtomb.
9600
9601 2010-01-01  Bruno Haible  <bruno@clisp.org>
9602
9603         iconv: Reject native Solaris iconv.
9604         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
9605         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
9606
9607 2009-12-31  Bruno Haible  <bruno@clisp.org>
9608
9609         * tests/test-signal.c (main): Remove test of 'SIG'.
9610
9611 2009-12-31  Bruno Haible  <bruno@clisp.org>
9612
9613         spawn: Fix incomplete fix.
9614         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
9615         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
9616         warnings for GNULIB_POSIXCHECK again.
9617         Reported by Eric Blake.
9618
9619 2009-12-31  Bruno Haible  <bruno@clisp.org>
9620
9621         Avoid namespace pollution on glibc systems.
9622         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
9623         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
9624         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
9625         glibc systems.
9626
9627 2009-12-31  Bruno Haible  <bruno@clisp.org>
9628
9629         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
9630         (gl_REPLACE_WCHAR_H): Turn into a no-op.
9631         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
9632         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
9633         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
9634         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
9635         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
9636
9637 2009-12-31  Bruno Haible  <bruno@clisp.org>
9638
9639         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
9640         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
9641         afterwards.
9642
9643 2009-12-31  Bruno Haible  <bruno@clisp.org>
9644
9645         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
9646         SYS_UTSNAME_H.
9647
9648 2009-12-31  Bruno Haible  <bruno@clisp.org>
9649
9650         spawn: Fix misapplied patch.
9651         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
9652         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
9653         warnings for GNULIB_POSIXCHECK.
9654
9655 2009-12-31  Bruno Haible  <bruno@clisp.org>
9656
9657         times: Update after sys_times changed.
9658         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
9659         * modules/times (Files): Add it.
9660         (configure.ac): Invoke gl_FUNC_TIMES.
9661
9662 2009-12-31  Bruno Haible  <bruno@clisp.org>
9663
9664         Use AC_C_INLINE where necessary.
9665         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
9666         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
9667         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
9668         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
9669         * m4/mbfile.m4 (gl_MBFILE): Likewise.
9670         * m4/mbiter.m4 (gl_MBITER): Likewise.
9671         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
9672         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9673         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
9674         * modules/u64 (configure.ac): Likewise.
9675
9676 2009-12-31  Bruno Haible  <bruno@clisp.org>
9677
9678         Use AC_C_INLINE instead of module 'inline' where possible.
9679         * modules/inline (Description): Clarify purpose.
9680         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
9681         * modules/count-one-bits (Depends-on): Remove inline.
9682         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
9683         * modules/openat (Depends-on): Remove inline.
9684         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
9685         instead of depending on module 'inline'.
9686         * modules/filevercmp (Depends-on, configure.ac): Likewise.
9687         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
9688         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
9689         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
9690         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
9691         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
9692         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
9693         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
9694         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
9695         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
9696         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
9697         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
9698         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
9699         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
9700         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
9701         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
9702         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
9703         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
9704         Likewise.
9705         * modules/unictype/property-ascii-hex-digit (Depends-on,
9706         configure.ac): Likewise.
9707         * modules/unictype/property-bidi-arabic-digit (Depends-on,
9708         configure.ac): Likewise.
9709         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
9710         configure.ac): Likewise.
9711         * modules/unictype/property-bidi-block-separator (Depends-on,
9712         configure.ac): Likewise.
9713         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
9714         configure.ac): Likewise.
9715         * modules/unictype/property-bidi-common-separator (Depends-on,
9716         configure.ac): Likewise.
9717         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
9718         Likewise.
9719         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
9720         configure.ac): Likewise.
9721         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
9722         configure.ac): Likewise.
9723         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
9724         configure.ac): Likewise.
9725         * modules/unictype/property-bidi-european-digit (Depends-on,
9726         configure.ac): Likewise.
9727         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
9728         configure.ac): Likewise.
9729         * modules/unictype/property-bidi-left-to-right (Depends-on,
9730         configure.ac): Likewise.
9731         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
9732         configure.ac): Likewise.
9733         * modules/unictype/property-bidi-other-neutral (Depends-on,
9734         configure.ac): Likewise.
9735         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
9736         Likewise.
9737         * modules/unictype/property-bidi-segment-separator (Depends-on,
9738         configure.ac): Likewise.
9739         * modules/unictype/property-bidi-whitespace (Depends-on,
9740         configure.ac): Likewise.
9741         * modules/unictype/property-combining (Depends-on, configure.ac):
9742         Likewise.
9743         * modules/unictype/property-composite (Depends-on, configure.ac):
9744         Likewise.
9745         * modules/unictype/property-currency-symbol (Depends-on,
9746         configure.ac): Likewise.
9747         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
9748         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
9749         Likewise.
9750         * modules/unictype/property-default-ignorable-code-point (Depends-on,
9751         configure.ac): Likewise.
9752         * modules/unictype/property-deprecated (Depends-on, configure.ac):
9753         Likewise.
9754         * modules/unictype/property-diacritic (Depends-on, configure.ac):
9755         Likewise.
9756         * modules/unictype/property-extender (Depends-on, configure.ac):
9757         Likewise.
9758         * modules/unictype/property-format-control (Depends-on, configure.ac):
9759         Likewise.
9760         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
9761         Likewise.
9762         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
9763         Likewise.
9764         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
9765         Likewise.
9766         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
9767         Likewise.
9768         * modules/unictype/property-hyphen (Depends-on, configure.ac):
9769         Likewise.
9770         * modules/unictype/property-id-continue (Depends-on, configure.ac):
9771         Likewise.
9772         * modules/unictype/property-id-start (Depends-on, configure.ac):
9773         Likewise.
9774         * modules/unictype/property-ideographic (Depends-on, configure.ac):
9775         Likewise.
9776         * modules/unictype/property-ids-binary-operator (Depends-on,
9777         configure.ac): Likewise.
9778         * modules/unictype/property-ids-trinary-operator (Depends-on,
9779         configure.ac): Likewise.
9780         * modules/unictype/property-ignorable-control (Depends-on,
9781         configure.ac): Likewise.
9782         * modules/unictype/property-iso-control (Depends-on, configure.ac):
9783         Likewise.
9784         * modules/unictype/property-join-control (Depends-on, configure.ac):
9785         Likewise.
9786         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
9787         Likewise.
9788         * modules/unictype/property-line-separator (Depends-on, configure.ac):
9789         Likewise.
9790         * modules/unictype/property-logical-order-exception (Depends-on,
9791         configure.ac): Likewise.
9792         * modules/unictype/property-lowercase (Depends-on, configure.ac):
9793         Likewise.
9794         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
9795         * modules/unictype/property-non-break (Depends-on, configure.ac):
9796         Likewise.
9797         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
9798         Likewise.
9799         * modules/unictype/property-numeric (Depends-on, configure.ac):
9800         Likewise.
9801         * modules/unictype/property-other-alphabetic (Depends-on,
9802         configure.ac): Likewise.
9803         * modules/unictype/property-other-default-ignorable-code-point
9804         (Depends-on, configure.ac): Likewise.
9805         * modules/unictype/property-other-grapheme-extend (Depends-on,
9806         configure.ac): Likewise.
9807         * modules/unictype/property-other-id-continue (Depends-on,
9808         configure.ac): Likewise.
9809         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
9810         Likewise.
9811         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
9812         Likewise.
9813         * modules/unictype/property-other-math (Depends-on, configure.ac):
9814         Likewise.
9815         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
9816         Likewise.
9817         * modules/unictype/property-paired-punctuation (Depends-on,
9818         configure.ac): Likewise.
9819         * modules/unictype/property-paragraph-separator (Depends-on,
9820         configure.ac): Likewise.
9821         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
9822         Likewise.
9823         * modules/unictype/property-pattern-white-space (Depends-on,
9824         configure.ac): Likewise.
9825         * modules/unictype/property-private-use (Depends-on, configure.ac):
9826         Likewise.
9827         * modules/unictype/property-punctuation (Depends-on, configure.ac):
9828         Likewise.
9829         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
9830         Likewise.
9831         * modules/unictype/property-radical (Depends-on, configure.ac):
9832         Likewise.
9833         * modules/unictype/property-sentence-terminal (Depends-on,
9834         configure.ac): Likewise.
9835         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
9836         Likewise.
9837         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
9838         * modules/unictype/property-terminal-punctuation (Depends-on,
9839         configure.ac): Likewise.
9840         * modules/unictype/property-titlecase (Depends-on, configure.ac):
9841         Likewise.
9842         * modules/unictype/property-unassigned-code-value (Depends-on,
9843         configure.ac): Likewise.
9844         * modules/unictype/property-unified-ideograph (Depends-on,
9845         configure.ac): Likewise.
9846         * modules/unictype/property-uppercase (Depends-on, configure.ac):
9847         Likewise.
9848         * modules/unictype/property-variation-selector (Depends-on,
9849         configure.ac): Likewise.
9850         * modules/unictype/property-white-space (Depends-on, configure.ac):
9851         Likewise.
9852         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
9853         Likewise.
9854         * modules/unictype/property-xid-start (Depends-on, configure.ac):
9855         Likewise.
9856         * modules/unictype/property-zero-width (Depends-on, configure.ac):
9857         Likewise.
9858         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
9859         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
9860         Likewise.
9861
9862 2009-12-31  Bruno Haible  <bruno@clisp.org>
9863
9864         Remove unnecessary AC_C_INLINE invocation.
9865         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
9866         since 2009-08-21.
9867
9868 2009-12-31  Jim Meyering  <meyering@redhat.com>
9869
9870         maint.mk: don't require explicit gpg_key_ID in cfg.mk
9871         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
9872         With this change, we can all remove the gpg_key_ID = ... definition
9873         from our respective cfg.mk files.
9874
9875         maint.mk: create announcement template in ~/, not in /tmp
9876         * top/maint.mk (emit_upload_commands): Adjust.
9877         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
9878         Remove temporary file, .ci-msg.
9879
9880 2009-12-31  Eric Blake  <ebb9@byu.net>
9881
9882         link-warning: always build headers with link warnings
9883         * modules/arpa_inet (Makefile.am): Always build replacement
9884         header.
9885         * modules/ctype (Makefile.am): Likewise.
9886         * modules/dirent (Makefile.am): Likewise.
9887         * modules/inttypes (Makefile.am): Likewise.
9888         * modules/langinfo (Makefile.am): Likewise.
9889         * modules/locale (Makefile.am): Likewise.
9890         * modules/spawn (Makefile.am): Likewise.
9891         * modules/sys_file (Makefile.am): Likewise.
9892         * modules/sys_ioctl (Makefile.am): Likewise.
9893         * modules/sys_select (Makefile.am): Likewise.
9894         * modules/sys_socket (Makefile.am): Likewise.
9895         * modules/sys_times (Makefile.am): Likewise.
9896         * modules/sys_utsname (Makefile.am): Likewise.
9897         * modules/sys_wait (Makefile.am): Likewise.
9898         * modules/wchar (Makefile.am): Likewise.
9899         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
9900         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
9901         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
9902         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
9903         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
9904         Likewise.
9905         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
9906         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
9907         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
9908         Likewise.
9909         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
9910         Likewise.
9911         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
9912         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
9913         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
9914         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
9915         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
9916         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
9917         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
9918         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
9919         (gl_WCHAR_H_DEFAULTS): Likewise.
9920
9921 2009-12-31  Eric Blake  <ebb9@byu.net>
9922
9923         signal, spawn: use link warnings
9924         * lib/signal.in.h (sigset_t): Make unconditional.
9925         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
9926         (sigpending, sigprocmask, sigaction): Add link warnings.
9927         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
9928         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
9929         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
9930         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
9931         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
9932         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
9933         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
9934         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
9935         (posix_spawn_file_actions_destroy)
9936         (posix_spawn_file_actions_addopen)
9937         (posix_spawn_file_actions_addclose)
9938         (posix_spawn_file_actions_adddup2): Likewise.
9939         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
9940         * tests/test-signal.c (main): Enhance test.
9941
9942         spawn: improve wrapper support
9943         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
9944         (gl_SPAWN_H_DEFAULTS): New defaults.
9945         * modules/spawn (Makefile.am): Substitute them.
9946         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
9947         Only declare if missing or broken.
9948
9949         sys_times, sys_utsname: use include_next
9950         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
9951         header.
9952         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
9953         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
9954         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
9955         * modules/sys_times (Depends-on): Add include_next.
9956         (Makefile.am): Substitute additional values.
9957         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
9958         * lib/sys_times.in.h (includes): Include native header, if
9959         available.
9960         * lib/sys_utsname.in.h (includes): Likewise.
9961         * tests/test-sys_times.c (main): Enhance test.
9962
9963         fdutimensat: revert prior patch
9964         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
9965         utimens.h.
9966         Reported by Bruno Haible.
9967
9968 2009-12-30  Eric Blake  <ebb9@byu.net>
9969
9970         sys_wait: drop link-warning dependency
9971         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
9972         link-warning efforts.
9973         * lib/sys_wait.in.h: Likewise.
9974
9975         fdutimensat: remove bogus dependency
9976         * modules/fdutimensat (Depends-on): Drop inline.
9977
9978         unistd: fix typo
9979         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
9980
9981 2009-12-30  Bruno Haible  <bruno@clisp.org>
9982
9983         Fix compilation error with Solaris cc.
9984         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
9985         * lib/unicase/u16-is-invariant.c: Likewise.
9986         * lib/unicase/u32-is-invariant.c: Likewise.
9987         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
9988
9989 2009-12-30  Bruno Haible  <bruno@clisp.org>
9990
9991         Fix test crash.
9992         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
9993         locales.
9994         Reported by Simon Josefsson <simon@josefsson.org>.
9995
9996 2009-12-30  Bruno Haible  <bruno@clisp.org>
9997
9998         Fix compilation error on most platforms.
9999         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
10000         Reported by Simon Josefsson <simon@josefsson.org>
10001         and Nelson H. F. Beebe <beebe@math.utah.edu>.
10002
10003 2009-12-30  Eric Blake  <ebb9@byu.net>
10004
10005         futimens, utimensat: work around ntfs-3g bug
10006         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
10007         a ctime bug is present, and expand workaround to cover ntfs-3g.
10008         * lib/utimens.c (fdutimens, lutimens): Likewise.
10009         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
10010         (validate_timespec): Adjust return value.
10011         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
10012         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
10013         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
10014
10015 2009-12-29  Eric Blake  <ebb9@byu.net>
10016
10017         link-warning: make usage consistent
10018         * modules/ctype (Depends-on): Add link-warning.
10019         (Makefile.am): Update rules accordingly.
10020         * modules/langinfo (Depends-on, Makefile.am): Likewise.
10021         * modules/locale (Depends-on, Makefile.am): Likewise.
10022         * modules/sys_file (Makefile.am): Likewise.
10023         * modules/getopt-posix (Makefile.am): Delete unused link warning
10024         efforts.
10025         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
10026         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
10027         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
10028         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
10029
10030         stdio: remove unused variables
10031         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
10032         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
10033         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
10034
10035         tests: test more substitute headers
10036         * modules/ctype-tests: New file.
10037         * modules/dirent-tests: Likewise.
10038         * modules/spawn-tests: Likewise.
10039         * modules/sys_file-tests: Likewise.
10040         * modules/sys_ioctl-tests: Likewise.
10041         * modules/sys_wait-tests: Likewise.
10042         * tests/test-ctype.c: Likewise.
10043         * tests/test-dirent.c: Likewise.
10044         * tests/test-spawn.c: Likewise.
10045         * tests/test-sys_file.c: Likewise.
10046         * tests/test-sys_ioctl.c: Likewise.
10047         * tests/test-sys_wait.c: Likewise.
10048         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
10049         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
10050         whether or not flock is in use.
10051
10052         tests: remove License section from module
10053         * modules/arpa_inet-tests: Remove unneeded section.
10054         * modules/byteswap-tests: Likewise.
10055         * modules/ceilf-tests: Likewise.
10056         * modules/ceill-tests: Likewise.
10057         * modules/crypto/des-tests: Likewise.
10058         * modules/crypto/gc-arcfour-tests: Likewise.
10059         * modules/crypto/gc-arctwo-tests: Likewise.
10060         * modules/crypto/gc-des-tests: Likewise.
10061         * modules/crypto/gc-hmac-md5-tests: Likewise.
10062         * modules/crypto/gc-hmac-sha1-tests: Likewise.
10063         * modules/crypto/gc-md2-tests: Likewise.
10064         * modules/crypto/gc-md4-tests: Likewise.
10065         * modules/crypto/gc-md5-tests: Likewise.
10066         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
10067         * modules/crypto/gc-rijndael-tests: Likewise.
10068         * modules/crypto/gc-sha1-tests: Likewise.
10069         * modules/crypto/gc-tests: Likewise.
10070         * modules/crypto/md2-tests: Likewise.
10071         * modules/crypto/md4-tests: Likewise.
10072         * modules/fcntl-h-tests: Likewise.
10073         * modules/floorf-tests: Likewise.
10074         * modules/floorl-tests: Likewise.
10075         * modules/frexp-nolibm-tests: Likewise.
10076         * modules/frexp-tests: Likewise.
10077         * modules/frexpl-nolibm-tests: Likewise.
10078         * modules/frexpl-tests: Likewise.
10079         * modules/getaddrinfo-tests: Likewise.
10080         * modules/inttypes-tests: Likewise.
10081         * modules/isfinite-tests: Likewise.
10082         * modules/isinf-tests: Likewise.
10083         * modules/ldexpl-tests: Likewise.
10084         * modules/locale-tests: Likewise.
10085         * modules/math-tests: Likewise.
10086         * modules/netdb-tests: Likewise.
10087         * modules/netinet_in-tests: Likewise.
10088         * modules/printf-frexp-tests: Likewise.
10089         * modules/printf-frexpl-tests: Likewise.
10090         * modules/priv-set-tests: Likewise.
10091         * modules/random_r-tests: Likewise.
10092         * modules/round-tests: Likewise.
10093         * modules/roundf-tests: Likewise.
10094         * modules/roundl-tests: Likewise.
10095         * modules/search-tests: Likewise.
10096         * modules/select-tests: Likewise.
10097         * modules/signal-tests: Likewise.
10098         * modules/stdbool-tests: Likewise.
10099         * modules/stddef-tests: Likewise.
10100         * modules/stdint-tests: Likewise.
10101         * modules/stdio-tests: Likewise.
10102         * modules/stdlib-tests: Likewise.
10103         * modules/string-tests: Likewise.
10104         * modules/strings-tests: Likewise.
10105         * modules/sys_select-tests: Likewise.
10106         * modules/sys_socket-tests: Likewise.
10107         * modules/sys_stat-tests: Likewise.
10108         * modules/sys_time-tests: Likewise.
10109         * modules/sys_utsname-tests: Likewise.
10110         * modules/sysexits-tests: Likewise.
10111         * modules/time-tests: Likewise.
10112         * modules/trunc-tests: Likewise.
10113         * modules/truncf-tests: Likewise.
10114         * modules/truncl-tests: Likewise.
10115         * modules/tsearch-tests: Likewise.
10116         * modules/unistd-tests: Likewise.
10117         * modules/wchar-tests: Likewise.
10118         * modules/wctype-tests: Likewise.
10119
10120         tests: fix license on several tests
10121         * tests/test-des.c: Update to GPLv3+.
10122         * tests/test-flock.c: Likewise.
10123         * tests/test-fsync.c: Likewise.
10124         * tests/test-futimens.h: Likewise.
10125         * tests/test-gc-arcfour.c: Likewise.
10126         * tests/test-gc-arctwo.c: Likewise.
10127         * tests/test-gc-des.c: Likewise.
10128         * tests/test-gc-hmac-md5.c: Likewise.
10129         * tests/test-gc-hmac-sha1.c: Likewise.
10130         * tests/test-gc-md2.c: Likewise.
10131         * tests/test-gc-md4.c: Likewise.
10132         * tests/test-gc-md5.c: Likewise.
10133         * tests/test-gc-pbkdf2-sha1.c: Likewise.
10134         * tests/test-gc-rijndael.c: Likewise.
10135         * tests/test-gc-sha1.c: Likewise.
10136         * tests/test-gc.c: Likewise.
10137         * tests/test-getcwd.c: Likewise.
10138         * tests/test-link.c: Likewise.
10139         * tests/test-link.h: Likewise.
10140         * tests/test-lutimens.h: Likewise.
10141         * tests/test-md2.c: Likewise.
10142         * tests/test-md4.c: Likewise.
10143         * tests/test-mkdir.h: Likewise.
10144         * tests/test-rename.c: Likewise.
10145         * tests/test-rename.h: Likewise.
10146         * tests/test-safe-alloc.c: Likewise.
10147         * tests/test-utimens-common.h: Likewise.
10148         * tests/test-utimens.h: Likewise.
10149
10150         maint: sync license texts
10151         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
10152         * doc/gpl-3.0.texi: Revert copyright year update.
10153         * doc/lgpl-3.0.texi: Likewise.
10154
10155 2009-12-29  Jim Meyering  <meyering@redhat.com>
10156
10157         update nearly all FSF copyright year lists to include 2009
10158         The files named by the following are exempted:
10159             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
10160               test -f "$dst" && { echo "$dst"; continue; }
10161               test -d "$dst" || continue
10162               echo "$dst"/$(basename "$src")
10163             done > exempt
10164             git ls-files tests/unictype >> exempt
10165         In the remaining files, convert to all-interval notation if
10166         - there is already at least one year interval like 2000-2003
10167         - the file is maintained by me
10168         - the file is in lib/uni*/, where that style already prevails
10169         Otherwise, use update-copyright's default.
10170
10171 2009-12-29  Simon Josefsson  <simon@josefsson.org>
10172         and Eric Blake  <ebb9@byu.net>
10173
10174         tests: don't require debug system() to pass
10175         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
10176         * tests/test-rmdir.h (test_rmdir_func): Likewise.
10177         * tests/test-unlink.h (test_unlink_func): Likewise.
10178         * tests/test-fstatat.c (main): ...into callers.
10179         * tests/test-lstat.c (main): Likewise.
10180         * tests/test-rmdir.c (main): Likewise.
10181         * tests/test-unlink.c (main): Likewise.
10182         * tests/test-unlinkat.c (main): Likewise.
10183         * tests/test-areadlink-with-size.c (main): Don't require a
10184         debug-only system call to pass, aiding cross-testing to mingw.
10185         * tests/test-areadlink.c (main): Likewise.
10186         * tests/test-areadlinkat-with-size.c (main): Likewise.
10187         * tests/test-areadlinkat.c (main): Likewise.
10188         * tests/test-canonicalize-lgpl.c (main): Likewise.
10189         * tests/test-canonicalize.c (main): Likewise.
10190         * tests/test-chown.c (main): Likewise.
10191         * tests/test-fchownat.c (main): Likewise.
10192         * tests/test-lchown.c (main): Likewise.
10193         * tests/test-fdutimensat.c (main): Likewise.
10194         * tests/test-futimens.c (main): Likewise.
10195         * tests/test-link.c (main): Likewise.
10196         * tests/test-linkat.c (main): Likewise.
10197         * tests/test-mkdir.c (main): Likewise.
10198         * tests/test-mkdirat.c (main): Likewise.
10199         * tests/test-mkfifo.c (main): Likewise.
10200         * tests/test-mkfifoat.c (main): Likewise.
10201         * tests/test-mknod.c (main): Likewise.
10202         * tests/test-readlink.c (main): Likewise.
10203         * tests/test-remove.c (main): Likewise.
10204         * tests/test-rename.c (main): Likewise.
10205         * tests/test-renameat.c (main): Likewise.
10206         * tests/test-symlink.c (main): Likewise.
10207         * tests/test-symlinkat.c (main): Likewise.
10208         * tests/test-utimens.c (main): Likewise.
10209         * tests/test-utimensat.c (main): Likewise.
10210
10211 2009-12-29  Simon Josefsson  <simon@josefsson.org>
10212
10213         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
10214         on $(UNUSED_PARAMETER_H) to avoid build failure.
10215
10216 2009-12-28  Jim Meyering  <meyering@redhat.com>
10217
10218         update-copyright: you may specify a max. line length other than 72
10219         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
10220
10221         maint: use consistent FSF copyright line syntax
10222         * lib/posixtm.c: Add missing comma in FSF copyright line.
10223         * lib/posixtm.h: Likewise.
10224         * lib/getugroups.c: Add missing ", Inc.".
10225
10226         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
10227         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
10228         FSF copyright line.  Remove trailing blanks.
10229
10230 2009-12-28  Eric Blake  <ebb9@byu.net>
10231
10232         test-dup2: reduce dependencies
10233         * modules/cloexec (Configure.ac): Set witness.
10234         * modules/dup2-tests (Depends-on): Drop cloexec.
10235         * tests/test-dup2.c (main): Skip portion of test if cloexec module
10236         not present.
10237         Suggested by Bruno Haible.
10238
10239 2009-12-26  Bruno Haible  <bruno@clisp.org>
10240
10241         Remove an unneeded dependency.
10242         * modules/fseterr (Depends-on): Remove dup2.
10243
10244 2009-12-26  Eric Blake  <ebb9@byu.net>
10245
10246         tests: use macros.h in more places
10247         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
10248         (ASSERT_STREAM): Provide default of stderr.
10249         * tests/test-dirent-safer.c: Include macros.h, using alternate
10250         stream for assertions.
10251         * tests/test-dup-safer.c: Likewise.
10252         * tests/test-freopen-safer.c: Likewise.
10253         * tests/test-getopt.c: Likewise.
10254         * tests/test-openat-safer.c: Likewise.
10255         * tests/test-pipe.c: Likewise.
10256         * tests/test-popen-safer.c: Likewise.
10257         * modules/dirent-safer-tests (Files): Include macros.h.
10258         * modules/unistd-safer-tests (Files): Likewise.
10259         * modules/freopen-safer-tests (Files): Likewise.
10260         * modules/getopt-posix-tests (Files): Likewise.
10261         * modules/openat-safer-tests (Files): Likewise.
10262         * modules/pipe-tests (Files): Likewise.
10263
10264 2009-12-26  Bruno Haible  <bruno@clisp.org>
10265
10266         javacomp: Portability fix.
10267         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
10268         that it also works on Solaris.
10269
10270 2009-12-26  Bruno Haible  <bruno@clisp.org>
10271
10272         localename: Fix storage allocation of gl_locale_name_thread's result.
10273         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
10274         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
10275         all platforms that have 'uselocale'.
10276         (gl_locale_name_thread_unsafe): New function, extracted from
10277         gl_locale_name_thread.
10278         (gl_locale_name_thread): Call struniq on all platforms that have
10279         'uselocale'.
10280         * tests/test-localename.c (test_locale_name_thread): Check that the
10281         resulting strings are permanently allocated.
10282         * modules/localename-tests (Depends-on): Add strdup.
10283
10284 2009-12-26  Bruno Haible  <bruno@clisp.org>
10285
10286         * tests/test-localename.c (categories): Fill in the strings.
10287
10288 2009-12-26  Jim Meyering  <meyering@redhat.com>
10289
10290         isdir: complete the removal of m4/isdir.m4
10291         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
10292
10293         isdir: clean up, since at least grep still uses it
10294         * lib/isdir.c: Include "isdir.h".
10295         (S_ISDIR): Remove now-unneeded definition.
10296         * modules/isdir (Files): Add lib/isdir.h.
10297         * lib/isdir.h: New file, with declaration.
10298         * m4/isdir.m4: Remove file -- unneeded.
10299
10300 2009-12-25  Bruno Haible  <bruno@clisp.org>
10301
10302         selinux-h: Make generated .h files standalone.
10303         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
10304         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
10305         * lib/se-selinux.in.h: Likewise.
10306         * modules/selinux-h (Depends-on): Add unused-parameter.
10307         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
10308         selinux/selinux.h and selinux/context.h.
10309         Suggested by Eric Blake.
10310
10311 2009-12-25  Bruno Haible  <bruno@clisp.org>
10312
10313         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
10314         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
10315         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
10316         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
10317         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
10318
10319 2009-12-24  Bruno Haible  <bruno@clisp.org>
10320
10321         openat: Fix warning.
10322         * lib/openat-proc.c: Include <unistd.h>.
10323
10324 2009-12-24  Bruno Haible  <bruno@clisp.org>
10325
10326         New module 'unused-parameter'.
10327         * build-aux/unused-parameter.h: New file, extracted from earlier
10328         gnulib-common.m4.
10329         * modules/unused-parameter: New file.
10330         * lib/unistr.h: Include unused-parameter.h.
10331         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
10332         _GL_UNUSED.
10333         * modules/unistr/base (Depends-on): Add unused-parameter.
10334
10335 2009-12-24  Bruno Haible  <bruno@clisp.org>
10336
10337         Add missing dependencies to 'extensions' module.
10338         * m4/extensions.m4: Add comment.
10339         * modules/accept4 (Depends-on): Add extensions.
10340         * modules/dup3 (Depends-on): Likewise.
10341         * modules/fcntl (Depends-on): Likewise.
10342         * modules/futimens (Depends-on): Likewise.
10343         * modules/mknod (Depends-on): Likewise.
10344         * modules/pipe2 (Depends-on): Likewise.
10345         * modules/stat-time (Depends-on): Likewise.
10346         * modules/strcasestr-simple (Depends-on): Likewise.
10347         * modules/strsignal (Depends-on): Likewise.
10348         * modules/utimensat (Depends-on): Likewise.
10349         * modules/localcharset (Depends-on): Likewise. Needed because of
10350         gl_FCNTL_O_FLAGS.
10351         * modules/wcrtomb (Depends-on): Likewise. Needed because of
10352         AC_TYPE_MBSTATE_T.
10353         * modules/wcsnrtombs (Depends-on): Likewise.
10354         * modules/wcsrtombs (Depends-on): Likewise.
10355
10356 2009-12-24  Bruno Haible  <bruno@clisp.org>
10357
10358         binary-io: Avoid gcc warning due to SET_BINARY.
10359         * lib/binary-io.h (SET_BINARY): Cast the result to void.
10360         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
10361
10362 2009-12-24  Bruno Haible  <bruno@clisp.org>
10363
10364         Avoid future namespace pollution on glibc systems.
10365         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
10366         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
10367         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
10368         glibc systems.
10369
10370 2009-12-24  Bruno Haible  <bruno@clisp.org>
10371
10372         Refactor common macros used in tests.
10373         * tests/macros.h: New file.
10374         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
10375         and/or <stdlib.h>, if appropriate.
10376         (ASSERT, SIZEOF): Remove macros.
10377         * tests/test-areadlink-with-size.c: Likewise.
10378         * tests/test-areadlinkat.c: Likewise.
10379         * tests/test-areadlinkat-with-size.c: Likewise.
10380         * tests/test-argmatch.c: Likewise.
10381         * tests/test-argv-iter.c: Likewise.
10382         * tests/test-array-mergesort.c: Likewise.
10383         * tests/test-array_list.c: Likewise.
10384         * tests/test-array_oset.c: Likewise.
10385         * tests/test-avltree_list.c: Likewise.
10386         * tests/test-avltree_oset.c: Likewise.
10387         * tests/test-avltreehash_list.c: Likewise.
10388         * tests/test-base64.c: Likewise.
10389         * tests/test-binary-io.c: Likewise.
10390         * tests/test-bitrotate.c: Likewise.
10391         * tests/test-btowc.c: Likewise.
10392         * tests/test-byteswap.c: Likewise.
10393         * tests/test-c-ctype.c: Likewise.
10394         * tests/test-c-stack.c: Likewise.
10395         * tests/test-c-strcasecmp.c: Likewise.
10396         * tests/test-c-strcasestr.c: Likewise.
10397         * tests/test-c-strncasecmp.c: Likewise.
10398         * tests/test-c-strstr.c: Likewise.
10399         * tests/test-canonicalize-lgpl.c: Likewise.
10400         * tests/test-canonicalize.c: Likewise.
10401         * tests/test-carray_list.c: Likewise.
10402         * tests/test-ceilf1.c: Likewise.
10403         * tests/test-ceilf2.c: Likewise.
10404         * tests/test-ceill.c: Likewise.
10405         * tests/test-chown.c: Likewise.
10406         * tests/test-cloexec.c: Likewise.
10407         * tests/test-copy-acl.c: Likewise.
10408         * tests/test-copy-file.c: Likewise.
10409         * tests/test-count-one-bits.c: Likewise.
10410         * tests/test-dprintf-posix.c: Likewise.
10411         * tests/test-dup2.c: Likewise.
10412         * tests/test-dup3.c: Likewise.
10413         * tests/test-duplocale.c: Likewise.
10414         * tests/test-fbufmode.c: Likewise.
10415         * tests/test-fchdir.c: Likewise.
10416         * tests/test-fchownat.c: Likewise.
10417         * tests/test-fcntl-safer.c: Likewise.
10418         * tests/test-fcntl.c: Likewise.
10419         * tests/test-fdopendir.c: Likewise.
10420         * tests/test-fdutimensat.c: Likewise.
10421         * tests/test-fflush2.c: Likewise.
10422         * tests/test-file-has-acl.c: Likewise.
10423         * tests/test-filevercmp.c: Likewise.
10424         * tests/test-flock.c: Likewise.
10425         * tests/test-floorf1.c: Likewise.
10426         * tests/test-floorf2.c: Likewise.
10427         * tests/test-floorl.c: Likewise.
10428         * tests/test-fnmatch.c: Likewise.
10429         * tests/test-fopen.h: Likewise.
10430         * tests/test-fpending.c: Likewise.
10431         * tests/test-fprintf-posix.c: Likewise.
10432         * tests/test-fpurge.c: Likewise.
10433         * tests/test-freadable.c: Likewise.
10434         * tests/test-freadahead.c: Likewise.
10435         * tests/test-freading.c: Likewise.
10436         * tests/test-freadptr.c: Likewise.
10437         * tests/test-freadptr2.c: Likewise.
10438         * tests/test-freadseek.c: Likewise.
10439         * tests/test-freopen.c: Likewise.
10440         * tests/test-frexp.c: Likewise.
10441         * tests/test-frexpl.c: Likewise.
10442         * tests/test-fseek.c: Likewise.
10443         * tests/test-fseeko.c: Likewise.
10444         * tests/test-fstatat.c: Likewise.
10445         * tests/test-fstrcmp.c: Likewise.
10446         * tests/test-fsync.c: Likewise.
10447         * tests/test-ftell.c: Likewise.
10448         * tests/test-ftello.c: Likewise.
10449         * tests/test-func.c: Likewise.
10450         * tests/test-futimens.c: Likewise.
10451         * tests/test-fwritable.c: Likewise.
10452         * tests/test-fwriting.c: Likewise.
10453         * tests/test-getcwd.c: Likewise.
10454         * tests/test-getdate.c: Likewise.
10455         * tests/test-getdelim.c: Likewise.
10456         * tests/test-getdtablesize.c: Likewise.
10457         * tests/test-getgroups.c: Likewise.
10458         * tests/test-getline.c: Likewise.
10459         * tests/test-getndelim2.c: Likewise.
10460         * tests/test-glob.c: Likewise.
10461         * tests/test-hash.c: Likewise.
10462         * tests/test-i-ring.c: Likewise.
10463         * tests/test-iconv-utf.c: Likewise.
10464         * tests/test-iconv.c: Likewise.
10465         * tests/test-idpriv-drop.c: Likewise.
10466         * tests/test-idpriv-droptemp.c: Likewise.
10467         * tests/test-inet_ntop.c: Likewise.
10468         * tests/test-inet_pton.c: Likewise.
10469         * tests/test-isblank.c: Likewise.
10470         * tests/test-isfinite.c: Likewise.
10471         * tests/test-isinf.c: Likewise.
10472         * tests/test-isnan.c: Likewise.
10473         * tests/test-isnand.h: Likewise.
10474         * tests/test-isnanf.h: Likewise.
10475         * tests/test-isnanl.h: Likewise.
10476         * tests/test-lchown.c: Likewise.
10477         * tests/test-ldexpl.c: Likewise.
10478         * tests/test-link.c: Likewise.
10479         * tests/test-linkat.c: Likewise.
10480         * tests/test-linked_list.c: Likewise.
10481         * tests/test-linkedhash_list.c: Likewise.
10482         * tests/test-localename.c: Likewise.
10483         * tests/test-lseek.c: Likewise.
10484         * tests/test-lstat.c: Likewise.
10485         * tests/test-mbmemcasecmp.c: Likewise.
10486         * tests/test-mbmemcasecoll.c: Likewise.
10487         * tests/test-mbrtowc.c: Likewise.
10488         * tests/test-mbscasecmp.c: Likewise.
10489         * tests/test-mbscasestr1.c: Likewise.
10490         * tests/test-mbscasestr2.c: Likewise.
10491         * tests/test-mbscasestr3.c: Likewise.
10492         * tests/test-mbscasestr4.c: Likewise.
10493         * tests/test-mbschr.c: Likewise.
10494         * tests/test-mbscspn.c: Likewise.
10495         * tests/test-mbsinit.c: Likewise.
10496         * tests/test-mbsncasecmp.c: Likewise.
10497         * tests/test-mbsnrtowcs.c: Likewise.
10498         * tests/test-mbspbrk.c: Likewise.
10499         * tests/test-mbspcasecmp.c: Likewise.
10500         * tests/test-mbsrchr.c: Likewise.
10501         * tests/test-mbsrtowcs.c: Likewise.
10502         * tests/test-mbsspn.c: Likewise.
10503         * tests/test-mbsstr1.c: Likewise.
10504         * tests/test-mbsstr2.c: Likewise.
10505         * tests/test-mbsstr3.c: Likewise.
10506         * tests/test-memchr.c: Likewise.
10507         * tests/test-memchr2.c: Likewise.
10508         * tests/test-memcmp.c: Likewise.
10509         * tests/test-memmem.c: Likewise.
10510         * tests/test-memrchr.c: Likewise.
10511         * tests/test-mkdir.c: Likewise.
10512         * tests/test-mkdirat.c: Likewise.
10513         * tests/test-mkfifo.c: Likewise.
10514         * tests/test-mkfifoat.c: Likewise.
10515         * tests/test-mknod.c: Likewise.
10516         * tests/test-nanosleep.c: Likewise.
10517         * tests/test-nl_langinfo.c: Likewise.
10518         * tests/test-obstack-printf.c: Likewise.
10519         * tests/test-open.c: Likewise.
10520         * tests/test-openat.c: Likewise.
10521         * tests/test-pipe-filter-gi1.c: Likewise.
10522         * tests/test-pipe-filter-gi2-main.c: Likewise.
10523         * tests/test-pipe-filter-ii1.c: Likewise.
10524         * tests/test-pipe-filter-ii2-main.c: Likewise.
10525         * tests/test-pipe2.c: Likewise.
10526         * tests/test-popen.h: Likewise.
10527         * tests/test-posixtm.c: Likewise.
10528         * tests/test-pread.c: Likewise.
10529         * tests/test-printf-frexp.c: Likewise.
10530         * tests/test-printf-frexpl.c: Likewise.
10531         * tests/test-printf-posix.c: Likewise.
10532         * tests/test-priv-set.c: Likewise.
10533         * tests/test-quotearg.c: Likewise.
10534         * tests/test-random_r.c: Likewise.
10535         * tests/test-rawmemchr.c: Likewise.
10536         * tests/test-rbtree_list.c: Likewise.
10537         * tests/test-rbtree_oset.c: Likewise.
10538         * tests/test-rbtreehash_list.c: Likewise.
10539         * tests/test-readlink.c: Likewise.
10540         * tests/test-remove.c: Likewise.
10541         * tests/test-rename.c: Likewise.
10542         * tests/test-renameat.c: Likewise.
10543         * tests/test-rmdir.c: Likewise.
10544         * tests/test-round1.c: Likewise.
10545         * tests/test-roundf1.c: Likewise.
10546         * tests/test-roundl.c: Likewise.
10547         * tests/test-safe-alloc.c: Likewise.
10548         * tests/test-sameacls.c: Likewise.
10549         * tests/test-set-mode-acl.c: Likewise.
10550         * tests/test-setenv.c: Likewise.
10551         * tests/test-sigaction.c: Likewise.
10552         * tests/test-signbit.c: Likewise.
10553         * tests/test-sleep.c: Likewise.
10554         * tests/test-snprintf-posix.c: Likewise.
10555         * tests/test-snprintf.c: Likewise.
10556         * tests/test-sprintf-posix.c: Likewise.
10557         * tests/test-stat-time.c: Likewise.
10558         * tests/test-stat.c: Likewise.
10559         * tests/test-strcasestr.c: Likewise.
10560         * tests/test-strchrnul.c: Likewise.
10561         * tests/test-strerror.c: Likewise.
10562         * tests/test-striconv.c: Likewise.
10563         * tests/test-striconveh.c: Likewise.
10564         * tests/test-striconveha.c: Likewise.
10565         * tests/test-strsignal.c: Likewise.
10566         * tests/test-strstr.c: Likewise.
10567         * tests/test-strtod.c: Likewise.
10568         * tests/test-strverscmp.c: Likewise.
10569         * tests/test-symlink.c: Likewise.
10570         * tests/test-symlinkat.c: Likewise.
10571         * tests/test-trunc1.c: Likewise.
10572         * tests/test-trunc2.c: Likewise.
10573         * tests/test-truncf1.c: Likewise.
10574         * tests/test-truncf2.c: Likewise.
10575         * tests/test-truncl.c: Likewise.
10576         * tests/test-uname.c: Likewise.
10577         * tests/test-unlink.c: Likewise.
10578         * tests/test-unlinkat.c: Likewise.
10579         * tests/test-unsetenv.c: Likewise.
10580         * tests/test-usleep.c: Likewise.
10581         * tests/test-utimens.c: Likewise.
10582         * tests/test-utimensat.c: Likewise.
10583         * tests/test-vasnprintf-posix.c: Likewise.
10584         * tests/test-vasnprintf-posix2.c: Likewise.
10585         * tests/test-vasnprintf.c: Likewise.
10586         * tests/test-vasprintf-posix.c: Likewise.
10587         * tests/test-vasprintf.c: Likewise.
10588         * tests/test-vdprintf-posix.c: Likewise.
10589         * tests/test-vfprintf-posix.c: Likewise.
10590         * tests/test-vprintf-posix.c: Likewise.
10591         * tests/test-vsnprintf-posix.c: Likewise.
10592         * tests/test-vsnprintf.c: Likewise.
10593         * tests/test-vsprintf-posix.c: Likewise.
10594         * tests/test-wcrtomb.c: Likewise.
10595         * tests/test-wcsnrtombs.c: Likewise.
10596         * tests/test-wcsrtombs.c: Likewise.
10597         * tests/test-wctype.c: Likewise.
10598         * tests/test-wcwidth.c: Likewise.
10599         * tests/test-xfprintf-posix.c: Likewise.
10600         * tests/test-xmemdup0.c: Likewise.
10601         * tests/test-xprintf-posix.c: Likewise.
10602         * tests/test-xvasprintf.c: Likewise.
10603         * tests/unicase/test-locale-language.c: Likewise.
10604         * tests/unicase/test-mapping-part1.h: Likewise.
10605         * tests/unicase/test-predicate-part1.h: Likewise.
10606         * tests/unicase/test-u8-casecmp.c: Likewise.
10607         * tests/unicase/test-u8-casecoll.c: Likewise.
10608         * tests/unicase/test-u8-casefold.c: Likewise.
10609         * tests/unicase/test-u8-is-cased.c: Likewise.
10610         * tests/unicase/test-u8-is-casefolded.c: Likewise.
10611         * tests/unicase/test-u8-is-lowercase.c: Likewise.
10612         * tests/unicase/test-u8-is-titlecase.c: Likewise.
10613         * tests/unicase/test-u8-is-uppercase.c: Likewise.
10614         * tests/unicase/test-u8-tolower.c: Likewise.
10615         * tests/unicase/test-u8-totitle.c: Likewise.
10616         * tests/unicase/test-u8-toupper.c: Likewise.
10617         * tests/unicase/test-u16-casecmp.c: Likewise.
10618         * tests/unicase/test-u16-casecoll.c: Likewise.
10619         * tests/unicase/test-u16-casefold.c: Likewise.
10620         * tests/unicase/test-u16-is-cased.c: Likewise.
10621         * tests/unicase/test-u16-is-casefolded.c: Likewise.
10622         * tests/unicase/test-u16-is-lowercase.c: Likewise.
10623         * tests/unicase/test-u16-is-titlecase.c: Likewise.
10624         * tests/unicase/test-u16-is-uppercase.c: Likewise.
10625         * tests/unicase/test-u16-tolower.c: Likewise.
10626         * tests/unicase/test-u16-totitle.c: Likewise.
10627         * tests/unicase/test-u16-toupper.c: Likewise.
10628         * tests/unicase/test-u32-casecmp.c: Likewise.
10629         * tests/unicase/test-u32-casecoll.c: Likewise.
10630         * tests/unicase/test-u32-casefold.c: Likewise.
10631         * tests/unicase/test-u32-is-cased.c: Likewise.
10632         * tests/unicase/test-u32-is-casefolded.c: Likewise.
10633         * tests/unicase/test-u32-is-lowercase.c: Likewise.
10634         * tests/unicase/test-u32-is-titlecase.c: Likewise.
10635         * tests/unicase/test-u32-is-uppercase.c: Likewise.
10636         * tests/unicase/test-u32-tolower.c: Likewise.
10637         * tests/unicase/test-u32-totitle.c: Likewise.
10638         * tests/unicase/test-u32-toupper.c: Likewise.
10639         * tests/unicase/test-ulc-casecmp.c: Likewise.
10640         * tests/unicase/test-ulc-casecoll.c: Likewise.
10641         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
10642         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
10643         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
10644         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
10645         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
10646         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
10647         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
10648         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
10649         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
10650         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
10651         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
10652         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
10653         * tests/unictype/test-bidi_byname.c: Likewise.
10654         * tests/unictype/test-bidi_name.c: Likewise.
10655         * tests/unictype/test-bidi_of.c: Likewise.
10656         * tests/unictype/test-bidi_test.c: Likewise.
10657         * tests/unictype/test-block_list.c: Likewise.
10658         * tests/unictype/test-block_of.c: Likewise.
10659         * tests/unictype/test-block_test.c: Likewise.
10660         * tests/unictype/test-categ_and.c: Likewise.
10661         * tests/unictype/test-categ_and_not.c: Likewise.
10662         * tests/unictype/test-categ_byname.c: Likewise.
10663         * tests/unictype/test-categ_name.c: Likewise.
10664         * tests/unictype/test-categ_none.c: Likewise.
10665         * tests/unictype/test-categ_of.c: Likewise.
10666         * tests/unictype/test-categ_or.c: Likewise.
10667         * tests/unictype/test-categ_test_withtable.c: Likewise.
10668         * tests/unictype/test-combining.c: Likewise.
10669         * tests/unictype/test-decdigit.c: Likewise.
10670         * tests/unictype/test-digit.c: Likewise.
10671         * tests/unictype/test-mirror.c: Likewise.
10672         * tests/unictype/test-numeric.c: Likewise.
10673         * tests/unictype/test-pr_byname.c: Likewise.
10674         * tests/unictype/test-pr_test.c: Likewise.
10675         * tests/unictype/test-predicate-part1.h: Likewise.
10676         * tests/unictype/test-scripts.c: Likewise.
10677         * tests/unictype/test-sy_c_ident.c: Likewise.
10678         * tests/unictype/test-sy_java_ident.c: Likewise.
10679         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
10680         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
10681         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
10682         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
10683         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
10684         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
10685         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
10686         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
10687         * tests/uninorm/test-canonical-decomposition.c: Likewise.
10688         * tests/uninorm/test-compat-decomposition.c: Likewise.
10689         * tests/uninorm/test-composition.c: Likewise.
10690         * tests/uninorm/test-decomposing-form.c: Likewise.
10691         * tests/uninorm/test-decomposition.c: Likewise.
10692         * tests/uninorm/test-u8-nfc.c: Likewise.
10693         * tests/uninorm/test-u8-nfd.c: Likewise.
10694         * tests/uninorm/test-u8-nfkc.c: Likewise.
10695         * tests/uninorm/test-u8-nfkd.c: Likewise.
10696         * tests/uninorm/test-u8-normcmp.c: Likewise.
10697         * tests/uninorm/test-u8-normcoll.c: Likewise.
10698         * tests/uninorm/test-u16-nfc.c: Likewise.
10699         * tests/uninorm/test-u16-nfd.c: Likewise.
10700         * tests/uninorm/test-u16-nfkc.c: Likewise.
10701         * tests/uninorm/test-u16-nfkd.c: Likewise.
10702         * tests/uninorm/test-u16-normcmp.c: Likewise.
10703         * tests/uninorm/test-u16-normcoll.c: Likewise.
10704         * tests/uninorm/test-u32-nfc.c: Likewise.
10705         * tests/uninorm/test-u32-nfd.c: Likewise.
10706         * tests/uninorm/test-u32-nfkc.c: Likewise.
10707         * tests/uninorm/test-u32-nfkd.c: Likewise.
10708         * tests/uninorm/test-u32-normalize-big.c: Likewise.
10709         * tests/uninorm/test-u32-normcmp.c: Likewise.
10710         * tests/uninorm/test-u32-normcoll.c: Likewise.
10711         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
10712         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
10713         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
10714         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
10715         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
10716         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
10717         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
10718         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
10719         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
10720         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
10721         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
10722         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
10723         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
10724         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
10725         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
10726         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
10727         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
10728         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
10729         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
10730         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
10731         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
10732         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
10733         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
10734         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
10735         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
10736         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
10737         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
10738         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
10739         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
10740         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
10741         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
10742         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
10743         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
10744         * tests/uniwidth/test-u8-strwidth.c: Likewise.
10745         * tests/uniwidth/test-u8-width.c: Likewise.
10746         * tests/uniwidth/test-u16-strwidth.c: Likewise.
10747         * tests/uniwidth/test-u16-width.c: Likewise.
10748         * tests/uniwidth/test-u32-strwidth.c: Likewise.
10749         * tests/uniwidth/test-u32-width.c: Likewise.
10750         * tests/uniwidth/test-uc_width.c: Likewise.
10751         * tests/uniwidth/test-uc_width2.c: Likewise.
10752         * modules/acl-tests (Files): Add tests/macros.h.
10753         * modules/areadlink-tests (Files): Likewise.
10754         * modules/areadlink-with-size-tests (Files): Likewise.
10755         * modules/areadlinkat-tests (Files): Likewise.
10756         * modules/areadlinkat-with-size-tests (Files): Likewise.
10757         * modules/argmatch-tests (Files): Likewise.
10758         * modules/argv-iter-tests (Files): Likewise.
10759         * modules/array-list-tests (Files): Likewise.
10760         * modules/array-mergesort-tests (Files): Likewise.
10761         * modules/array-oset-tests (Files): Likewise.
10762         * modules/avltree-list-tests (Files): Likewise.
10763         * modules/avltree-oset-tests (Files): Likewise.
10764         * modules/avltreehash-list-tests (Files): Likewise.
10765         * modules/base64-tests (Files): Likewise.
10766         * modules/binary-io-tests (Files): Likewise.
10767         * modules/bitrotate-tests (Files): Likewise.
10768         * modules/btowc-tests (Files): Likewise.
10769         * modules/byteswap-tests (Files): Likewise.
10770         * modules/c-ctype-tests (Files): Likewise.
10771         * modules/c-stack-tests (Files): Likewise.
10772         * modules/c-strcase-tests (Files): Likewise.
10773         * modules/c-strcasestr-tests (Files): Likewise.
10774         * modules/c-strstr-tests (Files): Likewise.
10775         * modules/canonicalize-lgpl-tests (Files): Likewise.
10776         * modules/canonicalize-tests (Files): Likewise.
10777         * modules/carray-list-tests (Files): Likewise.
10778         * modules/ceilf-tests (Files): Likewise.
10779         * modules/ceill-tests (Files): Likewise.
10780         * modules/chown-tests (Files): Likewise.
10781         * modules/cloexec-tests (Files): Likewise.
10782         * modules/copy-file-tests (Files): Likewise.
10783         * modules/count-one-bits-tests (Files): Likewise.
10784         * modules/dprintf-posix-tests (Files): Likewise.
10785         * modules/dup2-tests (Files): Likewise.
10786         * modules/dup3-tests (Files): Likewise.
10787         * modules/duplocale-tests (Files): Likewise.
10788         * modules/fbufmode-tests (Files): Likewise.
10789         * modules/fchdir-tests (Files): Likewise.
10790         * modules/fcntl-safer-tests (Files): Likewise.
10791         * modules/fcntl-tests (Files): Likewise.
10792         * modules/fdopendir-tests (Files): Likewise.
10793         * modules/fdutimensat-tests (Files): Likewise.
10794         * modules/fflush-tests (Files): Likewise.
10795         * modules/filevercmp-tests (Files): Likewise.
10796         * modules/flock-tests (Files): Likewise.
10797         * modules/floorf-tests (Files): Likewise.
10798         * modules/floorl-tests (Files): Likewise.
10799         * modules/fnmatch-tests (Files): Likewise.
10800         * modules/fopen-safer-tests (Files): Likewise.
10801         * modules/fopen-tests (Files): Likewise.
10802         * modules/fpending-tests (Files): Likewise.
10803         * modules/fprintf-posix-tests (Files): Likewise.
10804         * modules/fpurge-tests (Files): Likewise.
10805         * modules/freadable-tests (Files): Likewise.
10806         * modules/freadahead-tests (Files): Likewise.
10807         * modules/freading-tests (Files): Likewise.
10808         * modules/freadptr-tests (Files): Likewise.
10809         * modules/freadseek-tests (Files): Likewise.
10810         * modules/freopen-tests (Files): Likewise.
10811         * modules/frexp-nolibm-tests (Files): Likewise.
10812         * modules/frexp-tests (Files): Likewise.
10813         * modules/frexpl-nolibm-tests (Files): Likewise.
10814         * modules/frexpl-tests (Files): Likewise.
10815         * modules/fseek-tests (Files): Likewise.
10816         * modules/fseeko-tests (Files): Likewise.
10817         * modules/fstrcmp-tests (Files): Likewise.
10818         * modules/fsync-tests (Files): Likewise.
10819         * modules/ftell-tests (Files): Likewise.
10820         * modules/ftello-tests (Files): Likewise.
10821         * modules/func-tests (Files): Likewise.
10822         * modules/futimens-tests (Files): Likewise.
10823         * modules/fwritable-tests (Files): Likewise.
10824         * modules/fwriting-tests (Files): Likewise.
10825         * modules/getcwd-tests (Files): Likewise.
10826         * modules/getdate-tests (Files): Likewise.
10827         * modules/getdelim-tests (Files): Likewise.
10828         * modules/getdtablesize-tests (Files): Likewise.
10829         * modules/getgroups-tests (Files): Likewise.
10830         * modules/getline-tests (Files): Likewise.
10831         * modules/getndelim2-tests (Files): Likewise.
10832         * modules/glob-tests (Files): Likewise.
10833         * modules/hash-tests (Files): Likewise.
10834         * modules/i-ring-tests (Files): Likewise.
10835         * modules/iconv-tests (Files): Likewise.
10836         * modules/iconv_open-utf-tests (Files): Likewise.
10837         * modules/idpriv-drop-tests (Files): Likewise.
10838         * modules/idpriv-droptemp-tests (Files): Likewise.
10839         * modules/inet_ntop-tests (Files): Likewise.
10840         * modules/inet_pton-tests (Files): Likewise.
10841         * modules/isblank-tests (Files): Likewise.
10842         * modules/isfinite-tests (Files): Likewise.
10843         * modules/isinf-tests (Files): Likewise.
10844         * modules/isnan-tests (Files): Likewise.
10845         * modules/isnand-nolibm-tests (Files): Likewise.
10846         * modules/isnand-tests (Files): Likewise.
10847         * modules/isnanf-nolibm-tests (Files): Likewise.
10848         * modules/isnanf-tests (Files): Likewise.
10849         * modules/isnanl-nolibm-tests (Files): Likewise.
10850         * modules/isnanl-tests (Files): Likewise.
10851         * modules/lchown-tests (Files): Likewise.
10852         * modules/ldexpl-tests (Files): Likewise.
10853         * modules/link-tests (Files): Likewise.
10854         * modules/linkat-tests (Files): Likewise.
10855         * modules/linked-list-tests (Files): Likewise.
10856         * modules/linkedhash-list-tests (Files): Likewise.
10857         * modules/localename-tests (Files): Likewise.
10858         * modules/lseek-tests (Files): Likewise.
10859         * modules/lstat-tests (Files): Likewise.
10860         * modules/mbmemcasecmp-tests (Files): Likewise.
10861         * modules/mbmemcasecoll-tests (Files): Likewise.
10862         * modules/mbrtowc-tests (Files): Likewise.
10863         * modules/mbscasecmp-tests (Files): Likewise.
10864         * modules/mbscasestr-tests (Files): Likewise.
10865         * modules/mbschr-tests (Files): Likewise.
10866         * modules/mbscspn-tests (Files): Likewise.
10867         * modules/mbsinit-tests (Files): Likewise.
10868         * modules/mbsncasecmp-tests (Files): Likewise.
10869         * modules/mbsnrtowcs-tests (Files): Likewise.
10870         * modules/mbspbrk-tests (Files): Likewise.
10871         * modules/mbspcasecmp-tests (Files): Likewise.
10872         * modules/mbsrchr-tests (Files): Likewise.
10873         * modules/mbsrtowcs-tests (Files): Likewise.
10874         * modules/mbsspn-tests (Files): Likewise.
10875         * modules/mbsstr-tests (Files): Likewise.
10876         * modules/memchr-tests (Files): Likewise.
10877         * modules/memchr2-tests (Files): Likewise.
10878         * modules/memcmp-tests (Files): Likewise.
10879         * modules/memmem-tests (Files): Likewise.
10880         * modules/memrchr-tests (Files): Likewise.
10881         * modules/mkdir-tests (Files): Likewise.
10882         * modules/mkfifo-tests (Files): Likewise.
10883         * modules/mkfifoat-tests (Files): Likewise.
10884         * modules/mknod-tests (Files): Likewise.
10885         * modules/nanosleep-tests (Files): Likewise.
10886         * modules/nl_langinfo-tests (Files): Likewise.
10887         * modules/obstack-printf-tests (Files): Likewise.
10888         * modules/open-tests (Files): Likewise.
10889         * modules/openat-tests (Files): Likewise.
10890         * modules/pipe-filter-gi-tests (Files): Likewise.
10891         * modules/pipe-filter-ii-tests (Files): Likewise.
10892         * modules/pipe2-tests (Files): Likewise.
10893         * modules/popen-safer-tests (Files): Likewise.
10894         * modules/popen-tests (Files): Likewise.
10895         * modules/posixtm-tests (Files): Likewise.
10896         * modules/pread-tests (Files): Likewise.
10897         * modules/printf-frexp-tests (Files): Likewise.
10898         * modules/printf-frexpl-tests (Files): Likewise.
10899         * modules/printf-posix-tests (Files): Likewise.
10900         * modules/priv-set-tests (Files): Likewise.
10901         * modules/quotearg-tests (Files): Likewise.
10902         * modules/random_r-tests (Files): Likewise.
10903         * modules/rawmemchr-tests (Files): Likewise.
10904         * modules/rbtree-list-tests (Files): Likewise.
10905         * modules/rbtree-oset-tests (Files): Likewise.
10906         * modules/rbtreehash-list-tests (Files): Likewise.
10907         * modules/readlink-tests (Files): Likewise.
10908         * modules/remove-tests (Files): Likewise.
10909         * modules/rename-tests (Files): Likewise.
10910         * modules/renameat-tests (Files): Likewise.
10911         * modules/rmdir-tests (Files): Likewise.
10912         * modules/round-tests (Files): Likewise.
10913         * modules/roundf-tests (Files): Likewise.
10914         * modules/roundl-tests (Files): Likewise.
10915         * modules/safe-alloc-tests (Files): Likewise.
10916         * modules/setenv-tests (Files): Likewise.
10917         * modules/sigaction-tests (Files): Likewise.
10918         * modules/signbit-tests (Files): Likewise.
10919         * modules/sleep-tests (Files): Likewise.
10920         * modules/snprintf-posix-tests (Files): Likewise.
10921         * modules/snprintf-tests (Files): Likewise.
10922         * modules/sprintf-posix-tests (Files): Likewise.
10923         * modules/stat-tests (Files): Likewise.
10924         * modules/stat-time-tests (Files): Likewise.
10925         * modules/strcasestr-tests (Files): Likewise.
10926         * modules/strchrnul-tests (Files): Likewise.
10927         * modules/strerror-tests (Files): Likewise.
10928         * modules/striconv-tests (Files): Likewise.
10929         * modules/striconveh-tests (Files): Likewise.
10930         * modules/striconveha-tests (Files): Likewise.
10931         * modules/strsignal-tests (Files): Likewise.
10932         * modules/strstr-tests (Files): Likewise.
10933         * modules/strtod-tests (Files): Likewise.
10934         * modules/strverscmp-tests (Files): Likewise.
10935         * modules/symlink-tests (Files): Likewise.
10936         * modules/symlinkat-tests (Files): Likewise.
10937         * modules/trunc-tests (Files): Likewise.
10938         * modules/truncf-tests (Files): Likewise.
10939         * modules/truncl-tests (Files): Likewise.
10940         * modules/uname-tests (Files): Likewise.
10941         * modules/unicase/cased-tests (Files): Likewise.
10942         * modules/unicase/ignorable-tests (Files): Likewise.
10943         * modules/unicase/locale-language-tests (Files): Likewise.
10944         * modules/unicase/tolower-tests (Files): Likewise.
10945         * modules/unicase/totitle-tests (Files): Likewise.
10946         * modules/unicase/toupper-tests (Files): Likewise.
10947         * modules/unicase/u8-casecmp-tests (Files): Likewise.
10948         * modules/unicase/u8-casecoll-tests (Files): Likewise.
10949         * modules/unicase/u8-casefold-tests (Files): Likewise.
10950         * modules/unicase/u8-is-cased-tests (Files): Likewise.
10951         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
10952         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
10953         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
10954         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
10955         * modules/unicase/u8-tolower-tests (Files): Likewise.
10956         * modules/unicase/u8-totitle-tests (Files): Likewise.
10957         * modules/unicase/u8-toupper-tests (Files): Likewise.
10958         * modules/unicase/u16-casecmp-tests (Files): Likewise.
10959         * modules/unicase/u16-casecoll-tests (Files): Likewise.
10960         * modules/unicase/u16-casefold-tests (Files): Likewise.
10961         * modules/unicase/u16-is-cased-tests (Files): Likewise.
10962         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
10963         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
10964         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
10965         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
10966         * modules/unicase/u16-tolower-tests (Files): Likewise.
10967         * modules/unicase/u16-totitle-tests (Files): Likewise.
10968         * modules/unicase/u16-toupper-tests (Files): Likewise.
10969         * modules/unicase/u32-casecmp-tests (Files): Likewise.
10970         * modules/unicase/u32-casecoll-tests (Files): Likewise.
10971         * modules/unicase/u32-casefold-tests (Files): Likewise.
10972         * modules/unicase/u32-is-cased-tests (Files): Likewise.
10973         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
10974         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
10975         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
10976         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
10977         * modules/unicase/u32-tolower-tests (Files): Likewise.
10978         * modules/unicase/u32-totitle-tests (Files): Likewise.
10979         * modules/unicase/u32-toupper-tests (Files): Likewise.
10980         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
10981         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
10982         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
10983         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
10984         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
10985         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
10986         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
10987         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
10988         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
10989         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
10990         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
10991         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
10992         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
10993         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
10994         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
10995         * modules/unictype/bidicategory-name-tests (Files): Likewise.
10996         * modules/unictype/bidicategory-of-tests (Files): Likewise.
10997         * modules/unictype/bidicategory-test-tests (Files): Likewise.
10998         * modules/unictype/block-list-tests (Files): Likewise.
10999         * modules/unictype/block-of-tests (Files): Likewise.
11000         * modules/unictype/block-test-tests (Files): Likewise.
11001         * modules/unictype/category-C-tests (Files): Likewise.
11002         * modules/unictype/category-Cc-tests (Files): Likewise.
11003         * modules/unictype/category-Cf-tests (Files): Likewise.
11004         * modules/unictype/category-Cn-tests (Files): Likewise.
11005         * modules/unictype/category-Co-tests (Files): Likewise.
11006         * modules/unictype/category-Cs-tests (Files): Likewise.
11007         * modules/unictype/category-L-tests (Files): Likewise.
11008         * modules/unictype/category-Ll-tests (Files): Likewise.
11009         * modules/unictype/category-Lm-tests (Files): Likewise.
11010         * modules/unictype/category-Lo-tests (Files): Likewise.
11011         * modules/unictype/category-Lt-tests (Files): Likewise.
11012         * modules/unictype/category-Lu-tests (Files): Likewise.
11013         * modules/unictype/category-M-tests (Files): Likewise.
11014         * modules/unictype/category-Mc-tests (Files): Likewise.
11015         * modules/unictype/category-Me-tests (Files): Likewise.
11016         * modules/unictype/category-Mn-tests (Files): Likewise.
11017         * modules/unictype/category-N-tests (Files): Likewise.
11018         * modules/unictype/category-Nd-tests (Files): Likewise.
11019         * modules/unictype/category-Nl-tests (Files): Likewise.
11020         * modules/unictype/category-No-tests (Files): Likewise.
11021         * modules/unictype/category-P-tests (Files): Likewise.
11022         * modules/unictype/category-Pc-tests (Files): Likewise.
11023         * modules/unictype/category-Pd-tests (Files): Likewise.
11024         * modules/unictype/category-Pe-tests (Files): Likewise.
11025         * modules/unictype/category-Pf-tests (Files): Likewise.
11026         * modules/unictype/category-Pi-tests (Files): Likewise.
11027         * modules/unictype/category-Po-tests (Files): Likewise.
11028         * modules/unictype/category-Ps-tests (Files): Likewise.
11029         * modules/unictype/category-S-tests (Files): Likewise.
11030         * modules/unictype/category-Sc-tests (Files): Likewise.
11031         * modules/unictype/category-Sk-tests (Files): Likewise.
11032         * modules/unictype/category-Sm-tests (Files): Likewise.
11033         * modules/unictype/category-So-tests (Files): Likewise.
11034         * modules/unictype/category-Z-tests (Files): Likewise.
11035         * modules/unictype/category-Zl-tests (Files): Likewise.
11036         * modules/unictype/category-Zp-tests (Files): Likewise.
11037         * modules/unictype/category-Zs-tests (Files): Likewise.
11038         * modules/unictype/category-and-not-tests (Files): Likewise.
11039         * modules/unictype/category-and-tests (Files): Likewise.
11040         * modules/unictype/category-byname-tests (Files): Likewise.
11041         * modules/unictype/category-name-tests (Files): Likewise.
11042         * modules/unictype/category-none-tests (Files): Likewise.
11043         * modules/unictype/category-of-tests (Files): Likewise.
11044         * modules/unictype/category-or-tests (Files): Likewise.
11045         * modules/unictype/category-test-withtable-tests (Files): Likewise.
11046         * modules/unictype/combining-class-tests (Files): Likewise.
11047         * modules/unictype/ctype-alnum-tests (Files): Likewise.
11048         * modules/unictype/ctype-alpha-tests (Files): Likewise.
11049         * modules/unictype/ctype-blank-tests (Files): Likewise.
11050         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
11051         * modules/unictype/ctype-digit-tests (Files): Likewise.
11052         * modules/unictype/ctype-graph-tests (Files): Likewise.
11053         * modules/unictype/ctype-lower-tests (Files): Likewise.
11054         * modules/unictype/ctype-print-tests (Files): Likewise.
11055         * modules/unictype/ctype-punct-tests (Files): Likewise.
11056         * modules/unictype/ctype-space-tests (Files): Likewise.
11057         * modules/unictype/ctype-upper-tests (Files): Likewise.
11058         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
11059         * modules/unictype/decimal-digit-tests (Files): Likewise.
11060         * modules/unictype/digit-tests (Files): Likewise.
11061         * modules/unictype/mirror-tests (Files): Likewise.
11062         * modules/unictype/numeric-tests (Files): Likewise.
11063         * modules/unictype/property-alphabetic-tests (Files): Likewise.
11064         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
11065         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
11066         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
11067         Likewise.
11068         * modules/unictype/property-bidi-block-separator-tests (Files):
11069         Likewise.
11070         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
11071         Likewise.
11072         * modules/unictype/property-bidi-common-separator-tests (Files):
11073         Likewise.
11074         * modules/unictype/property-bidi-control-tests (Files): Likewise.
11075         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
11076         Likewise.
11077         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
11078         Likewise.
11079         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
11080         Likewise.
11081         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
11082         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
11083         Likewise.
11084         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
11085         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
11086         Likewise.
11087         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
11088         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
11089         * modules/unictype/property-bidi-segment-separator-tests (Files):
11090         Likewise.
11091         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
11092         * modules/unictype/property-byname-tests (Files): Likewise.
11093         * modules/unictype/property-combining-tests (Files): Likewise.
11094         * modules/unictype/property-composite-tests (Files): Likewise.
11095         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
11096         * modules/unictype/property-dash-tests (Files): Likewise.
11097         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
11098         * modules/unictype/property-default-ignorable-code-point-tests (Files):
11099         Likewise.
11100         * modules/unictype/property-deprecated-tests (Files): Likewise.
11101         * modules/unictype/property-diacritic-tests (Files): Likewise.
11102         * modules/unictype/property-extender-tests (Files): Likewise.
11103         * modules/unictype/property-format-control-tests (Files): Likewise.
11104         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
11105         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
11106         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
11107         * modules/unictype/property-hex-digit-tests (Files): Likewise.
11108         * modules/unictype/property-hyphen-tests (Files): Likewise.
11109         * modules/unictype/property-id-continue-tests (Files): Likewise.
11110         * modules/unictype/property-id-start-tests (Files): Likewise.
11111         * modules/unictype/property-ideographic-tests (Files): Likewise.
11112         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
11113         * modules/unictype/property-ids-trinary-operator-tests (Files):
11114         Likewise.
11115         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
11116         * modules/unictype/property-iso-control-tests (Files): Likewise.
11117         * modules/unictype/property-join-control-tests (Files): Likewise.
11118         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
11119         * modules/unictype/property-line-separator-tests (Files): Likewise.
11120         * modules/unictype/property-logical-order-exception-tests (Files):
11121         Likewise.
11122         * modules/unictype/property-lowercase-tests (Files): Likewise.
11123         * modules/unictype/property-math-tests (Files): Likewise.
11124         * modules/unictype/property-non-break-tests (Files): Likewise.
11125         * modules/unictype/property-not-a-character-tests (Files): Likewise.
11126         * modules/unictype/property-numeric-tests (Files): Likewise.
11127         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
11128         * modules/unictype/property-other-default-ignorable-code-point-tests
11129         (Files): Likewise.
11130         * modules/unictype/property-other-grapheme-extend-tests (Files):
11131         Likewise.
11132         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
11133         * modules/unictype/property-other-id-start-tests (Files): Likewise.
11134         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
11135         * modules/unictype/property-other-math-tests (Files): Likewise.
11136         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
11137         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
11138         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
11139         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
11140         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
11141         * modules/unictype/property-private-use-tests (Files): Likewise.
11142         * modules/unictype/property-punctuation-tests (Files): Likewise.
11143         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
11144         * modules/unictype/property-radical-tests (Files): Likewise.
11145         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
11146         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
11147         * modules/unictype/property-space-tests (Files): Likewise.
11148         * modules/unictype/property-terminal-punctuation-tests (Files):
11149         Likewise.
11150         * modules/unictype/property-test-tests (Files): Likewise.
11151         * modules/unictype/property-titlecase-tests (Files): Likewise.
11152         * modules/unictype/property-unassigned-code-value-tests (Files):
11153         Likewise.
11154         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
11155         * modules/unictype/property-uppercase-tests (Files): Likewise.
11156         * modules/unictype/property-variation-selector-tests (Files): Likewise.
11157         * modules/unictype/property-white-space-tests (Files): Likewise.
11158         * modules/unictype/property-xid-continue-tests (Files): Likewise.
11159         * modules/unictype/property-xid-start-tests (Files): Likewise.
11160         * modules/unictype/property-zero-width-tests (Files): Likewise.
11161         * modules/unictype/scripts-tests (Files): Likewise.
11162         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
11163         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
11164         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
11165         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
11166         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
11167         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
11168         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
11169         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
11170         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
11171         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
11172         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
11173         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
11174         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
11175         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
11176         * modules/uninorm/composition-tests (Files): Likewise.
11177         * modules/uninorm/decomposing-form-tests (Files): Likewise.
11178         * modules/uninorm/decomposition-tests (Files): Likewise.
11179         * modules/uninorm/filter-tests (Files): Likewise.
11180         * modules/uninorm/nfc-tests (Files): Likewise.
11181         * modules/uninorm/nfd-tests (Files): Likewise.
11182         * modules/uninorm/nfkc-tests (Files): Likewise.
11183         * modules/uninorm/nfkd-tests (Files): Likewise.
11184         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
11185         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
11186         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
11187         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
11188         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
11189         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
11190         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
11191         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
11192         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
11193         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
11194         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
11195         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
11196         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
11197         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
11198         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
11199         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
11200         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
11201         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
11202         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
11203         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
11204         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
11205         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
11206         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
11207         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
11208         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
11209         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
11210         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
11211         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
11212         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
11213         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
11214         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
11215         * modules/uniwidth/u8-width-tests (Files): Likewise.
11216         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
11217         * modules/uniwidth/u16-width-tests (Files): Likewise.
11218         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
11219         * modules/uniwidth/u32-width-tests (Files): Likewise.
11220         * modules/uniwidth/width-tests (Files): Likewise.
11221         * modules/unlink-tests (Files): Likewise.
11222         * modules/unsetenv-tests (Files): Likewise.
11223         * modules/usleep-tests (Files): Likewise.
11224         * modules/utimens-tests (Files): Likewise.
11225         * modules/utimensat-tests (Files): Likewise.
11226         * modules/vasnprintf-posix-tests (Files): Likewise.
11227         * modules/vasnprintf-tests (Files): Likewise.
11228         * modules/vasprintf-posix-tests (Files): Likewise.
11229         * modules/vasprintf-tests (Files): Likewise.
11230         * modules/vdprintf-posix-tests (Files): Likewise.
11231         * modules/vfprintf-posix-tests (Files): Likewise.
11232         * modules/vprintf-posix-tests (Files): Likewise.
11233         * modules/vsnprintf-posix-tests (Files): Likewise.
11234         * modules/vsnprintf-tests (Files): Likewise.
11235         * modules/vsprintf-posix-tests (Files): Likewise.
11236         * modules/wcrtomb-tests (Files): Likewise.
11237         * modules/wcsnrtombs-tests (Files): Likewise.
11238         * modules/wcsrtombs-tests (Files): Likewise.
11239         * modules/wctype-tests (Files): Likewise.
11240         * modules/wcwidth-tests (Files): Likewise.
11241         * modules/xmemdup0-tests (Files): Likewise.
11242         * modules/xprintf-posix-tests (Files): Likewise.
11243         * modules/xvasprintf-tests (Files): Likewise.
11244
11245 2009-12-24  Eric Blake  <ebb9@byu.net>
11246
11247         test-nanosleep: fix typo
11248         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
11249         patch.
11250         Reported by Bruno Haible.
11251
11252 2009-12-24  Bruno Haible  <bruno@clisp.org>
11253
11254         Reduce namespace pollution on glibc systems.
11255         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
11256         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
11257         systems.
11258         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
11259         <getopt.h> on glibc systems.
11260         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
11261         systems.
11262         * lib/fcntl.c: Include <unistd.h> here instead.
11263
11264 2009-12-24  Bruno Haible  <bruno@clisp.org>
11265
11266         * lib/stdlib.in.h (includes): Fix typo in today's commit.
11267
11268 2009-12-24  Eric Blake  <ebb9@byu.net>
11269
11270         tests: add signature checks
11271         * tests/signature.h (SIGNATURE_CHECK): New file.
11272         * modules/atexit-tests (Files): Use it.
11273         * modules/btowc-tests (Files): Likewise.
11274         * modules/canonicalize-lgpl-tests (Files): Likewise.
11275         * modules/ceilf-tests (Files): Likewise.
11276         * modules/ceill-tests (Files): Likewise.
11277         * modules/chown-tests (Files): Likewise.
11278         * modules/dprintf-posix-tests (Files): Likewise.
11279         * modules/dup2-tests (Files): Likewise.
11280         * modules/dup3-tests (Files): Likewise.
11281         * modules/duplocale-tests (Files): Likewise.
11282         * modules/fchdir-tests (Files): Likewise.
11283         * modules/fcntl-tests (Files): Likewise.
11284         * modules/fdopendir-tests (Files): Likewise.
11285         * modules/fflush-tests (Files): Likewise.
11286         * modules/flock-tests (Files): Likewise.
11287         * modules/floorf-tests (Files): Likewise.
11288         * modules/floorl-tests (Files): Likewise.
11289         * modules/fnmatch-tests (Files): Likewise.
11290         * modules/fopen-tests (Files): Likewise.
11291         * modules/fprintf-posix-tests (Files): Likewise.
11292         * modules/freopen-tests (Files): Likewise.
11293         * modules/frexp-nolibm-tests (Files): Likewise.
11294         * modules/frexp-tests (Files): Likewise.
11295         * modules/frexpl-nolibm-tests (Files): Likewise.
11296         * modules/frexpl-tests (Files): Likewise.
11297         * modules/fseek-tests (Files): Likewise.
11298         * modules/fseeko-tests (Files): Likewise.
11299         * modules/fsync-tests (Files): Likewise.
11300         * modules/ftell-tests (Files): Likewise.
11301         * modules/ftello-tests (Files): Likewise.
11302         * modules/futimens-tests (Files): Likewise.
11303         * modules/getaddrinfo-tests (Files): Likewise.
11304         * modules/getcwd-tests (Files): Likewise.
11305         * modules/getdelim-tests (Files): Likewise.
11306         * modules/getdtablesize-tests (Files): Likewise.
11307         * modules/getgroups-tests (Files): Likewise.
11308         * modules/gethostname-tests (Files): Likewise.
11309         * modules/getline-tests (Files): Likewise.
11310         * modules/getopt-posix-tests (Files): Likewise.
11311         * modules/gettimeofday-tests (Files): Likewise.
11312         * modules/glob-tests (Files): Likewise.
11313         * modules/iconv-tests (Files): Likewise.
11314         * modules/inet_ntop-tests (Files): Likewise.
11315         * modules/inet_pton-tests (Files): Likewise.
11316         * modules/isblank-tests (Files): Likewise.
11317         * modules/lchown-tests (Files): Likewise.
11318         * modules/ldexpl-tests (Files): Likewise.
11319         * modules/link-tests (Files): Likewise.
11320         * modules/linkat-tests (Files): Likewise.
11321         * modules/lseek-tests (Files): Likewise.
11322         * modules/lstat-tests (Files): Likewise.
11323         * modules/mbrtowc-tests (Files): Likewise.
11324         * modules/mbsinit-tests (Files): Likewise.
11325         * modules/mbsnrtowcs-tests (Files): Likewise.
11326         * modules/mbsrtowcs-tests (Files): Likewise.
11327         * modules/memchr-tests (Files): Likewise.
11328         * modules/memcmp-tests (Files): Likewise.
11329         * modules/memmem-tests (Files): Likewise.
11330         * modules/memrchr-tests (Files): Likewise.
11331         * modules/mkdir-tests (Files): Likewise.
11332         * modules/mkfifo-tests (Files): Likewise.
11333         * modules/mkfifoat-tests (Files): Likewise.
11334         * modules/mknod-tests (Files): Likewise.
11335         * modules/nanosleep-tests (Files): Likewise.
11336         * modules/nl_langinfo-tests (Files): Likewise.
11337         * modules/obstack-printf-tests (Files): Likewise.
11338         * modules/open-tests (Files): Likewise.
11339         * modules/openat-tests (Files): Likewise.
11340         * modules/perror-tests (Files): Likewise.
11341         * modules/pipe2-tests (Files): Likewise.
11342         * modules/poll-tests (Files): Likewise.
11343         * modules/popen-tests (Files): Likewise.
11344         * modules/posix_spawn-tests (Files): Likewise.
11345         * modules/posix_spawnp-tests (Files): Likewise.
11346         * modules/pread-tests (Files): Likewise.
11347         * modules/printf-posix-tests (Files): Likewise.
11348         * modules/pty-tests (Files): Likewise.
11349         * modules/random_r-tests (Files): Likewise.
11350         * modules/rawmemchr-tests (Files): Likewise.
11351         * modules/readlink-tests (Files): Likewise.
11352         * modules/remove-tests (Files): Likewise.
11353         * modules/rename-tests (Files): Likewise.
11354         * modules/renameat-tests (Files): Likewise.
11355         * modules/rmdir-tests (Files): Likewise.
11356         * modules/round-tests (Files): Likewise.
11357         * modules/roundf-tests (Files): Likewise.
11358         * modules/roundl-tests (Files): Likewise.
11359         * modules/select-tests (Files): Likewise.
11360         * modules/setenv-tests (Files): Likewise.
11361         * modules/sigaction-tests (Files): Likewise.
11362         * modules/sleep-tests (Files): Likewise.
11363         * modules/snprintf-posix-tests (Files): Likewise.
11364         * modules/snprintf-tests (Files): Likewise.
11365         * modules/sprintf-posix-tests (Files): Likewise.
11366         * modules/stat-tests (Files): Likewise.
11367         * modules/strcasestr-tests (Files): Likewise.
11368         * modules/strchrnul-tests (Files): Likewise.
11369         * modules/strerror-tests (Files): Likewise.
11370         * modules/strsignal-tests (Files): Likewise.
11371         * modules/strstr-tests (Files): Likewise.
11372         * modules/strtod-tests (Files): Likewise.
11373         * modules/strverscmp-tests (Files): Likewise.
11374         * modules/symlink-tests (Files): Likewise.
11375         * modules/symlinkat-tests (Files): Likewise.
11376         * modules/times-tests (Files): Likewise.
11377         * modules/trunc-tests (Files): Likewise.
11378         * modules/truncf-tests (Files): Likewise.
11379         * modules/truncl-tests (Files): Likewise.
11380         * modules/tsearch-tests (Files): Likewise.
11381         * modules/uname-tests (Files): Likewise.
11382         * modules/unlink-tests (Files): Likewise.
11383         * modules/unsetenv-tests (Files): Likewise.
11384         * modules/usleep-tests (Files): Likewise.
11385         * modules/utimensat-tests (Files): Likewise.
11386         * modules/vasprintf-tests (Files): Likewise.
11387         * modules/vdprintf-posix-tests (Files): Likewise.
11388         * modules/vfprintf-posix-tests (Files): Likewise.
11389         * modules/vprintf-posix-tests (Files): Likewise.
11390         * modules/vsnprintf-posix-tests (Files): Likewise.
11391         * modules/vsnprintf-tests (Files): Likewise.
11392         * modules/vsprintf-posix-tests (Files): Likewise.
11393         * modules/wcrtomb-tests (Files): Likewise.
11394         * modules/wcsnrtombs-tests (Files): Likewise.
11395         * modules/wcsrtombs-tests (Files): Likewise.
11396         * modules/wcwidth-tests (Files): Likewise.
11397         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
11398         * tests/test-isinf.c (isinf): Likewise.
11399         * tests/test-isnan.c (isnan): Likewise.
11400         * tests/test-signbit.c (signbit): Likewise.
11401         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
11402         declaration, either as macro or with correct signature.
11403         (select): Ensure function under test is declared with correct
11404         signature in correct header.
11405         * tests/test-atexit.c (atexit): Likewise.
11406         * tests/test-btowc.c (btowc): Likewise.
11407         * tests/test-canonicalize-lgpl.c (realpath)
11408         (canonicalize_file_name): Likewise.
11409         * tests/test-ceilf1.c (ceilf): Likewise.
11410         * tests/test-ceill.c (ceill): Likewise.
11411         * tests/test-chown.c (chown): Likewise.
11412         * tests/test-dprintf-posix.c (dprintf): Likewise.
11413         * tests/test-dup2.c (dup2): Likewise.
11414         * tests/test-dup3.c (dup3): Likewise.
11415         * tests/test-duplocale.c (duplocale): Likewise.
11416         * tests/test-fchdir.c (fchdir): Likewise.
11417         * tests/test-fchownat.c (fchownat): Likewise.
11418         * tests/test-fcntl.c (fcntl): Likewise.
11419         * tests/test-fdopendir.c (fdopendir): Likewise.
11420         * tests/test-fflush.c (fflush): Likewise.
11421         * tests/test-flock.c (flock): Likewise.
11422         * tests/test-floorf1.c (floorf): Likewise.
11423         * tests/test-floorl.c (floorl): Likewise.
11424         * tests/test-fnmatch.c (fnmatch): Likewise.
11425         * tests/test-fopen.c (fopen): Likewise.
11426         * tests/test-fprintf-posix.c (fprintf): Likewise.
11427         * tests/test-freopen.c (freopen): Likewise.
11428         * tests/test-frexp.c (frexp): Likewise.
11429         * tests/test-frexpl.c (frexpl): Likewise.
11430         * tests/test-fseek.c (fseek): Likewise.
11431         * tests/test-fseeko.c (fseeko): Likewise.
11432         * tests/test-fstatat.c (fstatat): Likewise.
11433         * tests/test-fsync.c (fsync): Likewise.
11434         * tests/test-ftell.c (ftell): Likewise.
11435         * tests/test-ftello.c (ftello): Likewise.
11436         * tests/test-futimens.c (futimens): Likewise.
11437         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
11438         (gai_strerror): Likewise.
11439         * tests/test-getcwd.c (getcwd): Likewise.
11440         * tests/test-getdelim.c (getdelim): Likewise.
11441         * tests/test-getdtablesize.c (getdtablesize): Likewise.
11442         * tests/test-getgroups.c (getgroups): Likewise.
11443         * tests/test-gethostname.c (gethostname): Likewise.
11444         * tests/test-getline.c (getline): Likewise.
11445         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
11446         Likewise.
11447         * tests/test-gettimeofday.c (gettimeofday): Likewise.
11448         * tests/test-glob.c (glob, globfree): Likewise.
11449         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
11450         * tests/test-inet_ntop.c (inet_ntop): Likewise.
11451         * tests/test-inet_pton.c (inet_pton): Likewise.
11452         * tests/test-isblank.c (isblank): Likewise.
11453         * tests/test-lchown.c (lchown): Likewise.
11454         * tests/test-ldexpl.c (ldexpl): Likewise.
11455         * tests/test-link.c (link): Likewise.
11456         * tests/test-linkat.c (linkat): Likewise.
11457         * tests/test-lseek.c (lseek): Likewise.
11458         * tests/test-lstat.c (lstat): Likewise.
11459         * tests/test-mbrtowc.c (mbrtowc): Likewise.
11460         * tests/test-mbsinit.c (mbsinit): Likewise.
11461         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
11462         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
11463         * tests/test-memchr.c (memchr): Likewise.
11464         * tests/test-memcmp.c (memcmp): Likewise.
11465         * tests/test-memmem.c (memmem): Likewise.
11466         * tests/test-memrchr.c (memrchr): Likewise.
11467         * tests/test-mkdir.c (mkdir): Likewise.
11468         * tests/test-mkdirat.c (mkdirat): Likewise.
11469         * tests/test-mkfifo.c (mkfifo): Likewise.
11470         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
11471         * tests/test-mknod.c (mknod): Likewise.
11472         * tests/test-nanosleep.c (nanosleep): Likewise.
11473         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
11474         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
11475         Likewise.
11476         * tests/test-open.c (open): Likewise.
11477         * tests/test-openat.c (openat): Likewise.
11478         * tests/test-perror.c (perror): Likewise.
11479         * tests/test-pipe2.c (pipe2): Likewise.
11480         * tests/test-poll.c (poll): Likewise.
11481         * tests/test-popen.c (popen, pclose): Likewise.
11482         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
11483         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
11484         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
11485         (posix_spawn_file_actions_destroy)
11486         (posix_spawn_file_actions_addclose)
11487         (posix_spawn_file_actions_addopen)
11488         (posix_spawn_file_actions_adddup2): Likewise.
11489         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
11490         * tests/test-pread.c (pread): Likewise.
11491         * tests/test-printf-posix.c (printf): Likewise.
11492         * tests/test-pty.c (openpty, forkpty): Likewise.
11493         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
11494         (random_r): Likewise.
11495         * tests/test-rawmemchr.c (rawmemchr): Likewise.
11496         * tests/test-readlink.c (readlink): Likewise.
11497         * tests/test-remove.c (remove): Likewise.
11498         * tests/test-rename.c (rename): Likewise.
11499         * tests/test-renameat.c (renameat): Likewise.
11500         * tests/test-rmdir.c (rmdir): Likewise.
11501         * tests/test-round1.c (round): Likewise.
11502         * tests/test-roundf1.c (roundf): Likewise.
11503         * tests/test-roundl.c (roundl): Likewise.
11504         * tests/test-setenv.c (setenv): Likewise.
11505         * tests/test-sigaction.c (sigaction): Likewise.
11506         * tests/test-sleep.c (sleep): Likewise.
11507         * tests/test-snprintf.c (snprintf): Likewise.
11508         * tests/test-sprintf-posix.c (sprintf): Likewise.
11509         * tests/test-stat.c (stat): Likewise.
11510         * tests/test-stpncpy.c (stpncpy): Likewise.
11511         * tests/test-strcasestr.c (strcasestr): Likewise.
11512         * tests/test-strchrnul.c (strchrnul): Likewise.
11513         * tests/test-strerror.c (strerror): Likewise.
11514         * tests/test-strsignal.c (strsignal): Likewise.
11515         * tests/test-strstr.c (strstr): Likewise.
11516         * tests/test-strtod.c (strtod): Likewise.
11517         * tests/test-strverscmp.c (strverscmp): Likewise.
11518         * tests/test-symlink.c (symlink): Likewise.
11519         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
11520         * tests/test-times.c (times): Likewise.
11521         * tests/test-trunc1.c (trunc): Likewise.
11522         * tests/test-truncf1.c (truncf): Likewise.
11523         * tests/test-truncl.c (truncl): Likewise.
11524         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
11525         Likewise.
11526         * tests/test-uname.c (uname): Likewise.
11527         * tests/test-unlink.c (unlink): Likewise.
11528         * tests/test-unlinkat.c (unlinkat): Likewise.
11529         * tests/test-unsetenv.c (unsetenv): Likewise.
11530         * tests/test-usleep.c (usleep): Likewise.
11531         * tests/test-utimensat.c (utimensat): Likewise.
11532         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
11533         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
11534         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
11535         * tests/test-vprintf-posix.c (vprintf): Likewise.
11536         * tests/test-vsnprintf.c (vsnprintf): Likewise.
11537         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
11538         * tests/test-wcrtomb.c (wcrtomb): Likewise.
11539         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
11540         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
11541         * tests/test-wcwidth.c (wcwidth): Likewise.
11542
11543         build: pull in conditional headers during GNULIB_POSIXCHECK
11544         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
11545         definitions from any conditionally-included headers.
11546         * lib/stdlib.in.h (includes): Likewise.
11547         * lib/unistd.in.h (includes): Likewise.
11548
11549 2009-12-24  Bruno Haible  <bruno@clisp.org>
11550
11551         * tests/test-argv-iter.c: Include header file being tested immediately
11552         after config.h.
11553         * tests/test-base64.c: Likewise.
11554         * tests/test-flock.c: Likewise.
11555         * tests/test-fsync.c: Likewise.
11556         * tests/test-getdate.c: Likewise.
11557         * tests/test-getndelim2.c: Likewise.
11558         * tests/test-isfinite.c: Likewise.
11559         * tests/test-isinf.c: Likewise.
11560         * tests/test-strerror.c: Likewise.
11561         * tests/test-strsignal.c: Likewise.
11562
11563 2009-12-23  Eric Blake  <ebb9@byu.net>
11564
11565         unistd: work around cygwin bug
11566         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
11567         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
11568         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
11569
11570 2009-12-23  Bruno Haible  <bruno@clisp.org>
11571
11572         localename: More tests.
11573         * tests/test-localename.c (SIZEOF): New macro.
11574         (categories): New variable.
11575         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
11576         test_locale_name_default): Add test w.r.t. thread locale.
11577         (test_locale_name_thread): New function.
11578         (main): Invoke it.
11579
11580         localename: Make aware of thread locale.
11581         * lib/localename.h (gl_locale_name_thread): New declaration.
11582         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
11583         behaviour with respect to thread locale.
11584         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
11585         <langinfo.h>, glthread/lock.h.
11586         (SIZE_BITS): New macro.
11587         (string_hash): New function.
11588         (struct hash_node): New type.
11589         (HASH_TABLE_SIZE): New macro.
11590         (struniq_hash_table, struniq_lock): New variables.
11591         (struniq): New function.
11592         (gl_locale_name_thread): New function.
11593         (gl_locale_name): Invoke it.
11594         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
11595         * modules/localename (Depends-on): Add lock.
11596         Reported by Mike Gran <spk121@yahoo.com>.
11597
11598 2009-12-23  Eric Blake  <ebb9@byu.net>
11599
11600         va-args: new module
11601         * modules/va-args: New file.
11602         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
11603         * MODULES.html.sh (Core language properties): Mention it.
11604
11605         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
11606         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
11607         named alias for __attribute__((__unused__)).
11608         * lib/chown.c: Update client.
11609         * lib/fchmodat.c: Likewise.
11610         * lib/fts.c: Likewise.
11611         * lib/getdate.y: Likewise.
11612         * lib/getgroups.c: Likewise.
11613         * lib/getopt.c: Likewise.
11614         * lib/getugroups.c: Likewise.
11615         * lib/mkdir.c: Likewise.
11616         * lib/mkfifo.c: Likewise.
11617         * lib/mkfifoat.c: Likewise.
11618         * lib/mknod.c: Likewise.
11619         * lib/mknodat.c: Likewise.
11620         * lib/readlink.c: Likewise.
11621         * lib/se-context.in.h: Likewise.
11622         * lib/se-selinux.in.h: Likewise.
11623         * lib/sockets.c: Likewise.
11624         * lib/symlink.c: Likewise.
11625         * lib/symlinkat.c: Likewise.
11626         * lib/unicodeio.c: Likewise.
11627         * lib/unistr.h: Likewise.
11628         * tests/test-areadlink.c: Likewise.
11629         * tests/test-areadlinkat.c: Likewise.
11630         * tests/test-filenamecat.c: Likewise.
11631         * tests/test-fseeko.c: Likewise.
11632         * tests/test-ftello.c: Likewise.
11633         * tests/test-getdate.c: Likewise.
11634         * tests/test-getgroups.c: Likewise.
11635         * tests/test-gethostname.c: Likewise.
11636         * tests/test-quotearg.c: Likewise.
11637         * tests/test-version-etc.c: Likewise.
11638         * tests/test-xalloc-die.c: Likewise.
11639         * tests/test-xfprintf-posix.c: Likewise.
11640         * tests/test-xprintf-posix.c: Likewise.
11641         * tests/test-xvasprintf.c: Likewise.
11642
11643         tests: avoid compiler warnings
11644         * tests/test-fcntl.c (main): Delete unused parameters.
11645         * tests/test-freopen-safer.c (main): Likewise.
11646         * tests/test-xalloc-die.c (main): Mark unused parameters.
11647         * tests/test-fseeko.c (main): Likewise.
11648         * tests/test-ftello.c (main): Likewise.
11649         * tests/test-nanosleep.c (main): Avoid declaration warning.
11650         * tests/test-sleep.c (main): Likewise.
11651         * tests/test-unsetenv.c (main): Silence warning about string
11652         literal.
11653         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
11654
11655 2009-12-23  Bruno Haible  <bruno@clisp.org>
11656
11657         * tests/test-localename.c (test_locale_name): New function, extracted
11658         from main. Also test mixed situations.
11659         (test_locale_name_posix, test_locale_name_environ,
11660         test_locale_name_default): New functions.
11661         (main): Invoke them all.
11662         * modules/localename-tests (configure.ac): Test for newlocale.
11663
11664 2009-12-23  Bruno Haible  <bruno@clisp.org>
11665
11666         unistd: Ensure getcwd gets declared before being overridden.
11667         * lib/unistd.in.h: Conditionally include <io.h>.
11668
11669 2009-12-22  Bruno Haible  <bruno@clisp.org>
11670
11671         wchar: Diagnose broken combination of glibc and gcc versions and flags.
11672         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
11673         (gl_WCHAR_H): Invoke it.
11674         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
11675         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
11676         Reported by Karl Berry <karl@freefriends.org>.
11677
11678 2009-12-22  Eric Blake  <ebb9@byu.net>
11679
11680         math, unistd: avoid redundant includes
11681         * lib/math.in.h (isnan): No need to re-include <math.h>.
11682         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
11683
11684         getsubopt: work around cygwin bug
11685         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
11686         avoid conflicting with system getsubopt.
11687         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
11688         bug.
11689
11690         getopt: synchronize from glibc
11691         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
11692         parameter order.  Adjust all callers.
11693         (_getopt_internal_r, main): Adjust quoting in error messages.
11694         Drop considerations for outdated POSIX 1003.2 error message.
11695         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
11696         callers.
11697         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
11698
11699         test-getopt: test stderr behavior
11700         * modules/getopt-posix-tests (Depends-on): Add dup2.
11701         * tests/test-getopt.c (ASSERT): Avoid stderr.
11702         (main): Move stderr to a temporary file.
11703         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
11704         Instead, add parameter to inform caller if output occurred.
11705         (test_getopt): Adjust all existing tests to expect silence, and
11706         add new tests of leading ":".
11707         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
11708         glibc shortcomings with leading "-:" or "+:" in optstring.
11709         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11710         Likewise.
11711         * doc/posix-functions/getopt.texi (getopt): Likewise.
11712
11713         test-getopt: enhance test
11714         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
11715         supports optind=0.
11716         * tests/test-getopt.c (OPTIND_MIN): Move...
11717         * tests/test-getopt.h (OPTIND_MIN): ...here.
11718         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
11719         Require that optind=0 works, since modern BSD supports it in
11720         addition to optreset, and since coreutils expects it.
11721         (test_getopt_long_only): New test.
11722         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
11723         glibc shortcomings with 'W;', and enforcement of optind=0.
11724         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
11725         Likewise.
11726
11727 2009-12-21  Bruno Haible  <bruno@clisp.org>
11728
11729         localename: Improvements for MacOS X and Cygwin.
11730         * lib/localename.h (gl_locale_name_environ): New declaration.
11731         * lib/localename.c (gl_locale_name_environ): New function, extracted from
11732         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
11733         (gl_locale_name_posix): Invoke it.
11734         (gl_locale_name_default): Add comments. Use Windows native API also on
11735         Cygwin.
11736
11737 2009-12-21  Bruno Haible  <bruno@clisp.org>
11738
11739         Update list of Win32 locale ids.
11740         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
11741         (LANG_SAMI): Renamed from LANG_SAAMI.
11742         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
11743         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
11744         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
11745         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
11746         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
11747         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
11748         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
11749         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
11750         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
11751         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
11752         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
11753         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
11754         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
11755         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
11756         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
11757         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
11758         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
11759         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
11760         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
11761         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
11762         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
11763         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
11764         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
11765         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
11766         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
11767         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
11768         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
11769         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
11770         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
11771         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
11772         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
11773         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
11774         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
11775         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
11776         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
11777         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
11778         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
11779         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
11780         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
11781         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
11782         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
11783         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
11784         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
11785         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
11786         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
11787         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
11788         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
11789         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
11790         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
11791         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
11792         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
11793         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
11794         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
11795         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
11796         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
11797         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
11798         Add more languages and countries for Sami, Sorbian. Add more countries
11799         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
11800         for Pashto. Change country for Syriac, Tswana.
11801
11802 2009-12-21  Eric Blake  <ebb9@byu.net>
11803
11804         test-utimens: avoid spurious failure
11805         * tests/test-chown.h (nap): Factor...
11806         * tests/nap.h: ...into new file.
11807         * tests/test-lchown.h (nap): Avoid duplication.
11808         * tests/test-utimens-common.h (nap): Use shared implementation,
11809         necessary on file systems with 1-second resolution.
11810         * modules/chown-tests (Files): Include new file.
11811         * modules/fdutimensat-tests (Files): Likewise.
11812         * modules/futimens-tests (Files): Likewise.
11813         * modules/lchown-tests (Files): Likewise.
11814         * modules/openat-tests (Files): Likewise.
11815         * modules/utimens-tests (Files): Likewise.
11816         * modules/utimensat-tests (Files): Likewise.
11817
11818 2009-12-19  Eric Blake  <ebb9@byu.net>
11819
11820         futimens, utimensat: work around Linux bug
11821         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
11822         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
11823         * lib/utimensat.c (rpl_utimensat): Work around it.
11824         * lib/futimens.c (rpl_futimens): Adjust comment.
11825
11826         utimens: work around Linux ctime bug
11827         * lib/utimens.c (detect_ctime_bug): New helper function.
11828         (update_timespec): Differentiate between workaround needed for
11829         this bug vs. what is needed for systems that lack utimensat.
11830         (fdutimens, lutimens): Work around bug.
11831
11832         utimens: check for ctime update
11833         * tests/test-utimens-common.h (check_ctime): Define.
11834         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
11835         * tests/test-futimens.h (test_futimens): Likewise.
11836         * tests/test-lutimens.h (test_lutimens): Likewise.
11837         * doc/posix-functions/futimens.texi (futimens): Document the bug.
11838         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
11839
11840 2009-12-19  Bruno Haible  <bruno@clisp.org>
11841
11842         dprintf-posix: Check against memory leak fixed on 2009-12-15.
11843         * tests/test-dprintf-posix2.sh: New file.
11844         * tests/test-dprintf-posix2.c: New file.
11845         * modules/dprintf-posix-tests (Files): Add them.
11846         (configure.ac): Check for getrlimit and setrlimit.
11847         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
11848
11849 2009-12-19  Bruno Haible  <bruno@clisp.org>
11850
11851         fprintf-posix: Check against memory leak fixed on 2009-12-15.
11852         * tests/test-fprintf-posix3.sh: New file.
11853         * tests/test-fprintf-posix3.c: New file.
11854         * modules/fprintf-posix-tests (Files): Add them.
11855         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
11856
11857 2009-12-19  Eric Blake  <ebb9@byu.net>
11858
11859         dirfd: fix prototype
11860         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
11861         * lib/dirfd.c (dirfd): Likewise.
11862
11863         canonicalize: reduce memory usage
11864         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
11865         allocation to size.
11866         Reported by Solar Designer <solar@openwall.com>.
11867
11868 2009-12-19  Bruno Haible  <bruno@clisp.org>
11869
11870         New module attribute 'Applicability'.
11871         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
11872         * gnulib-tool: New option --extract-applicability.
11873         (func_usage): Document it.
11874         (sed_extract_prog): Recognize it.
11875         (func_get_applicability): New function.
11876         (func_import): Generalize handling of 'link-warning' module.
11877         * modules/link-warning (Applicability): New section.
11878         * modules/arg-nonnull (Applicability): New section.
11879         Repoted by Simon Josefsson <simon@josefsson.org>.
11880
11881 2009-12-19  Bruno Haible  <bruno@clisp.org>
11882
11883         fflush: tweak
11884         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
11885         * lib/fseeko.c (rpl_fseeko): Likewise.
11886
11887 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
11888
11889         * lib/gl_list.h: Fix typo in comment.
11890
11891 2009-12-16  Eric Blake  <ebb9@byu.net>
11892
11893         fcntl: use to simplify other modules
11894         * modules/cloexec (Depends-on): Add fcntl.
11895         * modules/fchdir (Depends-on): Likewise.
11896         * modules/fd-safer-flag (Depends-on): Likewise.
11897         * modules/unistd-safer (Depends-on): Likewise.
11898         * modules/dup3 (configure.ac): Set module indicator.
11899         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
11900         missing.
11901         * lib/fchdir.c (_gl_register_dup): Fix comment.
11902         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
11903         * lib/dup-safer.c (dup_safer): Likewise.
11904         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
11905         * lib/dup3.c (dup3): Likewise.
11906         * tests/test-fchdir.c (main): Enhance test.
11907         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
11908
11909         fcntl: port portions of fcntl to mingw
11910         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
11911         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
11912         replacement for mingw.
11913         * modules/fcntl (Description): Update.
11914         (Depends-on): Add dup2.
11915         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
11916         * modules/fcntl-h (Makefile.am): Substitute it.
11917         * lib/fcntl.in.h (fcntl): Update declaration.
11918         (F_DUPFD, F_GETFD): New macros, when needed.
11919         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
11920         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
11921         * tests/test-fcntl.c (check_flags, main): Enhance test for items
11922         we now guarantee.
11923
11924         fcntl: work around cygwin bug in F_DUPFD
11925         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
11926         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
11927         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
11928         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
11929         * doc/posix-functions/fcntl.texi (fcntl): Document it.
11930
11931         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
11932         * modules/fcntl (Files): List new files.
11933         (configure.ac): Run a test.
11934         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
11935         * lib/fcntl.c (rpl_fcntl): Likewise.
11936         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
11937         (gl_FCNTL_H): Always replace fcntl.h.
11938         * modules/fcntl-h (Makefile.am): Substitute witnesses.
11939         * lib/fcntl.in.h (fcntl): Declare replacement.
11940         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
11941         needed, plus a witness.
11942         * doc/posix-functions/fcntl.texi (fcntl): Document this.
11943         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
11944         * tests/test-fcntl.c: New file.
11945         * modules/fcntl-tests: Likewise.
11946
11947         binary-io: avoid potential compilation warning
11948         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
11949         directives.
11950
11951         fflush: avoid compilation error on NetBSD
11952         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
11953         between off_t and fpos_t, since the latter is sometimes a struct.
11954         * lib/fseeko.c (rpl_fseeko): Likewise.
11955         Reported by Alexander Nasonov <alnsn@yandex.ru>.
11956
11957 2009-12-15  Eric Blake  <ebb9@byu.net>
11958
11959         fcntl-h, stdio, sys_ioctl: fix declarations
11960         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
11961         function must not take arguments.
11962         * lib/sys_ioctl.in.h (ioctl): Likewise.
11963         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
11964         (open): Add a link warning.
11965
11966 2009-12-15  Jim Meyering  <meyering@redhat.com>
11967
11968         areadlink, areadlink-with-size: relax license to LGPLv2+
11969         * modules/areadlink (License): Relax to LGPLv2+.
11970         * modules/areadlink-with-size (License): Likewise.
11971
11972 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
11973             Bruno Haible  <bruno@clisp.org>
11974
11975         *printf: Fix memory leak.
11976         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
11977         * lib/vfprintf.c (vfprintf): Likewise.
11978         * lib/dprintf.c (dprintf): Likewise.
11979         * lib/vdprintf.c (vdprintf): Likewise.
11980
11981 2009-12-14  Eric Blake  <ebb9@byu.net>
11982
11983         accept4: adjust module dependencies
11984         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
11985
11986         utimens: one more try at avoiding compiler warning
11987         * lib/utimens.c (lutimens): Lower scope of result.
11988
11989 2009-12-13  Bruno Haible  <bruno@clisp.org>
11990
11991         Move the malloc checking from module 'list' to new module 'xlist'.
11992         * modules/xlist: New file.
11993         * lib/gl_xlist.h: New file.
11994         * lib/gl_xlist.c: New file.
11995         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
11996         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
11997         gl_list_add_last, gl_list_add_before, gl_list_add_after,
11998         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
11999         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
12000         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
12001         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
12002         gl_sortedlist_nx_add): New declarations.
12003         (struct gl_list_implementation): Rename and change methods accordingly.
12004         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
12005         (gl_list_nx_create): Renamed from gl_list_create.
12006         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
12007         (gl_list_nx_set_at): Renamed from gl_list_set_at.
12008         (gl_list_nx_add_first): Renamed from gl_list_add_first.
12009         (gl_list_nx_add_last): Renamed from gl_list_add_last.
12010         (gl_list_nx_add_before): Renamed from gl_list_add_before.
12011         (gl_list_nx_add_after): Renamed from gl_list_add_after.
12012         (gl_list_nx_add_at): Renamed from gl_list_add_at.
12013         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
12014         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
12015         gl_list_create_empty.
12016         (gl_list_nx_create): Renamed from gl_list_create.
12017         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
12018         (gl_list_nx_set_at): Renamed from gl_list_set_at.
12019         (gl_list_nx_add_first): Renamed from gl_list_add_first.
12020         (gl_list_nx_add_last): Renamed from gl_list_add_last.
12021         (gl_list_nx_add_before): Renamed from gl_list_add_before.
12022         (gl_list_nx_add_after): Renamed from gl_list_add_after.
12023         (gl_list_nx_add_at): Renamed from gl_list_add_at.
12024         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
12025         * lib/gl_array_list.c: Don't include xalloc.h.
12026         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
12027         NULL upon out-of-memory.
12028         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
12029         out-of-memory.
12030         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
12031         Change return type to 'int'.
12032         (gl_array_nx_set_at): Renamed from gl_array_set_at.
12033         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
12034         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
12035         upon out-of-memory.
12036         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
12037         upon out-of-memory.
12038         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
12039         upon out-of-memory.
12040         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
12041         upon out-of-memory.
12042         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
12043         out-of-memory.
12044         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
12045         Update.
12046         (gl_array_list_implementation): Update.
12047         * lib/gl_carray_list.c: Don't include xalloc.h.
12048         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
12049         Return NULL upon out-of-memory.
12050         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
12051         out-of-memory.
12052         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
12053         Change return type to 'int'.
12054         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
12055         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
12056         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
12057         upon out-of-memory.
12058         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
12059         upon out-of-memory.
12060         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
12061         out-of-memory.
12062         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
12063         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
12064         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
12065         Update.
12066         (gl_carray_list_implementation): Update.
12067         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
12068         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
12069         gl_linked_create_empty. Return NULL upon out-of-memory.
12070         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
12071         out-of-memory.
12072         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
12073         Change return type to 'int'. Return -1 upon out-of-memory.
12074         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
12075         out-of-memory.
12076         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
12077         upon out-of-memory.
12078         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
12079         upon out-of-memory.
12080         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
12081         NULL upon out-of-memory.
12082         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
12083         upon out-of-memory.
12084         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
12085         out-of-memory.
12086         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
12087         Update.
12088         * lib/gl_linked_list.c: Don't include xalloc.h.
12089         (gl_linked_list_implementation): Update.
12090         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
12091         (add_to_bucket): Change return type to 'int'.
12092         (gl_linkedhash_list_implementation): Update.
12093         * lib/gl_anytree_list1.h (free_subtree): New function.
12094         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
12095         gl_tree_create_empty. Return NULL upon out-of-memory.
12096         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
12097         Change return type to 'int'. Return -1 upon out-of-memory.
12098         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
12099         out-of-memory.
12100         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
12101         (gl_tree_remove_node): New function, moved here from
12102         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
12103         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
12104         Update.
12105         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
12106         malloc, not xmalloc. Return NULL upon out-of-memory.
12107         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
12108         out-of-memory.
12109         (gl_tree_remove_node_from_tree): New function, extracted from
12110         gl_tree_remove_node.
12111         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
12112         upon out-of-memory.
12113         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
12114         out-of-memory.
12115         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
12116         upon out-of-memory.
12117         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
12118         upon out-of-memory.
12119         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
12120         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
12121         not xmalloc. Return NULL upon out-of-memory.
12122         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
12123         out-of-memory.
12124         (gl_tree_remove_node_from_tree): New function, extracted from
12125         gl_tree_remove_node.
12126         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
12127         upon out-of-memory.
12128         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
12129         out-of-memory.
12130         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
12131         upon out-of-memory.
12132         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
12133         upon out-of-memory.
12134         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
12135         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
12136         gl_anytree_list1.h before gl_anyavltree_list2.h.
12137         (gl_avltree_list_implementation): Update.
12138         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
12139         gl_anytree_list1.h before gl_anyavltree_list2.h.
12140         (gl_rbtree_list_implementation): Update.
12141         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
12142         Change return type to 'int'. Return -1 upon out-of-memory. Use
12143         __builtin_expect.
12144         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
12145         (gl_avltreehash_list_implementation): Update.
12146         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
12147         (gl_rbtreehash_list_implementation): Update.
12148         * modules/array-list (Depends-on): Remove xalloc.
12149         * modules/carray-list (Depends-on): Likewise.
12150         * modules/linked-list (Depends-on): Likewise.
12151         * modules/linkedhash-list (Depends-on): Likewise.
12152         * modules/avltree-list (Depends-on): Likewise.
12153         * modules/rbtree-list (Depends-on): Likewise.
12154         * modules/avltreehash-list (Depends-on): Likewise.
12155         * modules/rbtreehash-list (Depends-on): Likewise.
12156
12157         * modules/xsublist: New file.
12158         * lib/gl_xsublist.h: New file.
12159         * lib/gl_xsublist.c: New file.
12160         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
12161         (gl_sublist_nx_create): New declaration.
12162         * lib/gl_sublist.c: Don't include xalloc.h.
12163         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
12164         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
12165         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
12166         Change return type to 'int'. Return -1 upon out-of-memory.
12167         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
12168         upon out-of-memory.
12169         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
12170         NULL upon out-of-memory.
12171         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
12172         upon out-of-memory.
12173         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
12174         NULL upon out-of-memory.
12175         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
12176         NULL upon out-of-memory.
12177         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
12178         upon out-of-memory.
12179         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
12180         (gl_sublist_list_implementation): Update.
12181         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
12182         upon out-of-memory.
12183         * modules/sublist (Depends-on): Remove xalloc.
12184
12185         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
12186         * tests/test-carray_list.c: Likewise.
12187         * tests/test-linked_list.c: Likewise.
12188         * tests/test-linkedhash_list.c: Likewise.
12189         * tests/test-avltree_list.c: Likewise.
12190         * tests/test-rbtree_list.c: Likewise.
12191         * tests/test-avltreehash_list.c: Likewise.
12192         * tests/test-rbtreehash_list.c: Likewise.
12193         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
12194         * modules/carray-list-tests (Makefile.am): Likewise.
12195         * modules/linked-list-tests (Makefile.am): Likewise.
12196         * modules/linkedhash-list-tests (Makefile.am): Likewise.
12197         * modules/avltree-list-tests (Makefile.am): Likewise.
12198         * modules/rbtree-list-tests (Makefile.am): Likewise.
12199         * modules/avltreehash-list-tests (Makefile.am): Likewise.
12200         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
12201
12202         * NEWS: Mention the changes.
12203
12204         * lib/clean-temp.c: Include gl_xlist.h.
12205         * modules/clean-temp (Depends-on): Add xlist.
12206
12207         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
12208         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
12209
12210         * tests/test-array_oset.c: Include gl_xlist.h.
12211         * modules/array-oset-tests (Depends-on): Add xlist.
12212
12213         Reported by José E. Marchesi <jemarch@gnu.org>.
12214
12215 2009-12-13  Bruno Haible  <bruno@clisp.org>
12216
12217         Move the malloc checking from module 'oset' to new module 'xoset'.
12218         * modules/xoset: New file.
12219         * lib/gl_xoset.h: New file.
12220         * lib/gl_xoset.c: New file.
12221         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
12222         declarations.
12223         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
12224         (struct gl_oset_implementation): Rename and change methods accordingly.
12225         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
12226         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
12227         'int'. Mark as __warn_unused_result__.
12228         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
12229         gl_oset_create_empty.
12230         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
12231         'int'.
12232         * lib/gl_array_oset.c: Don't include xalloc.h.
12233         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
12234         malloc, not xmalloc.
12235         (grow): Change return type to 'int'. Don't call xalloc_die.
12236         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
12237         to 'int'.
12238         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
12239         'int'.
12240         (gl_array_oset_implementation): Update.
12241         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
12242         gl_tree_create_empty.
12243         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
12244         'int'.
12245         * lib/gl_avltree_oset.c: Don't include xalloc.h.
12246         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
12247         xmalloc.
12248         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
12249         not xmalloc.
12250         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
12251         xmalloc.
12252         (gl_avltree_oset_implementation): Update.
12253         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
12254         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
12255         xmalloc.
12256         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
12257         not xmalloc.
12258         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
12259         xmalloc.
12260         (gl_rbtree_oset_implementation): Update.
12261         * modules/array-oset (Depends-on): Remove xalloc.
12262         * modules/avltree-oset (Depends-on): Likewise.
12263         * modules/rbtree-oset (Depends-on): Likewise.
12264         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
12265         * tests/test-avltree_oset.c: Likewise.
12266         * tests/test-rbtree_oset.c: Likewise.
12267         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
12268         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
12269         * modules/rbtree-oset-tests (Makefile.am): Likewise.
12270         * NEWS: Mention the change.
12271
12272 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
12273
12274         maint.mk: allow a project to override release-prep commands
12275         * top/maint.mk (alpha, beta, stable): Move release-preparatory
12276         commands into a new rule.
12277         (release-prep): New rule.
12278         (release-prep-hook): New overridable variable.
12279
12280 2009-12-13  Bruno Haible  <bruno@clisp.org>
12281
12282         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
12283
12284 2009-12-13  Jim Meyering  <meyering@redhat.com>
12285
12286         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
12287         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
12288
12289 2009-12-12  Bruno Haible  <bruno@clisp.org>
12290
12291         duplocale: Tweak.
12292         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
12293
12294 2009-12-12  Karl Berry  <karl@gnu.org>
12295
12296         * config/srclist.txt (strtoll.c): tab changes, no more sync.
12297
12298 2009-12-12  Bruno Haible  <bruno@clisp.org>
12299
12300         * m4/po.m4: Undo incorrect untabification.
12301
12302 2009-12-12  Bruno Haible  <bruno@clisp.org>
12303
12304         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
12305         * modules/c-strtod (Depends-on): Add locale.
12306         * modules/c-strtold (Depends-on): Likewise.
12307
12308 2009-12-12  Bruno Haible  <bruno@clisp.org>
12309
12310         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
12311
12312 2009-12-11  Eric Blake  <ebb9@byu.net>
12313
12314         setenv: relax requirement in light of POSIX ruling
12315         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
12316         not NULL.
12317         * tests/test-setenv.c (main): Relax test.
12318         * tests/test-unsetenv.c (main): Likewise.
12319         * doc/posix-functions/setenv.texi (setenv): Document this.
12320         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
12321
12322 2009-12-11  Bruno Haible  <bruno@clisp.org>
12323
12324         New module 'fd-safer-flag'.
12325         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
12326         * lib/dup-safer.c (dup_safer_flag): Remove function.
12327         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
12328         * lib/fd-safer.c (fd_safer_flag): Remove function.
12329         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
12330         * modules/cloexec (configure.ac): Drop indicator macro.
12331         * modules/fd-safer-flag: New file.
12332         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
12333         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
12334         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
12335
12336 2009-12-11  Bruno Haible  <bruno@clisp.org>
12337
12338         Tests for module 'nl_langinfo'.
12339         * modules/nl_langinfo-tests: New file.
12340         * tests/test-nl_langinfo.sh: New file.
12341         * tests/test-nl_langinfo.c: New file.
12342
12343         New module 'nl_langinfo'.
12344         * lib/nl_langinfo.c: New file.
12345         * m4/nl_langinfo.m4: New file.
12346         * modules/nl_langinfo: New file.
12347         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
12348
12349 2009-12-11  Bruno Haible  <bruno@clisp.org>
12350
12351         Tests for module 'langinfo'.
12352         * modules/langinfo-tests: New file.
12353         * tests/test-langinfo.c: New file.
12354
12355         New module 'langinfo'.
12356         * lib/langinfo.in.h: New file.
12357         * m4/langinfo_h.m4: New file.
12358         * modules/langinfo: New file.
12359         * doc/posix-headers/langinfo.texi: Mention the new module.
12360
12361 2009-12-11  Bruno Haible  <bruno@clisp.org>
12362
12363         * lib/config.charset: Untabify.
12364
12365 2009-12-11  Bruno Haible  <bruno@clisp.org>
12366
12367         * modules/unistd-safer (configure.ac): Drop indicator macro.
12368
12369 2009-12-11  Bruno Haible  <bruno@clisp.org>
12370
12371         Move pipe2-safer code to its own file.
12372         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
12373         * lib/pipe-safer.c (pipe2_safer): Remove function.
12374         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
12375         (Makefile.am): Add it to lib_SOURCES.
12376
12377 2009-12-10  Bruno Haible  <bruno@clisp.org>
12378
12379         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
12380
12381 2009-12-10  Bruno Haible  <bruno@clisp.org>
12382
12383         Declare which arguments expect non-NULL values, for GCC and clang.
12384         * build-aux/arg-nonnull.h: New file.
12385         * modules/arg-nonnull: New file.
12386         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
12387         (inet_ntop, inet_pton): Use it.
12388         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
12389         (closedir, dirfd, opendir, scandir, alphasort): Use it.
12390         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
12391         (open, openat): Use it.
12392         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
12393         (fnmatch): Use it.
12394         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
12395         (getopt, getopt_long, getopt_long_only): Use it.
12396         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
12397         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
12398         Use it.
12399         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
12400         (iconv_open): Use it.
12401         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
12402         (strtoimax, strtoumax): Use it.
12403         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
12404         (duplocale): Use it.
12405         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
12406         (frexp, frexpl): Use it.
12407         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
12408         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
12409         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
12410         (tsearch, tfind, tdelete, twalk): Use it.
12411         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
12412         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
12413         sigpending): Use it.
12414         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
12415         (posix_spawn, posix_spawnp, posix_spawnattr_init,
12416         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
12417         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
12418         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
12419         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
12420         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
12421         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
12422         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
12423         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
12424         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
12425         Use it.
12426         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
12427         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
12428         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
12429         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
12430         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
12431         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
12432         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
12433         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
12434         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
12435         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
12436         strtoull, unsetenv): Use it.
12437         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
12438         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
12439         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
12440         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
12441         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
12442         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
12443         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
12444         (strcasecmp, strncasecmp): Use it.
12445         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
12446         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
12447         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
12448         rpl_setsockopt): Use it.
12449         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
12450         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
12451         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
12452         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
12453         (gettimeofday): Use it.
12454         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
12455         (times): Use it.
12456         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
12457         (uname): Use it.
12458         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
12459         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
12460         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
12461         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
12462         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
12463         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
12464         unlinkat, write): Use it.
12465         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
12466         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
12467         * lib/argv-iter.h: Include arg-nonnull.h.
12468         (_ATTRIBUTE_NONNULL_): Remove macro.
12469         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
12470         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
12471         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
12472         optimization.
12473         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
12474         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
12475         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
12476         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
12477         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
12478         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
12479         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
12480         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
12481         * modules/arpa_inet (Depends-on): Add arg-nonnull.
12482         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
12483         * modules/dirent (Depends-on): Add arg-nonnull.
12484         (Makefile.am): Insert arg-nonnull.h into dirent.h.
12485         * modules/fcntl-h (Depends-on): Add arg-nonnull.
12486         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
12487         * modules/fnmatch (Depends-on): Add arg-nonnull.
12488         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
12489         * modules/getopt-posix (Depends-on): Add arg-nonnull.
12490         (Makefile.am): Insert arg-nonnull.h into getopt.h.
12491         * modules/glob (Depends-on): Add arg-nonnull.
12492         (Makefile.am): Insert arg-nonnull.h into glob.h.
12493         * modules/iconv_open (Depends-on): Add arg-nonnull.
12494         (Makefile.am): Insert arg-nonnull.h into iconv.h.
12495         * modules/inttypes (Depends-on): Add arg-nonnull.
12496         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
12497         * modules/locale (Depends-on): Add arg-nonnull.
12498         (Makefile.am): Insert arg-nonnull.h into locale.h.
12499         * modules/math (Depends-on): Add arg-nonnull.
12500         (Makefile.am): Insert arg-nonnull.h into math.h.
12501         * modules/netdb (Depends-on): Add arg-nonnull.
12502         (Makefile.am): Insert arg-nonnull.h into netdb.h.
12503         * modules/search (Depends-on): Add arg-nonnull.
12504         (Makefile.am): Insert arg-nonnull.h into search.h.
12505         * modules/signal (Depends-on): Add arg-nonnull.
12506         (Makefile.am): Insert arg-nonnull.h into signal.h.
12507         * modules/spawn (Depends-on): Add arg-nonnull.
12508         (Makefile.am): Insert arg-nonnull.h into spawn.h.
12509         * modules/stdio (Depends-on): Add arg-nonnull.
12510         (Makefile.am): Insert arg-nonnull.h into stdio.h.
12511         * modules/stdlib (Depends-on): Add arg-nonnull.
12512         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
12513         * modules/string (Depends-on): Add arg-nonnull.
12514         (Makefile.am): Insert arg-nonnull.h into string.h.
12515         * modules/strings (Depends-on): Add arg-nonnull.
12516         (Makefile.am): Insert arg-nonnull.h into strings.h.
12517         * modules/sys_socket (Depends-on): Add arg-nonnull.
12518         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
12519         * modules/sys_stat (Depends-on): Add arg-nonnull.
12520         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
12521         * modules/sys_time (Depends-on): Add arg-nonnull.
12522         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
12523         * modules/sys_times (Depends-on): Add arg-nonnull.
12524         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
12525         * modules/sys_utsname (Depends-on): Add arg-nonnull.
12526         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
12527         * modules/time (Depends-on): Add arg-nonnull.
12528         (Makefile.am): Insert arg-nonnull.h into time.h.
12529         * modules/unistd (Depends-on): Add arg-nonnull.
12530         (Makefile.am): Insert arg-nonnull.h into unistd.h.
12531         * modules/wchar (Depends-on): Add arg-nonnull.
12532         (Makefile.am): Insert arg-nonnull.h into wchar.h.
12533         * modules/argv-iter (Depends-on): Add arg-nonnull.
12534         * tests/test-canonicalize.c (null_ptr): New function.
12535         (main): Use it.
12536         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
12537         (main): Use it.
12538         * tests/test-memmem.c (null_ptr): New function.
12539         (main): Use it.
12540         Reported by Jim Meyering.
12541
12542 2009-12-10  Bruno Haible  <bruno@clisp.org>
12543
12544         Use spaces for indentation, not tabs.
12545         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
12546         * m4/*.m4: Untabify.
12547         * build-aux/*.h: Untabify.
12548         * tests/**/*.[hc]: Untabify.
12549         * README: New section "Indent with spaces, not TABs", based on
12550         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
12551         * NEWS: Mention the change.
12552
12553 2009-12-10  Bruno Haible  <bruno@clisp.org>
12554
12555         pty test: Fix link error.
12556         * modules/pty-tests (Makefile.am): Add the default LDADD value to
12557         test_pty_LDADD.
12558
12559 2009-12-07  Simon Josefsson  <simon@josefsson.org>
12560
12561         * modules/pty: New file.
12562         * modules/pty-tests: New file.
12563         * m4/pty.m4: New file.
12564         * tests/test-pty.c: New file.
12565         * doc/glibc-headers/pty.texi: Modified.
12566         * doc/glibc-functions/forkpty.texi: Modified.
12567         * doc/glibc-functions/openpty.texi: Modified.
12568
12569 2009-12-10  Bruno Haible  <bruno@clisp.org>
12570
12571         Avoid syntax error in C++ mode.
12572         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
12573
12574 2009-12-10  Bruno Haible  <bruno@clisp.org>
12575
12576         Use sed with option -e.
12577         * gnulib-tool (func_version, func_emit_copyright_notice,
12578         func_emit_initmacro_end, func_import, func_create_testdir): Pass
12579         option -e to sed.
12580         * modules/link-warning (Makefile.am): Likewise.
12581
12582 2009-12-10  Jim Meyering  <meyering@redhat.com>
12583
12584         mgetgroups: do not write bytes beyond end of malloc'd buffer
12585         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
12586         username, we call getgroups with a one-element-shorter buffer,
12587         but still told it the length was original, max_n_groups.
12588
12589 2009-12-09  Eric Blake  <ebb9@byu.net>
12590
12591         cloexec: relax license
12592         * modules/cloexec (Maintainer): Add myself.
12593         (License): Use LGPL, not GPL.
12594
12595         link-warning: optimize generation
12596         * modules/link-warning (Makefile.am): Reduce process usage.
12597
12598 2009-12-09  Bruno Haible  <bruno@clisp.org>
12599
12600         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
12601         workaround was added on 2009-11-17.
12602
12603 2009-12-09  Jim Meyering  <meyering@redhat.com>
12604             Bruno Haible  <bruno@clisp.org>
12605
12606         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
12607         * modules/link-warning (Makefile.am): Make the comment-removing sed
12608         command more robust in the face of bootstrap-prepended comment lines.
12609
12610 2009-12-09  Bruno Haible  <bruno@clisp.org>
12611
12612         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
12613         most one group.
12614
12615 2009-12-09  Simon Josefsson <simon@josefsson.org>
12616             Bruno Haible  <bruno@clisp.org>
12617
12618         * build-aux/link-warning.h: Add copyright notice.
12619         * modules/link-warning (Makefile.am): Generate link-warning.h from
12620         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
12621         * NEWS: Mention change in link-warning module.
12622         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
12623         * modules/dirent (Makefile.am): Add dependency to dirent.h.
12624         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
12625         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
12626         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
12627         * modules/math (Makefile.am): Add dependency to math.h.
12628         * modules/search (Makefile.am): Add dependency to search.h.
12629         * modules/signal (Makefile.am): Add dependency to signal.h.
12630         * modules/spawn (Makefile.am): Add dependency to spawn.h.
12631         * modules/stdio (Makefile.am): Add dependency to stdio.h.
12632         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
12633         * modules/string (Makefile.am): Add dependency to string.h.
12634         * modules/strings (Makefile.am): Add dependency to strings.h.
12635         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
12636         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
12637         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
12638         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
12639         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
12640         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
12641         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
12642         * modules/unistd (Makefile.am): Add dependency to unistd.h.
12643         * modules/wchar (Makefile.am): Add dependency to wchar.h.
12644
12645 2009-12-09  Bruno Haible  <bruno@clisp.org>
12646
12647         fchdir: Optimize away rpl_fstat when possible.
12648         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
12649         REPLACE_OPEN_DIRECTORY.
12650         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
12651
12652 2009-12-09  Bruno Haible  <bruno@clisp.org>
12653
12654         * lib/fchdir.c: Update comment.
12655
12656 2009-12-09  Bruno Haible  <bruno@clisp.org>
12657
12658         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
12659
12660 2009-12-08  Eric Blake  <ebb9@byu.net>
12661
12662         fchdir: avoid memory leak on re-registration.
12663         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
12664
12665 2009-12-08  Jim Meyering  <meyering@redhat.com>
12666
12667         init.sh: avoid Solaris 10 /bin/sh portability problem
12668         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
12669         sourced script:
12670           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
12671           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
12672           bar
12673         tests/init.sh relied on that, accepting a --set-path=DIR argument,
12674         and two tests used that idiom.
12675         * tests/init.sh: Update suggested usage comments.
12676         (path_prepend_): New function, to be used in place
12677         of the --src-path=DIR option.
12678         (setup_): Move PATH-prepending code into path_prepend_.
12679         * tests/test-pread.sh: Adapt to new usage.
12680         * tests/test-xalloc-die.sh: Likewise.
12681
12682 2009-12-08  Simon Josefsson  <simon@josefsson.org>
12683
12684         * doc/gnulib.texi (Glibc pty.h): Add.
12685         * doc/glibc-functions/forkpty.texi: Add.
12686         * doc/glibc-functions/openpty.texi: Add.
12687         Suggested by Bruno Haible.
12688
12689 2009-12-08  Eric Blake  <ebb9@byu.net>
12690
12691         fchdir: fix logic bugs
12692         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
12693         * tests/test-fchdir.c (main): Enhance test.
12694         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
12695         is in use.
12696
12697         dup2: fix logic bugs
12698         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
12699         REPLACE_DUP2 to decide when rpl_dup2 is needed.
12700         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
12701         exists.
12702         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
12703
12704 2009-12-07  Eric Blake  <ebb9@byu.net>
12705
12706         unlink: fix m4 detection
12707         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
12708
12709         unistd-safer: add unit test
12710         * modules/unistd-safer-tests: New file.
12711         * tests/test-dup-safer.c: Likewise.
12712         * tests/test-cloexec.c (setmode): Avoid compiler warning.
12713         * tests/test-dup2.c (setmode): Likewise.
12714         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
12715
12716         cloexec: preserve text vs. binary across dup_cloexec
12717         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
12718         mode.
12719         * modules/dup2-tests (Depends-on): Add binary-io.
12720         * modules/cloexec-tests (Depends-on): Likewise.
12721         * tests/test-dup2.c (setmode, is_mode): New helpers.
12722         (main): Add tests that translation mode is preserved.
12723         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
12724         Reported by Bruno Haible.
12725
12726         mgetgroups: reduce duplicate listings
12727         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
12728         resulting array.
12729         * tests/test-chown.h (test_chown): Simplify client.
12730         * tests/test-lchown.h (test_lchown): Likewise.
12731
12732 2009-12-06  Bruno Haible  <bruno@clisp.org>
12733
12734         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
12735         value.
12736
12737 2009-12-06  Bruno Haible  <bruno@clisp.org>
12738
12739         * lib/progname.c: Include stdio.h, stdlib.h.
12740         (set_program_name): Reject a NULL argument.
12741
12742 2009-12-05  Eric Blake  <ebb9@byu.net>
12743
12744         pipe2-safer: new module
12745         * modules/pipe2-safer: New file.
12746         * lib/unistd-safer.h (pipe2_safer): New prototype.
12747         * lib/unistd--.h (pipe2): New wrapper.
12748         * lib/pipe-safer.c (pipe2_safer): New function.
12749         * modules/pipe (Depends-on): Add pipe2-safer.
12750         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
12751
12752         stdlib-safer: preserve cloexec flag for mkostemp[s]
12753         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
12754         fd_safer_flag.
12755
12756         unistd-safer: allow preservation of cloexec status via flag
12757         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
12758         prototypes.
12759         * lib/dup-safer.c (dup_safer_flag): New function.
12760         * lib/fd-safer.c (fd_safer_flag): Likewise.
12761         * modules/cloexec (configure.ac): Set witness.
12762
12763         test-dup2: enhance test
12764         * modules/dup2-tests (Depends-on): Add cloexec.
12765         * tests/test-dup2.c (main): Enhance test.
12766
12767         cloexec: add dup_cloexec
12768         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
12769         header and comments.
12770         * lib/cloexec.c (set_cloexec_flag): Add comments.
12771         (dup_cloexec): New function, with mingw implementation borrowed
12772         from...
12773         * lib/w32spawn.h (dup_noinherit): ...here.
12774         * modules/execute (Depends-on): Add cloexec.
12775         * modules/pipe (Depends-on): Likewise.
12776         * modules/cloexec (Depends-on): Add dup2.
12777         * modules/cloexec-tests (Files): New file.
12778         * tests/test-cloexec.c: Likewise.
12779
12780         test-xalloc-die: fix test for mingw
12781         * modules/xalloc-die-tests (Files): Add tests/init.sh.
12782         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
12783         directory and .exe suffix off argv[0] output.
12784
12785         test-fseeko: fix test for mingw
12786         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
12787         than undefining fseek, so test will pass on mingw.
12788
12789 2009-12-05  Bruno Haible  <bruno@clisp.org>
12790
12791         * lib/progname.h (set_program_name): Clarify specification.
12792         * lib/progname.c (set_program_name): Likewise.
12793         Reported by Jim Meyering.
12794
12795 2009-12-05  Jim Meyering  <meyering@redhat.com>
12796
12797         maint.mk: backslash-escape parens in default regexp
12798         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
12799         backslash-escape the literal parentheses.
12800
12801         maint.mk: news-date-check: use grep -E
12802         * top/maint.mk (today): Define a Make variable, not a...
12803         (news-date-check): ...shell variable.
12804         (news-date-regexp): Use the Make variable.
12805         Use grep's -E option.  Change the failing diagnostic to mention
12806         the variable, $(news-date-regexp).
12807
12808 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
12809
12810         maintainer-makefile: allow customization of NEWS entry format
12811         * top/maint.mk (news-date-regexp): New overridable variable.
12812         (news-date-check): Use it.
12813
12814 2009-12-04  Eric Blake  <ebb9@byu.net>
12815
12816         mgetgroups: add xgetgroups, and avoid ENOSYS failures
12817         * lib/mgetgroups.h (xgetgroups): New prototype.
12818         * lib/mgetgroups.c (xgetgroups): New wrapper.
12819         (mgetgroups): Handle ENOSYS.
12820         * modules/mgetgroups (Depends-on): Add realloc.
12821         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
12822
12823         mgetgroups: avoid argument promotion issues with -1
12824         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
12825         for invalid gid_t.
12826         * tests/test-chown.h (getegid, test_chown): Likewise.
12827         * tests/test-lchown.h (getegid, test_lchown): Likewise.
12828
12829 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
12830
12831         exclude: Fix header file problems.
12832         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
12833
12834 2009-12-01  Jim Meyering  <meyering@redhat.com>
12835
12836         fts: fts_open: do not let an empty string cause immediate failure
12837         This is required in support of GNU rm, for which the command
12838         "rm A '' B" must process and remove both A and B, in spite of
12839         the empty string argument.
12840         * lib/fts.c (fts_open): Do not let the presence of an empty string
12841         cause fts_open to fail immediately.  Most fts-using tools must be
12842         able to process all arguments, in order, and can be expected to
12843         diagnose such arguments themselves.
12844
12845 2009-11-30  Eric Blake  <ebb9@byu.net>
12846
12847         utimens: fix compilation error
12848         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
12849         Declare variable at right scope.
12850
12851 2009-11-29  Jim Meyering  <meyering@redhat.com>
12852
12853         bootstrap: handle perl-5.11's changed --version output
12854         * build-aux/bootstrap (get_version): Handle perl separately,
12855         since perl-5.11's --version output is different.
12856
12857 2009-11-28  Jim Meyering  <meyering@redhat.com>
12858
12859         userspec: depend on the inttostr module, too
12860         * modules/userspec (Depends-on): Add inttostr.
12861
12862         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
12863         * lib/userspec.c (parse_with_separator): Do not accept a user ID
12864         number of MAXUID when it evaluates to (uid_t) -1.
12865         Likewise for group ID.  Reported by Matt McCutchen in
12866         <http://savannah.gnu.org/bugs/?28113>
12867
12868         userspec: reformat to use spaces, not TABs
12869         * lib/userspec.c: Expand TABs to spaces.
12870         Add Emacs' "indent-tabs-mode: nil" hint.
12871
12872 2009-11-27  Eric Blake  <ebb9@byu.net>
12873
12874         getopt-gnu: flush out another BSD bug
12875         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
12876         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
12877         flush out BSD bug.
12878         * tests/test-getopt.h (test_getopt): End lists with NULL.
12879         * tests/test-getopt_long.h (test_getopt_long): Likewise.
12880         (test_getopt_long_posix): Enhance test.
12881         * modules/getopt-posix-tests (Depends-on): Add stdbool.
12882         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
12883         getopt-gnu.
12884         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
12885         Likewise.
12886
12887 2009-11-27  Simon Josefsson  <simon@josefsson.org>
12888
12889         * modules/idpriv-droptemp-tests (Notice): Fix text.
12890
12891 2009-11-27  Jim Meyering  <meyering@redhat.com>
12892
12893         test-xalloc-die: avoid spurious failure due to libtool argv difference
12894         In a libtool-enabled project, this test would fail due to a difference
12895         in the emitted program name, e.g.,
12896         -test-xalloc-die: memory exhausted
12897         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
12898         Use program to avoid that.
12899         * modules/xalloc-die-tests (Depends-on): Add progname.
12900         * tests/test-xalloc-die.c: Include progname.h".
12901         (program_name): Remove decl.
12902         (main): Call set_program_name.
12903         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
12904
12905 2009-11-26  Richard Jones  <rjones@redhat.com>
12906
12907         w32sock: leave win32 error in place.
12908         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
12909
12910 2009-11-26  Eric Blake  <ebb9@byu.net>
12911
12912         init.sh: suggest to use skip_ and fail_ functions in comments
12913         * tests/init.sh: Add a sentence.
12914
12915 2009-11-25  Bruno Haible  <bruno@clisp.org>
12916
12917         init.sh: add documentation in comments
12918         * tests/init.sh: Add some developer and user documentation.
12919
12920 2009-11-26  Jim Meyering  <meyering@redhat.com>
12921
12922         init.sh: accommodate even those who specify bogus srcdir manually
12923         * tests/init.sh: Normally, srcdir is guaranteed by automake and
12924         configure-time tests to be sanitized, so that there is no need to
12925         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
12926         (with no double quotes) suffices.  However, since tests may be
12927         invoked manually, and since you may explicitly set srcdir to the
12928         name of a directory containing spaces, do quote its uses here.
12929         * tests/test-pread.sh: Likewise.
12930         Suggested by Bruno Haible.
12931
12932         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
12933         * tests/test-pread.sh: Write no data into the pipe, because
12934         test-pread actually reads none.  This avoids a diagnostic,
12935         "bash: echo: write error: Broken pipe", that arises in the unusual
12936         event something is ignoring SIGPIPE, and might be interpreted
12937         as some sort of failure.  Reported by Bruno Haible.
12938
12939 2009-11-25  Jim Meyering  <meyering@redhat.com>
12940
12941         test-pread: cover failure with ESPIPE and EINVAL
12942         * tests/test-pread.c (main): Test for failure, too.
12943         * tests/test-pread.sh: Invoke with stdin on a pipe.
12944         Suggested by Eric Blake.
12945
12946         pread: improvement and fix
12947         * modules/pread (Depends-on): Depend on lseek, for portability to
12948         e.g., mingw.  Suggested by Eric Blake.
12949         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
12950
12951         unistd.in.h: correct declaration of pread
12952         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
12953         Reported by Richard W.M. Jones.
12954
12955         test-pread.sh: distribute the test script
12956         * modules/pread-tests (Files): Include test-pread.sh.
12957
12958         test-pread.sh: clean up
12959         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
12960         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
12961         That is unnecessary, since it's always ".".
12962         Suggestion from Eric Blake.
12963
12964         test-pread.sh: make executable
12965         * tests/test-pread.sh: Set executable bit.
12966         Reported by Eric Blake.
12967
12968         correct typo in test-pread.sh
12969         * tests/test-pread.sh: Add #! line.
12970
12971         test pread
12972         * tests/test-pread.c: New file.
12973         * tests/test-pread.sh: Likewise.
12974         * modules/pread-tests: Likewise.
12975
12976         pread: new module
12977         * modules/pread: New file.
12978         * lib/unistd.in.h (pread): Define/declare.
12979         * lib/pread.c (pread): New file.
12980         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
12981         * modules/unistd (Makefile.am): Substitute witnesses.
12982         * doc/posix-functions/pread.texi (pread): Update.
12983         * MODULES.html.sh: Add pread.
12984
12985 2009-11-25  Jim Meyering  <meyering@redhat.com>
12986
12987         tests/init.sh: new file to be used via most *.sh tests
12988         * tests/init.sh: New file.
12989
12990 2009-11-25  Eric Blake  <ebb9@byu.net>
12991
12992         utimens: work around older Linux failure with symlinks
12993         * lib/utimens.c (lutimensat_works_really): New variable.
12994         (fdutimens, lutimens): Use it to manage kernels that support
12995         nanosecond times on files, but not on symlinks.
12996         Reported by OndÅ™ej Vašík.
12997
12998         utimes: fix configure grammar
12999         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
13000
13001 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
13002
13003         regex: Fix fastmap for multibyte character ranges.
13004         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
13005         characters when a multibyte character range is included.
13006
13007 2009-11-22  Andy Wingo  <wingo@pobox.com>
13008
13009         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
13010         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
13011
13012 2009-11-24  Bruno Haible  <bruno@clisp.org>
13013
13014         doc: Most *_l functions exist in MacOS X 10.5.
13015         * doc/posix-functions/duplocale.texi: Update platforms list.
13016         * doc/posix-functions/freelocale.texi: Likewise.
13017         * doc/posix-functions/newlocale.texi: Likewise.
13018         * doc/posix-functions/uselocale.texi: Likewise.
13019         * doc/posix-functions/isalnum_l.texi: Likewise.
13020         * doc/posix-functions/isalpha_l.texi: Likewise.
13021         * doc/posix-functions/isblank_l.texi: Likewise.
13022         * doc/posix-functions/iscntrl_l.texi: Likewise.
13023         * doc/posix-functions/isdigit_l.texi: Likewise.
13024         * doc/posix-functions/isgraph_l.texi: Likewise.
13025         * doc/posix-functions/islower_l.texi: Likewise.
13026         * doc/posix-functions/isprint_l.texi: Likewise.
13027         * doc/posix-functions/ispunct_l.texi: Likewise.
13028         * doc/posix-functions/isspace_l.texi: Likewise.
13029         * doc/posix-functions/isupper_l.texi: Likewise.
13030         * doc/posix-functions/iswalnum_l.texi: Likewise.
13031         * doc/posix-functions/iswalpha_l.texi: Likewise.
13032         * doc/posix-functions/iswblank_l.texi: Likewise.
13033         * doc/posix-functions/iswcntrl_l.texi: Likewise.
13034         * doc/posix-functions/iswctype_l.texi: Likewise.
13035         * doc/posix-functions/iswdigit_l.texi: Likewise.
13036         * doc/posix-functions/iswgraph_l.texi: Likewise.
13037         * doc/posix-functions/iswlower_l.texi: Likewise.
13038         * doc/posix-functions/iswprint_l.texi: Likewise.
13039         * doc/posix-functions/iswpunct_l.texi: Likewise.
13040         * doc/posix-functions/iswspace_l.texi: Likewise.
13041         * doc/posix-functions/iswupper_l.texi: Likewise.
13042         * doc/posix-functions/iswxdigit_l.texi: Likewise.
13043         * doc/posix-functions/isxdigit_l.texi: Likewise.
13044         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
13045         * doc/posix-functions/strcasecmp_l.texi: Likewise.
13046         * doc/posix-functions/strcoll_l.texi: Likewise.
13047         * doc/posix-functions/strfmon_l.texi: Likewise.
13048         * doc/posix-functions/strftime_l.texi: Likewise.
13049         * doc/posix-functions/strncasecmp_l.texi: Likewise.
13050         * doc/posix-functions/strxfrm_l.texi: Likewise.
13051         * doc/posix-functions/tolower_l.texi: Likewise.
13052         * doc/posix-functions/toupper_l.texi: Likewise.
13053         * doc/posix-functions/towctrans_l.texi: Likewise.
13054         * doc/posix-functions/towlower_l.texi: Likewise.
13055         * doc/posix-functions/towupper_l.texi: Likewise.
13056         * doc/posix-functions/wcscoll_l.texi: Likewise.
13057         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
13058         * doc/posix-functions/wctrans_l.texi: Likewise.
13059         * doc/posix-functions/wctype_l.texi: Likewise.
13060         * doc/glibc-functions/strptime_l.texi: Likewise.
13061         * doc/glibc-functions/strtod_l.texi: Likewise.
13062         * doc/glibc-functions/strtof_l.texi: Likewise.
13063         * doc/glibc-functions/strtol_l.texi: Likewise.
13064         * doc/glibc-functions/strtold_l.texi: Likewise.
13065         * doc/glibc-functions/strtoll_l.texi: Likewise.
13066         * doc/glibc-functions/strtoul_l.texi: Likewise.
13067         * doc/glibc-functions/strtoull_l.texi: Likewise.
13068         * doc/glibc-functions/wcsftime_l.texi: Likewise.
13069         * doc/glibc-functions/wcstod_l.texi: Likewise.
13070         * doc/glibc-functions/wcstof_l.texi: Likewise.
13071         * doc/glibc-functions/wcstol_l.texi: Likewise.
13072         * doc/glibc-functions/wcstold_l.texi: Likewise.
13073         * doc/glibc-functions/wcstoll_l.texi: Likewise.
13074         * doc/glibc-functions/wcstoul_l.texi: Likewise.
13075         * doc/glibc-functions/wcstoull_l.texi: Likewise.
13076
13077 2009-11-24  Bruno Haible  <bruno@clisp.org>
13078
13079         duplocale: Fix logic bug.
13080         * lib/duplocale.c: Don't include <langinfo.h>.
13081         (_NL_LOCALE_NAME): Remove macro.
13082         (rpl_duplocale): Use setlocale instead of nl_langinfo.
13083         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
13084
13085 2009-11-23  Jim Meyering  <meyering@redhat.com>
13086
13087         test-update-copyright: don't hard-code /usr/bin/perl
13088         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
13089         perl to print the current year.  Gilles Espinasse reported that
13090         the replaced use of perl was hard-coded as /usr/bin/perl.
13091
13092 2009-11-23  Bruno Haible  <bruno@clisp.org>
13093
13094         duplocale: Add support for glibc 2.3.x.
13095         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
13096
13097 2009-11-22  Bruno Haible  <bruno@clisp.org>
13098
13099         vasnprintf: Tiny optimization.
13100         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
13101         MacOS X.
13102
13103 2009-11-22  Bruno Haible  <bruno@clisp.org>
13104
13105         Tests for module 'duplocale'.
13106         * modules/duplocale-tests: New file.
13107         * tests/test-duplocale.c: New file.
13108
13109         New module 'duplocale'.
13110         * m4/duplocale.m4: New file.
13111         * lib/locale.in.h (duplocale): New declaration.
13112         * lib/duplocale.c: New file.
13113         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
13114         gl_LOCALE_H_DEFAULTS): New macros.
13115         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
13116         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
13117         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
13118         REPLACE_DUPLOCALE.
13119         * modules/duplocale: New file.
13120         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
13121
13122 2009-11-22  Bruno Haible  <bruno@clisp.org>
13123
13124         * modules/locale-tests (configure.ac): Test for newlocale function.
13125         * tests/test-locale.c: When the system has extended locale functions,
13126         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
13127
13128         locale: Make locale_t available when possible.
13129         * lib/locale.in.h: Include <xlocale.h> when it exists.
13130         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
13131         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
13132         * modules/locale (Depends-on): Add extensions.
13133         (Makefile.am): Also substitute HAVE_XLOCALE_H.
13134         * doc/posix-headers/locale.texi: Document the problem with locale_t.
13135
13136 2009-11-22  Bruno Haible  <bruno@clisp.org>
13137
13138         Add comments.
13139         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
13140         invocation.
13141         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
13142         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
13143         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
13144
13145 2009-11-22  Bruno Haible  <bruno@clisp.org>
13146
13147         error: account for the possibility of freopen (stdout).
13148         * lib/error.c: Include <unistd.h>.
13149         (flush_stdout): New function, extracted from error and error_at_line.
13150         Determine stdout's fd dynamically.
13151         (error, error_at_line): Invoke flush_stdout.
13152         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
13153         * modules/error (Depends-on): Add unistd.
13154
13155 2009-11-22  Bruno Haible  <bruno@clisp.org>
13156
13157         diffseq: Add comment.
13158         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
13159
13160 2009-11-22  Jim Meyering  <meyering@redhat.com>
13161
13162         c-stack: avoid defining an unused static function
13163         * lib/c-stack.c (find_stack_direction): Do not define this function
13164         when it will not be used.
13165
13166         diffseq: avoid spurious gcc warnings
13167         * lib/diffseq.h (IF_LINT2): Define.
13168         (compareseq): Use it to initialize two members of "part".
13169         This avoids two used-uninitialized warnings.
13170
13171 2009-11-21  Jim Meyering  <meyering@redhat.com>
13172
13173         c-stack: avoid "ignoring return value of `write'" warning
13174         * lib/c-stack.c: Include "ignore-value.h".
13175         (die): Explicitly ignore each write return value.
13176         * modules/c-stack (Depends-on): Add ignore-value.
13177
13178 2009-11-21  Bruno Haible  <bruno@clisp.org>
13179
13180         diffseq: reduce scope of variable 'best'.
13181         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
13182         variable, earlier used for two different purposes.
13183
13184 2009-11-21  Jim Meyering  <meyering@redhat.com>
13185
13186         diffseq: remove useless assignment to "best"
13187         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
13188         assignment.  At that point "best" is already guaranteed to be zero.
13189
13190 2009-11-20  Eric Blake  <ebb9@byu.net>
13191
13192         build: mention ftp redirector in release announcements
13193         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
13194         values that used to come from cfg.mk; mention FTP redirect URL.
13195         * build-aux/announce-gen: Mention the mirror list.
13196         Suggested by Karl Berry.
13197
13198         nanosleep: improve port to mingw
13199         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
13200         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
13201         LIB_NANOSLEEP, but only when needed.
13202         * modules/select (Link): Document LIBSOCKET.
13203         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
13204         enough.
13205
13206         nanosleep: work around cygwin bug
13207         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
13208         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
13209         bug.
13210         (getnow): Delete, not needed.
13211         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
13212         LIB_CLOCK_GETTIME.
13213         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
13214         clock-time, gettime.
13215         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
13216         bug.
13217         * modules/nanosleep-tests: New test.
13218         * tests/test-nanosleep.c: New file.
13219
13220         sleep: work around cygwin bug
13221         * lib/sleep.c (rpl_sleep): Work around the bug.
13222         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
13223         (gl_PREREQ_SLEEP): Delete unused macro.
13224         * modules/sleep (Depends-on): Add verify.
13225         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
13226         * modules/unistd (Makefile.am): Substitute witness.
13227         * lib/unistd.in.h (sleep): Update prototype.
13228         * doc/posix-functions/sleep.texi (sleep): Document the bug.
13229         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
13230         * modules/sleep-tests (Depends-on): Check for alarm.
13231
13232 2009-11-20  Jim Meyering  <meyering@redhat.com>
13233
13234         maint.mk: improve sc_prohibit_magic_number_exit
13235         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
13236         so it does not match uses like System.exit(1).
13237         Add comments showing how to correct all offenders.
13238
13239 2009-11-19  Eric Blake  <ebb9@byu.net>
13240
13241         xalloc-die-tests: add missing library
13242         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
13243
13244         test-xvasprintf: silence compiler warnings
13245         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
13246         empty string from gcc.
13247
13248 2009-11-19  Jim Meyering  <meyering@redhat.com>
13249
13250         xfreopen: new module, from coreutils
13251         * modules/xfreopen: New module.
13252         * lib/xfreopen.c: New file.
13253         * lib/xfreopen.h: New file.
13254         * MODULES.html.sh (File stream based Input/Output"): Add it.
13255
13256 2009-11-19  Eric Blake  <ebb9@byu.net>
13257
13258         manywarnings: depend on warnings
13259         * modules/manywarnings (Depends-on): Add warnings.
13260
13261         build: avoid compiler warnings
13262         * lib/select.c (rpl_select): Delete unused variable.
13263         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
13264
13265 2009-11-18  Eric Blake  <ebb9@byu.net>
13266
13267         tests: avoid false negative with --with-packager
13268         * tests/test-version-etc.sh: Discard packager information.
13269         * tests/test-argp-version-etc-1.sh: Likewise.
13270         Reported by Mike Frysinger.
13271
13272         utimens: fix regression on Solaris
13273         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
13274         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
13275         can only change fd timestamps via futimesat.  Instead, use an
13276         additional witness macro to avoid BSD bug.
13277         Reported by Jim Meyering.
13278
13279 2009-11-17  Eric Blake  <ebb9@byu.net>
13280
13281         usleep: use it to simplify tests
13282         * modules/stat-time-tests (Depends-on): Add usleep.
13283         (configure.ac): Drop usleep check.
13284         * modules/chown-tests (Depends-on, configure.ac): Likewise.
13285         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
13286         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
13287         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
13288         * modules/openat-tests (Depends-on, configure.ac): Likewise.
13289         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
13290         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
13291         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
13292         Likewise.
13293         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
13294         * tests/test-lchown.h (nap): Likewise.
13295         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
13296         * tests/test-stat-time.c (nap): Likewise.
13297         * tests/test-utimens-common.h (nap): Update comments.
13298
13299         usleep: new module
13300         * modules/usleep: New file.
13301         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
13302         * lib/usleep.c (usleep): Likewise.
13303         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
13304         * modules/unistd (Makefile.am): Substitute witnesses.
13305         * lib/unistd.in.h (usleep): Add declaration.
13306         * doc/pastposix-functions/usleep.texi (usleep): Document this.
13307         * MODULES.html.sh (Date and time): Likewise.
13308         * modules/usleep-tests (Depends-on): New test.
13309         * tests/test-usleep.c: New file.
13310
13311         chown: work around OpenBSD bug
13312         * lib/chown.c (rpl_chown): Work around the bug.
13313         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
13314         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
13315         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
13316         * modules/chown (Depends-on): Add stdbool.
13317         * modules/lchown (Depends-on): Likewise.
13318         * doc/posix-functions/chown.texi (chown): Document the bug.
13319         * doc/posix-functions/lchown.texi (lchown): Likewise.
13320         * tests/test-lchown.h (test_chown): Relax test.
13321
13322         mkstemp: avoid conflict with C++ keyword template
13323         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
13324         * lib/mkostemp.c (mkostemp): Likewise.
13325         * lib/mkostemps.c (mkostemps): Likewise.
13326         * lib/mkstemp.c (mkstemp): Likewise.
13327         * lib/mkstemps.c (mkstemps): Likewise.
13328
13329         xalloc-die-tests: optimize
13330         * tests/test-xalloc-die.sh: Reduce number of processes.
13331
13332 2009-11-17  Simon Josefsson  <simon@josefsson.org>
13333
13334         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
13335         patch from ludo@gnu.org (Ludovic Courtès).
13336
13337 2009-11-17  Jim Meyering  <meyering@redhat.com>
13338
13339         version-etc: use proper license string
13340         * modules/version-etc (License): Use LGPL, not LGPLv3+.
13341         * modules/version-etc-fsf: Likewise.
13342
13343 2009-11-17  Simon Josefsson  <simon@josefsson.org>
13344
13345         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
13346         printed to stdout.  Deal with EOL differences.
13347
13348 2009-11-17  Eric Blake  <ebb9@byu.net>
13349
13350         unsetenv: work around Solaris bug
13351         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
13352         * lib/unsetenv.c (rpl_unsetenv): Work around it.
13353         Reported by Jim Meyering.
13354
13355         vasnprintf: avoid compiler warnings
13356         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
13357         variables.
13358         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
13359
13360 2009-11-17  Simon Josefsson  <simon@josefsson.org>
13361
13362         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
13363         settings since xalloc-die is no longer the self test,
13364         xalloc-die.sh is.
13365
13366 2009-11-17  Jim Meyering  <meyering@redhat.com>
13367
13368         test-xalloc-die.sh: make the code agree with the commit log
13369         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
13370         at the end, just in case you happen to have a test-xalloc-die
13371         program in some other PATH directory.
13372
13373         test-xalloc-die.sh: fix a portability bug
13374         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
13375         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
13376         Otherwise, argv[0] (as often seen in diagnostics) would be too
13377         system-dependent, sometimes with, and sometimes without the leading "./".
13378
13379         version-etc-fsf: relax license to LGPLv3+
13380         * modules/version-etc-fsf (License): Relax license.
13381
13382 2009-11-16  Eric Blake  <ebb9@byu.net>
13383
13384         xalloc-die-tests: avoid printing null pointer
13385         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
13386         shell script.
13387         * tests/test-xalloc-die.c (program_name): Declare.
13388         * tests/test-xalloc-die.sh (tmpfiles): New file.
13389
13390         setenv, unsetenv: work around various bugs
13391         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
13392         (setenv) [HAVE_SETENV]: Work around bugs.
13393         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
13394         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
13395         for bugs.
13396         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
13397         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
13398         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
13399         * modules/stdlib (Makefile.am): Update substitutions.
13400         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
13401         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
13402         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
13403         * modules/setenv-tests: New test.
13404         * modules/unsetenv-tests: Likewise.
13405         * tests/test-setenv.c: New file.
13406         * tests/test-unsetenv.c: Likewise.
13407
13408 2009-11-16  Jim Meyering  <meyering@redhat.com>
13409
13410         version-etc: relax license to LGPLv3+
13411         * modules/version-etc (License): Relax license.
13412
13413         better AC_REQUIRE expanded-before-required-warning avoidance
13414         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
13415         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
13416         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
13417         which is no longer needed.
13418
13419 2009-11-16  Eric Blake  <ebb9@byu.net>
13420
13421         test-freading: clean up temporary file
13422         * tests/test-freading.c (main): Remove file on success, and use
13423         ASSERT more liberally.
13424         Reported by Jim Meyering.
13425
13426 2009-11-16  Jim Meyering  <meyering@redhat.com>
13427
13428         avoid new AC_REQUIRE expanded-before-required warnings
13429         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
13430         merely using it.
13431         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
13432         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
13433
13434 2009-11-15  Simon Josefsson  <simon@josefsson.org>
13435
13436         * tests/test-xalloc-die.c: New file.
13437         * modules/xalloc-die-tests: New file.
13438         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
13439         XFAIL_TESTS so it can be appended by modules.
13440
13441 2009-11-15  Simon Josefsson  <simon@josefsson.org>
13442
13443         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
13444         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
13445
13446 2009-11-14  Eric Blake  <ebb9@byu.net>
13447
13448         fnmatch: avoid compiler warning
13449         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
13450         to silence compiler warning about mismatch signedness in ?:.
13451         Reported by Robert Millan.
13452
13453         intprops: add double-inclusion guard
13454         * lib/intprops.h: Allow idempotent includes.
13455         Suggested by Bruce Korb.
13456
13457         openat: detect Solaris fchownat bug
13458         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
13459         penalizing glibc chownat when only lchownat is broken.
13460         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
13461         trailing slash bugs.
13462         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
13463         * modules/openat-tests (Files): Include more files.
13464         (Depends-on): Add mgetgroups, sleep, stat-time.
13465         (configure.ac): Add additional checks.
13466         (Makefile.am): Build new test.
13467         * tests/test-fchownat.c: New file.
13468
13469         lchown: detect Solaris and FreeBSD bug
13470         * lib/lchown.c (rpl_lchown): Work around bug.
13471         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
13472         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13473         * modules/unistd (Makefile.am): Populate it.
13474         * lib/unistd.in.h (lchown): Update declaration.
13475         * doc/posix-functions/lchown.texi (lchown): Document the bug.
13476         * modules/lchown-tests: New file.
13477         * tests/test-lchown.h (test_lchown): Likewise.
13478         * tests/test-lchown.c (main): Likewise.
13479
13480         chown: detect Solaris and FreeBSD bug
13481         * lib/chown.c (rpl_chown): Work around bug.
13482         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
13483         (gl_PREREQ_CHOWN): Delete.
13484         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
13485         * modules/unistd (Makefile.am): Populate it.
13486         * lib/unistd.in.h (chown): Update declaration.
13487         * lib/lchown.c (chown): Update client.
13488         * modules/lchown (Depends-on): Add lstat.
13489         * doc/posix-functions/chown.texi (chown): Document the bug.
13490         * doc/posix-functions/getgroups.texi (getgroups): Document
13491         getgroups pitfall.
13492         * modules/chown-tests: New file.
13493         * tests/test-chown.h (test_chown): Likewise.
13494         * tests/test-chown.c (main): Likewise.
13495
13496 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
13497
13498         gnulib-tool: correctly detect absence of m4 directories
13499         * gnulib-tool: Avoid extra newline on data passed to wc -l.
13500
13501 2009-11-14  Jim Meyering  <meyering@redhat.com>
13502
13503         maint.mk: Prohibit inclusion of "xalloc.h" without use.
13504         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
13505
13506 2009-11-14  John W. Eaton  <jwe@gnu.org>
13507
13508         strftime.h: wrap funtion declaration in extern "C" block
13509         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
13510
13511 2009-11-13  Eric Blake  <ebb9@byu.net>
13512
13513         getgroups: avoid compiler warning
13514         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
13515
13516         getgroups: work around FreeBSD bug
13517         * lib/getgroups.c (rpl_getgroups): Work around the bug.
13518         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
13519         * doc/posix-functions/getgroups.texi (getgroups): Document it.
13520         * tests/test-getgroups.c (main): Fix buffer overrun.
13521
13522         getgroups: avoid compilation failure
13523         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
13524         * modules/getgroups (Depends-on): Add stdint.
13525
13526 2009-11-13  Jim Meyering  <meyering@redhat.com>
13527
13528         test-getgroups: avoid compilation failure
13529         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
13530
13531 2009-11-13  Eric Blake  <ebb9@byu.net>
13532
13533         mgetgroups: new module, taken from coreutils
13534         * modules/mgetgroups: New file.
13535         * lib/mgetgroups.h: Likewise.
13536         * lib/mgetgroups.c (mgetgroups): Likewise.
13537         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
13538         * MODULES.html.sh (Users and groups): Mention it.
13539
13540         getgroups: don't expose GETGROUPS_T to user
13541         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
13542         an element at a time if GETGROUPS_T is wrong size.
13543         * lib/getugroups.h (getugroups): Change signature.
13544         * lib/unistd.in.h (getgroups): Likewise.
13545         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
13546         signature needs fixing.
13547         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
13548         AC_TYPE_GETGROUPS.
13549         * modules/group-member (Depends-on): Add getgroups.
13550         * lib/group-member.c (group_info, get_group_info): Use gid_t.
13551         (group_member): Rely on getgroups replacement.
13552         * lib/getugroups.c (getugroups): Use gid_t.
13553         * tests/test-getgroups.c (main): Likewise.
13554         * NEWS: Mention the signature change.
13555         * doc/posix-functions/getgroups.texi (getgroups): Mention the
13556         problem with signature.
13557         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
13558         GETGROUPS_T is still useful for setgroups.
13559
13560         getgroups, getugroups: provide stubs for mingw
13561         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
13562         * lib/getugroups.c (getugroups): Likewise.
13563         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
13564         function.  Modernize replacement scheme.
13565         (gl_PREREQ_GETGROUPS): Delete.
13566         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
13567         * modules/getgroups (configure.ac): Declare witness.
13568         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
13569         * modules/unistd (Depends-on): Substitute witness.
13570         * lib/unistd.in.h (getgroups): Declare replacement.
13571
13572         getgroups: avoid calling exit
13573         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
13574         drop xalloc.
13575         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
13576         dependencies.
13577         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
13578         exiting, in the rare case of malloc failure.
13579
13580         getgroups: fix logic error
13581         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
13582         has more than 20 groups.
13583         * modules/getgroups-tests: New test.
13584         * tests/test-getgroups.c: New file.
13585
13586 2009-11-13  Simon Josefsson  <simon@josefsson.org>
13587
13588         * tests/test-base64.c: Improve.
13589
13590 2009-11-13  Simon Josefsson  <simon@josefsson.org>
13591
13592         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
13593         Blake <ebb9@byu.net>.
13594
13595 2009-11-13  Simon Josefsson  <simon@josefsson.org>
13596
13597         * tests/test-xvasprintf.c: Add %s%s related checks.
13598
13599 2009-11-12  Eric Blake  <ebb9@byu.net>
13600
13601         version-etc: match standards.texi style
13602         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
13603         and use <> only for URLs.
13604
13605 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
13606
13607         fts: do not fail on a submount during traversal
13608         * lib/fts.c (fts_build): Read the stat info again after opening
13609         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
13610         Original report at http://bugzilla.redhat.com/501848.
13611
13612 2009-11-12  Jim Meyering  <meyering@redhat.com>
13613
13614         bootstrap: sync from coreutils
13615         * build-aux/bootstrap (bootstrap_epilogue): New function.
13616         Use git_modules_config in one more place.  This make bootstrap's
13617         --gnulib-srcdir option more useful for testing.
13618
13619         bootstrap: generalize autoheader check
13620         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
13621         AC_CONFIG_HEADERS.
13622
13623 2009-11-11  Eric Blake  <ebb9@byu.net>
13624
13625         mkfifoat: use new modules for Solaris and BSD bugs
13626         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
13627         * lib/mkfifoat.c (mknodat): Split...
13628         * lib/mknodat.c (mknodat): ...into new file.
13629         * modules/mkfifoat (Files): Ship new file.
13630         (Depends-on): Add mkfifo, mknod.
13631         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
13632         (Depends-on): Add symlink.
13633         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
13634         redundant with test_mkfifo.h.
13635         (do_mkfifoat, do_mknodat): New helpers.
13636
13637         mknod: new module
13638         * modules/mknod: New file.
13639         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
13640         * lib/mknod.c (mknod): Likewise.
13641         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
13642         defaults.
13643         * modules/sys_stat (Makefile.am): Substitute them.
13644         * lib/sys_stat.in.h (mknod): Declare replacement.
13645         * MODULES.html.sh (Support for systems lacking POSIX:2008):
13646         Document it.
13647         * doc/posix-functions/mknod.texi (mknod): Likewise.
13648         * modules/mknod-tests: New test.
13649         * tests/test-mknod.c: Likewise.
13650
13651         mkfifo: new module
13652         * modules/mkfifo: New file.
13653         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
13654         * lib/mkfifo.c (mkfifo): Likewise.
13655         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
13656         defaults.
13657         * modules/sys_stat (Makefile.am): Substitute them.
13658         * lib/sys_stat.in.h (mkfifo): Declare replacement.
13659         * MODULES.html.sh (Support for systems lacking POSIX:2008):
13660         Document it.
13661         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
13662         * modules/mkfifo-tests: New test.
13663         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
13664         from test-mkfifoat.c.
13665         * tests/test-mkfifo.c: New file.
13666
13667         readlink: detect FreeBSD bug
13668         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
13669         slash on symlink.
13670         * doc/posix-functions/readlink.texi (readlink): Document the bug.
13671         * tests/test-readlink.h (test_readlink): Enhance test.
13672
13673         symlink: detect FreeBSD bug
13674         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
13675         slash on symlink.
13676         * doc/posix-functions/symlink.texi (symlink): Document the bug.
13677         * tests/test-symlink.h (test_symlink): Enhance test.
13678
13679 2009-11-10  Eric Blake  <ebb9@byu.net>
13680
13681         link: detect FreeBSD bug
13682         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
13683         symlink.
13684         * doc/posix-functions/link.texi (link): Document the bug.
13685         * tests/test-link.h (test_link): Enhance test.
13686         * tests/test-linkat.c (main): Update caller.
13687
13688         unlink, remove: detect FreeBSD bug
13689         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
13690         slash on symlink.
13691         * doc/posix-functions/unlink.texi (unlink): Document the bug.
13692         * doc/posix-functions/remove.texi (remove): Likewise.
13693         * tests/test-unlink.h (test_unlink): Enhance test.
13694         * tests/test-remove.c (main): Likewise.
13695
13696 2009-11-09  Eric Blake  <ebb9@byu.net>
13697
13698         rename: detect FreeBSD bug
13699         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
13700         slash on symlink.
13701         * modules/renameat-tests (Depends-on): Add filenamecat.
13702         * tests/test-rename.h (test_rename): Allow one more errno.
13703         * tests/test-renameat.c (main): Likewise.
13704         * doc/posix-functions/rename.texi (rename): Document the bug.
13705
13706         open: detect FreeBSD bug
13707         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
13708         symlink.
13709         * doc/posix-functions/open.texi (open): Document the bug.
13710         * doc/posix-functions/utimes.texi (utimes): Likewise.
13711         * tests/test-open.h (test_open): Add parameters, and test symlink
13712         handling.
13713         * tests/test-open.c (main): Adjust caller.
13714         * tests/test-fcntl-safer.c (main): Likewise.
13715         * modules/open-tests (Depends-on): Add stdbool, symlink.
13716         * modules/fcntl-safer-tests (Depends-on): Likewise.
13717         * tests/test-openat.c (main): Add test-open tests.
13718
13719         stat: detect FreeBSD bug
13720         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
13721         symlink.
13722         * doc/posix-functions/stat.texi (stat): Document the bug.
13723         * tests/test-stat.h (test_stat_func): Add argument.
13724         * tests/test-stat.c (main): Adjust caller.
13725         * tests/test-fstatat.c (main): Likewise.
13726         * modules/stat-tests (Depends-on): Add stdbool, symlink.
13727         Reported by Jim Meyering.
13728
13729 2009-11-09  James Youngman  <jay@gnu.org>
13730
13731         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
13732         * lib/strftime.c: Correct placement of #include "ignore-value.h".
13733
13734 2009-11-08  Jim Meyering  <meyering@redhat.com>
13735
13736         utimens: remove invalid futimesat call
13737         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
13738         It used the file descriptor of the target file as the DIR_FD
13739         parameter and NULL as the file name.  That caused failure with
13740         errno == EFAULT on FreeBSD-8.0-rc2
13741
13742 2009-11-07  Eric Blake  <ebb9@byu.net>
13743
13744         fflush, freadseek: use fseeko, not fseek
13745         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
13746         (clear_ungetc_buffer): Avoid potential problems on large files.
13747         * lib/freadseek.c (freadseek): Likewise.
13748         * modules/freadseek (Depends-on): Add fseeko.
13749         * modules/fseek (configure.ac): Set a witness.
13750         * tests/test-fflush.c (main): Use fseeko.
13751         * tests/test-fpurge.c (fseek): Disable link warning.
13752         * tests/test-freadable.c (fseek): Likewise.
13753         * tests/test-freading.c (fseek): Likewise.
13754         * tests/test-fseeko.c (fseek): Likewise.
13755         * tests/test-ftell.c (fseek): Likewise.
13756         * tests/test-ftello.c (fseek): Likewise.
13757         * tests/test-fwritable.c (fseek): Likewise.
13758         * tests/test-fwriting.c (fseek): Likewise.
13759
13760 2009-11-06  Simon Josefsson  <simon@josefsson.org>
13761
13762         * modules/memchr (Depends-on): Drop getpagesize dependency.
13763
13764 2009-11-06  Simon Josefsson  <simon@josefsson.org>
13765
13766         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
13767         Reported by Ludovic Courtès.
13768         * build-aux/pmccabe2html: Improve example usage.
13769         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
13770
13771 2009-11-06  Jim Meyering  <meyering@redhat.com>
13772
13773         do-release-commit-and-tag: New module.
13774         Automate the release-commit and tag process.
13775         * build-aux/do-release-commit-and-tag: New script, from coreutils.
13776         * modules/do-release-commit-and-tag: New file.
13777         * MODULES.html.sh (Support for maintaining and releasing): Add it.
13778
13779 2009-11-06  Simon Josefsson  <simon@josefsson.org>
13780
13781         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
13782         because test-select.c uses inet_pton.
13783
13784 2009-11-06  Simon Josefsson  <simon@josefsson.org>
13785
13786         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
13787         GETADDRINFO_LIB.  Bump serial number.
13788         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
13789         Suggested by Eric Blake <ebb9@byu.net>.
13790
13791 2009-11-05  Eric Blake  <ebb9@byu.net>
13792
13793         strtod: detect darwin bug
13794         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
13795         Reported by Leo Davis.
13796
13797         freopen-safer: new module
13798         * modules/freopen-safer: New module.
13799         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
13800         * lib/freopen-safer.c (freopen_safer): New file.
13801         * lib/stdio-safer.h (freopen_safer): New declaration.
13802         * lib/stdio--.h (freopen): New override.
13803         * MODULES.html.sh (File stream based Input/Output): Mention it.
13804         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
13805         freopen-safer module.
13806         * doc/posix-functions/stderr.texi (stderr): Likewise.
13807         * doc/posix-functions/stdin.texi (stdin): Likewise.
13808         * doc/posix-functions/stdout.texi (stdout): Likewise.
13809         * modules/freopen-safer-tests: New test.
13810         * tests/test-reopen-safer.c: New file.
13811
13812 2009-11-05  Jim Meyering  <meyering@redhat.com>
13813
13814         maint.mk: Prohibit inclusion of "close-stream.h" without use.
13815         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
13816
13817 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13818
13819         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
13820
13821 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13822
13823         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
13824
13825 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13826
13827         Fix link error.
13828         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
13829         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
13830
13831 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13832
13833         * tests/test-func.c: Also test value of __func__.
13834
13835 2009-11-05  Simon Josefsson  <simon@josefsson.org>
13836
13837         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
13838         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
13839
13840 2009-11-05  Bruno Haible  <bruno@clisp.org>
13841
13842         Fix link error.
13843         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
13844         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
13845         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
13846
13847 2009-11-05  Bruno Haible  <bruno@clisp.org>
13848
13849         Tests for module 'inet_pton'.
13850         * modules/inet_pton-tests: New file.
13851         * tests/test-inet_pton.c: New file.
13852
13853 2009-11-05  Bruno Haible  <bruno@clisp.org>
13854
13855         Tests for module 'inet_ntop'.
13856         * modules/inet_ntop-tests: New file.
13857         * tests/test-inet_ntop.c: New file.
13858
13859 2009-11-04  Eric Blake  <ebb9@byu.net>
13860
13861         stdlib-safer: wrap all mkstemp variants
13862         * modules/mkostemp (configure.ac): Set witness.
13863         * modules/mkostemps (configure.ac): Likewise.
13864         * modules/mkstemps (configure.ac): Likewise.
13865         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
13866         (mkstemps_safer): Wrap more functions.
13867         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
13868         wrapping.
13869         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
13870         (mkstemps_safer): Implement the wrappers.
13871
13872         mkstemps, mkostemps: new modules
13873         * modules/mkostemps: New module.
13874         * modules/mkstemps: Likewise.
13875         * lib/mkostemps.c (mkostemps): New file.
13876         * lib/mkstemps.c (mkstemps): Likewise.
13877         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
13878         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
13879         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
13880         * modules/stdlib (Makefile.am): Substitute them.
13881         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
13882         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
13883         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
13884         * doc/gnulib.texi (Glibc stdlib.h): Include them.
13885         * MODULES.html.sh (File system functions): Mention them.
13886
13887         tempname: resync from glibc
13888         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
13889         same values for __GT_FILE as glibc.  Abort even when assertions
13890         are disabled.
13891         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
13892         match its value otherwise.  Allow idempotent inclusion.
13893         * lib/mkdtemp.c (mkdtemp): Adjust caller.
13894         * lib/mkostemp.c (mkostemp): Likewise.
13895         * lib/mkstemp.c (mkstemp): Likewise.
13896         * lib/tmpfile.c (tmpfile): Likewise.
13897         * NEWS: Document this.
13898
13899         utimens: fix use of futimens on older Linux
13900         * lib/utimens.c (fdutimens): Use updated, rather than original,
13901         timespec to avoid bug in older Linux kernel.
13902         Reported by Simon Josefsson.
13903
13904 2009-11-04  Bruno Haible  <bruno@clisp.org>
13905
13906         Make num_processors more flexible and consistent.
13907         * lib/nproc.h (enum nproc_query): New type.
13908         (num_processors): Add a 'query' argument.
13909         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
13910         (num_processors): Add a 'query' argument. Test the value of the
13911         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
13912         mingw, count the number of CPUs available for the current process.
13913         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
13914         Check for sched_getaffinity and sched_getaffinity_np.
13915         * modules/nproc (Depends-on): Add c-ctype, extensions.
13916         * NEWS: Mention the change.
13917
13918 2009-11-03  Bruno Haible  <bruno@clisp.org>
13919
13920         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
13921
13922 2009-11-03  Jim Meyering  <meyering@redhat.com>
13923
13924         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
13925         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
13926         if it is defined.
13927
13928 2009-11-02  Eric Blake  <ebb9@byu.net>
13929
13930         mktime, timegm: share common declaration
13931         * lib/mktime-internal.h: New file.
13932         * lib/mktime.c: Use it rather than open-coding a declaration.
13933         * lib/timegm.c: Likewise.
13934         * modules/mktime (Files): Ship it.
13935         * modules/timegm (Files): Likewise.
13936         Suggested by Bruno Haible.
13937
13938         test-update-copyright: update test to match script changes
13939         * tests/test-update-copyright.sh: Avoid hard-coding perl
13940         location.  Don't update *.bak created by earlier runs.
13941
13942 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
13943             Simon Josefsson  <simon@josefsson.org>
13944             Bruno Haible  <bruno@clisp.org>
13945
13946         Fix link error on Solaris 8.
13947         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
13948         also in libnsl. Define also INET_PTON_LIB.
13949         * modules/inet_pton (Link): New section.
13950
13951 2009-11-02  Simon Josefsson  <simon@josefsson.org>
13952             Bruno Haible  <bruno@clisp.org>
13953
13954         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
13955         * modules/inet_ntop (Link): New section.
13956         Reported by Boyan Kasarov <bkasarov@gmail.com>.
13957
13958 2009-11-02  Eric Blake  <ebb9@byu.net>
13959
13960         maint: avoid compiler warnings in m4 macros
13961         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
13962         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
13963
13964 2009-11-02  Simon Josefsson  <simon@josefsson.org>
13965
13966         * m4/pmccabe2html.m4: Remove file.
13967         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
13968         function.  Change maintainer.
13969         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
13970         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
13971         Courtès).
13972
13973 2009-10-31  Eric Blake  <ebb9@byu.net>
13974
13975         fseeko: fix m4 regression
13976         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
13977         regression from 2009-10-27.
13978         Reported by Ralf Wildenhues.
13979
13980 2009-10-31  Jim Meyering  <meyering@redhat.com>
13981
13982         inttostr: aesthetics and improved (compile-time) safety
13983         Define inttype_is_signed rather than inttype_is_unsigned,
13984         since the sole use is via "#if inttype_is_signed".
13985         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
13986         inttype_is_unsigned.
13987         * lib/offtostr.c (inttype_is_signed): Likewise.
13988         * lib/uinttostr.c (inttype_is_signed): Likewise.
13989         * lib/umaxtostr.c (inttype_is_signed): Likewise.
13990         * lib/inttostr.c (inttostr): Use verify to cross-check the
13991         inttype_is_signed value and the signedness of the actual type.
13992         * modules/inttostr (Depends-on): Add verify.
13993
13994 2009-10-30  Eric Blake  <ebb9@byu.net>
13995
13996         build: avoid compiler warnings
13997         * lib/fchmodat.c (lchmod): Mark unused variables.
13998         * lib/getopt.c (_getopt_initialize): Likewise.
13999         * lib/mktime.c (__mktime_internal): Provide prototype.
14000         * lib/inttostr.c (inttostr): Avoid compiler warning even with
14001         older gcc that do not understand #pragma GCC diagnostic.
14002         * lib/uinttostr.c (inttype_is_unsigned): Define.
14003         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
14004
14005 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
14006
14007         stat: fix compilation on AIX
14008         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
14009         only see struct stat64.
14010
14011 2009-10-30  Eric Blake  <ebb9@byu.net>
14012
14013         exclude: make more robust
14014         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
14015         rather than masking a coding bug.
14016         Suggested by Bruno Haible.
14017
14018 2009-10-30  Jim Meyering  <meyering@redhat.com>
14019
14020         perl scripts: remove #!/usr/bin/perl in favor of more portable...
14021         Rather than putting #!/usr/bin/perl on the first line,
14022         start with a variant of what's recommended by "man perlrun" that
14023         invokes the first "perl" program from your shell's search path.
14024         * build-aux/gitlog-to-changelog: Replace #!... as above.
14025         Add a "Local Variables" perl mode setting.
14026         Prompted by a patch from Ludovic Courtès.
14027         Improved by Eric Blake.
14028         * build-aux/useless-if-before-free: Likewise.
14029         * build-aux/announce-gen: Likewise.
14030         * build-aux/update-copyright: Likewise.
14031
14032 2009-10-29  Eric Blake  <ebb9@byu.net>
14033
14034         filenamecat-lgpl: adjust clients
14035         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
14036         filenamecat.
14037         * modules/renameat (Depends-on): Likewise.
14038
14039         filenamecat: split into filenamecat-lgpl
14040         * modules/filenamecat-lgpl: New module.
14041         * modules/filenamecat (Files): Move library-safe files into
14042         filenamecat-lgpl.
14043         (Depends-on): Add filenamecat-lgpl.
14044         (configure.ac): Declare witness.
14045         * lib/filenamecat.h (file_name_concat): Only declare when using
14046         GPL module.
14047         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
14048         Move...
14049         * lib/filenamecat-lgpl.c: ...into new file.
14050         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
14051         (gl_FILE_NAME_CONCAT): Use it.
14052         * MODULES.html.sh (File system functions): Mention new module.
14053
14054         argp: avoid memory leak
14055         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
14056         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
14057         base_name, since the latter malloc()s and can call exit().
14058         Leak introduced 2006-07-03.
14059
14060         dirname-lgpl: adjust clients that don't need full dirname
14061         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
14062         * modules/filenamecat (Depends-on): Likewise.
14063         * modules/linkat (Depends-on): Likewise.
14064         * modules/mkancesdirs (Depends-on): Likewise.
14065         * modules/mkdir (Depends-on): Likewise.
14066         * modules/openat (Depends-on): Likewise.
14067         * modules/savewd (Depends-on): Likewise.
14068         * modules/rename (Depends-on): Likewise.
14069         (License): Relax license.
14070         * modules/mkdir-tests (Depends-on): Drop progname.
14071         (Makefile.am): Delete unneeded LDADD.
14072         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
14073
14074         dirname: split into dirname-lgpl
14075         * modules/dirname-lgpl: New module.
14076         * modules/dirname (Files): Move library-safe files into
14077         dirname-lgpl.
14078         (Depends-on): Add dirname-lgpl.
14079         (configure.ac): Declare witness.
14080         * modules/double-slash-root (License): Relax license.
14081         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
14082         module.
14083         * lib/dirname.c (dir_len, mdir_name): Move...
14084         * lib/dirname-lgpl.c: ...into new file.
14085         * lib/basename.c (last_component, base_len): Move...
14086         * lib/basename-lgpl.c: ...into new file.
14087         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
14088         (gl_DIRNAME): Use it.
14089         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
14090         Mention new module.
14091         * modules/dirname-tests (Depends-on): Add progname.
14092         * tests/test-dirname.c (program_name): Delete.
14093
14094         mkdir: make safe for libraries
14095         * modules/mkdir (Depends-on): Drop xalloc.
14096         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
14097         exit.
14098
14099         tests: avoid some compiler warnings
14100         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
14101         literals.
14102         * tests/test-memchr.c (main): Avoid type mismatch.
14103         * tests/test-arpa_inet.c (main): Avoid unused parameters.
14104         * tests/test-base64.c (main): Likewise.
14105         * tests/test-getdelim.c (main): Likewise.
14106         * tests/test-gethostname.c (main): Likewise.
14107         * tests/test-getline.c (main): Likewise.
14108         * tests/test-netinet_in.c (main): Likewise.
14109         * tests/test-select.c (open_server_socket, main): Likewise.
14110         * tests/test-select-stdin.c (main): Likewise.
14111         * tests/test-sockets.c (main): Likewise.
14112         * tests/test-strsignal.c (main): Likewise.
14113         * tests/test-sys_select.c (main): Likewise.
14114         * tests/test-sys_socket.c (main): Likewise.
14115         * tests/test-u64.c (main): Likewise.
14116         * tests/test-xfprintf-posix.c (main): Likewise.
14117         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
14118
14119         sockets: avoid compiler warning
14120         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
14121
14122         maint: detect usage(1) and other suspicious exits
14123         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
14124
14125 2009-10-29  Jim Meyering  <meyering@redhat.com>
14126
14127         timespec: long-to-int truncation could make timespec_cmp malfunction
14128         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
14129         a multiple of 2^32 nanoseconds as no difference.
14130
14131 2009-10-28  Jim Meyering  <meyering@redhat.com>
14132
14133         fprintftime: wrap macro code argument in "do {...} while(0)"
14134         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
14135         cpy macro must be a statement that can be followed by a semicolon.
14136         Now that the else clause contains a comment and is hence longer
14137         than one line, I require curly braces.  That in turn requires
14138         that we wrap this code block in the standard do...while(0).
14139
14140         fprintftime: remove stray semicolon from previous change
14141         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
14142
14143         fprintftime: avoid a warning about ignored fwrite return value
14144         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
14145         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
14146         that is unsafe.
14147         * modules/fprintftime (Depends-on): Add ignore-value.
14148
14149         exclude: avoid an unwarranted warning
14150         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
14151
14152 2009-10-27  Eric Blake  <ebb9@byu.net>
14153
14154         fseek: avoid compilation failure when fflush is replaced
14155         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
14156         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
14157         module is in use.
14158         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
14159         module is not in use; since REPLACE_FSEEK worked otherwise.
14160         (GNULIB_FTELLO): Likewise for ftell.
14161         Reported by Ian Beckwith and others.
14162
14163 2009-10-27  Bruno Haible  <bruno@clisp.org>
14164
14165         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
14166         Reported by Jim Meyering.
14167
14168 2009-10-27  Jim Meyering  <jim@meyering.net>
14169             Bruno Haible  <bruno@clisp.org>
14170
14171         Avoid warning despite dropping the return value of fwrite.
14172         * lib/unicodeio.c: Include ignore-value.h.
14173         (fwrite_success_callback): Explicitly ignore fwrite's return value.
14174         * modules/unicodeio (Depends-on): Add ignore-value.
14175
14176 2009-10-26  Eric Blake  <ebb9@byu.net>
14177
14178         areadlinkat: fix fallback path
14179         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
14180         pointer and zero.
14181
14182 2009-10-22  Pádraig Brady  <P@draigBrady.com>
14183
14184         Use a better IO block size for modern systems
14185         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
14186         * lib/md2.c: Likewise.
14187         * lib/md4.c: Likewise.
14188         * lib/md5.c: Likewise.
14189         * lib/sha1.c: Likewise.
14190         * lib/sha256.c: Likewise.
14191         * lib/sha512.c: Likewise.
14192
14193 2009-10-22  Eric Blake  <ebb9@byu.net>
14194
14195         tests: avoid several compiler warnings
14196         * tests/test-getcwd.c (main): Avoid buffer underflow.
14197         * tests/test-getdate.c (main): String literals are not safe with
14198         putenv, so use setenv.  Declare unused argument.
14199         * modules/getdate-tests (Depends-on): Add setenv.
14200         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
14201         problems with string literals in char *.
14202         * tests/test-hash.c (main): Avoid shadowing declaration.
14203         (insert_new): Treat string literals as char const *.
14204         * tests/test-getopt.h (test_getopt): Likewise.
14205         (getopt_loop): Alter types to minimize casting elsewhere.
14206         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
14207         (test_getopt_long_posix): Likewise.
14208         (do_getopt_long): Add wrapper to minimize casting.
14209         * tests/test-atexit.c (clear_temp_file): Use void.
14210         * tests/test-areadlink-with-size.c (main): Declare unused
14211         arguments.
14212         * tests/test-areadlink.c (main): Likewise.
14213         * tests/test-areadlinkat-with-size.c (main): Likewise.
14214         * tests/test-areadlinkat.c (main): Likewise.
14215         * tests/test-canonicalize-lgpl.c (main): Likewise.
14216         * tests/test-canonicalize.c (main): Likewise.
14217         * tests/test-dirent-safer.c (main): Likewise.
14218         * tests/test-dirname.c (main): Likewise.
14219         * tests/test-dup2.c (main): Likewise.
14220         * tests/test-fchdir.c (main): Likewise.
14221         * tests/test-fcntl-h.c (main): Likewise.
14222         * tests/test-fcntl-safer.c (main): Likewise.
14223         * tests/test-fdopendir.c (main): Likewise.
14224         * tests/test-fdutimensat.c (main): Likewise.
14225         * tests/test-fflush.c (main): Likewise.
14226         * tests/test-filenamecat.c (main): Likewise.
14227         * tests/test-filevercmp.c (main): Likewise.
14228         * tests/test-fopen-safer.c (main): Likewise.
14229         * tests/test-fopen.c (main): Likewise.
14230         * tests/test-fpending.c (main): Likewise.
14231         * tests/test-fpurge.c (main): Likewise.
14232         * tests/test-freading.c (main): Likewise.
14233         * tests/test-fstatat.c (main): Likewise.
14234         * tests/test-fsync.c (main): Likewise.
14235         * tests/test-futimens.c (main): Likewise.
14236         * tests/test-getndelim2.c (main): Likewise.
14237         * tests/test-gettimeofday.c (main): Likewise.
14238         * tests/test-getopt.c (main): Likewise.
14239         * tests/test-i-ring.c (main): Likewise.
14240         * tests/test-inttypes.c (main): Likewise.
14241         * tests/test-link.c (main): Likewise.
14242         * tests/test-lstat.c (main): Likewise.
14243         * tests/test-math.c (main): Likewise.
14244         * tests/test-md5.c (main): Likewise.
14245         * tests/test-memchr2.c (main): Likewise.
14246         * tests/test-memrchr.c (main): Likewise.
14247         * tests/test-mkdir.c (main): Likewise.
14248         * tests/test-mkdirat.c (main): Likewise.
14249         * tests/test-mkfifoat.c (main): Likewise.
14250         * tests/test-open.c (main): Likewise.
14251         * tests/test-openat-safer.c (main): Likewise.
14252         * tests/test-openat.c (main): Likewise.
14253         * tests/test-quotearg.c (main): Likewise.
14254         * tests/test-rawmemchr.c (main): Likewise.
14255         * tests/test-readlink.c (main): Likewise.
14256         * tests/test-remove.c (main): Likewise.
14257         * tests/test-rename.c (main): Likewise.
14258         * tests/test-renameat.c (main): Likewise.
14259         * tests/test-rmdir.c (main): Likewise.
14260         * tests/test-sha1.c (main): Likewise.
14261         * tests/test-signal.c (main): Likewise.
14262         * tests/test-sigaction.c (main): Likewise.
14263         * tests/test-stat.c (main): Likewise.
14264         * tests/test-stat-time.c (main): Likewise.
14265         * tests/test-stddef.c (main): Likewise.
14266         * tests/test-stdint.c (main): Likewise.
14267         * tests/test-stdio.c (main): Likewise.
14268         * tests/test-stdlib.c (main): Likewise.
14269         * tests/test-strchrnul.c (main): Likewise.
14270         * tests/test-strerror.c (main): Likewise.
14271         * tests/test-string.c (main): Likewise.
14272         * tests/test-strtod.c (main): Likewise.
14273         * tests/test-strverscmp.c (main): Likewise.
14274         * tests/test-symlink.c (main): Likewise.
14275         * tests/test-symlinkat.c (main): Likewise.
14276         * tests/test-sys_stat.c (main): Likewise.
14277         * tests/test-sys_time.c (main): Likewise.
14278         * tests/test-time.c (main): Likewise.
14279         * tests/test-unistd.c (main): Likewise.
14280         * tests/test-unlink.c (main): Likewise.
14281         * tests/test-unlinkat.c (main): Likewise.
14282         * tests/test-utimens.c (main): Likewise.
14283         * tests/test-utimensat.c (main): Likewise.
14284         * tests/test-version-etc.c (main): Likewise.
14285         * tests/test-wchar.c (main): Likewise.
14286         * tests/test-wctype.c (main): Likewise.
14287         * tests/test-xprintf-posix.c (main): Likewise.
14288         * tests/test-posixtm.c (main): Likewise.
14289         (STREQ): Delete unused macro.
14290         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
14291         shadowed variables.
14292         * tests/test-memchr.c (main): Likewise.
14293
14294 2009-10-21  Eric Blake  <ebb9@byu.net>
14295
14296         areadlinkat: avoid failure on older glibc
14297         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
14298         rather than mis-comparing 0 against FUNC_RESULT of char*.
14299
14300 2009-10-21  Bruno Haible  <bruno@clisp.org>
14301
14302         * modules/stpncpy (License): Relicense under LGPLv2+.
14303         Reported by David Lutterkort <lutter@redhat.com>.
14304
14305 2009-10-20  Eric Blake  <ebb9@byu.net>
14306
14307         utimensat: work around Solaris 9 bug
14308         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
14309         has trailing slash bugs.
14310         * tests/test-lutimens.h (test_lutimens): Enhance test.
14311         * tests/test-utimens.h (test_utimens): Likewise.
14312         * doc/posix-functions/utime.texi (utime): Enhance documentation.
14313         * doc/posix-functions/utimes.texi (utimes): Likewise.
14314         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
14315         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
14316         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
14317         * doc/posix-functions/futimens.texi (futimens): Likewise.
14318
14319         fdutimensat: new module
14320         * modules/fdutimensat: New file.
14321         * lib/fdutimensat.c (fdutimensat): Likewise.
14322         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
14323         * MODULES.html.sh (File system functions): Mention module.
14324         * modules/fdutimensat-tests: New test.
14325         * tests/test-fdutimensat.c: Likewise.
14326
14327         doc: regenerate INSTALL
14328         * doc/INSTALL: Reflect recent autoconf update.
14329         * doc/INSTALL.ISO: Likewise.
14330         * doc/INSTALL.UTF-8: Likewise.
14331
14332 2009-10-20  Pádraig Brady  <P@draigBrady.com>
14333
14334         acl: warn if ACL support is not detected
14335         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
14336
14337 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
14338
14339         * lib/nproc.h: Add extern "C" block for C++.
14340
14341 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
14342             Bruno Haible  <bruno@clisp.org>
14343
14344         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
14345         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
14346         * doc/posix-functions/isalpha.texi: Likewise.
14347         * doc/posix-functions/isblank.texi: Likewise.
14348         * doc/posix-functions/iscntrl.texi: Likewise.
14349         * doc/posix-functions/isdigit.texi: Likewise.
14350         * doc/posix-functions/isgraph.texi: Likewise.
14351         * doc/posix-functions/islower.texi: Likewise.
14352         * doc/posix-functions/isprint.texi: Likewise.
14353         * doc/posix-functions/ispunct.texi: Likewise.
14354         * doc/posix-functions/isspace.texi: Likewise.
14355         * doc/posix-functions/isupper.texi: Likewise.
14356         * doc/posix-functions/isxdigit.texi: Likewise.
14357
14358 2009-10-18  Bruno Haible  <bruno@clisp.org>
14359
14360         Tests for module 'isblank'.
14361         * modules/isblank-tests: New file.
14362         * tests/test-isblank.c: New file.
14363
14364         New module 'isblank'.
14365         * lib/isblank.c: New file.
14366         * m4/isblank.m4: New file.
14367         * modules/isblank: New file.
14368         * doc/posix-functions/isblank.texi: Mention the new module.
14369
14370 2009-10-18  Bruno Haible  <bruno@clisp.org>
14371
14372         New module 'ctype'.
14373         * lib/ctype.in.h: New file.
14374         * m4/ctype.m4: New file.
14375         * modules/ctype: New file.
14376         * doc/posix-headers/ctype.texi: Mention the new module.
14377
14378 2009-10-18  Jim Meyering  <meyering@redhat.com>
14379
14380         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
14381         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
14382         right after its initialization, rather than farther down.
14383         Keeping these in close proximity makes it easier to ensure
14384         that each such variable is initialized.  E.g.,
14385
14386             LIB_CLOCK_GETTIME=
14387             AC_SUBST([LIB_CLOCK_GETTIME])
14388
14389         This change also increments these serial numbers.
14390         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
14391         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
14392         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14393
14394 2009-10-18  Bruno Haible  <bruno@clisp.org>
14395
14396         Don't let environment variables perturb build.
14397         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
14398         (gl_PREREQ_GETHRXTIME): ... not here.
14399
14400 2009-10-18  Bruno Haible  <bruno@clisp.org>
14401
14402         Avoid symlink attack in localcharset module.
14403         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
14404         (O_NOFOLLOW): Define fallback.
14405         (get_charset_aliases): Don't open the file if it is a symbolic link.
14406         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
14407         gl_FCNTL_H.
14408         (gl_FCNTL_H): Require it.
14409         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
14410         * modules/localcharset (Files): Add m4/fcntl_h.m4.
14411         Reported by Fergal Glynn <fglynn@veracode.com>.
14412
14413 2009-10-18  Bruno Haible  <bruno@clisp.org>
14414
14415         Implement nproc for mingw.
14416         * lib/nproc.c: Include <windows.h>
14417         (num_processors): On native Windows platforms, try GetSystemInfo.
14418
14419 2009-10-18  Bruno Haible  <bruno@clisp.org>
14420
14421         Implement nproc for IRIX.
14422         * lib/nproc.c: Include <sys/sysmp.h>.
14423         (num_processors): On IRIX systems, try sysmp.
14424         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
14425
14426 2009-10-18  Bruno Haible  <bruno@clisp.org>
14427
14428         Implement nproc for HP-UX.
14429         * lib/nproc.c: Include <sys/pstat.h>
14430         (num_processors): On HP-UX systems, try pstat_getdynamic.
14431         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
14432         pstat_getdynamic.
14433
14434 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
14435             Bruno Haible  <bruno@clisp.org>
14436
14437         Implement nproc for NetBSD, OpenBSD.
14438         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
14439         (ARRAY_SIZE): New macro.
14440         (num_processors): On BSD systems, try sysctl of HW_NCPU.
14441         * m4/nproc.m4: New file.
14442         * modules/nproc (Files): Add m4/nproc.m4.
14443         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
14444         (Makefile.am): Instead, augment lib_SOURCES.
14445
14446 2009-10-18  Bruno Haible  <bruno@clisp.org>
14447
14448         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
14449         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
14450         sys/param.h.
14451
14452 2009-10-16  Eric Blake  <ebb9@byu.net>
14453
14454         utimensat: new module
14455         * modules/utimensat: New file.
14456         * lib/utimensat.c (utimensat): Likewise.
14457         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
14458         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
14459         so we can work around Linux bugs.
14460         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
14461         * modules/sys_stat (Makefile.am): Substitute them.
14462         * lib/sys_stat.in.h (utimensat): Declare it.
14463         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14464         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
14465         * modules/utimensat-tests: New test.
14466         * tests/test-utimensat.c: Likewise.
14467
14468         utimens: let lutimens work on non-symlinks
14469         * lib/utimens.c (lutimens): Fall back to utimens rather than
14470         failing with ENOSYS, when file is not a symlink.
14471         (utimens): Reduce redirection.
14472         * tests/test-lutimens.h (test_lutimens): Update test to cover
14473         non-symlinks.
14474         * tests/test-utimens.h (test_utimens): Update test to cover
14475         symlinks.
14476         * tests/test-utimens.c (main): Update caller.
14477
14478         utimens: cache whether utimensat syscall works
14479         * lib/utimens.c (utimensat_works_really): New cache variable.
14480         (fdutimens, lutimens): Use it to avoid failing syscall.
14481
14482         test-stat-time, test-utimens: improve portability
14483         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
14484         ext4 on alpha, and for cygwin.
14485         * tests/test-utimens-common.h: New file.
14486         (nap): Factor delays into single function.
14487         * tests/test-lutimens.h (test_lutimens): Use new header.
14488         * tests/test-futimens.h (test_futimens): Likewise.
14489         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
14490         timestamps to occur from same machine, as was done previously for
14491         test_utimens.
14492         * modules/utimens-tests (Files): Ship new file.
14493         * modules/futimens-tests (Files): Likewise.
14494         Reported in part by Jim Meyering.
14495
14496         sys_stat: sort replacement declarations
14497         * lib/sys_stat.in.h: Sort declarations.
14498         * lib/futimens.c (futimens): Fix typo.
14499
14500 2009-10-15  Jim Meyering  <meyering@redhat.com>
14501
14502         don't let environment settings perturb build
14503         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
14504         could cause a configure-time and/or build-time malfunction.
14505         Typically, a configure-time function-in-library test is performed
14506         via code like this:
14507
14508           LIB_VAR=
14509           AC_SUBST([LIB_VAR])
14510           prefix_saved_LIBS=$LIBS
14511             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
14512                        [test "$ac_cv_search_FUNC" = "none required" ||
14513                         LIB_VAR=$ac_cv_search_FUNC])
14514           LIBS=$prefix_saved_LIBS
14515
14516         However, in each of the files affected by this change, the LIB_VAR=
14517         initialization was omitted.  Thus, when set in the environment, its
14518         value would propagate into generated Makefiles when FUNC is not found
14519         in LIB_NAME.
14520         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
14521         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
14522         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14523
14524 2009-10-14  Eric Blake  <ebb9@byu.net>
14525
14526         fchdir: avoid infinite recursion in mingw
14527         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
14528         recursing.
14529
14530         test-stat-time: port to mingw
14531         * tests/test-stat-time.c (force_unlink): Return a value.
14532         (test_ctime) [W32]: Fix compilation error.
14533         (nap): Don't call usleep with too large an argument.  Use
14534         force_unlink.
14535         * doc/pastposix-functions/usleep.texi (usleep): Document the
14536         portability issue.
14537
14538 2009-10-13  Jim Meyering  <meyering@redhat.com>
14539
14540         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
14541         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
14542         * modules/pipe-filter-ii: Likewise.
14543         * modules/sys_socket-tests: Likewise.
14544         * modules/tsearch-tests: Likewise.
14545         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
14546         (check): Depend on it.
14547
14548 2009-10-12  Eric Blake  <ebb9@byu.net>
14549
14550         utimens-tests: port to NFS file systems
14551         * tests/test-utimens.h (test_utimens): Refactor utimecmp
14552         comparisons to avoid spurious failures from timestamp drift
14553         between NFS machines.
14554
14555 2009-10-12  Eric Blake  <ebb9@byu.net>
14556
14557         stat-time-tests: minor cleanups
14558         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
14559         * tests/test-stat-time.c (nap): Separate assignment from call.
14560         Suggested by Paolo Bonzini and Bruno Haible.
14561
14562         sys_stat: guarantee struct timespec
14563         * lib/sys_stat.in.h (includes): Always include <time.h>
14564         * modules/sys_stat (Depends-on): Add time.
14565         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
14566         mode_t permission values.
14567         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
14568         get at subsecond timestamps.
14569
14570 2009-10-10  Eric Blake  <ebb9@byu.net>
14571
14572         futimens: new module
14573         * modules/futimens: New file.
14574         * lib/futimens.c (futimens): Likewise.
14575         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
14576         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
14577         we can work around Linux bugs.
14578         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
14579         * modules/sys_stat (Makefile.am): Substitute them.
14580         * lib/sys_stat.in.h (futimens): Declare it.
14581         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
14582         * doc/posix-functions/futimens.texi (futimens): Likewise.
14583         * modules/futimens-tests: New test.
14584         * tests/test-futimens.c: Likewise.
14585
14586         utimens: introduce fdutimens
14587         * lib/utimens.h (fdutimens): New prototype.
14588         * lib/utimens.c (gl_futimens): Move guts...
14589         (fdutimens): ...to new interface.
14590         * tests/test-utimens.c (do_fdutimens): Use it.
14591
14592         utimens: add UTIME_NOW and UTIME_OMIT support
14593         * lib/utimens.c (validate_timespec, update_timespec): New helper
14594         functions.
14595         (gl_futimens, lutimens): Use them.
14596         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
14597         stdbool, sys_stat.
14598         (Link): Mention resulting library dependency.
14599         * modules/utimecmp (Link): Likewise.
14600         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
14601         (Makefile.am): Pick up library dependency.
14602         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
14603         definition.
14604         * tests/test-sys_stat.c: Test the definitions.
14605         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
14606         * NEWS: Document library dependency.
14607
14608         utimecmp: support symlink timestamps
14609         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
14610         hashing when possible.  Use pathconf when available.
14611         (SYSCALL_RESOLUTION): Recognize tighter resolution.
14612         * modules/utimecmp (Depends-on): Add lstat.
14613
14614         utimens: add lutimens interface
14615         * lib/utimens.c (lutimens): New function.
14616         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
14617         * lib/utimens.h (lutimens): Declare new interface.
14618         * tests/test-utimens.c (main): Enhance test.
14619         * tests/test-lutimens.h (test_lutimens): New file.
14620         * modules/utimens-tests (Files): Distribute it.
14621         (Depends-on): Add symlink.
14622         (configure.ac): Check for usleep.
14623
14624         utimens: validate futimens usage
14625         * lib/utimens.c (gl_futimens): Require valid fd up front, using
14626         fewer syscalls on failure later on.  Avoid compiler warning on
14627         mingw.
14628         * modules/utimens (Depends-on): Add dup2.
14629
14630         utimens: add test
14631         * modules/utimens-tests: New test.
14632         * tests/test-utimens.h: New file.
14633         * tests/test-futimens.h: Likewise.
14634         * tests/test-utimens.c: Likewise.
14635
14636         doc: mention timestamp portability issues
14637         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
14638         instead.
14639         * doc/posix-functions/utime.texi (utime): Likewise.
14640         * doc/posix-functions/utimes.texi (utimes): Likewise.
14641         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
14642         instead.
14643         * doc/posix-functions/futimens.texi (futimens): Mention utimens
14644         module.
14645         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
14646         Mention weakness with symlink timestamps.
14647         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
14648         to utimensat/futimens instead.
14649         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
14650
14651         test-dup2: enhance test
14652         * tests/test-dup2.c (main): Also check AT_FDCWD.
14653
14654         test-stat-time: avoid more spurious failures
14655         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
14656         xfs; and avoid race if the two timestamps cross quantization edge.
14657
14658         relocatable: prefer 'file system' over 'filesystem'
14659         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
14660         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
14661         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
14662         * doc/relocatable.texi (Enabling Relocatability): Likewise.
14663         * lib/relocatable.c (compute_curr_prefix): Likewise.
14664
14665 2009-10-10  Jim Meyering  <meyering@redhat.com>
14666
14667         stat-time-tests: check for the usleep function
14668         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
14669
14670 2009-10-10  Bruno Haible  <bruno@clisp.org>
14671
14672         * modules/xnanosleep: Put the Link section after the Include section.
14673
14674 2009-10-09  Eric Blake  <ebb9@byu.net>
14675
14676         dup2: work around FreeBSD 6.1 bug
14677         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
14678         * doc/posix-functions/dup2.texi (dup2): Document it.
14679         Reported by Nelson H. F. Beebe and Jim Meyering.
14680
14681         test-stat-time: port to buggy NFS clients
14682         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
14683         (test_ctime): Also skip test if mtime and ctime are skewed.
14684
14685         maint: prefer 'file system' over 'filesystem'
14686         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
14687         * doc/posix-functions/lstat.texi (lstat): Likewise.
14688         * lib/file-has-acl.c (file_has_acl): Likewise.
14689         * lib/fwriteerror.c [TEST]: Likewise.
14690         * tests/test-areadlink.h (test_areadlink): Likewise.
14691         * tests/test-areadlinkat-with-size.c (main): Likewise.
14692         * tests/test-areadlinkat.c (main): Likewise.
14693         * tests/test-canonicalize-lgpl.c (main): Likewise.
14694         * tests/test-canonicalize.c (main): Likewise.
14695         * tests/test-fstatat.c (main): Likewise.
14696         * tests/test-linkat.c (main): Likewise.
14697         * tests/test-lstat.h (test_lstat_func): Likewise.
14698         * tests/test-mkdir.h (test_mkdir): Likewise.
14699         * tests/test-readlink.h (test_readlink): Likewise.
14700         * tests/test-remove.c (main): Likewise.
14701         * tests/test-rename.h (test_rename): Likewise.
14702         * tests/test-renameat.c (main): Likewise.
14703         * tests/test-rmdir.h (test_rmdir_func): Likewise.
14704         * tests/test-symlink.h (test_symlink): Likewise.
14705         * tests/test-symlinkat.c (main): Likewise.
14706         * tests/test-unlink.h (test_unlink_func): Likewise.
14707         * tests/test-unlinkat.c (main): Likewise.
14708
14709         maint: make realtime library usage explicit
14710         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
14711         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
14712         * modules/settime (Link): Likewise.
14713         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
14714
14715         test-stat-time: speed up execution
14716         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
14717         warning on mingw.
14718         (nap): New helper function.
14719         (prepare_test): Use it to reduce sleep time.
14720         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
14721         execution.
14722         * modules/stat-time-tests (configure.ac): Check for usleep.
14723
14724 2009-10-09  Jim Meyering  <meyering@redhat.com>
14725
14726         selinux-h: always use getfilecon wrappers
14727         * lib/getfilecon.c: New file.
14728         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
14729         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
14730         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
14731         (fgetfilecon): Provide a stub.
14732         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
14733         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
14734         file unconditionally.
14735         When <selinux/selinux.h> is found, arrange to use wrappers.
14736         * modules/selinux-h (Files): Add getfilecon.c.
14737         (Makefile.am): Substitute include-next-related bits
14738         into the now-always-generated selinux/selinux.h file.
14739         * doc/glibc-functions/lgetfilecon.texi: New file.
14740         * doc/glibc-functions/fgetfilecon.texi: New file.
14741         * doc/glibc-functions/getfilecon.texi: New file.
14742         * doc/glibc-functions/getfilecon-desc.texi: New file.
14743         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
14744         which to pull in the new files.
14745         * MODULES.html.sh (Misc): Add selinux-h.
14746
14747 2009-10-08  Jim Meyering  <meyering@redhat.com>
14748
14749         unistd: fix comment typo
14750         * lib/unistd.in.h (euidaccess): Fix a comment typo.
14751
14752 2009-10-08  Eric Blake  <ebb9@byu.net>
14753
14754         areadlink: use SIZE_MAX consistently
14755         * modules/areadlink (Depends-on): Add stdint.
14756         * modules/areadlink-with-size (Depends-on): Likewise.
14757         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
14758         gives NULL; drop sys/types, since unistd gives size_t; and add
14759         stdint for SIZE_MAX.
14760         (SIZE_MAX): Rely on headers.
14761         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
14762         and add stdint.
14763         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
14764         (SIZE_MAX): Likewise.
14765         (INITIAL_BUF_SIZE): Turn into enum.
14766         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
14767
14768 2009-10-08  Jim Meyering  <meyering@redhat.com>
14769
14770         areadlinkat: avoid compilation failure
14771         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
14772         Fix typo in comment.
14773
14774 2009-10-07  Eric Blake  <ebb9@byu.net>
14775
14776         areadlinkat-with-size: new module
14777         * modules/areadlinkat-with-size: New module.
14778         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
14779         * lib/areadlink.h (areadlinkat): Declare it.
14780         * MODULES.html.sh (File system functions): Mention it.
14781         * modules/areadlinkat-with-size-tests: New test.
14782         * tests/test-areadlinkat-with-size.c: New file.
14783
14784         xreadlinkat: new module
14785         * modules/xreadlinkat: New module.
14786         * lib/xreadlinkat.c (xreadlinkat): New file.
14787         * lib/xreadlink.h (xreadlinkat): Declare it.
14788         * MODULES.html.sh (File system functions): Mention it.
14789
14790         areadlinkat: new module
14791         * lib/at-func.c (FUNC_FAIL): New define.
14792         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
14793         * modules/areadlinkat: New module.
14794         * lib/linkat.c (areadlinkat): Move...
14795         * lib/areadlinkat.c (areadlinkat): ...to new file.
14796         * lib/areadlink.h (areadlinkat): Declare it.
14797         * modules/linkat (Depends-on): Add areadlinkat.
14798         * MODULES.html.sh (File system functions): Mention it.
14799         * modules/areadlinkat-tests: New test.
14800         * tests/test-areadlinkat.c: New file.
14801
14802         areadlink, areadlink-with-size: add tests
14803         * modules/areadlink-tests: New test.
14804         * modules/areadlink-with-size-tests: Likewise.
14805         * tests/test-areadlink.h: New file.
14806         * tests/test-areadlink.c: Likewise.
14807         * tests/test-areadlink-with-size.c: Likewise.
14808
14809         maint: minor cleanups
14810         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
14811         _UNUSED_PARAMETER_ instead.
14812         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
14813         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
14814         * modules/linkat-tests (Files): Distribute test-link.h.
14815
14816         openat, utimens: whitespace cleanup
14817         * lib/openat.c: Prefer space throughout, rather than mix of 8
14818         spaces vs. tabs.
14819         * lib/at-func.c: Likewise.
14820         * lib/utimens.c: Likewise.
14821
14822         openat: avoid using wrong fd
14823         * lib/openat.c (openat_permissive): Reject user's fd if saving the
14824         working directory chooses same fd.
14825         * lib/at-func.c (AT_FUNC_NAME): Likewise.
14826
14827         mkdir, mkdirat: fix cygwin 1.5.x bug
14828         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
14829         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
14830         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
14831         bug.
14832         (gl_PREREQ_MKDIR): Delete unused macro.
14833         * modules/mkdir (Files): Track file rename.
14834         (configure.ac): Update macro name.
14835         * modules/openat (Depends-on): Add mkdir.
14836         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
14837
14838         mkdir, mkdirat: add tests
14839         * modules/mkdir-tests: New test.
14840         * tests/test-mkdir.h: New file.
14841         * tests/test-mkdir.c: Likewise.
14842         * tests/test-mkdirat.c: Likewise.
14843         * modules/openat-tests (Files): Add new files.
14844         (Makefile.am): Run new test.
14845
14846 2009-10-06  Eric Blake  <ebb9@byu.net>
14847
14848         doc: tweak *at function documentation
14849         * doc/posix-functions/faccessat.texi (faccessat): Mention
14850         known issue with replacement.
14851         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
14852         * doc/posix-functions/linkat.texi (linkat): Likewise.
14853         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
14854         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
14855         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
14856         * doc/posix-functions/renameat.texi (renameat): Likewise.
14857         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
14858
14859         openat: fix GNU/Hurd bug in unlinkat
14860         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
14861         broken.
14862         * doc/posix-functions/unlink.texi (unlink): Document this.
14863         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
14864
14865         fdopendir: fix GNU/Hurd bug
14866         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
14867         allowing non-directory fds.
14868         * lib/fdopendir.c (rpl_fdopendir): Work around it.
14869         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
14870         * modules/dirent (Makefile.am): Substitute it.
14871         * lib/dirent.in.h (fdopendir): Declare replacement.
14872         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
14873         * tests/test-fdopendir.c (main): Test something other than
14874         /dev/null, since on Hurd that behaves like a directory.
14875
14876         test-symlink: port to GNU/Hurd
14877         * tests/test-symlink.h (test_symlink): Relax expected errno.
14878
14879         doc: tweak more cygwin information
14880         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
14881         now compatible with glibc.
14882         * doc/posix-functions/getopt.texi (getopt): Likewise.
14883
14884         getopt-gnu: add another test
14885         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
14886         guarantee behavior relied on by m4.
14887         * tests/test-getopt.c (main): Use it.
14888         * modules/getopt-posix-tests (Depends-on): Add setenv.
14889         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
14890
14891         getopt: fix compilation on darwin
14892         * lib/getopt.in.h (includes): Leave breadcrumbs during system
14893         include.
14894         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
14895         Reported by Ludovic Courtès.
14896
14897 2009-10-06  Bruno Haible  <bruno@clisp.org>
14898
14899         * modules/size_max (Description): Discourage its use.
14900         Reported by Simon Josefsson.
14901
14902 2009-10-06  Jim Meyering  <meyering@redhat.com>
14903
14904         linkat: avoid compilation failure
14905         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
14906
14907 2009-10-05  Eric Blake  <ebb9@byu.net>
14908
14909         linkat: support Linux 2.6.17
14910         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
14911         linkat on Linux, but allow cache variable override.
14912         * lib/linkat.c (rpl_linkat): Define override.
14913         * modules/linkat (Depends-on): Add symlinkat.
14914         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
14915         * modules/unistd (Makefile.am): Substitute it.
14916         * lib/unistd.in.h (linkat): Declare replacement.
14917         Reported by Pádraig Brady.
14918
14919         quotearg: port test to systems with C.UTF-8 locale
14920         * tests/test-quotearg.c (struct result_strings): Add another
14921         member, differentiating between C.ASCII and C.UTF-8 handling.
14922         (compare_strings): Add parameter.
14923         (main): Adjust all callers.
14924
14925         getopt: avoid clash with FreeBSD _getopt_internal
14926         * lib/getopt.in.h (_getopt_internal): Override the name.
14927         * lib/getopt_int.h (includes): Pick up any overrides.
14928         Reported by Reuben Thomas.
14929
14930         hash: allow C89 compilation
14931         * lib/hash.c (check_tuning): Move declaration before statement.
14932         Reported by Reuben Thomas.
14933
14934 2009-10-05  Karl Berry  <karl@gnu.org>
14935
14936         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
14937
14938 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
14939             Bruno Haible  <bruno@clisp.org>
14940
14941         * lib/uname.c (uname): Use a table-driven algorithm to compute
14942         Windows NT versions.
14943
14944 2009-10-04  Bruno Haible  <bruno@clisp.org>
14945
14946         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
14947         program_invocation_short_name.
14948         * modules/progname (configure.ac): Test for presence of
14949         program_invocation_short_name.
14950         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
14951
14952 2009-10-04  Bruno Haible  <bruno@clisp.org>
14953
14954         * lib/progname.c (set_program_name): Fix comment.
14955         Reported by Jim Meyering.
14956
14957 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
14958             Bruno Haible  <bruno@clisp.org>
14959
14960         * lib/uname.c: Include <string.h>.
14961         (uname): Do only one call to GetVersionEx in the common case.
14962
14963 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
14964             Bruno Haible  <bruno@clisp.org>
14965
14966         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
14967         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
14968         (uname): Add support for Windows CE and various non-x86 CPU types.
14969
14970 2009-10-03  Bruno Haible  <bruno@clisp.org>
14971
14972         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
14973         invocation to tests/configure.ac.
14974         Reported by Ian Beckwith <ianb@erislabs.net>.
14975
14976 2009-10-02  Eric Blake  <ebb9@byu.net>
14977
14978         fchdir: avoid compiler warning
14979         * lib/fchdir.c (canonicalize_file_name)
14980         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
14981
14982         test-open: support mingw errno values
14983         * tests/test-open.h (test_open): Relax test.
14984         * tests/test-fopen.h (test_fopen): Likewise.
14985         * tests/test-openat-safer.c (main): Likewise.
14986
14987         open: fix opening directory on mingw
14988         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
14989
14990         test-open: on GNU/Hurd, /dev/null is a directory
14991         * tests/test-fopen.h (main): Rename...
14992         (test_fopen): ...to this.  Use a guaranteed non-directory when
14993         confirming open behavior on trailing slash.
14994         * tests/test-openat-safer.c (main): Likewise.
14995         * tests/test-open.h (main): Likewise....
14996         (test_open): ...to this.
14997         * tests/test-fopen.c (main): Adjust caller.
14998         * tests/test-fopen-safer.c (main): Likewise.
14999         * tests/test-open.c (main): Likewise.
15000         * tests/test-fcntl-safer.c (main): Likewise.
15001         Reported by Samuel Thibault.
15002
15003         rename, fchdir: don't ignore chdir failure
15004         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
15005         * lib/rename.c (rpl_rename) [W32]: Likewise.
15006         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
15007         an empty destination directory if source cannot be renamed,
15008         although there is still possibility for failure.
15009         * doc/posix-functions/rename.texi (rename): Document the race.
15010         Reported by Jim Meyering.
15011
15012         maint: cleanup whitespace in recent commits
15013         * lib/rename.c (rpl_rename): Remove tabs.
15014         * tests/test-link.h (test_link): Likewise.
15015         * lib/fchdir.c (get_name): Likewise.
15016         Reported by Jim Meyering.
15017
15018 2009-10-02  Ben Pfaff  <blp@gnu.org>
15019
15020         relocatable-prog-wrapper: Add missing dependency on
15021         double-slash-root.
15022         * modules/relocatable-prog-wrapper: Add dependency.
15023         Reported by Ian Beckwith <ianb@erislabs.net>.
15024
15025 2009-10-02  Eric Blake  <ebb9@byu.net>
15026
15027         renameat: fix Solaris bugs
15028         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
15029         needed fixing.
15030         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
15031         * modules/stdio (Makefile.am): Substitute it.
15032         * lib/stdio.in.h (renameat): Declare replacement.
15033         * lib/renameat.c (rpl_renameat): Implement fix.
15034
15035         renameat: new module
15036         * modules/renameat: New file.
15037         * lib/renameat.c (renameat): Likewise.
15038         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
15039         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
15040         * modules/stdio (Makefile.am): Substitute them.
15041         * lib/stdio.in.h (renameat): Declare it.
15042         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15043         * doc/posix-functions/renameat.texi (renameat): Likewise.
15044         * modules/renameat-tests: New test.
15045         * tests/test-renameat.c: Likewise.
15046
15047         rename: fix mingw bugs
15048         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
15049         directory overwrite bugs.
15050
15051         rename: fix another cygwin 1.5 bug
15052         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
15053         checks.
15054         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
15055         unnecessary cygwin workarounds.  Also work around bug with moving
15056         full directory onto an empty one.
15057         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
15058
15059         rename-dest-slash: merge into rename module
15060         * modules/rename-dest-slash (Status): Mark obsolete.
15061         (Depends-on): Add rename.
15062         (Files): Let rename do it all.
15063         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
15064         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
15065         * m4/rename-dest-slash.m4: ...so this file can be deleted.
15066         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
15067         * lib/rename.c (rpl_rename): Update comments.
15068
15069         rename: fix cygwin 1.5.x bugs
15070         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
15071         * lib/rename.c (rpl_rename): Work around them.
15072         * modules/rename (Depends-on): Add same-inode.
15073
15074         rename: fix Solaris 10 bug
15075         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
15076         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
15077         was the only bug.
15078
15079         rename: fix Solaris 9 bug
15080         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
15081         on non-directory.  Avoid calling exit.
15082         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
15083         strdup.
15084         * modules/rename-tests (Depends-on): Drop lstat.
15085         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
15086         (gl_PREREQ_RENAME): Delete unused macro.
15087
15088         rename-dest-slash: fix NetBSD bug
15089         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
15090         links.
15091         * modules/rename-dest-slash (Depends-on): Add same-inode.
15092
15093         rename-tests: new test, exposes several platform bugs
15094         * modules/rename-tests: New file.
15095         * tests/test-rename.h: Likewise.
15096         * tests/test-rename.c: Likewise.
15097         * doc/posix-functions/rename.texi (rename): Improve documentation,
15098         including bugs that will eventually be fixed in gnulib.
15099
15100 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
15101
15102         * lib/uname.c: Include <stdlib.h>
15103         (uname): Assume version info is available.
15104
15105 2009-10-02  Jim Meyering  <meyering@redhat.com>
15106
15107         gnu-web-doc-update: correct --help output
15108         * build-aux/gnu-web-doc-update: Make --help output relevant.
15109
15110         gnu-web-doc-update: add standard options
15111         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
15112
15113         gnu-web-doc-update: New module.
15114         Use this script to automatically update the on-line web documentation
15115         for your GNU project at http://www.gnu.org/software/$pkg/manual/
15116         * modules/gnu-web-doc-update: New file, from coreutils.
15117         * build-aux/gnu-web-doc-update: New script.
15118
15119 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
15120
15121         link: LoadLibrary is not needed.
15122         * lib/link.c: Use GetModuleHandle.
15123
15124 2009-10-01  Eric Blake  <ebb9@byu.net>
15125
15126         getopt: bump serial number
15127         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
15128         change.
15129
15130         tests: tighten link, rmdir, and remove tests
15131         * tests/test-link.h (includes): No need to use <config.h> here.
15132         Clean up if directory hard link was created, otherwise test for
15133         trailing '.'.
15134         * tests/test-linkat.c (main): Simplify.
15135         * tests/test-remove.c (main): Enhance test for trailing '.'.
15136         * tests/test-rmdir.h (test_rmdir_func): Likewise.
15137
15138 2009-10-01  Jim Meyering  <meyering@redhat.com>
15139
15140         maint.mk: requiring "make major" was annoying, for a "minor" release.
15141         What is intended is "stable", to contrast with alpha and beta,
15142         so require "make stable", not "make major".
15143         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
15144         (get_tool_versions): Likewise.
15145         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
15146
15147 2009-09-30  Ben Pfaff  <blp@gnu.org>
15148
15149         Fix broken build of replacement for Windows tmpfile().
15150         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
15151         flags argument added along with the 'mkostemp' module.
15152
15153 2009-09-28  Bruno Haible  <bruno@clisp.org>
15154
15155         Avoid identifier clash with POSIX function 'remove' defined as a macro.
15156         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
15157         to 'remove_elt'.
15158         (gl_list_remove): Update.
15159         * lib/gl_list.c (gl_list_remove): Update.
15160         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
15161         to 'remove_elt'.
15162         (gl_oset_remove): Update.
15163         * lib/gl_list.c (gl_oset_remove): Update.
15164         Reported by Eric Blake.
15165
15166 2009-09-28  Eric Blake  <ebb9@byu.net>
15167
15168         doc: mention yet more cygwin 1.7 status
15169         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
15170         cygwin.
15171         * doc/glibc-functions/execvpe.texi (execvpe): New file.
15172         * doc/gnulib.texi (Glibc unistd.h): Mention it.
15173
15174         argp: fix test failure
15175         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
15176         that are not upper-case.  Pass correct range to tolower.
15177
15178 2009-09-27  Jim Meyering  <meyering@redhat.com>
15179
15180         test-yesno: work around sparc-dash here-document infelicity
15181         Without this change, the literal \177 byte in a here document
15182         would make dash 0.5.5.1-3 access uninitialized memory.
15183         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
15184         Instead, use a marker, "@", and filter through tr to create the desired
15185         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
15186
15187 2009-09-27  Bruno Haible  <bruno@clisp.org>
15188
15189         Disable untested support for new flavours of ACLs on AIX.
15190         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
15191         progress.
15192         * lib/set-mode-acl.c (qset_acl): Likewise.
15193
15194 2008-12-07  Bruno Haible  <bruno@clisp.org>
15195
15196         Add support for new flavours of ACLs on AIX. (Untested.)
15197         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
15198         (file_has_acl): Add support for newer AIX.
15199         * lib/set-mode-acl.c (qset_acl): Likewise.
15200         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
15201         Rainer Tammer <tammer@tammer.net>.
15202
15203 2009-09-26  Eric Blake  <ebb9@byu.net>
15204
15205         argp: fix compilation of getopt
15206         * lib/getopt.in.h (includes): Use different guard than glibc.
15207         Reported by Sergey Poznyakoff.
15208
15209         doc: mention more cygwin 1.7 status
15210         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
15211         bug.
15212         * doc/posix-functions/execl.texi (execl): Likewise.
15213         * doc/posix-functions/execle.texi (execle): Likewise.
15214         * doc/posix-functions/execlp.texi (execlp): Likewise.
15215         * doc/posix-functions/execv.texi (execv): Likewise.
15216         * doc/posix-functions/execve.texi (execve): Likewise.
15217         * doc/posix-functions/execvp.texi (execvp): Likewise.
15218         * doc/glibc-functions/canonicalize_file_name.texi
15219         (canonicalize_file_name): Cygwin 1.7 now provides this.
15220         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
15221         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
15222         on AT_SYMLINK_NOFOLLOW.
15223
15224 2009-09-24  Eric Blake  <ebb9@byu.net>
15225
15226         test-linkat: make test more robust
15227         * tests/test-linkat.c (main): Avoid collision with EEXIST.
15228
15229         getopt: fix inclusion guards for cygwin
15230         * modules/getopt-posix (Depends-on): Add include-next.
15231         (Makefile.am): Substitute more items in replacement header.
15232         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
15233         <getopt.h>.
15234         * lib/getopt.in.h (includes): Use split inclusion guard, and
15235         prefer <getopt.h> over include <unistd.h> when one is present.
15236         (option): Also override name of 'struct option'.
15237
15238         same-inode: revert prior change; it is not yet ready
15239         * NEWS: Undo mention of this change.
15240         * lib/same-inode.h (same-inode.h): Undo tri-state change.
15241         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
15242         * lib/cycle-check.c (cycle_check): Likewise.
15243         * lib/same.c (same_name): Likewise.
15244         * lib/at-func2.c (at_func2): Likewise.
15245
15246 2009-09-23  Eric Blake  <ebb9@byu.net>
15247
15248         linkat: new module
15249         * modules/linkat: New file.
15250         * lib/at-func2.c (at_func2): Likewise.
15251         * lib/linkat.c (linkat): Likewise.
15252         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
15253         * lib/openat-priv.h (at_func2): Add declaration.
15254         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
15255         * modules/unistd (Makefile.am): Substitute them.
15256         * lib/unistd.in.h (linkat): Declare it.
15257         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15258         * doc/posix-functions/linkat.texi (linkat): Likewise.
15259         * doc/posix-functions/link.texi (link): Tweak wording.
15260         * tests/test-link.c (main): Move guts...
15261         * tests/test-link.h (test_link): ...into new file.
15262         * modules/linkat-tests: New test.
15263         * tests/test-linkat.c: Likewise.
15264         * modules/link-tests (Files): Ship new file.
15265         (Depends-on): Add stdbool.
15266
15267         dirname: add library-safe mdir_name
15268         * lib/dirname.h (mdir_name): New prototype.
15269         * lib/dirname.c (dir_name): Move guts...
15270         (mdir_name): ...to new function that avoids xalloc_die.
15271
15272         fchdir: another mingw fix
15273         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
15274         * lib/fchdir.c (get_name): New helper method; skips canonicalize
15275         on mingw (where it has not yet been ported), and make it optional
15276         elsewhere.
15277         (_gl_register_fd): Use it.
15278
15279         same-inode: make SAME_INODE tri-state, to port to mingw
15280         * NEWS: Mention this change.
15281         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
15282         st_ino always being 0.
15283         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
15284         * lib/cycle-check.c (cycle_check): Likewise.
15285         * lib/same.c (same_name): Likewise.
15286
15287         lstat: avoid mingw compilation error
15288         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
15289         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
15290         lstat ourselves.
15291         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
15292         was adequate.
15293         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
15294         the checks for lstat.
15295         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
15296
15297         link: fix test failure on Solaris 9
15298         * lib/link.c (rpl_link): Don't assume link will catch bogus
15299         trailing slash on source.
15300
15301         test-symlinkat: enhance test
15302         * tests/test-readlink.c (main): Move guts...
15303         * tests/test-readlink.h (test_readlink): ...into new file.
15304         * tests/test-symlink.c (main): Move guts...
15305         * tests/test-symlink.h (test_symlink): ...into new file.
15306         * tests/test-symlinkat.c (main): Use new files for further
15307         coverage.
15308         (do_symlink, do_readlink): New helper functions.
15309         * modules/symlink-tests (Files): Ship new file.
15310         (Depends-on): Add stdbool.
15311         * modules/readlink-tests (Files): Ship new file.
15312         (Depends-on): Add stdbool.
15313         * modules/symlinkat-tests (Files): Use new files.
15314
15315 2009-09-23  Eric Blake  <ebb9@byu.net>
15316
15317         readlink: document portability issue with symlink length
15318         * doc/posix-functions/lstat.texi (lstat): Mention that some file
15319         systems have bogus st_size on symlinks, and mention the
15320         areadlink-with-size module.
15321         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
15322         * doc/posix-functions/readlink.texi (readlink): Mention the
15323         areadlink module, and ERANGE failure.
15324         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
15325         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
15326
15327         readlink: fix Solaris 9 bug with trailing slash
15328         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
15329         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
15330         * doc/posix-functions/readlink.texi (readlink): Document this.
15331         * modules/readlink-tests: New test.
15332         * tests/test-readlink.c: Likewise.
15333
15334         readlink: fix cygwin 1.5.x bug with return type
15335         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
15336         * lib/unistd.in.h (readlink): Use ssize_t.
15337         * lib/readlink.c (readlink): Likewise.
15338         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
15339         * modules/unistd (Makefile.am): Substitute it.
15340         * lib/unistd.in.h (readlink): Declare replacement.
15341         * doc/posix-functions/readlink.texi (readlink): Document this.
15342
15343         symlink: use throughout gnulib
15344         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
15345         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
15346         symlink is not used.
15347         * modules/symlinkat (Depends-on): Add symlink.
15348         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
15349         * modules/canonicalize-tests (Depends-on): Likewise.
15350         * modules/lstat-tests (Depends-on): Likewise.
15351         * modules/openat-tests (Depends-on): Likewise.
15352         * modules/remove-tests (Depends-on): Likewise.
15353         * modules/rmdir-tests (Depends-on): Likewise.
15354         * modules/unlink-tests (Depends-on): Likewise.
15355         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
15356         * tests/test-canonicalize.c (symlink): Likewise.
15357         * tests/test-fstatat.c (symlink): Likewise.
15358         * tests/test-lstat.c (symlink): Likewise.
15359         * tests/test-remove.c (symlink): Likewise.
15360         * tests/test-rmdir.c (symlink): Likewise.
15361         * tests/test-unlink.c (symlink): Likewise.
15362         * tests/test-unlinkat.c (symlink): Likewise.
15363
15364         symlink: new module, for Solaris 9 bug
15365         * modules/symlink: New file.
15366         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
15367         * lib/symlink.c: Likewise.
15368         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
15369         * modules/unistd (Makefile.am): Substitute them.
15370         * lib/unistd.in.h (symlink): Declare replacement.
15371         * MODULES.html.sh (File system functions): Mention it.
15372         * doc/posix-functions/symlink.texi (symlink): Likewise.
15373         * modules/symlink-tests: New test.
15374         * tests/test-symlink.c: Likewise.
15375
15376 2009-09-23  Bruno Haible  <bruno@clisp.org>
15377
15378         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
15379         when needed.
15380         Test case: gnulib-tool --import --with-tests atexit inttypes.
15381         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
15382
15383 2009-09-23  Bruno Haible  <bruno@clisp.org>
15384
15385         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
15386         subcommand, not in a subshell.
15387
15388 2009-09-22  Eric Blake  <ebb9@byu.net>
15389
15390         unistd: sort replacement declarations
15391         * lib/unistd.in.h: Sort declarations.
15392
15393         open, openat: minor optimization
15394         * lib/open.c (open): If open succeeded, len is non-zero.
15395         * lib/openat.c (rpl_openat): Likewise.
15396
15397         link-follow: ensure correct result
15398         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
15399         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
15400         distinguish between possible failures.
15401
15402 2009-09-21  Eric Blake  <ebb9@byu.net>
15403
15404         fts: avoid compiler warning
15405         * lib/fts.c (dirent_inode_sort_may_be_useful)
15406         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
15407
15408 2009-09-19  Bruno Haible  <bruno@clisp.org>
15409
15410         * lib/progreloc.c (canonicalize_file_name): New declaration.
15411
15412 2009-09-19  Eric Blake  <ebb9@byu.net>
15413
15414         link: fix quoting
15415         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
15416
15417         openat: fix openat bugs on Solaris 9
15418         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
15419         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
15420         * modules/openat (Depends-on): Add open.
15421         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
15422         * modules/fcntl-h (Makefile.am): Substitute it.
15423         * lib/fcntl.in.h (openat): Declare replacement.
15424         * doc/posix-functions/openat.texi (openat): Document this.
15425
15426         openat: move fstatat and unlinkat into correct files
15427         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
15428         compiled.
15429         * lib/openat.c (fstatat, unlinkat): Move...
15430         * lib/fstatat.c (fstatat): ...into correct files.
15431         * lib/unlinkat.c (unlinkat): Likewise.
15432
15433         openat: fix unlinkat bugs on Solaris 9
15434         * lib/unlinkat.c (unlinkat): New file.
15435         * modules/openat (Depends-on): Add unlink.
15436         (Files): Distribute it.
15437         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
15438         trailing slash behavior is broken.
15439         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
15440         * modules/unistd (Makefile.am): Substitute it.
15441         * lib/unistd.in.h (unlinkat): Declare replacement.
15442         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
15443
15444         openat: fix fstatat bugs on Solaris 9
15445         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
15446         stat.
15447         * doc/posix-functions/fstatat.texi (fstatat): Document this.
15448
15449         test-unlinkat: enhance test, to expose Solaris 9 bug
15450         * tests/test-unlink.c (main): Factor guts...
15451         * tests/test-unlink.h (test_rmdir_func): ...into new file.
15452         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
15453         * tests/test-rmdir.c (main): Adjust caller.
15454         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
15455         (unlinker): New helper function.
15456         (rmdirat): Enhance check.
15457         * modules/rmdir-tests (Depends-on): Add stdbool.
15458         * modules/unlink-tests (Depends-on): Likewise.
15459         (Files): Add test-unlink.h.
15460         * modules/openat-tests (Files): Likewise.
15461         (Depends-on): Add unlinkdir.
15462
15463         test-fstatat: new test, to expose Solaris 9 bugs
15464         * tests/test-stat.c (main): Factor guts...
15465         * tests/test-stat.h (test_stat_func): ...into new file.
15466         * tests/test-lstat.c (main): Factor guts...
15467         * tests/test-lstat.h (test_lstat_func): ...into new file.
15468         * tests/test-fstatat.c: New file.
15469         * modules/stat-tests (Files): Add test-stat.h.
15470         * modules/lstat-tests (Files): Add test-lstat.h.
15471         (Depends-on): Add stdbool.
15472         * modules/openat-tests (Depends-on): Add pathmax.
15473         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
15474         (Makefile.am): Run new test.
15475
15476         remove: new module, for mingw and Solaris 9 bugs
15477         * modules/remove: New file.
15478         * lib/remove.c: Likewise.
15479         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
15480         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
15481         * modules/stdio (Makefile.am): Use them.
15482         * lib/stdio.in.h (remove): Declare replacement.
15483         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15484         * doc/posix-functions/remove.texi (remove): Likewise.
15485         * modules/remove-tests: New test.
15486         * tests/test-remove.c: Likewise.
15487
15488         unlink: new module, for Solaris 9 bug
15489         * modules/unlink: New file.
15490         * lib/unlink.c: Likewise.
15491         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
15492         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
15493         * modules/unistd (Makefile.am): Use them.
15494         * lib/unistd.in.h (stat): Declare replacement.
15495         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15496         * doc/posix-functions/unlink.texi (unlink): Likewise.
15497         * modules/unlink-tests: New test.
15498         * tests/test-unlink.c: Likewise.
15499
15500         lstat: fix Solaris 9 bug
15501         * lib/lstat.c (lstat): Also check for trailing slash on
15502         non-symlink, non-directories.  Use stat module to simplify logic.
15503         * doc/posix-functions/lstat.texi (lstat): Document it.
15504         * modules/lstat-tests (Depends-on): Add errno, same-inode.
15505         (configure.ac): Check for symlink.
15506         * tests/test-lstat.c (main): Add more tests.
15507
15508         stat: add as dependency to other modules
15509         * modules/chown (Depends-on): Add stat.
15510         * modules/euidaccess (Depends-on): Likewise.
15511         * modules/fchdir (Depends-on): Likewise.
15512         * modules/isdir (Depends-on): Likewise.
15513         * modules/link (Depends-on): Likewise.
15514         * modules/lstat (Depends-on): Likewise.
15515         * modules/mkdir-p (Depends-on): Likewise.
15516         * modules/modechange (Depends-on): Likewise.
15517         * modules/open (Depends-on): Likewise.
15518         * modules/readlink (Depends-on): Likewise.
15519         * modules/same (Depends-on): Likewise.
15520
15521         stat: fix Solaris 9 bug
15522         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
15523         slash.
15524         * lib/stat.c (rpl_stat): Work around it.
15525         * doc/posix-functions/stat.texi (stat): Update documentation.
15526
15527         stat: new module, for mingw bug
15528         * modules/stat: New file.
15529         * lib/stat.c: Likewise.
15530         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
15531         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
15532         * modules/sys_stat (Makefile.am): Use them.
15533         * lib/sys_stat.in.h (stat): Declare replacement.
15534         * lib/openat.c (fstatat): Deal with lstat and stat being function
15535         macros.
15536         * modules/openat (Depends-on): Add inline.
15537         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
15538         * doc/posix-functions/stat.texi (stat): Likewise.
15539         * modules/stat-tests: New test.
15540         * tests/test-stat.c: Likewise.
15541
15542 2009-09-19  Jim Meyering  <meyering@redhat.com>
15543
15544         syntax-check: detect unnecessary inclusion of canonicalize.h
15545         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
15546
15547 2009-09-19  Eric Blake  <ebb9@byu.net>
15548
15549         canonicalize-lgpl: adjust clients to use correct header
15550         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
15551         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
15552         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
15553         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
15554         * lib/progreloc.c (includes): Likewise.
15555
15556 2009-09-19  Jim Meyering  <meyering@redhat.com>
15557
15558         test-posixtm.c: correct a comment
15559         * tests/test-posixtm.c: Correct first-line comment.
15560         Spotted by Eric Blake.
15561
15562 2009-09-16  Jim Meyering  <meyering@redhat.com>
15563
15564         posixtm-tests: make T const-correct; add a test case
15565         * tests/test-posixtm.c (T): Declare const.
15566         Add a test for -(2^31+1).
15567         Remove useless can-succeed-only-in-2002 test.
15568
15569         posixtm-tests: adjust the sole failing test
15570         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
15571         expected output matches what mktime now produces.  Cross-checked via
15572         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
15573
15574         posixtm: move #ifdef'd tests into a new module
15575         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
15576         * tests/test-posixtm.c: ... this new file.
15577         * modules/posixtm-tests: New module.
15578
15579 2009-09-19  Eric Blake  <ebb9@byu.net>
15580
15581         openat: simplify use of at-func.c
15582         * lib/at-func.c (includes): Include prerequisites here, to
15583         simplify requirements on client files.
15584         * lib/openat-priv.h: Add double-inclusion guard.
15585         * lib/faccessat.c (includes): Simplify.
15586         * lib/fchmodat.c (includes): Likewise.
15587         * lib/fchownat.c (includes): Likewise.
15588         * lib/mkdirat.c (includes): Likewise.
15589         * lib/mkfifoat.c (includes): Likewise.
15590         * lib/symlinkat.c (includes): Likewise.
15591
15592         openat: allow return of fd 0
15593         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
15594         * modules/save-cwd (Depends-on): Replace fcntl-safer with
15595         unistd-safer.
15596         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
15597         <fcntl.h>; this module does not leak fds.
15598         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
15599         must be allowed to return 0, leaving openat_safer to add the
15600         safety.
15601         (openat_permissive): Avoid writing to just-opened fd 2 if
15602         restoring the current directory fails.
15603         * lib/openat-die.c (openat_restore_fail): Add comment.
15604         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
15605         (save_cwd): Guarantee safe fd, but without use of open_safer.
15606         * tests/test-openat.c: New test.
15607         * modules/openat-tests (Files, Makefile.am): Distribute and build
15608         new file.
15609
15610         relocatable-prog-wrapper: fix build
15611         * modules/relocatable-prog-wrapper (Files): Update name of
15612         canonicalize m4 file, broken on 2009-09-17.
15613         Reported by emad hajjar <aleppos@hotmail.com>.
15614
15615 2009-09-19  Bruno Haible  <bruno@clisp.org>
15616
15617         * lib/safe-alloc.h: Use the standard header with GPL copyright.
15618         * lib/safe-alloc.c: Likewise.
15619         Reported by Ian Beckwith <ianb@erislabs.net>.
15620
15621 2009-09-18  Bruno Haible  <bruno@clisp.org>
15622
15623         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
15624         Reported by <erobles@sensacd.com.mx>.
15625
15626 2009-09-17  Eric Blake  <ebb9@byu.net>
15627
15628         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
15629         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
15630         slashes when checking if last component is missing.
15631         * tests/test-canonicalize.c (main): Test this.
15632
15633         canonicalize, canonicalize-lgpl: honor // if distinct from /
15634         * modules/canonicalize (Files): Add double-slash-root.m4.
15635         * modules/canonicalize-lgpl (Files): Likewise.
15636         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
15637         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
15638         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
15639         fallback definition.
15640         (canonicalize_filename_mode): Use it to protect //.
15641         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
15642         (__realpath): Likewise.
15643         * tests/test-canonicalize.c (main): Test this.
15644         * tests/test-canonicalize-lgpl.c (main): Likewise.
15645         * modules/canonicalize-tests (Depends-on): Add same-inode.
15646         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
15647
15648         canonicalize-lgpl: fix glibc bug with trailing slash
15649         * m4/canonicalize-lgpl.m4: Move contents...
15650         * m4/canonicalize.m4: ...here.
15651         (gl_CANONICALIZE_LGPL): Factor realpath check...
15652         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
15653         glibc 2.3.5 bug, fixed 2005-04-27.
15654         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
15655         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
15656         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
15657         * modules/canonicalize-lgpl (Files): Manage file rename.
15658         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
15659         * modules/stdlib (Makefile.am): Substitute witness.
15660         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
15661         is needed.
15662         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
15663         replacement is required.
15664         * lib/canonicalize.c (canonicalize_file_name): Likewise.
15665         * doc/glibc-functions/canonicalize_file_name.texi
15666         (canonicalize_file_name): Document this.
15667         * doc/posix-functions/realpath.texi (realpath): Likewise.
15668
15669         canonicalize-lgpl: reject non-directory with trailing slash
15670         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
15671         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
15672         catches failures in glibc 2.3.5.
15673         * tests/test-canonicalize.c (main): Likewise.
15674
15675         canonicalize-lgpl: use native realpath if it works
15676         * lib/canonicalize-lgpl.c (realpath): Guard with
15677         FUNC_REALPATH_WORKS.
15678         * lib/stdlib.in.h (realpath): Make declaration optional based on
15679         HAVE_REALPATH.
15680         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
15681         native realpath works.
15682         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
15683         * modules/stdlib (Makefile.am): Substitute witness.
15684
15685         canonicalize, canonicalize-lgpl: use <stdlib.h>
15686         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
15687         (Include): Mention <stdlib.h>.
15688         (configure.ac): Mention functions we provide.
15689         * modules/canonicalize (configure.ac): Likewise.
15690         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
15691         realpath if canonicalize_file_name is missing.
15692         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
15693         * modules/stdlib (Makefile.am): Substitute witnesses.
15694         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
15695         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
15696         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
15697         * NEWS: Document this.
15698         * doc/glibc-functions/canonicalize_file_name.texi
15699         (canonicalize_file_name): Likewise.
15700         * doc/posix-functions/realpath.texi (realpath): Likewise.
15701         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
15702
15703         test-canonicalize: consolidate into single C program
15704         * tests/test-canonicalize.sh: Delete; move setup into...
15705         * tests/test-canonicalize.c (main): ...the program, making it
15706         easier to run in debugger.  Add some tests.
15707         * modules/canonicalize-tests (Files): Remove unused file.
15708         (Depends-on): Add progname.
15709         (configure.ac, Makefile.am): Simplify.
15710
15711         test-canonicalize-lgpl: consolidate into single C program
15712         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
15713         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
15714         easier to run in debugger.  Add some tests.
15715         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
15716         (configure.ac, Makefile.am): Simplify.
15717
15718         canonicalize: avoid resolvepath
15719         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
15720         unnecessary checks.
15721         * lib/canonicalize.c (includes): Simplify.
15722         (canonicalize_file_name): Drop resolvepath implementation.
15723         * modules/canonicalize (Depends-on): Drop filenamecat.
15724
15725         canonicalize: don't lose errno
15726         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
15727         over calls to free.
15728
15729         canonicalize: simplify errno handling
15730         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
15731         assignment.
15732
15733         canonicalize, canonicalize-lgpl: update module dependencies
15734         * modules/canonicalize (Depends-on): Add extensions, lstat,
15735         pathmax, stdlib.
15736         (Files): Drop pathmax.h.
15737         (configure.ac): Adjust macro name.
15738         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
15739         lstat, stdlib, sys_stat.
15740         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
15741         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
15742         extensions.
15743         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
15744         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
15745         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
15746         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
15747         declaration, if available.
15748         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
15749         we can rely on the readlink module.
15750         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
15751         (includes): Use <unistd.h> unconditionally.
15752
15753 2009-09-17  Eric Blake  <ebb9@byu.net>
15754
15755         maint: make Include sections of modules consistent
15756         * modules/alloca: Use only header name; no need to list #include.
15757         * modules/alloca-opt: Likewise.
15758         * modules/arpa_inet: Likewise.
15759         * modules/canon-host: Likewise.
15760         * modules/configmake: Likewise.
15761         * modules/dirent: Likewise.
15762         * modules/eealloc: Likewise.
15763         * modules/environ: Likewise.
15764         * modules/fchdir: Likewise.
15765         * modules/fcntl: Likewise.
15766         * modules/fcntl-h: Likewise.
15767         * modules/gethrxtime: Likewise.
15768         * modules/gettime: Likewise.
15769         * modules/ignore-value: Likewise.
15770         * modules/inet_ntop: Likewise.
15771         * modules/inet_pton: Likewise.
15772         * modules/inttypes: Likewise.
15773         * modules/isnand-nolibm: Likewise.
15774         * modules/isnanf-nolibm: Likewise.
15775         * modules/mbchar: Likewise.
15776         * modules/mbfile: Likewise.
15777         * modules/mbiter: Likewise.
15778         * modules/mbuiter: Likewise.
15779         * modules/netdb: Likewise.
15780         * modules/netinet_in: Likewise.
15781         * modules/nproc: Likewise.
15782         * modules/pagealign_alloc: Likewise.
15783         * modules/poll: Likewise.
15784         * modules/printf-frexp: Likewise.
15785         * modules/pthread: Likewise.
15786         * modules/putenv: Likewise.
15787         * modules/random_r: Likewise.
15788         * modules/relocatable-prog: Likewise.
15789         * modules/search: Likewise.
15790         * modules/select: Likewise.
15791         * modules/selinux-h: Likewise.
15792         * modules/settime: Likewise.
15793         * modules/signal: Likewise.
15794         * modules/size_max: Likewise.
15795         * modules/socklen: Likewise.
15796         * modules/ssize_t: Likewise.
15797         * modules/stdarg: Likewise.
15798         * modules/stdbool: Likewise.
15799         * modules/stddef: Likewise.
15800         * modules/stdint: Likewise.
15801         * modules/stdio: Likewise.
15802         * modules/stdlib: Likewise.
15803         * modules/string: Likewise.
15804         * modules/strings: Likewise.
15805         * modules/sys_file: Likewise.
15806         * modules/sys_ioctl: Likewise.
15807         * modules/sys_select: Likewise.
15808         * modules/sys_socket: Likewise.
15809         * modules/sys_stat: Likewise.
15810         * modules/sys_time: Likewise.
15811         * modules/sys_times: Likewise.
15812         * modules/sys_utsname: Likewise.
15813         * modules/sys_wait: Likewise.
15814         * modules/sysexits: Likewise.
15815         * modules/time: Likewise.
15816         * modules/times: Likewise.
15817         * modules/tmpfile: Likewise.
15818         * modules/trim: Likewise.
15819         * modules/unistd: Likewise.
15820         * modules/wchar: Likewise.
15821         * modules/wctype: Likewise.
15822
15823 2009-09-17  Bruno Haible  <bruno@clisp.org>
15824
15825         Make getdate.y compile on QNX and NetBSD 5 / i386.
15826         * m4/getdate.m4 (gl_GETDATE): Conditionally define
15827         TIME_T_FITS_IN_LONG_INT.
15828         * lib/getdate.y (long_time_t): New type.
15829         (relative_time): Change type of 'seconds' field to long_time_t.
15830         (get_date): Update types of local variables. Check against overflow
15831         during conversion from long_time_t to time_t.
15832         Reported by Matt Kraai <kraai@ftbfs.org>
15833         and Hasso Tepper <hasso@netbsd.org>.
15834
15835 2009-09-17  Bruno Haible  <bruno@clisp.org>
15836
15837         * modules/COPYING: Update copyright years.
15838         * modules/README: Likeiwse.
15839         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
15840         Reported by Ian Beckwith <ianb@erislabs.net>.
15841
15842 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
15843
15844         * users.txt: Update references for gnuit package.
15845
15846 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
15847
15848         * m4/getdelim.m4: Fix typo in copyright line.
15849
15850 2009-09-17  Bruno Haible  <bruno@clisp.org>
15851
15852         * lib/atoll.c: Use the standard header with GPL copyright.
15853         * lib/argz.in.h: Likewise.
15854         * lib/glob.c: Likewise.
15855         * lib/glob-libc.h: Likewise.
15856         * lib/random_r.c: Likewise.
15857         * lib/siglist.h: Likewise.
15858         * lib/strsignal.c: Likewise.
15859         Reported by Ian Beckwith <ianb@erislabs.net>.
15860
15861 2009-09-17  Eric Blake  <ebb9@byu.net>
15862
15863         rmdir: ensure correct dependency order
15864         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
15865
15866 2009-09-17  Bruno Haible  <bruno@clisp.org>
15867
15868         Disable assertion that fails on NetBSD 5 / i386.
15869         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
15870         Reported by Sam Steingold <sds@gnu.org>
15871         and Hasso Tepper <hasso@netbsd.org>.
15872
15873 2009-09-16  Eric Blake  <ebb9@byu.net>
15874
15875         unlinkdir: port to mingw
15876         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
15877         on which no one can unlink a directory.
15878
15879         stdlib: sort witness names
15880         * modules/stdlib (Makefile.am): Sort replacements.
15881         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
15882         * lib/stdlib.in.h: Likewise.
15883
15884         parse-duration-tests: avoid link failure
15885         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
15886         LIBINTL.
15887         Reported by Tom G. Christensen.
15888
15889         openat-tests: ensure unlinkat behaves like rmdir
15890         * tests/test-rmdir.c (main): Factor guts...
15891         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
15892         * modules/rmdir-tests (Files): Ship new file.
15893         * modules/openat-tests: New test.
15894         * tests/test-unlinkat.c: Likewise.
15895
15896         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
15897         * modules/rmdir-errno (Status, Notice): Now obsolete.
15898
15899         rmdir: work around cygwin 1.5.x and mingw bugs
15900         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
15901         * lib/rmdir.c (rmdir): Work around it.
15902         * modules/rmdir (Status, Notice): No longer obsolete.
15903         (Files): Add dos.m4.
15904         (Depends-on): Add unistd.
15905         (configure.ac): Set witnesses.
15906         (License): Relax to LGPLv2+.
15907         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
15908         * modules/unistd (Makefile.am): Substitute witnesses.
15909         * lib/unistd.in.h (rmdir): Declare replacement.
15910         * doc/posix-functions/rmdir.texi (rmdir): Document this.
15911         * modules/rmdir-tests: New tests.
15912         * tests/test-rmdir.c: Likewise.
15913
15914 2009-09-15  Eric Blake  <ebb9@byu.net>
15915
15916         fchdir: improve use of replacement functions
15917         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
15918         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
15919         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
15920         REPLACE_CLOSEDIR.
15921         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
15922         * modules/sys_stat (Makefile.am): Substitute correct witness.
15923         * modules/dirent (Makefile.am): Likewise.
15924         * modules/unistd (Makefile.am): Likewise.
15925         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
15926         * lib/unistd.in.h (dup): Likewise.
15927         * lib/sys_stat.in.h (fstat): Likewise.
15928
15929         maint: ignore gnulib-tool temp files
15930         * .gitignore: Ignore files created during gnulib-tool --test.
15931
15932 2009-09-13  Jim Meyering  <meyering@redhat.com>
15933
15934         posixtm: don't reject a time that specify "60" as the number of seconds
15935         * lib/posixtm.c (posixtime): The code to reject invalid dates
15936         would also reject a time specified with the .60 suffix.
15937         But POSIX allows that, in order to accommodate leap seconds.
15938         So don't reject it.
15939         (main): Adjust tests accordingly.
15940         * modules/posixtm (Depends-on): Add stpcpy.
15941
15942 2009-09-11  Jim Meyering  <meyering@redhat.com>
15943
15944         announce-gen: include [$release_type] in emitted Subject:
15945         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
15946         e.g., [stable] in the emitted Subject: line.
15947
15948 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15949
15950         Remove obsolete macros from several modules.
15951         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
15952         obsolete Autoconf macros with their modern counterparts.
15953         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
15954         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
15955         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
15956         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
15957         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
15958         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
15959         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
15960         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
15961         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
15962         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
15963         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
15964         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
15965         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
15966         * m4/sockets.m4 (gl_SOCKETS): Likewise.
15967         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
15968         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
15969         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
15970         * m4/time_r.m4 (gl_TIME_R): Likewise.
15971         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
15972         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
15973         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
15974
15975         Fix copyright header in build-aux scripts.
15976         * build-aux/git-version-gen: Fix copyright header to match GPLv3
15977         recommendation.
15978         * build-aux/ncftpput-ftp: Likewise.
15979         * build-aux/update-copyright: Likewise.
15980
15981 2009-09-09  Eric Blake  <ebb9@byu.net>
15982
15983         test-link: allow Linux choice of errno
15984         * tests/test-link.c (main): Relax test for alternate error.
15985
15986         strndup: fix improper m4 caching
15987         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
15988         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
15989         (gl_PREREQ_STRNDUP): Delete.
15990         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
15991         * modules/string (Makefile.am): Substitute it.
15992         * lib/string.in.h (strndup): Modernize prototype.
15993
15994         getcwd: port to mingw
15995         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
15996         different from the POSIX assumptions made throughout the getcwd
15997         module; fortunately, the mingw getcwd does not need replacement.
15998         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
15999         * modules/getcwd-tests: New test.
16000         * tests/test-getcwd.c: Likewise.
16001
16002         link: fix platform bugs
16003         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
16004         * lib/link.c (link): Work around them.  Fix related mingw bug.
16005         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
16006         * modules/unistd (Makefile.am): Substitute it.
16007         * lib/unistd.in.h (link): Declare replacement.
16008         * doc/posix-functions/link.texi (link): Document this.
16009         * modules/link (Depends-on): Add strdup-posix, sys_stat.
16010
16011         test-link: consolidate into single C program, test more cases
16012         * tests/test-link.sh: Delete.
16013         * tests/test-link.c: Test more error conditions.  Exposes bugs on
16014         at least Cygwin and Solaris.
16015         * modules/link-tests (Files): Remove unused file.
16016         (Depends-on): Add errno, sys_stat.
16017         (Makefile.am): Simplify.
16018
16019 2009-09-08  Bruno Haible  <bruno@clisp.org>
16020
16021         Work around towlower, towupper bug on mingw.
16022         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
16023         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
16024         * doc/posix-functions/towlower.texi: Mention the mingw bug.
16025         * doc/posix-functions/towupper.texi: Likewise.
16026         Reported by Eric Blake.
16027
16028 2009-09-08  Jim Meyering  <meyering@redhat.com>
16029
16030         build: don't try to run autoheader if we don't use it
16031         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
16032         is not used in configure.ac.
16033
16034 2009-09-08  Eric Blake  <ebb9@byu.net>
16035
16036         euidaccess: fix compilation error
16037         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
16038
16039         rawmemchr: relax license
16040         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
16041         okay.
16042         Reported by Jim Meyering.
16043
16044         mkfifoat: new module
16045         * modules/mkfifoat: New file.
16046         * lib/mkfifoat.c: Likewise.
16047         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
16048         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
16049         * modules/sys_stat (Makefile.am): Use them.
16050         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
16051         * MODULES.html.sh (File system functions): Mention module.
16052         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
16053         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
16054         * modules/mkfifoat-tests: New test.
16055         * tests/test-mkfifoat.c: Likewise.
16056
16057         strchrnul: relax license
16058         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
16059         okay.
16060         Reported by Jim Meyering.
16061
16062 2009-09-08  Eric Blake  <ebb9@byu.net>
16063
16064         fstatat: fix compilation on Solaris
16065         * lib/fstatat.c (includes): Add fcntl.h.
16066         Reported by Pádraig Brady.
16067
16068 2009-09-07  Eric Blake  <ebb9@byu.net>
16069
16070         rename: modernize replacement
16071         * modules/rename (Depends-on): Add stdio.
16072         (configure.ac): Declare witness.
16073         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
16074         stdio take care of replacement.
16075         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
16076         * modules/stdio (Makefile.am): Substitute them.
16077         * lib/stdio.in.h (rename): Declare replacement.
16078         * lib/rename.c (includes): Allow cross-compilation to non-windows
16079         machines.
16080         * doc/posix-functions/rename.texi (rename): Improve
16081         documentation.
16082
16083         stdio: sort witness names
16084         * modules/stdio (Makefile.am): Sort replacements.
16085         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
16086         * lib/stdio.in.h: Likewise.
16087
16088         getcwd: minor cleanups
16089         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
16090         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
16091
16092         openat: provide more convenience names
16093         * modules/faccessat (configure.ac): Add C witness.
16094         * lib/unistd.in.h (readlinkat): Fix typo.
16095         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
16096         convenience wrappers.
16097         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
16098         wrappers in syntax checks.
16099
16100 2009-09-06  Eric Blake  <ebb9@byu.net>
16101
16102         doc: fix comments in recent patches
16103         * lib/faccessat.c: Mention correct function.
16104         * lib/fchmodat.c: Likewise.
16105         * lib/fchownat.c: Likewise.
16106         * lib/symlinkat.c: Likewise.
16107         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
16108         constants.
16109
16110         faccessat, symlinkat: continue cleanup of previous patch
16111         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
16112         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
16113         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
16114         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
16115         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
16116         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
16117         set.
16118
16119 2009-09-06  Bruno Haible  <bruno@clisp.org>
16120
16121         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
16122         (fstatat): Declare if GNULIB_FSTATAT is set.
16123         (mkdirat): Declare if GNULIB_MKDIRAT is set.
16124         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
16125         (unlinkat): Declare if GNULIB_UNLINKAT is set.
16126         * modules/fcntl-h (Files): Remove m4/openat.m4.
16127         * modules/sys_stat (Files): Remove m4/openat.m4.
16128         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
16129         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
16130         * modules/unistd (Files): Remove m4/openat.m4.
16131         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
16132         GNULIB_OPENAT.
16133         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
16134         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
16135         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
16136         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
16137         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
16138         gl_OPENAT_DEFAULTS.
16139         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
16140         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
16141         Don't require gl_OPENAT_DEFAULTS.
16142         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
16143         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
16144         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
16145         (gl_OPENAT_DEFAULTS): Remove macro.
16146
16147 2009-09-06  Bruno Haible  <bruno@clisp.org>
16148
16149         * modules/openat (configure.ac): Remove unneeded witness.
16150
16151 2009-09-06  Bruno Haible  <bruno@clisp.org>
16152
16153         Set errno to ENOSYS when a function is entirely unsupported.
16154         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
16155         EOPNOTSUPP.
16156         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
16157         * modules/chown (Depends-on): Remove errno.
16158
16159 2009-09-06  Bruno Haible  <bruno@clisp.org>
16160
16161         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
16162
16163 2009-09-06  Bruno Haible  <bruno@clisp.org>
16164
16165         * lib/sys_stat.in.h: Fix preprocessor command indentation.
16166
16167 2009-09-06  Ben Pfaff  <blp@gnu.org>
16168             Bruno Haible  <bruno@clisp.org>
16169
16170         Work around a glibc bug in strtok_r.
16171         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
16172         Undefine if UNDEFINE_STRTOK_R is set.
16173         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
16174         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
16175         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
16176         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
16177         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
16178         UNDEFINE_STRTOK_R.
16179         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
16180
16181 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
16182
16183         exclude: minor fix
16184         * lib/exclude.c: Include wctype.h
16185
16186 2009-09-06  Akim Demaille  <demaille@gostai.com>
16187
16188         bootstrap: improve error message
16189         * build-aux/bootstrap (find_tool): Upon failure, report the list
16190         of candidates.
16191         Honor the initial value of the envvar.
16192
16193 2009-09-05  Eric Blake  <ebb9@byu.net>
16194
16195         symlinkat: new module
16196         * modules/symlinkat: New file.
16197         * lib/symlinkat.c: Likewise.
16198         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
16199         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
16200         * modules/unistd (Makefile.am): Use them.
16201         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
16202         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
16203         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
16204         * MODULES.html.sh (File system functions): Mention module.
16205         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
16206         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
16207         * modules/symlinkat-tests: New test.
16208         * tests/test-symlinkat.c: Likewise.
16209
16210         test-openat-safer: add more checks
16211         * tests/test-openat-safer.c (main): Check more code paths.
16212
16213 2009-09-05  Jim Meyering  <meyering@redhat.com>
16214
16215         syntax-check: detect unnecessary inclusion of openat.h
16216         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
16217
16218 2009-09-05  Bruno Haible  <bruno@clisp.org>
16219
16220         Support towlower, towupper.
16221         * doc/posix-functions/towlower.texi: Mention module wctype.
16222         * doc/posix-functions/towupper.texi: Likewise.
16223         * lib/wctype.in.h (towlower, towupper): New functions.
16224         * tests/test-wctype.c: Include stdio.h, stdlib.h.
16225         (ASSERT): New macro.
16226         (e): New variable.
16227         (main): Test also towlower, towupper. Test WEOF argument.
16228         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
16229
16230 2009-09-05  Bruno Haible  <bruno@clisp.org>
16231
16232         Fix conversion behaviour when the input is invalid.
16233         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
16234         mark occurring in first pass of indirect conversion.
16235         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
16236         input.
16237         Found by clang's static analyzer.
16238
16239 2009-09-05  Bruno Haible  <bruno@clisp.org>
16240
16241         * tests/test-striconveh.c (main): Test indirect conversion on platforms
16242         where direct conversion is possible.
16243
16244 2009-09-04  Eric Blake  <ebb9@byu.net>
16245
16246         openat: fail with ENOENT on empty name
16247         * lib/openat-proc.c (openat_proc_name): Special-case the empty
16248         buffer.
16249
16250         link-follow: fix logic bug in prior patch
16251         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
16252         reversed sense of yes and no in prior patch.  Avoid confusing
16253         compilation failure with desired semantics.
16254
16255         link-follow: accomodate mingw and cross-compilation
16256         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
16257         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
16258         cross-compilation results to -1, to make linkat easier to
16259         implement when cross-compiling.  Trivially support mingw.
16260         * modules/link-follow (configure.ac): Call new name.
16261         * NEWS: Mention this.
16262
16263 2009-09-03  Eric Blake  <ebb9@byu.net>
16264
16265         faccessat: compile replacement
16266         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
16267         needed.
16268
16269         fts: fix compilation error
16270         * lib/fts.c (includes): Re-add "openat.h", for
16271         openat_needs_fchdir.
16272
16273         faccessat: new module
16274         * modules/faccessat: New file.
16275         * lib/faccessat.c: Likewise.
16276         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
16277         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
16278         * modules/unistd (Makefile.am): Use it.
16279         * lib/unistd.in.h (faccessat): Declare it.
16280         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
16281         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
16282         * MODULES.html.sh (File system functions): Mention it.
16283         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
16284         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
16285
16286         euidaccess: prefer POSIX over non-standard implementation
16287         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
16288         * lib/euidaccess.c (euidaccess): Use it if available.
16289
16290         openat: make template easier to use
16291         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
16292         AT_FUNC_F2 to be undefined.
16293         (VALIDATE_FLAG): New macro; use it to reject bad flags.
16294         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
16295         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
16296         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
16297         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
16298         Likewise.
16299         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
16300         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
16301         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
16302         Likewise.
16303
16304         openat: declare in POSIX headers
16305         * NEWS: Mention this.
16306         * modules/openat (configure.ac): Declare witnesses.
16307         (Depends-on): Add fcntl-h, sys_stat, unistd.
16308         (Include): Mention correct headers.
16309         * modules/fcntl-h (Depends-on): Add link-warning.
16310         (Files): Add openat.m4.
16311         (Makefile.am): Substitute witnesses.
16312         * modules/sys_stat (Files, Makefile.am): Likewise.
16313         * modules/unistd (Files, Makefile.am): Likewise.
16314         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
16315         (gl_OPENAT_DEFAULTS): New macro.
16316         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
16317         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
16318         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
16319         (SYS_STAT_H): Remove unused variable.
16320         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
16321         * lib/fcntl--.h (includes): Remove unneeded header.
16322         * lib/openat-safer.c (includes): Likewise.
16323         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
16324         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
16325         appropriate headers.
16326         (__OPENAT_PREFIX): Delete.
16327         * lib/fcntl.in.h (openat): Provide declaration.
16328         (AT_FDCWD): Fix Solaris bug.
16329         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
16330         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
16331         * lib/fchmodat.c (includes):  Adjust to find declaration.
16332         * lib/fchownat.c (includes): Likewise.
16333         * lib/mkdirat.c (includes): Likewise.
16334         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
16335         still visible.
16336
16337 2009-09-02  Eric Blake  <ebb9@byu.net>
16338
16339         errno: use consistently
16340         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
16341         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
16342         * lib/canonicalize.c (ELOOP): Likewise.
16343         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
16344         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
16345         * lib/lchown.c (EOPNOTSUPP): Likewise.
16346         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
16347         * lib/savewd.c (ESTALE): Likewise.
16348         * lib/settime.c (ENOSYS): Likewise.
16349         * lib/utimens.c (ENOSYS): Likewise.
16350         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
16351         * lib/chdir-safer.c (ELOOP): Likewise.
16352         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
16353         * modules/c-stack (Depends-on): Add errno.
16354         * modules/canonicalize (Depends-on): Likewise.
16355         * modules/chdir-safer (Depends-on): Likewise.
16356         * modules/fdopendir (Depends-on): Likewise.
16357         * modules/inet_ntop (Depends-on): Likewise.
16358         * modules/inet_pton (Depends-on): Likewise.
16359         * modules/lchown (Depends-on): Likewise.
16360         * modules/openat (Depends-on): Likewise.
16361         * modules/savewd (Depends-on): Likewise.
16362         * modules/settime (Depends-on): Likewise.
16363         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
16364
16365         fts: avoid leaking fds
16366         * modules/fts (Depends-on): Add cloexec.
16367         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
16368         flag.
16369
16370         fts: make directory fds more robust
16371         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
16372         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
16373
16374         backupfile, chdir-long, fts, savedir: make safer
16375         * lib/backupfile.c (includes): Use "dirent--.h", since
16376         numbered_backup can write to stderr during readdir.
16377         * lib/savedir.c (includes): Likewise.
16378         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
16379         emulation can write to stderr on failure.
16380         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
16381         * lib/getcwd.c: Document why opendir_safer is unused.
16382         * lib/glob.c: Likewise.
16383         * lib/scandir.c: Likewise.
16384         * lib/openat-proc.c: Likewise, for open_safer.
16385         * modules/backupfile (Depends-on): Add dirent-safer.
16386         * modules/savedir (Depends-on): Likewise.
16387         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
16388         * modules/chdir-long (Depends-on): Add openat-safer.
16389
16390         openat-safer: new module
16391         * modules/openat-safer: New file.
16392         * lib/openat-safer.c: Likewise.
16393         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
16394         * lib/fcntl-safer.h (openat_safer): Declare.
16395         * lib/fcntl--.h (openat): Override.
16396         * MODULES.html.sh (File descriptor based I/O): Mention it.
16397         * lib/openat.h: Add double-inclusion guards.
16398         * lib/openat.c (includes): Only include "fcntl-safer.h", not
16399         "fcntl--.h", so we can implement openat.
16400         * modules/openat-safer-tests: New test.
16401         * tests/test-openat-safer.c: New file.
16402
16403         dirent-safer: new module
16404         * modules/dirent-safer: New file.
16405         * lib/dirent--.h: Likewise.
16406         * lib/dirent-safer.h: Likewise.
16407         * lib/opendir-safer.c: Likewise.
16408         * m4/dirent-safer.m4: Likewise.
16409         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
16410         * modules/dirent-safer-tests: New test.
16411         * tests/test-dirent-safer.c: New file.
16412         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
16413
16414         fdopendir: optimize on mingw
16415         * lib/unistd.in.h (_gl_directory_name): New prototype.
16416         * lib/fchdir.c (_gl_directory_name): Implement it.
16417         (fchdir): Use it to simplify implementation.
16418         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
16419         fchdir, when available, to avoid calling [f]chdir().
16420
16421         fdopendir: split into its own module
16422         * lib/openat.c (fdopendir): Move...
16423         * lib/fdopendir.c: ...into new file.
16424         * modules/fdopendir: New module.
16425         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
16426         * modules/openat (Depends-on): Add fdopendir.
16427         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
16428         fdopendir here.
16429         * modules/savedir (Depends-on): Only need fdopendir, not full
16430         openat.
16431         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
16432         * lib/openat.h (fdopendir): Drop prototype.
16433         * lib/dirent.in.h (fdopendir): Provide prototype.
16434         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
16435         * modules/dirent (Makefile.am): Substitute them.
16436         * MODULES.html.sh (File system functions): Mention it.
16437         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
16438         * modules/fdopendir-tests: New file.
16439         * tests/test-fdopendir.c: Likewise.
16440
16441         fchdir: use more consistent macro convention
16442         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
16443         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
16444         REPLACE_FCHDIR, rather than relying on config.h macros.
16445         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
16446         inside a single make-time REPLACE_FCHDIR block, rather than using
16447         the config.h FCHDIR_REPLACEMENT.
16448         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
16449         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
16450         Manage fstat replacement.
16451         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
16452         REPLACE_FCHDIR.
16453         * modules/sys_stat (Files): Add m4/unistd_h.m4.
16454         (Makefile.am): Substitute REPLACE_FCHDIR.
16455         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
16456         FCHDIR_REPLACEMENT.
16457         * lib/dup-safer.c (dup_safer): Likewise.
16458         * lib/dup2.c (rpl_dup2): Likewise.
16459         * lib/dup3.c (rpl_dup3): Likewise.
16460         * lib/open.c (rpl_open): Likewise.
16461
16462         fchdir: simplify error handling, and support dup3
16463         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
16464         stdbool, malloc-posix, realloc-posix.
16465         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
16466         (ensure_dirs_slot): Return false on allocation failure.
16467         (rpl_dup2): Delete.
16468         (_gl_register_dup): New function.
16469         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
16470         (_gl_register_fd): Close fd on allocation failure.
16471         * lib/fcntl.in.h (_gl_register_fd): Update signature.
16472         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
16473         prototype.
16474         (rpl_dup2_fchdir): Delete prototype.
16475         * lib/open.c (open): Update caller.
16476         * lib/dup2.c (dup2): Track fchdir metadata.
16477         * lib/dup3.c (dup3): Likewise.
16478         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
16479         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
16480
16481 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16482
16483         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
16484         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
16485         don't pass arguments to AC_OUTPUT.
16486
16487 2009-09-02  Bruno Haible  <bruno@clisp.org>
16488
16489         * modules/mkdtemp (License): Relicense under LGPLv2+.
16490         Reported by Paolo Bonzini.
16491
16492 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16493
16494         Replace uses of obsolete autoconf macros in Jim's modules.
16495         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
16496         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
16497         can evoke a warning from autoconf when run with -Wobsolete
16498         enabled.  They were declared obsolete for good reasons (see
16499         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
16500         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
16501         should not continue using the deprecated macros.
16502         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
16503         obsolete Autoconf macros with modern counterparts.
16504         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
16505         * m4/dos.m4 (gl_AC_DOS): Likewise.
16506         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
16507         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
16508         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
16509         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
16510         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
16511         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
16512         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
16513         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
16514         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
16515         Likewise.
16516         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
16517         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
16518         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
16519         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
16520         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
16521         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
16522
16523 2009-09-01  Eric Blake  <ebb9@byu.net>
16524
16525         fchdir: fix off-by-one bug in previous patch
16526         * lib/fchdir.c (rpl_fstat): Use correct bounds.
16527         (_gl_unregister_fd): Delete useless if.
16528
16529 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
16530
16531         maint.mk: sort the list of syntax-check rules
16532         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
16533         easier to get a sense of progress when the rules are run sequentially
16534         and take a long time.
16535
16536 2009-09-01  Simon Josefsson  <simon@josefsson.org>
16537
16538         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
16539         * modules/netinet_in: Likewise.
16540         * modules/sys_file: Likewise.
16541         * modules/sys_ioctl: Likewise.
16542         * modules/sys_select: Likewise.
16543         * modules/sys_socket: Likewise.
16544         * modules/sys_stat: Likewise.
16545         * modules/sys_time: Likewise.
16546         * modules/sys_times: Likewise.
16547         * modules/sys_utsname: Likewise.
16548         * modules/sys_wait: Likewise.
16549
16550 2009-09-01  Jim Meyering  <meyering@redhat.com>
16551
16552         fts: help ensure that return values are not ignored
16553         * lib/fts_.h (__GNUC_PREREQ): Define.
16554         (__attribute_warn_unused_result__): Define.
16555         (fts_children, fts_close, fts_open, fts_read): Declare with
16556         __attribute_warn_unused_result__.
16557
16558         fts: fts_close now fails also when closing a dir file descriptor fails
16559         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
16560         and propagate to caller, along with errno.
16561
16562         announce-gen: correct formatting in --help output
16563         * build-aux/announce-gen (usage): Move the one-line description in
16564         --help output "up", to where it belongs, just after Usage:.
16565
16566 2009-08-31  Eric Blake  <ebb9@byu.net>
16567
16568         fchdir: port to mingw
16569         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
16570         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
16571         opened, then use a substitute.
16572         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
16573         replacement.
16574         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
16575         (_gl_register_fd): No need to check stat if open already filters
16576         all directories.
16577         (fchdir): Fix error condition to match POSIX.
16578         * modules/fchdir (Depends-on): Add sys_stat.
16579         * doc/posix-functions/open.texi (open): Document the limitation.
16580         * modules/fchdir-tests: New file.
16581         * tests/test-fchdir.c: Likewise.
16582
16583         canonicalize: allow cross-testing from cygwin to mingw
16584         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
16585         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
16586         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
16587         Likewise.
16588         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
16589         target does not support symlinks.
16590         * tests/test-canonicalize-lgpl.sh: Likewise.
16591
16592         chown: avoid compilation warning on mingw
16593         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
16594         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
16595         mingw.
16596         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
16597         * modules/chown (Depends-on): Add errno.
16598
16599 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
16600
16601         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
16602         command.
16603
16604 2009-08-31  Jim Meyering  <meyering@redhat.com>
16605
16606         canonicalize: remove useless initialization
16607         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
16608         initialization of local, "end".
16609
16610 2009-08-30  Bruno Haible  <bruno@clisp.org>
16611
16612         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
16613         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
16614         ENOSYS.
16615
16616 2009-08-30  Bruno Haible  <bruno@clisp.org>
16617
16618         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
16619         /usr/xpg4/bin/tr when it exists.
16620         * tests/test-pipe-filter-gi1.sh: Likewise.
16621
16622 2009-08-30  Bruno Haible  <bruno@clisp.org>
16623
16624         Work around deficient /usr/bin/id program on Solaris.
16625         * tests/test-file-has-acl.sh (ID): New variable.
16626         * tests/test-set-mode-acl.sh (ID): Likewise.
16627         * tests/test-copy-acl.sh (ID): Likewise.
16628         * tests/test-copy-file.sh (ID): Likewise.
16629
16630 2009-08-30  Bruno Haible  <bruno@clisp.org>
16631
16632         New module 'xstriconveh'.
16633         * lib/xstriconveh.h: New file.
16634         * lib/xstriconveh.c: New file.
16635         * modules/xstriconveh: New file.
16636
16637 2009-08-30  Bruno Haible  <bruno@clisp.org>
16638
16639         Make it easier to use mem_cd_iconveh.
16640         * lib/striconveh.h (iconveh_t): New type.
16641         (iconveh_open, iconveh_close): New declarations.
16642         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
16643         with a single 'const iconveh_t *' argument.
16644         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
16645         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
16646         with a single 'const iconveh_t *' argument.
16647         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
16648         * tests/test-striconveh.c (main): Update.
16649         * NEWS: Mention the change.
16650
16651 2009-08-30  Bruno Haible  <bruno@clisp.org>
16652
16653         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
16654         problem.
16655
16656 2009-08-30  Bruno Haible  <bruno@clisp.org>
16657
16658         Work around iconv_open problem on Solaris.
16659         * lib/iconv_open-solaris.gperf: New file.
16660         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
16661         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
16662         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
16663         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
16664         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
16665         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
16666
16667 2009-08-29  Jim Meyering  <meyering@redhat.com>
16668
16669         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
16670         * top/maint.mk (cvs-check): Remove target; it was just an alias
16671         to the better-named vc-diff-check.
16672         (maintainer-distcheck): Remove rule.  It was used only from
16673         the (alpha/beta/major) target, and all of its commands but one
16674         were coreutils-specific.
16675         (vc-dist): Remove rule.
16676         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
16677         Run vc-diff-check, not vc-dist.
16678         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
16679
16680 2009-08-27  Bruno Haible  <bruno@clisp.org>
16681
16682         * tests/test-bitrotate.c (main): Remove test that uses a shift count
16683         of 0.
16684
16685 2009-08-27  Bruno Haible  <bruno@clisp.org>
16686
16687         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
16688         compilers.
16689         * doc/func.texi: Document the SunPRO C bug.
16690
16691 2009-08-27  Bruno Haible  <bruno@clisp.org>
16692
16693         Fix link error on Solaris.
16694         * tests/test-parse-duration.c (xstrdup): Remove function.
16695
16696 2009-08-26  Pádraig Brady  <P@draigbrady.com>
16697
16698         ignore-value: handle pointer types, too
16699         * lib/ignore-value.h (__attribute__): Remove definition.
16700         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
16701         of a more concise and more-often effective "(void) i" statement.
16702         (ignore_ptr): New function to suppress warnings from functions that
16703         return pointers, and to make it explicit that one function doesn't
16704         handle all cases.
16705
16706 2009-08-25  Bruno Haible  <bruno@clisp.org>
16707
16708         dup2: work around a Linux bug.
16709         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
16710         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
16711         * doc/posix-functions/dup2.texi: Mention the Linux bug.
16712         Reported by Simon Josefsson.
16713
16714 2009-08-25  Jim Meyering  <meyering@redhat.com>
16715
16716         libguestfs uses gnulib
16717         * users.txt: Add libguestfs.
16718
16719 2009-08-24  Eric Blake  <ebb9@byu.net>
16720
16721         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
16722         * lib/pipe2.c (includes): Add binary-io.h.
16723         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
16724
16725 2009-08-24  Bruno Haible  <bruno@clisp.org>
16726
16727         Tolerate declared but missing accept4 syscall.
16728         * lib/accept4.c (accept4): Invoke original accept4 function first, if
16729         available.
16730         * lib/sys_socket.in.h (accept4): If the function is already present,
16731         override it.
16732         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
16733         * modules/accept4 (Makefile.am): Compile accept4.c always.
16734         Reported by Paolo Bonzini and Eric Blake.
16735
16736 2009-08-23  Bruno Haible  <bruno@clisp.org>
16737
16738         New module 'accept4'.
16739         * lib/sys_socket.in.h (accept4): New declaration.
16740         * lib/accept4.c: New file.
16741         * m4/accept4.m4: New file.
16742         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
16743         GNULIB_ACCEPT4, HAVE_ACCEPT4.
16744         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
16745         HAVE_ACCEPT4.
16746         * modules/accept4: New file.
16747         * doc/glibc-functions/accept4.texi: Mention the new module.
16748
16749 2009-08-24  Jim Meyering  <meyering@redhat.com>
16750
16751         progname: also set global program_invocation_name, when possible
16752         Before this change, a libtool-enabled program that calls glibc's
16753         error function would report the program name as
16754         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
16755         * modules/progname (configure.ac): Check for a declaration of
16756         program_invocation_name.
16757         * lib/progname.c:  Include <errno.h>.
16758         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
16759         Set program_invocation_name.
16760
16761 2009-08-23  Bruno Haible  <bruno@clisp.org>
16762
16763         * lib/dup3.c: Include <string.h>.
16764
16765 2009-08-23  Bruno Haible  <bruno@clisp.org>
16766
16767         * lib/dup3.c (dup3): Test only once whether the system actually exists.
16768         * lib/pipe2.c (pipe2): Likewise.
16769         Suggested by Eric Blake.
16770
16771 2009-08-23  Bruno Haible  <bruno@clisp.org>
16772
16773         Tolerate declared but missing dup3 syscall.
16774         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
16775         * lib/unistd.in.h (dup3): If the function is already present,
16776         override it.
16777         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
16778         * modules/dup3 (Makefile.am): Compile dup3.c always.
16779         Reported by Paolo Bonzini.
16780
16781 2009-08-23  Bruno Haible  <bruno@clisp.org>
16782
16783         Tolerate declared but missing pipe2 syscall.
16784         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
16785         available.
16786         * lib/unistd.in.h (pipe2): If the function is already present,
16787         override it.
16788         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
16789         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
16790         Reported by Paolo Bonzini.
16791
16792 2009-08-23  Bruno Haible  <bruno@clisp.org>
16793
16794         * lib/pipe2.c (pipe2): Move #ifs inside function.
16795
16796 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
16797
16798         quotearg: document limitations of quote_these_too
16799         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
16800         those limitations are created.
16801         * lib/quotearg.h (set_char_quoting): Document that digits and
16802         letters that are special after backslash are not permitted.
16803         (quotearg_char): Cross-reference set_char_quoting documentation.
16804
16805 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
16806
16807         quotearg: implement custom_quoting_style
16808         * lib/quotearg.c: (struct quoting_options): Add left_quote and
16809         right_quote fields.
16810         (set_custom_quoting): New public function.
16811         (quotearg_buffer_restyled): Add left_quote and right_quote
16812         arguments, handle them very much like locale quoting, and update
16813         all uses.
16814         (quotearg_n_custom): New public function.
16815         (quotearg_n_custom_mem): New public function.
16816         (quotearg_custom): New public function.
16817         (quotearg_custom_mem): New public function.
16818         * lib/quotearg.h: Prototype and document new public functions.
16819         (enum quoting_style): For escape_quoting_style and
16820         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
16821         ignored even though they're otherwise like c_quoting_style.
16822         Add custom_quoting_style member and document with comparison to
16823         clocale_quoting_style.
16824         * tests/test-quotearg.c (custom_quotes): New array.
16825         (custom_results): New array.
16826         (main): Extend to test custom quoting.
16827
16828 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
16829
16830         quotearg: fix right quote escaping when it's in quote_these_too
16831         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
16832         quote, be sure to prepend only one backslash.
16833         * tests/test-quotearg.c (use_quote_double_quotes): New function.
16834         (main): Test it.
16835
16836 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
16837
16838         quotearg-tests: test escaping of embedded locale quotes
16839         * tests/test-quotearg.c (struct result_strings): Add member for
16840         new input.
16841         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
16842         (inputs): Add new input.
16843         (results_g): Add expected results.
16844         (flag_results): Likewise.
16845         (locale_results): Likewise.
16846         (compare_strings): Check those.
16847
16848 2009-08-23  Bruno Haible  <bruno@clisp.org>
16849
16850         Tests for module 'dup3'.
16851         * modules/dup3-tests: New file.
16852         * tests/test-dup3.c: New file.
16853
16854         New module 'dup3'.
16855         * lib/unistd.in.h (dup3): New declaration.
16856         * lib/dup3.c: New file.
16857         * m4/dup3.m4: New file.
16858         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
16859         HAVE_DUP3.
16860         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
16861         * modules/dup3: New file.
16862         * doc/glibc-functions/dup3.texi: Mention the new module.
16863
16864 2009-08-23  Bruno Haible  <bruno@clisp.org>
16865
16866         Tweak the dup2 test.
16867         * tests/test-dup2.c (main): Create the test file empty. Verify that an
16868         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
16869         the test file is still empty. Fix argument order of lseek.
16870
16871 2009-08-23  Bruno Haible  <bruno@clisp.org>
16872
16873         Avoid test link errors when the modules getopt-gnu, gettext are used.
16874         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
16875         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16876
16877 2009-08-23  Bruno Haible  <bruno@clisp.org>
16878
16879         Fix getdtablesize() on mingw.
16880         * lib/getdtablesize.c (getdtablesize): Implement differently.
16881         * lib/unistd.in.h (getdtablesize): Improve comment.
16882
16883 2009-08-23  Bruno Haible  <bruno@clisp.org>
16884
16885         New module 'mkostemp'.
16886         Based on Ulrich Drepper's 2007-08-10 change in glibc.
16887         * lib/stdlib.in.h (mksotemp): New declaration.
16888         * lib/mkostemp.c: New file, from glibc with modifications.
16889         * lib/tempname.h (GT_FILE): Remove outdated comment.
16890         (gen_tempname): Add flags argument.
16891         * lib/tempname.c (__GT_BIGFILE): Remove macro.
16892         (__GT_FILE): Map to 1.
16893         (small_open, large_open): Remove macros.
16894         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
16895         * lib/mkstemp.c (mkstemp): Update.
16896         * lib/mkdtemp.c (mkdtemp): Likewise.
16897         * m4/mkostemp.m4: New file.
16898         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
16899         HAVE_MKOSTEMP.
16900         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
16901         HAVE_MKOSTEMP.
16902         * modules/mkostemp: New file, based on modules/mkstemp.
16903         * doc/glibc-functions/mkostemp.texi: Mention the new module.
16904         * NEWS: Mention the change.
16905
16906 2009-08-23  Bruno Haible  <bruno@clisp.org>
16907
16908         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
16909         Reported by Eric Blake.
16910
16911 2009-08-23  Bruno Haible  <bruno@clisp.org>
16912
16913         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
16914         Reported by Eric Blake.
16915
16916 2009-08-23  Bruno Haible  <bruno@clisp.org>
16917
16918         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
16919         * modules/pipe2 (Depends-on): Likewise.
16920
16921 2009-08-23  Eric Blake  <ebb9@byu.net>
16922
16923         fcntl-h: add O_TTY_INIT support
16924         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
16925         * tests/test-fcntl-h.c (o): Test it.
16926         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
16927
16928         fcntl-h: rename from fcntl, in preparation for fcntl(2)
16929         * modules/fcntl: Move <fcntl.h> header replacement...
16930         * modules/fcntl-h: ...to new name, so as not to collide with
16931         like-named function.
16932         * tests/test-fcntl.c: Rename...
16933         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
16934         * modules/fcntl-tests: Rename...
16935         * modules/fcntl-h-tests: ...to this.  Update test file name.
16936         * modules/chdir-long (Depends-on): Update clients.
16937         * modules/chdir-safer (Depends-on): Likewise.
16938         * modules/fcntl-safer (Depends-on): Likewise.
16939         * modules/fts (Depends-on): Likewise.
16940         * modules/mkancesdirs (Depends-on): Likewise.
16941         * modules/mkdir-p (Depends-on): Likewise.
16942         * modules/open (Depends-on): Likewise.
16943         * modules/savewd (Depends-on): Likewise.
16944         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
16945         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
16946
16947 2009-08-22  Bruno Haible  <bruno@clisp.org>
16948
16949         * modules/binary-io (License): Relicense under LGPL.
16950         * modules/pipe2 (License): Likewise.
16951
16952 2009-08-22  Bruno Haible  <bruno@clisp.org>
16953
16954         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
16955         return value.
16956         * lib/pipe-filter-gi.c (filter_init): Likewise.
16957         Reported by Eric Blake.
16958
16959 2009-08-22  Bruno Haible  <bruno@clisp.org>
16960
16961         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
16962         * modules/pipe (Depends-on): Add pipe2.
16963
16964 2009-08-22  Bruno Haible  <bruno@clisp.org>
16965
16966         Tests for module 'pipe2'.
16967         * modules/pipe2-tests: New file.
16968         * tests/test-pipe2.c: New file.
16969
16970         New module 'pipe2'.
16971         * lib/unistd.in.h (pipe2): New declaration.
16972         * lib/pipe2.c: New file.
16973         * m4/pipe2.m4: New file.
16974         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
16975         HAVE_PIPE2.
16976         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
16977         * modules/pipe2: New file.
16978         * doc/glibc-functions/pipe2.texi: Mention the new module.
16979
16980 2009-08-22  Bruno Haible  <bruno@clisp.org>
16981
16982         Reference some new glibc functions.
16983         * doc/glibc-functions/accept4.texi: New file.
16984         * doc/glibc-functions/dup3.texi: New file.
16985         * doc/glibc-functions/mkostemp.texi: New file.
16986         * doc/glibc-functions/pipe2.texi: New file.
16987         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
16988         (Glibc sys/socket.h): Refer to accept4.
16989         (Glibc unistd.h): Refer to dup3, pipe2.
16990         Reported by Eric Blake.
16991
16992 2009-08-22  Jim Meyering  <meyering@redhat.com>
16993             Bruno Haible  <bruno@clisp.org>
16994
16995         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
16996         This makes it so packages using automake-1.11's silent-rules option
16997         can print e.g., a single "GEN    configmake.h" line, rather than
16998         the 30+ statements that perform the job.  If you want to see the
16999         actual commands, you can still run "make V=1".
17000         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
17001         so that make output is abbreviated when those variables are defined
17002         appropriately.
17003         * modules/argz: Likewise.
17004         * modules/arpa_inet: Likewise.
17005         * modules/byteswap: Likewise.
17006         * modules/configmake: Likewise.
17007         * modules/dirent: Likewise.
17008         * modules/errno: Likewise.
17009         * modules/fcntl: Likewise.
17010         * modules/float: Likewise.
17011         * modules/fnmatch: Likewise.
17012         * modules/getopt-posix: Likewise.
17013         * modules/glob: Likewise.
17014         * modules/iconv_open: Likewise.
17015         * modules/inttypes: Likewise.
17016         * modules/localcharset: Likewise.
17017         * modules/locale: Likewise.
17018         * modules/math: Likewise.
17019         * modules/netdb: Likewise.
17020         * modules/netinet_in: Likewise.
17021         * modules/poll: Likewise.
17022         * modules/posix_spawnp-tests: Likewise.
17023         * modules/sched: Likewise.
17024         * modules/search: Likewise.
17025         * modules/selinux-h: Likewise.
17026         * modules/signal: Likewise.
17027         * modules/spawn: Likewise.
17028         * modules/stdarg: Likewise.
17029         * modules/stdbool: Likewise.
17030         * modules/stddef: Likewise.
17031         * modules/stdint: Likewise.
17032         * modules/stdio: Likewise.
17033         * modules/stdlib: Likewise.
17034         * modules/string: Likewise.
17035         * modules/strings: Likewise.
17036         * modules/sys_file: Likewise.
17037         * modules/sys_ioctl: Likewise.
17038         * modules/sys_select: Likewise.
17039         * modules/sys_socket: Likewise.
17040         * modules/sys_stat: Likewise.
17041         * modules/sys_time: Likewise.
17042         * modules/sys_times: Likewise.
17043         * modules/sys_utsname: Likewise.
17044         * modules/sys_wait: Likewise.
17045         * modules/sysexits: Likewise.
17046         * modules/time: Likewise.
17047         * modules/unistd: Likewise.
17048         * modules/wchar: Likewise.
17049         * modules/wctype: Likewise.
17050
17051 2009-08-22  Jim Meyering  <meyering@redhat.com>
17052
17053         announce-gen: detect write failure
17054         * build-aux/announce-gen: Add Coda at end.
17055         Remove equivalent-but-more-verbose block at top.
17056
17057 2009-08-19  Akim Demaille  <demaille@gostai.com>
17058
17059         bootstrap: --help to stdout.
17060         * bootstrap (usage): Don't send --help to stderr.
17061         Use a here doc instead of a long string.
17062
17063 2009-08-21  Eric Blake  <ebb9@byu.net>
17064
17065         test-popen-safer: split from test-popen
17066         * tests/test-popen.c (main): Move...
17067         * tests/test-popen.h: ...into new file.
17068         * tests/test-popen-safer2.c: New file.
17069         * modules/popen-tests (Files): Add test-popen.h.
17070         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
17071         Suggested by Bruno Haible.
17072
17073         test-fcntl-safer: split from test-open
17074         * tests/test-open.c (main): Move...
17075         * tests/test-open.h: ...into new file.
17076         * tests/test-fcntl-safer.c: New file.
17077         * modules/open-tests (Files): Add test-open.h.
17078         * modules/fcntl-safer-tests: New file.
17079         Suggested by Bruno Haible.
17080
17081         test-fopen-safer: split from test-fopen
17082         * tests/test-fopen.c (main): Move...
17083         * tests/test-fopen.h: ...into new file.
17084         * tests/test-fopen-safer.c: New file.
17085         * modules/fopen-tests (Files): Add test-fopen.h.
17086         * modules/fopen-safer-tests: New file.
17087         Suggested by Bruno Haible.
17088
17089 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
17090
17091         popen-safer: test O_CLOEXEC at run-time.
17092         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
17093
17094 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
17095
17096         fcntl: move more flags to the header
17097         * lib/cloexec.c: Do not define FD_CLOEXEC here.
17098         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
17099         * lib/fcntl.in.h: Do both things here.
17100
17101 2009-08-21  Jim Meyering  <meyering@redhat.com>
17102
17103         consistently remove $@-t before redirecting to it
17104         * modules/argz: Remove $@-t and $@ before redirecting to the former.
17105         * modules/alloca-opt: Likewise.
17106         * modules/byteswap: Likewise.
17107         * modules/fnmatch: Likewise.
17108         * modules/getopt-posix: Likewise.
17109         * modules/glob: Likewise.
17110         * modules/poll: Likewise.
17111         * modules/posix_spawnp-tests: Likewise.
17112         * modules/sys_socket: Likewise.
17113         * modules/sysexits: Likewise.
17114
17115 2009-08-21  Eric Blake  <ebb9@byu.net>
17116
17117         popen: simplify access to original popen
17118         * lib/popen.c (rpl_popen): No need to worry about popen being a
17119         macro.
17120         Reported by Bruno Haible.
17121
17122 2009-08-20  Eric Blake  <ebb9@byu.net>
17123
17124         build: avoid some compiler warnings
17125         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
17126         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
17127         type.
17128         (new_exclude_segment, excluded_file_pattern_p)
17129         (excluded_file_name_p): Reduce scope.
17130         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
17131         old-style declaration.
17132
17133 2009-08-20  Simon Josefsson  <simon@josefsson.org>
17134
17135         * tests/test-exclude1.sh: Handle Windows EOL.
17136         * tests/test-exclude2.sh: Likewise.
17137         * tests/test-exclude3.sh: Likewise.
17138         * tests/test-exclude4.sh: Likewise.
17139         * tests/test-exclude5.sh: Likewise.
17140         * tests/test-exclude6.sh: Likewise.
17141         * tests/test-exclude7.sh: Likewise.
17142
17143 2009-08-19  Akim Demaille  <demaille@gostai.com>
17144
17145         bootstrap: find sha1sum when named gsha1sum.
17146         * bootstrap (find_tool): New.
17147         ($SHA1SUM): New.
17148         Use it.
17149
17150 2009-08-20  Jim Meyering  <meyering@redhat.com>
17151
17152         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
17153         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
17154         expression that converts "." in a file name to "\." in the resulting
17155         regexp.  Start with a dummy statement, so that prior shell variable
17156         definitions are expanded portably.  Reported by Simon Josefsson.
17157
17158 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
17159
17160         Fix polling for writeability of a screen buffer.
17161         * lib/poll.c: Distinguish input and screen buffers for the
17162         Win32 implementation.
17163         * lib/select.c: Likewise.
17164
17165 2009-08-19  Eric Blake  <ebb9@byu.net>
17166
17167         popen-safer: prevent popen from clobbering std descriptors
17168         * modules/popen-safer: New file.
17169         * lib/popen-safer.c: Likewise.
17170         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
17171         * lib/stdio--.h (popen): Provide override.
17172         * lib/stdio-safer.h (popen_safer): Provide declaration.
17173         * tests/test-popen.c (includes): Partially test this.
17174         * modules/popen-safer-tests: New file, for more tests.
17175         * tests/test-popen-safer.c: Likewise.
17176         * MODULES.html.sh (file stream based Input/Output): Mention it.
17177
17178         tests: test some of the *-safer modules
17179         * modules/fopen-safer (Depends-on): Add fopen.
17180         * modules/fcntl-safer (Depends-on): Add fcntl.
17181         * modules/stdlib-safer (Depends-on): Add stdlib.
17182         (configure.ac): Set indicator.
17183         * modules/unistd-safer (configure.ac): Likewise.
17184         * modules/tmpfile-safer (configure.ac): Likewise.
17185         (Depends-on): Add tmpfile.
17186         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
17187         active.
17188         * tests/test-fopen.c (includes): Test safer versions when they are
17189         in use.
17190         * tests/test-open.c (includes): Likewise.
17191
17192         popen: fix cygwin 1.5 bug when stdin closed
17193         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
17194         * modules/popen: New file.
17195         * modules/popen-tests: Likewise.
17196         * tests/test-popen.c: Likewise.
17197         * m4/popen.m4: Likewise.
17198         * lib/popen.c: Likewise.
17199         * lib/stdio.in.h (popen): New declaration.
17200         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
17201         * modules/stdio (Makefile.am): Likewise.
17202         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
17203
17204 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
17205
17206         maint.mk: give full control over update-copyright exclusions
17207         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
17208         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
17209         (update-copyright): Don't force inclusion of top-level
17210         ChangeLog.  Don't force exclusion of all COPYING files, but make
17211         them the default exclusion instead.
17212
17213 2009-08-16  Bruno Haible  <bruno@clisp.org>
17214
17215         Fix test failures on Solaris 10.
17216         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
17217         tests when Solaris iconv() is used.
17218         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
17219         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
17220         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
17221         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
17222         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
17223
17224 2009-08-16  Bruno Haible  <bruno@clisp.org>
17225
17226         Fix test failures on Solaris 10.
17227         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
17228         'tr' program and pass it as first argument.
17229         * tests/test-pipe-filter-gi1.sh: Likewise.
17230         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
17231         program as first argument.
17232         * tests/test-pipe-filter-gi1.c (main): Likewise.
17233
17234 2009-08-16  Eric Blake  <ebb9@byu.net>
17235
17236         fpurge: fix previous commits
17237         * modules/fpurge (Makefile.am): Make replacement conditional,
17238         partially reverting 2007-04-29 change; missed in previous
17239         attempt.
17240         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
17241         is missing.
17242
17243 2009-08-16  Bruno Haible  <bruno@clisp.org>
17244
17245         Clarify fpurge's effect on the file position.
17246         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
17247         * tests/test-fpurge.c (main): Make a second pass for checking the file
17248         position.
17249
17250 2009-08-16  Bruno Haible  <bruno@clisp.org>
17251
17252         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
17253         declaration of fpurge is missing.
17254         * tests/test-fpurge.c (main): Check that the file has not more contents
17255         than expected. Close the file before removing it.
17256
17257 2009-08-15  Eric Blake  <ebb9@byu.net>
17258
17259         fpurge: don't wrap working cygwin implementation
17260         * lib/fpurge.c (fpurge): Fix comment typo.
17261         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
17262         1.7 to avoid replacement.
17263         * tests/test-fpurge.c (main): Enhance test.
17264
17265 2009-08-15  Eric Blake  <ebb9@byu.net>
17266         and Jim Meyering  <meyering@redhat.com>
17267
17268         test-update-copyright: skip if perl is insufficient
17269         * tests/test-update-copyright.sh: Failure to run maintainer tool
17270         should not cause testsuite failure on cygwin 1.5.
17271
17272 2009-08-14  Eric Blake  <ebb9@byu.net>
17273
17274         doc: mention more functions added in cygwin 1.7.0
17275         * doc/posix-headers/limits.texi (limits.h): Update for recent
17276         cygwin additions.
17277         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
17278         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
17279         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
17280         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
17281         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
17282
17283 2009-08-14  Eric Blake  <ebb9@byu.net>
17284
17285         maint.mk: simplify update-copyright rule
17286         * top/maint.mk (update-copyright-local): Delete, and document how
17287         to do it in cfg.mk instead.
17288         (update-copyright-exclude-regexp): Delete, and document how to do
17289         it in .x-update-copyright instead.
17290         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
17291         exclude ChangeLog.
17292
17293 2009-08-14  Bruno Haible  <bruno@clisp.org>
17294
17295         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
17296
17297 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
17298
17299         maint.mk: support update-copyright-env
17300         * top/maint.mk (update-copyright-env): Define place-holder.
17301         (update-copyright): Expand $(update-copyright-env) before
17302         invoking update-copyright.
17303
17304 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
17305
17306         update-copyright: implement forced reformatting
17307         * build-aux/update-copyright: Implement and document
17308         UPDATE_COPYRIGHT_FORCE.
17309         * tests/test-update-copyright.sh: Test it.
17310
17311 2009-08-14  Eric Blake  <ebb9@byu.net>
17312         and Bruno Haible  <bruno@clisp.org>
17313
17314         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
17315         * tests/test-locale.c: Revert previous patch related to NULL.
17316         * tests/test-stdio.c: Likewise.
17317         * tests/test-stdlib.c: Likewise.
17318         * tests/test-string.c: Likewise.
17319         * tests/test-unistd.c: Likewise.
17320         * modules/time-tests (Depends-on): Add verify.
17321         * modules/wchar-tests (Depends-on): Likewise.
17322         * tests/test-time.c: Test for NULL compliance.
17323         * tests/test-wchar.c: Likewise.
17324         * modules/locale (Depends-on): Add stddef.
17325         * modules/stdio (Depends-on): Likewise.
17326         * modules/stdlib (Depends-on): Likewise.
17327         * modules/string (Depends-on): Likewise.
17328         * modules/time (Depends-on): Likewise.
17329         * modules/unistd (Depends-on): Likewise.
17330         * modules/wchar (Depends-on): Likewise.
17331         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
17332         * lib/stdlib.in.h (includes): Likewise.
17333         * lib/string.in.h (includes): Likewise.
17334         * lib/time.in.h (includes): Likewise.
17335         * lib/unistd.in.h (includes): Likewise.
17336         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
17337         replaced.
17338         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
17339         * m4/stddef_h.m4: New file.
17340         * modules/stddef: Likewise.
17341         * lib/stddef.in.h: Likewise.
17342         * modules/stddef-tests: Likewise.
17343         * tests/test-stddef.c: Likewise.
17344         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
17345         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
17346         * doc/posix-headers/locale.texi (locale.h): Likewise.
17347         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
17348         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
17349         * doc/posix-headers/string.texi (string.h): Likewise.
17350         * doc/posix-headers/time.texi (time.h): Likewise.
17351         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
17352         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
17353
17354 2009-08-14  Eric Blake  <ebb9@byu.net>
17355
17356         doc: improve git diff of texinfo files
17357         * .gitattributes: Add rule for *.texi files, with hint on how to
17358         use it.
17359         Copied from m4, and based on a report by Bruno Haible.
17360
17361 2009-08-14  Bruno Haible  <bruno@clisp.org>
17362
17363         Disable multithread support by default on Cygwin 1.5.x for real.
17364         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
17365
17366 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
17367
17368         update-copyright: much ado about intervals
17369         * build-aux/update-copyright: Implement and document
17370         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
17371         of copyright year intervals.
17372         Also, document UPDATE_COPYRIGHT_YEAR.
17373         * tests/test-update-copyright.sh: Test it.
17374
17375         update-copyright: convert 2-digit to 4-digit years
17376         * build-aux/update-copyright: Implement and document.
17377         * tests/test-update-copyright.sh: Update.
17378
17379 2009-08-14  Jim Meyering  <meyering@redhat.com>
17380
17381         test-exclude: avoid coreutils "make check" failure
17382         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
17383         just as in test-argmatch.c.
17384
17385 2009-08-13  Eric Blake  <ebb9@byu.net>
17386
17387         test-dup2: fix bad assumption
17388         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
17389         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
17390
17391         test-version-etc: fix CRLF portability issue
17392         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
17393         recognize \r.
17394         * tests/test-argp-version-etc-1.sh: Likewise.
17395
17396         getopt: update client modules
17397         * modules/argp (Depends-on): Use getopt-gnu.
17398         * modules/git-merge-changelog (Depends-on): Likewise.
17399         * modules/long-options (Depends-on): Likewise.
17400         * modules/xstrtol (Depends-on): Likewise.
17401
17402 2009-08-13  Simon Josefsson  <simon@josefsson.org>
17403
17404         * tests/test-version-etc.sh: Don't fail on different
17405         project/version.  Don't fail on CRLF differences.  Rewrite to use
17406         multiple -e instead of multiple sed forks, suggested by Eric Blake
17407         <ebb9@byu.net>.
17408         * tests/test-argp-version-etc-1.sh: Likewise.
17409
17410 2009-08-13  Simon Josefsson  <simon@josefsson.org>
17411
17412         * tests/test-version-etc.sh: Don't fail on different
17413         project/version.
17414
17415 2009-08-12  Bruno Haible  <bruno@clisp.org>
17416
17417         Tests for modules 'getopt-posix', 'getopt-gnu'.
17418         * modules/getopt-posix-tests: New file.
17419         * tests/test-getopt.c: New file.
17420         * tests/test-getopt.h: New file.
17421         * tests/test-getopt_long.h: New file.
17422
17423         New modules 'getopt-posix', 'getopt-gnu'.
17424         * modules/getopt-gnu: New file, renamed from modules/getopt.
17425         * modules/getopt-posix: New file.
17426         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
17427         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
17428         (gl_GETOPT): Remove macro.
17429         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
17430         Disable the test against BSD systems that declare optreset. Test
17431         against mingw bug. Test against lack of support of optional arguments
17432         on many platforms.
17433         * doc/glibc-headers/getopt.texi: Update module name and list of
17434         relevant platforms.
17435         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
17436         'getopt-gnu' and more portability problems.
17437         * NEWS: Mention the changes.
17438
17439 2009-08-12  Bruno Haible  <bruno@clisp.org>
17440
17441         Ensure that optarg etc. get declared by <unistd.h>.
17442         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
17443         AC_USE_SYSTEM_EXTENSIONS.
17444         * modules/getopt (Depends-on): Add 'extensions'.
17445
17446 2009-08-12  Bruno Haible  <bruno@clisp.org>
17447
17448         Avoid test link errors.
17449         * modules/pipe-filter-ii-tests (Makefile.am): Define
17450         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
17451         * modules/pipe-filter-gi-tests (Makefile.am): Define
17452         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
17453         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17454
17455 2009-08-12  Bruno Haible  <bruno@clisp.org>
17456
17457         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
17458         gl_GETOPT_SUBSTITUTE before.
17459         (gl_GETOPT): Use it.
17460         * m4/argp.m4 (gl_ARGP): Update.
17461         Reported by Sergey Poznyakoff.
17462
17463         * m4/getopt.m4: Reorder macros.
17464         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
17465         (gl_GETOPT_SUBSTITUTE): Remove macro.
17466
17467 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
17468
17469         Minor improvement in gitlog-to-changelog
17470
17471         * build-aux/gitlog-to-changelog: New option `--format' makes
17472         output format string configurable.
17473
17474 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
17475
17476         Optimize exclude: use hash tables for non-wildcard patterns.
17477
17478         * lib/exclude.c: Include hash.h and mbuiter.h
17479         (struct exclude_pattern, exclude_segment): New data types.
17480         (struct exclude): Rewrite.
17481         (fnmatch_pattern_has_wildcards): New function.
17482         (new_exclude_segment, free_exclude_segment): New functions.
17483         (excluded_file_pattern_p, excluded_file_name_p): New functions.
17484         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
17485         * lib/exclude.h (is_fnmatch_pattern): New prototype.
17486         * modules/exclude: Depend on hash and mbuiter.
17487
17488         * modules/exclude-tests: New file.
17489         * tests/test-exclude.c: New file.
17490         * tests/test-exclude1.sh: New file.
17491         * tests/test-exclude2.sh: New file.
17492         * tests/test-exclude3.sh: New file.
17493         * tests/test-exclude4.sh: New file.
17494         * tests/test-exclude5.sh: New file.
17495         * tests/test-exclude6.sh: New file.
17496         * tests/test-exclude7.sh: New file.
17497
17498 2009-08-12  Bruno Haible  <bruno@clisp.org>
17499
17500         Ensure that getopt() gets declared by <unistd.h>.
17501         * lib/unistd.in.h: Conditionally include getopt.h.
17502         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
17503         Set GNULIB_UNISTD_H_GETOPT.
17504         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17505         GNULIB_UNISTD_H_GETOPT.
17506         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
17507
17508 2009-08-12  Bruno Haible  <bruno@clisp.org>
17509
17510         Clarify logic.
17511         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
17512         gl_replace_getopt instead of GETOPT_H.
17513
17514 2009-08-12  Bruno Haible  <bruno@clisp.org>
17515
17516         * m4/getopt.m4: Add comments.
17517
17518 2009-08-12  Bruno Haible  <bruno@clisp.org>
17519
17520         Disable multithread support by default on Cygwin 1.5.x.
17521         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
17522         set gl_use_threads=no if not specified otherwise.
17523
17524 2009-08-11  Bruno Haible  <bruno@clisp.org>
17525
17526         Avoid compilation error on NetBSD 5.0.
17527         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
17528         * tests/test-stdio.c: Likewise.
17529         * tests/test-stdlib.c: Likewise.
17530         * tests/test-string.c: Likewise.
17531         * tests/test-unistd.c: Likewise.
17532         Reported by Greg Troxel <gdt@ir.bbn.com>
17533         at <https://savannah.gnu.org/support/?106973>.
17534
17535 2009-08-11  Bruno Haible  <bruno@clisp.org>
17536
17537         * modules/dup2-tests (Depends-on): Remove close.
17538
17539         Undo 2009-07-19 commit.
17540         * modules/acl-tests (Depends-on): Remove close.
17541         * modules/binary-io-tests (Depends-on): Likewise.
17542         * modules/closein-tests (Depends-on): Likewise.
17543         * modules/flock-tests (Depends-on): Likewise.
17544         * modules/fsync-tests (Depends-on): Likewise.
17545         * modules/lseek-tests (Depends-on): Likewise.
17546         * modules/pipe-tests (Depends-on): Likewise.
17547         * modules/posix_spawn-tests (Depends-on): Likewise.
17548         * modules/posix_spawnp-tests (Depends-on): Likewise.
17549         * modules/stat-time-tests (Depends-on): Likewise.
17550         * modules/yesno-tests (Depends-on): Likewise.
17551
17552 2009-08-10  Bruno Haible  <bruno@clisp.org>
17553
17554         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
17555
17556 2009-08-10  Bruno Haible  <bruno@clisp.org>
17557
17558         Fix a gcc warning.
17559         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
17560
17561 2009-08-10  Bruno Haible  <bruno@clisp.org>
17562
17563         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
17564         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
17565         not only the first time.
17566         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
17567         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
17568         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
17569         is 1, not only the the first time.
17570
17571 2009-08-10  Bruno Haible  <bruno@clisp.org>
17572
17573         Make it possible to use module 'gethostname' without module 'close'.
17574         * lib/unistd.in.h (close): Evoke a link error only if
17575         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
17576         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
17577         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17578         * modules/unistd (Makefile.am): Substitute
17579         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17580         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
17581         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
17582         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
17583         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17584         * modules/sys_ioctl (Makefile.am): Substitute
17585         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17586         * modules/socket (configure.ac): On native Windows, set
17587         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
17588         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
17589         Reported by Sam Steingold <sds@gnu.org>.
17590
17591 2009-08-10  Bruno Haible  <bruno@clisp.org>
17592
17593         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
17594         * modules/ioctl (configure.ac): Likewise.
17595
17596 2009-08-10  Bruno Haible  <bruno@clisp.org>
17597
17598         Avoid collision between gnulib wrapper and libintl wrapper.
17599         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
17600         already defined in intl/printf.c.
17601         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
17602         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
17603
17604 2009-08-09  Bruno Haible  <bruno@clisp.org>
17605
17606         Make <sys/select.h> really self-contained, also on Solaris 10.
17607         * lib/sys_select.in.h: Include <string.h>.
17608         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
17609         Solaris 10 problem.
17610         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
17611         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
17612         Reported by Jim Meyering.
17613
17614 2009-08-09  Bruno Haible  <bruno@clisp.org>
17615
17616         Avoid warnings from 'aclocal' that are due to a use of macro name
17617         AM_XGETTEXT_OPTION that is not defined in automake.
17618         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
17619         automake.
17620         * modules/error (configure.ac): Likewise.
17621         * modules/propername (configure.ac): Likewise.
17622         * modules/vasprintf (configure.ac): Likewise.
17623         * modules/verror (configure.ac): Likewise.
17624         * modules/xprintf (configure.ac): Likewise.
17625         * modules/xvasprintf (configure.ac): Likewise.
17626
17627 2009-08-08  Bruno Haible  <bruno@clisp.org>
17628
17629         Avoid compilation error in C++ mode.
17630         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
17631         Reported by Sam Steingold <sds@gnu.org>.
17632
17633 2009-08-08  Bruno Haible  <bruno@clisp.org>
17634
17635         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
17636         for the various Unix platforms.
17637         * doc/posix-headers/limits.texi: Update platforms list regarding
17638         HOST_NAME_MAX.
17639         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17640
17641 2009-08-07  Jim Meyering  <meyering@redhat.com>
17642
17643         selinux-at: fix typo in a comment
17644         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
17645         Spotted by Paolo Bonzini.
17646
17647         selinux-at: remove redundant m4 code, add documentation
17648         * modules/selinux-at (configure.ac): Remove redundant code.
17649         LIB_SELINUX is already set via the dependent module, selinux-h.
17650         (Include): Add quotes around selinux-at.h.
17651         * lib/selinux-at.h: Add documentation.
17652         Reported by Bruno Haible in
17653         http://marc.info/?l=gnulib-bug&m=124958988300749
17654
17655 2009-08-07  Bruno Haible  <bruno@clisp.org>
17656
17657         Avoid link error on MacOS X 10.3 and 10.4.
17658         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
17659         on non-ELF systems.
17660         * lib/argp-pv.c (argp_program_version): Likewise.
17661         Reported by Simon Josefsson.
17662
17663 2009-08-07  Simon Josefsson  <simon@josefsson.org>
17664
17665         * tests/test-version-etc.sh: Use $EXEEXT.
17666
17667 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
17668
17669         update-copyright: update documentation to point to maint.mk
17670         * build-aux/update-copyright: Here.
17671
17672 2009-08-06  Jim Meyering  <meyering@redhat.com>
17673
17674         maint.mk: support update-copyright-local
17675         * top/maint.mk (update-copyright-local): Define place-holder.
17676         (update-copyright): Depend on $(update-copyright-local).
17677
17678 2009-08-06  Jim Meyering  <meyering@redhat.com>
17679
17680         selinux-at: new module
17681         Initially written for coreutils, this module will soon be
17682         used by findutils, too.
17683         * MODULES.html.sh [Misc]: Add selinux-at.
17684         * lib/selinux-at.h: New file, from coreutils.
17685         * lib/selinux-at.c: Likewise.
17686         * modules/selinux-at: Likewise.
17687         (License): Change from LGPL to GPL, since it depends
17688         on the GPL'd openat module.
17689
17690         doc: update README
17691         * README: Remove references to cogito.
17692         Remove cvs-repo-updating instructions from 2007.
17693         Don't imply that CVS is better if you have limited disk space.
17694
17695 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17696
17697         update-copyright: support C-style comments
17698         * build-aux/update-copyright: Implement and document.
17699         * tests/test-update-copyright.sh: Test.
17700
17701 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17702
17703         update-copyright: support omitted "(C)"
17704         * build-aux/update-copyright: Implement and document.  Also,
17705         allow variable whitespace before "(C)".
17706         * tests/test-update-copyright.sh: Test.
17707
17708 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17709
17710         update-copyright: don't trip on non-FSF copyright statements
17711         * build-aux/update-copyright: Fix so that the first correctly
17712         formatted FSF copyright statement is recognized no matter what
17713         appears before it.  Update documentation.
17714         * tests/test-update-copyright.sh: Test that.
17715
17716 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17717
17718         update-copyright: clean up code a little
17719         * build-aux/update-copyright: Append "_re" to the name of any
17720         variable holding a regular expression.
17721         Replace "old" and "new" with "stmt" in variable names.
17722         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
17723         handled correctly.
17724         Format code more consistently.
17725
17726 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
17727
17728         update-copyright-tests: improve portability
17729         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
17730         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
17731
17732 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
17733
17734         update-copyright: support @copyright{} and &copy;
17735         * build-aux/update-copyright: Implement and document.
17736         * tests/test-update-copyright.sh: Test.
17737
17738 2009-08-04  Jim Meyering  <meyering@redhat.com>
17739
17740         update-copyright-tests: correctly test EOL=\r\n handling
17741         * tests/test-update-copyright.sh: Put \r at the end of some lines
17742         for the dos-eol tests.  Based on a patch by Joel E. Denny.
17743
17744         maint.mk: make update-copyright exclusion list more configurable
17745         * top/maint.mk (update-copyright): Default to excluding COPYING,
17746         but allow an override, in case someone does want to update that file.
17747
17748         maint.mk: don't update copyright date in COPYING
17749         * top/maint.mk (update-copyright): Exclude COPYING.
17750
17751         maint.mk: add a copyright-updating rule
17752         * top/maint.mk (update-copyright): New rule.
17753         Derived from coreutils/Makefile.am.
17754
17755         update-copyright: rename some variables
17756         * build-aux/update-copyright: Rename a few variables for clarity.
17757         Tweak syntax.  List Joel E. Denny as coauthor.
17758
17759 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
17760
17761         update-copyright: fix bug for 2-digit last year and add tests
17762         * build-aux/update-copyright: Fix bug.
17763         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
17764         specified.
17765         * modules/update-copyright-tests: New
17766         * tests/test-update-copyright.sh: New.
17767
17768 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
17769
17770         update-copyright: handle leading tabs in line prefix
17771         * build-aux/update-copyright: Count leading tabs as 8 spaces
17772         when computing margin.  This helps with the formatting of
17773         ChangeLogs, for example.
17774         Fix documentation a little.
17775
17776 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
17777
17778         update-copyright: support EOL=\r\n
17779         * build-aux/update-copyright: Implement that.
17780
17781 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
17782
17783         update-copyright: automatically format copyright statements
17784         * build-aux/update-copyright: Implement that.
17785         Also, be a little more predictable and safer by always failing
17786         when the full copyright format is not perfectly recognized as an
17787         unbroken whole.  Discussed at
17788         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
17789         Rewrite documentation.
17790
17791 2009-08-03  Bruno Haible  <bruno@clisp.org>
17792
17793         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
17794
17795 2009-08-02  Bruno Haible  <bruno@clisp.org>
17796
17797         Tests for module 'uname'.
17798         * modules/uname-tests: New file.
17799         * tests/test-uname.c: New file.
17800
17801         New module 'uname'.
17802         * lib/uname.c: New file.
17803         * m4/uname.m4: New file.
17804         * modules/uname: New file.
17805         * doc/posix-functions/uname.texi: Mention the new module.
17806
17807 2009-08-02  Bruno Haible  <bruno@clisp.org>
17808
17809         Tests for module 'sys_utsname'.
17810         * modules/sys_utsname-tests: New file.
17811         * tests/test-sys_utsname.c: New file.
17812
17813         New module 'sys_utsname'.
17814         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
17815         * m4/sys_utsname_h.m4: New file.
17816         * modules/sys_utsname: New file.
17817         * doc/posix-headers/sys_utsname.texi: Mention the new module.
17818
17819 2009-08-02  Bruno Haible  <bruno@clisp.org>
17820
17821         Implicitly initialize the sockets library.
17822         * lib/gethostname.c: Include sockets.h.
17823         (rpl_gethostname): Invoke gl_sockets_startup.
17824         * lib/socket.c: Include sockets.h.
17825         (rpl_socket): Invoke gl_sockets_startup.
17826         * modules/gethostname (Depends-on): Add sockets.
17827         * modules/socket (Depends-on): Likewise.
17828         * tests/test-poll.c: Don't include sockets.h.
17829         (main): Don't invoke gl_sockets_startup.
17830         * tests/test-select.c: Don't include sockets.h.
17831         (main): Don't invoke gl_sockets_startup.
17832
17833 2009-08-02  Bruno Haible  <bruno@clisp.org>
17834
17835         Allow multiple calls to gl_sockets_startup.
17836         * lib/sockets.c (initialized_sockets_version): New variable.
17837         (gl_sockets_startup): Do nothing if already called for this or a higher
17838         version.
17839         (gl_sockets_cleanup): Reset initialized_sockets_version.
17840
17841 2009-08-03  Simon Josefsson  <simon@josefsson.org>
17842
17843         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
17844         different project/version.
17845
17846 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
17847             Bruno Haible  <bruno@clisp.org>
17848
17849         Tests for module 'pipe-filter-gi'.
17850         * modules/pipe-filter-gi-tests: New file.
17851         * tests/test-pipe-filter-gi1.sh: New file.
17852         * tests/test-pipe-filter-gi1.c: New file.
17853         * tests/test-pipe-filter-gi2.sh: New file.
17854         * tests/test-pipe-filter-gi2-main.c: New file.
17855         * tests/test-pipe-filter-gi2-child.c: New file.
17856
17857         New module 'pipe-filter-gi'.
17858         * lib/pipe-filter-gi.c: New file.
17859         * modules/pipe-filter-gi: New file.
17860
17861 2009-08-02  Bruno Haible  <bruno@clisp.org>
17862             Paolo Bonzini  <bonzini@gnu.org>
17863
17864         Tests for module 'pipe-filter-ii'.
17865         * modules/pipe-filter-ii-tests: New file.
17866         * tests/test-pipe-filter-ii1.sh: New file.
17867         * tests/test-pipe-filter-ii1.c: New file.
17868         * tests/test-pipe-filter-ii2.sh: New file.
17869         * tests/test-pipe-filter-ii2-main.c: New file.
17870         * tests/test-pipe-filter-ii2-child.c: New file.
17871
17872         New module 'pipe-filter-ii'.
17873         * lib/pipe-filter.h: New file.
17874         * lib/pipe-filter-ii.c: New file.
17875         * lib/pipe-filter-aux.h: New file.
17876         * modules/pipe-filter-ii: New file.
17877
17878 2009-08-02  Simon Josefsson  <simon@josefsson.org>
17879
17880         * lib/gc-libgcrypt.c: Change copyright to FSF.
17881         * lib/gc-gnulib.c: Likewise.
17882
17883 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
17884
17885         * lib/gethostname.c: Include limits.h.
17886
17887 2009-08-02  Simon Josefsson  <simon@josefsson.org>
17888             Bruno Haible  <bruno@clisp.org>
17889
17890         Ensure HOST_NAME_MAX as part of the gethostname module.
17891         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
17892         define also HOST_NAME_MAX.
17893         * tests/test-gethostname.c: Include <limits.h>.
17894         (main): Check also HOST_NAME_MAX.
17895         * doc/posix-headers/limits.texi: Document the mingw problem.
17896
17897 2009-08-02  Bruno Haible  <bruno@clisp.org>
17898
17899         * lib/gethostname.c (gethostname): Fix handling of large len argument.
17900         Add comments.
17901
17902 2009-03-31  Simon Josefsson  <simon@josefsson.org>
17903
17904         * lib/gethostname.c: Add Windows wrapper.
17905         * m4/gethostname.m4: Look for gethostname in -lws2_32.
17906         * modules/gethostname: Depend on sys_socket & errno, for also
17907         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
17908         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
17909
17910 2009-07-31  Jim Meyering  <meyering@redhat.com>
17911
17912         getloadavg: fix symbol name in comment
17913         * lib/getloadavg.c: Correct a typo I introduced when adding
17914         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
17915         Matt Kraai spotted the problem.
17916
17917 2009-07-29  Matt Kraai  <mkraai@beckman.com>
17918
17919         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
17920         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
17921         code also if ! defined N_NAME_POINTER.
17922         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
17923         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
17924         but the n_name member is a 12-byte array.
17925
17926 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
17927
17928         update-copyright: generalize comment handling
17929         * build-aux/update-copyright: Handle copyright statements
17930         within more comment styles.
17931         Document usage.
17932         Report any file with an external copyright holder or parse failure.
17933
17934 2009-07-29  Jim Meyering  <meyering@redhat.com>
17935
17936         mktime: correct setting of REPLACE_MKTIME
17937         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
17938
17939         update-copyright: new module
17940         * modules/update-copyright: New file.
17941         * build-aux/update-copyright: New file.
17942         * MODULES.html.sh (maint+release support): Add update-copyright.
17943
17944 2009-07-27  Bruno Haible  <bruno@clisp.org>
17945
17946         Fix compilation error when <ctime> is used and mktime is replaced.
17947         * lib/time.in.h (mktime): New declaration.
17948         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
17949         REPLACE_MKTIME instead of defining mktime in config.h.
17950         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
17951         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
17952         Reported by Ross McFarland <rwmcfa1@neces.com>.
17953
17954 2009-07-27  Bruno Haible  <bruno@clisp.org>
17955
17956         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
17957         Reported by Matt Kraai <mkraai@beckman.com>.
17958
17959 2009-07-25  Jim Meyering  <meyering@redhat.com>
17960
17961         maint.mk: avoid warnings about missing files
17962         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
17963         diagnostic when .prev-version does not exist.
17964         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
17965         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
17966         nonexistent cfg.mk.
17967         Suggestions from Simon Josefsson.
17968
17969 2009-07-25  Bruno Haible  <bruno@clisp.org>
17970
17971         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
17972         defined as macros. Needed on QNX 6.4.1.
17973         Reported by Matt Kraai <mkraai@beckman.com>.
17974
17975 2009-07-23  Jim Meyering  <meyering@redhat.com>
17976
17977         maint.mk: invoke "make dist" with a working value of XZ_OPT
17978         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
17979
17980 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
17981
17982         Make fseeko.c compile on QNX.
17983         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
17984
17985 2009-07-22  Peter Simons  <simons@cryp.to>
17986
17987         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
17988         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
17989         * lib/md4.h: Likewise.
17990         * lib/md5.h: Likewise.
17991         * lib/sha1.h: Likewise.
17992         * lib/sha256.h: Likewise.
17993         * lib/sha512.h: Likewise.
17994
17995         tests-sha1: don't assign literal string to 'char *' variable
17996         * tests/test-sha1.c (main): Declare locals with "const" to match
17997         attributes of the right hand side.
17998
17999 2009-07-21  Eric Blake  <ebb9@byu.net>
18000
18001         dup2: fix more mingw problems
18002         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
18003         fd to itself.
18004         * doc/posix-functions/dup2.texi (dup2): Document the bug.
18005         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
18006         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
18007         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
18008         care of mingw bugs.
18009
18010 2009-07-21  Jim Meyering  <meyering@redhat.com>
18011
18012         vc-list-files: avoid failure when /bin/sh is dash
18013         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
18014         On some Debian based systems, /bin/sh is a symlink to dash, and running
18015         this command would omit the "/" following each 'tests' prefix:
18016           dash -x build-aux/vc-list-files -C . tests
18017         That is because bash and dash work differently:
18018           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
18019           bash ok
18020           dash odd
18021
18022 2009-07-21  Eric Blake  <ebb9@byu.net>
18023
18024         dup2-tests: test previous patch
18025         * modules/dup2-tests: New file.
18026         * tests/test-dup2.c: Likewise.
18027         * tests/test-open.c (main): Avoid unspecified behavior.
18028         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
18029         test.
18030
18031         dup2: work around mingw and cygwin 1.5 bug
18032         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
18033         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
18034         * modules/unistd (Makefile.am): Substitute it.
18035         * lib/unistd.in.h (dup2): Declare the replacement.
18036         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
18037         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
18038         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
18039         * modules/execute (Depends-on): Add dup2.
18040         * modules/fseterr (Depends-on): Likewise.
18041         * modules/pipe (Depends-on): Likewise.
18042         * modules/posix_spawn-internal (Depends-on): Likewise.
18043
18044 2009-07-21  Bruno Haible  <bruno@clisp.org>
18045
18046         * modules/.gitattributes: New file.
18047
18048 2009-07-20  Bruno Haible  <bruno@clisp.org>
18049
18050         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
18051         (main): Use it.
18052
18053 2009-07-20  Eric Blake  <ebb9@byu.net>
18054
18055         test-pipe: make a bit more robust.
18056         * tests/test-pipe.c (myerr): Allow error messages regardless of
18057         what we do to stderr.
18058         (test_pipe): Rearrange to avoid deadlock.
18059         (child_main): Try a larger read, to ensure we avoided deadlock.
18060         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
18061         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
18062         if misused.
18063
18064 2009-07-19  Jim Meyering  <meyering@redhat.com>
18065
18066         fts: avoid false-positive cycle-detection
18067         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
18068         for each new command line argument.
18069
18070 2009-07-19  Bruno Haible  <bruno@clisp.org>
18071
18072         Fix build error on mingw with the modules sys_select and unistd.
18073         * modules/acl-tests (Depends-on): Add close.
18074         * modules/binary-io-tests (Depends-on): Likewise.
18075         * modules/closein-tests (Depends-on): Likewise.
18076         * modules/flock-tests (Depends-on): Likewise.
18077         * modules/fsync-tests (Depends-on): Likewise.
18078         * modules/lseek-tests (Depends-on): Likewise.
18079         * modules/pipe-tests (Depends-on): Likewise.
18080         * modules/posix_spawn-tests (Depends-on): Likewise.
18081         * modules/posix_spawnp-tests (Depends-on): Likewise.
18082         * modules/stat-time-tests (Depends-on): Likewise.
18083         * modules/yesno-tests (Depends-on): Likewise.
18084
18085 2009-07-19  Bruno Haible  <bruno@clisp.org>
18086
18087         Unify conditionals.
18088         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
18089         macros, not at the compiler macros.
18090         * lib/pipe.c: Likewise.
18091         * lib/execute.c: Likewise.
18092         * lib/spawni.c: Likewise.
18093
18094 2009-07-19  Bruno Haible  <bruno@clisp.org>
18095
18096         Fix handling of closed stdin/stdout/stderr on mingw.
18097         * lib/w32spawn.h: Include unistd.h.
18098         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
18099         file descriptor with O_NOINHERIT flag.
18100         (fd_safer_noinherit): New function, based on fd-safer.c.
18101         (dup_safer_noinherit): New function, based on dup-safer.c.
18102         (undup_safer_noinherit): New function.
18103         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
18104         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
18105         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
18106         instead of fd_safer.
18107         * tests/test-pipe.c: Include <windows.h>.
18108         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
18109
18110         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
18111         from main.
18112         (test_pipe): Pass an extra argument for disambiguation.
18113         (main): Invoke parent_main or child_main.
18114
18115         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
18116         consistently.
18117
18118 2009-07-18  Eric Blake  <ebb9@byu.net>
18119
18120         test-pipe: fix mingw build
18121         * tests/test-pipe.c (main): Avoid fcntl on mingw.
18122
18123 2009-07-18  Bruno Haible  <bruno@clisp.org>
18124
18125         * modules/pipe-tests (Makefile.am): Fix typo.
18126
18127 2009-07-18  Eric Blake  <ebb9@byu.net>
18128
18129         error: fix mingw build
18130         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
18131         Reported by Bruno Haible.
18132
18133         error: avoid undefined use of stdout
18134         * lib/error.c (error, error_at_line): Check that fd 1 is open
18135         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
18136         is handling faults and the close_stdout module wants to report the
18137         detection of closed stdout as an error.
18138
18139 2009-07-17  Eric Blake  <ebb9@byu.net>
18140
18141         pipe: be robust in face of closed fds
18142         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
18143         should cause child to misbehave.
18144         * modules/pipe-tests: New module.
18145         * tests/test-pipe.c: New file.
18146         * tests/test-pipe.sh: New file.
18147         Reported by Akim Demaille.
18148
18149 2009-07-14  Bruno Haible  <bruno@clisp.org>
18150
18151         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
18152         Reported by anonymous kc.
18153
18154 2009-07-07  Jim Meyering  <meyering@redhat.com>
18155
18156         maint.mk: don't look for translatable strings in *.m4 or *.mk
18157         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
18158         when searching for translatable strings.
18159
18160 2009-07-05  Jim Meyering  <meyering@redhat.com>
18161
18162         remove superfluous parentheses in STREQ definition
18163         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
18164         * lib/getugroups.c (STREQ): Likewise.
18165         * lib/fnmatch.c (STREQ): Likewise.
18166         Spotted by Bruno Haible.
18167
18168 2009-07-04  Jim Meyering  <meyering@redhat.com>
18169
18170         argv-iter: new module
18171         * MODULES.html.sh: Add argv-iter.
18172         * lib/argv-iter.c, lib/argv-iter.h: New files.
18173         * modules/argv-iter: New file.
18174         * modules/argv-iter-tests: New file.
18175         * tests/test-argv-iter.c: Test it.
18176
18177 2009-07-04  Bruno Haible  <bruno@clisp.org>
18178
18179         Fix assertion.
18180         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
18181         contains more exact copies of a given entry than file2, leave the extra
18182         copies unpaired rather than aborting.
18183         Reported by Eric Blake.
18184
18185 2009-07-02  Bruno Haible  <bruno@clisp.org>
18186
18187         Speedup git-merge-changelog for git cherry-pick.
18188         * lib/git-merge-changelog.c (struct entries_mapping): New type.
18189         (entries_mapping_get): New function, extracted from compute_mapping.
18190         (entries_mapping_reverse_get): New function.
18191         (compute_mapping): Add a 'full' argument. Return the result in a
18192         'struct entries_mapping'.
18193         (main): Update. Access the mappings through entries_mapping_get.
18194         Reported by Eric Blake.
18195
18196 2009-07-02  Bruno Haible  <bruno@clisp.org>
18197
18198         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
18199         best_i.
18200
18201 2009-07-02  Bruno Haible  <bruno@clisp.org>
18202
18203         Speed up approximate search for matching ChangeLog entries.
18204         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
18205         argument. Call fstrcmp_bounded instead of fstrcmp.
18206         (compute_mapping, try_split_merged_entry, main): Update callers.
18207
18208 2009-07-02  Bruno Haible  <bruno@clisp.org>
18209
18210         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
18211
18212 2009-06-30  Bruno Haible  <bruno@clisp.org>
18213
18214         Reduce the number of uc_is_cased calls.
18215         * lib/unicase.h (casing_suffix_context_t): Add
18216         'first_char_except_ignorable' field.
18217         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
18218         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
18219         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
18220         Update initializer.
18221         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
18222         case-ignorable characters.
18223         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
18224         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
18225         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
18226         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
18227         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
18228
18229 2009-06-30  Bruno Haible  <bruno@clisp.org>
18230
18231         Tests for module 'unicase/ignorable'.
18232         * modules/unicase/ignorable-tests: New file.
18233         * tests/unicase/test-ignorable.c: New file, generated by
18234         gen-uni-tables.
18235
18236         Tests for module 'unicase/cased'.
18237         * modules/unicase/cased-tests: New file.
18238         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
18239         * tests/unicase/test-predicate-part1.h: New file, derived from
18240         tests/unictype/test-predicate-part1.h.
18241         * tests/unicase/test-predicate-part2.h: New file, same as
18242         tests/unictype/test-predicate-part2.h.
18243
18244         Fix evaluation of "Before C" condition of FINAL_SIGMA.
18245         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
18246         (output_casing_properties): New function.
18247         (main): Call it.
18248         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
18249         * lib/unicase/cased.c: Include unictype/bitmap.h.
18250         (uc_is_cased): Define through a bitmap lookup.
18251         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
18252         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
18253         (uc_is_case_ignorable): Define through a bitmap lookup.
18254         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
18255         lib/unictype/bitmap.h.
18256         (Depends-on): Add inline. Clean up.
18257         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
18258         lib/unictype/bitmap.h.
18259         (Depends-on): Add inline. Clean up.
18260         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
18261         recognition.
18262         * tests/unicase/test-u16-tolower.c (main): Likewise.
18263         * tests/unicase/test-u32-tolower.c (main): Likewise.
18264
18265 2009-06-30  Bruno Haible  <bruno@clisp.org>
18266
18267         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
18268         * lib/unicase/u16-casemap.c: Likewise.
18269         * lib/unicase/u32-casemap.c: Likewise.
18270
18271 2009-06-29  Bruno Haible  <bruno@clisp.org>
18272
18273         Define u32_casefold as a wrapper around u32_ct_casefold.
18274         * lib/unicase/u32-casefold.c: Update.
18275         * modules/unicase/u32-casefold (Depends-on): Add
18276         unicase/u32-ct-casefold, unicase/empty-prefix-context,
18277         unicase/empty-suffix-context. Clean up.
18278
18279         Define u16_casefold as a wrapper around u16_ct_casefold.
18280         * lib/unicase/u16-casefold.c: Update.
18281         * modules/unicase/u16-casefold (Depends-on): Add
18282         unicase/u16-ct-casefold, unicase/empty-prefix-context,
18283         unicase/empty-suffix-context. Clean up.
18284
18285         Define u8_casefold as a wrapper around u8_ct_casefold.
18286         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
18287         * lib/unicase/u8-casefold.c: Update.
18288         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
18289         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
18290
18291         Define u32_totitle as a wrapper around u32_ct_totitle.
18292         * lib/unicase/u32-totitle.c: Update.
18293         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
18294         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
18295
18296         Define u16_totitle as a wrapper around u16_ct_totitle.
18297         * lib/unicase/u16-totitle.c: Update.
18298         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
18299         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
18300
18301         Define u8_totitle as a wrapper around u8_ct_totitle.
18302         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
18303         functions.
18304         (FUNC): Delegate to U_CT_TOTITLE.
18305         * lib/unicase/u8-totitle.c: Update.
18306         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
18307         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
18308
18309         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
18310         invocation.
18311         * modules/unicase/u32-tolower (Depends-on): Add
18312         unicase/empty-prefix-context, unicase/empty-suffix-context.
18313
18314         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
18315         invocation.
18316         * modules/unicase/u16-tolower (Depends-on): Add
18317         unicase/empty-prefix-context, unicase/empty-suffix-context.
18318
18319         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
18320         * modules/unicase/u8-tolower (Depends-on): Add
18321         unicase/empty-prefix-context, unicase/empty-suffix-context.
18322
18323         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
18324         invocation.
18325         * modules/unicase/u32-toupper (Depends-on): Add
18326         unicase/empty-prefix-context, unicase/empty-suffix-context.
18327
18328         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
18329         invocation.
18330         * modules/unicase/u16-toupper (Depends-on): Add
18331         unicase/empty-prefix-context, unicase/empty-suffix-context.
18332
18333         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
18334         * modules/unicase/u8-toupper (Depends-on): Add
18335         unicase/empty-prefix-context, unicase/empty-suffix-context.
18336
18337         New module 'unicase/u32-ct-casefold'.
18338         * lib/unicase/u32-ct-casefold.c: New file.
18339         * modules/unicase/u32-ct-casefold: New file.
18340
18341         New module 'unicase/u16-ct-casefold'.
18342         * lib/unicase/u16-ct-casefold.c: New file.
18343         * modules/unicase/u16-ct-casefold: New file.
18344
18345         New module 'unicase/u8-ct-casefold'.
18346         * lib/unicase/u8-ct-casefold.c: New file.
18347         * lib/unicase/u-ct-casefold.h: New file, derived from
18348         lib/unicase/u-casefold.h.
18349         * modules/unicase/u8-ct-casefold: New file.
18350
18351         New module 'unicase/u32-ct-totitle'.
18352         * lib/unicase/u32-ct-totitle.c: New file.
18353         * modules/unicase/u32-ct-totitle: New file.
18354
18355         New module 'unicase/u16-ct-totitle'.
18356         * lib/unicase/u16-ct-totitle.c: New file.
18357         * modules/unicase/u16-ct-totitle: New file.
18358
18359         New module 'unicase/u8-ct-totitle'.
18360         * lib/unicase/u8-ct-totitle.c: New file.
18361         * lib/unicase/u-ct-totitle.h: New file, derived from
18362         lib/unicase/u-totitle.h.
18363         * modules/unicase/u8-ct-totitle: New file.
18364
18365         New module 'unicase/u32-ct-tolower'.
18366         * lib/unicase/u32-ct-tolower.c: New file.
18367         * modules/unicase/u32-ct-tolower: New file.
18368
18369         New module 'unicase/u16-ct-tolower'.
18370         * lib/unicase/u16-ct-tolower.c: New file.
18371         * modules/unicase/u16-ct-tolower: New file.
18372
18373         New module 'unicase/u8-ct-tolower'.
18374         * lib/unicase/u8-ct-tolower.c: New file.
18375         * modules/unicase/u8-ct-tolower: New file.
18376
18377         New module 'unicase/u32-ct-toupper'.
18378         * lib/unicase/u32-ct-toupper.c: New file.
18379         * modules/unicase/u32-ct-toupper: New file.
18380
18381         New module 'unicase/u16-ct-toupper'.
18382         * lib/unicase/u16-ct-toupper.c: New file.
18383         * modules/unicase/u16-ct-toupper: New file.
18384
18385         New module 'unicase/u8-ct-toupper'.
18386         * lib/unicase/u8-ct-toupper.c: New file.
18387         * modules/unicase/u8-ct-toupper: New file.
18388
18389         Add context arguments to u*_casemap functions.
18390         * lib/unicase/unicasemap.h: Include unicase.h.
18391         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
18392         suffix_context arguments.
18393         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
18394         functions.
18395         (FUNC): Add prefix_context and suffix_context arguments. Use
18396         uc_is_cased and uc_is_case_ignorable.
18397         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
18398         * lib/unicase/u16-casemap.c: Likewise.
18399         * lib/unicase/u32-casemap.c: Likewise.
18400         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
18401         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
18402         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
18403         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
18404         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
18405         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
18406
18407         New module 'unicase/u32-suffix-context'.
18408         * lib/unicase/u32-suffix-context.c: New file.
18409         * modules/unicase/u32-suffix-context: New file.
18410
18411         New module 'unicase/u16-suffix-context'.
18412         * lib/unicase/u16-suffix-context.c: New file.
18413         * modules/unicase/u16-suffix-context: New file.
18414
18415         New module 'unicase/u8-suffix-context'.
18416         * lib/unicase/u8-suffix-context.c: New file.
18417         * lib/unicase/u-suffix-context.h: New file.
18418         * modules/unicase/u8-suffix-context: New file.
18419
18420         New module 'unicase/empty-suffix-context'.
18421         * lib/unicase/empty-suffix-context.c: New file.
18422         * modules/unicase/empty-suffix-context: New file.
18423
18424         New module 'unicase/u32-prefix-context'.
18425         * lib/unicase/u32-prefix-context.c: New file.
18426         * modules/unicase/u32-prefix-context: New file.
18427
18428         New module 'unicase/u16-prefix-context'.
18429         * lib/unicase/u16-prefix-context.c: New file.
18430         * modules/unicase/u16-prefix-context: New file.
18431
18432         New module 'unicase/u8-prefix-context'.
18433         * lib/unicase/u8-prefix-context.c: New file.
18434         * lib/unicase/u-prefix-context.h: New file.
18435         * lib/unicase/context.h: New file.
18436         * modules/unicase/u8-prefix-context: New file.
18437
18438         New module 'unicase/empty-prefix-context'.
18439         * lib/unicase/empty-prefix-context.c: New file.
18440         * modules/unicase/empty-prefix-context: New file.
18441
18442         New module 'unicase/ignorable'.
18443         * lib/unicase/ignorable.c: New file.
18444         * modules/unicase/ignorable: New file.
18445
18446         New module 'unicase/cased'.
18447         * lib/unicase/caseprop.h: New file.
18448         * lib/unicase/cased.c: New file.
18449         * modules/unicase/cased: New file.
18450
18451         New functions for case mapping of substrings.
18452         * lib/unicase.h (casing_prefix_context_t): New type.
18453         (unicase_empty_prefix_context): New variable.
18454         (u8_casing_prefix_context, u16_casing_prefix_context,
18455         u32_casing_prefix_context, u8_casing_prefixes_context,
18456         u16_casing_prefixes_context, u32_casing_prefixes_context): New
18457         declarations.
18458         (casing_suffix_context_t): New type.
18459         (unicase_empty_suffix_context): New variable.
18460         (u8_casing_suffix_context, u16_casing_suffix_context,
18461         u32_casing_suffix_context, u8_casing_suffixes_context,
18462         u16_casing_suffixes_context, u32_casing_suffixes_context,
18463         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
18464         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
18465         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
18466         declarations.
18467
18468 2009-06-28  Jim Meyering  <meyering@redhat.com>
18469
18470         boostrap: indent only with spaces
18471         * build-aux/bootstrap: Indent only with spaces, never TABs.
18472
18473         bootstrap: split long lines
18474         * build-aux/bootstrap: Keep line length < 80.
18475
18476         bootstrap: sync from coreutils
18477         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
18478         just as autoreconf does.  Verify a list of prerequisite
18479         package-name,version-number pairs if defined in bootstrap.conf.
18480         Refer to README-prereq, if prerequisites are not satisfied.
18481
18482 2009-06-27  Eric Blake  <ebb9@byu.net>
18483
18484         tests: add test for bogus NULL definition
18485         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
18486         * tests/test-stdlib.c: Likewise.
18487         * tests/test-string.c: Likewise.
18488         * tests/test-locale.c: Likewise.
18489         * tests/test-unistd.c: Likewise.
18490         * modules/stdio-tests (Depends-on): Add verify.
18491         * modules/stdlib-tests (Depends-on): Likewise.
18492         * modules/string-tests (Depends-on): Likewise.
18493         * modules/locale-tests (Depends-on): Likewise.
18494         * modules/unistd-tests (Depends-on): Likewise.
18495
18496 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
18497
18498         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
18499         self-explaining comment.
18500         * m4/selinux-selinux-h: Update serial.
18501         (gl_LIBSELINUX): New macro, adding a warning for missing development
18502         packages to code extracted from...
18503         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
18504         Add warning for missing development packages here, too.
18505
18506 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
18507
18508         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
18509
18510 2009-06-25  Eric Blake  <ebb9@byu.net>
18511
18512         version-etc: fix regression
18513         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
18514         gcc.
18515         (version_etc): Use it, to catch bugs with trailing NULL.
18516         * lib/version-etc.c (version_etc_arn): Delete unused argument.
18517         (version_etc_va): Fix logic bug.
18518         * modules/version-etc-tests: Add test.
18519         * tests/test-version-etc.c: New file.
18520         * tests/test-version-etc.sh: Likewise.
18521
18522 2009-06-25  Sam Steingold  <sds@gnu.org>
18523
18524         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
18525         mbtowc declaration.
18526
18527 2009-06-25  Eric Blake  <ebb9@byu.net>
18528
18529         fpurge: migrate into <stdio.h>
18530         * lib/fpurge.h: Delete...
18531         * lib/stdio.in.h (fpurge): ...and declare here, instead.
18532         * lib/fpurge.c (fpurge): Change declaring header.
18533         * modules/fpurge (Files): Drop deleted file.
18534         (Depends-on): Add stdio.
18535         (configure.ac): Set witness.
18536         * modules/stdio (Makefile.am): Support fpurge macros.
18537         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
18538         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
18539         * lib/fflush.c: Update client.
18540         * tests/test-fpurge.c: Likewise.
18541         * NEWS: Mention the change.
18542
18543 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
18544
18545         * lib/argp-version-etc.c (program_authors): Add const
18546         qualifier.
18547         * lib/version-etc.c: Fix typos in the comments.
18548         * modules/argp-version-etc: Depends on version-etc.
18549
18550 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
18551
18552         argp-version-etc: new module.
18553
18554         * lib/argp-version-etc.c: New file.
18555         * lib/argp-version-etc.h: New file.
18556         * modules/argp-version-etc: New file.
18557         * modules/argp-version-etc-tests: New file.
18558         * tests/test-argp-version-etc.c: New test.
18559         * tests/test-argp-version-etc-1.sh: New test.
18560
18561 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
18562
18563         Provide additional interfaces and documentation for version-etc
18564         module.
18565
18566         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
18567         interfaces.
18568         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
18569         prototypes.
18570
18571 2009-06-24  Bruno Haible  <bruno@clisp.org>
18572
18573         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
18574         HAVE_LIB${NAME} macro.
18575         Reported by Sam Steingold <sds@gnu.org>.
18576
18577 2009-06-23  Simon Josefsson  <simon@josefsson.org>
18578
18579         * modules/hash-tests (test_hash_LDADD): Link to libintl when
18580         needed.
18581
18582 2009-06-21  Bruno Haible  <bruno@clisp.org>
18583
18584         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
18585         work.
18586         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
18587         together with LIB${NAME}, LTLIB${NAME}.
18588         Reported by Sam Steingold <sds@gnu.org>.
18589
18590 2009-06-20  Jim Meyering  <meyering@redhat.com>
18591
18592         tests: make sc_require_test_exit_idiom more generic
18593         * top/maint.mk (Exit_witness_file): New overridable variable.
18594         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
18595         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
18596
18597 2009-06-19  Jim Meyering  <meyering@redhat.com>
18598
18599         hash: reverse order of src/dst parameters in an internal interface
18600         * lib/hash.c (transfer_entries): Reverse order of parameters to
18601         put DST before SRC.  Adjust callers.
18602
18603         tests: test-hash: avoid wholesale duplication
18604         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
18605         Instead, use a loop and add a single conditional.
18606
18607         tests: test-hash: allow seed selection via a command line argument
18608         * tests/test-hash.c (get_seed): New function.
18609         (main): Use it.
18610
18611 2009-06-19  Eric Blake  <ebb9@byu.net>
18612
18613         hash: avoid memory leak on allocation failure
18614         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
18615         failure.  Factor repeated algorithm...
18616         (transfer_entries): ...into new helper routine.
18617         (hash_delete): React to hash_rehash return value.
18618
18619         hash: reduce memory pressure in hash_rehash no-op case
18620         * lib/hash.c (next_prime): Avoid overflow.
18621         (hash_initialize): Factor bucket size computation...
18622         (compute_bucket_size): ...into new helper function.
18623         (hash_rehash): Use new function and open coding to reduce memory
18624         pressure, and avoid a memory leak in USE_OBSTACK code.
18625         Reported by Jim Meyering.
18626
18627 2009-06-18  Eric Blake  <ebb9@byu.net>
18628
18629         hash: make rotation more obvious
18630         * modules/hash (Depends-on): Add bitrotate and stdint.
18631         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
18632         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
18633         (SIZE_MAX): Rely on headers for definition.
18634         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
18635         (raw_hasher): Use rotr_sz.
18636         Suggested by Jim Meyering.
18637
18638         hash: fix memory leak in last patch
18639         * lib/hash.c (hash_rehash): Avoid memory leak.
18640
18641         hash: avoid no-op rehashing
18642         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
18643
18644         hash: provide default callback functions
18645         * lib/hash.c (raw_hasher, raw_comparator): New functions.
18646         (hash_initialize): Use them as defaults.
18647         * tests/test-hash.c (main): Test this.
18648
18649         hash: minor optimization
18650         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
18651         when possible.
18652         (hash_initialize): Document this promise.
18653         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
18654         * tests/test-hash.c (hash_compare_strings): Test this.
18655
18656 2009-06-18  Bruno Haible  <bruno@clisp.org>
18657
18658         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
18659         going to be replaced anyway.
18660
18661 2009-06-18  Bruno Haible  <bruno@clisp.org>
18662
18663         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
18664         in one place.
18665         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
18666         be replaced anyway.
18667
18668 2009-06-18  Eric Blake  <ebb9@byu.net>
18669
18670         hash: check for resize before insertion
18671         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
18672         threshold before insertion, so that a pathological hash_rehash
18673         that fills every bucket can still trigger another rehash.
18674
18675 2009-06-18  Jim Meyering  <meyering@redhat.com>
18676
18677         hash-tests: add a loop around the small tests
18678         * tests/test-hash.c (main): Repeat small tests with selected
18679         small initial table sizes.
18680
18681 2009-06-17  Eric Blake  <ebb9@byu.net>
18682
18683         hash: minor cleanups
18684         * lib/hash.h (hash_entry): Make opaque, by moving...
18685         * lib/hash.c (hash_entry): ...here.
18686         (hash_insert): Clarify restrictions on what can be inserted.
18687         (hash_get_next): Clarify when it is safe to remove an element
18688         during traversal.
18689         (check_tuning): Skip verification when tuning is known safe.
18690         (hash_initialize): Clarify restrictions on tuning.
18691
18692 2009-06-17  Jim Meyering  <jim@meyering.net>
18693         and Eric Blake  <ebb9@byu.net>
18694
18695         hash-tests: new module
18696         * modules/hash-tests: New file.
18697         * tests/test-hash.c: New file.
18698
18699 2009-06-17  Eric Blake  <ebb9@byu.net>
18700
18701         strstr-simple: document new module
18702         * MODULES.html.sh: Document new module.
18703
18704         strstr, strcasestr: replace on platforms with broken memchr
18705         * modules/strstr: Split into...
18706         * modules/strstr-simple: ...new module that does not care about
18707         performance, but does care about glibc bug.
18708         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
18709         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
18710         if platform memchr is broken, per Debian bug 521737.
18711         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
18712         memchr.
18713         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
18714         * doc/posix-functions/strstr.texi (strstr): Document the fix.
18715         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
18716         * modules/mountlist (Depends-on): Add strstr-simple.
18717         * modules/gen-uni-tables (Depends-on): Likewise.
18718         * modules/argz (Depends-on): Add strstr.
18719
18720 2009-06-17  Bruno Haible  <bruno@clisp.org>
18721
18722         * modules/posix_spawn-internal (Depends-on): Add errno.
18723
18724 2009-06-17  Bruno Haible  <bruno@clisp.org>
18725
18726         Define missing ESTALE on Interix 3.5.
18727         * lib/errno.in.h (ESTALE): Assign a value if missing.
18728         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
18729         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
18730         missing.
18731         * doc/posix-headers/errno.texi: Mention the Interix bug.
18732         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
18733
18734 2009-06-15  Eric Blake  <ebb9@byu.net>
18735
18736         memchr, memchr2: add valgrind exception
18737         * lib/memchr.valgrind: New file.
18738         * lib/memchr2.valgrind: New file.
18739         * modules/memchr (Files): Distribute valgrind file.
18740         * modules/memchr2 (Files): Likewise.
18741
18742         docs: memchr is no longer obsolete
18743         * MODULES.html.sh: Move memchr from obsolete to string.h section.
18744         * lib/string.in.h (memchr): Simplify logic.
18745
18746 2009-06-14  Jim Meyering  <meyering@redhat.com>
18747
18748         link-follow: fix the "checking..." message to not mention trailing slash
18749         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
18750         never considered trailing slashes.
18751
18752 2009-06-14  Bruno Haible  <bruno@clisp.org>
18753
18754         * m4/memchr.m4: Mention also the bug on IA-64.
18755         * doc/posix-functions/memchr.texi: Likewise.
18756
18757 2009-06-12  Eric Blake  <ebb9@byu.net>
18758
18759         memchr: detect broken x86_64 and alpha implementations
18760         * modules/memchr-tests (Depends-on): Move mmap detection...
18761         * modules/memchr (Depends-on): ...here.
18762         (configure.ac): Set indicator.
18763         * lib/string.in.h (memchr): Declare replacement.
18764         * modules/string (Makefile.am): Trigger replacement.
18765         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
18766         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
18767         bugs.
18768         * doc/posix-functions/memchr.texi (memchr): Document the bug.
18769         * modules/getpagesize (License): Relax license.
18770
18771 2009-06-11  Bruno Haible  <bruno@clisp.org>
18772
18773         * lib/idpriv.h: Add more references.
18774
18775 2009-06-08  Bruno Haible  <bruno@clisp.org>
18776
18777         Tests for module 'idpriv-droptemp'.
18778         * modules/idpriv-droptemp-tests: New file.
18779         * tests/test-idpriv-droptemp.sh: New file.
18780         * tests/test-idpriv-droptemp.su.sh: New file.
18781         * tests/test-idpriv-droptemp.c: New file.
18782
18783         New module 'idpriv-droptemp'.
18784         * lib/idpriv-droptemp.c: New file.
18785         * modules/idpriv-droptemp: New file.
18786
18787 2009-06-08  Bruno Haible  <bruno@clisp.org>
18788
18789         Tests for module 'idpriv-drop'.
18790         * modules/idpriv-drop-tests: New file.
18791         * tests/test-idpriv-drop.sh: New file.
18792         * tests/test-idpriv-drop.su.sh: New file.
18793         * tests/test-idpriv-drop.c: New file.
18794
18795         New module 'idpriv-drop'.
18796         * lib/idpriv.h: New file.
18797         * lib-idpriv-drop.c: New file.
18798         * m4/idpriv.m4: New file.
18799         * modules/idpriv-drop: New file.
18800
18801 2009-06-08  Bruno Haible  <bruno@clisp.org>
18802
18803         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
18804         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18805         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18806         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18807         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18808         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18809         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18810
18811 2009-06-08  Eric Blake  <ebb9@byu.net>
18812
18813         test-strstr: use memory fence, when possible
18814         * tests/test-strstr.c (main): Use memory fence, in order to be
18815         more likely to trigger Debian bug 521737.
18816         * modules/strstr-tests (Files): Pull in additional files.
18817
18818         memchr: no longer obsolete, for wider field testing
18819         * modules/memchr (Status, Notice): Delete, this module is no
18820         longer obsolete.
18821         * modules/vasnprintf (Depends-on): Add memchr.
18822
18823 2009-06-07  Jim Meyering  <meyering@redhat.com>
18824
18825         hash: declare some functions with the warn_unused_result attribute
18826         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
18827
18828 2009-06-07  Bruno Haible  <bruno@clisp.org>
18829
18830         * tests/test-alignof.c: Don't test int64_t if it does not exist.
18831         Reported by Eric Blake.
18832
18833 2009-06-06  Eric Blake  <ebb9@byu.net>
18834
18835         test-alignof: fix typo with long double
18836         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
18837         compiler error.
18838
18839 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
18840
18841         Escape non-texinfo { and }s.
18842         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
18843         markup error.
18844
18845 2009-06-04  Jim Meyering  <meyering@redhat.com>
18846
18847         gitlog-to-changelog: don't infloop on an empty commit log
18848         * build-aux/gitlog-to-changelog: Warn about an empty log message.
18849         Reported by Boris Petersen <transacid@centerim.org>.
18850
18851 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
18852
18853         version-etc: extend for packagers
18854         Add three new configure options, intended for packagers:
18855           --with-packager="packager name"
18856           --with-packager-version="packager-specific version"
18857           --with-packager-bug-reports="packager bug reporting"
18858         An example with coreutils:
18859           $ ./configure \
18860             --with-packager=Gentoo \
18861             --with-packager-bug-report=http://bugs.gentoo.org/ \
18862             --with-packager-version="patchset 1.6"
18863           $ ./src/ls --version | head -n2
18864           ls (GNU coreutils) 7.1-dirty
18865           Packaged by Gentoo (patchset 1.6)
18866         Note that the bug reporting info via --help doesn't show up because
18867         coreutils uses its own custom emit_bug_reporting_address() implementation
18868         in src/system.h.  If it didn't, it'd look like:
18869           $ ./src/ls --help | tail -n4
18870           Report bugs to <bug-coreutils@gnu.org>.
18871           Report Gentoo bugs to <http://bugs.gentoo.org/>.
18872           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
18873           General help using GNU software: <http://www.gnu.org/gethelp/>.
18874         * lib/version-etc.c: Print new information, if provided.
18875         * m4/version-etc.m4: New file.
18876         * modules/version-etc (Files): Add m4/version-etc.m4.
18877         (configure.ac): Add gl_VERSION_ETC.
18878
18879 2009-05-31  Bruno Haible  <bruno@clisp.org>
18880
18881         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
18882         and 'int64_t'.
18883         * modules/alignof-tests (Dependencies): Add stdint.
18884         Reported by Eric Blake.
18885
18886 2009-05-31  Bruno Haible  <bruno@clisp.org>
18887
18888         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
18889         restriction due to compiler bugs.
18890         Reported by Eric Blake.
18891
18892 2009-05-31  Simon Josefsson  <simon@josefsson.org>
18893             Bruno Haible  <bruno@clisp.org>
18894
18895         Fix test-alignof failure.
18896         * lib/alignof.h (alignof_slot): New macro.
18897         (alignof_type): New macro, with the same semantics as the previous
18898         'alignof'.
18899         (alignof): Alias to alignof_slot.
18900         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
18901         check that the results are usable as constant expressions.
18902
18903 2009-05-31  Bruno Haible  <bruno@clisp.org>
18904
18905         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
18906         * tests/test-memchr.c (main): Check that memchr does not read past the
18907         first occurrence of the byte.
18908         * tests/test-strstr.c (main): Update comment.
18909         Suggested by Eric Blake.
18910
18911 2009-05-30  Bruno Haible  <bruno@clisp.org>
18912
18913         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
18914         detail how to use dumpbin.
18915         Reported by David Byron <dbyron@dbyron.com>.
18916
18917 2009-06-02  Simon Josefsson  <simon@josefsson.org>
18918
18919         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
18920
18921 2009-06-02  Simon Josefsson  <simon@josefsson.org>
18922
18923         * m4/manywarnings.m4: Add GCC 4.4 warnings.
18924
18925 2009-05-28  Bruno Haible  <bruno@clisp.org>
18926
18927         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
18928         build-aux/ files.
18929
18930 2009-05-28  Simon Josefsson  <simon@josefsson.org>
18931
18932         * gnulib-tool (func_import): Transform license on build-aux/ files too.
18933
18934 2009-05-27  Simon Josefsson  <simon@josefsson.org>
18935
18936         * gnulib-tool (sed_transform_main_lib_file)
18937         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
18938         regexps.
18939
18940 2009-05-26  Simon Josefsson  <simon@josefsson.org>
18941
18942         * tests/test-strstr.c: Add another self-test.
18943         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
18944         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
18945
18946 2009-05-23  Bruno Haible  <bruno@clisp.org>
18947
18948         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
18949         change.
18950
18951 2009-05-21  Bruno Haible  <bruno@clisp.org>
18952
18953         Simplify use of mode_t varargs.
18954         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
18955         uses 'mode_t' or 'int'.
18956         * lib/openat.c (openat): Likewise.
18957         * lib/open-safer.c (open_safer): Likewise.
18958         * m4/mode_t.m4: New file.
18959         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
18960         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
18961         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
18962         * modules/open (Files): Add m4/mode_t.m4.
18963         * modules/openat (Files): Likewise.
18964         * modules/fcntl-safer (Files): Likewise.
18965         Suggested by Eric Blake.
18966
18967 2009-05-21  Pádraig Brady  <P@draigbrady.com>
18968
18969         * doc/glibc-functions/fallocate.texi: New file.
18970         * doc/gnulib.texi: Include it.
18971
18972 2009-05-21  Eric Blake  <ebb9@byu.net>
18973             Bruno Haible  <bruno@clisp.org>
18974
18975         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
18976         invocations.
18977         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
18978
18979 2009-05-21  Eric Blake  <ebb9@byu.net>
18980             Bruno Haible  <bruno@clisp.org>
18981
18982         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
18983         include_next. Fix of 2008-11-20 commit.
18984         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
18985         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
18986         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
18987         NEXT_MATH_H.
18988         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
18989         instead of NEXT_MATH_H.
18990
18991 2009-05-21  Bruno Haible  <bruno@clisp.org>
18992
18993         Avoid redefinition warnings for SIZE_MAX.
18994         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
18995         Reported by Simon Josefsson.
18996
18997 2009-05-21  Bruno Haible  <bruno@clisp.org>
18998
18999         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
19000         AC_CACHE_VAL.
19001
19002 2009-05-20  Bruno Haible  <bruno@clisp.org>
19003
19004         Make zeroptr.h work on mingw.
19005         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
19006         mprotect.
19007         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
19008         * modules/memchr2-tests (configure.ac): Likewise.
19009         * modules/memcmp-tests (configure.ac): Likewise.
19010         * modules/memmem-tests (configure.ac): Likewise.
19011         * modules/memrchr-tests (configure.ac): Likewise.
19012         Reported by Simon Josefsson.
19013
19014 2009-05-20  Simon Josefsson  <simon@josefsson.org>
19015
19016         * tests/test-glob.c: Include string.h for strcmp prototype.
19017
19018 2009-05-20  Simon Josefsson  <simon@josefsson.org>
19019
19020         * modules/getdelim (Depends-on): Add explicit stdint, although it
19021         was implicitly already pulled in via realloc-posix.
19022         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
19023
19024 2009-05-20  Simon Josefsson  <simon@josefsson.org>
19025
19026         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
19027         G. Christensen" <tgc@jupiterrise.com>.
19028         * m4/sys_socket_h.m4: Check for sa_family_t.
19029         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
19030         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
19031         * tests/test-sys_socket.c: Check that sa_family_t works.
19032
19033 2009-05-18  Eric Blake  <ebb9@byu.net>
19034
19035         maint.mk: allow gnulib_dir in VPATH build
19036         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
19037
19038 2009-05-15  Jim Meyering  <meyering@redhat.com>
19039
19040         maint.mk: Give gnulib_dir a default definition.
19041         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
19042         Thus, most packages no longer need to specify this variable in cfg.mk
19043
19044 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
19045
19046         rename.m4: fix typos that would make non-mingw cross-configure fail
19047         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
19048
19049 2009-05-13  Eric Blake  <ebb9@byu.net>
19050
19051         mmap-anon: avoid out-of-order autoconf expansion
19052         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
19053         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
19054         * modules/memchr-tests (Depends-on): Add extensions.
19055         * modules/memchr2-tests (Depends-on): Add extensions.
19056         * modules/memcmp-tests (Depends-on): Add extensions.
19057         * modules/memmem-tests (Depends-on): Add extensions.
19058         * modules/memrchr-tests (Depends-on): Add extensions.
19059
19060 2009-05-13  Bruno Haible  <bruno@clisp.org>
19061
19062         Make some tests ISO C 99 compliant.
19063         * tests/zerosize-ptr.h: New file.
19064         * tests/test-memchr.c: Include zerosize-ptr.h.
19065         (main): Use a zero-size object pointer instead of NULL.
19066         * tests/test-memchr2.c: Include zerosize-ptr.h.
19067         (main): Use a zero-size object pointer instead of NULL.
19068         * tests/test-memcmp.c: Include zerosize-ptr.h.
19069         (main): Use a zero-size object pointer instead of NULL.
19070         * tests/test-memmem.c: Include zerosize-ptr.h.
19071         (main): Use a zero-size object pointer instead of NULL.
19072         * tests/test-memrchr.c: Include zerosize-ptr.h.
19073         (main): Use a zero-size object pointer instead of NULL.
19074         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
19075         m4/mmap-anon.m4.
19076         (Depends-on): Add getpagesize.
19077         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
19078         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
19079         m4/mmap-anon.m4.
19080         (Depends-on): Add getpagesize.
19081         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
19082         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
19083         m4/mmap-anon.m4.
19084         (Depends-on): Add getpagesize.
19085         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
19086         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
19087         m4/mmap-anon.m4.
19088         (Depends-on): Add getpagesize.
19089         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
19090         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
19091         m4/mmap-anon.m4.
19092         (Depends-on): Add getpagesize.
19093         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
19094
19095 2009-05-12  Bruno Haible  <bruno@clisp.org>
19096
19097         Tests for module 'alignof'.
19098         * modules/alignof-tests: New file.
19099         * tests/test-alignof.c: New file.
19100
19101 2009-05-12  Bruno Haible  <bruno@clisp.org>
19102
19103         Fix alignof macro.
19104         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
19105         vendor compilers that are always correct.
19106
19107 2009-05-12  Bruno Haible  <bruno@clisp.org>
19108
19109         Make the MAP_ANONYMOUS detection work on HP-UX 11.
19110         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
19111         not whether its fully works.
19112
19113 2009-05-12  Bruno Haible  <bruno@clisp.org>
19114
19115         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
19116
19117 2009-05-12  Jim Meyering  <meyering@redhat.com>
19118
19119         * top/maint.mk: Adjust backslash alignment.
19120
19121 2009-05-11  Simon Josefsson  <simon@josefsson.org>
19122
19123         * top/maint.mk: Make $(srcdir)/build-aux configurable.
19124
19125 2009-05-11  Eric Blake  <ebb9@byu.net>
19126
19127         argp: avoid undefined behavior
19128         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
19129         macros.
19130
19131 2009-05-08  Simon Josefsson  <simon@josefsson.org>
19132
19133         * tests/test-vc-list-files-git.sh: Do git config of user.email and
19134         user.name to prevent git commit from complaining.
19135
19136 2009-05-10  Bruno Haible  <bruno@clisp.org>
19137
19138         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
19139         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
19140         it rewrites every file name only once.
19141         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
19142
19143 2009-05-08  Bruno Haible  <bruno@clisp.org>
19144
19145         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
19146         instead of 'max'.
19147
19148 2009-05-08  Simon Josefsson  <simon@josefsson.org>
19149
19150         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
19151         sockaddr_storage test.
19152
19153 2009-05-07  Simon Josefsson  <simon@josefsson.org>
19154
19155         * modules/sys_socket (Makefile.am): Substitute
19156         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
19157         * m4/sys_socket_h.m4: Check for sockaddr_storage.
19158         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
19159         * tests/test-sys_socket.c: Check sockaddr_storage.
19160
19161 2009-05-08  Bruno Haible  <bruno@clisp.org>
19162
19163         New module 'alignof'.
19164         * lib/alignof.h: New file.
19165         * modules/alignof: New file.
19166
19167 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
19168             Bruno Haible  <bruno@clisp.org>
19169
19170         Fix test-file-has-acl on FreeBSD.
19171         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
19172         mask is implicitly added.
19173         * tests/test-file-has-acl.c: Include <signal.h>.
19174         (main): Terminate the test after 5 seconds.
19175         * modules/acl-tests (configure.ac): Check for alarm function.
19176
19177 2009-05-04  Bruno Haible  <bruno@clisp.org>
19178
19179         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
19180         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
19181         * modules/errno (configure.ac): Drop AC_REQUIRE.
19182         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
19183         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
19184
19185 2009-05-04  Simon Josefsson  <simon@josefsson.org>
19186
19187         * modules/glob-tests: New module.
19188         * tests/test-glob.c: Add.
19189
19190 2009-05-04  Simon Josefsson  <simon@josefsson.org>
19191
19192         * modules/fnmatch-tests: New module.
19193         * tests/test-fnmatch.c: Add.
19194
19195 2009-05-04  Eric Blake  <ebb9@byu.net>
19196
19197         maint: make the new no-submodule-changes rule VPATH-safe
19198         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
19199
19200 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
19201             Bruno Haible  <bruno@clisp.org>
19202
19203         acl: Fix infinite loop on FreeBSD.
19204         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
19205         of return value from acl_get_entry.
19206         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
19207         Likewise.
19208
19209 2009-05-03  Bruno Haible  <bruno@clisp.org>
19210
19211         * lib/acl-internal.h (acl_entries): Clarify return value.
19212         * lib/acl_entries.c (acl_entries): Likewise.
19213
19214 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
19215
19216         Bug fix in acl module.
19217         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
19218
19219 2009-05-03  Bruno Haible  <bruno@clisp.org>
19220
19221         Create gperf-generated file in the source dir, not in the build dir.
19222         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
19223         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
19224         * modules/unicase/locale-language (unicase/locale-languages.h):
19225         Likewise.
19226         * modules/unicase/special-casing (unicase/special-casing-table.h):
19227         Likewise.
19228         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
19229         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
19230         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
19231         Reported by Ralf Wildenhues.
19232
19233 2009-05-03  Bruno Haible  <bruno@clisp.org>
19234
19235         * modules/fnmatch (Description, configure.ac): Taken from
19236         fnmatch-posix.
19237         * modules/fnmatch-posix: Turn into a symbolic reference to the
19238         'fnmatch' module, and deprecate.
19239         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
19240
19241 2009-05-03  Bruno Haible  <bruno@clisp.org>
19242
19243         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
19244         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
19245         Reported by Ralf Wildenhues.
19246
19247 2009-05-04  Simon Josefsson  <simon@josefsson.org>
19248
19249         * m4/fnmatch.m4: Fix fnmatch re-define.
19250
19251 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
19252
19253         priv-set: new module and tests; adapt write-any-file
19254         * lib/priv-set.c: New file.
19255         * lib/priv-set.h: New file.
19256         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
19257         * lib/write-any-file.c: Simplify by using priv-set module.
19258         * m4/priv-set.m4: New file.
19259         * modules/priv-set: New file.
19260         * modules/unlinkdir: Add dependency on priv-set module.
19261         * modules/write-any-file: Likewise.
19262
19263         Tests for module 'priv-set'.
19264         * modules/priv-set-tests: New file.
19265         * tests/test-priv-set.c: New file.
19266
19267 2009-05-03  Jim Meyering  <meyering@redhat.com>
19268             Bruno Haible  <bruno@clisp.org>
19269
19270         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
19271         use the converted UTF-8 variant of the name instead.
19272
19273 2009-05-03  Jim Meyering  <meyering@redhat.com>
19274
19275         tests: tighten some getdate tests
19276         * tests/test-getdate.c (main): Tighten tests: require equality,
19277         not just greater than.  Set TZ envvar to UTC0.
19278
19279 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
19280
19281         getdate: correctly interpret "next monday" when run on a Monday
19282         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
19283         that e.g., "next tues" (when run on a tuesday) results in a date
19284         that is one week in the future, and not today's date.
19285         I.e., add a week when the wday is the same as the current one.
19286         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
19287         and earlier by Martin Bernreuther and Jan Minář.
19288         * tests/test-getdate.c (main): Check that "next DAY" is always in
19289         the future and that "last DAY" is always in the past.
19290
19291 2009-05-02  Jim Meyering  <meyering@redhat.com>
19292
19293         build: ensure that a release build fails when a submodule is unclean
19294         * top/maint.mk (no-submodule-changes): New rule.
19295         (alpha beta major): Depend on it.
19296
19297 2009-05-02  Bruno Haible  <bruno@clisp.org>
19298
19299         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
19300         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
19301         shell variable gl_fnmatch_required to detect which variant is
19302         requested.
19303         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
19304         gl_FUNC_FNMATCH_POSIX.
19305         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
19306         exclude fnmatch-posix.
19307
19308 2009-05-02  Bruno Haible  <bruno@clisp.org>
19309
19310         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
19311         * modules/mbsrtowcs (License): Change to LGPLv2+.
19312         * modules/strnlen1 (License): Likewise.
19313         Reported by Simon Josefsson.
19314
19315 2009-05-02  Bruno Haible  <bruno@clisp.org>
19316
19317         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
19318         "cross".
19319         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
19320         gnulib-tool was called with option --source-base=lib.
19321
19322 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19323
19324         Use automake *-local hooks without commands, for extensibility.
19325         * modules/localcharset (Makefile.am): Rename install-exec-local
19326         rule to install-exec-localcharset, and make it a prerequisite of
19327         install-exec-local.  Likewise, rename the uninstall-local rule to
19328         uninstall-localcharset, and make it a prerequisite of the former.
19329
19330 2009-05-01  Bruno Haible  <bruno@clisp.org>
19331
19332         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
19333         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
19334         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
19335         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
19336         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
19337         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
19338         m4/locale-zh.m4, m4/codeset.m4.
19339
19340         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
19341         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
19342         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
19343         m4/locale-zh.m4.
19344
19345         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
19346         REPLACE_WCRTOMB if mbstate_t must be replaced.
19347         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
19348         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
19349
19350 2009-05-01  Bruno Haible  <bruno@clisp.org>
19351
19352         Avoid compiler warnings when redefining macros defined by <libintl.h>.
19353         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
19354         dngettext, dcngettext, textdomain, bindtextdomain,
19355         bind_textdomain_codeset): Undefine before redefining.
19356
19357 2009-04-30  Bruno Haible  <bruno@clisp.org>
19358
19359         Fix bug introduced on 2009-04-25.
19360         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
19361         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
19362         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
19363         is defined.
19364         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
19365         is defined.
19366         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
19367         is defined.
19368         Reported by Elbert_Pol <elbert.pol@gmail.com>.
19369
19370 2009-04-28  Bruno Haible  <bruno@clisp.org>
19371
19372         Comment tweaks.
19373         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
19374         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
19375         * lib/unicase.h (u*_casexfrm): Likewise.
19376         Reported by Paolo Bonzini.
19377
19378 2009-04-28  Bruno Haible  <bruno@clisp.org>
19379
19380         Fix a compilation error.
19381         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
19382         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
19383         Reported by Jim Meyering.
19384
19385 2009-04-27  Bruno Haible  <bruno@clisp.org>
19386
19387         New module 'libunistring'.
19388         * modules/libunistring: New file.
19389         * m4/libunistring.m4: New file.
19390         * MODULES.html.sh (Unicode string functions): Add it.
19391
19392 2009-04-27  Eric Blake  <ebb9@byu.net>
19393
19394         maint.mk: allow package-specific header to provide <config.h>
19395         * top/maint.mk (sc_require_config_h): New variable.
19396         (sc_require_config_h, sc_require_config_h_first): Use it.
19397
19398 2009-04-27  Simon Josefsson  <simon@josefsson.org>
19399
19400         * top/maint.mk (sc_avoid_if_before_free): Except
19401         useless-if-before-free script.
19402
19403 2009-04-27  Eric Blake  <ebb9@byu.net>
19404
19405         maintainer-makefile: depend on all required helper scripts
19406         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
19407         useless-if-before-free.
19408         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
19409         version, rather than assuming gnulib checkout is available.
19410         Reported by Simen Josefsson.
19411
19412 2009-04-26  Bruno Haible  <bruno@clisp.org>
19413
19414         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
19415         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
19416         "../" or "..".
19417
19418 2009-04-26  Bruno Haible  <bruno@clisp.org>
19419
19420         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
19421         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
19422         AC_LIB_HAVE_LINKFLAGS.
19423
19424 2009-04-26  Bruno Haible  <bruno@clisp.org>
19425
19426         Simplify calling convention of u*_conv_from_encoding.
19427         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
19428         u32_conv_from_encoding): Expect a resultbuf argument and return the
19429         result directly as a pointer.
19430         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
19431         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
19432         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
19433         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
19434         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
19435         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
19436         Update.
19437         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
19438         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
19439         * lib/vasnprintf.c (VASNPRINTF): Update.
19440         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
19441         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
19442         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
19443         * NEWS: Mention the change.
19444
19445 2009-04-26  Bruno Haible  <bruno@clisp.org>
19446
19447         Simplify calling convention of u*_conv_to_encoding.
19448         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
19449         u32_conv_to_encoding): Expect a resultbuf argument and return the
19450         result directly as a pointer.
19451         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
19452         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
19453         freeing scaled_offsets if mem_iconveha failed.
19454         * lib/unicase/u-casexfrm.h (FUNC): Update.
19455         * lib/uninorm/u-normxfrm.h (FUNC): Update.
19456         * lib/vasnprintf.c (VASNPRINTF): Update.
19457         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
19458         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
19459         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
19460         * NEWS: Mention the change.
19461
19462 2009-04-26  Bruno Haible  <bruno@clisp.org>
19463
19464         Avoid test failures on AIX and OSF/1.
19465         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
19466         malloc(0).
19467         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
19468         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
19469         Likewise.
19470         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
19471         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
19472         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
19473         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
19474         * doc/posix-functions/malloc.texi: Document the portability problem
19475         related to malloc(0).
19476
19477 2009-04-26  Bruno Haible  <bruno@clisp.org>
19478
19479         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
19480         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
19481         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
19482
19483 2009-04-25  Bruno Haible  <bruno@clisp.org>
19484
19485         Avoid link error when creating a namespace clean library.
19486         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
19487         as macro with arguments if already defined as an alias.
19488         * lib/signbitf.c (gl_signbitf): Don't undefine.
19489         * lib/signbitd.c (gl_signbitd): Don't undefine.
19490         * lib/signbitl.c (gl_signbitl): Don't undefine.
19491
19492 2009-04-25  Jim Meyering  <meyering@redhat.com>
19493
19494         vc-list-files: fix another quoting bug
19495         * build-aux/vc-list-files: Avoid sed backslash expansion
19496         of pathological directory names.
19497
19498 2009-04-25  Eric Blake  <ebb9@byu.net>
19499
19500         vc-list-files: fix shell quoting error
19501         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
19502         timestamp.
19503
19504 2009-04-25  Jim Meyering  <meyering@redhat.com>
19505
19506         vc-list-files: restore lost functionality with subdir argument
19507         * build-aux/vc-list-files: When given a non-"." sub-directory
19508         argument, substitute the $dir/ prefix back onto each resulting name.
19509         Otherwise, coreutils' root_tests check would fail.
19510
19511 2009-04-24  Eric Blake  <ebb9@byu.net>
19512
19513         vc-list-files: ignore git symlinks
19514         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
19515         than ls-files, to ignore git symlinks.
19516
19517         maint.mk: import improvements from m4
19518         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
19519         (move_if_change): Delete unused macro.
19520         (news-date-check, vc-diff-check): Support VPATH builds.
19521         (announcement): Likewise.  Split --bootstrap-tools list...
19522         (boostrap-tools): ...into separate list, which can be overridden
19523         in cfg.mk.
19524         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
19525         requiring dependency on useless-if-before-free module.
19526         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
19527         Support VPATH builds.
19528
19529 2009-04-24  Jim Meyering  <meyering@redhat.com>
19530
19531         maint.mk: remove coreutils-specific rules and variables
19532         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
19533         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
19534         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
19535
19536         maint.mk: remove obsolete rule
19537         * top/maint.mk (rel-check): Remove rule.
19538         (WGET, WGETFLAGS): Remove now-unused variables.
19539
19540 2009-04-24  Simon Josefsson  <simon@josefsson.org>
19541
19542         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
19543         consistency.
19544
19545         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
19546         '$(PATH_SEPARATOR)' instead of ':'.
19547
19548 2009-04-24  Simon Josefsson  <simon@josefsson.org>
19549
19550         * lib/getopt1.c (main): Use 'const' for static array.
19551
19552 2009-04-24  Simon Josefsson  <simon@josefsson.org>
19553
19554         * top/maint.mk: Sync with coreutils.
19555         * NEWS: Explain incompatibilities.
19556
19557 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
19558             Bruno Haible  <bruno@clisp.org>
19559
19560         Fix cross-compilation results.
19561         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
19562         statement, as third argument of AC_TRY_RUN.
19563         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
19564         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
19565         Likewise.
19566         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
19567         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
19568         Likewise.
19569         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
19570         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
19571         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
19572
19573 2009-04-20  Bruno Haible  <bruno@clisp.org>
19574
19575         Avoid test failure on mingw.
19576         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
19577
19578 2009-04-20  Bruno Haible  <bruno@clisp.org>
19579
19580         Avoid compilation error on mingw.
19581         * modules/localename-tests (Depends-on): Add locale.
19582
19583 2009-04-19  Bruno Haible  <bruno@clisp.org>
19584
19585         Support for building a shared library on Windows platforms.
19586         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
19587         (main): Test the presence of UNINORM_NFC here.
19588         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
19589         (main): Test the presence of UNINORM_NFD here.
19590         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
19591         (main): Test the presence of UNINORM_NFKC here.
19592         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
19593         (main): Test the presence of UNINORM_NFKD here.
19594
19595 2009-04-19  Bruno Haible  <bruno@clisp.org>
19596
19597         Avoid a compiler warning.
19598         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
19599         Change type of variable 'sequence'.
19600
19601 2009-04-19  Bruno Haible  <bruno@clisp.org>
19602
19603         * modules/configmake (Makefile.am): When the contents of configmake.h
19604         does not change, arrange to preserve its modification time.
19605
19606 2009-04-17  Simon Josefsson  <simon@josefsson.org>
19607
19608         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
19609         gettext domain.
19610
19611 2009-04-16  Jim Meyering  <meyering@redhat.com>
19612
19613         useless-if-before-free: improve conversion code
19614         * build-aux/useless-if-before-free: Adjust code-in-comment to match
19615         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
19616
19617 2009-04-14  Bruno Haible  <bruno@clisp.org>
19618
19619         * modules/fcntl (Depends-on): Add extensions.
19620         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
19621
19622 2009-04-12  Ben Pfaff  <blp@gnu.org>
19623
19624         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
19625         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
19626
19627 2009-03-20  Ben Pfaff  <blp@gnu.org>
19628
19629         Make rename replace existing destinations on Windows.
19630         * m4/rename.m4: Add test for Mingw.
19631         * lib/rename.c: Add rename replacement that uses MoveFileEx with
19632         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
19633         * doc/posix-functions/rename.texi: Document.
19634
19635 2009-04-10  Bruno Haible  <bruno@clisp.org>
19636
19637         New include file "iconveh.h".
19638         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
19639         * lib/striconveh.h: Include it.
19640         (enum iconv_ilseq_handler): Remove definition.
19641         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
19642         striconveh.h.
19643         * lib/striconveha.c: Include striconveh.h.
19644         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
19645         * modules/striconveh (Files): Add lib/iconveh.h.
19646         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
19647         lib/striconveh.h.
19648
19649 2009-04-10  Bruno Haible  <bruno@clisp.org>
19650
19651         * lib/uniconv.h: Update comment.
19652
19653 2009-04-10  Bruno Haible  <bruno@clisp.org>
19654
19655         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
19656         always.
19657         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
19658         * lib/unistr/u16-mbtouc-aux.c: Likewise.
19659         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
19660         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
19661         "unistring-notinline.h", so that the function gets defined always.
19662         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
19663         * lib/unistr/u8-uctomb.c: Likewise.
19664         * lib/unistr/u16-mbtouc.c: Likewise.
19665         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
19666         * lib/unistr/u16-uctomb.c: Likewise.
19667         * lib/unistr/u32-mbtouc.c: Likewise.
19668         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
19669         * lib/unistr/u32-uctomb.c: Likewise.
19670
19671 2009-04-10  Bruno Haible  <bruno@clisp.org>
19672
19673         Mark 'utime' obsolete.
19674         * modules/utime (Status, Notice): New sections.
19675         Suggested by Jim Meyering.
19676
19677         Fix cross-compile guess for utime test.
19678         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
19679         autoconf.
19680         * doc/posix-functions/utime.texi: Give more precisions.
19681         Reported by Jan <ipif@ymail.com>.
19682
19683 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
19684
19685         filevercmp: correct today's change
19686         * lib/filevercmp.c: Also handle coreutils' test inputs.
19687         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
19688
19689         Fix regression in 'filevercmp' module. Thanks Sven Joachim
19690         for reporting it.
19691         * lib/filevercmp.c: Special handle for "", "." and "..".
19692         * tests/test-filevercmp.c: Enlarge the set suite.
19693
19694 2009-04-07  Jim Meyering  <meyering@redhat.com>
19695
19696         useless-if-before-free: show how to remove braced useless free, too
19697         * build-aux/useless-if-before-free: still only in a comment, though.
19698
19699 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
19700
19701         maint.mk: import changes to syntax-check macros from coreutils
19702         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
19703         Use them in the relevant macros.
19704
19705 2009-04-06  Bruno Haible  <bruno@clisp.org>
19706
19707         Fix unportable use of bit-fields.
19708         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
19709         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
19710         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
19711
19712 2009-04-06  Bruno Haible  <bruno@clisp.org>
19713
19714         Avoid test failures on AIX and OSF/1.
19715         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
19716         that malloc(0) = NULL.
19717         * tests/unicase/test-u8-tolower.c (check): Likewise.
19718         * tests/unicase/test-u8-totitle.c (check): Likewise.
19719         * tests/unicase/test-u8-toupper.c (check): Likewise.
19720         * tests/unicase/test-u16-casefold.c (check): Likewise.
19721         * tests/unicase/test-u16-tolower.c (check): Likewise.
19722         * tests/unicase/test-u16-totitle.c (check): Likewise.
19723         * tests/unicase/test-u16-toupper.c (check): Likewise.
19724         * tests/unicase/test-u32-casefold.c (check): Likewise.
19725         * tests/unicase/test-u32-tolower.c (check): Likewise.
19726         * tests/unicase/test-u32-totitle.c (check): Likewise.
19727         * tests/unicase/test-u32-toupper.c (check): Likewise.
19728         * tests/uninorm/test-u8-nfc.c (check): Likewise.
19729         * tests/uninorm/test-u8-nfd.c (check): Likewise.
19730         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
19731         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
19732         * tests/uninorm/test-u16-nfc.c (check): Likewise.
19733         * tests/uninorm/test-u16-nfd.c (check): Likewise.
19734         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
19735         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
19736         * tests/uninorm/test-u32-nfc.c (check): Likewise.
19737         * tests/uninorm/test-u32-nfd.c (check): Likewise.
19738         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
19739         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
19740
19741 2009-04-05  Bruno Haible  <bruno@clisp.org>
19742
19743         Work around an autoconf limitation.
19744         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
19745         comment line if it would be longer than 3 KB.
19746
19747 2009-04-05  Bruno Haible  <bruno@clisp.org>
19748
19749         Avoid test failure with libiconv-1.13.
19750         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
19751         of the expected test results.
19752
19753 2009-04-05  Bruno Haible  <bruno@clisp.org>
19754
19755         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
19756         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
19757         that it should be installed.
19758
19759 2009-04-05  Bruno Haible  <bruno@clisp.org>
19760
19761         * gnulib-tool: New option --copy-file.
19762         (func_usage): Document it.
19763         (func_dest_tmpfilename): Moved out of func_import.
19764         (func_add_file, func_update_file): New functions, extracted from
19765         func_import.
19766         (func_import): Update.
19767
19768 2009-04-05  Karl Berry  <karl@gnu.org>
19769
19770         * README: prominently mention gnulib-tool.
19771         Rearrange sections so getting the code is near the top.
19772
19773 2009-04-05  Bruno Haible  <bruno@clisp.org>
19774
19775         * lib/unicase.h: Mention u*_cmp2.
19776         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
19777         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
19778         * lib/unicase/ulc-casecmp.c: Likewise.
19779         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
19780         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
19781         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
19782         unistr/u8-cmp.
19783         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
19784         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
19785         unistr/u16-cmp.
19786         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
19787         unistr/u32-cmp.
19788
19789         * lib/uninorm.h: Mention u*_cmp2.
19790         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
19791         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
19792         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
19793         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
19794         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
19795         unistr/u8-cmp.
19796         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
19797         unistr/u16-cmp.
19798         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
19799         unistr/u32-cmp.
19800
19801         New module 'unistr/u32-cmp2'.
19802         * lib/unistr/u32-cmp2.c: New file.
19803         * modules/unistr/u32-cmp2: New file.
19804
19805         New module 'unistr/u16-cmp2'.
19806         * lib/unistr/u16-cmp2.c: New file.
19807         * modules/unistr/u16-cmp2: New file.
19808
19809         New module 'unistr/u8-cmp2'.
19810         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
19811         * lib/unistr/u8-cmp2.c: New file.
19812         * lib/unistr/u-cmp2.h: New file.
19813         * modules/unistr/u8-cmp2: New file.
19814
19815 2009-04-05  Bruno Haible  <bruno@clisp.org>
19816
19817         * lib/unictype.h (uc_property_is_valid): New macro.
19818         * tests/unictype/test-pr_byname.c (main): Use it.
19819
19820         * lib/unistr.h: Doc fixes.
19821         * lib/uniconv.h: Doc fixes.
19822         * lib/unictype.h: Doc fixes.
19823
19824 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
19825
19826         Port coreutils 7.2 to Solaris 8.
19827
19828         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
19829         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
19830         for Solaris 8.  This is a bit of a hack, as it means it's the
19831         caller's responsibility to add -lnsl if needed, but most likely it
19832         won't be needed since only getaddrinfo uses this and getaddrinfo
19833         isn't needed on Solaris 8.
19834
19835         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
19836         problem to Solaris 8 encountered with coreutils 7.2, which
19837         resulted in a message "fnmatch.c:292: warning: passing argument 4
19838         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
19839         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
19840
19841 2009-04-03  Simon Josefsson  <simon@josefsson.org>
19842
19843         * m4/ld-version-script.m4: Add FIXME comment.
19844
19845 2009-04-02  Simon Josefsson  <simon@josefsson.org>
19846
19847         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
19848         SOVERSION variable.
19849
19850 2009-04-02  Bruno Haible  <bruno@clisp.org>
19851
19852         * Makefile (info, html, dvi, pdf): Combine the rules.
19853         Suggested by Jim Meyering.
19854
19855 2009-04-01  Bruno Haible  <bruno@clisp.org>
19856
19857         * Makefile (info, html, dvi, pdf): New targets.
19858         Reported by Reuben Thomas <rrt@sc3d.org>.
19859
19860 2009-04-01  Bruno Haible  <bruno@clisp.org>
19861
19862         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
19863         can be put into PATH.
19864         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
19865
19866 2009-04-01  Bruno Haible  <bruno@clisp.org>
19867
19868         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
19869
19870 2009-04-01  Bruno Haible  <bruno@clisp.org>
19871
19872         Rename module 'visibility'.
19873         * modules/lib-symbol-visibility: Renamed from modules/visibility.
19874         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
19875         * doc/gnulib.texi: Update.
19876         * MODULES.html.sh (Misc): Update.
19877         * NEWS: Mention the change.
19878
19879 2009-04-01  Simon Josefsson  <simon@josefsson.org>
19880
19881         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
19882         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
19883         Eric Blake <ebb9@byu.net> for review.
19884         * MODULES.html.sh: Add lib-msvc-compat.
19885         * doc/gnulib.texi: Link to new section.
19886         * m4/ld-output-def.m4: New file.
19887         * doc/ld-output-def.texi: New file.
19888
19889 2009-04-01  Simon Josefsson  <simon@josefsson.org>
19890
19891         Rename ld-version-script to lib-symbol-versions.  Suggested by
19892         Bruno Haible <bruno@clisp.org>.
19893         * modules/ld-version-script: Renamed to lib-symbol-versions.
19894         * doc/ld-version-script.texi: Fix module name.
19895         * MODULES.html.sh: Add lib-symbol-versions.
19896
19897 2009-03-31  Simon Josefsson  <simon@josefsson.org>
19898
19899         * modules/u64-tests: New file.
19900         * tests/test-u64.c: New file.
19901
19902 2009-03-04  Simon Josefsson  <simon@josefsson.org>
19903
19904         * MODULES.html.sh: Mention u64.
19905         * modules/u64: New module.
19906         * modules/crypto/sha512: Depend on u64 module instead of providing
19907         u64.h.
19908
19909 2009-03-27  Eric Blake  <ebb9@byu.net>
19910
19911         test-strerror: make debugging EAI_SYSTEM easier
19912         * modules/getaddrinfo-tests (Depends-on): Add strerror.
19913         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
19914         failure was EAI_SYSTEM.
19915
19916 2009-03-25  Bruno Haible  <bruno@clisp.org>
19917
19918         Fix a problem with --enable-relocatable on Solaris 7.
19919         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
19920         since 2008-02-24.
19921
19922 2009-03-25  Eric Blake  <ebb9@byu.net>
19923
19924         test-sockets: avoid gcc warning
19925         * tests/test-sockets.c (main): Silence compiler warning.
19926
19927 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
19928
19929         New modules nproc, pthread, contributed by Glen Lenker.
19930
19931         * MODULES.html.sh: Add pthread, nproc.
19932         * lib/nproc.c: New file.
19933         * lib/nproc.h: New file.
19934         * lib/pthread.in.h: New file.
19935         * m4/pthread.m4: New file.
19936         * modules/nproc: New file.
19937         * modules/pthread: New file.
19938
19939 2009-03-24  Simon Josefsson  <simon@josefsson.org>
19940
19941         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
19942         New variable.
19943
19944 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
19945
19946         filevercmp: handle simple~ and numbered.~3~ backup suffixes
19947         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
19948         * tests/test-filevercmp.c: Add tests for backup suffixes.
19949
19950 2009-03-24  Simon Josefsson  <simon@josefsson.org>
19951
19952         * modules/stdlib (Depends-on): Add stdint, needed when defining
19953         struct random_data on, for example, HP-UX 10.20.  Reported by
19954         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
19955
19956 2009-03-24  Simon Josefsson  <simon@josefsson.org>
19957
19958         * lib/readline.c (readline): Call fflush on stdout after printing
19959         prompt.
19960
19961 2009-03-20  Bruno Haible  <bruno@clisp.org>
19962
19963         Remove dependency from 'close' module to -lws2_32 on native Windows.
19964         * lib/close-hook.h: New file.
19965         * lib/close-hook.c: New file.
19966         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
19967         w32sock.h.
19968         (_gl_close_fd_maybe_socket): Remove function.
19969         (rpl_close): Invoke execute_all_close_hooks instead of
19970         _gl_close_fd_maybe_socket.
19971         * lib/sockets.c: Include close-hook.h, w32sock.h.
19972         (close_fd_maybe_socket): New function, essentially from lib/close.c.
19973         (close_sockets_hook): New variable.
19974         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
19975         (gl_sockets_cleanup): Unregister it.
19976         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
19977         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
19978         * modules/close-hook: New file.
19979         * modules/close (Files): Remove lib/w32sock.h.
19980         (Depends-on): Add close-hook.
19981         (Link): Remove section.
19982         * modules/sockets (Files): Add lib/w32sock.h.
19983         (Depends-on): Add close-hook.
19984         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
19985         invocation.
19986         * NEWS: Mention that LIB_CLOSE is gone.
19987
19988 2009-03-23  Eric Blake  <ebb9@byu.net>
19989
19990         signal-tests: test previous patch
19991         * tests/test-signal.c: New file.
19992         * modules/signal-tests: Likewise.
19993
19994         signal.h: always support 'volatile sig_atomic_t'
19995         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
19996         (gl_SIGNAL_H_DEFAULTS): Add a default.
19997         * modules/signal (Makefile.am): Substitute if needed.
19998         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
19999         users can blindly add volatile.
20000         * doc/posix-headers/signal.texi (signal.h): Document it.
20001         Reported by Matthew Woehlke.
20002
20003 2009-03-23  Jim Meyering  <meyering@redhat.com>
20004
20005         pathmax: PATH_MAX: use pathconf only when available
20006         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
20007         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
20008         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
20009         This avoids a link failure in a PSP cross-compilation environment
20010         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
20011
20012         * lib/vasnprintf.c (divide): Fix typo in comment.
20013
20014 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20015
20016         * gnulib-tool (func_filter_filelist): Fix comment.
20017
20018 2009-03-20  Bruno Haible  <bruno@clisp.org>
20019
20020         Make sockets.h self-contained.
20021         * lib/sockets.c: Include sockets.h first.
20022         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
20023
20024 2009-03-19  Eric Blake  <ebb9@byu.net>
20025
20026         doc: mention more functions added in cygwin 1.7.0
20027         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
20028         addition.
20029         * doc/posix-functions/log2f.texi: Likewise.
20030
20031 2009-03-19  Jim Meyering  <meyering@redhat.com>
20032
20033         fsusage: avoid syntax error due to statement-before-declaration
20034         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
20035         after all declarations.  Reported by Matthew Woehlke in
20036         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
20037
20038 2009-03-18  Eric Blake  <ebb9@byu.net>
20039
20040         build-aux/compile: sync from automake
20041         * build-aux/compile: New file, from automake.
20042         * config/srclist.txt: Mention build-aux/compile.
20043
20044 2009-03-17  Bruno Haible  <bruno@clisp.org>
20045
20046         * lib/git-merge-changelog.c: Fix typo in comment.
20047         Reported by Reuben Thomas <rrt@sc3d.org>.
20048
20049 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
20050
20051         * m4/regex.m4: update and improve help for
20052         --without-included-regex.
20053
20054 2009-03-17  Simon Josefsson  <simon@josefsson.org>
20055
20056         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
20057         failure on missing include files.
20058
20059 2009-03-17  Eric Blake  <ebb9@byu.net>
20060
20061         doc: mention more functions added in cygwin 1.7.0
20062         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
20063         addition.
20064         * doc/posix-functions/fwscanf.texi: Likewise.
20065         * doc/posix-functions/swprintf.texi: Likewise.
20066         * doc/posix-functions/swscanf.texi: Likewise.
20067         * doc/posix-functions/vfwprintf.texi: Likewise.
20068         * doc/posix-functions/vfwscanf.texi: Likewise.
20069         * doc/posix-functions/vswprintf.texi: Likewise.
20070         * doc/posix-functions/vswscanf.texi: Likewise.
20071         * doc/posix-functions/vwprintf.texi: Likewise.
20072         * doc/posix-functions/vwscanf.texi: Likewise.
20073         * doc/posix-functions/wcscasecmp.texi: Likewise.
20074         * doc/posix-functions/wcsdup.texi: Likewise.
20075         * doc/posix-functions/wcsftime.texi: Likewise.
20076         * doc/posix-functions/wcsncasecmp.texi: Likewise.
20077         * doc/posix-functions/wprintf.texi: Likewise.
20078         * doc/posix-functions/wscanf.texi: Likewise.
20079         * doc/glibc-functions/gethostbyname2.texi: Likewise.
20080
20081 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20082
20083         maint.mk: really add $(AM_MAKEFLAGS)
20084         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
20085         was inadvertently omitted in the last commit.
20086         Spotted by Bruno Haible.
20087
20088         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
20089         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
20090         $(AM_MAKEFLAGS)' rather than plain `make'.
20091
20092         gnulib-tool: execute $MAKE not make
20093         * gnulib-tool: Default $MAKE to 'make'.
20094         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
20095         than make.  Initialize $MAKE in the do-autobuild script.
20096
20097         gnulib-tool: use $MAKE not make in generated files
20098         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
20099         make, in generated files.  Initialize $MAKE in the do-autobuild
20100         script.
20101
20102         * top/GNUmakefile (_have-git-version-gen): Fix typo.
20103
20104         GNUmakefile: disable parallelism only for multiple, recursive targets
20105         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
20106         additions in the Makefile.
20107         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
20108         by Automake.
20109         (.NOTPARALLEL): Only disable parallel builds if multiple targets
20110         are listed on the command line and at least one of them is
20111         listed in $(ALL_RECURSIVE_TARGETS).
20112
20113 2009-03-14  Bruno Haible  <bruno@clisp.org>
20114
20115         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
20116         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
20117         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
20118         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
20119         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
20120         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
20121         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
20122         unistr/u8-uctomb.
20123         * modules/unistr/u8-strchr (Depends-on): Likewise.
20124         * modules/unistr/u8-strrchr (Depends-on): Likewise.
20125         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
20126         unistr/u16-uctomb.
20127         * modules/unistr/u16-strchr (Depends-on): Likewise.
20128         * modules/unistr/u16-strrchr (Depends-on): Likewise.
20129
20130 2009-03-12  Bruno Haible  <bruno@clisp.org>
20131
20132         Work around select() bug on Interix 3.5.
20133         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
20134         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
20135         * m4/select.m4: New file.
20136         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
20137         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
20138         * modules/select (Files): Add m4/select.m4.
20139         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
20140         * modules/nanosleep (Depends-on): Add select.
20141         * modules/poll (Depends-on): Likewise.
20142         * doc/posix-functions/select.texi: Mention the Interix bug.
20143         Reported by Markus Duft <mduft@gentoo.org>.
20144
20145         * lib/select.c: Renamed from lib/winsock-select.c.
20146         * modules/select (Files): Add lib/select.c, remove
20147         lib/winsock-select.c.
20148         (configure.ac): Update.
20149
20150 2009-03-12  Jim Meyering  <meyering@redhat.com>
20151
20152         avoid gcc warnings about unused macro definitions
20153         * lib/readtokens.c (STREQ): Remove unused definition.
20154         * lib/xmalloc.c (SIZE_MAX): Likewise.
20155         * lib/openat-die.c (N_): Likewise.
20156         * lib/mountlist.c (SIZE_MAX): Remove definition.
20157         Instead, include <stdint.h>.
20158         * lib/readutmp.c: Likewise.
20159         * modules/readutmp (Depends-on): Add stdint.
20160         * modules/mountlist (Depends-on): Add stdint.
20161         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
20162
20163 2009-03-10  Bruno Haible  <bruno@clisp.org>
20164
20165         Tests for module 'mbmemcasecoll'.
20166         * modules/mbmemcasecoll-tests: New file.
20167         * tests/test-mbmemcasecoll1.sh: New file.
20168         * tests/test-mbmemcasecoll2.sh: New file.
20169         * tests/test-mbmemcasecoll3.sh: New file.
20170         * tests/test-mbmemcasecoll.c: New file.
20171
20172         New module 'mbmemcasecoll'.
20173         * lib/mbmemcasecoll.h: New file.
20174         * lib/mbmemcasecoll.c: New file.
20175         * modules/mbmemcasecoll: New file.
20176
20177         * tests/test-mbmemcasecmp.h: New file, extracted from
20178         tests/test-mbmemcasecmp.c.
20179         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
20180         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
20181         (main): Update.
20182         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
20183
20184 2009-03-09  Bruno Haible  <bruno@clisp.org>
20185
20186         Tests for module 'mbmemcasecmp'.
20187         * modules/mbmemcasecmp-tests: New file.
20188         * tests/test-mbmemcasecmp1.sh: New file.
20189         * tests/test-mbmemcasecmp2.sh: New file.
20190         * tests/test-mbmemcasecmp3.sh: New file.
20191         * tests/test-mbmemcasecmp.c: New file.
20192
20193         New module 'mbmemcasecmp'.
20194         * lib/mbmemcasecmp.h: New file.
20195         * lib/mbmemcasecmp.c: New file.
20196         * modules/mbmemcasecmp: New file.
20197
20198 2009-03-09  Bruno Haible  <bruno@clisp.org>
20199
20200         Tests for module 'unicase/ulc-casecoll'.
20201         * modules/unicase/ulc-casecoll-tests: New file.
20202         * tests/unicase/test-ulc-casecoll1.sh: New file.
20203         * tests/unicase/test-ulc-casecoll2.sh: New file.
20204         * tests/unicase/test-ulc-casecoll.c: New file.
20205
20206         New module 'unicase/ulc-casecoll'.
20207         * lib/unicase.h (ulc_casecoll): New declaration.
20208         * lib/unicase/ulc-casecoll.c: New file.
20209         * modules/unicase/ulc-casecoll: New file.
20210
20211         New module 'unicase/ulc-casexfrm'.
20212         * lib/unicase.h (ulc_casexfrm): New declaration.
20213         * lib/unicase/ulc-casexfrm.c: New file.
20214         * modules/unicase/ulc-casexfrm: New file.
20215
20216 2009-03-09  Bruno Haible  <bruno@clisp.org>
20217
20218         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
20219         invocations.
20220
20221         * m4/mbscasecmp.m4: Remove file.
20222         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
20223         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
20224
20225         * m4/mbscasestr.m4: Remove file.
20226         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
20227         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
20228
20229         * m4/mbschr.m4: Remove file.
20230         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
20231         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
20232
20233         * m4/mbscspn.m4: Remove file.
20234         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
20235         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
20236
20237         * m4/mbslen.m4: Remove file.
20238         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
20239         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
20240
20241         * m4/mbsncasecmp.m4: Remove file.
20242         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
20243         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
20244
20245         * m4/mbsnlen.m4: Remove file.
20246         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
20247         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
20248
20249         * m4/mbspbrk.m4: Remove file.
20250         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
20251         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
20252
20253         * m4/mbspcasecmp.m4: Remove file.
20254         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
20255         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
20256
20257         * m4/mbsrchr.m4: Remove file.
20258         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
20259         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
20260
20261         * m4/mbssep.m4: Remove file.
20262         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
20263         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
20264
20265         * m4/mbsspn.m4: Remove file.
20266         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
20267         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
20268
20269         * m4/mbsstr.m4: Remove file.
20270         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
20271         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
20272
20273         * m4/mbstok_r.m4: Remove file.
20274         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
20275         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
20276
20277         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
20278
20279         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
20280         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
20281
20282         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
20283
20284 2009-03-08  Bruno Haible  <bruno@clisp.org>
20285
20286         Tests for module 'unicase/ulc-casecmp'.
20287         * modules/unicase/ulc-casecmp-tests: New file.
20288         * tests/unicase/test-ulc-casecmp1.sh: New file.
20289         * tests/unicase/test-ulc-casecmp2.sh: New file.
20290         * tests/unicase/test-ulc-casecmp.c: New file.
20291
20292         New module 'unicase/ulc-casecmp'.
20293         * lib/unicase.h (ulc_casecmp): New declaration.
20294         * lib/unicase/ulc-casecmp.c: New file.
20295         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
20296         'const SRC_UNIT *'.
20297         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
20298         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
20299         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
20300         * modules/unicase/ulc-casecmp: New file.
20301
20302         Tests for module 'unicase/u32-is-cased'.
20303         * modules/unicase/u32-is-cased-tests: New file.
20304         * tests/unicase/test-u32-is-cased.c: New file.
20305
20306         Tests for module 'unicase/u16-is-cased'.
20307         * modules/unicase/u16-is-cased-tests: New file.
20308         * tests/unicase/test-u16-is-cased.c: New file.
20309
20310         Tests for module 'unicase/u8-is-cased'.
20311         * modules/unicase/u8-is-cased-tests: New file.
20312         * tests/unicase/test-u8-is-cased.c: New file.
20313         * tests/unicase/test-is-cased.h: New file.
20314
20315         New module 'unicase/u32-is-cased'.
20316         * lib/unicase/u32-is-cased.c: New file.
20317         * modules/unicase/u32-is-cased: New file.
20318
20319         New module 'unicase/u16-is-cased'.
20320         * lib/unicase/u16-is-cased.c: New file.
20321         * modules/unicase/u16-is-cased: New file.
20322
20323         New module 'unicase/u8-is-cased'.
20324         * lib/unicase/u8-is-cased.c: New file.
20325         * lib/unicase/u-is-cased.h: New file.
20326         * modules/unicase/u8-is-cased: New file.
20327
20328         Tests for module 'unicase/u32-is-casefolded'.
20329         * modules/unicase/u32-is-casefolded-tests: New file.
20330         * tests/unicase/test-u32-is-casefolded.c: New file.
20331
20332         Tests for module 'unicase/u16-is-casefolded'.
20333         * modules/unicase/u16-is-casefolded-tests: New file.
20334         * tests/unicase/test-u16-is-casefolded.c: New file.
20335
20336         Tests for module 'unicase/u8-is-casefolded'.
20337         * modules/unicase/u8-is-casefolded-tests: New file.
20338         * tests/unicase/test-u8-is-casefolded.c: New file.
20339         * tests/unicase/test-is-casefolded.h: New file.
20340
20341         New module 'unicase/u32-is-casefolded'.
20342         * lib/unicase/u32-is-casefolded.c: New file.
20343         * modules/unicase/u32-is-casefolded: New file.
20344
20345         New module 'unicase/u16-is-casefolded'.
20346         * lib/unicase/u16-is-casefolded.c: New file.
20347         * modules/unicase/u16-is-casefolded: New file.
20348
20349         New module 'unicase/u8-is-casefolded'.
20350         * lib/unicase/u8-is-casefolded.c: New file.
20351         * modules/unicase/u8-is-casefolded: New file.
20352
20353         Tests for module 'unicase/u32-is-titlecase'.
20354         * modules/unicase/u32-is-titlecase-tests: New file.
20355         * tests/unicase/test-u32-is-titlecase.c: New file.
20356
20357         Tests for module 'unicase/u16-is-titlecase'.
20358         * modules/unicase/u16-is-titlecase-tests: New file.
20359         * tests/unicase/test-u16-is-titlecase.c: New file.
20360
20361         Tests for module 'unicase/u8-is-titlecase'.
20362         * modules/unicase/u8-is-titlecase-tests: New file.
20363         * tests/unicase/test-u8-is-titlecase.c: New file.
20364         * tests/unicase/test-is-titlecase.h: New file.
20365
20366         New module 'unicase/u32-is-titlecase'.
20367         * lib/unicase/u32-is-titlecase.c: New file.
20368         * modules/unicase/u32-is-titlecase: New file.
20369
20370         New module 'unicase/u16-is-titlecase'.
20371         * lib/unicase/u16-is-titlecase.c: New file.
20372         * modules/unicase/u16-is-titlecase: New file.
20373
20374         New module 'unicase/u8-is-titlecase'.
20375         * lib/unicase/u8-is-titlecase.c: New file.
20376         * modules/unicase/u8-is-titlecase: New file.
20377
20378         Tests for module 'unicase/u32-is-lowercase'.
20379         * modules/unicase/u32-is-lowercase-tests: New file.
20380         * tests/unicase/test-u32-is-lowercase.c: New file.
20381
20382         Tests for module 'unicase/u16-is-lowercase'.
20383         * modules/unicase/u16-is-lowercase-tests: New file.
20384         * tests/unicase/test-u16-is-lowercase.c: New file.
20385
20386         Tests for module 'unicase/u8-is-lowercase'.
20387         * modules/unicase/u8-is-lowercase-tests: New file.
20388         * tests/unicase/test-u8-is-lowercase.c: New file.
20389         * tests/unicase/test-is-lowercase.h: New file.
20390
20391         New module 'unicase/u32-is-lowercase'.
20392         * lib/unicase/u32-is-lowercase.c: New file.
20393         * modules/unicase/u32-is-lowercase: New file.
20394
20395         New module 'unicase/u16-is-lowercase'.
20396         * lib/unicase/u16-is-lowercase.c: New file.
20397         * modules/unicase/u16-is-lowercase: New file.
20398
20399         New module 'unicase/u8-is-lowercase'.
20400         * lib/unicase/u8-is-lowercase.c: New file.
20401         * modules/unicase/u8-is-lowercase: New file.
20402
20403         Tests for module 'unicase/u32-is-uppercase'.
20404         * modules/unicase/u32-is-uppercase-tests: New file.
20405         * tests/unicase/test-u32-is-uppercase.c: New file.
20406
20407         Tests for module 'unicase/u16-is-uppercase'.
20408         * modules/unicase/u16-is-uppercase-tests: New file.
20409         * tests/unicase/test-u16-is-uppercase.c: New file.
20410
20411         Tests for module 'unicase/u8-is-uppercase'.
20412         * modules/unicase/u8-is-uppercase-tests: New file.
20413         * tests/unicase/test-u8-is-uppercase.c: New file.
20414         * tests/unicase/test-is-uppercase.h: New file.
20415
20416         New module 'unicase/u32-is-uppercase'.
20417         * lib/unicase/u32-is-uppercase.c: New file.
20418         * modules/unicase/u32-is-uppercase: New file.
20419
20420         New module 'unicase/u16-is-uppercase'.
20421         * lib/unicase/u16-is-uppercase.c: New file.
20422         * modules/unicase/u16-is-uppercase: New file.
20423
20424         New module 'unicase/u8-is-uppercase'.
20425         * lib/unicase/u8-is-uppercase.c: New file.
20426         * modules/unicase/u8-is-uppercase: New file.
20427
20428         New module 'unicase/u32-is-invariant'.
20429         * lib/unicase/u32-is-invariant.c: New file.
20430         * modules/unicase/u32-is-invariant: New file.
20431
20432         New module 'unicase/u16-is-invariant'.
20433         * lib/unicase/u16-is-invariant.c: New file.
20434         * modules/unicase/u16-is-invariant: New file.
20435
20436         New module 'unicase/u8-is-invariant'.
20437         * lib/unicase/u8-is-invariant.c: New file.
20438         * lib/unicase/invariant.h: New file.
20439         * lib/unicase/u-is-invariant.h: New file.
20440         * modules/unicase/u8-is-invariant: New file.
20441
20442         Tests for module 'unicase/u32-casecoll'.
20443         * modules/unicase/u32-casecoll-tests: New file.
20444         * tests/unicase/test-u32-casecoll.c: New file.
20445
20446         Tests for module 'unicase/u16-casecoll'.
20447         * modules/unicase/u16-casecoll-tests: New file.
20448         * tests/unicase/test-u16-casecoll.c: New file.
20449
20450         Tests for module 'unicase/u8-casecoll'.
20451         * modules/unicase/u8-casecoll-tests: New file.
20452         * tests/unicase/test-u8-casecoll.c: New file.
20453
20454         New module 'unicase/u32-casecoll'.
20455         * lib/unicase/u32-casecoll.c: New file.
20456         * modules/unicase/u32-casecoll: New file.
20457
20458         New module 'unicase/u16-casecoll'.
20459         * lib/unicase/u16-casecoll.c: New file.
20460         * modules/unicase/u16-casecoll: New file.
20461
20462         New module 'unicase/u8-casecoll'.
20463         * lib/unicase/u8-casecoll.c: New file.
20464         * lib/unicase/u-casecoll.h: New file.
20465         * modules/unicase/u8-casecoll: New file.
20466
20467         New module 'unicase/u32-casexfrm'.
20468         * lib/unicase/u32-casexfrm.c: New file.
20469         * modules/unicase/u32-casexfrm: New file.
20470
20471         New module 'unicase/u16-casexfrm'.
20472         * lib/unicase/u16-casexfrm.c: New file.
20473         * modules/unicase/u16-casexfrm: New file.
20474
20475         New module 'unicase/u8-casexfrm'.
20476         * lib/unicase/u8-casexfrm.c: New file.
20477         * lib/unicase/u-casexfrm.h: New file.
20478         * modules/unicase/u8-casexfrm: New file.
20479
20480         Tests for module 'unicase/u32-casecmp'.
20481         * modules/unicase/u32-casecmp-tests: New file.
20482         * tests/unicase/test-u32-casecmp.c: New file.
20483
20484         Tests for module 'unicase/u16-casecmp'.
20485         * modules/unicase/u16-casecmp-tests: New file.
20486         * tests/unicase/test-u16-casecmp.c: New file.
20487
20488         Tests for module 'unicase/u8-casecmp'.
20489         * modules/unicase/u8-casecmp-tests: New file.
20490         * tests/unicase/test-u8-casecmp.c: New file.
20491         * tests/unicase/test-casecmp.h: New file.
20492
20493         New module 'unicase/u32-casecmp'.
20494         * lib/unicase/u32-casecmp.c: New file.
20495         * modules/unicase/u32-casecmp: New file.
20496
20497         New module 'unicase/u16-casecmp'.
20498         * lib/unicase/u16-casecmp.c: New file.
20499         * modules/unicase/u16-casecmp: New file.
20500
20501         New module 'unicase/u8-casecmp'.
20502         * lib/unicase/u8-casecmp.c: New file.
20503         * lib/unicase/u-casecmp.h: New file.
20504         * modules/unicase/u8-casecmp: New file.
20505
20506         Tests for module 'unicase/u32-casefold'.
20507         * modules/unicase/u32-casefold-tests: New file.
20508         * tests/unicase/test-u32-casefold.c: New file.
20509
20510         Tests for module 'unicase/u16-casefold'.
20511         * modules/unicase/u16-casefold-tests: New file.
20512         * tests/unicase/test-u16-casefold.c: New file.
20513
20514         Tests for module 'unicase/u8-casefold'.
20515         * modules/unicase/u8-casefold-tests: New file.
20516         * tests/unicase/test-u8-casefold.c: New file.
20517
20518         New module 'unicase/u32-casefold'.
20519         * lib/unicase/u32-casefold.c: New file.
20520         * modules/unicase/u32-casefold: New file.
20521
20522         New module 'unicase/u16-casefold'.
20523         * lib/unicase/u16-casefold.c: New file.
20524         * modules/unicase/u16-casefold: New file.
20525
20526         New module 'unicase/u8-casefold'.
20527         * lib/unicase/u8-casefold.c: New file.
20528         * lib/unicase/u-casefold.h: New file.
20529         * modules/unicase/u8-casefold: New file.
20530
20531         New module 'unicase/tocasefold'.
20532         * lib/unicase/casefold.h: New file.
20533         * lib/unicase/tocasefold.c: New file.
20534         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
20535         * modules/unicase/tocasefold: New file.
20536
20537         Tests for module 'unicase/u32-totitle'.
20538         * modules/unicase/u32-totitle-tests: New file.
20539         * tests/unicase/test-u32-totitle.c: New file.
20540
20541         Tests for module 'unicase/u16-totitle'.
20542         * modules/unicase/u16-totitle-tests: New file.
20543         * tests/unicase/test-u16-totitle.c: New file.
20544
20545         Tests for module 'unicase/u8-totitle'.
20546         * modules/unicase/u8-totitle-tests: New file.
20547         * tests/unicase/test-u8-totitle.c: New file.
20548
20549         New module 'unicase/u32-totitle'.
20550         * lib/unicase/u32-totitle.c: New file.
20551         * modules/unicase/u32-totitle: New file.
20552
20553         New module 'unicase/u16-totitle'.
20554         * lib/unicase/u16-totitle.c: New file.
20555         * modules/unicase/u16-totitle: New file.
20556
20557         New module 'unicase/u8-totitle'.
20558         * lib/unicase/u8-totitle.c: New file.
20559         * lib/unicase/u-totitle.h: New file.
20560         * modules/unicase/u8-totitle: New file.
20561
20562         Tests for module 'unicase/u32-tolower'.
20563         * modules/unicase/u32-tolower-tests: New file.
20564         * tests/unicase/test-u32-tolower.c: New file.
20565
20566         Tests for module 'unicase/u16-tolower'.
20567         * modules/unicase/u16-tolower-tests: New file.
20568         * tests/unicase/test-u16-tolower.c: New file.
20569
20570         Tests for module 'unicase/u8-tolower'.
20571         * modules/unicase/u8-tolower-tests: New file.
20572         * tests/unicase/test-u8-tolower.c: New file.
20573
20574         New module 'unicase/u32-tolower'.
20575         * lib/unicase/u32-tolower.c: New file.
20576         * modules/unicase/u32-tolower: New file.
20577
20578         New module 'unicase/u16-tolower'.
20579         * lib/unicase/u16-tolower.c: New file.
20580         * modules/unicase/u16-tolower: New file.
20581
20582         New module 'unicase/u8-tolower'.
20583         * lib/unicase/u8-tolower.c: New file.
20584         * modules/unicase/u8-tolower: New file.
20585
20586         Tests for module 'unicase/u32-toupper'.
20587         * modules/unicase/u32-toupper-tests: New file.
20588         * tests/unicase/test-u32-toupper.c: New file.
20589
20590         Tests for module 'unicase/u16-toupper'.
20591         * modules/unicase/u16-toupper-tests: New file.
20592         * tests/unicase/test-u16-toupper.c: New file.
20593
20594         Tests for module 'unicase/u8-toupper'.
20595         * modules/unicase/u8-toupper-tests: New file.
20596         * tests/unicase/test-u8-toupper.c: New file.
20597
20598         New module 'unicase/u32-toupper'.
20599         * lib/unicase/u32-toupper.c: New file.
20600         * modules/unicase/u32-toupper: New file.
20601
20602         New module 'unicase/u16-toupper'.
20603         * lib/unicase/u16-toupper.c: New file.
20604         * modules/unicase/u16-toupper: New file.
20605
20606         New module 'unicase/u8-toupper'.
20607         * lib/unicase/u8-toupper.c: New file.
20608         * modules/unicase/u8-toupper: New file.
20609
20610         New module 'unicase/u32-casemap'.
20611         * lib/unicase/u32-casemap.c: New file.
20612         * modules/unicase/u32-casemap: New file.
20613
20614         New module 'unicase/u16-casemap'.
20615         * lib/unicase/u16-casemap.c: New file.
20616         * modules/unicase/u16-casemap: New file.
20617
20618         New module 'unicase/u8-casemap'.
20619         * lib/unicase/unicasemap.h: New file.
20620         * lib/unicase/u8-casemap.c: New file.
20621         * lib/unicase/u-casemap.h: New file.
20622         * modules/unicase/u8-casemap: New file.
20623
20624         New module 'unicase/special-casing'.
20625         * lib/unicase/special-casing.h: New file.
20626         * lib/unicase/special-casing.c: New file.
20627         * lib/unicase/special-casing-table.gperf: New file, generated by
20628         gen-uni-tables.c.
20629         * modules/unicase/special-casing: New file.
20630
20631         Tests for module 'unicase/locale-language'.
20632         * modules/unicase/locale-language-tests: New file.
20633         * tests/unicase/test-locale-language.sh: New file.
20634         * tests/unicase/test-locale-language.c: New file.
20635
20636         New module 'unicase/locale-language'.
20637         * lib/unicase/locale-language.c: New file.
20638         * lib/unicase/locale-languages.gperf: New file.
20639         * modules/unicase/locale-language: New file.
20640
20641         Generate more tables for case conversion and case folding.
20642         * lib/gen-uni-tables.c (SCC_*): New enum items.
20643         (struct special_casing_rule): New type.
20644         (casing_rules, num_casing_rules, allocated_casing_rules): New
20645         variables.
20646         (add_casing_rule, fill_casing_rules): New functions.
20647         (struct casefold_rule): New type.
20648         (casefolding_rules, num_casefolding_rules,
20649         allocated_casefolding_rules): New variables.
20650         (fill_casefolding_rules): New function.
20651         (unicode_casefold): New variable.
20652         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
20653         sort_casing_rules, output_casing_rules): New functions.
20654         (main): Accept to more arguments: SpecialCasing.txt and
20655         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
20656         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
20657         Output mapping for casefolding.
20658
20659         * lib/unicase.h: Include stdbool.h, uninorm.h.
20660         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
20661         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
20662         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
20663         arguments.
20664         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
20665         resultp arguments.
20666         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
20667         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
20668         resultp arguments.
20669         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
20670         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
20671         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
20672         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
20673         declarations.
20674         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
20675
20676 2009-03-08  Bruno Haible  <bruno@clisp.org>
20677
20678         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
20679         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
20680         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
20681         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
20682
20683 2009-03-07  Bruno Haible  <bruno@clisp.org>
20684
20685         Adjust u*_normcmp, u*_normcoll API.
20686         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
20687         u16_normcoll, u32_normcoll): Change failure conventions.
20688         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
20689         errno and return -1.
20690         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
20691
20692 2009-03-07  Bruno Haible  <bruno@clisp.org>
20693
20694         Tests for module 'uninorm/u32-normcoll'.
20695         * modules/uninorm/u32-normcoll-tests: New file.
20696         * tests/uninorm/test-u32-normcoll.c: New file.
20697
20698         Tests for module 'uninorm/u16-normcoll'.
20699         * modules/uninorm/u16-normcoll-tests: New file.
20700         * tests/uninorm/test-u16-normcoll.c: New file.
20701
20702         Tests for module 'uninorm/u8-normcoll'.
20703         * modules/uninorm/u8-normcoll-tests: New file.
20704         * tests/uninorm/test-u8-normcoll.c: New file.
20705
20706 2009-03-07  Bruno Haible  <bruno@clisp.org>
20707
20708         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
20709         tests/uninorm/test-u32-normcmp.c.
20710         * tests/uninorm/test-u32-normcmp.c: Include it.
20711         (test_nonascii): New function, extracted from main. Add some more
20712         tests.
20713         (main): Invoke test_ascii and test_nonascii.
20714         * modules/uninorm/u32-normcmp-tests (Files): Add
20715         tests/uninorm/test-u32-normcmp.h.
20716         (Depends-on): Remove uninorm/u32-normcmp.
20717
20718         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
20719         tests/uninorm/test-u16-normcmp.c.
20720         * tests/uninorm/test-u16-normcmp.c: Include it.
20721         (test_nonascii): New function, extracted from main. Add some more
20722         tests.
20723         (main): Invoke test_ascii and test_nonascii.
20724         * modules/uninorm/u16-normcmp-tests (Files): Add
20725         tests/uninorm/test-u16-normcmp.h.
20726         (Depends-on): Remove uninorm/u16-normcmp.
20727
20728         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
20729         tests/uninorm/test-u8-normcmp.c.
20730         * tests/uninorm/test-u8-normcmp.c: Include it.
20731         (test_nonascii): New function, extracted from main. Add some more
20732         tests.
20733         (main): Invoke test_ascii and test_nonascii.
20734         * modules/uninorm/u8-normcmp-tests (Files): Add
20735         tests/uninorm/test-u8-normcmp.h.
20736         (Depends-on): Remove uninorm/u8-normcmp.
20737
20738 2009-03-07  Bruno Haible  <bruno@clisp.org>
20739
20740         New module 'uninorm/u32-normcoll'.
20741         * lib/uninorm/u32-normcoll.c: New file.
20742         * modules/uninorm/u32-normcoll: New file.
20743
20744         New module 'uninorm/u16-normcoll'.
20745         * lib/uninorm/u16-normcoll.c: New file.
20746         * modules/uninorm/u16-normcoll: New file.
20747
20748         New module 'uninorm/u8-normcoll'.
20749         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
20750         declarations.
20751         * lib/uninorm/u8-normcoll.c: New file.
20752         * lib/uninorm/u-normcoll.h: New file.
20753         * modules/uninorm/u8-normcoll: New file.
20754
20755         New module 'uninorm/u32-normxfrm'.
20756         * lib/uninorm/u32-normxfrm.c: New file.
20757         * modules/uninorm/u32-normxfrm: New file.
20758
20759         New module 'uninorm/u16-normxfrm'.
20760         * lib/uninorm/u16-normxfrm.c: New file.
20761         * modules/uninorm/u16-normxfrm: New file.
20762
20763         New module 'uninorm/u8-normxfrm'.
20764         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
20765         declarations.
20766         * lib/uninorm/u8-normxfrm.c: New file.
20767         * lib/uninorm/u-normxfrm.h: New file.
20768         * modules/uninorm/u8-normxfrm: New file.
20769
20770 2009-03-07  Bruno Haible  <bruno@clisp.org>
20771
20772         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
20773         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
20774         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
20775
20776 2009-03-07  Bruno Haible  <bruno@clisp.org>
20777
20778         New module 'memxfrm'.
20779         * lib/memxfrm.h: New file.
20780         * lib/memxfrm.c: New file.
20781         * modules/memxfrm: New file.
20782
20783 2009-03-07  Bruno Haible  <bruno@clisp.org>
20784
20785         New module 'memcmp2'.
20786         * lib/memcmp2.h: New file.
20787         * lib/memcmp2.c: New file.
20788         * modules/memcmp2: New file.
20789
20790 2009-03-07  Bruno Haible  <bruno@clisp.org>
20791
20792         Tests for module 'uninorm/decomposing-form'.
20793         * modules/uninorm/decomposing-form-tests: New file.
20794         * tests/uninorm/test-decomposing-form.c: New file.
20795
20796         New module 'uninorm/decomposing-form'.
20797         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
20798         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
20799         Add 'decomposing_variant' field.
20800         * lib/uninorm/decomposing-form.c: New file.
20801         * lib/uninorm/nfc.c (uninorm_nfc): Update.
20802         * lib/uninorm/nfd.c (uninorm_nfd): Update.
20803         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
20804         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
20805         * modules/uninorm/decomposing-form: New file.
20806         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
20807         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
20808
20809 2009-03-07  Bruno Haible  <bruno@clisp.org>
20810
20811         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
20812         strings.
20813
20814 2009-03-06  Bruno Haible  <bruno@clisp.org>
20815
20816         Tests for module 'uninorm/u32-normcmp'.
20817         * tests/uninorm/test-u32-normcmp.c: New file.
20818         * modules/uninorm/u32-normcmp-tests: New file.
20819
20820         Tests for module 'uninorm/u16-normcmp'.
20821         * tests/uninorm/test-u16-normcmp.c: New file.
20822         * modules/uninorm/u16-normcmp-tests: New file.
20823
20824         Tests for module 'uninorm/u8-normcmp'.
20825         * tests/uninorm/test-u8-normcmp.c: New file.
20826         * modules/uninorm/u8-normcmp-tests: New file.
20827
20828         New module 'uninorm/u32-normcmp'.
20829         * lib/uninorm/u32-normcmp.c: New file.
20830         * modules/uninorm/u32-normcmp: New file.
20831
20832         New module 'uninorm/u16-normcmp'.
20833         * lib/uninorm/u16-normcmp.c: New file.
20834         * modules/uninorm/u16-normcmp: New file.
20835
20836         New module 'uninorm/u8-normcmp'.
20837         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
20838         declarations.
20839         * lib/uninorm/u8-normcmp.c: New file.
20840         * lib/uninorm/u-normcmp.h: New file.
20841         * modules/uninorm/u8-normcmp: New file.
20842
20843 2009-03-06  Bruno Haible  <bruno@clisp.org>
20844
20845         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
20846         Reported by Eric Blake.
20847
20848 2009-03-06  Eric Blake  <ebb9@byu.net>
20849             Bruno Haible  <bruno@clisp.org>
20850
20851         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
20852         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
20853         condition.
20854         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
20855         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
20856         condition.
20857         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
20858
20859 2009-03-06  Eric Blake  <ebb9@byu.net>
20860
20861         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
20862         to avoid compiler warnings.
20863         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
20864
20865 2009-03-05  Bruno Haible  <bruno@clisp.org>
20866
20867         * tests/test-ftell.c (main): Disable test beyond end of file on
20868         FreeMiNT.
20869         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
20870
20871 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
20872
20873         * lib/filevercmp.c: Move hidden files up in ordering.
20874         * tests/test-filevercmp.c: Add tests for hidden files.
20875
20876 2009-03-04  Bruno Haible  <bruno@clisp.org>
20877
20878         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
20879         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
20880         AM_CFLAGS.
20881         Reported by Simon Josefsson.
20882
20883 2009-03-03  Bruno Haible  <bruno@clisp.org>
20884
20885         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
20886         Reported by Simon Josefsson.
20887
20888         * doc/ld-version-script.texi: Update node reference.
20889
20890 2009-03-03  Bruno Haible  <bruno@clisp.org>
20891
20892         * modules/visibility (License): Change to 'unlimited'.
20893         Suggested by Simon Josefsson.
20894
20895 2009-03-03  Jim Meyering  <meyering@redhat.com>
20896
20897         unlinkdir: cannot_unlink_dir may modify process state
20898         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
20899         it's neither thread-safe nor appropriate for use in a library.
20900
20901 2009-03-03  Eric Blake  <ebb9@byu.net>
20902
20903         test-closein: silence test under Darwin
20904         * tests/test-closein.sh: Ignore stderr from cat, since we don't
20905         care if it dies from EPIPE or EBADF.
20906
20907 2009-03-03  Bruno Haible  <bruno@clisp.org>
20908
20909         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
20910         earlier.
20911         * doc/visibility.texi: Fix @node and @section.
20912
20913 2009-03-03  Simon Josefsson  <simon@josefsson.org>
20914
20915         * doc/gnulib.texi: Link to sections for ld version script and
20916         visibility.
20917         * doc/visibility.texi: Add @node and @section.
20918         * modules/ld-version-script: New module.
20919         * m4/ld-version-script.m4: New file.
20920         * doc/ld-version-script.texi: New file.
20921
20922 2009-03-02  David Lutterkort  <lutter@redhat.com>
20923
20924         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
20925         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20926
20927 2009-03-02  Bruno Haible  <bruno@clisp.org>
20928
20929         * doc/visibility.texi: Mention libtool's -export-symbols option.
20930
20931 2009-03-02  Jim Meyering  <meyering@redhat.com>
20932
20933         announce-gen: new option: --no-print-checksums
20934         * build-aux/announce-gen (usage): Describe it.
20935         (print_checksums): Print a newline here, not in the [*] footnote.
20936         (main): Honor it.
20937
20938 2009-03-01  Bruno Haible  <bruno@clisp.org>
20939
20940         Use socklen_t in the native Windows replacements prototypes.
20941         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
20942         instead of 'int'.
20943         * lib/getsockopt.c (rpl_getsockopt): Likewise.
20944         * lib/setsockopt.c (rpl_setsockopt): Likewise.
20945         * modules/getsockopt (Depends-on): Add socklen.
20946         * modules/setsockopt (Depends-on): Add socklen.
20947
20948 2009-03-01  Bruno Haible  <bruno@clisp.org>
20949
20950         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
20951         least 4.2.
20952
20953 2009-03-01  Eric Blake  <ebb9@byu.net>
20954             Bruno Haible  <bruno@clisp.org>
20955
20956         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
20957         error messages.
20958         * lib/wait-process.c (wait_subprocess): Omit error message about
20959         deadly signal sent to the child of termsigp != NULL.
20960
20961 2009-03-01  Eric Blake  <ebb9@byu.net>
20962
20963         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
20964
20965 2009-03-01  Bruno Haible  <bruno@clisp.org>
20966
20967         Avoid a gcc warning.
20968         * tests/test-sched.c (b): Make global.
20969         Reported by Eric Blake.
20970
20971 2009-01-19  Martin Lambers  <marlam@marlam.de>
20972
20973         Provide POSIX semantics for socket timeout options on W32.
20974         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
20975         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
20976         * modules/setsockopt: Depend on sys_time module for struct timeval.
20977         * modules/getsockopt: Depend on sys_time module for struct timeval.
20978
20979 2009-03-01  Simon Josefsson  <simon@josefsson.org>
20980
20981         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
20982         __USE_GNU, for consistency with netdb.in.h.
20983         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20984
20985 2009-03-01  Bruno Haible  <bruno@clisp.org>
20986
20987         More support for FreeMiNT.
20988         * lib/fseeko.c (rpl_fseeko): Complete last commit.
20989         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20990
20991 2009-03-01  Bruno Haible  <bruno@clisp.org>
20992
20993         More support for FreeMiNT.
20994         * lib/fpurge.c (fpurge): Correct last commit.
20995         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
20996
20997 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20998
20999         Fix unportable awk script in vc-list-files.
21000         * build-aux/vc-list-files: In the replacement awk script, use
21001         substr with a second argument of 1, not zero.
21002         Report by Simon Josefsson.
21003
21004 2009-02-28  Bruno Haible  <bruno@clisp.org>
21005
21006         More support for FreeMiNT.
21007         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
21008         to FreeMiNT today.
21009         * lib/fwriting.c (fwriting): Likewise.
21010         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
21011
21012 2009-02-28  Bruno Haible  <bruno@clisp.org>
21013
21014         * tests/test-freadseek.c (main): Disable test beyond end of file on
21015         FreeMiNT.
21016         * tests/test-ftello.c (main): Likewise.
21017         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
21018
21019 2009-02-28  Bruno Haible  <bruno@clisp.org>
21020
21021         Add tentative support for FreeMiNT.
21022         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
21023         * lib/fpurge.c (fpurge): Likewise.
21024         * lib/freadable.c (freadable): Likewise.
21025         * lib/freading.c (freading): Likewise.
21026         * lib/freadptr.c (freadptr): Likewise.
21027         * lib/freadseek.c (freadptrinc): Likewise.
21028         * lib/fseeko.c (rpl_fseeko): Likewise.
21029         * lib/fseterr.c (fseterr): Likewise.
21030         * lib/fwritable.c (fwritable): Likewise.
21031         * lib/fwriting.c (fwriting): Likewise.
21032         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
21033         Hourihane.
21034         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
21035
21036 2009-02-28  Bruno Haible  <bruno@clisp.org>
21037
21038         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
21039         SIGCHLD.
21040         Reported by Jim Meyering.
21041
21042 2009-02-28  Bruno Haible  <bruno@clisp.org>
21043
21044         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
21045         Mention the results of these tests on various platforms.
21046         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
21047         order.
21048         * doc/posix-functions/printf.texi: Likewise.
21049         * doc/posix-functions/snprintf.texi: Likewise.
21050         * doc/posix-functions/sprintf.texi: Likewise.
21051         * doc/posix-functions/vfprintf.texi: Likewise.
21052         * doc/posix-functions/vprintf.texi: Likewise.
21053         * doc/posix-functions/vsnprintf.texi: Likewise.
21054         * doc/posix-functions/vsprintf.texi: Likewise.
21055         * doc/glibc-functions/obstack_printf.texi: Likewise.
21056         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
21057
21058 2009-02-28  Bruno Haible  <bruno@clisp.org>
21059
21060         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
21061         Reported by Loïc Minier <lool@dooz.org>.
21062
21063 2009-02-27  Bruno Haible  <bruno@clisp.org>
21064
21065         * gnulib-tool (func_import): Make the sed expression used to create the
21066         sed script for updating the .gitignore file POSIX compliant.
21067         Reported by Eric Blake.
21068
21069 2009-02-27  Bruno Haible  <bruno@clisp.org>
21070
21071         * gnulib-tool (sed): Don't alias as "sed --posix".
21072         Reported by Eric Blake.
21073
21074 2009-02-27  Bruno Haible  <bruno@clisp.org>
21075
21076         Avoid test link errors.
21077         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
21078         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
21079         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
21080         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
21081         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21082
21083 2009-02-27  Bruno Haible  <bruno@clisp.org>
21084
21085         Avoid spurious "(cached)" in configure output.
21086         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
21087         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
21088         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
21089         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
21090         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
21091         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
21092         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
21093         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
21094         Reported by Eric Blake.
21095
21096 2009-02-27  Eric Blake  <ebb9@byu.net>
21097
21098         printf: fix regression in previous patch
21099         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
21100
21101 2009-02-27  Bruno Haible  <bruno@clisp.org>
21102
21103         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
21104         value.
21105         * lib/stdint.in.h: Likewise.
21106         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
21107
21108 2009-02-27  Eric Blake  <ebb9@byu.net>
21109
21110         doc: mention more functions added in cygwin 1.7.0
21111         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
21112         addition.
21113         * doc/posix-functions/open_wmemstream.texi: Likewise.
21114         * doc/posix-functions/wcsnlen.texi: Likewise.
21115         * doc/posix-functions/wcsnrtombs.texi: Likewise.
21116         * doc/posix-functions/wcstod.texi: Likewise.
21117         * doc/posix-functions/wcstof.texi: Likewise.
21118         * doc/posix-functions/wcstoimax.texi: Likewise.
21119         * doc/posix-functions/wcstok.texi: Likewise.
21120         * doc/posix-functions/wcstoumax.texi: Likewise.
21121
21122         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
21123         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
21124         * doc/posix-functions/fprintf.texi: Update.
21125         * doc/posix-functions/printf.texi: Update.
21126         * doc/posix-functions/snprintf.texi: Update.
21127         * doc/posix-functions/sprintf.texi: Update.
21128         * doc/posix-functions/vfprintf.texi: Update.
21129         * doc/posix-functions/vprintf.texi: Update.
21130         * doc/posix-functions/vsnprintf.texi: Update.
21131         * doc/posix-functions/vsprintf.texi: Update.
21132         * doc/glibc-functions/obstack_printf.texi: Update.
21133         * doc/glibc-functions/obstack_vprintf.texi: Update.
21134
21135 2009-02-26  Eric Blake  <ebb9@byu.net>
21136
21137         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
21138         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
21139         compilation bug by using runtime conversion.
21140         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
21141         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
21142         * modules/ceill-tests (Files): Use nan.h.
21143         * modules/floorl-tests (Files): Likewise.
21144         * modules/frexpl-tests (Files): Likewise.
21145         * modules/isnanl-tests (Files): Likewise.
21146         * modules/ldexpl-tests (Files): Likewise.
21147         * modules/roundl-tests (Files): Likewise.
21148         * modules/truncl-tests (Files): Likewise.
21149         * tests/test-ceill.c (main): Use a working NaN.
21150         * tests/test-floorl.c (main): Likewise.
21151         * tests/test-frexpl.c (main): Likewise.
21152         * tests/test-isnan.c (test_long_double): Likewise.
21153         * tests/test-isnanl.h (main): Likewise.
21154         * tests/test-ldexpl.h (main): Likewise.
21155         * tests/test-roundl.h (main): Likewise.
21156         * tests/test-truncl.h (main): Likewise.
21157         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
21158
21159 2009-02-26  Eric Blake  <ebb9@byu.net>
21160             Bruno Haible  <bruno@clisp.org>
21161
21162         Work around a *printf bug with %ls on Solaris.
21163         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
21164         precision is specified, sprintf stops converting the wide string
21165         argument when the number of bytes that have been produced by this
21166         conversion equals or exceeds the precision.
21167         * doc/posix-functions/fprintf.texi: Update.
21168         * doc/posix-functions/printf.texi: Update.
21169         * doc/posix-functions/snprintf.texi: Update.
21170         * doc/posix-functions/sprintf.texi: Update.
21171         * doc/posix-functions/vfprintf.texi: Update.
21172         * doc/posix-functions/vprintf.texi: Update.
21173         * doc/posix-functions/vsnprintf.texi: Update.
21174         * doc/posix-functions/vsprintf.texi: Update.
21175         * doc/glibc-functions/obstack_printf.texi: Update.
21176         * doc/glibc-functions/obstack_vprintf.texi: Update.
21177
21178 2009-02-26  Eric Blake  <ebb9@byu.net>
21179
21180         stdlib: favor compiler check of random.h
21181         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
21182         to avoid an ObjC random.h installed by Swarm.
21183
21184 2009-02-26  Bruno Haible  <bruno@clisp.org>
21185
21186         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
21187         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
21188         Reported by Gary V. Vaughan <gary@gnu.org>.
21189
21190 2009-02-26  Bruno Haible  <bruno@clisp.org>
21191
21192         Fix *printf behaviour regarding the %ls directive.
21193         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
21194         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
21195         NEED_PRINTF_DIRECTIVE_LS.
21196         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
21197         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
21198         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
21199         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
21200         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
21201         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
21202         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
21203         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
21204         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
21205         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
21206         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
21207         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
21208         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
21209         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
21210         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
21211         * doc/posix-functions/fprintf.texi: Update.
21212         * doc/posix-functions/printf.texi: Update.
21213         * doc/posix-functions/snprintf.texi: Update.
21214         * doc/posix-functions/sprintf.texi: Update.
21215         * doc/posix-functions/vfprintf.texi: Update.
21216         * doc/posix-functions/vprintf.texi: Update.
21217         * doc/posix-functions/vsnprintf.texi: Update.
21218         * doc/posix-functions/vsprintf.texi: Update.
21219         * doc/glibc-functions/obstack_printf.texi: Update.
21220         * doc/glibc-functions/obstack_vprintf.texi: Update.
21221         Reported by Eric Blake.
21222
21223 2009-02-25  Bruno Haible  <bruno@clisp.org>
21224
21225         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
21226         with known value.
21227         Reported by Gary V. Vaughan <gary@gnu.org>.
21228
21229 2009-02-25  Bruno Haible  <bruno@clisp.org>
21230
21231         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
21232         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
21233         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
21234         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
21235         Reported by Gary V. Vaughan <gary@gnu.org>.
21236
21237 2009-02-25  Bruno Haible  <bruno@clisp.org>
21238
21239         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
21240         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
21241         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
21242         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
21243         Reported by Gary V. Vaughan <gary@gnu.org>.
21244
21245 2009-02-25  Eric Blake  <ebb9@byu.net>
21246
21247         tests: skip fseek/ftell tests if ungetc is broken
21248         * m4/ungetc.m4: New file.
21249         * modules/fseek-tests: Split test, so ungetc dependency is
21250         separate from rest of test.
21251         * modules/fseeko-tests: Likewise.
21252         * modules/ftell-tests: Likewise.
21253         * modules/ftello-tests: Likewise.
21254         * tests/test-fseek.c (main): Isolate ungetc dependency.
21255         * tests/test-fseeko.c (main): Likewise.
21256         * tests/test-ftell.c (main): Likewise.
21257         * tests/test-ftello.c (main): Likewise.
21258         * tests/test-fseek2.sh: New file.
21259         * tests/test-fseeko2.sh: Likewise.
21260         * tests/test-ftell2.sh: Likewise.
21261         * tests/test-ftello2.sh: Likewise.
21262
21263 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
21264
21265         test-getaddrinfo: fix usage of skip return code 77
21266         * tests/test-gettaddrinfo.c: Return skip code 77 only
21267         for first occurance of skip (4x77 is not 77)
21268
21269 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
21270
21271         strtod: avoid C99 decl-after-statement
21272         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
21273
21274 2009-02-24  Eric Blake  <ebb9@byu.net>
21275
21276         strtod: detect HP-UX 11.31 bug
21277         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
21278         Reported by Gary V. Vaughan.
21279
21280 2009-02-23  Bruno Haible  <bruno@clisp.org>
21281
21282         Fix invalid read past end of memory block.
21283         * lib/vasnprintf.c (DCHAR_SET): Define.
21284         (local_wcslen): Define only when needed.
21285         (local_strnlen, local_wcsnlen): New functions.
21286         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
21287         directives that involve a conversion ourselves.
21288         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
21289         wcsnlen, mbrtowc, wcrtomb.
21290         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
21291         * tests/test-vasprintf-posix.c (test_function): Likewise.
21292         * tests/test-snprintf-posix.h (test_function): Likewise.
21293         * tests/test-sprintf-posix.h (test_function): Likewise.
21294         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21295
21296 2009-02-22  Bruno Haible  <bruno@clisp.org>
21297
21298         Implement new clarified decomposition of Hangul syllables.
21299         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
21300         of type LTV, return only a pairwise decomposition.
21301         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
21302         Likewise.
21303         * tests/uninorm/test-decomposition.c (main): Updated expected result.
21304         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
21305         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
21306
21307 2009-02-22  Bruno Haible  <bruno@clisp.org>
21308
21309         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
21310         zero-length results and shrink excess allocated memory.
21311         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
21312         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
21313         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
21314         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
21315         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
21316         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
21317         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
21318         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
21319         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
21320         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
21321         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
21322         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
21323
21324 2009-02-21  Bruno Haible  <bruno@clisp.org>
21325
21326         * doc/gnulib.texi: Include safe-alloc.texi earlier.
21327         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
21328         spaces after a period. Put a space between a macro name and its
21329         argument list. Trivial rewordings.
21330         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
21331         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
21332         (main): Return 0 explicitly.
21333
21334 2009-02-21  Bruno Haible  <bruno@clisp.org>
21335
21336         Tests for module 'uninorm/filter'.
21337         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
21338         * modules/uninorm/filter-tests: New file.
21339
21340         New module 'uninorm/filter'.
21341         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
21342         uninorm_filter_flush, uninorm_filter_free): New declarations.
21343         * lib/uninorm/uninorm-filter.c: New file.
21344         * modules/uninorm/filter: New file.
21345
21346 2009-02-21  Bruno Haible  <bruno@clisp.org>
21347
21348         Tests for module 'uninorm/nfkc'.
21349         * tests/uninorm/test-nfkc.c: New file.
21350         * tests/uninorm/test-u8-nfkc.c: New file.
21351         * tests/uninorm/test-u16-nfkc.c: New file.
21352         * tests/uninorm/test-u32-nfkc.c: New file.
21353         * tests/uninorm/test-u32-nfkc-big.sh: New file.
21354         * tests/uninorm/test-u32-nfkc-big.c: New file.
21355         * modules/uninorm/nfkc-tests: New file.
21356
21357         New module 'uninorm/nfkc'.
21358         * lib/uninorm/nfkc.c: New file.
21359         * modules/uninorm/nfkc: New file.
21360
21361         Tests for module 'uninorm/nfkd'.
21362         * tests/uninorm/test-nfkd.c: New file.
21363         * tests/uninorm/test-u8-nfkd.c: New file.
21364         * tests/uninorm/test-u16-nfkd.c: New file.
21365         * tests/uninorm/test-u32-nfkd.c: New file.
21366         * tests/uninorm/test-u32-nfkd-big.sh: New file.
21367         * tests/uninorm/test-u32-nfkd-big.c: New file.
21368         * modules/uninorm/nfkd-tests: New file.
21369
21370         New module 'uninorm/nfkd'.
21371         * lib/uninorm/nfkd.c: New file.
21372         * modules/uninorm/nfkd: New file.
21373
21374         Tests for module 'uninorm/nfc'.
21375         * tests/uninorm/test-nfc.c: New file.
21376         * tests/uninorm/test-u8-nfc.c: New file.
21377         * tests/uninorm/test-u16-nfc.c: New file.
21378         * tests/uninorm/test-u32-nfc.c: New file.
21379         * tests/uninorm/test-u32-nfc-big.sh: New file.
21380         * tests/uninorm/test-u32-nfc-big.c: New file.
21381         * modules/uninorm/nfc-tests: New file.
21382
21383         New module 'uninorm/nfc'.
21384         * lib/uninorm/nfc.c: New file.
21385         * modules/uninorm/nfc: New file.
21386
21387         Tests for module 'uninorm/nfd'.
21388         * tests/uninorm/test-nfd.c: New file.
21389         * tests/uninorm/test-u8-nfd.c: New file.
21390         * tests/uninorm/test-u16-nfd.c: New file.
21391         * tests/uninorm/test-u32-nfd.c: New file.
21392         * tests/uninorm/test-u32-nfd-big.sh: New file.
21393         * tests/uninorm/test-u32-nfd-big.c: New file.
21394         * tests/uninorm/test-u32-normalize-big.h: New file.
21395         * tests/uninorm/test-u32-normalize-big.c: New file.
21396         * tests/uninorm/NormalizationTest.txt: New file, created from
21397         Unicode 5.1.0 NormalizationTest.txt.
21398         * modules/uninorm/nfd-tests: New file.
21399
21400         New module 'uninorm/nfd'.
21401         * lib/uninorm/nfd.c: New file.
21402         * modules/uninorm/nfd: New file.
21403
21404         New module 'uninorm/u32-normalize'.
21405         * lib/uninorm/u32-normalize.c: New file.
21406         * modules/uninorm/u32-normalize: New file.
21407
21408         New module 'uninorm/u16-normalize'.
21409         * lib/uninorm/u16-normalize.c: New file.
21410         * modules/uninorm/u16-normalize: New file.
21411
21412         New module 'uninorm/u8-normalize'.
21413         * lib/uninorm/u8-normalize.c: New file.
21414         * lib/uninorm/normalize-internal.h: New file.
21415         * lib/uninorm/u-normalize-internal.h: New file.
21416         * modules/uninorm/u8-normalize: New file.
21417
21418         New module 'uninorm/decompose-internal'.
21419         * lib/uninorm/decompose-internal.c: New file.
21420         * modules/uninorm/decompose-internal: New file.
21421
21422         Tests for module 'uninorm/composition'.
21423         * tests/uninorm/test-composition.c: New file.
21424         * modules/uninorm/composition-tests: New file.
21425
21426         New module 'uninorm/composition'.
21427         * lib/uninorm/composition.c: New file.
21428         * lib/uninorm/composition-table.gperf: New file, generated by
21429         gen-uni-tables.
21430         * modules/uninorm/composition: New file.
21431
21432         Tests for module 'uninorm/compat-decomposition'.
21433         * tests/uninorm/test-compat-decomposition.c: New file.
21434         * modules/uninorm/compat-decomposition-tests: New file.
21435
21436         New module 'uninorm/compat-decomposition'.
21437         * lib/uninorm/decompose-internal.h: New file.
21438         * lib/uninorm/compat-decomposition.c: New file.
21439         * modules/uninorm/compat-decomposition: New file.
21440
21441         Tests for module 'uninorm/canonical-decomposition'.
21442         * tests/uninorm/test-canonical-decomposition.c: New file.
21443         * modules/uninorm/canonical-decomposition-tests: New file.
21444
21445         New module 'uninorm/canonical-decomposition'.
21446         * lib/uninorm/canonical-decomposition.c: New file.
21447         * modules/uninorm/canonical-decomposition: New file.
21448
21449         Tests for module 'uninorm/decomposition'.
21450         * tests/uninorm/test-decomposition.c: New file.
21451         * modules/uninorm/decomposition-tests: New file.
21452
21453         New module 'uninorm/decomposition'.
21454         * lib/uninorm/decomposition.c: New file.
21455         * modules/uninorm/decomposition: New file.
21456
21457         New module 'uninorm/decomposition-table'.
21458         * lib/uninorm/decomposition-table.h: New file.
21459         * lib/uninorm/decomposition-table.c: New file.
21460         * lib/uninorm/decomposition-table1.h: New file, generated by
21461         gen-uni-tables.
21462         * lib/uninorm/decomposition-table2.h: New file, generated by
21463         gen-uni-tables.
21464         * modules/uninorm/decomposition-table: New file.
21465
21466         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
21467         (UC_DECOMP_*): New enumeration items.
21468         (get_decomposition): New function.
21469         (struct decomp_table): New type.
21470         (output_decomposition, output_decomposition_tables): New functions.
21471         (unicode_composition_exclusions): New variable.
21472         (fill_composition_exclusions, debug_output_composition_tables): New
21473         functions.
21474         (main): Accept one more argument. Invoke fill_composition_exclusions.
21475         Output decomposition and composition tables.
21476
21477         New module 'uninorm/base'.
21478         * lib/uninorm.h: New file.
21479         * lib/unictype.h: Update comment.
21480         * modules/uninorm/base: New file.
21481
21482 2009-02-21  David Lutterkort  <lutter@redhat.com>
21483
21484         Tests for module 'safe-alloc'.
21485         * tests/test-safe-alloc.c: New file.
21486         * modules/safe-alloc-tests: New file.
21487
21488         New module 'safe-alloc'.
21489         * lib/safe-alloc.h: New file.
21490         * lib/safe-alloc.c: New file.
21491         * m4/safe-alloc.m4: New file.
21492         * modules/safe-alloc: New file.
21493         * doc/safe-alloc.texi: New file.
21494         * doc/gnulib.texi: Include it.
21495         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
21496         safe-alloc.
21497
21498 2009-02-18  Bruno Haible  <bruno@clisp.org>
21499
21500         Fix link error on non-glibc systems.
21501         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
21502         variable.
21503         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21504
21505 2009-02-18  Jim Meyering  <meyering@redhat.com>
21506
21507         fts: avoid used-uninitialized error due to recent change
21508         * lib/fts.c (fts_read): Guard uses of the new member,
21509         parent->fts_n_dirs_remaining, since it's not relevant for
21510         the parent of a directory specified on the command-line.
21511
21512 2009-02-17  James Youngman  <jay@gnu.org>
21513             Bruno Haible  <bruno@clisp.org>
21514
21515         * m4/include_next.m4: Reformulate comment.
21516
21517 2009-02-16  Jim Meyering  <meyering@redhat.com>
21518
21519         fts: add #if guards so that the fts_lgpl module still builds
21520         * lib/fts.c: Guard just-added hash-table-using parts with
21521         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
21522         Reported by Simon Josefsson.
21523
21524 2009-02-15  Bruno Haible  <bruno@clisp.org>
21525
21526         * modules/array-mergesort-tests: New file.
21527         * tests/test-array-mergesort.c: New file.
21528
21529         New module 'array-mergesort'.
21530         * modules/array-mergesort: New file.
21531         * lib/array-mergesort.h: New file.
21532
21533 2009-02-15  Bruno Haible  <bruno@clisp.org>
21534
21535         Fix 2009-02-07 commit.
21536         * lib/gen-uni-tables.c (output_predicate, output_category,
21537         output_combclass, output_bidi_category, output_decimal_digit,
21538         output_digit, output_numeric, output_mirror, output_scripts,
21539         output_ident_category, output_simple_mapping): Fix format directives.
21540         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
21541
21542 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
21543
21544         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
21545         fixes are available from IBM.
21546
21547 2009-02-13  Jim Meyering  <meyering@redhat.com>
21548
21549         fts: arrange not to stat non-directories in more cases
21550         This makes GNU find (when it doesn't need to stat each file)
21551         *much* more efficient at traversing reiserfs file systems.
21552         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
21553         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
21554         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
21555         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
21556         (leaf_optimization_applies): New function.
21557         (LCO_hash, LCO_compare): New helper functions.
21558         (link_count_optimize_ok): New function.
21559         (fts_stat): Initialize new member (if dir).
21560         (fts_read): Decrement parent's fts_n_dirs_remaining count if
21561         we've just stat'ed a directory.  Skip the stat call when possible.
21562         ---
21563         Note this AFS-related exchange:
21564         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
21565         and note find's pioctl call in find/fstype.c.
21566         But that is necessary only if you want to enable the
21567         optimization for AFS, and for now, I don't.
21568
21569         fts: move a function definition "up" (no semantic change)
21570         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
21571         "up" to precede upcoming use of a related function.
21572
21573 2009-02-11  Jim Meyering  <meyering@redhat.com>
21574
21575         fts: correct internal computation of nlinks (optimization-related)
21576         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
21577         whether the current entry is a directory, so don't test it.
21578
21579 2009-02-10  Bruno Haible  <bruno@clisp.org>
21580
21581         Tests for module 'uniwbrk/ulc-wordbreaks'.
21582         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
21583         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
21584         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
21585
21586         Tests for module 'uniwbrk/u32-wordbreaks'.
21587         * modules/uniwbrk/u32-wordbreaks-tests: New file.
21588         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
21589
21590         Tests for module 'uniwbrk/u16-wordbreaks'.
21591         * modules/uniwbrk/u16-wordbreaks-tests: New file.
21592         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
21593
21594         Tests for module 'uniwbrk/u8-wordbreaks'.
21595         * modules/uniwbrk/u8-wordbreaks-tests: New file.
21596         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
21597
21598 2009-02-10  Bruno Haible  <bruno@clisp.org>
21599
21600         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
21601         property.
21602         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
21603         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
21604         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
21605
21606 2009-02-10  Simon Josefsson  <simon@josefsson.org>
21607
21608         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
21609         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
21610
21611 2009-02-10  Bruno Haible  <bruno@clisp.org>
21612
21613         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
21614         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
21615         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
21616         * lib/unilbrk/u8-possible-linebreaks.c: Update.
21617         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
21618         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
21619
21620 2009-02-09  Simon Josefsson  <simon@josefsson.org>
21621
21622         * lib/sockets.h (gl_fd_to_handle): New function.
21623
21624         * tests/test-sockets.c: Call gl_fd_to_handle.
21625
21626 2009-02-09  Bruno Haible  <bruno@clisp.org>
21627
21628         * doc/havelib.texi: Document the conventions on bi-arch systems.
21629
21630 2009-02-08  Bruno Haible  <bruno@clisp.org>
21631
21632         Document the AC_LIB_LINKFLAGS macro.
21633         * doc/havelib.texi: New file, mostly written on 2005-05-24.
21634         * doc/gnulib.texi: Include it.
21635
21636 2009-02-08  Bruno Haible  <bruno@clisp.org>
21637
21638         Fix wrong order of sections, compared to TOC.
21639         * doc/gnulib.texi: Include relocatable-maint.texi after the
21640         "Regular expressions" node, not before.
21641
21642 2009-02-08  Bruno Haible  <bruno@clisp.org>
21643
21644         Tests for module 'unicase/totitle'.
21645         * modules/unicase/totitle-tests: New file.
21646
21647         Tests for module 'unicase/tolower'.
21648         * modules/unicase/tolower-tests: New file.
21649
21650         Tests for module 'unicase/toupper'.
21651         * modules/unicase/toupper-tests: New file.
21652         * tests/unicase/test-mapping-part1.h: New file.
21653         * tests/unicase/test-mapping-part2.h: New file.
21654
21655         New module 'unicase/totitle'.
21656         * modules/unicase/totitle: New file.
21657         * lib/unicase/totitle.c: New file.
21658
21659         New module 'unicase/tolower'.
21660         * modules/unicase/tolower: New file.
21661         * lib/unicase/tolower.c: New file.
21662
21663         New module 'unicase/toupper'.
21664         * modules/unicase/toupper: New file.
21665         * lib/unicase/toupper.c: New file.
21666         * lib/unicase/simple-mapping.h: New file.
21667
21668         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
21669         (mapping_table): New structure.
21670         (output_simple_mapping): New function.
21671         (main): Invoke output_simple_mapping_test and output_simple_mapping.
21672         * modules/gen-uni-tables (Description): Update.
21673         * lib/unicase/toupper.h: New file, automatically generated by
21674         gen-uni-tables.
21675         * lib/unicase/tolower.h: New file, automatically generated by
21676         gen-uni-tables.
21677         * lib/unicase/totitle.h: New file, automatically generated by
21678         gen-uni-tables.
21679         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
21680         gen-uni-tables.
21681         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
21682         gen-uni-tables.
21683         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
21684         gen-uni-tables.
21685
21686         New module 'unicase/base'.
21687         * modules/unicase/base: New file.
21688         * lib/unicase.h: New file.
21689
21690 2009-02-08  Bruno Haible  <bruno@clisp.org>
21691
21692         New module 'uniwbrk/ulc-wordbreaks'.
21693         * modules/uniwbrk/ulc-wordbreaks: New file.
21694         * lib/uniwbrk/ulc-wordbreaks.c: New file.
21695
21696         New module 'uniwbrk/u32-wordbreaks'.
21697         * modules/uniwbrk/u32-wordbreaks: New file.
21698         * lib/uniwbrk/u32-wordbreaks.c: New file.
21699
21700         New module 'uniwbrk/u16-wordbreaks'.
21701         * modules/uniwbrk/u16-wordbreaks: New file.
21702         * lib/uniwbrk/u16-wordbreaks.c: New file.
21703
21704         New module 'uniwbrk/u8-wordbreaks'.
21705         * modules/uniwbrk/u8-wordbreaks: New file.
21706         * lib/uniwbrk/u8-wordbreaks.c: New file.
21707         * lib/uniwbrk/u-wordbreaks.h: New file.
21708
21709         New module 'uniwbrk/table'.
21710         * modules/uniwbrk/table: New file.
21711         * lib/uniwbrk/wbrktable.h: New file.
21712         * lib/uniwbrk/wbrktable.c: New file.
21713
21714         New module 'uniwbrk/wordbreak-property'.
21715         * modules/uniwbrk/wordbreak-property: New file.
21716         * lib/uniwbrk/wordbreak-property.c: New file.
21717
21718         * lib/gen-uni-tables.c (WBP_*): New enum items.
21719         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
21720         (unicode_org_wbp): New variable.
21721         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
21722         New functions.
21723         (wbp_table): New structure.
21724         (output_wbp, output_wbrk_tables): New functions.
21725         (main): Accept additional argument. Invoke fill_org_wbp,
21726         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
21727         output_wbrk_tables.
21728         * modules/gen-uni-tables (Description): Update.
21729         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
21730         gen-uni-tables.
21731
21732         New module 'uniwbrk/base'.
21733         * modules/uniwbrk/base: New file.
21734         * lib/uniwbrk.h: New file.
21735
21736 2009-02-08  Bruno Haible  <bruno@clisp.org>
21737
21738         Update to Unicode 5.1.0.
21739         * lib/gen-uni-tables.c (is_property_alphabetic): Include
21740         U+2185..U+2188.
21741         (is_property_default_ignorable_code_point): Don't include characters
21742         of category Cc or Cs and not-a-characters.
21743         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
21744         U+0D79, U+109E, U+109F, U+A60C.
21745         * lib/unictype/bidi_of.h: Regenerated.
21746         * lib/unictype/blocks.h: Regenerated.
21747         * lib/unictype/categ_C.h: Regenerated.
21748         * lib/unictype/categ_Cf.h: Regenerated.
21749         * lib/unictype/categ_Cn.h: Regenerated.
21750         * lib/unictype/categ_L.h: Regenerated.
21751         * lib/unictype/categ_Ll.h: Regenerated.
21752         * lib/unictype/categ_Lm.h: Regenerated.
21753         * lib/unictype/categ_Lo.h: Regenerated.
21754         * lib/unictype/categ_Lu.h: Regenerated.
21755         * lib/unictype/categ_M.h: Regenerated.
21756         * lib/unictype/categ_Mc.h: Regenerated.
21757         * lib/unictype/categ_Me.h: Regenerated.
21758         * lib/unictype/categ_Mn.h: Regenerated.
21759         * lib/unictype/categ_N.h: Regenerated.
21760         * lib/unictype/categ_Nd.h: Regenerated.
21761         * lib/unictype/categ_Nl.h: Regenerated.
21762         * lib/unictype/categ_No.h: Regenerated.
21763         * lib/unictype/categ_P.h: Regenerated.
21764         * lib/unictype/categ_Pd.h: Regenerated.
21765         * lib/unictype/categ_Pe.h: Regenerated.
21766         * lib/unictype/categ_Pf.h: Regenerated.
21767         * lib/unictype/categ_Pi.h: Regenerated.
21768         * lib/unictype/categ_Po.h: Regenerated.
21769         * lib/unictype/categ_Ps.h: Regenerated.
21770         * lib/unictype/categ_S.h: Regenerated.
21771         * lib/unictype/categ_Sk.h: Regenerated.
21772         * lib/unictype/categ_Sm.h: Regenerated.
21773         * lib/unictype/categ_So.h: Regenerated.
21774         * lib/unictype/categ_of.h: Regenerated.
21775         * lib/unictype/combining.h: Regenerated.
21776         * lib/unictype/ctype_alnum.h: Regenerated.
21777         * lib/unictype/ctype_alpha.h: Regenerated.
21778         * lib/unictype/ctype_graph.h: Regenerated.
21779         * lib/unictype/ctype_lower.h: Regenerated.
21780         * lib/unictype/ctype_print.h: Regenerated.
21781         * lib/unictype/ctype_punct.h: Regenerated.
21782         * lib/unictype/ctype_upper.h: Regenerated.
21783         * lib/unictype/decdigit.h: Regenerated.
21784         * lib/unictype/digit.h: Regenerated.
21785         * lib/unictype/mirror.h: Regenerated.
21786         * lib/unictype/numeric.h: Regenerated.
21787         * lib/unictype/pr_alphabetic.h: Regenerated.
21788         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
21789         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
21790         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
21791         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
21792         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
21793         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
21794         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
21795         * lib/unictype/pr_combining.h: Regenerated.
21796         * lib/unictype/pr_dash.h: Regenerated.
21797         * lib/unictype/pr_decimal_digit.h: Regenerated.
21798         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
21799         * lib/unictype/pr_deprecated.h: Regenerated.
21800         * lib/unictype/pr_diacritic.h: Regenerated.
21801         * lib/unictype/pr_extender.h: Regenerated.
21802         * lib/unictype/pr_format_control.h: Regenerated.
21803         * lib/unictype/pr_grapheme_base.h: Regenerated.
21804         * lib/unictype/pr_grapheme_extend.h: Regenerated.
21805         * lib/unictype/pr_grapheme_link.h: Regenerated.
21806         * lib/unictype/pr_id_continue.h: Regenerated.
21807         * lib/unictype/pr_id_start.h: Regenerated.
21808         * lib/unictype/pr_ideographic.h: Regenerated.
21809         * lib/unictype/pr_ignorable_control.h: Regenerated.
21810         * lib/unictype/pr_lowercase.h: Regenerated.
21811         * lib/unictype/pr_math.h: Regenerated.
21812         * lib/unictype/pr_numeric.h: Regenerated.
21813         * lib/unictype/pr_other_alphabetic.h: Regenerated.
21814         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
21815         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
21816         * lib/unictype/pr_other_id_continue.h: Regenerated.
21817         * lib/unictype/pr_other_lowercase.h: Regenerated.
21818         * lib/unictype/pr_other_math.h: Regenerated.
21819         * lib/unictype/pr_punctuation.h: Regenerated.
21820         * lib/unictype/pr_sentence_terminal.h: Regenerated.
21821         * lib/unictype/pr_soft_dotted.h: Regenerated.
21822         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
21823         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
21824         * lib/unictype/pr_unified_ideograph.h: Regenerated.
21825         * lib/unictype/pr_uppercase.h: Regenerated.
21826         * lib/unictype/pr_xid_continue.h: Regenerated.
21827         * lib/unictype/pr_xid_start.h: Regenerated.
21828         * lib/unictype/pr_zero_width.h: Regenerated.
21829         * lib/unictype/scripts.h: Regenerated.
21830         * lib/unictype/scripts_byname.gperf: Regenerated.
21831         * lib/unictype/sy_java_ident.h: Regenerated.
21832         * lib/unilbrk/lbrkprop1.h: Regenerated.
21833         * lib/unilbrk/lbrkprop2.h: Regenerated.
21834         * tests/unictype/test-categ_C.c: Regenerated.
21835         * tests/unictype/test-categ_Cf.c: Regenerated.
21836         * tests/unictype/test-categ_Cn.c: Regenerated.
21837         * tests/unictype/test-categ_L.c: Regenerated.
21838         * tests/unictype/test-categ_Ll.c: Regenerated.
21839         * tests/unictype/test-categ_Lm.c: Regenerated.
21840         * tests/unictype/test-categ_Lo.c: Regenerated.
21841         * tests/unictype/test-categ_Lu.c: Regenerated.
21842         * tests/unictype/test-categ_M.c: Regenerated.
21843         * tests/unictype/test-categ_Mc.c: Regenerated.
21844         * tests/unictype/test-categ_Me.c: Regenerated.
21845         * tests/unictype/test-categ_Mn.c: Regenerated.
21846         * tests/unictype/test-categ_N.c: Regenerated.
21847         * tests/unictype/test-categ_Nd.c: Regenerated.
21848         * tests/unictype/test-categ_Nl.c: Regenerated.
21849         * tests/unictype/test-categ_No.c: Regenerated.
21850         * tests/unictype/test-categ_P.c: Regenerated.
21851         * tests/unictype/test-categ_Pd.c: Regenerated.
21852         * tests/unictype/test-categ_Pe.c: Regenerated.
21853         * tests/unictype/test-categ_Pf.c: Regenerated.
21854         * tests/unictype/test-categ_Pi.c: Regenerated.
21855         * tests/unictype/test-categ_Po.c: Regenerated.
21856         * tests/unictype/test-categ_Ps.c: Regenerated.
21857         * tests/unictype/test-categ_S.c: Regenerated.
21858         * tests/unictype/test-categ_Sk.c: Regenerated.
21859         * tests/unictype/test-categ_Sm.c: Regenerated.
21860         * tests/unictype/test-categ_So.c: Regenerated.
21861         * tests/unictype/test-ctype_alnum.c: Regenerated.
21862         * tests/unictype/test-ctype_alpha.c: Regenerated.
21863         * tests/unictype/test-ctype_graph.c: Regenerated.
21864         * tests/unictype/test-ctype_lower.c: Regenerated.
21865         * tests/unictype/test-ctype_print.c: Regenerated.
21866         * tests/unictype/test-ctype_punct.c: Regenerated.
21867         * tests/unictype/test-ctype_upper.c: Regenerated.
21868         * tests/unictype/test-decdigit.h: Regenerated.
21869         * tests/unictype/test-digit.h: Regenerated.
21870         * tests/unictype/test-numeric.h: Regenerated.
21871         * tests/unictype/test-pr_alphabetic.c: Regenerated.
21872         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
21873         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
21874         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
21875         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
21876         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
21877         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
21878         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
21879         * tests/unictype/test-pr_combining.c: Regenerated.
21880         * tests/unictype/test-pr_dash.c: Regenerated.
21881         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
21882         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
21883         * tests/unictype/test-pr_deprecated.c: Regenerated.
21884         * tests/unictype/test-pr_diacritic.c: Regenerated.
21885         * tests/unictype/test-pr_extender.c: Regenerated.
21886         * tests/unictype/test-pr_format_control.c: Regenerated.
21887         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
21888         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
21889         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
21890         * tests/unictype/test-pr_id_continue.c: Regenerated.
21891         * tests/unictype/test-pr_id_start.c: Regenerated.
21892         * tests/unictype/test-pr_ideographic.c: Regenerated.
21893         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
21894         * tests/unictype/test-pr_lowercase.c: Regenerated.
21895         * tests/unictype/test-pr_math.c: Regenerated.
21896         * tests/unictype/test-pr_numeric.c: Regenerated.
21897         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
21898         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
21899         Regenerated.
21900         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
21901         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
21902         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
21903         * tests/unictype/test-pr_other_math.c: Regenerated.
21904         * tests/unictype/test-pr_punctuation.c: Regenerated.
21905         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
21906         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
21907         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
21908         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
21909         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
21910         * tests/unictype/test-pr_uppercase.c: Regenerated.
21911         * tests/unictype/test-pr_xid_continue.c: Regenerated.
21912         * tests/unictype/test-pr_xid_start.c: Regenerated.
21913         * tests/unictype/test-pr_zero_width.c: Regenerated.
21914
21915         Update to Unicode 5.1.0.
21916         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
21917         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
21918         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
21919         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
21920         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
21921         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
21922         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
21923         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
21924         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
21925         (nonspacing_table_ind): Update.
21926         * tests/uniwidth/test-uc_width2.sh: Update expected result.
21927
21928         Update to Unicode 5.1.0.
21929         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
21930         code transform.
21931         * lib/uniname/uniname.c (unicode_character_name,
21932         unicode_name_character): Add the range 0x1Fxxx to the code transform.
21933         * lib/uniname/uninames.h: Regenerated.
21934         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
21935
21936 2009-02-07  Bruno Haible  <bruno@clisp.org>
21937
21938         Merge gen-ctype and gen-lbrk into a single program.
21939         * lib/gen-uni-tables.c: New file, incorporating
21940         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
21941         Add directory prefixes to the names of the generated files.
21942         * lib/unictype/gen-ctype.c: Remove file.
21943         * lib/unilbrk/gen-lbrk.c: Remove file.
21944         * modules/gen-uni-tables: New file.
21945         * modules/unictype/gen-ctype: Remove file.
21946         * modules/unilbrk/gen-lbrk: Remove file.
21947
21948 2009-02-07  Bruno Haible  <bruno@clisp.org>
21949
21950         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
21951
21952         New module 'unistr/u32-strcoll'.
21953         * modules/unistr/u32-strcoll: New file.
21954         * lib/unistr/u32-strcoll.c: New file.
21955
21956         New module 'unistr/u16-strcoll'.
21957         * modules/unistr/u16-strcoll: New file.
21958         * lib/unistr/u16-strcoll.c: New file.
21959
21960         New module 'unistr/u8-strcoll'.
21961         * modules/unistr/u8-strcoll: New file.
21962         * lib/unistr/u8-strcoll.c: New file.
21963         * lib/unistr/u-strcoll.h: New file.
21964
21965 2009-02-07  Bruno Haible  <bruno@clisp.org>
21966
21967         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
21968         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
21969         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
21970         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
21971         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
21972         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
21973
21974 2009-02-07  Bruno Haible  <bruno@clisp.org>
21975
21976         Make 64-bit clean.
21977         * lib/unictype/gen-ctype.c (output_predicate, output_category,
21978         output_combclass, output_bidi_category, output_decimal_digit,
21979         output_digit, output_numeric, output_mirror, output_scripts,
21980         output_ident_category): Use proper width specifier in format strings.
21981
21982 2009-02-07  Bruno Haible  <bruno@clisp.org>
21983
21984         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
21985         failure behaviour.
21986
21987 2009-02-07  Jim Meyering  <meyering@redhat.com>
21988
21989         regex: avoid compilation failure with upcoming gcc-4.4
21990         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
21991         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
21992         "... error: integer overflow in preprocessor expression".
21993
21994 2009-02-05  Ben Pfaff  <blp@gnu.org>
21995
21996         Fix link errors on Windows when close module is used.
21997         * modules/close: Add $(LIB_CLOSE) to Link section.
21998         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
21999         $(LIB_CLOSE) on Windows.
22000
22001 2009-02-05  Jim Meyering  <meyering@redhat.com>
22002
22003         still avoid unused-parameter warnings, but do it cleanly
22004         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
22005         (get_fs_usage): Cast to void instead.
22006         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
22007         (dev_from_mount_options, read_file_system_list): Cast to void.
22008         Prompted by Bruno Haible.
22009
22010 2009-02-04  Jim Meyering  <meyering@redhat.com>
22011
22012         fsusage.c: correct copyright year
22013         * lib/fsusage.c: Reflect year in which the change is pushed into
22014
22015         avoid misc. warnings
22016         * lib/fsusage.c (UNUSED_PARAM): Define.
22017         (get_fs_usage): Mark parameter "disk" as unused.
22018         * lib/getugroups.c (getgrent): Use "void" in prototype.
22019         * lib/mountlist.c: Mark unused parameters.
22020         (read_file_system_list): Declare a local with "const".
22021         * lib/nanosleep.c (getnow): Declare static.
22022         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
22023
22024         dirfd: set errno upon failure
22025         * lib/dirfd.c: Include <errno.h>.
22026         Set errno to ENOTSUP when returning -1.
22027         * modules/dirfd (Depends-on): Add errno.
22028         Suggested by John Kodis <kodis@comcast.net>.
22029
22030 2009-02-01  Bruno Haible  <bruno@clisp.org>
22031
22032         Don't assume sizeof (long) >= sizeof (void *).
22033         * lib/memcmp.c: Include stdint.h.
22034         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
22035         srcp2 to 'const byte *'.
22036         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
22037         types to uintptr_t.
22038         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
22039         * modules/memcmp (Depends-on): Add stdint.
22040         Reported by Ozkan Sezer <sezeroz@gmail.com>.
22041
22042 2009-01-30  Eric Blake  <ebb9@byu.net>
22043
22044         fix more require-before-expand issues
22045         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
22046         expand, AC_PROG_AWK.
22047         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
22048
22049 2009-01-28  Eric Blake  <ebb9@byu.net>
22050
22051         version-etc: use consistent URL formatting
22052         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
22053         Improve formatting.  Use fputs for string without %.
22054
22055 2009-01-28  Jim Meyering  <meyering@redhat.com>
22056
22057         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
22058         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
22059         "underquoted definition of NAME" from autoconf-2.59.
22060
22061 2009-01-28  Bruno Haible  <bruno@clisp.org>
22062
22063         * doc/gnulib.texi: Add "Obsolete modules" to index.
22064
22065 2009-01-28  Jim Meyering  <meyering@redhat.com>
22066
22067         useless-if-before-free: recognize more variants
22068         * build-aux/useless-if-before-free: Also recognize e.g.,
22069         if (NULL != p) free (p);
22070
22071 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
22072
22073         test-getaddrinfo: skip (don't fail) this test when there's no network
22074         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
22075         on the presumption that it means you lack network access.
22076
22077 2009-01-26  Jim Meyering  <meyering@redhat.com>
22078
22079         fflush: avoid warnings on modern systems
22080         * lib/fflush.c (rpl_fflush): Move declarations of locals,
22081         pos and result, into scopes where they're used.
22082
22083 2009-01-26  Eric Blake  <ebb9@byu.net>
22084
22085         Silence warning reintroduced by recent extensions patch.
22086         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
22087         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
22088         autoconf.
22089
22090         Backport improved autoconf semantics of AC_DEFUN_ONCE.
22091         * m4/00gnulib.m4: New file.
22092         * gnulib-tool (func_get_filelist): Always use it.
22093         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
22094         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
22095
22096 2009-01-25  Bruno Haible  <bruno@clisp.org>
22097
22098         Make test-quotearg work on MacOS X and AIX.
22099         * tests/test-quotearg.sh: New file.
22100         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
22101         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
22102         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
22103         include <libintl.h>.
22104         (fake_locale): Remove variable.
22105         (gettext, dgettext, dcgettext): Remove functions.
22106         (main): Instead of setting a fake locale, set a real locale. Call
22107         textdomain and bindtextdomain.
22108         * modules/quotearg-tests (Files): Add the new files.
22109         (Depends-on): Add gettext, setenv, unsetenv.
22110         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
22111         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
22112         Augment TESTS_ENVIRONMENT.
22113
22114 2009-01-25  Bruno Haible  <bruno@clisp.org>
22115
22116         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
22117         fr_FR.ISO8859-1 locale on MacOS X.
22118         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
22119         ja_JP.eucJP locale on MacOS X.
22120         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
22121         zh_CN.GB18030 locale on MacOS X.
22122
22123 2009-01-25  Bruno Haible  <bruno@clisp.org>
22124
22125         Avoid link errors on MacOS X 10.3.
22126         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
22127         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
22128
22129 2009-01-25  Bruno Haible  <bruno@clisp.org>
22130
22131         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
22132         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
22133         * modules/pipe (Files): Remove m4/posix_spawn.m4.
22134         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
22135         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
22136         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
22137         posix_spawnattr_init, posix_spawnattr_setsigmask,
22138         posix_spawnattr_setflags, posix_spawnattr_destroy.
22139
22140         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
22141         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
22142         * modules/execute (Files): Remove m4/posix_spawn.m4.
22143         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
22144         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
22145         posix_spawnattr_init, posix_spawnattr_setsigmask,
22146         posix_spawnattr_setflags, posix_spawnattr_destroy.
22147
22148 2009-01-25  Bruno Haible  <bruno@clisp.org>
22149
22150         * lib/glthread/threadlib.c: Include <stdlib.h>.
22151
22152 2009-01-25  Bruno Haible  <bruno@clisp.org>
22153
22154         * lib/glthread/threadlib.c (dummy): New declaration.
22155
22156 2009-01-25  Bruno Haible  <bruno@clisp.org>
22157
22158         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
22159         multibyte characters also for the GB18030 encoding. Don't crash when
22160         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
22161
22162 2009-01-25  Bruno Haible  <bruno@clisp.org>
22163
22164         Avoid redefining 'struct random_data' on OSF/1 5.1.
22165         * lib/stdlib.in.h: Include <random.h> if it exists.
22166         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
22167         HAVE_RANDOM_H. Include <random.h> when testing whether
22168         'struct random_data' exists.
22169         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
22170
22171 2009-01-25  Bruno Haible  <bruno@clisp.org>
22172
22173         Don't install charset.alias on MacOS X >= 10.3.
22174         * lib/localcharset.c (DARWIN7): New macro.
22175         (get_charset_aliases): Hardcode the result for Darwin7.
22176         * modules/localcharset (install-exec-local): Don't install
22177         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
22178
22179 2009-01-25  Bruno Haible  <bruno@clisp.org>
22180
22181         Don't install charset.alias on mingw and Cygwin.
22182         * modules/localcharset (install-exec-local): Don't install
22183         charset.alias on mingw and Cygwin, if the file does not yet exist.
22184         The result for these platforms is hardcoded in localcharset.c.
22185
22186 2009-01-25  Bruno Haible  <bruno@clisp.org>
22187
22188         Make it possible again to use AC_GNU_SOURCE together with gnulib.
22189         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
22190         before requiring AC_USE_SYSTEM_EXTENSIONS.
22191
22192 2009-01-25  Jim Meyering  <meyering@redhat.com>
22193
22194         c-strtod: avoid warnings
22195         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
22196         "assignment discards qualifiers from pointer target type" warnings.
22197
22198 2009-01-24  Bruno Haible  <bruno@clisp.org>
22199
22200         Add support for non-UTF-8 locales on MacOS X.
22201         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
22202         canonical encodings. For Darwin 7 and newer, don't map traditional
22203         encodings to UTF-8.
22204         Reported by Vincent Lefevre <vincent@vinc17.org>
22205         at <http://savannah.gnu.org/bugs/?25235>.
22206
22207 2009-01-24  Bruno Haible  <bruno@clisp.org>
22208
22209         * doc/gnulib.texi (Obsolete modules): New section.
22210         Reported by Mike Frysinger <vapier@gentoo.org>.
22211
22212 2009-01-24  Bruno Haible  <bruno@clisp.org>
22213
22214         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
22215         (%.dvi): New rule.
22216
22217 2009-01-24  Bruno Haible  <bruno@clisp.org>
22218
22219         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
22220         Reported by Eric Blake.
22221
22222 2009-01-24  Bruno Haible  <bruno@clisp.org>
22223
22224         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
22225         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
22226         Reported by Gary V. Vaughan <gary@gnu.org>.
22227
22228 2009-01-24  Bruno Haible  <bruno@clisp.org>
22229
22230         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
22231
22232 2009-01-23  Bruno Haible  <bruno@clisp.org>
22233
22234         Make c-strtod, c-strtold usable in libraries.
22235         * lib/c-strtod.c: Include string.h instead of xalloc.h.
22236         (C_STRTOD): Call strdup instead of xstrdup.
22237         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
22238         * modules/c-strtold (Depends-on): Likewise.
22239         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
22240         * NEWS: Mention the change.
22241         Reported by Michael Gold <mgold@ncf.ca>.
22242
22243 2009-01-23  Jim Meyering  <meyering@redhat.com>
22244
22245         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
22246         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
22247         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
22248
22249 2009-01-23  Simon Josefsson  <simon@josefsson.org>
22250
22251         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
22252         GNU CoreUtils.
22253         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
22254         * modules/version-etc (Description): Update.
22255
22256 2009-01-22  Bruno Haible  <bruno@clisp.org>
22257
22258         Cache the C locale object.
22259         * lib/c-strtod.c (c_locale_cache): New variable.
22260         (c_locale): New function.
22261         (C_STRTOD): Use it, and don't call freelocale.
22262         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
22263         Suggested by Paolo Bonzini.
22264
22265 2009-01-21  Bruno Haible  <bruno@clisp.org>
22266
22267         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
22268         conditions other than overflow.
22269
22270 2009-01-21  Bruno Haible  <bruno@clisp.org>
22271
22272         * lib/c-strtod.c: Include errno.h.
22273         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
22274         value from STRTOD_L and STRTOD.
22275
22276 2009-01-21  Bruno Haible  <bruno@clisp.org>
22277         and Jim Meyering  <meyering@redhat.com>
22278
22279         nanosleep: skip configure test (fail it) for apple universal builds
22280         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
22281         universal builds, assume that nanosleep does not work.
22282         * modules/nanosleep (Depends-on): Add multiarch.
22283
22284         mktime: skip configure test (fail it) for apple universal builds
22285         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
22286         universal builds, assume that mktime does not work.
22287         * modules/mktime (Depends-on): Add multiarch.
22288
22289 2009-01-21  Eric Blake  <ebb9@byu.net>
22290
22291         multiarch: avoid expand-before-require warning
22292         * modules/multiarch (configure.ac): Require, rather than expand,
22293         gl_MULTIARCH.
22294         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
22295         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
22296         enforce that all clients require it.  Partial reversion of
22297         2008-12-29 patch.
22298
22299         error: avoid expand-before-require warning
22300         * modules/errno (configure.ac): Require, rather than expand,
22301         gl_HEADER_ERRNO_H.
22302         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
22303         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
22304         enforce that all clients require it.
22305
22306         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
22307         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
22308         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
22309         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
22310
22311 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
22312
22313         Revert:
22314         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
22315
22316         regex: do not depend on obsolete modules.
22317         * modules/regex: Remove memcmp and memmove.
22318
22319 2009-01-20  Bruno Haible  <bruno@clisp.org>
22320
22321         Make the 'link' module link on Windows NT 4.
22322         * lib/link.c (_WIN32_WINNT): Don't define.
22323         (CreateHardLinkFuncType): New type.
22324         (CreateHardLinkFunc, initialized): New variables.
22325         (initialize): New function.
22326         (link): Invoke CreateHardLink indirectly through the function pointer.
22327
22328 2009-01-20  Bruno Haible  <bruno@clisp.org>
22329
22330         Fix compilation failure on mingw.
22331         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
22332
22333 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
22334
22335         * doc/c-strtod.texi: Mention a couple of restrictions.
22336
22337 2009-01-20  Jim Meyering  <meyering@redhat.com>
22338
22339         gettimeofday: move more declarations out of functions
22340         * lib/gettimeofday.c: Move extern declarations of tzset and
22341         gmtime out of containing functions.  Prompted by Bruno Haible.
22342
22343 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
22344
22345         regex: do not depend on obsolete modules.
22346         * modules/regex: Remove memcmp and memmove.
22347
22348 2009-01-19  Bruno Haible  <bruno@clisp.org>
22349
22350         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
22351         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
22352         gl_BIGENDIAN, not AC_C_BIGENDIAN.
22353         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
22354         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
22355
22356 2009-01-19  Bruno Haible  <bruno@clisp.org>
22357
22358         * tests/test-link.c: Include <errno.h>.
22359         (main): Exit with code 77 when a hard link cannot be created due to
22360         the file system.
22361         * tests/test-link.sh: Skip test when a hard link cannot be created due
22362         to the file system.
22363         Suggested by Eric Blake.
22364
22365 2009-01-19  Martin Lambers  <marlam@marlam.de>
22366
22367         * modules/link-tests: New file.
22368         * tests/test-link.sh: New file.
22369         * tests/test-link.c: New file.
22370
22371 2009-01-19  Eric Blake  <ebb9@byu.net>
22372
22373         doc: mention another function added in cygwin 1.7.0
22374         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
22375         Another new function in cygwin 1.7.
22376
22377 2009-01-19  Bruno Haible  <bruno@clisp.org>
22378
22379         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
22380         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
22381         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
22382         gl_BIGENDIAN, not AC_C_BIGENDIAN.
22383         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
22384         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
22385         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
22386         * m4/md4.m4 (gl_MD4): Likewise.
22387         * m4/md5.m4 (gl_MD5): Likewise.
22388         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
22389         * m4/sha1.m4 (gl_SHA1): Likewise.
22390         * m4/sha256.m4 (gl_SHA256): Likewise.
22391         * m4/sha512.m4 (gl_SHA512): Likewise.
22392
22393 2009-01-19  Bruno Haible  <bruno@clisp.org>
22394
22395         * modules/uniname/uniname-tests (Depends-on): Add progname.
22396         * tests/uniname/test-uninames.c: Include progname.h.
22397         (main): Call set_program_name.
22398
22399         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
22400         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
22401         (main): Call set_program_name.
22402
22403         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
22404         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
22405         (main): Call set_program_name.
22406
22407         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
22408         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
22409         (main): Call set_program_name.
22410
22411         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
22412         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
22413         (main): Call set_program_name.
22414
22415         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
22416         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
22417         (main): Call set_program_name.
22418
22419         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
22420         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
22421         (main): Call set_program_name.
22422
22423         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
22424         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
22425         (main): Call set_program_name.
22426
22427         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
22428         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
22429         (main): Call set_program_name.
22430
22431 2009-01-19  Eric Blake  <ebb9@byu.net>
22432
22433         test-unistd: test previous patch
22434         * tests/test-unistd.c: Test *_FILENO macros.
22435
22436         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
22437         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
22438         Guarantee a definition.
22439         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
22440         * modules/unistd-safer (Depends-on): Add dependency on unistd.
22441         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
22442         * lib/dup-safer.c (STDERR_FILENO): Likewise.
22443         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
22444         Likewise.
22445         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
22446         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
22447         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
22448         Likewise.
22449         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
22450         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
22451         (STDERR_FILENO): Likewise.
22452         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
22453         (STDERR_FILENO): Likewise.
22454         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
22455         (STDERR_FILENO): Likewise.
22456         Reported by Elbert Pol.
22457
22458 2009-01-19  Eric Blake  <ebb9@byu.net>
22459
22460         doc: mention more functions added in cygwin 1.7.0
22461         * doc/posix-functions/abort.texi (abort): Update wording related
22462         to cygwin.
22463         * doc/posix-functions/daylight.texi (daylight): Likewise.
22464         * doc/posix-functions/optarg.texi (optarg): Likewise.
22465         * doc/posix-functions/optarg.texi (opterr): Likewise.
22466         * doc/posix-functions/optarg.texi (optind): Likewise.
22467         * doc/posix-functions/optarg.texi (optopt): Likewise.
22468         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
22469         worked in 1.5.x, and was withdrawn in 1.7.
22470         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
22471         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
22472         cygwin versions.
22473         * doc/posix-functions/perror.texi (perror): Likewise.
22474         * doc/posix-functions/printf.texi (printf): Likewise.
22475         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
22476         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
22477         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
22478         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
22479         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
22480         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
22481         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
22482         Likewise.
22483         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
22484         Likewise.
22485         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
22486         this function.
22487         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
22488         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
22489         Likewise.
22490         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
22491         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
22492         * doc/posix-functions/confstr.texi (confstr): Likewise.
22493         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
22494         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
22495         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
22496         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
22497         * doc/posix-functions/fputws.texi (fputws): Likewise.
22498         * doc/posix-functions/fwide.texi (fwide): Likewise.
22499         * doc/posix-functions/getwc.texi (getwc): Likewise.
22500         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
22501         * doc/posix-functions/putwc.texi (putwc): Likewise.
22502         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
22503         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
22504         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
22505         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
22506         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
22507         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
22508         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
22509         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
22510         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
22511         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
22512         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
22513
22514 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
22515
22516         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
22517         * lib/ioctl.c: Include <sys/ioctl.h>.
22518
22519 2009-01-19  Simon Josefsson  <simon@josefsson.org>
22520
22521         * modules/getdate-tests (Depends-on): Add progname.
22522         * tests/test-getdate.c: Use progname module, to avoid link errors
22523         on non-glibc systems.
22524
22525 2009-01-18  Simon Josefsson  <simon@josefsson.org>
22526
22527         * modules/filenamecat-tests (Depends-on): Add progname.
22528         * modules/fstrcmp-tests (Depends-on): Likewise.
22529
22530         * tests/test-filenamecat.c: Use progname module, to avoid link
22531         errors on non-glibc systems.
22532         * tests/test-fstrcmp.c: Likewise.
22533
22534 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
22535
22536         gettimeofday: avoid warning: nested extern declaration of 'localtime'
22537         * lib/gettimeofday.c: Move extern declaration out of function.
22538
22539 2009-01-18  Bruno Haible  <bruno@clisp.org>
22540
22541         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
22542         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
22543         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
22544
22545 2009-01-18  Bruno Haible  <bruno@clisp.org>
22546
22547         * lib/strftime.c (MEMPCPY): Remove unused macro.
22548         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
22549
22550 2009-01-18  Martin Lambers  <marlam@marlam.de>
22551
22552         New module 'link'.
22553         * lib/unistd.in.h (link): New declaration.
22554         * lib/link.c: New file.
22555         * m4/link.m4: New file.
22556         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
22557         HAVE_LINK.
22558         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
22559         * modules/link: New file.
22560         * doc/posix-functions/link.texi: Mention the new module.
22561
22562 2009-01-18  Bruno Haible  <bruno@clisp.org>
22563
22564         * tests/test-avltree_list.c (main): Call set_program_name.
22565         * tests/test-avltree_oset.c (main): Likewise.
22566         * tests/test-obstack-printf.c: Include progname.h.
22567         (main): Call set_program_name.
22568         * tests/test-quotearg.c: Include progname.h.
22569         (main): Call set_program_name.
22570         * tests/test-xmemdup0.c: Include progname.h.
22571         (main): Call set_program_name.
22572
22573 2009-01-18  Bruno Haible  <bruno@clisp.org>
22574
22575         New module 'alphasort'.
22576         * lib/dirent.in.h (alphasort): New declaration.
22577         * lib/alphasort.c: New file, from glibc with modifications.
22578         * m4/alphasort.m4: New file.
22579         * modules/alphasort: New file.
22580         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
22581         HAVE_ALPHASORT.
22582         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
22583         HAVE_ALPHASORT.
22584         * doc/posix-functions/alphasort.texi: Mention the new module and the
22585         portability problems.
22586
22587 2009-01-18  Bruno Haible  <bruno@clisp.org>
22588
22589         New module 'scandir'.
22590         * lib/dirent.in.h (scandir): New declaration.
22591         * lib/scandir.c: New file, from glibc with modifications.
22592         * m4/scandir.m4: New file.
22593         * modules/scandir: New file.
22594         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
22595         HAVE_SCANDIR.
22596         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
22597         HAVE_SCANDIR.
22598         * doc/posix-functions/scandir.texi: Mention the new module and the
22599         portability problems.
22600
22601 2009-01-17  Bruno Haible  <bruno@clisp.org>
22602
22603         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
22604         Update documentation.
22605         (func_remove_suffix): Escape all dots in the suffix. Update
22606         documentation.
22607         (func_filter_filelist): Update documentation.
22608         Reported by Ralf Wildenhues.
22609
22610 2009-01-17  Bruno Haible  <bruno@clisp.org>
22611
22612         * modules/dprintf-posix-tests: New file.
22613         * tests/test-dprintf-posix.sh: New file.
22614         * tests/test-dprintf-posix.c: New file.
22615
22616         New modules 'dprintf', 'dprintf-posix'.
22617         * lib/stdio.in.h (dprintf): New declaration.
22618         * lib/dprintf.c: New file.
22619         * m4/dprintf.m4: New file.
22620         * m4/dprintf-posix.m4: New file.
22621         * modules/dprintf: New file.
22622         * modules/dprintf-posix: New file.
22623         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
22624         HAVE_DPRINTF, REPLACE_DPRINTF.
22625         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
22626         HAVE_DPRINTF, REPLACE_DPRINTF.
22627         * doc/posix-functions/dprintf.texi: Mention the new modules.
22628
22629 2009-01-17  Bruno Haible  <bruno@clisp.org>
22630
22631         * modules/vdprintf-posix-tests: New file.
22632         * tests/test-vdprintf-posix.sh: New file.
22633         * tests/test-vdprintf-posix.c: New file.
22634
22635         New modules 'vdprintf', 'vdprintf-posix'.
22636         * lib/stdio.in.h (vdprintf): New declaration.
22637         * lib/vdprintf.c: New file.
22638         * m4/vdprintf.m4: New file.
22639         * m4/vdprintf-posix.m4: New file.
22640         * modules/vdprintf: New file.
22641         * modules/vdprintf-posix: New file.
22642         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
22643         HAVE_VDPRINTF, REPLACE_VDPRINTF.
22644         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
22645         HAVE_VDPRINTF, REPLACE_VDPRINTF.
22646         * doc/posix-functions/vdprintf.texi: Mention the new modules.
22647
22648 2009-01-17  Bruno Haible  <bruno@clisp.org>
22649
22650         Fix replacement of fopen on mingw.
22651         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
22652         mingw.
22653
22654 2009-01-17  Bruno Haible  <bruno@clisp.org>
22655
22656         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
22657         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
22658
22659 2009-01-17  Bruno Haible  <bruno@clisp.org>
22660
22661         Avoid test-fflush2.sh failure on mingw.
22662         * tests/test-fflush2.c: Include binary-io.h.
22663         (main): Put standard input into binary mode.
22664         * modules/fflush-tests (Depends-on): Add binary-io.
22665
22666 2009-01-17  Bruno Haible  <bruno@clisp.org>
22667
22668         * lib/wchar.in.h: In another particular situation, include only the
22669         system's <wchar.h> file.
22670         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
22671         Reported by Albert Chin-A-Young <china@thewrittenword.com>
22672         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
22673
22674 2009-01-17  Bruno Haible  <bruno@clisp.org>
22675
22676         Support for stripping executables in --enable-relocatable.
22677         * build-aux/install-reloc: Expect one more argument, or an environment
22678         variable RELOC_STRIP_PROG. If set, strip the destination program and
22679         its wrapper.
22680         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
22681         RELOC_STRIP_PROG.
22682         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
22683         to set RELOCATABLE_STRIP.
22684         * NEWS: Mention the new Makefile requirement.
22685
22686 2009-01-17  Bruno Haible  <bruno@clisp.org>
22687
22688         * build-aux/install-reloc: Remove debugging information left over by
22689         C compiler on MacOS X.
22690
22691 2009-01-17  Bruno Haible  <bruno@clisp.org>
22692
22693         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
22694         * lib/progreloc.c (find_executable): Fix type of pointer passed to
22695         _NSGetExecutablePath.
22696
22697 2009-01-16  Jim Meyering  <meyering@redhat.com>
22698
22699         strerror: avoid warnings about discarding "const"
22700         * lib/strerror.c (rpl_strerror): Instead of returning a const
22701         string from each and every "case", use a variable, and add a single
22702         cast after the switch.
22703
22704 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
22705
22706         * lib/arpa_inet.in.h: Add extern "C" block for C++.
22707
22708 2009-01-16  Bruno Haible  <bruno@clisp.org>
22709
22710         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
22711         array initializer syntax that also works in C++ mode.
22712         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22713
22714 2009-01-16  Jim Meyering  <meyering@redhat.com>
22715
22716         poll: suppress a warning
22717         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
22718         to ignore "...unsigned expression < 0 is always false" warnings.
22719
22720 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
22721
22722         poll: remove declarations of unused variables
22723         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
22724         sockbuf and optlen.
22725
22726 2009-01-15  Bruno Haible  <bruno@clisp.org>
22727
22728         Make fflush-after-ungetc POSIX compliant on BSD systems.
22729         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
22730         (clear_ungetc_buffer): Implement also for other systems.
22731         (rpl_fflush): On glibc systems, invoke
22732         clear_ungetc_buffer_preserving_position. Otherwise, invoke
22733         clear_ungetc_buffer after fetching the stream's position, not before.
22734
22735 2009-01-15  Bruno Haible  <bruno@clisp.org>
22736
22737         Make fflush-after-ungetc POSIX compliant on glibc systems.
22738         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
22739         after ungetc.
22740         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
22741         (rpl_fflush): On glibc systems, simply call the system's fflush
22742         function after clearing the ungetc buffer.
22743         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
22744         Instead, lseek only to the end of file, then use the system's fseeko
22745         for the rest. On glibc systems, reset the EOF indicator bit.
22746
22747 2009-01-15  Jim Meyering  <meyering@redhat.com>
22748
22749         openmp.m4: revert quote-adding change, for portability to older autoconf
22750         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
22751         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
22752         Simon Josefsson noticed the problem when using autoconf-2.61.
22753
22754 2009-01-15  Bruno Haible  <bruno@clisp.org>
22755
22756         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
22757         * tests/test-fflush2.c (ASSERT): Always fail.
22758         (main): Add two tests for fflush() after ungetc(), taking into account
22759         the Austin Group's clarification.
22760         Suggested by Eric Blake.
22761
22762 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
22763
22764         mktime.m4: remove K&R-style function prototypes
22765         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
22766         for the Sun C++ compiler.
22767
22768 2009-01-14  Bruno Haible  <bruno@clisp.org>
22769
22770         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
22771         while including <wchar.h>.
22772         * lib/wchar.in.h: In two particular situations on HP-UX, include only
22773         the system's <wchar.h> file.
22774         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22775
22776 2009-01-14  Bruno Haible  <bruno@clisp.org>
22777
22778         * m4/csharp.m4: Don't mention gettext on the serial number line.
22779         * m4/csharpexec.m4: Likewise.
22780         * m4/eaccess.m4: Likewise.
22781         * m4/javaexec.m4: Likewise.
22782         * m4/sig_atomic_t.m4: Likewise.
22783         * m4/tmpdir.m4: Likewise.
22784         * m4/intldir.m4: Bump gettext version.
22785         * m4/lib-ld.m4: Likewise.
22786
22787 2009-01-14  Bruno Haible  <bruno@clisp.org>
22788
22789         * lib/progname.c (set_program_name): Add more comments.
22790         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
22791
22792 2009-01-14  Simon Josefsson  <simon@josefsson.org>
22793
22794         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
22795         were sys/stat.h does not define it.
22796
22797 2009-01-14  Jim Meyering  <meyering@redhat.com>
22798
22799         many *.m4 files: improve m4 quoting
22800         99% of this change was performed by running the following commands:
22801         git ls-files | grep '\.m4$' | xargs perl -pi \
22802           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
22803           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
22804           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
22805           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
22806         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
22807         The remainder were to add Copyright dates, increment serial numbers,
22808         undo some changes in comments, exclude m4/intl.m4, and add quotes
22809         around the "1" in ",1" where the unusual spacing prohibited the
22810         above regexps from doing the job.  For more details, see
22811         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
22812         * m4/acl.m4: Modified.
22813         * m4/afs.m4: Likewise.
22814         * m4/alloca.m4: Likewise.
22815         * m4/argp.m4: Likewise.
22816         * m4/argz.m4: Likewise.
22817         * m4/atexit.m4: Likewise.
22818         * m4/bison-i18n.m4: Likewise.
22819         * m4/bison.m4: Likewise.
22820         * m4/byteswap.m4: Likewise.
22821         * m4/c-stack.m4: Likewise.
22822         * m4/c-strtod.m4: Likewise.
22823         * m4/calloc.m4: Likewise.
22824         * m4/canonicalize-lgpl.m4: Likewise.
22825         * m4/chown.m4: Likewise.
22826         * m4/clock_time.m4: Likewise.
22827         * m4/codeset.m4: Likewise.
22828         * m4/copy-file.m4: Likewise.
22829         * m4/csharp.m4: Likewise.
22830         * m4/csharpcomp.m4: Likewise.
22831         * m4/csharpexec.m4: Likewise.
22832         * m4/d-ino.m4: Likewise.
22833         * m4/d-type.m4: Likewise.
22834         * m4/dirfd.m4: Likewise.
22835         * m4/double-slash-root.m4: Likewise.
22836         * m4/eaccess.m4: Likewise.
22837         * m4/eealloc.m4: Likewise.
22838         * m4/environ.m4: Likewise.
22839         * m4/errno_h.m4: Likewise.
22840         * m4/euidaccess.m4: Likewise.
22841         * m4/execute.m4: Likewise.
22842         * m4/fatal-signal.m4: Likewise.
22843         * m4/fchdir.m4: Likewise.
22844         * m4/fcntl_h.m4: Likewise.
22845         * m4/fileblocks.m4: Likewise.
22846         * m4/filenamecat.m4: Likewise.
22847         * m4/findprog.m4: Likewise.
22848         * m4/flexmember.m4: Likewise.
22849         * m4/fnmatch.m4: Likewise.
22850         * m4/fopen.m4: Likewise.
22851         * m4/fpending.m4: Likewise.
22852         * m4/fprintf-posix.m4: Likewise.
22853         * m4/free.m4: Likewise.
22854         * m4/frexp.m4: Likewise.
22855         * m4/frexpl.m4: Likewise.
22856         * m4/fsusage.m4: Likewise.
22857         * m4/ftruncate.m4: Likewise.
22858         * m4/gc-camellia.m4: Likewise.
22859         * m4/gc-random.m4: Likewise.
22860         * m4/gc.m4: Likewise.
22861         * m4/getaddrinfo.m4: Likewise.
22862         * m4/getcwd-abort-bug.m4: Likewise.
22863         * m4/getcwd-path-max.m4: Likewise.
22864         * m4/getdate.m4: Likewise.
22865         * m4/getdomainname.m4: Likewise.
22866         * m4/getgroups.m4: Likewise.
22867         * m4/gethostname.m4: Likewise.
22868         * m4/gethrxtime.m4: Likewise.
22869         * m4/getline.m4: Likewise.
22870         * m4/getloadavg.m4: Likewise.
22871         * m4/getndelim2.m4: Likewise.
22872         * m4/getpass.m4: Likewise.
22873         * m4/gettext.m4: Likewise.
22874         * m4/gettime.m4: Likewise.
22875         * m4/gettimeofday.m4: Likewise.
22876         * m4/gnulib-common.m4: Likewise.
22877         * m4/group-member.m4: Likewise.
22878         * m4/host-os.m4: Likewise.
22879         * m4/iconv.m4: Likewise.
22880         * m4/iconv_open.m4: Likewise.
22881         * m4/inet_ntop.m4: Likewise.
22882         * m4/inet_pton.m4: Likewise.
22883         * m4/inline.m4: Likewise.
22884         * m4/intldir.m4: Likewise.
22885         * m4/intlmacosx.m4: Likewise.
22886         * m4/intmax.m4: Likewise.
22887         * m4/intmax_t.m4: Likewise.
22888         * m4/inttypes.m4: Likewise.
22889         * m4/inttypes_h.m4: Likewise.
22890         * m4/inttypes-pri.m4: Likewise.
22891         * m4/isapipe.m4: Likewise.
22892         * m4/isnand.m4: Likewise.
22893         * m4/isnanf.m4: Likewise.
22894         * m4/isnanl.m4: Likewise.
22895         * m4/javacomp.m4: Likewise.
22896         * m4/javaexec.m4: Likewise.
22897         * m4/jm-winsz1.m4: Likewise.
22898         * m4/jm-winsz2.m4: Likewise.
22899         * m4/lchown.m4: Likewise.
22900         * m4/lcmessage.m4: Likewise.
22901         * m4/ldexpl.m4: Likewise.
22902         * m4/lib-ld.m4: Likewise.
22903         * m4/lib-link.m4: Likewise.
22904         * m4/libsigsegv.m4: Likewise.
22905         * m4/link-follow.m4: Likewise.
22906         * m4/localcharset.m4: Likewise.
22907         * m4/locale-fr.m4: Likewise.
22908         * m4/locale-ja.m4: Likewise.
22909         * m4/locale-tr.m4: Likewise.
22910         * m4/locale-zh.m4: Likewise.
22911         * m4/lock.m4: Likewise.
22912         * m4/longlong.m4: Likewise.
22913         * m4/ls-mntd-fs.m4: Likewise.
22914         * m4/lstat.m4: Likewise.
22915         * m4/malloc.m4: Likewise.
22916         * m4/mathl.m4: Likewise.
22917         * m4/mbrtowc.m4: Likewise.
22918         * m4/mbstate_t.m4: Likewise.
22919         * m4/mbswidth.m4: Likewise.
22920         * m4/memchr.m4: Likewise.
22921         * m4/memcmp.m4: Likewise.
22922         * m4/memcpy.m4: Likewise.
22923         * m4/memmem.m4: Likewise.
22924         * m4/memmove.m4: Likewise.
22925         * m4/mempcpy.m4: Likewise.
22926         * m4/memrchr.m4: Likewise.
22927         * m4/memset.m4: Likewise.
22928         * m4/minmax.m4: Likewise.
22929         * m4/mkdir-slash.m4: Likewise.
22930         * m4/mkdtemp.m4: Likewise.
22931         * m4/mktime.m4: Likewise.
22932         * m4/mmap-anon.m4: Likewise.
22933         * m4/mountlist.m4: Likewise.
22934         * m4/nanosleep.m4: Likewise.
22935         * m4/nls.m4: Likewise.
22936         * m4/nocrash.m4: Likewise.
22937         * m4/open.m4: Likewise.
22938         * m4/openat.m4: Likewise.
22939         * m4/openmp.m4: Likewise.
22940         * m4/pathmax.m4: Likewise.
22941         * m4/perl.m4: Likewise.
22942         * m4/physmem.m4: Likewise.
22943         * m4/pipe.m4: Likewise.
22944         * m4/po.m4: Likewise.
22945         * m4/poll.m4: Likewise.
22946         * m4/posixtm.m4: Likewise.
22947         * m4/posixver.m4: Likewise.
22948         * m4/printf-frexp.m4: Likewise.
22949         * m4/printf-frexpl.m4: Likewise.
22950         * m4/printf-posix.m4: Likewise.
22951         * m4/printf-posix-rpl.m4: Likewise.
22952         * m4/printf.m4: Likewise.
22953         * m4/progtest.m4: Likewise.
22954         * m4/putenv.m4: Likewise.
22955         * m4/readline.m4: Likewise.
22956         * m4/readlink.m4: Likewise.
22957         * m4/readutmp.m4: Likewise.
22958         * m4/realloc.m4: Likewise.
22959         * m4/regex.m4: Likewise.
22960         * m4/relocatable.m4: Likewise.
22961         * m4/relocatable-lib.m4: Likewise.
22962         * m4/rename-dest-slash.m4: Likewise.
22963         * m4/rename.m4: Likewise.
22964         * m4/rmdir-errno.m4: Likewise.
22965         * m4/rmdir.m4: Likewise.
22966         * m4/roundf.m4: Likewise.
22967         * m4/roundl.m4: Likewise.
22968         * m4/rpmatch.m4: Likewise.
22969         * m4/save-cwd.m4: Likewise.
22970         * m4/selinux-selinux-h.m4: Likewise.
22971         * m4/setenv.m4: Likewise.
22972         * m4/settime.m4: Likewise.
22973         * m4/sig2str.m4: Likewise.
22974         * m4/sig_atomic_t.m4: Likewise.
22975         * m4/signalblocking.m4: Likewise.
22976         * m4/signbit.m4: Likewise.
22977         * m4/sigpipe.m4: Likewise.
22978         * m4/sockets.m4: Likewise.
22979         * m4/sockpfaf.m4: Likewise.
22980         * m4/st_dm_mode.m4: Likewise.
22981         * m4/stat-time.m4: Likewise.
22982         * m4/stdbool.m4: Likewise.
22983         * m4/stdint.m4: Likewise.
22984         * m4/stdint_h.m4: Likewise.
22985         * m4/stpcpy.m4: Likewise.
22986         * m4/stpncpy.m4: Likewise.
22987         * m4/strcase.m4: Likewise.
22988         * m4/strchrnul.m4: Likewise.
22989         * m4/strcspn.m4: Likewise.
22990         * m4/strdup.m4: Likewise.
22991         * m4/strftime.m4: Likewise.
22992         * m4/strndup.m4: Likewise.
22993         * m4/strnlen.m4: Likewise.
22994         * m4/strpbrk.m4: Likewise.
22995         * m4/strptime.m4: Likewise.
22996         * m4/strsep.m4: Likewise.
22997         * m4/strtod.m4: Likewise.
22998         * m4/strtoimax.m4: Likewise.
22999         * m4/strtok_r.m4: Likewise.
23000         * m4/strtol.m4: Likewise.
23001         * m4/strtoll.m4: Likewise.
23002         * m4/strtoul.m4: Likewise.
23003         * m4/strtoull.m4: Likewise.
23004         * m4/strtoumax.m4: Likewise.
23005         * m4/strverscmp.m4: Likewise.
23006         * m4/threadlib.m4: Likewise.
23007         * m4/timegm.m4: Likewise.
23008         * m4/tm_gmtoff.m4: Likewise.
23009         * m4/tmpdir.m4: Likewise.
23010         * m4/tmpfile.m4: Likewise.
23011         * m4/tzset.m4: Likewise.
23012         * m4/uintmax_t.m4: Likewise.
23013         * m4/unlinkdir.m4: Likewise.
23014         * m4/unlocked-io.m4: Likewise.
23015         * m4/uptime.m4: Likewise.
23016         * m4/userspec.m4: Likewise.
23017         * m4/utimbuf.m4: Likewise.
23018         * m4/utime.m4: Likewise.
23019         * m4/utimes-null.m4: Likewise.
23020         * m4/utimes.m4: Likewise.
23021         * m4/vararrays.m4: Likewise.
23022         * m4/vasnprintf.m4: Likewise.
23023         * m4/vfprintf-posix.m4: Likewise.
23024         * m4/vprintf-posix.m4: Likewise.
23025         * m4/wait-process.m4: Likewise.
23026         * m4/wchar_t.m4: Likewise.
23027         * m4/wint_t.m4: Likewise.
23028         * m4/write-any-file.m4: Likewise.
23029         * m4/yield.m4: Likewise.
23030
23031 2009-01-13  Bruno Haible  <bruno@clisp.org>
23032
23033         Avoid test-copy-file.sh failures when ACL support insufficient.
23034         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
23035         TESTS_ENVIRONMENT.
23036         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
23037         Reported by Jim Meyering.
23038
23039 2009-01-13  Bruno Haible  <bruno@clisp.org>
23040
23041         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
23042         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
23043         * modules/unistdio/u8-printf-parse (Files): Likewise.
23044         * modules/unistdio/u32-printf-parse (Files): Likewise.
23045         * modules/unistdio/ulc-printf-parse (Files): Likewise.
23046
23047 2009-01-13  Simon Josefsson  <simon@josefsson.org>
23048
23049         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
23050         and m4/inttypes_h.m4 too.
23051
23052 2009-01-12  Eric Blake  <ebb9@byu.net>
23053
23054         tests: IRIX 6.2 cc can't compile -0.0 into .data
23055         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
23056         rather than at compile-time.
23057         * tests/test-floorl.c (minus_zero): Likewise.
23058         * tests/test-frexpl.c (minus_zero): Likewise.
23059         * tests/test-isnan.c (minus_zerol): Likewise.
23060         * tests/test-isnanl.h (minus_zero): Likewise.
23061         * tests/test-ldexpl.c (minus_zero): Likewise.
23062         * tests/test-roundl.c (minus_zero): Likewise.
23063         * tests/test-signbit.c (minus_zerol): Likewise.
23064         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
23065         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
23066         * tests/test-truncl.c (minus_zero): Likewise.
23067         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
23068         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
23069         Reported by Tom G. Christensen and Nelson H. F. Beebe.
23070
23071 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
23072
23073         regex: fix glibc bug 9697
23074         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
23075         handling.
23076
23077 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
23078
23079         regex: fix glibc bug 697
23080         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
23081         being NULL also if there are no backreferences.
23082
23083 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
23084
23085         regex: merge glibc changes
23086         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
23087         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
23088         re_string_skip_chars, re_string_reconstruct): Likewise.
23089         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
23090
23091 2009-01-07  Jim Meyering  <meyering@redhat.com>
23092
23093         poll: filter through cppi
23094         * lib/poll.c: Indent cpp directives to reflect nesting.
23095
23096 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
23097
23098         poll: don't return uninitialized
23099         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
23100
23101 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
23102
23103         avoid compile failure on AIX 6.1
23104         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
23105         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
23106
23107 2009-01-04  Jim Meyering  <meyering@redhat.com>
23108
23109         remove duplicate inclusion of <stdio.h>
23110         * tests/test-fprintf-posix.c: Likewise.
23111         * tests/test-printf-posix.c: Likewise.
23112         * tests/test-snprintf-posix.c: Likewise.
23113         * tests/test-sprintf-posix.c: Likewise.
23114         * tests/test-vasprintf-posix.c: Likewise.
23115         * tests/test-vfprintf-posix.c: Likewise.
23116         * tests/test-vprintf-posix.c: Likewise.
23117         * tests/test-vsnprintf-posix.c: Likewise.
23118         * tests/test-vsprintf-posix.c: Likewise.
23119
23120 2009-01-03  Jim Meyering  <meyering@redhat.com>
23121
23122         gnulib-tool: fix sed-based filtering
23123         * gnulib-tool (func_filter_filelist): Remove extra backslash
23124         in sed_fff_filter definition.
23125
23126 2009-01-02  Jim Meyering  <meyering@redhat.com>
23127
23128         strftime: avoid compilation failure on Solaris 2.6
23129         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
23130         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
23131         Don't #define mbrlen or mbsinit, since now they're guaranteed to
23132         be available.  Reported by Tom G. Christensen.  Details in
23133         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
23134
23135 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23136             Bruno Haible  <bruno@clisp.org>
23137
23138         Speed up gnulib-tool by doing more string processing through shell
23139         built-ins.
23140         * gnulib-tool (fast_func_append): New variable.
23141         (func_remove_prefix, func_remove_suffix): New functions.
23142         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
23143         (func_filter_filelist): New function.
23144         (func_get_dependencies): Use func_remove_suffix instead of sed.
23145         (func_get_automake_snippet): Use func_filter_filelist instead of a
23146         subshell and sed invocation.
23147
23148 2009-01-01  Bruno Haible  <bruno@clisp.org>
23149
23150         Fix a security bug.
23151         * gnulib-tool (func_import, import, update): Don't allow the characters
23152         '"', '$', '`', '\' in macro arguments that become part of commands that
23153         are evaluated.
23154
23155 2009-01-01  Bruno Haible  <bruno@clisp.org>
23156
23157         * gnulib-tool (func_reset_sigpipe): Add more comments.
23158
23159 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23160
23161         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
23162         func_emit_tests_Makefile_am, func_import): Abort loops early if we
23163         already know the answer.
23164
23165 2009-01-01  Jim Meyering  <meyering@redhat.com>
23166
23167         * lib/version-etc.c (version_etc_va): Update copyright year.
23168
23169 2008-12-30  Bruno Haible  <bruno@clisp.org>
23170
23171         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
23172         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
23173         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
23174
23175 2008-12-29  Eric Blake  <ebb9@byu.net>
23176
23177         multiarch: avoid autoconf AC_REQUIRE bug
23178         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
23179         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
23180         2.63 and older.
23181         Reported by Bruno Haible, and analyzed in
23182         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
23183
23184 2008-12-29  Bruno Haible  <bruno@clisp.org>
23185
23186         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
23187         files in subdirectories correctly.
23188         Reported by Ralf Wildenhues.
23189
23190 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23191
23192         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
23193         rather than 'join FILE -', for Solaris join.
23194
23195 2008-12-29  Bruno Haible  <bruno@clisp.org>
23196
23197         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
23198         quoting.
23199         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
23200         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
23201         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
23202         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
23203         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
23204         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
23205         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
23206         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
23207         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
23208         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
23209         * m4/nls.m4 (AM_NLS): Likewise.
23210         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
23211         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
23212         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
23213         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
23214         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
23215         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
23216         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
23217         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
23218         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
23219         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
23220         * m4/xsize.m4 (gl_XSIZE): Likewise.
23221         Suggested by Jim Meyering.
23222
23223 2008-11-17  Bruce Korb  <bkorb@gnu.org>
23224
23225         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
23226         * lib/parse-duration.c: use a switch instead of cascading if's.
23227
23228 2008-12-29  Eric Blake  <ebb9@byu.net>
23229
23230         wchar.h: supply WEOF on Irix 5.3
23231         * lib/wchar.in.h (wint_t): Also supply WEOF.
23232         * lib/wctype.in.h (wint_t): Likewise.
23233         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
23234         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
23235         Reported by Tom G. Christensen.
23236
23237 2008-12-26  Bruno Haible  <bruno@clisp.org>
23238
23239         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
23240         i486, i586, i686.
23241
23242 2008-12-26  Bruno Haible  <bruno@clisp.org>
23243
23244         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
23245
23246 2008-12-26  Bruno Haible  <bruno@clisp.org>
23247
23248         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
23249         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
23250         not __STDC_CONSTANT_MACROS.
23251         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
23252
23253 2008-12-25  Bruno Haible  <bruno@clisp.org>
23254
23255         Add support for universal builds to vasnprintf.
23256         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
23257         universal builds, guess no.
23258         * modules/vasnprintf-posix (Depends-on): Add multiarch.
23259         * modules/vasprintf-posix (Depends-on): Likewise.
23260         * modules/fprintf-posix (Depends-on): Likewise.
23261         * modules/vfprintf-posix (Depends-on): Likewise.
23262         * modules/snprintf-posix (Depends-on): Likewise.
23263         * modules/vsnprintf-posix (Depends-on): Likewise.
23264         * modules/sprintf-posix (Depends-on): Likewise.
23265         * modules/vsprintf-posix (Depends-on): Likewise.
23266         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
23267         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
23268         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
23269         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
23270         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
23271         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
23272         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
23273
23274         Add support for universal builds to <inttypes.h>.
23275         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
23276         _SCNu64_PREFIX): In Apple
23277         universal builds, define directly, using _LP64.
23278         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
23279         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
23280         * modules/inttypes (Depends-on): Add multiarch.
23281         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
23282
23283         Add support for universal builds to <stdint.h>.
23284         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
23285         universal builds, define directly, using _LP64.
23286         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
23287         Apple universal builds, don't test for the size and suffix of ptrdiff_t
23288         and size_t.
23289         * modules/stdint (Depends-on): Add multiarch.
23290         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
23291
23292         New module 'multiarch'.
23293         * modules/multiarch: New file.
23294         * m4/multiarch.m4: New file.
23295
23296 2008-12-25  Bruno Haible  <bruno@clisp.org>
23297
23298         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
23299
23300 2008-12-25  Bruno Haible  <bruno@clisp.org>
23301
23302         * modules/btowc (License): Relicense under LGPLv2+.
23303         * modules/mbsinit (License): Likewise.
23304         * modules/mbrtowc (License): Likewise.
23305         * modules/wcrtomb (License): Likewise.
23306         * modules/streq (License): Likewise.
23307         Reported by David Lutterkort <lutter@redhat.com>.
23308
23309 2008-12-23  Bruno Haible  <bruno@clisp.org>
23310
23311         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
23312
23313 2008-12-23  Bruno Haible  <bruno@clisp.org>
23314
23315         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
23316         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
23317         GETADDRINFO_LIB, not in LIBS.
23318         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
23319         * modules/canon-host (Link): Likewise.
23320         * NEWS: Mention the change.
23321         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
23322         GETADDRINFO_LIB.
23323
23324 2008-12-22  Bruno Haible  <bruno@clisp.org>
23325
23326         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
23327         * doc/posix-functions/iswalpha_l.texi: Likewise.
23328         * doc/posix-functions/iswblank_l.texi: Likewise.
23329         * doc/posix-functions/iswcntrl_l.texi: Likewise.
23330         * doc/posix-functions/iswctype_l.texi: Likewise.
23331         * doc/posix-functions/iswdigit_l.texi: Likewise.
23332         * doc/posix-functions/iswgraph_l.texi: Likewise.
23333         * doc/posix-functions/iswlower_l.texi: Likewise.
23334         * doc/posix-functions/iswprint_l.texi: Likewise.
23335         * doc/posix-functions/iswpunct_l.texi: Likewise.
23336         * doc/posix-functions/iswspace_l.texi: Likewise.
23337         * doc/posix-functions/iswupper_l.texi: Likewise.
23338         * doc/posix-functions/iswxdigit_l.texi: Likewise.
23339         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
23340         * doc/posix-functions/open_wmemstream.texi: Likewise.
23341         * doc/posix-functions/swscanf.texi: Likewise.
23342         * doc/posix-functions/towctrans_l.texi: Likewise.
23343         * doc/posix-functions/towlower.texi: Likewise.
23344         * doc/posix-functions/towlower_l.texi: Likewise.
23345         * doc/posix-functions/towupper.texi: Likewise.
23346         * doc/posix-functions/towupper_l.texi: Likewise.
23347         * doc/posix-functions/vfwprintf.texi: Likewise.
23348         * doc/posix-functions/vfwscanf.texi: Likewise.
23349         * doc/posix-functions/vswscanf.texi: Likewise.
23350         * doc/posix-functions/vwprintf.texi: Likewise.
23351         * doc/posix-functions/vwscanf.texi: Likewise.
23352         * doc/posix-functions/wcpcpy.texi: Likewise.
23353         * doc/posix-functions/wcpncpy.texi: Likewise.
23354         * doc/posix-functions/wcscasecmp.texi: Likewise.
23355         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
23356         * doc/posix-functions/wcscoll_l.texi: Likewise.
23357         * doc/posix-functions/wcsdup.texi: Likewise.
23358         * doc/posix-functions/wcsncasecmp.texi: Likewise.
23359         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
23360         * doc/posix-functions/wcsnlen.texi: Likewise.
23361         * doc/posix-functions/wcsnrtombs.texi: Likewise.
23362         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
23363         * doc/posix-functions/wctrans_l.texi: Likewise.
23364         * doc/posix-functions/wctype_l.texi: Likewise.
23365         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
23366         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
23367         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
23368         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
23369         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
23370         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
23371         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
23372         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
23373         * doc/glibc-functions/wcschrnul.texi: Likewise.
23374         * doc/glibc-functions/wcsftime_l.texi: Likewise.
23375         * doc/glibc-functions/wcstod_l.texi: Likewise.
23376         * doc/glibc-functions/wcstof_l.texi: Likewise.
23377         * doc/glibc-functions/wcstol_l.texi: Likewise.
23378         * doc/glibc-functions/wcstold_l.texi: Likewise.
23379         * doc/glibc-functions/wcstoll_l.texi: Likewise.
23380         * doc/glibc-functions/wcstoq.texi: Likewise.
23381         * doc/glibc-functions/wcstoul_l.texi: Likewise.
23382         * doc/glibc-functions/wcstoull_l.texi: Likewise.
23383         * doc/glibc-functions/wcstouq.texi: Likewise.
23384         * doc/glibc-functions/wmempcpy.texi: Likewise.
23385
23386 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
23387             Eric Blake  <ebb9@byu.net>
23388             Paolo Bonzini  <bonzini@gnu.org>
23389             Bruno Haible  <bruno@clisp.org>
23390
23391         Make c-stack work on Haiku.
23392         * lib/c-stack.c (SA_ONSTACK): Define fallback.
23393         (c_stack_action): Use SA_ONSTACK flag.
23394
23395 2008-12-22  Bruno Haible  <bruno@clisp.org>
23396
23397         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
23398
23399 2008-12-22  Bruno Haible  <bruno@clisp.org>
23400
23401         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
23402         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
23403         being overridden.
23404         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
23405         New macros.
23406         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
23407         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
23408         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
23409         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
23410
23411 2008-12-22  Bruno Haible  <bruno@clisp.org>
23412
23413         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
23414         from test code.
23415
23416 2008-12-22  Eric Blake  <ebb9@byu.net>
23417
23418         Avoid gcc warnings on cygwin.
23419         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
23420         Avoid unused variable.
23421         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
23422         Likewise.
23423
23424 2008-12-22  Bruno Haible  <bruno@clisp.org>
23425
23426         Remove HAVE_MBRTOWC conditionals.
23427         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
23428         (mbscasecmp): Assume mbrtowc function.
23429         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
23430         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
23431         * lib/mbschr.c: Include mbuiter.h unconditionally.
23432         (mbschr): Assume mbrtowc function.
23433         * lib/mbscspn.c: Include mbuiter.h unconditionally.
23434         (mbscspn): Assume mbrtowc function.
23435         * lib/mbslen.c: Include mbuiter.h unconditionally.
23436         (mbslen): Assume mbrtowc function.
23437         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
23438         (mbsncasecmp): Assume mbrtowc function.
23439         * lib/mbsnlen.c: Include mbiter.h unconditionally.
23440         (mbsnlen): Assume mbrtowc function.
23441         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
23442         (mbspbrk): Assume mbrtowc function.
23443         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
23444         (mbspcasecmp): Assume mbrtowc function.
23445         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
23446         (mbsrchr): Assume mbrtowc function.
23447         * lib/mbssep.c: Include mbuiter.h unconditionally.
23448         (mbssep): Assume mbrtowc function.
23449         * lib/mbsspn.c: Include mbuiter.h unconditionally.
23450         (mbsspn): Assume mbrtowc function.
23451         * lib/mbsstr.c: Include mbuiter.h unconditionally.
23452         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
23453         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
23454         (mbstok_r): Assume mbrtowc function.
23455         * lib/propername.c: Include mbuiter.h unconditionally.
23456         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
23457         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
23458         (trim2): Assume mbrtowc function.
23459         * lib/mbswidth.c (mbsinit): Remove fallback definition.
23460         (mbsnwidth): Assume mbrtowc function.
23461         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
23462         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
23463         fallback definitions.
23464         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
23465
23466 2008-12-22  Bruno Haible  <bruno@clisp.org>
23467
23468         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
23469
23470 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
23471
23472         * modules/regex: Request emulations for the mb*/wc* functions we need.
23473         * m4/regex.m4: Don't look for those functions here.
23474         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
23475
23476 2008-12-22  Bruno Haible  <bruno@clisp.org>
23477
23478         * modules/fnmatch (Depends-on): Remove duplicated dependency.
23479
23480 2008-12-21  Bruno Haible  <bruno@clisp.org>
23481
23482         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
23483         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
23484         (Include): Remove conditionalization.
23485         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
23486         (Include): Remove conditionalization.
23487         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
23488         (Include): Remove conditionalization.
23489         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
23490         * m4/mbfile.m4 (gl_MBFILE): Likewise.
23491         * NEWS: Mention the change.
23492         Reported by Alan Hourihane <alanh@fairlite.co.uk>
23493         via Sergey Poznyakoff <gray@gnu.org.ua>.
23494
23495 2008-12-21  Bruno Haible  <bruno@clisp.org>
23496
23497         * MODULES.html.sh (Extended multibyte and wide character utilities
23498         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
23499         wcrtomb, wcsrtombs.
23500         (Support for systems lacking POSIX:2008): Add accept, bind, close,
23501         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
23502         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
23503         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
23504
23505 2008-12-21  Bruno Haible  <bruno@clisp.org>
23506
23507         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
23508
23509 2008-12-21  Bruno Haible  <bruno@clisp.org>
23510
23511         * modules/wcsnrtombs-tests: New file.
23512         * tests/test-wcsnrtombs1.sh: New file.
23513         * tests/test-wcsnrtombs2.sh: New file.
23514         * tests/test-wcsnrtombs3.sh: New file.
23515         * tests/test-wcsnrtombs4.sh: New file.
23516         * tests/test-wcsnrtombs.c: New file.
23517
23518         New module 'wcsnrtombs'.
23519         * lib/wchar.in.h (wcsnrtombs): New declaration.
23520         * lib/wcsnrtombs.c: New file.
23521         * lib/wcsrtombs-state.c: New file.
23522         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
23523         (internal_state): Remove variable.
23524         * m4/wcsnrtombs.m4: New file.
23525         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
23526         compilation units.
23527         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
23528         HAVE_WCSNRTOMBS.
23529         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
23530         HAVE_WCSNRTOMBS.
23531         * modules/wcsnrtombs: New file.
23532         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
23533         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
23534
23535 2008-12-21  Bruno Haible  <bruno@clisp.org>
23536
23537         * modules/wcsrtombs-tests: New file.
23538         * tests/test-wcsrtombs1.sh: New file.
23539         * tests/test-wcsrtombs2.sh: New file.
23540         * tests/test-wcsrtombs3.sh: New file.
23541         * tests/test-wcsrtombs4.sh: New file.
23542         * tests/test-wcsrtombs.c: New file.
23543
23544         New module 'wcsrtombs'.
23545         * lib/wchar.in.h (wcsrtombs): New declaration.
23546         * lib/wcsrtombs.c: New file.
23547         * m4/wcsrtombs.m4: New file.
23548         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
23549         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
23550         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
23551         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
23552         * modules/wcsrtombs: New file.
23553         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
23554         bugs.
23555
23556 2008-12-21  Bruno Haible  <bruno@clisp.org>
23557
23558         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
23559         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
23560         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
23561         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
23562         if not correct.
23563         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
23564         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
23565         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
23566         m4/locale-zh.m4, m4/codeset.m4.
23567         * doc/posix-functions/wcrtomb.texi: Document the bug.
23568
23569 2008-12-21  Bruno Haible  <bruno@clisp.org>
23570
23571         Work around a btowc() bug on IRIX 6.5.
23572         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
23573         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
23574         REPLACE_WTOBC if not.
23575         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
23576         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
23577         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
23578
23579 2008-12-21  Bruno Haible  <bruno@clisp.org>
23580
23581         * modules/wcrtomb-tests: New file.
23582         * tests/test-wcrtomb.sh: New file.
23583         * tests/test-wcrtomb.c: New file.
23584
23585         New module 'wcrtomb'.
23586         * lib/wchar.in.h (wcrtomb): New declaration.
23587         * lib/wcrtomb.c: New file.
23588         * m4/wcrtomb.m4: New file.
23589         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
23590         HAVE_WCRTOMB.
23591         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
23592         HAVE_WCRTOMB.
23593         * modules/wcrtomb: New file.
23594         * doc/posix-functions/wcrtomb.texi: Mention the new module.
23595
23596 2008-12-21  Bruno Haible  <bruno@clisp.org>
23597
23598         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
23599         * modules/mbsrtowcs (Files): Likewise.
23600         * modules/wctob (Files): Likewise.
23601         * modules/c-strcase-tests (Files): Likewise.
23602         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
23603         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
23604         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
23605         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
23606         * modules/vasnprintf-posix-tests (Files): Likewise.
23607
23608 2008-12-21  William Pursell  <bill.pursell@gmail.com>
23609
23610         gitlog-to-changelog: pass all command-line arguments to git-log
23611         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
23612         it is sometimes convenient to filter the commits in various ways.
23613         gitlog-to-changelog only allows --since to specify a start date,
23614         but git-log itself supports many other filtering mechanisms.
23615         At the moment, I want to filter by branch name.  Rather than
23616         adding a --branch option to gitlog-to-changelog, it seems more
23617         flexible to simply pass all options directly to git-log and let
23618         git do the work.  Notice that this effectively makes --since a
23619         redundant option for gitlog-to-changelog, but removing it would
23620         require current usage to change since calls would then require
23621         an additional '--'.
23622
23623 2008-12-21  Bruno Haible  <bruno@clisp.org>
23624
23625         * modules/mbsnrtowcs-tests: New file.
23626         * tests/test-mbsnrtowcs1.sh: New file.
23627         * tests/test-mbsnrtowcs2.sh: New file.
23628         * tests/test-mbsnrtowcs3.sh: New file.
23629         * tests/test-mbsnrtowcs4.sh: New file.
23630         * tests/test-mbsnrtowcs.c: New file.
23631
23632         New module 'mbsnrtowcs'.
23633         * lib/wchar.in.h (mbsnrtowcs): New declaration.
23634         * lib/mbsnrtowcs.c: New file.
23635         * lib/mbsrtowcs-state.c: New file.
23636         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
23637         (internal_state): Remove variable.
23638         * m4/mbsnrtowcs.m4: New file.
23639         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
23640         compilation units.
23641         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
23642         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
23643         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
23644         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
23645         * modules/mbsnrtowcs: New file.
23646         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
23647         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
23648         portability problem.
23649
23650 2008-12-21  Bruno Haible  <bruno@clisp.org>
23651
23652         Work around mbsrtowcs bug.
23653         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
23654         (gl_FUNC_MBSRTOWCS): Invoke it.
23655         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
23656         m4/locale-zh.m4.
23657         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
23658
23659 2008-12-21  Bruno Haible  <bruno@clisp.org>
23660
23661         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
23662
23663 2008-12-21  Bruno Haible  <bruno@clisp.org>
23664
23665         Update doc for AIX.
23666         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
23667         16-bit wchar_t type.
23668         * doc/posix-functions/btowc.texi: Likewise.
23669         * doc/posix-functions/fgetwc.texi: Likewise.
23670         * doc/posix-functions/fgetws.texi: Likewise.
23671         * doc/posix-functions/fputwc.texi: Likewise.
23672         * doc/posix-functions/fputws.texi: Likewise.
23673         * doc/posix-functions/fwide.texi: Likewise.
23674         * doc/posix-functions/fwprintf.texi: Likewise.
23675         * doc/posix-functions/fwscanf.texi: Likewise.
23676         * doc/posix-functions/getwchar.texi: Likewise.
23677         * doc/posix-functions/getwc.texi: Likewise.
23678         * doc/posix-functions/iswalnum.texi: Likewise.
23679         * doc/posix-functions/iswalpha.texi: Likewise.
23680         * doc/posix-functions/iswblank.texi: Likewise.
23681         * doc/posix-functions/iswcntrl.texi: Likewise.
23682         * doc/posix-functions/iswctype.texi: Likewise.
23683         * doc/posix-functions/iswdigit.texi: Likewise.
23684         * doc/posix-functions/iswgraph.texi: Likewise.
23685         * doc/posix-functions/iswlower.texi: Likewise.
23686         * doc/posix-functions/iswprint.texi: Likewise.
23687         * doc/posix-functions/iswpunct.texi: Likewise.
23688         * doc/posix-functions/iswspace.texi: Likewise.
23689         * doc/posix-functions/iswupper.texi: Likewise.
23690         * doc/posix-functions/iswxdigit.texi: Likewise.
23691         * doc/posix-functions/mbrtowc.texi: Likewise.
23692         * doc/posix-functions/mbsrtowcs.texi: Likewise.
23693         * doc/posix-functions/mbstowcs.texi: Likewise.
23694         * doc/posix-functions/mbtowc.texi: Likewise.
23695         * doc/posix-functions/putwchar.texi: Likewise.
23696         * doc/posix-functions/putwc.texi: Likewise.
23697         * doc/posix-functions/swprintf.texi: Likewise.
23698         * doc/posix-functions/tolower.texi: Likewise.
23699         * doc/posix-functions/toupper.texi: Likewise.
23700         * doc/posix-functions/towctrans.texi: Likewise.
23701         * doc/posix-functions/ungetwc.texi: Likewise.
23702         * doc/posix-functions/vswprintf.texi: Likewise.
23703         * doc/posix-functions/wcrtomb.texi: Likewise.
23704         * doc/posix-functions/wcscat.texi: Likewise.
23705         * doc/posix-functions/wcschr.texi: Likewise.
23706         * doc/posix-functions/wcscmp.texi: Likewise.
23707         * doc/posix-functions/wcscoll.texi: Likewise.
23708         * doc/posix-functions/wcscpy.texi: Likewise.
23709         * doc/posix-functions/wcscspn.texi: Likewise.
23710         * doc/posix-functions/wcsftime.texi: Likewise.
23711         * doc/posix-functions/wcslen.texi: Likewise.
23712         * doc/posix-functions/wcsncat.texi: Likewise.
23713         * doc/posix-functions/wcsncmp.texi: Likewise.
23714         * doc/posix-functions/wcsncpy.texi: Likewise.
23715         * doc/posix-functions/wcspbrk.texi: Likewise.
23716         * doc/posix-functions/wcsrchr.texi: Likewise.
23717         * doc/posix-functions/wcsrtombs.texi: Likewise.
23718         * doc/posix-functions/wcsspn.texi: Likewise.
23719         * doc/posix-functions/wcsstr.texi: Likewise.
23720         * doc/posix-functions/wcstod.texi: Likewise.
23721         * doc/posix-functions/wcstof.texi: Likewise.
23722         * doc/posix-functions/wcstoimax.texi: Likewise.
23723         * doc/posix-functions/wcstok.texi: Likewise.
23724         * doc/posix-functions/wcstold.texi: Likewise.
23725         * doc/posix-functions/wcstoll.texi: Likewise.
23726         * doc/posix-functions/wcstol.texi: Likewise.
23727         * doc/posix-functions/wcstombs.texi: Likewise.
23728         * doc/posix-functions/wcstoull.texi: Likewise.
23729         * doc/posix-functions/wcstoul.texi: Likewise.
23730         * doc/posix-functions/wcstoumax.texi: Likewise.
23731         * doc/posix-functions/wcswidth.texi: Likewise.
23732         * doc/posix-functions/wcsxfrm.texi: Likewise.
23733         * doc/posix-functions/wctob.texi: Likewise.
23734         * doc/posix-functions/wctomb.texi: Likewise.
23735         * doc/posix-functions/wctrans.texi: Likewise.
23736         * doc/posix-functions/wctype.texi: Likewise.
23737         * doc/posix-functions/wcwidth.texi: Likewise.
23738         * doc/posix-functions/wmemchr.texi: Likewise.
23739         * doc/posix-functions/wmemcmp.texi: Likewise.
23740         * doc/posix-functions/wmemcpy.texi: Likewise.
23741         * doc/posix-functions/wmemmove.texi: Likewise.
23742         * doc/posix-functions/wmemset.texi: Likewise.
23743         * doc/posix-functions/wprintf.texi: Likewise.
23744         * doc/posix-functions/wscanf.texi: Likewise.
23745
23746 2008-12-21  Bruno Haible  <bruno@clisp.org>
23747
23748         Update doc for HP-UX 11.11.
23749         * doc/posix-functions/btowc.texi: Clarify that the function is missing
23750         in HP-UX version 11.00, not in all versions of HP-UX 11.
23751         * doc/posix-functions/fwide.texi: Likewise.
23752         * doc/posix-functions/fwprintf.texi: Likewise.
23753         * doc/posix-functions/fwscanf.texi: Likewise.
23754         * doc/posix-functions/inet_ntop.texi: Likewise.
23755         * doc/posix-functions/inet_pton.texi: Likewise.
23756         * doc/posix-functions/mbrlen.texi: Likewise.
23757         * doc/posix-functions/mbrtowc.texi: Likewise.
23758         * doc/posix-functions/mbsinit.texi: Likewise.
23759         * doc/posix-functions/mbsrtowcs.texi: Likewise.
23760         * doc/posix-functions/swprintf.texi: Likewise.
23761         * doc/posix-functions/swscanf.texi: Likewise.
23762         * doc/posix-functions/towctrans.texi: Likewise.
23763         * doc/posix-functions/vfwprintf.texi: Likewise.
23764         * doc/posix-functions/vswprintf.texi: Likewise.
23765         * doc/posix-functions/vwprintf.texi: Likewise.
23766         * doc/posix-functions/wcrtomb.texi: Likewise.
23767         * doc/posix-functions/wcsrtombs.texi: Likewise.
23768         * doc/posix-functions/wcsstr.texi: Likewise.
23769         * doc/posix-functions/wctob.texi: Likewise.
23770         * doc/posix-functions/wctrans.texi: Likewise.
23771         * doc/posix-functions/wmemchr.texi: Likewise.
23772         * doc/posix-functions/wmemcmp.texi: Likewise.
23773         * doc/posix-functions/wmemcpy.texi: Likewise.
23774         * doc/posix-functions/wmemmove.texi: Likewise.
23775         * doc/posix-functions/wmemset.texi: Likewise.
23776         * doc/posix-functions/wprintf.texi: Likewise.
23777         * doc/posix-functions/wscanf.texi: Likewise.
23778
23779 2008-12-21  Bruno Haible  <bruno@clisp.org>
23780
23781         Work around a portability problem.
23782         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
23783         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
23784
23785 2008-12-20  Bruno Haible  <bruno@clisp.org>
23786
23787         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
23788         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
23789         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
23790         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
23791         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
23792
23793         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
23794         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
23795         set.
23796         (GNULIB_defined_mbstate_t): New macro.
23797         (mbsinit): Redefine if REPLACE_MBSINIT is set.
23798         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
23799         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
23800         reuses the system's mbrtowc function but works around the bugs.
23801         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
23802         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
23803         macros.
23804         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
23805         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
23806         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
23807         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
23808         REPLACE_MBSINIT if mbsinit needs to be overridden.
23809         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
23810         REPLACE_MBSINIT, REPLACE_MBRTOWC.
23811         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
23812         REPLACE_MBSINIT, REPLACE_MBRTOWC.
23813         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
23814         m4/locale-zh.m4.
23815         (Depends): Add mbsinit.
23816         * modules/mbsinit (Depends): Add mbrtowc.
23817         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
23818
23819 2008-12-20  Bruno Haible  <bruno@clisp.org>
23820
23821         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
23822         so that there are no conversion errors on AIX.
23823         * tests/test-mbsrtowcs.c (main): LIkewise.
23824
23825 2008-12-20  Bruno Haible  <bruno@clisp.org>
23826
23827         Work around wctob bug on Solaris <= 9.
23828         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
23829         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
23830         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
23831         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
23832         * modules/wctob (Files): Add m4/locale-fr.m4.
23833         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
23834
23835 2008-12-20  Bruno Haible  <bruno@clisp.org>
23836
23837         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
23838         /dev/null.
23839         * tests/test-select-in.sh: Likewise.
23840         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23841
23842 2008-12-20  Bruno Haible  <bruno@clisp.org>
23843
23844         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
23845         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
23846         Cygwin 1.5.x.
23847
23848 2008-12-20  Bruno Haible  <bruno@clisp.org>
23849
23850         Ensure mbstate_t is defined on HP-UX 11.11.
23851         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
23852         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
23853         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
23854         AC_USE_SYSTEM_EXTENSIONS.
23855         * modules/fnmatch (Depends-on): Add extensions.
23856         * modules/mbrlen (Depends-on): Likewise.
23857         * modules/mbrtowc (Depends-on): Likewise.
23858         * modules/mbsinit (Depends-on): Likewise.
23859         * modules/mbsrtowcs (Depends-on): Likewise.
23860         * modules/mbswidth (Depends-on): Likewise.
23861         * modules/quotearg (Depends-on): Likewise.
23862         * modules/strftime (Depends-on): Likewise.
23863
23864 2008-12-20  Bruno Haible  <bruno@clisp.org>
23865
23866         Ensure wctob is declared on IRIX 6.5.
23867         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
23868         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
23869         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
23870         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
23871         of HAVE_WCTOB.
23872         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
23873         HAVE_WCTOB.
23874         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
23875
23876 2008-12-19  Bruno Haible  <bruno@clisp.org>
23877
23878         * modules/mbsrtowcs-tests: New file.
23879         * tests/test-mbsrtowcs1.sh: New file.
23880         * tests/test-mbsrtowcs2.sh: New file.
23881         * tests/test-mbsrtowcs3.sh: New file.
23882         * tests/test-mbsrtowcs4.sh: New file.
23883         * tests/test-mbsrtowcs.c: New file.
23884
23885         New module 'mbsrtowcs'.
23886         * lib/wchar.in.h (mbsrtowcs): New declaration.
23887         * lib/mbsrtowcs.c: New file.
23888         * m4/mbsrtowcs.m4: New file.
23889         * modules/mbsrtowcs: New file.
23890         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
23891         HAVE_MBSRTOWCS.
23892         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
23893         HAVE_MBSRTOWCS.
23894         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
23895
23896 2008-12-19  Bruno Haible  <bruno@clisp.org>
23897
23898         New module 'mbrlen'.
23899         * lib/wchar.in.h (mbrlen): New declaration.
23900         * lib/mbrlen.c: New file.
23901         * m4/mbrlen.m4: New file.
23902         * modules/mbrlen: New file.
23903         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
23904         HAVE_MBRLEN.
23905         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
23906         HAVE_MBRLEN.
23907         * doc/posix-functions/mbrlen.texi: Document the new module.
23908
23909 2008-12-19  Bruno Haible  <bruno@clisp.org>
23910
23911         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
23912         * modules/mbrtowc (Depends-on): Add verify.
23913         Suggested by Paul Eggert.
23914
23915 2008-12-18  Bruno Haible  <bruno@clisp.org>
23916
23917         * modules/mbsinit-tests: New file.
23918         * tests/test-mbsinit.sh: New file.
23919         * tests/test-mbsinit.c: New file.
23920
23921 2008-12-18  Bruno Haible  <bruno@clisp.org>
23922
23923         * modules/mbrtowc-tests: New file.
23924         * tests/test-mbrtowc1.sh: New file.
23925         * tests/test-mbrtowc2.sh: New file.
23926         * tests/test-mbrtowc3.sh: New file.
23927         * tests/test-mbrtowc4.sh: New file.
23928         * tests/test-mbrtowc.c: New file.
23929
23930         New module 'mbrtowc'.
23931         * lib/wchar.in.h (mbstate_t): Override when the system does not have
23932         mbsinit and mbrtowc.
23933         (mbrtowc): New declaration.
23934         * lib/mbrtowc.c: New file.
23935         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
23936         * modules/mbrtowc: New file.
23937         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
23938         HAVE_MBRTOWC.
23939         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
23940         HAVE_MBRTOWC.
23941         * doc/posix-functions/mbrtowc.texi: Document the new module.
23942
23943 2008-12-18  Bruno Haible  <bruno@clisp.org>
23944
23945         New module 'wctob'.
23946         * lib/wchar.in.h (wctob): New declaration.
23947         * lib/wctob.c: New file.
23948         * m4/wctob.m4: New file.
23949         * modules/wctob: New file.
23950         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
23951         HAVE_WCTOB.
23952         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
23953         * doc/posix-functions/wctob.texi: Document the new module.
23954
23955 2008-12-18  Bruno Haible  <bruno@clisp.org>
23956
23957         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
23958         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
23959
23960 2008-12-18  Simon Josefsson  <simon@josefsson.org>
23961
23962         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
23963         G. Christensen" <tgc@jupiterrise.com>.
23964
23965         * lib/flock.c: Need to include errno.h.  Reported by "Tom
23966         G. Christensen" <tgc@jupiterrise.com>.
23967
23968         * lib/flock.c: Need to include string.h.  Reported by "Tom
23969         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
23970         <ebb9@byu.net>.
23971
23972 2008-12-18  Bruno Haible  <bruno@clisp.org>
23973
23974         * m4/locale-ja.m4: New file, from GNU gettext.
23975
23976 2008-12-17  Bruno Haible  <bruno@clisp.org>
23977
23978         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
23979         Suggested by Eric Blake.
23980
23981 2008-12-17  Bruno Haible  <bruno@clisp.org>
23982
23983         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
23984
23985 2008-12-17  Bruno Haible  <bruno@clisp.org>
23986
23987         * lib/mbsinit.c: Include verify.h. Verify an assumption.
23988         * modules/mbsinit (Depends-on): Add verify.
23989         Suggested by Paul Eggert.
23990
23991 2008-12-17  Bruno Haible  <bruno@clisp.org>
23992
23993         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
23994         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
23995         gl_FUNC_MBRTOWC.
23996         * m4/mbiter.m4 (gl_MBITER): LIkewise.
23997         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
23998         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
23999         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
24000         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
24001         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
24002         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
24003         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
24004         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
24005         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
24006         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
24007         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
24008         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
24009         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
24010         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
24011         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
24012         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
24013         * modules/trim (configure.ac): Likewise.
24014
24015 2008-12-17  Bruno Haible  <bruno@clisp.org>
24016
24017         * modules/btowc-tests: New file.
24018         * tests/test-btowc1.sh: New file.
24019         * tests/test-btowc2.sh: New file.
24020         * tests/test-btowc.c: New file.
24021
24022         New module 'btowc'.
24023         * lib/wchar.in.h (btowc): New declaration.
24024         * lib/btowc.c: New file.
24025         * m4/btowc.m4: New file.
24026         * modules/btowc: New file.
24027         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
24028         HAVE_BTOWC.
24029         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
24030         * doc/posix-functions/btowc.texi: Document the new module.
24031
24032 2008-12-17  Bruno Haible  <bruno@clisp.org>
24033
24034         New module 'mbsinit'.
24035         * lib/wchar.in.h (mbsinit): New declaration.
24036         * lib/mbsinit.c: New file.
24037         * m4/mbsinit.m4: New file.
24038         * modules/mbsinit: New file.
24039         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
24040         HAVE_MBSINIT.
24041         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
24042         HAVE_MBSINIT.
24043         * doc/posix-functions/mbsinit.texi: Document the new module.
24044
24045 2008-12-16  Bruno Haible  <bruno@clisp.org>
24046
24047         * lib/unistd.in.h: Add comment.
24048         * tests/test-environ.c: Don't include <stdlib.h>.
24049
24050 2008-12-16  Bruno Haible  <bruno@clisp.org>
24051
24052         * lib/parse-duration.h (parse_duration): Document return value
24053         convention.
24054         * lib/parse-duration.c: Include specification header first. Add
24055         comments.
24056         (_): Remove macro.
24057         (parse_year_month_day, parse_hour_minute_second): Move side effects
24058         outside of strchr call.
24059         (parse_non_iso8601): Move side effects outside of isspace call.
24060         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
24061         call.
24062
24063 2008-12-16  Bruno Haible  <bruno@clisp.org>
24064
24065         * tests/test-parse-duration.sh: Produce no output when the test
24066         succeeds.
24067
24068 2008-12-16  Bruno Haible  <bruno@clisp.org>
24069
24070         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
24071         expressions.
24072
24073 2008-12-15  Bruno Haible  <bruno@clisp.org>
24074
24075         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
24076         * doc/glibc-functions/flistxattr.texi: Likewise.
24077         * doc/glibc-functions/fopencookie.texi: Likewise.
24078         * doc/glibc-functions/fremovexattr.texi: Likewise.
24079         * doc/glibc-functions/fsetxattr.texi: Likewise.
24080         * doc/glibc-functions/getxattr.texi: Likewise.
24081         * doc/glibc-functions/lgetxattr.texi: Likewise.
24082         * doc/glibc-functions/listxattr.texi: Likewise.
24083         * doc/glibc-functions/llistxattr.texi: Likewise.
24084         * doc/glibc-functions/lremovexattr.texi: Likewise.
24085         * doc/glibc-functions/lsetxattr.texi: Likewise.
24086         * doc/glibc-functions/removexattr.texi: Likewise.
24087         * doc/glibc-functions/setxattr.texi: Likewise.
24088         * doc/posix-functions/open_memstream.texi: Likewise.
24089
24090 2008-12-15  Eric Blake  <ebb9@byu.net>
24091
24092         Update doc for cygwin 1.7.
24093         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
24094         functions.
24095         * doc/posix-functions/fchmodat.texi: Likewise.
24096         * doc/posix-functions/fchownat.texi: Likewise.
24097         * doc/posix-functions/fdopendir.texi: Likewise.
24098         * doc/posix-functions/fmemopen.texi: Likewise.
24099         * doc/posix-functions/freeaddrinfo.texi: Likewise.
24100         * doc/posix-functions/fstatat.texi: Likewise.
24101         * doc/posix-functions/futimens.texi: Likewise.
24102         * doc/posix-functions/gai_strerror.texi: Likewise.
24103         * doc/posix-functions/getaddrinfo.texi: Likewise.
24104         * doc/posix-functions/getnameinfo.texi: Likewise.
24105         * doc/posix-functions/if_freenameindex.texi: Likewise.
24106         * doc/posix-functions/if_indextoname.texi: Likewise.
24107         * doc/posix-functions/if_nameindex.texi: Likewise.
24108         * doc/posix-functions/if_nametoindex.texi: Likewise.
24109         * doc/posix-functions/insque.texi: Likewise.
24110         * doc/posix-functions/linkat.texi: Likewise.
24111         * doc/posix-functions/llrint.texi: Likewise.
24112         * doc/posix-functions/llrintf.texi: Likewise.
24113         * doc/posix-functions/llrintl.texi: Likewise.
24114         * doc/posix-functions/lockf.texi: Likewise.
24115         * doc/posix-functions/lrintl.texi: Likewise.
24116         * doc/posix-functions/mkdirat.texi: Likewise.
24117         * doc/posix-functions/mkfifoat.texi: Likewise.
24118         * doc/posix-functions/mknodat.texi: Likewise.
24119         * doc/posix-functions/mq_close.texi: Likewise.
24120         * doc/posix-functions/mq_getattr.texi: Likewise.
24121         * doc/posix-functions/mq_notify.texi: Likewise.
24122         * doc/posix-functions/mq_open.texi: Likewise.
24123         * doc/posix-functions/mq_receive.texi: Likewise.
24124         * doc/posix-functions/mq_send.texi: Likewise.
24125         * doc/posix-functions/mq_setattr.texi: Likewise.
24126         * doc/posix-functions/mq_timedreceive.texi: Likewise.
24127         * doc/posix-functions/mq_timedsend.texi: Likewise.
24128         * doc/posix-functions/mq_unlink.texi: Likewise.
24129         * doc/posix-functions/open_memstream.texi: Likewise.
24130         * doc/posix-functions/openat.texi: Likewise.
24131         * doc/posix-functions/posix_fadvise.texi: Likewise.
24132         * doc/posix-functions/posix_fallocate.texi: Likewise.
24133         * doc/posix-functions/posix_madvise.texi: Likewise.
24134         * doc/posix-functions/posix_memalign.texi: Likewise.
24135         * doc/posix-functions/posix_openpt.texi: Likewise.
24136         * doc/posix-functions/readlinkat.texi: Likewise.
24137         * doc/posix-functions/remque.texi: Likewise.
24138         * doc/posix-functions/renameat.texi: Likewise.
24139         * doc/posix-functions/rintl.texi: Likewise.
24140         * doc/posix-functions/sem_unlink.texi: Likewise.
24141         * doc/posix-functions/shm_open.texi: Likewise.
24142         * doc/posix-functions/shm_unlink.texi: Likewise.
24143         * doc/posix-functions/signgam.texi: Likewise.
24144         * doc/posix-functions/sigset.texi: Likewise.
24145         * doc/posix-functions/stpcpy.texi: Likewise.
24146         * doc/posix-functions/stpncpy.texi: Likewise.
24147         * doc/posix-functions/strerror.texi: Likewise.
24148         * doc/posix-functions/strtod.texi: Likewise.
24149         * doc/posix-functions/symlinkat.texi: Likewise.
24150         * doc/posix-functions/unlinkat.texi: Likewise.
24151         * doc/posix-functions/utimensat.texi: Likewise.
24152         * doc/glibc-functions/bindresvport.texi: Likewise.
24153         * doc/glibc-functions/dn_expand.texi: Likewise.
24154         * doc/glibc-functions/exp10.texi: Likewise.
24155         * doc/glibc-functions/exp10f.texi: Likewise.
24156         * doc/glibc-functions/fgetxattr.texi: Likewise.
24157         * doc/glibc-functions/flistxattr.texi: Likewise.
24158         * doc/glibc-functions/fopencookie.texi: Likewise.
24159         * doc/glibc-functions/freeifaddrs.texi: Likewise.
24160         * doc/glibc-functions/fremovexattr.texi: Likewise.
24161         * doc/glibc-functions/fsetxattr.texi: Likewise.
24162         * doc/glibc-functions/getifaddrs.texi: Likewise.
24163         * doc/glibc-functions/getxattr.texi: Likewise.
24164         * doc/glibc-functions/lgetxattr.texi: Likewise.
24165         * doc/glibc-functions/listxattr.texi: Likewise.
24166         * doc/glibc-functions/llistxattr.texi: Likewise.
24167         * doc/glibc-functions/lremovexattr.texi: Likewise.
24168         * doc/glibc-functions/lsetxattr.texi: Likewise.
24169         * doc/glibc-functions/pow10.texi: Likewise.
24170         * doc/glibc-functions/pow10f.texi: Likewise.
24171         * doc/glibc-functions/rcmd_af.texi: Likewise.
24172         * doc/glibc-functions/removexattr.texi: Likewise.
24173         * doc/glibc-functions/res_init.texi: Likewise.
24174         * doc/glibc-functions/res_mkquery.texi: Likewise.
24175         * doc/glibc-functions/res_query.texi: Likewise.
24176         * doc/glibc-functions/res_querydomain.texi: Likewise.
24177         * doc/glibc-functions/res_send.texi: Likewise.
24178         * doc/glibc-functions/rresvport_af.texi: Likewise.
24179         * doc/glibc-functions/setxattr.texi: Likewise.
24180         * doc/glibc-functions/strcasestr.texi: Likewise.
24181
24182 2008-12-15  Bruno Haible  <bruno@clisp.org>
24183
24184         Fix compilation error on OSF/1 4.0.
24185         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
24186         <sys/time.h>, simply delegate to the system header.
24187         Reported by Daniel Richard G. <oss@teragram.com>.
24188
24189 2008-12-15  Bruno Haible  <bruno@clisp.org>
24190
24191         * doc/posix-functions/openat.texi: Mention the 'openat' module.
24192         * doc/posix-functions/fchmodat.texi: Likewise.
24193         * doc/posix-functions/fchownat.texi: Likewise.
24194         * doc/posix-functions/fdopendir.texi: Likewise.
24195         * doc/posix-functions/fstatat.texi: Likewise.
24196         * doc/posix-functions/mkdirat.texi: Likewise.
24197         * doc/posix-functions/unlinkat.texi: Likewise.
24198
24199 2008-12-14  Bruno Haible  <bruno@clisp.org>
24200
24201         Update doc for POSIX:2008.
24202         * doc/posix-functions/faccessat.texi: New file.
24203         * doc/posix-functions/fchmodat.texi: New file.
24204         * doc/posix-functions/fchownat.texi: New file.
24205         * doc/posix-functions/fdopendir.texi: New file.
24206         * doc/posix-functions/fstatat.texi: New file.
24207         * doc/posix-functions/futimens.texi: New file.
24208         * doc/posix-functions/linkat.texi: New file.
24209         * doc/posix-functions/mkdirat.texi: New file.
24210         * doc/posix-functions/mkfifoat.texi: New file.
24211         * doc/posix-functions/mknodat.texi: New file.
24212         * doc/posix-functions/open_wmemstream.texi: New file.
24213         * doc/posix-functions/openat.texi: New file.
24214         * doc/posix-functions/psiginfo.texi: New file.
24215         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
24216         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
24217         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
24218         * doc/posix-functions/readlinkat.texi: New file.
24219         * doc/posix-functions/renameat.texi: New file.
24220         * doc/posix-functions/strerror_l.texi: New file.
24221         * doc/posix-functions/symlinkat.texi: New file.
24222         * doc/posix-functions/unlinkat.texi: New file.
24223         * doc/posix-functions/utimensat.texi: New file.
24224         * doc/gnulib.texi (Function Substitutes): Add these subsections.
24225
24226 2008-12-14  Bruno Haible  <bruno@clisp.org>
24227
24228         Update doc for POSIX:2008.
24229         * doc/posix-functions/alphasort.texi: Renamed from
24230         doc/glibc-functions/alphasort.texi.
24231         * doc/posix-functions/dirfd.texi: Renamed from
24232         doc/glibc-functions/dirfd.texi.
24233         * doc/posix-functions/dprintf.texi: Renamed from
24234         doc/glibc-functions/dprintf.texi.
24235         * doc/posix-functions/duplocale.texi: Renamed from
24236         doc/glibc-functions/duplocale.texi.
24237         * doc/posix-functions/fexecve.texi: Renamed from
24238         doc/glibc-functions/fexecve.texi.
24239         * doc/posix-functions/fmemopen.texi: Renamed from
24240         doc/glibc-functions/fmemopen.texi.
24241         * doc/posix-functions/freelocale.texi: Renamed from
24242         doc/glibc-functions/freelocale.texi.
24243         * doc/posix-functions/getdate_err.texi: Renamed from
24244         doc/glibc-functions/getdate_err.texi.
24245         * doc/posix-functions/isalnum_l.texi: Renamed from
24246         doc/glibc-functions/isalnum_l.texi.
24247         * doc/posix-functions/isalpha_l.texi: Renamed from
24248         doc/glibc-functions/isalpha_l.texi.
24249         * doc/posix-functions/isblank_l.texi: Renamed from
24250         doc/glibc-functions/isblank_l.texi.
24251         * doc/posix-functions/iscntrl_l.texi: Renamed from
24252         doc/glibc-functions/iscntrl_l.texi.
24253         * doc/posix-functions/isdigit_l.texi: Renamed from
24254         doc/glibc-functions/isdigit_l.texi.
24255         * doc/posix-functions/isgraph_l.texi: Renamed from
24256         doc/glibc-functions/isgraph_l.texi.
24257         * doc/posix-functions/islower_l.texi: Renamed from
24258         doc/glibc-functions/islower_l.texi.
24259         * doc/posix-functions/isprint_l.texi: Renamed from
24260         doc/glibc-functions/isprint_l.texi.
24261         * doc/posix-functions/ispunct_l.texi: Renamed from
24262         doc/glibc-functions/ispunct_l.texi.
24263         * doc/posix-functions/isspace_l.texi: Renamed from
24264         doc/glibc-functions/isspace_l.texi.
24265         * doc/posix-functions/isupper_l.texi: Renamed from
24266         doc/glibc-functions/isupper_l.texi.
24267         * doc/posix-functions/iswalnum_l.texi: Renamed from
24268         doc/glibc-functions/iswalnum_l.texi.
24269         * doc/posix-functions/iswalpha_l.texi: Renamed from
24270         doc/glibc-functions/iswalpha_l.texi.
24271         * doc/posix-functions/iswblank_l.texi: Renamed from
24272         doc/glibc-functions/iswblank_l.texi.
24273         * doc/posix-functions/iswcntrl_l.texi: Renamed from
24274         doc/glibc-functions/iswcntrl_l.texi.
24275         * doc/posix-functions/iswctype_l.texi: Renamed from
24276         doc/glibc-functions/iswctype_l.texi.
24277         * doc/posix-functions/iswdigit_l.texi: Renamed from
24278         doc/glibc-functions/iswdigit_l.texi.
24279         * doc/posix-functions/iswgraph_l.texi: Renamed from
24280         doc/glibc-functions/iswgraph_l.texi.
24281         * doc/posix-functions/iswlower_l.texi: Renamed from
24282         doc/glibc-functions/iswlower_l.texi.
24283         * doc/posix-functions/iswprint_l.texi: Renamed from
24284         doc/glibc-functions/iswprint_l.texi.
24285         * doc/posix-functions/iswpunct_l.texi: Renamed from
24286         doc/glibc-functions/iswpunct_l.texi.
24287         * doc/posix-functions/iswspace_l.texi: Renamed from
24288         doc/glibc-functions/iswspace_l.texi.
24289         * doc/posix-functions/iswupper_l.texi: Renamed from
24290         doc/glibc-functions/iswupper_l.texi.
24291         * doc/posix-functions/iswxdigit_l.texi: Renamed from
24292         doc/glibc-functions/iswxdigit_l.texi.
24293         * doc/posix-functions/isxdigit_l.texi: Renamed from
24294         doc/glibc-functions/isxdigit_l.texi.
24295         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
24296         doc/glibc-functions/mbsnrtowcs.texi.
24297         * doc/posix-functions/mkdtemp.texi: Renamed from
24298         doc/glibc-functions/mkdtemp.texi.
24299         * doc/posix-functions/newlocale.texi: Renamed from
24300         doc/glibc-functions/newlocale.texi.
24301         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
24302         doc/glibc-functions/nl_langinfo_l.texi.
24303         * doc/posix-functions/open_memstream.texi: Renamed from
24304         doc/glibc-functions/open_memstream.texi.
24305         * doc/posix-functions/opterr.texi: Renamed from
24306         doc/glibc-functions/opterr.texi.
24307         * doc/posix-functions/optind.texi: Renamed from
24308         doc/glibc-functions/optind.texi.
24309         * doc/posix-functions/optopt.texi: Renamed from
24310         doc/glibc-functions/optopt.texi.
24311         * doc/posix-functions/psignal.texi: Renamed from
24312         doc/glibc-functions/psignal.texi.
24313         * doc/posix-functions/scandir.texi: Renamed from
24314         doc/glibc-functions/scandir.texi.
24315         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
24316         doc/glibc-functions/sched_get_priority_min.texi.
24317         * doc/posix-functions/signgam.texi: Renamed from
24318         doc/glibc-functions/signgam.texi.
24319         * doc/posix-functions/stpcpy.texi: Renamed from
24320         doc/glibc-functions/stpcpy.texi.
24321         * doc/posix-functions/stpncpy.texi: Renamed from
24322         doc/glibc-functions/stpncpy.texi.
24323         * doc/posix-functions/strcasecmp_l.texi: Renamed from
24324         doc/glibc-functions/strcasecmp_l.texi.
24325         * doc/posix-functions/strcoll_l.texi: Renamed from
24326         doc/glibc-functions/strcoll_l.texi.
24327         * doc/posix-functions/strfmon_l.texi: Renamed from
24328         doc/glibc-functions/strfmon_l.texi.
24329         * doc/posix-functions/strftime_l.texi: Renamed from
24330         doc/glibc-functions/strftime_l.texi.
24331         * doc/posix-functions/strncasecmp_l.texi: Renamed from
24332         doc/glibc-functions/strncasecmp_l.texi.
24333         * doc/posix-functions/strndup.texi: Renamed from
24334         doc/glibc-functions/strndup.texi.
24335         * doc/posix-functions/strnlen.texi: Renamed from
24336         doc/glibc-functions/strnlen.texi.
24337         * doc/posix-functions/strsignal.texi: Renamed from
24338         doc/glibc-functions/strsignal.texi.
24339         * doc/posix-functions/strxfrm_l.texi: Renamed from
24340         doc/glibc-functions/strxfrm_l.texi.
24341         * doc/posix-functions/timer_gettime.texi: Renamed from
24342         doc/glibc-functions/timer_gettime.texi.
24343         * doc/posix-functions/tolower_l.texi: Renamed from
24344         doc/glibc-functions/tolower_l.texi.
24345         * doc/posix-functions/toupper_l.texi: Renamed from
24346         doc/glibc-functions/toupper_l.texi.
24347         * doc/posix-functions/towctrans_l.texi: Renamed from
24348         doc/glibc-functions/towctrans_l.texi.
24349         * doc/posix-functions/towlower_l.texi: Renamed from
24350         doc/glibc-functions/towlower_l.texi.
24351         * doc/posix-functions/towupper_l.texi: Renamed from
24352         doc/glibc-functions/towupper_l.texi.
24353         * doc/posix-functions/uselocale.texi: Renamed from
24354         doc/glibc-functions/uselocale.texi.
24355         * doc/posix-functions/vdprintf.texi: Renamed from
24356         doc/glibc-functions/vdprintf.texi.
24357         * doc/posix-functions/wcpcpy.texi:
24358         Renamed from doc/glibc-functions/wcpcpy.texi.
24359         * doc/posix-functions/wcpncpy.texi: Renamed from
24360         doc/glibc-functions/wcpncpy.texi.
24361         * doc/posix-functions/wcscasecmp.texi: Renamed from
24362         doc/glibc-functions/wcscasecmp.texi.
24363         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
24364         doc/glibc-functions/wcscasecmp_l.texi.
24365         * doc/posix-functions/wcscoll_l.texi: Renamed from
24366         doc/glibc-functions/wcscoll_l.texi.
24367         * doc/posix-functions/wcsdup.texi: Renamed from
24368         doc/glibc-functions/wcsdup.texi.
24369         * doc/posix-functions/wcsncasecmp.texi: Renamed from
24370         doc/glibc-functions/wcsncasecmp.texi.
24371         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
24372         doc/glibc-functions/wcsncasecmp_l.texi.
24373         * doc/posix-functions/wcsnlen.texi: Renamed from
24374         doc/glibc-functions/wcsnlen.texi.
24375         * doc/posix-functions/wcsnrtombs.texi: Renamed from
24376         doc/glibc-functions/wcsnrtombs.texi.
24377         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
24378         doc/glibc-functions/wcsxfrm_l.texi.
24379         * doc/posix-functions/wctrans_l.texi: Renamed from
24380         doc/glibc-functions/wctrans_l.texi.
24381         * doc/posix-functions/wctype_l.texi: Renamed from
24382         doc/glibc-functions/wctype_l.texi.
24383         * doc/gnulib.texi (Function Substitutes): Add these subsections.
24384         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
24385         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
24386         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
24387         these subsections.
24388         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
24389         Remove sections.
24390
24391 2008-12-14  Bruno Haible  <bruno@clisp.org>
24392
24393         Update doc for POSIX:2008.
24394         * doc/posix-functions/*.texi: Update URL of POSIX specification.
24395
24396 2008-12-14  Bruno Haible  <bruno@clisp.org>
24397
24398         Update doc for POSIX:2008.
24399         * doc/pastposix-functions/bcmp.texi: Renamed from
24400         doc/posix-functions/bcmp.texi.
24401         * doc/pastposix-functions/bcopy.texi: Renamed from
24402         doc/posix-functions/bcopy.texi.
24403         * doc/pastposix-functions/bsd_signal.texi: Renamed from
24404         doc/posix-functions/bsd_signal.texi.
24405         * doc/pastposix-functions/bzero.texi: Renamed from
24406         doc/posix-functions/bzero.texi.
24407         * doc/pastposix-functions/ecvt.texi: Renamed from
24408         doc/posix-functions/ecvt.texi.
24409         * doc/pastposix-functions/fcvt.texi: Renamed from
24410         doc/posix-functions/fcvt.texi.
24411         * doc/pastposix-functions/ftime.texi: Renamed from
24412         doc/posix-functions/ftime.texi.
24413         * doc/pastposix-functions/gcvt.texi: Renamed from
24414         doc/posix-functions/gcvt.texi.
24415         * doc/pastposix-functions/getcontext.texi: Renamed from
24416         doc/posix-functions/getcontext.texi.
24417         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
24418         doc/posix-functions/gethostbyaddr.texi.
24419         * doc/pastposix-functions/gethostbyname.texi: Renamed from
24420         doc/posix-functions/gethostbyname.texi.
24421         * doc/pastposix-functions/getwd.texi: Renamed from
24422         doc/posix-functions/getwd.texi.
24423         * doc/pastposix-functions/h_errno.texi: Renamed from
24424         doc/posix-functions/h_errno.texi.
24425         * doc/pastposix-functions/index.texi: Renamed from
24426         doc/posix-functions/index.texi.
24427         * doc/pastposix-functions/makecontext.texi: Renamed from
24428         doc/posix-functions/makecontext.texi.
24429         * doc/pastposix-functions/mktemp.texi: Renamed from
24430         doc/posix-functions/mktemp.texi.
24431         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
24432         doc/posix-functions/pthread_attr_getstackaddr.texi.
24433         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
24434         doc/posix-functions/pthread_attr_setstackaddr.texi.
24435         * doc/pastposix-functions/rindex.texi: Renamed from
24436         doc/posix-functions/rindex.texi.
24437         * doc/pastposix-functions/scalb.texi: Renamed from
24438         doc/posix-functions/scalb.texi.
24439         * doc/pastposix-functions/setcontext.texi: Renamed from
24440         doc/posix-functions/setcontext.texi.
24441         * doc/pastposix-functions/swapcontext.texi: Renamed from
24442         doc/posix-functions/swapcontext.texi.
24443         * doc/pastposix-functions/ualarm.texi: Renamed from
24444         doc/posix-functions/ualarm.texi.
24445         * doc/pastposix-functions/usleep.texi: Renamed from
24446         doc/posix-functions/usleep.texi.
24447         * doc/pastposix-functions/vfork.texi: Renamed from
24448         doc/posix-functions/vfork.texi.
24449         * doc/pastposix-functions/wcswcs.texi: Renamed from
24450         doc/posix-functions/wcswcs.texi.
24451         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
24452         (Function Substitutes): Update.
24453
24454 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24455
24456         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
24457         m4/strerror.m4.
24458
24459 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24460             Bruno Haible  <bruno@clisp.org>
24461
24462         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
24463
24464 2008-12-13  Bruno Haible  <bruno@clisp.org>
24465
24466         * modules/strtoull (Depends-on): Remove unistd.
24467
24468 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24469
24470         * modules/strtoull (Depends-on): Add stdlib.
24471
24472 2008-12-11  Simon Josefsson  <simon@josefsson.org>
24473
24474         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
24475
24476 2008-12-10  Jim Meyering  <meyering@redhat.com>
24477
24478         gl_ASSERT: don't say assertions are disabled when they're not
24479         * m4/assert.m4 (gl_ASSERT): Do not make configure report
24480         "checking whether to enable assertions... no", when they are in
24481         fact enabled.  This is solely a bug in the output of configure.
24482         In spite of saying "no", NDEBUG was not defined in that case.
24483         Also, as noted by Eric Blake, leave assertions enabled upon
24484         --enable-assert=INVALID.
24485
24486 2008-12-10  Bruno Haible  <bruno@clisp.org>
24487
24488         Change MODULES.html to refer to POSIX:2008 where possible.
24489         * MODULES.html.sh (POSIX2008_URL): New variable.
24490         (posix_headers): Remove sys/timeb, ucontext.
24491         (posix2001_headers): New variable.
24492         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
24493         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
24494         index, makecontext, mktemp, pthread_attr_getstackaddr,
24495         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
24496         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
24497         (posix2001_functions): New variable.
24498         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
24499         otherwise.
24500
24501 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24502
24503         add missing include to parse-duration.c
24504         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
24505         * modules/parse-duration (Depends-on): Add xalloc.
24506
24507         fix sed script reading maint.mk
24508         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
24509         (syntax-check-rules): Use it.
24510
24511 2008-12-09  Bruno Haible  <bruno@clisp.org>
24512
24513         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
24514         MacOS X 10.4/PowerPC.
24515         Reported by Simon Josefsson.
24516
24517 2008-12-08  Jim Meyering  <meyering@redhat.com>
24518
24519         work around mingw's lack of some S_IF definitions
24520         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
24521         Reported by Simon Josefsson.
24522
24523 2008-12-08  Bruno Haible  <bruno@clisp.org>
24524
24525         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
24526         applied to variables. Needed on MacOS X 10.4/PowerPC.
24527         Reported by Simon Josefsson.
24528
24529 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
24530         and Eric Blake  <ebb9@byu.net>
24531
24532         assert: honor --enable-assert
24533         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
24534         order to honor --enable-assert, rather than treating it as a
24535         synonym for --disable-assert.
24536
24537 2008-12-08  Jim Meyering  <meyering@redhat.com>
24538
24539         * lib/posixtm.c: Remove now-useless declaration of mktime.
24540
24541         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
24542
24543 2008-12-07  Bruno Haible  <bruno@clisp.org>
24544
24545         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
24546         test_once): Mark functions as static.
24547         * tests/test-tls.c (test_tls): Likewise.
24548
24549 2008-12-07  Bruno Haible  <bruno@clisp.org>
24550
24551         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
24552         iconv_register_autodetect.
24553
24554 2008-12-07  Jim Meyering  <meyering@redhat.com>
24555
24556         posixtm.c: avoid a warning
24557         * lib/posixtm.c (posixtime): Don't initialize tm0.
24558         It's no longer needed to placate gcc4's -Wuninitialized,
24559         and the attempt to placate would elicit a new warning.
24560
24561         unicodeio.c: mark unused parameters
24562         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
24563         (fallback_failure_callback): Likewise.
24564
24565 2008-12-07  Bruno Haible  <bruno@clisp.org>
24566
24567         * gnulib-tool (func_create_testdir): When building the tests
24568         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
24569         Reported by Simon Josefsson.
24570
24571 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24572
24573         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
24574
24575 2008-12-06  Bruno Haible  <bruno@clisp.org>
24576
24577         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
24578         Suggested by Eric Blake.
24579
24580 2008-12-06  Bruno Haible  <bruno@clisp.org>
24581
24582         Fix a c-stack test failure on MacOS X.
24583         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
24584         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
24585         handler for SIGBUS as well.
24586         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
24587         install a signal handler for SIGBUS as well.
24588         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
24589
24590 2008-12-06  Bruno Haible  <bruno@clisp.org>
24591
24592         Advocacy documentation.
24593         * doc/gnulib-intro.texi (Benefits): New section.
24594         * doc/gnulib.texi: Update.
24595
24596 2008-12-06  Bruno Haible  <bruno@clisp.org>
24597
24598         Document the 'manywarnings' module.
24599         * doc/manywarnings.texi: New file.
24600         * doc/gnulib.texi: Include it.
24601
24602 2008-12-05  Eric Blake  <ebb9@byu.net>
24603
24604         tests: silence some gcc warnings
24605         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
24606         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
24607         type mismatches.
24608
24609 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24610             Bruno Haible  <bruno@clisp.org>
24611
24612         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
24613
24614 2008-11-29  Jim Meyering  <meyering@redhat.com>
24615
24616         unicodeio.c: mark unused parameters
24617         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
24618         (fallback_failure_callback): Likewise.
24619
24620         fts: fix a thinko
24621         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
24622         (set_stat_type): Return S_IF*-valued "type" directly.
24623         Prompted by James Youngman's spotting a related bug.
24624         Confirmed by further testing through find.
24625
24626         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
24627         * lib/fts.c (D_TYPE): Define.
24628         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
24629         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
24630         (s_ifmt_shift_bits): New function.
24631         (set_stat_type): New function.
24632         (fts_build): When not calling fts_stat, call set_stat_type
24633         to propagate dirent.d_type info to fts_read caller.
24634         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
24635         fts_statp->st_mode type information may be valid.
24636
24637 2008-11-28  Simon Josefsson  <simon@josefsson.org>
24638
24639         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
24640         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
24641         <sds@gnu.org>.
24642
24643 2008-11-20  Bruno Haible  <bruno@clisp.org>
24644
24645         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
24646         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
24647         INCLUDE_NEXT.
24648         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
24649         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
24650         * modules/math (Makefile.am): Substitute
24651         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
24652         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
24653
24654 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
24655             Bruno Haible  <bruno@clisp.org>
24656
24657         * lib/stdint.in.h: Define all type macros so that their expansion is
24658         a single typedef'ed token. Fixes a compilation failure in Boost which
24659         does "using ::int8_t;".
24660
24661 2008-11-18  Simon Josefsson  <simon@josefsson.org>
24662
24663         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
24664         gl_MANYWARN_ALL_GCC.
24665         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
24666         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
24667         * modules/manywarnings: New file.
24668         * MODULES.html.sh: Mention manywarnings module.
24669
24670 2008-11-18  Bruno Haible  <bruno@clisp.org>
24671
24672         * doc/gnulib-tool.texi (Unit tests): New section.
24673
24674 2008-11-18  Simon Josefsson  <simon@josefsson.org>
24675
24676         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
24677         paths like 'lib/po/foo.po'.
24678
24679 2008-11-17  Simon Josefsson  <simon@josefsson.org>
24680
24681         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
24682         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
24683
24684 2008-11-17  Simon Josefsson  <simon@josefsson.org>
24685
24686         * m4/warnings.m4: Use CPPFLAGS to really check whether the
24687         parameter works.
24688
24689 2008-11-17  Simon Josefsson  <simon@josefsson.org>
24690
24691         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
24692
24693 2008-11-17  Bruce Korb  <bkorb@gnu.org>
24694
24695         * modules/parse-duration-tests: New file.
24696         * tests/test-parse-duration.sh: New file.
24697         * tests/test-parse-duration.c: New file.
24698
24699         New module 'parse-duration'.
24700         * lib/parse-duration.h: New file.
24701         * lib/parse-duration.c: New file.
24702         * modules/parse-duration: New file.
24703
24704 2008-11-17  Bruno Haible  <bruno@clisp.org>
24705
24706         * tests/test-select-out.sh: Comment out the first pipe test.
24707         Reported by Simon Josefsson.
24708
24709 2008-11-17  Bruno Haible  <bruno@clisp.org>
24710
24711         * modules/getaddrinfo (Depends-on): Add servent, hostent.
24712         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
24713         gl_HOSTENT.
24714
24715 2008-11-17  Bruno Haible  <bruno@clisp.org>
24716
24717         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
24718         -lnetwork and -lnet. Needed for Haiku and BeOS.
24719
24720 2008-11-16  Bruno Haible  <bruno@clisp.org>
24721
24722         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
24723
24724 2008-11-16  Bruno Haible  <bruno@clisp.org>
24725
24726         Avoid test failure on Haiku.
24727         * tests/test-fsync.c: Include <errno.h>.
24728         (main): Don't require that fsync (0) fails.
24729
24730 2008-11-15  Bruno Haible  <bruno@clisp.org>
24731
24732         New module 'hostent'.
24733         * modules/hostent: New file.
24734         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
24735
24736 2008-11-15  Bruno Haible  <bruno@clisp.org>
24737
24738         New module 'servent'.
24739         * modules/servent: New file.
24740         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
24741
24742 2008-11-15  Bruno Haible  <bruno@clisp.org>
24743
24744         Avoid generating same test program with two different rules.
24745         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
24746         test-frexp to test-frexp-nolibm.
24747         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
24748         test-frexpl to test-frexpl-nolibm.
24749
24750 2008-11-15  Bruno Haible  <bruno@clisp.org>
24751
24752         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
24753         $(FREXPL_LIBM).
24754
24755 2008-11-15  Bruno Haible  <bruno@clisp.org>
24756
24757         * lib/netdb.in.h: Activate the definitions also when the system's
24758         <netdb.h> has 'struct addrinfo'.
24759         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
24760         EAI_OVERFLOW or AI_NUMERICSERV.
24761         * doc/posix-headers/netdb.texi: Document the problem.
24762
24763 2008-11-15  Bruno Haible  <bruno@clisp.org>
24764
24765         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
24766
24767         Make the 'sched' module work on platforms where <sched.h> exists but
24768         is incomplete (such as Haiku).
24769         * lib/sched.in.h; Include the system's <sched.h> if it exists.
24770         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
24771         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
24772         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
24773         HAVE_STRUCT_SCHED_PARAM.
24774         * modules/sched (Depends-on): Add include_next.
24775         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
24776         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
24777         * doc/posix-headers/sched.texi: Document the issue.
24778
24779 2008-11-13  Jim Meyering  <meyering@redhat.com>
24780
24781         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
24782         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
24783         test would fail due to the difference in the Report bugs to ...
24784         line.  The expected address is empty, "<>", while the actual
24785         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
24786
24787 2008-11-12  Bruno Haible  <bruno@clisp.org>
24788
24789         lstat: don't compile lstat.c on systems lacking lstat
24790         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
24791         which don't have lstat; this is handled by lib/sys_stat.in.h already.
24792         Reported by Daniel P. Berrange via Jim Meyering.
24793
24794 2008-11-12  Jim Meyering  <meyering@redhat.com>
24795
24796         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
24797
24798 2008-11-12  Simon Josefsson  <simon@josefsson.org>
24799
24800         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
24801         instead.
24802
24803 2008-11-12  Bruno Haible  <bruno@clisp.org>
24804
24805         * lib/unicodeio.c: Include unistr.h.
24806         (utf8_wctomb): Remove function.
24807         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
24808
24809 2008-11-12  Simon Josefsson  <simon@josefsson.org>
24810
24811         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
24812         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
24813         <bruno@clisp.org>.
24814         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
24815
24816 2008-11-12  Simon Josefsson  <simon@josefsson.org>
24817
24818         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
24819         * doc/gnulib.texi: Add section for warnings.
24820
24821 2008-11-11  Bruno Haible  <bruno@clisp.org>
24822
24823         * lib/sockets.h: Add a comment.
24824
24825 2008-11-11  Karl Berry  <karl@gnu.org>
24826
24827         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
24828
24829 2008-11-11  Eric Blake  <ebb9@byu.net>
24830
24831         fdl.texi: avoid git symlinks
24832         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
24833
24834 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
24835
24836         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
24837
24838 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
24839
24840         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
24841         (gl_WARN_ADD): Substitute $2 if literal.
24842
24843 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
24844
24845         * m4/warning.m4: Remove.
24846
24847 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
24848
24849         * m4/warnings.m4: Almost complete rewrite. :-)
24850
24851 2008-11-10  Simon Josefsson  <simon@josefsson.org>
24852
24853         * modules/warnings: New module.
24854         * m4/warnings.m4: New file.
24855         * MODULES.html.sh: Mention warnings module.
24856         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
24857         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24858
24859 2008-11-10  Eric Blake  <ebb9@byu.net>
24860
24861         fdl.texi: make a symlink to the latest version
24862         * doc/standards.texi: Revert today's earlier change.
24863         * doc/fdl-1.2.texi: Rename from old fdl.texi...
24864         * doc/fdl.texi: ...and replace this with a symlink to the newer
24865         fdl-1.3.texi.
24866
24867 2008-11-10  Bruno Haible  <bruno@clisp.org>
24868
24869         * tests/test-select-fd.c (main): Accept the result file name as fourth
24870         argument.
24871         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
24872         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
24873
24874 2008-11-10  Bruno Haible  <bruno@clisp.org>
24875
24876         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
24877         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
24878         as autoconf-substituted macros.
24879         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
24880         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
24881         gl_NETDB_H_DEFAULTS. Set these variables.
24882         * modules/netdb (Makefile.am): Substitute these variables.
24883
24884 2008-11-10  Eric Blake  <ebb9@byu.net>
24885
24886         standards.texi: include correct file for FDL 1.3
24887         * doc/standards.texi (GNU Free Documentation License): Change
24888         include file to pull in FDL 1.3, not 1.2.
24889
24890         fdl.texi: revert accidental change to license
24891         * doc/fdl.texi: This is FDL 1.2, not 1.3.
24892
24893 2008-11-10  Bruno Haible  <bruno@clisp.org>
24894
24895         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
24896         cross-compiling guesses also when the native compile gives no result.
24897
24898 2008-11-10  Bruno Haible  <bruno@clisp.org>
24899
24900         * lib/spawni.c (__spawni): Force variable into the stack.
24901
24902 2008-11-10  Bruno Haible  <bruno@clisp.org>
24903
24904         Add support for Haiku.
24905         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
24906         glibc and BeOS, but also on Haiku.
24907         * lib/fpurge.c (fpurge): Likewise.
24908         * lib/freadable.c (freadable): Likewise.
24909         * lib/freadahead.c (freadahead): Likewise.
24910         * lib/freading.c (freading): Likewise.
24911         * lib/freadptr.c (freadptr): Likewise.
24912         * lib/freadseek.c (freadptrinc): Likewise.
24913         * lib/fseeko.c (rpl_fseeko): Likewise.
24914         * lib/fseterr.c (fseterr): Likewise.
24915         * lib/fwritable.c (fwritable): Likewise.
24916         * lib/fwriting.c (fwriting): Likewise.
24917         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
24918
24919 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
24920
24921         * lib/config.charset: Treat Haiku like BeOS.
24922
24923 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
24924
24925         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
24926         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
24927
24928 2008-11-08  Bruno Haible  <bruno@clisp.org>
24929
24930         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
24931         AC_CACHE_CHECK.
24932
24933 2008-11-08  Bruno Haible  <bruno@clisp.org>
24934
24935         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
24936
24937 2008-11-08  Bruno Haible  <bruno@clisp.org>
24938
24939         * tests/test-select-fd.c: New file.
24940         * tests/test-select-in.sh: New file.
24941         * tests/test-select-out.sh: New file.
24942         * tests/test-select-stdin.c: New file.
24943         * modules/select-tests (Files): Add the new files.
24944         (Depends-on): Add gettimeofday.
24945         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
24946         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
24947         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
24948
24949 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
24950             Bruno Haible  <bruno@clisp.org>
24951
24952         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
24953
24954 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
24955
24956         * build-aux/pmccabe2html: Added support for C++ source files.
24957
24958 2008-11-05  Ben Pfaff  <blp@gnu.org>
24959
24960         Fix lib/close.c build on Windows.
24961         * modules/close (Files): Add lib/w32sock.h.
24962
24963 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
24964
24965         Accept Bison's NEWS format.
24966         * build-aux/announce-gen (print_news_deltas): Tweak
24967         $re_prefix.
24968
24969 2008-11-04  Bruno Haible  <bruno@clisp.org>
24970
24971         * modules/random_r (Maintainer): Add glibc.
24972
24973 2008-11-04  Simon Josefsson  <simon@josefsson.org>
24974
24975         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
24976         by karl@freefriends.org (Karl Berry).
24977         * doc/alloca.texi: Likewise.
24978         * doc/c-ctype.texi: Likewise.
24979         * doc/c-strcase.texi: Likewise.
24980         * doc/c-strcaseeq.texi: Likewise.
24981         * doc/c-strcasestr.texi: Likewise.
24982         * doc/c-strstr.texi: Likewise.
24983         * doc/c-strtod.texi: Likewise.
24984         * doc/c-strtold.texi: Likewise.
24985         * doc/ctime.texi: Likewise.
24986         * doc/error.texi: Likewise.
24987         * doc/fdl.texi: Likewise.
24988         * doc/gcd.texi: Likewise.
24989         * doc/getdate.texi: Likewise.
24990         * doc/gnulib-intro.texi: Likewise.
24991         * doc/gnulib-tool.texi: Likewise.
24992         * doc/gnulib.texi: Likewise.
24993         * doc/inet_ntoa.texi: Likewise.
24994         * doc/maintain.texi: Likewise.
24995         * doc/make-stds.texi: Likewise.
24996         * doc/quote.texi: Likewise.
24997         * doc/regexprops-generic.texi: Likewise.
24998         * doc/standards.texi: Likewise.
24999         * doc/verify.texi: Likewise.
25000         * doc/visibility.texi: Likewise.
25001         * doc/gnulib.texi (GNU Free Documentation License): Include
25002         fdl-1.3.texi instead of fdl.texi.
25003
25004 2008-11-04  Simon Josefsson  <simon@josefsson.org>
25005
25006         * doc/fdl-1.3.texi: New file, from
25007         <http://www.gnu.org/licenses/fdl-1.3.texi>.
25008         * modules/fdl-1.3: Add.
25009         * MODULES.html.sh: Add fdl-1.3.
25010
25011 2008-11-03  Bruno Haible  <bruno@clisp.org>
25012
25013         Make determination of absolute name of header file work with AIX xlc.
25014         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
25015         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
25016         preprocessing.
25017         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
25018         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
25019
25020 2008-11-03  Simon Josefsson  <simon@josefsson.org>
25021
25022         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
25023         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
25024         <ludo@gnu.org>.
25025
25026 2008-11-02  Bruno Haible  <bruno@clisp.org>
25027
25028         Mark 'strpbrk' obsolete.
25029         * modules/strpbrk (Status, Notice): New sections.
25030         * modules/strtok_r (Depends-on): Add strpbrk.
25031
25032 2008-11-02  Bruno Haible  <bruno@clisp.org>
25033
25034         Mark 'strdup' obsolete.
25035         * modules/strdup (Status, Notice): New sections.
25036         * modules/findprog (Depends-on): Add strdup.
25037         * modules/getaddrinfo (Depends-on): Likewise.
25038         * modules/localename (Depends-on): Likewise.
25039         * modules/relocatable-lib (Depends-on): Likewise.
25040         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
25041         * modules/relocatable-prog (Depends-on): Likewise.
25042         * modules/trim (Depends-on): Likewise.
25043         * modules/unictype/gen-ctype (Depends-on): Likewise.
25044         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
25045
25046 2008-11-02  Bruno Haible  <bruno@clisp.org>
25047
25048         Mark 'strcspn' obsolete.
25049         * modules/strcspn (Status, Notice): New sections.
25050
25051 2008-11-02  Bruno Haible  <bruno@clisp.org>
25052
25053         Mark 'rmdir' obsolete.
25054         * modules/rmdir (Status, Notice): New sections.
25055         * modules/clean-temp (Depends-on): Add rmdir.
25056         * modules/openat (Depends-on): Likewise.
25057
25058 2008-11-02  Bruno Haible  <bruno@clisp.org>
25059
25060         Mark 'raise' obsolete.
25061         * modules/raise (Status, Notice): New sections.
25062         (Include): Specify <signal.h>.
25063         * modules/stdio (Depends-on): Add raise.
25064         * modules/write (Depends-on): Likewise.
25065
25066 2008-11-02  Bruno Haible  <bruno@clisp.org>
25067
25068         Mark 'memset' obsolete.
25069         * modules/memset (Status, Notice): New sections.
25070
25071 2008-11-02  Bruno Haible  <bruno@clisp.org>
25072
25073         Mark 'memmove' obsolete.
25074         * modules/memmove (Status, Notice): New sections.
25075         * modules/argp (Depends-on): Add memmove.
25076         * modules/argz (Depends-on): Likewise.
25077         * modules/canonicalize (Depends-on): Likewise.
25078         * modules/canonicalize-lgpl (Depends-on): Likewise.
25079         * modules/fts (Depends-on): Likewise.
25080         * modules/getcwd (Depends-on): Likewise.
25081         * modules/human (Depends-on): Likewise.
25082         * modules/regex (Depends-on): Likewise.
25083         * modules/striconveh (Depends-on): Likewise.
25084         * modules/trim (Depends-on): Likewise.
25085         * modules/unistr/u8-move (Depends-on): Likewise.
25086         * modules/unistr/u16-move (Depends-on): Likewise.
25087         * modules/unistr/u32-move (Depends-on): Likewise.
25088
25089 2008-11-02  Bruno Haible  <bruno@clisp.org>
25090
25091         Mark 'memcpy' obsolete.
25092         * modules/memcpy (Status, Notice): New sections.
25093
25094 2008-11-02  Bruno Haible  <bruno@clisp.org>
25095
25096         Mark 'memcmp' obsolete.
25097         * modules/memcmp (Status, Notice): New sections.
25098         * modules/argmatch (Depends-on): Add memchr.
25099         * modules/backupfile (Depends-on): Likewise.
25100         * modules/c-strcasestr (Depends-on): Likewise.
25101         * modules/crypto/des (Depends-on): Likewise.
25102         * modules/csharpcomp (Depends-on): Likewise.
25103         * modules/fnmatch (Depends-on): Likewise.
25104         * modules/git-merge-changelog (Depends-on): Likewise.
25105         * modules/isnand (Depends-on): Likewise.
25106         * modules/isnand-nolibm (Depends-on): Likewise.
25107         * modules/isnanf (Depends-on): Likewise.
25108         * modules/isnanf-nolibm (Depends-on): Likewise.
25109         * modules/isnanl (Depends-on): Likewise.
25110         * modules/isnanl-nolibm (Depends-on): Likewise.
25111         * modules/mbchar (Depends-on): Likewise.
25112         * modules/memcoll (Depends-on): Likewise.
25113         * modules/quotearg (Depends-on): Likewise.
25114         * modules/regex (Depends-on): Likewise.
25115         * modules/relocatable-prog (Depends-on): Likewise.
25116         * modules/same (Depends-on): Likewise.
25117         * modules/signbit (Depends-on): Likewise.
25118         * modules/strcasestr-simple (Depends-on): Likewise.
25119         * modules/unictype/gen-ctype (Depends-on): Likewise.
25120         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
25121         * modules/uniname/uniname (Depends-on): Likewise.
25122         * modules/unistr/u8-cmp (Depends-on): Likewise.
25123
25124 2008-11-02  Bruno Haible  <bruno@clisp.org>
25125
25126         Mark 'memchr' obsolete.
25127         * modules/memchr (Status, Notice): New sections.
25128         * modules/argp (Depends-on): Add memchr.
25129         * modules/base64 (Depends-on): Likewise.
25130         * modules/c-strcasestr (Depends-on): Likewise.
25131         * modules/chdir-long (Depends-on): Likewise.
25132         * modules/fnmatch (Depends-on): Likewise.
25133         * modules/getsubopt (Depends-on): Likewise.
25134         * modules/git-merge-changelog (Depends-on): Likewise.
25135         * modules/glob (Depends-on): Likewise.
25136         * modules/strcasestr-simple (Depends-on): Likewise.
25137         * modules/strnlen (Depends-on): Likewise.
25138
25139 2008-11-02  Bruno Haible  <bruno@clisp.org>
25140
25141         Mark 'atexit' obsolete.
25142         * modules/atexit (Status, Notice): New sections.
25143         * modules/chdir-long (Depends-on): Add atexit.
25144         * modules/wait-process (Depends-on): Likewise.
25145
25146 2008-11-02  Bruno Haible  <bruno@clisp.org>
25147
25148         * gnulib-tool: New option --with-obsolete.
25149         (func_usage): Document it.
25150         (func_modules_transitive_closure): Drop obsolete dependencies if
25151         incobsolete is not true.
25152         (func_import): Read and save the incobsolete variable to the cache.
25153
25154 2008-11-02  Bruno Haible  <bruno@clisp.org>
25155
25156         * modules/TEMPLATE-EXTENDED: New field 'Status'.
25157         * gnulib-tool: New option --extract-status.
25158         (func_usage): Document it.
25159         (sed_extract_prog): Recognize it.
25160         (func_get_status): New function.
25161
25162 2008-10-30  Simon Josefsson  <simon@josefsson.org>
25163
25164         * modules/sockets (License): Change from LGPL to LGPLv2+.
25165
25166 2008-10-28  Simon Josefsson  <simon@josefsson.org>
25167
25168         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
25169
25170 2008-10-28  Simon Josefsson  <simon@josefsson.org>
25171
25172         * MODULES.html.sh (Support for systems lacking POSIX:2001):
25173         Mention times and sys_times.
25174         * modules/sys_times, modules/sys_times-tests: New modules.
25175         * modules/times, modules/times-tests: Likewise
25176         * m4/sys_times_h.m4: New file.
25177         * lib/sys_times.in.h: Likewise
25178         * lib/times.c: Likewise.
25179         * tests/test-sys_times.c: Likewise.
25180         * tests/test-times.c: Likewise.
25181         * doc/posix-headers/sys_times.texi: Update.
25182         * doc/posix-functions/times.texi: Update.
25183
25184 2008-10-28  Jim Meyering  <meyering@redhat.com>
25185
25186         * modules/tempname (Depends-on): Add lstat.
25187
25188         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
25189
25190 2008-10-28  Simon Josefsson  <simon@josefsson.org>
25191
25192         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
25193         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
25194         using idiom used elsewhere in gnulib.
25195
25196 2008-10-27  Jim Meyering  <meyering@redhat.com>
25197
25198         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
25199
25200 2008-10-27  Simon Josefsson  <simon@josefsson.org>
25201
25202         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
25203         TESTS_ENVIRONMENT, for shell scripts that needs to call built
25204         programs.
25205         * tests/test-argp-2.sh: Use $EXEEXT when needed.
25206
25207 2008-10-27  Simon Josefsson  <simon@josefsson.org>
25208
25209         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
25210
25211 2008-10-27  Bruno Haible  <bruno@clisp.org>
25212
25213         * tests/test-lstat.c: Include <stdio.h>.
25214
25215 2008-10-27  Simon Josefsson  <simon@josefsson.org>
25216
25217         * modules/lstat-tests: New module.
25218         * tests/test-lstat.c: New file.
25219
25220 2008-10-26  Jim Meyering  <meyering@redhat.com>
25221
25222         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
25223
25224 2008-10-26  Simon Josefsson  <simon@josefsson.org>
25225             Bruno Haible  <bruno@clisp.org>
25226
25227         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
25228         * modules/configmake (Include): Add a note that the include must come
25229         after all system headers.
25230         * lib/javaversion.c: Include configmake.h after all other includes.
25231
25232 2008-10-26  Bruno Haible  <bruno@clisp.org>
25233
25234         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
25235         HAVE_STRUCT_RANDOM_DATA to 1.
25236         (gl_STDLIB_H): Simplify.
25237
25238 2008-10-26  Simon Josefsson  <simon@josefsson.org>
25239
25240         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
25241         substitute HAVE_STRUCT_RANDOM_DATA.
25242         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
25243         random_data.
25244         * modules/stdlib (Makefile.am): Substitute
25245         HAVE_STRUCT_RANDOM_DATA.
25246
25247 2008-10-26  Simon Josefsson  <simon@josefsson.org>
25248
25249         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
25250         * doc/gnulib-intro.texi (Copyright): Likewise.
25251
25252 2008-10-26  Simon Josefsson  <simon@josefsson.org>
25253
25254         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
25255         findings.
25256
25257 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
25258             Bruno Haible  <bruno@clisp.org>
25259
25260         * lib/unistd.in.h: Include <winsock2.h>.
25261         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
25262         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
25263         Provide dummy declarations.
25264         (gethostname): Override.
25265         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
25266         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
25267         gl_PREREQ_SYS_H_WINSOCK2.
25268         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
25269         * doc/posix-functions/gethostname.texi: More details.
25270
25271 2008-10-25  Bruno Haible  <bruno@clisp.org>
25272
25273         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
25274         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
25275         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
25276
25277         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
25278         here ...
25279         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
25280         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
25281         gl_UNISTD_H_DEFAULTS.
25282
25283 2008-10-25  Eric Blake  <ebb9@byu.net>
25284
25285         signbit: avoid spurious compiler failure
25286         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
25287         declarations inside function.
25288
25289 2008-10-24  Simon Josefsson  <simon@josefsson.org>
25290             Bruno Haible  <bruno@clisp.org>
25291
25292         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
25293         * modules/random_r (Depends-on): Add stdint.
25294
25295 2008-10-24  Bruno Haible  <bruno@clisp.org>
25296
25297         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
25298         Eggert.
25299         * modules/strerror (License): Likewise.
25300
25301 2008-10-24  Jim Meyering  <meyering@redhat.com>
25302
25303         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
25304         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
25305
25306 2008-10-24  Eric Blake  <ebb9@byu.net>
25307
25308         getgroups: fix compilation when getgroups is available
25309         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
25310         but with <config.h> override of getgroups disabled.
25311
25312 2008-10-24  Simon Josefsson  <simon@josefsson.org>
25313
25314         * doc/gnulib.texi (Header files): Add note about C++ problems.
25315         Explained by Bruno Haible <bruno@clisp.org>.
25316
25317 2008-10-23  Bruno Haible  <bruno@clisp.org>
25318
25319         Define a dummy SA_NODEFER macro on Interix.
25320         * lib/signal.in.h (SA_NODEFER): Define fallback.
25321         Reported by Aleksey Cheusov <cheusov@tut.by> via
25322         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
25323
25324 2008-10-23  Bruno Haible  <bruno@clisp.org>
25325
25326         * modules/freadahead (License): Change to LGPLv2+.
25327         Suggested by Simon Josefsson.
25328
25329 2008-10-23  Jim Meyering  <meyering@redhat.com>
25330
25331         random_r: new module
25332         * modules/random_r: New file.
25333         * m4/random_r.m4: New file.
25334         * lib/random_r.c: New file, from glibc.
25335         * modules/random_r-tests: New file.
25336         * tests/test-random_r.c: New file.
25337         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
25338          Declare.
25339         (RAND_MAX): Define.
25340         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
25341         * modules/stdlib: Substitute them, too.
25342         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
25343         * doc/glibc-functions/initstate_r.texi: Mention the new module.
25344         * doc/glibc-functions/random_r.texi: Likewise.
25345         * doc/glibc-functions/setstate_r.texi: Likewise.
25346         * doc/glibc-functions/srandom_r.texi: Likewise.
25347         * config/srclist.txt: Mention it.
25348
25349 2008-10-23  David Lutterkort  <lutter@redhat.com>
25350
25351         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
25352         link requirement
25353
25354 2008-10-23  Jim Meyering  <meyering@redhat.com>
25355
25356         selinux-h: mark parameters of stub functions as intentionally unused
25357         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
25358         * lib/se-context.in.h: Likewise.
25359
25360 2008-10-22  Simon Josefsson  <simon@josefsson.org>
25361
25362         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
25363
25364 2008-10-22  Simon Josefsson  <simon@josefsson.org>
25365
25366         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
25367
25368 2008-10-22  Eric Blake  <ebb9@byu.net>
25369
25370         glthread/thread: avoid compiler warning
25371         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
25372         Add unreachable abort to silence compiler.
25373
25374 2008-10-22  Eric Blake  <ebb9@byu.net>
25375
25376         netdb: also supply struct addrinfo for cygwin 1.5.x
25377         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
25378         older cygwin.
25379         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
25380         cygwin.
25381         * doc/posix-headers/netdb.texi (netdb.h): Document this.
25382
25383 2008-10-22  Bruno Haible  <bruno@clisp.org>
25384
25385         * users.txt: Update entry about pspp.
25386
25387 2008-10-21  Bruno Haible  <bruno@clisp.org>
25388
25389         Simplification.
25390         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
25391         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
25392
25393         Simplification.
25394         * lib/ioctl.c (ioctl): Don't undefine.
25395         * lib/socket.c (socket): Don't undefine.
25396
25397         Remove unused module indicator macros.
25398         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
25399         GNULIB_$1 as a C macro.
25400
25401         * doc/posix-functions/close.texi: Undo last change.
25402         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
25403         Windows platforms.
25404
25405 2008-10-21  Bruno Haible  <bruno@clisp.org>
25406
25407         Add gethostname() declaration to <unistd.h>.
25408         * lib/unistd.in.h (gethostname): New declaration.
25409         * lib/gethostname.c: Include <unistd.h>.
25410         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
25411         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
25412         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
25413         and HAVE_GETHOSTNAME.
25414         * modules/gethostname (Depends-on): Add unistd.
25415         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25416         (Include): Specify <unistd.h>.
25417         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
25418         HAVE_GETHOSTNAME.
25419         * tests/test-gethostname.c: Include <unistd.h> first.
25420
25421 2008-10-21  Bruno Haible  <bruno@clisp.org>
25422
25423         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
25424         * modules/select-tests (Depends-on): Likewise.
25425         Reported by Simon Josefsson.
25426
25427 2008-10-21  Simon Josefsson  <simon@josefsson.org>
25428
25429         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
25430         * lib/accept.c: New file, based on winsock.c.
25431         * lib/bind.c: New file, based on winsock.c.
25432         * lib/connect.c: New file, based on winsock.c.
25433         * lib/getpeername.c: New file, based on winsock.c.
25434         * lib/getsockname.c: New file, based on winsock.c.
25435         * lib/getsockopt.c: New file, based on winsock.c.
25436         * lib/ioctl.c: New file, based on winsock.c.
25437         * lib/listen.c: New file, based on winsock.c.
25438         * lib/recv.c: New file, based on winsock.c.
25439         * lib/recvfrom.c: New file, based on winsock.c.
25440         * lib/send.c: New file, based on winsock.c.
25441         * lib/sendto.c: New file, based on winsock.c.
25442         * lib/setsockopt.c: New file, based on winsock.c.
25443         * lib/shutdown.c: New file, based on winsock.c.
25444         * lib/socket.c: New file, based on winsock.c.
25445         * lib/w32sock.h: New file, based on winsock.c.
25446         * lib/winsock.c: Remove file.
25447         * modules/accept: Likewise.
25448         * modules/bind: Likewise.
25449         * modules/connect: Likewise.
25450         * modules/getpeername: Likewise.
25451         * modules/getsockname: Likewise.
25452         * modules/getsockopt: Likewise.
25453         * modules/ioctl: Likewise.
25454         * modules/listen: Likewise.
25455         * modules/recv: Likewise.
25456         * modules/recvfrom: Likewise.
25457         * modules/send: Likewise.
25458         * modules/sendto: Likewise.
25459         * modules/setsockopt: Likewise.
25460         * modules/shutdown: Likewise.
25461         * modules/socket: Use socket.c instead of winsock.c.
25462         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
25463         * doc/posix-functions/accept.texi: Doc fix.
25464         * doc/posix-functions/bind.texi: Doc fix.
25465         * doc/posix-functions/close.texi: Doc fix.
25466         * doc/posix-functions/connect.texi: Doc fix.
25467         * doc/posix-functions/getpeername.texi: Doc fix.
25468         * doc/posix-functions/getsockname.texi: Doc fix.
25469         * doc/posix-functions/getsockopt.texi: Doc fix.
25470         * doc/posix-functions/ioctl.texi: Doc fix.
25471         * doc/posix-functions/listen.texi: Doc fix.
25472         * doc/posix-functions/recv.texi: Doc fix.
25473         * doc/posix-functions/recvfrom.texi: Doc fix.
25474         * doc/posix-functions/send.texi: Doc fix.
25475         * doc/posix-functions/sendto.texi: Doc fix.
25476         * doc/posix-functions/setsockopt.texi: Doc fix.
25477         * doc/posix-functions/shutdown.texi: Doc fix.
25478         * doc/posix-functions/socket.texi: Doc fix.
25479
25480 2008-10-20  Bruno Haible  <bruno@clisp.org>
25481
25482         Take into account the role of SIGABRT_COMPAT on Windows 2008.
25483         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
25484         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
25485         as an alias for SIGABRT.
25486         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
25487         (sigaction): Map it to SIGABRT.
25488         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
25489
25490 2008-10-20  Bruno Haible  <bruno@clisp.org>
25491
25492         * lib/fts.c: Don't include lstat.h.
25493         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
25494
25495         Move the lstat() declaration to <sys/stat.h>.
25496         * lib/lstat.h: Remove file.
25497         * lib/sys_stat.in.h: Add special invocation convention.
25498         (lstat): New declaration.
25499         * lib/lstat.c (orig_lstat): New function.
25500         (rpl_lstat): Use orig_lstat instead of lstat.
25501         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
25502         AC_C_INLINE. Set REPLACE_LSTAT.
25503         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
25504         and REPLACE_LSTAT.
25505         * modules/lstat (Files): Remove lib/lstat.h.
25506         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
25507         (Include): Specify <sys/stat.h> instead of lstat.h.
25508         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
25509         REPLACE_LSTAT.
25510         * NEWS: Mention the change.
25511
25512 2008-10-20  Bruno Haible  <bruno@clisp.org>
25513
25514         * modules/posix_spawn-tests: New file.
25515         * tests/test-posix_spawn3.c: New file.
25516
25517 2008-10-20  Bruno Haible  <bruno@clisp.org>
25518
25519         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
25520         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
25521         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
25522         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
25523         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
25524
25525 2008-10-20  Bruno Haible  <bruno@clisp.org>
25526
25527         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
25528         of posix_spawn on AIX 5.3.
25529
25530 2008-10-20  Bruno Haible  <bruno@clisp.org>
25531
25532         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
25533
25534 2008-10-20  Bruno Haible  <bruno@clisp.org>
25535
25536         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
25537         of AC_LANG_PROGRAM.
25538
25539 2008-10-20  Simon Josefsson  <simon@josefsson.org>
25540
25541         * lib/netdb.in.h: Don't define GNU specific constants until they
25542         are supported or needed.  Reported by Bruno Haible
25543         <bruno@clisp.org>.
25544
25545 2008-10-20  Simon Josefsson  <simon@josefsson.org>
25546
25547         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
25548
25549 2008-10-20  Simon Josefsson  <simon@josefsson.org>
25550
25551         * lib/getaddrinfo.h: Remove file.
25552         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
25553         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
25554         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
25555         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
25556         * modules/netdb: Substitute GNULIB_GETADDRINFO.
25557         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
25558         * tests/test-getaddrinfo.c: Likewise.
25559         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
25560         * NEWS: Mention change.
25561
25562 2008-10-19  Bruno Haible  <bruno@clisp.org>
25563
25564         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
25565
25566 2008-10-19  Bruno Haible  <bruno@clisp.org>
25567
25568         * lib/wait-process.c: Include simply <sys/wait.h>.
25569         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
25570         WIFSTOPPED): Remove fallback definitions.
25571         * modules/wait-process (Depends-on): Add sys_wait.
25572
25573         New module 'sys_wait'.
25574         * modules/sys_wait: New file.
25575         * lib/sys_wait.in.h: New file, partially copied from
25576         lib/wait-process.c.
25577         * m4/sys_wait_h.m4: New file.
25578         * doc/posix-headers/sys_wait.texi: Mention the new module.
25579
25580 2008-10-19  Bruno Haible  <bruno@clisp.org>
25581
25582         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
25583
25584 2008-10-19  Bruno Haible  <bruno@clisp.org>
25585
25586         Assume that waitpid() fills an 'int' status, not a 'union wait'.
25587         * lib/wait-process.c (WAIT_T): Remove type.
25588         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
25589         (wait_subprocess): Update.
25590
25591 2008-10-19  Bruno Haible  <bruno@clisp.org>
25592
25593         New module 'atoll'.
25594         * modules/atoll: New file.
25595         * lib/stdlib.in.h (atoll): New declaration.
25596         * lib/atoll.c: New file, from glibc with modifications.
25597         * m4/atoll.m4: New file.
25598         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
25599         HAVE_ATOLL.
25600         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
25601         * doc/posix-functions/atoll.texi: Mention the new module.
25602
25603 2008-10-19  Bruno Haible  <bruno@clisp.org>
25604
25605         Add strtoull() declaration to <stdlib.h>.
25606         * lib/stdlib.in.h (strtoull): New declaration.
25607         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
25608         Set HAVE_STRTOULL.
25609         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
25610         HAVE_STRTOULL.
25611         * modules/strtoull (Depends-on): Add stdlib.
25612         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25613         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
25614         HAVE_STRTOULL.
25615
25616 2008-10-19  Bruno Haible  <bruno@clisp.org>
25617
25618         Add strtoll() declaration to <stdlib.h>.
25619         * lib/stdlib.in.h (strtoll): New declaration.
25620         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
25621         Set HAVE_STRTOLL.
25622         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
25623         HAVE_STRTOLL.
25624         * modules/strtoll (Depends-on): Add stdlib.
25625         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25626         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
25627
25628 2008-10-19  Bruno Haible  <bruno@clisp.org>
25629
25630         * modules/bcopy (Depends-on): Add strings.
25631         (Include): Specify <strings.h>.
25632
25633 2008-10-19  Bruno Haible  <bruno@clisp.org>
25634
25635         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
25636
25637 2008-10-19  Bruno Haible  <bruno@clisp.org>
25638
25639         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
25640         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
25641         mingw.
25642
25643 2008-10-19  Bruno Haible  <bruno@clisp.org>
25644
25645         * lib/atanl.c: Don't include isnanl.h.
25646         * lib/cosl.c: Likewise.
25647         * lib/ldexpl.c: Likewise.
25648         * lib/logl.c: Likewise.
25649         * lib/sinl.c: Likewise.
25650         * lib/sqrtl.c: Likewise.
25651         * lib/tanl.c: Likewise.
25652
25653         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
25654         * lib/isnanf.h: Remove file.
25655         * lib/isnand.h: Remove file.
25656         * lib/isnanl.h: Remove file.
25657         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
25658         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
25659         macros.
25660         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
25661         HAVE_ISNANF, don't define it as a C macro.
25662         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
25663         HAVE_ISNAND, don't define it as a C macro.
25664         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
25665         HAVE_ISNANL, don't define it as a C macro.
25666         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
25667         HAVE_ISNAN[FDL].
25668         * modules/isnanf (Files): Remove lib/isnanf.h.
25669         (Depends-on): Add math.
25670         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25671         (Include): Specify <math.h> instead of isnanf.h.
25672         * modules/isnand (Files): Remove lib/isnand.h.
25673         (Depends-on): Add math.
25674         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25675         (Include): Specify <math.h> instead of isnand.h.
25676         * modules/isnanl (Files): Remove lib/isnanl.h.
25677         (Depends-on): Add math.
25678         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25679         (Include): Specify <math.h> instead of isnanl.h.
25680         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
25681         HAVE_ISNAN[FDL].
25682         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
25683         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
25684         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
25685         * NEWS: Mention the change.
25686
25687 2008-10-18  Bruno Haible  <bruno@clisp.org>
25688
25689         Add getusershell(), setusershell(), endusershell() declarations to
25690         <unistd.h>.
25691         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
25692         declarations.
25693         * lib/getusershell.c: Include unistd.h.
25694         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
25695         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
25696         HAVE_GETUSERSHELL.
25697         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
25698         and HAVE_GETUSERSHELL.
25699         * modules/getusershell (Depends-on): Add unistd, extensions.
25700         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25701         (Include): Specify <unistd.h>.
25702         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
25703         HAVE_GETUSERSHELL.
25704
25705 2008-10-18  Bruno Haible  <bruno@clisp.org>
25706
25707         Add a getloadavg() declaration to <stdlib.h>.
25708         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
25709         getloadavg declaration.
25710         (getloadavg): New declaration.
25711         * lib/getloadavg.c: Include <stdlib.h> first.
25712         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
25713         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
25714         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
25715         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
25716         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
25717         * modules/getloadavg (Depends-on): Add stdlib, extensions.
25718         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
25719         (Include): Specify <stdlib.h>.
25720         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
25721         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
25722
25723 2008-10-18  Bruno Haible  <bruno@clisp.org>
25724
25725         * lib/dirchownmod.c: Don't include lchmod.h.
25726
25727         Move the lchmod() declaration to <sys/stat.h>.
25728         * lib/lchmod.h: Remove file.
25729         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
25730         (lchmod): New declaration, moved here from lib/lchown.h.
25731         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
25732         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
25733         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
25734         and HAVE_LCHMOD.
25735         * modules/lchmod (Files): Remove lib/lchmod.h.
25736         (Depends-on): Add sys_stat, extensions.
25737         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
25738         (Include): Specify <sys/stat.h> instead of lchmod.h.
25739         * modules/sys_stat (Depends-on): Add link-warning.
25740         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
25741         definition of GL_LINK_WARNING.
25742         * NEWS: Mention the change.
25743
25744 2008-10-18  Bruno Haible  <bruno@clisp.org>
25745
25746         * lib/fchdir.c: Don't include dirfd.h.
25747         * lib/fts.c: Likewise.
25748         * lib/getcwd.c: Likewise.
25749         * lib/glob.c: Likewise.
25750
25751         Move the dirfd() declaration to <dirent.h>.
25752         * lib/dirfd.h: Remove file.
25753         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
25754         (dirfd): New declaration.
25755         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
25756         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
25757         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
25758         HAVE_DECL_DIRFD.
25759         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
25760         HAVE_DECL_DIRFD.
25761         * modules/dirfd (Files): Remove lib/dirfd.h.
25762         (Depends-on): Add dirent, extensions.
25763         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
25764         (Include): Specify <dirent.h> instead of dirfd.h.
25765         * modules/dirent (Depends-on): Add link-warning.
25766         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
25767         definition of GL_LINK_WARNING.
25768         * NEWS: Mention the change.
25769
25770 2008-10-18  Bruno Haible  <bruno@clisp.org>
25771
25772         Move the euidaccess() declaration to <unistd.h>.
25773         * lib/euidaccess.h: Remove file.
25774         * lib/unistd.in.h (euidaccess): New declaration.
25775         * lib/euidaccess.c: Don't include euidaccess.h.
25776         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
25777         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
25778         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
25779         and HAVE_EUIDACCESS.
25780         * modules/euidaccess (Files): Remove lib/euidaccess.h.
25781         (Depends-on): Add unistd.
25782         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25783         (Include): Specify <unistd.h> instead of euidaccess.h.
25784         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
25785         HAVE_EUIDACCESS.
25786         * NEWS: Mention the change.
25787
25788 2008-10-18  Bruno Haible  <bruno@clisp.org>
25789
25790         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
25791
25792         Move the getdomainname() declaration to <unistd.h>.
25793         * lib/getdomainname.h: Remove file.
25794         * lib/unistd.in.h (getdomainname): New declaration.
25795         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
25796         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
25797         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
25798         HAVE_GETDOMAINNAME.
25799         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25800         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
25801         * modules/getdomainname (Files): Remove lib/getdomainname.h.
25802         (Depends-on): Add unistd, extensions.
25803         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
25804         (Includes): Specify <unistd.h> instead of getdomainname.h.
25805         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
25806         HAVE_GETDOMAINNAME.
25807         * NEWS: Mention the change.
25808
25809 2008-10-18  Bruno Haible  <bruno@clisp.org>
25810
25811         * modules/dirent: New file.
25812         * m4/dirent_h.m4: New file.
25813         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
25814         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
25815         * modules/fchdir (Files): Remove lib/dirent.in.h.
25816         (Depends-on): Add dirent.
25817         (Makefile.am): Move rules to modules/dirent.
25818         * doc/posix-headers/dirent.texi: Mention the new module.
25819
25820 2008-10-18  Bruno Haible  <bruno@clisp.org>
25821
25822         Avoid -Wunused-parameter warnings in public gnulib header files.
25823         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
25824         macro.
25825         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
25826
25827 2008-10-18  Bruno Haible  <bruno@clisp.org>
25828
25829         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
25830         * doc/glibc-functions/error.texi: Mention the module 'error'.
25831         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
25832         * doc/glibc-functions/getdomainname.texi: Mention the module
25833         'getdomainname'.
25834         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
25835         * doc/glibc-functions/getpagesize.texi: Mention the module
25836         'getpagesize'.
25837         * doc/glibc-functions/getusershell.texi: Mention the module
25838         'getusershell'.
25839         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
25840         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
25841         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
25842         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
25843         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
25844         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
25845         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
25846         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
25847         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
25848         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
25849         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
25850         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
25851         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
25852         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
25853
25854 2008-10-17  Bruno Haible  <bruno@clisp.org>
25855
25856         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
25857         HP-UX and IRIX, use -0.0L.
25858         * tests/test-ceill.c (minus_zero): Likewise.
25859         * tests/test-floorl.c (minus_zero): Likewise.
25860         * tests/test-frexpl.c (minus_zero): Likewise.
25861         * tests/test-isnan.c (minus_zerol): Likewise.
25862         * tests/test-isnanl.h (minus_zero): Likewise.
25863         * tests/test-ldexpl.c (minus_zero): Likewise.
25864         * tests/test-roundl.c (minus_zero): Likewise.
25865         * tests/test-signbit.c (minus_zerol): Likewise.
25866         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
25867         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
25868         * tests/test-truncl.c (minus_zero): Likewise.
25869         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
25870         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
25871         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
25872         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
25873
25874 2008-10-17  Bruno Haible  <bruno@clisp.org>
25875
25876         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
25877         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
25878         that it gets activated only for gcc >= 3.0.
25879         * lib/dirent.in.h: Likewise.
25880         * lib/errno.in.h: Likewise.
25881         * lib/fcntl.in.h: Likewise.
25882         * lib/float.in.h: Likewise.
25883         * lib/iconv.in.h: Likewise.
25884         * lib/inttypes.in.h: Likewise.
25885         * lib/locale.in.h: Likewise.
25886         * lib/math.in.h: Likewise.
25887         * lib/netdb.in.h: Likewise.
25888         * lib/netinet_in.in.h: Likewise.
25889         * lib/search.in.h: Likewise.
25890         * lib/signal.in.h: Likewise.
25891         * lib/spawn.in.h: Likewise.
25892         * lib/stdarg.in.h: Likewise.
25893         * lib/stdint.in.h: Likewise.
25894         * lib/stdio.in.h: Likewise.
25895         * lib/stdlib.in.h: Likewise.
25896         * lib/string.in.h: Likewise.
25897         * lib/strings.in.h: Likewise.
25898         * lib/sys_file.in.h: Likewise.
25899         * lib/sys_ioctl.in.h: Likewise.
25900         * lib/sys_select.in.h: Likewise.
25901         * lib/sys_socket.in.h: Likewise.
25902         * lib/sys_stat.in.h: Likewise.
25903         * lib/sys_time.in.h: Likewise.
25904         * lib/sysexits.in.h: Likewise.
25905         * lib/time.in.h: Likewise.
25906         * lib/unistd.in.h: Likewise.
25907         * lib/wchar.in.h: Likewise.
25908         * lib/wctype.in.h: Likewise.
25909         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
25910
25911 2008-10-17  Jim Meyering  <meyering@redhat.com>
25912
25913         ignore-value: don't depend on inline module
25914         * modules/ignore-value (Depends-on): Remove 'inline'.
25915         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
25916         Suggestion from Bruno Haible.
25917
25918 2008-10-17  Bruno Haible  <bruno@clisp.org>
25919
25920         New implementation of condition variables for Win32.
25921         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
25922         (gl_linked_waitqueue_t): New type.
25923         (gl_cond_t): Use it.
25924         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
25925         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
25926         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
25927         (glthread_cond_init_func, glthread_cond_wait_func,
25928         glthread_cond_timedwait_func, glthread_cond_signal_func,
25929         glthread_cond_broadcast_func, glthread_cond_destroy_func):
25930         Reimplemented on the basis of gl_linked_waitqueue_t.
25931         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
25932         gl_waitqueue_t.
25933         (gl_rwlock_t): Update.
25934         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
25935
25936 2008-10-17  Simon Josefsson  <simon@josefsson.org>
25937
25938         * modules/recvfrom (Depends-on): Add dependency on getpeername.
25939         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
25940
25941 2008-10-17  Jim Meyering  <meyering@redhat.com>
25942
25943         ignore-value: new module
25944         * modules/ignore-value: New file.
25945         * lib/ignore-value.h: New file.
25946         * MODULES.html.sh (Compiler warning management): New section,
25947         just for this module.  More to come.
25948
25949 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
25950
25951         open-safer.c: avoid 'signed and unsigned in conditional...' warning
25952         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
25953         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
25954
25955 2008-10-16  Jim Meyering  <meyering@redhat.com>
25956
25957         openat-die.c: avoid 'no previous prototype' warning
25958         * lib/openat-die.c: Include "openat.h".
25959         Reported by Reuben Thomas <rrt@sc3d.org>.
25960
25961 2008-10-16  Simon Josefsson  <simon@josefsson.org>
25962
25963         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
25964         * lib/netdb.in.h: Fix typo.
25965         Reported by Bruno Haible  <bruno@clisp.org>
25966
25967         * lib/netdb.in.h: Include sys/socket.h for platforms without
25968         netdb.h, to get structures like hostent on MinGW.
25969         * modules/netdb (Depends-on): Add sys_socket.
25970
25971 2008-10-15  Simon Josefsson  <simon@josefsson.org>
25972
25973         * modules/netdb, modules/netdb-tests: New file.
25974         * m4/netdb_h.m4: New file.
25975         * lib/netdb.in.h: Add, currently just an empty file pending
25976         definitions.
25977         * tests/test-netdb.c: New file.
25978         * doc/posix-headers/netdb.texi: Mention that we replace it if
25979         needed.
25980         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
25981         netdb.
25982
25983 2008-10-15  Simon Josefsson  <simon@josefsson.org>
25984
25985         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
25986         with code.
25987
25988 2008-10-13  Bruno Haible  <bruno@clisp.org>
25989
25990         * lib/glthread/cond.c (glthread_cond_wait_func,
25991         glthread_cond_timedwait_func): Add a comment.
25992
25993 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
25994
25995         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
25996         * tests/test-select.c: Likewise,
25997
25998 2008-10-13  Bruno Haible  <bruno@clisp.org>
25999
26000         * lib/glthread/cond.c (glthread_cond_wait_func,
26001         glthread_cond_timedwait_func): Fix variable name.
26002         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
26003
26004 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
26005
26006         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
26007         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
26008         struct sockaddr.sa_len.
26009         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
26010
26011 2008-10-13  Simon Josefsson  <simon@josefsson.org>
26012
26013         * build-aux/pmccabe2html: Add css and css_url parameters.
26014
26015 2008-10-12  Bruno Haible  <bruno@clisp.org>
26016
26017         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
26018         calling aclx_get.
26019         Reported by Rainer Tammer <tammer@tammer.net>.
26020
26021 2008-10-12  Bruno Haible  <bruno@clisp.org>
26022
26023         Use msvcrt aware primitives for creation/termination of Win32 threads.
26024         * lib/glthread/thread.c: Include <process.h>.
26025         (glthread_create_func): Use _beginthreadex instead of CreateThread.
26026         (wrapper_func): Update signature.
26027         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
26028
26029 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
26030             Bruno Haible  <bruno@clisp.org>
26031
26032         Provide a Win32 implementation of the 'cond' module.
26033         * lib/glthread/cond.h [USE_WIN32]: New implementation.
26034         * lib/glthread/cond.c (glthread_cond_init_func,
26035         glthread_cond_wait_func, glthread_cond_timedwait_func,
26036         glthread_cond_signal_func, glthread_cond_broadcast_func,
26037         glthread_cond_destroy_func) [USE_WIN32]: New functions.
26038         * modules/cond (Dependencies): Add gettimeofday.
26039
26040 2008-10-11  Bruno Haible  <bruno@clisp.org>
26041
26042         Make sleep work on older versions of mingw.
26043         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
26044         only whether it exists.
26045         * doc/posix-functions/sleep.texi: Mention the problem with older
26046         versions of mingw.
26047
26048 2008-10-11  Bruno Haible  <bruno@clisp.org>
26049
26050         New module 'shutdown'.
26051         * modules/shutdown: New file.
26052         * lib/sys_socket.in.h (shutdown): New declaration.
26053         * lib/winsock.c (shutdown): New function.
26054         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
26055         GNULIB_SHUTDOWN.
26056         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
26057         * doc/posix-functions/shutdown.texi: Document the new module.
26058
26059 2008-10-11  Jim Meyering  <meyering@redhat.com>
26060
26061         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
26062
26063 2008-10-11  Bruno Haible  <bruno@clisp.org>
26064
26065         New module 'fclose'.
26066         * modules/fclose: New file.
26067         * lib/stdio.in.h (fclose): New declaration.
26068         * lib/fclose.c: New file.
26069         * m4/fclose.m4: New file.
26070         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
26071         REPLACE_FCLOSE.
26072         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
26073         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
26074         REPLACE_FCLOSE.
26075         * modules/close (Depends-on): fclose.
26076         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
26077
26078 2008-10-11  Bruno Haible  <bruno@clisp.org>
26079
26080         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
26081         set errno and don't call _close.
26082
26083 2008-10-10  Bruno Haible  <bruno@clisp.org>
26084
26085         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
26086         ACL, not afterwards. Fixes test failure on Cygwin.
26087
26088 2008-10-09  Ben Pfaff  <blp@gnu.org>
26089
26090         * build-aux/announce-gen: Fix gnulib version related part of usage
26091         message.  Die with a useful error message if no tarballs are
26092         found.
26093
26094 2008-10-10  Jim Meyering  <meyering@redhat.com>
26095
26096         bootstrap: use git's --depth=N option only if it's supported
26097         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
26098         recognize the --depth option.  Reported by Pádraig Brady.
26099
26100 2008-10-09  Bruno Haible  <bruno@clisp.org>
26101
26102         New module 'ioctl'.
26103         * modules/ioctl: New file.
26104         * lib/sys_socket.in.h (ioctl): Remove declaration.
26105         * lib/winsock.c: Include <sys/ioctl.h>.
26106         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
26107         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
26108         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
26109         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
26110         * doc/posix-functions/ioctl.texi: Mention the new module.
26111
26112 2008-10-09  Bruno Haible  <bruno@clisp.org>
26113
26114         New module 'sys_ioctl'.
26115         * lib/sys_ioctl.in.h: New file.
26116         * m4/sys_ioctl_h.m4: New file.
26117         * modules/sys_ioctl: New file.
26118         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
26119
26120 2008-10-09  Bruno Haible  <bruno@clisp.org>
26121
26122         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
26123         * lib/winsock.c: Include <stdarg.h>.
26124         (rpl_ioctl): Change to second argument 'int' and then varargs.
26125
26126 2008-10-09  Bruno Haible  <bruno@clisp.org>
26127
26128         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
26129         when the sys_socket module is present and the system has <winsock2.h>.
26130
26131 2008-10-09  Bruno Haible  <bruno@clisp.org>
26132
26133         * doc/posix-functions/close.texi: Mention module 'close' instead of
26134         module 'sys_socket'.
26135
26136 2008-10-09  Bruno Haible  <bruno@clisp.org>
26137
26138         * doc/glibc-headers/sys_ioctl.texi: New file.
26139         * doc/gnulib.texi: Include it.
26140
26141 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
26142             Bruno Haible  <bruno@clisp.org>
26143
26144         Combine the two replacements of 'close'.
26145         * lib/sys_socket.in.h (close): Define to a reminder to include
26146         <unistd.h>.
26147         (_gl_close_fd_maybe_socket): New declaration.
26148         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
26149         * lib/winsock.c (close): Remove undefinition.
26150         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
26151         needed for the gnulib module 'close'.
26152         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
26153         define to an error symbol or to a warning, if suitable.
26154         * lib/close.c: Include <sys/socket.h>.
26155         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
26156         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
26157         UNISTD_H_HAVE_WINSOCK2_H.
26158         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
26159         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26160         UNISTD_H_HAVE_WINSOCK2_H.
26161         * modules/sys_socket (Files): Add m4/unistd_h.m4.
26162         (configure.ac): Set a module indicator.
26163         (Makefile.am): Substitute GNULIB_CLOSE.
26164         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
26165         * modules/poll-tests (Depends-on): Add close.
26166         * modules/select-tests (Depends-on): Likewise.
26167
26168 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
26169             Bruno Haible  <bruno@clisp.org>
26170
26171         New module 'close'.
26172         * modules/close: New file.
26173         * lib/unistd.in.h (close): Move declaration out of the
26174         FCHDIR_REPLACEMENT scope.
26175         (_gl_unregister_fd): New declaration.
26176         * lib/close.c: New file.
26177         * lib/fchdir.c (rpl_close): Remove function.
26178         * m4/close.m4: New file.
26179         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
26180         close.
26181         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
26182         REPLACE_CLOSE.
26183         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
26184         REPLACE_CLOSE.
26185         * modules/fchdir (Depends-on): Add close.
26186
26187 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
26188             Bruno Haible  <bruno@clisp.org>
26189
26190         * lib/fcntl.in.h (open): Simplify conditionals.
26191         (_gl_register_fd): New declaration.
26192         * lib/fchdir.c (rpl_open): Remove function.
26193         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
26194         also.
26195         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
26196         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
26197         open.
26198
26199 2008-10-09  Jim Meyering  <meyering@redhat.com>
26200
26201         GNUmakefile: use the more name-space-friendly "_version"
26202         * top/GNUmakefile (_dummy): Update.
26203         (_version): Rename from "version".
26204
26205 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
26206             Bruno Haible  <bruno@clisp.org>
26207
26208         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
26209         rpl_close.
26210         (_gl_register_fd): New function, extracted from rpl_open.
26211         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
26212         (rpl_open, rpl_opendir): Use _gl_register_fd.
26213
26214 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
26215
26216         Fix organization of 'open' replacement.
26217         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
26218         (gl_FUNC_OPEN): Use it.
26219         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
26220
26221 2008-10-08  Bruno Haible  <bruno@clisp.org>
26222
26223         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
26224
26225 2008-10-08  Simon Josefsson  <simon@josefsson.org>
26226
26227         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
26228         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
26229         listen).
26230
26231 2008-10-08  Eric Blake  <ebb9@byu.net>
26232
26233         GNUmakefile: add 'make version' target
26234         * top/GNUmakefile (_curr-ver): Split version update rules...
26235         (version): ...into a target.
26236
26237 2008-10-07  Bruno Haible  <bruno@clisp.org>
26238
26239         Use a more portable replacement expression for -0.0L.
26240         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
26241         instead of -0.0L. Fix m4 quotation.
26242
26243         * tests/test-signbit.c: Include <float.h>.
26244         (minus_zero): New variable.
26245         (test_signbitl): Use minus_zero instead of -zero.
26246         * modules/signbit-tests (Depends-on): Add float.
26247
26248         * tests/test-ceill.c: Include <float.h>.
26249         (zero): Remove variable.
26250         (minus_zero): New variable.
26251         (main): Use minus_zero instead of -zero.
26252         * modules/ceill-tests (Depends-on): Add float.
26253
26254         * tests/test-floorl.c: Include <float.h>.
26255         (zero): Remove variable.
26256         (minus_zero): New variable.
26257         (main): Use minus_zero instead of -zero.
26258         * modules/floorl-tests (Depends-on): Add float.
26259
26260         * tests/test-roundl.c: Include <float.h>.
26261         (zero): Remove variable.
26262         (minus_zero): New variable.
26263         (main): Use minus_zero instead of -zero.
26264         * modules/roundl-tests (Depends-on): Add float.
26265
26266         * tests/test-truncl.c: Include <float.h>.
26267         (zero): Remove variable.
26268         (minus_zero): New variable.
26269         (main): Use minus_zero instead of -zero.
26270         * modules/truncl-tests (Depends-on): Add float.
26271
26272         * tests/test-frexpl.c (zero): Remove variable.
26273         (minus_zero): New variable.
26274         (main): Use minus_zero instead of -zero.
26275         * modules/frexpl-tests (Depends-on): Add float.
26276
26277         * tests/test-isnan.c (zerol): Remove variable.
26278         (minus_zerol): New variable.
26279         (test_long_double): Use minus_zerol instead of -zerol.
26280         * modules/isnan-tests (Depends-on): Add float.
26281
26282         * tests/test-isnanl.h (zero): Remove variable.
26283         (minus_zero): New variable.
26284         (main): Use minus_zero instead of -zero.
26285         * modules/isnanl-nolibm-tests (Depends-on): Add float.
26286         * modules/isnanl-tests (Depends-on): Add float.
26287
26288         * tests/test-ldexpl.c (zero): Remove variable.
26289         (minus_zero): New variable.
26290         (main): Use minus_zero instead of -zero.
26291         * modules/ldexpl-tests (Depends-on): Add float.
26292
26293         * tests/test-snprintf-posix.h (zerol): Remove variable.
26294         (minus_zerol): New variable.
26295         (test_function): Use minus_zerol instead of -zerol.
26296         * modules/snprintf-posix-tests (Depends-on): Add float.
26297         * modules/vsnprintf-posix-tests (Depends-on): Add float.
26298
26299         * tests/test-sprintf-posix.h (zerol): Remove variable.
26300         (minus_zerol): New variable.
26301         (test_function): Use minus_zerol instead of -zerol.
26302         * modules/sprintf-posix-tests (Depends-on): Add float.
26303         * modules/vsprintf-posix-tests (Depends-on): Add float.
26304
26305         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
26306         (minus_zerol): New variable.
26307         (test_function): Use minus_zerol instead of -zerol.
26308         * modules/vasnprintf-posix-tests (Depends-on): Add float.
26309
26310         * tests/test-vasprintf-posix.c (zerol): Remove variable.
26311         (minus_zerol): New variable.
26312         (test_function): Use minus_zerol instead of -zerol.
26313         * modules/vasprintf-posix-tests (Depends-on): Add float.
26314
26315 2008-10-07  Simon Josefsson  <simon@josefsson.org>
26316
26317         * MODULES.html.sh (Support for building documentation): Mention
26318         pmccabe2html.  Sort entries.
26319
26320         Add pmccabe2html module, from gnupdf.
26321         * build-aux/pmccabe.css: New file.
26322         * build-aux/pmccabe2html: New file.
26323         * m4/pmccabe2html.m4: New file.
26324         * modules/pmccabe2html: New file.
26325
26326 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
26327
26328         flock: new module
26329         * MODULES.html.sh: Add to list of modules.
26330         * lib/flock.c: flock implementation for Windows and Unix systems
26331         which have fcntl.
26332         * doc/glibc-functions/flock.texi: Update documentation.
26333         * lib/sys_file.in.h: <sys/file.h> header file.
26334         * m4/flock.m4: M4 macros.
26335         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
26336         * modules/flock: flock module.
26337         * modules/flock-tests: flock tests module.
26338         * modules/sys_file: sys/file.h module.
26339         * tests/test-flock.c: test suite for flock.
26340
26341 2008-10-06  Jim Meyering  <meyering@redhat.com>
26342
26343         bootstrap: check for LT_INIT more portably still ;-)
26344         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
26345         Spotted by Bruno Haible.
26346
26347 2008-10-06  Eric Blake  <ebb9@byu.net>
26348
26349         test-signbit: avoid tripping Irix cc bug on -0.0L
26350         * tests/test-signbit.c (minus_zerol): Delete, and replace with
26351         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
26352         entire testsuite consistent and avoids an Irix 6.2 bug.
26353
26354 2008-10-05  Bruno Haible  <bruno@clisp.org>
26355             Jim Meyering  <jim@meyering.net>
26356
26357         Add an option for ignoring EPIPE during close_stdout.
26358         * lib/closeout.h: Include <stdbool.h>.
26359         (close_stdout_set_ignore_EPIPE): New declaration.
26360         * lib/closeout.c: Include <stdbool.h>.
26361         (ignore_EPIPE): New variable.
26362         (close_stdout_set_ignore_EPIPE): New function.
26363         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
26364         * lib/close-stream.c (close_stream): Mention the possible EPIPE
26365         failure.
26366         * modules/closeout (Depends-on): Add stdbool.
26367
26368 2008-10-05  Bruno Haible  <bruno@clisp.org>
26369
26370         * modules/accept: New file.
26371         * modules/bind: New file.
26372         * modules/connect: New file.
26373         * modules/getpeername: New file.
26374         * modules/getsockname: New file.
26375         * modules/getsockopt: New file.
26376         * modules/listen: New file.
26377         * modules/recv: New file.
26378         * modules/recvfrom: New file.
26379         * modules/send: New file.
26380         * modules/sendto: New file.
26381         * modules/setsockopt: New file.
26382         * modules/socket: New file.
26383         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
26384         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
26385         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
26386         the particular module is requested. Add a link warning when the
26387         particular module is not requested.
26388         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
26389         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
26390         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
26391         the particular module is requested.
26392         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
26393         gl_SYS_SOCKET_H_DEFAULTS): New macros.
26394         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
26395         * modules/sys_socket (Depends-on): Add link-warning.
26396         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
26397         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
26398         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
26399         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
26400         GL_LINK_WARNING.
26401         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
26402         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
26403         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
26404         * doc/posix-functions/getpeername.texi: Mention the new module
26405         'getpeername'.
26406         * doc/posix-functions/getsockname.texi: Mention the new module
26407         'getsockname'.
26408         * doc/posix-functions/getsockopt.texi: Mention the new module
26409         'getsockopt'.
26410         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
26411         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
26412         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
26413         * doc/posix-functions/send.texi: Mention the new module 'send'.
26414         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
26415         * doc/posix-functions/setsockopt.texi: Mention the new module
26416         'setsockopt'.
26417         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
26418         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
26419         listen, connect, accept.
26420         * modules/select-tests (Depends-on): Likewise.
26421
26422 2008-10-05  Bruno Haible  <bruno@clisp.org>
26423
26424         * lib/winsock.c (strerror): Remove unused #undef.
26425         (rpl_close): Remove unused local variable.
26426
26427         * modules/sys_socket (Depends-on); Add errno.
26428
26429 2008-10-05  Bruno Haible  <bruno@clisp.org>
26430
26431         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
26432         (select): Add a link warning when the 'select' module is not used.
26433         * modules/sys_select (Depends-on): Add link-warning.
26434         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
26435         Suggested by Paolo Bonzini.
26436
26437 2008-10-05  Jim Meyering  <meyering@redhat.com>
26438
26439         bootstrap: check for LT_INIT more portably
26440         * build-aux/bootstrap: Avoid using grep -E, since it's not
26441         portable enough.  Suggestion from Bruno Haible.
26442
26443 2008-10-05  Bruno Haible  <bruno@clisp.org>
26444
26445         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
26446         as being fixed by gnulib.
26447
26448 2008-10-05  Bruno Haible  <bruno@clisp.org>
26449
26450         * modules/select-tests: New file, mostly copied from
26451         modules/sys_select-tests.
26452         * tests/test-select.c: New file, mostly copied from
26453         tests/test-sys_select.c.
26454         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
26455         * modules/sys_select-tests (Depends-on): Remove all dependencies.
26456         (Makefile.am): Remove test_sys_select_LDADD.
26457
26458         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
26459         to an undefined symbol, for an error message.
26460         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
26461         (gl_SYS_SELECT_H_DEFAULTS): New macro.
26462         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
26463         winsock-select.c here.
26464         * modules/sys_select (Files): Remove lib/winsock-select.c.
26465         (Depends-on): Remove alloca.
26466         (Makefile.am): Substitute GNULIB_SELECT.
26467         * modules/select: New file.
26468         * doc/posix-functions/select.texi: Update.
26469
26470 2008-10-05  Bruno Haible  <bruno@clisp.org>
26471
26472         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
26473         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
26474         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
26475         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
26476         getdtablesize.
26477         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
26478         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
26479
26480 2008-10-05  Bruno Haible  <bruno@clisp.org>
26481
26482         * modules/getdtablesize-tests: New file.
26483         * tests/test-getdtablesize.c: New file.
26484
26485         New module 'getdtablesize'.
26486         * lib/unistd.in.h (getdtablesize): New declaration.
26487         * lib/getdtablesize.c: New file.
26488         * m4/getdtablesize.m4: New file.
26489         * modules/getdtablesize: New file.
26490         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26491         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
26492         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
26493         HAVE_GETDTABLESIZE.
26494         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
26495
26496 2008-10-05  Bruno Haible  <bruno@clisp.org>
26497
26498         * modules/sched (Makefile.am): Fix typo.
26499         Reported by Simon Josefsson.
26500
26501 2008-10-05  Jim Meyering  <meyering@redhat.com>
26502
26503         bootstrap: check for LT_INIT, too
26504         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
26505         are deprecated.  Suggestion from Ralf Wildenhues.
26506
26507 2008-10-05  Bruno Haible  <bruno@clisp.org>
26508
26509         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
26510         overriding them by ours.
26511         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
26512
26513 2008-10-05  Jim Meyering  <meyering@redhat.com>
26514
26515         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
26516         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
26517         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
26518
26519 2008-10-04  Bruno Haible  <bruno@clisp.org>
26520
26521         * modules/dup2 (License): Change to LGPLv2+.
26522         * modules/sleep (License): Likewise.
26523         * modules/perror (License): Likewise.
26524         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
26525         Blake.
26526         * modules/signal (License): Likewise.
26527         * modules/sigprocmask (License): Likewise.
26528         * modules/raise (License): Change to LGPLv2+, with approval by Jim
26529         Meyering.
26530
26531 2008-10-04  Bruno Haible  <bruno@clisp.org>
26532
26533         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
26534         Reported by Rainer Tammer <tammer@tammer.net>.
26535
26536 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
26537             Bruno Haible  <bruno@clisp.org>
26538
26539         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
26540         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
26541         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
26542
26543 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
26544
26545         filevercmp: new module
26546         * lib/filevercmp.h: New function filevercmp comparing version strings.
26547         * lib/filevercmp.c: Implementation of filevercmp function.
26548         * modules/filevercmp: Module metadata.
26549         * tests/test-filevercmp.c: Unit test for new module.
26550         * modules/filevercmp-tests: Unit test metadata.
26551         * MODULES.html.sh: Add filevercmp module.
26552
26553 2008-10-03  Bruno Haible  <bruno@clisp.org>
26554
26555         * lib/c-ctype.h: Add comment.
26556         Reported by Jim Meyering.
26557
26558 2008-10-02  Bruno Haible  <bruno@clisp.org>
26559
26560         * modules/posix_spawn-internal (Depends-on): Add 'open'.
26561
26562 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
26563
26564         * build-aux/bootstrap: Allow renaming bootstrap, and change the
26565         name of bootstrap.conf accordingly.
26566
26567 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
26568
26569         * build-aux/bootstrap: Install git-merge-changelog configuration
26570         items into .gitconfig if needed.
26571
26572 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
26573
26574         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
26575         git repository, and initialize/update it accordingly.
26576
26577 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
26578
26579         * modules/fsync-tests: New file.
26580         * tests/test-fsync.c: New file.
26581
26582         New module 'fsync'.
26583         * lib/fsync.c: New file.
26584         * m4/fsync.m4: New file.
26585         * modules/fsync: New file.
26586         * lib/unistd.in.h (fsync): New declaration.
26587         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
26588         GNULIB_FSYNC and HAVE_FSYNC.
26589         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
26590         * MODULES.html.sh (posix_functions): Add fsync.
26591         * doc/posix-functions/fsync.texi: Mention the new module.
26592
26593 2008-10-02  Jim Meyering  <meyering@redhat.com>
26594
26595         fts.c: sync with similar code from coreutils' remove.c
26596         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
26597         Guard also with "#if defined __linux__", since for now at least,
26598         this code is Linux-kernel-specific.
26599
26600 2008-10-02  Jim Meyering  <meyering@redhat.com>
26601
26602         fts: bug fixes
26603         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
26604         Include <sys/vfs.h>, not <sys/statfs.h>.
26605
26606         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
26607         Include <sys/vfs.h>, not <sys/statfs.h>.
26608
26609 2008-10-01  Bruno Haible  <bruno@clisp.org>
26610
26611         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
26612         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
26613         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
26614         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
26615         * doc/posix-functions/posix_spawnp.texi: Likewise.
26616         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
26617         whether posix_spawn actually works.
26618         * m4/pipe.m4 (gl_PIPE): Likewise.
26619         * modules/execute (Files): Add m4/posix_spawn.m4.
26620         * modules/pipe (Files): Add m4/posix_spawn.m4.
26621         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
26622
26623 2008-10-01  Jim Meyering  <meyering@redhat.com>
26624
26625         remove trailing spaces
26626         * NEWS: Likewise.
26627         * lib/poll.c (poll): Likewise.
26628         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
26629         * lib/winsock.c (rpl_close): Likewise.
26630         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
26631         * modules/yield: Likewise.
26632         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
26633         * tests/test-sys_select.c (connect_to_socket): Likewise.
26634
26635         fts.c: adjust a new interface to be more generally useful
26636         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
26637         (fts_build): Adjust caller.
26638
26639 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26640
26641         * modules/cond-tests: New file.
26642         * tests/test-cond.c: New file.
26643
26644 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26645             Bruno Haible  <bruno@clisp.org>
26646
26647         * modules/cond (Dependencies): Add errno, time.
26648         * lib/glthread/cond.h: Include <time.h>.
26649         (gl_cond_define, gl_cond_define_initialized): Use the same definition
26650         across platforms.
26651
26652 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26653             Bruno Haible  <bruno@clisp.org>
26654
26655         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
26656
26657 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26658             Bruno Haible  <bruno@clisp.org>
26659
26660         * modules/tls-tests (Depends-on): Add thread, yield.
26661         (configure.ac): Remove all checks.
26662         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
26663         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
26664         gl_thread_self): Remove definitions. Include glthread/thread.h and
26665         glthread/yield.h instead.
26666         (test_tls): Pass an additional NULL argument to gl_thread_join.
26667
26668 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26669             Bruno Haible  <bruno@clisp.org>
26670
26671         * modules/lock-tests (Depends-on): Add thread, yield.
26672         (configure.ac): Remove all checks.
26673         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
26674         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
26675         gl_thread_self): Remove definitions. Include glthread/thread.h and
26676         glthread/yield.h instead.
26677         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
26678         additional NULL argument to gl_thread_join.
26679
26680 2008-09-30  Bruno Haible  <bruno@clisp.org>
26681
26682         Fix the Win32 implementation of the 'thread' module.
26683         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
26684         pointer type.
26685         (gl_thread_self): Invoke gl_thread_self_func.
26686         (gl_thread_self_func): New declaration.
26687         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
26688         (do_init_self_key, init_self_key): New functions.
26689         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
26690         Remove some fields.
26691         (running_threads, running_lock): Remove variables.
26692         (get_current_thread_handle): New function.
26693         (gl_thread_self_func, wrapper_func, glthread_create_func,
26694         glthread_join_func, gl_thread_exit_func): Largely rewritten and
26695         simplified.
26696
26697 2008-09-30  Bruno Haible  <bruno@clisp.org>
26698
26699         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
26700         files.
26701
26702 2008-09-30  Jim Meyering  <meyering@redhat.com>
26703
26704         fts.m4: correct the test for statfs.f_type
26705         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
26706         when checking for statfs.f_type.
26707
26708 2008-09-15  Simon Josefsson  <simon@josefsson.org>
26709
26710         tests: avoid some compiler warnings
26711         * tests/test-memchr.c (main): Pass NULL indirectly.
26712         * tests/test-getdate.c (main): Remove unused variable 'ret'.
26713
26714 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
26715
26716         getdate.y: disallow countable dayshifts like "4 yesterday ago"
26717         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
26718         exactly specified dayshifts.
26719         (dayshift): New rule.
26720         (rel): Add dayshift.
26721         (relative_time_table) [tomorrow, yesterday, today, now]:
26722         Use tDAY_SHIFT in place of tDAY_UNIT.
26723         * tests/test-getdate.c: Add tests for now-disallowed countable
26724         dayshifts, e.g., "4 yesterday ago".
26725
26726 2008-09-29  Bruno Haible  <bruno@clisp.org>
26727
26728         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
26729         * tests/test-posix_spawn1.in.sh: Renamed from
26730         tests/test-posix_spawn.in.sh.
26731         * tests/test-posix_spawn2.c: New file.
26732         * tests/test-posix_spawn2.in.sh: New file.
26733         * modules/posix_spawnp-tests (Files): Update.
26734         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
26735
26736 2008-09-29  Bruno Haible  <bruno@clisp.org>
26737
26738         Propagate effects of putenv/setenv/unsetenv to child processes.
26739         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
26740         * lib/pipe.c (create_pipe): Likewise.
26741
26742 2008-09-29  Bruno Haible  <bruno@clisp.org>
26743
26744         Enable use of shell scripts as executables in mingw.
26745         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
26746         run the program as a shell script.
26747         * lib/pipe.c (create_pipe): Likewise.
26748         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
26749         resulting array.
26750
26751 2008-09-29  Eric Blake  <ebb9@byu.net>
26752
26753         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
26754
26755 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
26756
26757         * doc/posix-functions/accept.texi: Update mingw problems.
26758         * doc/posix-functions/bind.texi: Update mingw problems.
26759         * doc/posix-functions/close.texi: Update mingw problems.
26760         * doc/posix-functions/connect.texi: Update mingw problems.
26761         * doc/posix-functions/getpeername.texi: Update mingw problems.
26762         * doc/posix-functions/getsockname.texi: Update mingw problems.
26763         * doc/posix-functions/getsockopt.texi: Update mingw problems.
26764         * doc/posix-functions/ioctl.texi: Update mingw problems.
26765         * doc/posix-functions/listen.texi: Update mingw problems.
26766         * doc/posix-functions/recv.texi: Update mingw problems.
26767         * doc/posix-functions/recvfrom.texi: Update mingw problems.
26768         * doc/posix-functions/select.texi: Update mingw problems.
26769         * doc/posix-functions/send.texi: Update mingw problems.
26770         * doc/posix-functions/sendto.texi: Update mingw problems.
26771         * doc/posix-functions/setsockopt.texi: Update mingw problems.
26772         * doc/posix-functions/socket.texi: Update mingw problems.
26773
26774 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
26775             Bruno Haible  <bruno@clisp.org>
26776
26777         * lib/sys_select.in.h: Include sys/time.h.
26778         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
26779         * modules/sys_select: Depend on sys_time.
26780         * tests/test-sys_select.c: Test that sys/select.h defines struct
26781         timeval fully.
26782
26783 2008-09-29  Bruno Haible  <bruno@clisp.org>
26784
26785         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
26786         * lib/sys_select.in.h: Likewise.
26787
26788 2008-09-29  Bruno Haible  <bruno@clisp.org>
26789
26790         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
26791
26792 2008-09-29  Bruno Haible  <bruno@clisp.org>
26793
26794         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
26795         Set LIBSOCKET instead of augmenting LIBS.
26796         * modules/sockets (Link): New section.
26797         * modules/sockets-tests (test_sockets_LDADD): New variable.
26798         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
26799         * modules/poll-tests (test_poll_LDADD): New variable.
26800         * NEWS: Document the change.
26801
26802 2008-09-29  Bruno Haible  <bruno@clisp.org>
26803
26804         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
26805         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
26806         ARPA_INET_H directly.
26807         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
26808
26809 2008-09-28  Bruno Haible  <bruno@clisp.org>
26810
26811         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
26812         from gl_HEADER_SYS_SOCKET.
26813         (gl_HEADER_SYS_SOCKET): Invoke it.
26814         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26815
26816 2008-09-28  Bruno Haible  <bruno@clisp.org>
26817
26818         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
26819         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
26820         Needed on OSF/1 4.0.
26821
26822 2008-09-28  Bruno Haible  <bruno@clisp.org>
26823
26824         Override open more carefully.
26825         * lib/open.c (orig_open): New function.
26826         (rpl_open): Use orig_open instead of open.
26827         * lib/fcntl.in.h: Add special invocation convention.
26828         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
26829         (gl_FUNC_OPEN): Invoke it.
26830
26831         Override freopen more carefully.
26832         * lib/freopen.c (orig_freopen): New function.
26833         (rpl_freopen): Use orig_freopen instead of freopen.
26834         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
26835         (gl_FUNC_FREOPEN): Invoke it.
26836
26837         Override fopen more carefully.
26838         * lib/fopen.c (orig_fopen): New function.
26839         (rpl_fopen): Use orig_fopen instead of fopen.
26840         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
26841         (gl_FUNC_FOPEN): Invoke it.
26842         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
26843
26844 2008-09-28  Bruno Haible  <bruno@clisp.org>
26845
26846         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
26847         SIGPIPE.
26848
26849 2008-09-28  Bruno Haible  <bruno@clisp.org>
26850
26851         * tests/test-sigaction.c (handler, main): Disable the check whether
26852         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
26853         glibc systems with LinuxThreads.
26854
26855 2008-09-28  Bruno Haible  <bruno@clisp.org>
26856
26857         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
26858
26859         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
26860         with AIX xlc.
26861         * lib/fcntl.in.h (open): Likewise.
26862         Reported by Rainer Tammer <tammer@tammer.net>.
26863
26864 2008-09-28  Bruno Haible  <bruno@clisp.org>
26865
26866         * modules/posix_spawnp-tests: New file.
26867         * tests/test-posix_spawn.c: New file.
26868         * tests/test-posix_spawn.in.sh: New file.
26869
26870         New module 'posix_spawnp'.
26871         * modules/posix_spawnp: New file.
26872         * lib/spawnp.c: New file, from GNU libc with modifications.
26873         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
26874
26875         New module 'posix_spawn'.
26876         * modules/posix_spawn: New file.
26877         * lib/spawn.c: New file, from GNU libc with modifications.
26878         * doc/posix-functions/posix_spawn.texi: Mention the new module.
26879
26880         New module 'posix_spawnattr_destroy'.
26881         * modules/posix_spawnattr_destroy: New file.
26882         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
26883         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
26884         module.
26885
26886         New module 'posix_spawnattr_setsigmask'.
26887         * modules/posix_spawnattr_setsigmask: New file.
26888         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
26889         modifications.
26890         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
26891         new module.
26892
26893         New module 'posix_spawnattr_getsigmask'.
26894         * modules/posix_spawnattr_getsigmask: New file.
26895         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
26896         modifications.
26897         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
26898         new module.
26899
26900         New module 'posix_spawnattr_setsigdefault'.
26901         * modules/posix_spawnattr_setsigdefault: New file.
26902         * lib/spawnattr_setdefault.c: New file, from GNU libc with
26903         modifications.
26904         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
26905         new module.
26906
26907         New module 'posix_spawnattr_getsigdefault'.
26908         * modules/posix_spawnattr_getsigdefault: New file.
26909         * lib/spawnattr_getdefault.c: New file, from GNU libc with
26910         modifications.
26911         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
26912         new module.
26913
26914         New module 'posix_spawnattr_setschedpolicy'.
26915         * modules/posix_spawnattr_setschedpolicy: New file.
26916         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
26917         modifications.
26918         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
26919         new module.
26920
26921         New module 'posix_spawnattr_getschedpolicy'.
26922         * modules/posix_spawnattr_getschedpolicy: New file.
26923         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
26924         modifications.
26925         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
26926         new module.
26927
26928         New module 'posix_spawnattr_setschedparam'.
26929         * modules/posix_spawnattr_setschedparam: New file.
26930         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
26931         modifications.
26932         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
26933         new module.
26934
26935         New module 'posix_spawnattr_getschedparam'.
26936         * modules/posix_spawnattr_getschedparam: New file.
26937         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
26938         modifications.
26939         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
26940         new module.
26941
26942         New module 'posix_spawnattr_setpgroup'.
26943         * modules/posix_spawnattr_setpgroup: New file.
26944         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
26945         modifications.
26946         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
26947         module.
26948
26949         New module 'posix_spawnattr_getpgroup'.
26950         * modules/posix_spawnattr_getpgroup: New file.
26951         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
26952         modifications.
26953         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
26954         module.
26955
26956         New module 'posix_spawnattr_setflags'.
26957         * modules/posix_spawnattr_setflags: New file.
26958         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
26959         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
26960         module.
26961
26962         New module 'posix_spawnattr_getflags'.
26963         * modules/posix_spawnattr_getflags: New file.
26964         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
26965         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
26966         module.
26967
26968         New module 'posix_spawnattr_init'.
26969         * modules/posix_spawnattr_init: New file.
26970         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
26971         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
26972         module.
26973
26974         New module 'posix_spawn_file_actions_destroy'.
26975         * modules/posix_spawn_file_actions_destroy: New file.
26976         * lib/spawn_faction_destroy.c: New file, from GNU libc with
26977         modifications.
26978         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
26979         the new module.
26980
26981         New module 'posix_spawn_file_actions_addopen'.
26982         * modules/posix_spawn_file_actions_addopen: New file.
26983         * lib/spawn_faction_addopen.c: New file, from GNU libc with
26984         modifications.
26985         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
26986         the new module.
26987
26988         New module 'posix_spawn_file_actions_adddup2'.
26989         * modules/posix_spawn_file_actions_adddup2: New file.
26990         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
26991         modifications.
26992         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
26993         the new module.
26994
26995         New module 'posix_spawn_file_actions_addclose'.
26996         * modules/posix_spawn_file_actions_addclose: New file.
26997         * lib/spawn_faction_addclose.c: New file, from GNU libc with
26998         modifications.
26999         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
27000         the new module.
27001
27002         New module 'posix_spawn_file_actions_init'.
27003         * modules/posix_spawn_file_actions_init: New file.
27004         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
27005         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
27006         new module.
27007
27008         New module 'posix_spawn-internal'.
27009         * modules/posix_spawn-internal: New file.
27010         * lib/spawn_int.h: New file, from GNU libc with modifications.
27011         * lib/spawni.c: New file, from GNU libc with modifications.
27012         * m4/posix_spawn.m4: New file.
27013
27014         New module 'spawn'.
27015         * modules/spawn: New file.
27016         * lib/spawn.in.h: New file, from GNU libc with modifications.
27017         * m4/spawn_h.m4: New file.
27018         * doc/posix-headers/spawn.texi: Mention the new module.
27019
27020 2008-09-28  Bruno Haible  <bruno@clisp.org>
27021
27022         * modules/sched-tests: New file.
27023         * tests/test-sched.c: New file.
27024
27025         New module 'sched'.
27026         * modules/sched: New file.
27027         * lib/sched.in.h: New file.
27028         * m4/sched_h.m4: New file.
27029         * doc/posix-headers/sched.texi: Mention the new module.
27030
27031 2008-09-27  Eric Blake  <ebb9@byu.net>
27032
27033         Fix previous patch, and tweak references to $0.
27034         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
27035         (func_version, func_gnulib_dir): Don't call this program
27036         gnulib-tool.
27037         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
27038         with using $0 in function.
27039         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
27040         (func_fatal_error): Reuse the name the user invoked us with.
27041
27042 2008-09-27  Bruno Haible  <bruno@clisp.org>
27043
27044         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
27045         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
27046         (gl_ICONV_H): Not here.
27047         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
27048         instead of assigning ICONV_H directly.
27049
27050         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
27051         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
27052         WCHAR_H directly.
27053
27054 2008-09-27  Bruno Haible  <bruno@clisp.org>
27055
27056         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
27057         * modules/arpa_inet (Depends-on): Add link-warning.
27058         (Makefile.am): Insert the definition of GL_LINK-WARNING.
27059         * modules/unistd (Makefile.am): Likewise.
27060
27061 2008-09-26  Bruno Haible  <bruno@clisp.org>
27062
27063         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
27064         variables.
27065         (func_version): Essentially copied from gnulib-tool.
27066         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
27067         func_readlink): Copied from gnulib-tool.
27068
27069 2008-09-26  Bruno Haible  <bruno@clisp.org>
27070
27071         * gnulib-tool (func_version): Change directory to $gnulib_dir before
27072         invoking git-version-gen.
27073
27074 2008-09-26  Bruno Haible  <bruno@clisp.org>
27075
27076         * posix-modules: Update to directory names changed on 2008-01-19.
27077         Remove commas in output before splitting into words. No more need to
27078         avoid 'ftruncate' since 2007-02-19.
27079
27080 2008-09-26  Bruno Haible  <bruno@clisp.org>
27081
27082         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
27083
27084 2008-09-26  Bruno Haible  <bruno@clisp.org>
27085
27086         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
27087         * modules/fwriteerror (Depends-on): Add errno.
27088
27089 2008-09-26  Bruno Haible  <bruno@clisp.org>
27090
27091         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
27092         * tests/test-vc-list-files-cvs.sh: Likewise.
27093
27094 2008-09-26  Bruno Haible  <bruno@clisp.org>
27095
27096         * doc/posix-headers/sys_resource.texi: Reorder items.
27097
27098 2008-09-26  Jim Meyering  <meyering@redhat.com>
27099
27100         fts: tweak inode comparison function
27101         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
27102         inode numbers, as documented.
27103
27104         fts: sort dirent entries on inode number before traversing
27105         This avoids a quadratic, seek-related performance penalty when
27106         operating on a directory containing many entries (measurable at 10k;
27107         3.5 hours at 2 million entries with a cold cache) on certain types
27108         of file systems, including ext3 and ext4, but not tmpfs.
27109         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
27110         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
27111         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
27112         (fs_handles_readdir_ordered_dirents_efficiently): New function.
27113         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
27114         (fts_build): Set the stat.st_ino member from D_INO.
27115         If it is likely to be useful, sort dirent entries on inode number.
27116
27117         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
27118         and the struct statfs.f_type member.
27119         * modules/fts (Depends-on): Add d-ino.
27120
27121 2008-09-26  Bruno Haible  <bruno@clisp.org>
27122
27123         * modules/sigpipe-die (Depends-on): Add sigpipe.
27124
27125         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
27126         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
27127         and GNULIB_STDIO_H_SIGPIPE are set.
27128         * lib/stdio-write.c: New file.
27129         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
27130         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
27131         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
27132         REPLACE_STDIO_WRITE_FUNCS.
27133         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
27134         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
27135         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
27136         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
27137         * modules/stdio (Files): Add lib/stdio-write.c.
27138         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
27139         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
27140         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
27141         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
27142         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
27143         REPLACE_FPRINTF_POSIX.
27144         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
27145         REPLACE_PRINTF_POSIX.
27146         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
27147         REPLACE_VFPRINTF_POSIX.
27148         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
27149         REPLACE_VPRINTF_POSIX.
27150         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
27151         SIGPIPE issue.
27152         * doc/posix-functions/fputc.texi: Likewise.
27153         * doc/posix-functions/fputs.texi: Likewise.
27154         * doc/posix-functions/fwrite.texi: Likewise.
27155         * doc/posix-functions/printf.texi: Likewise.
27156         * doc/posix-functions/putc.texi: Likewise.
27157         * doc/posix-functions/putchar.texi: Likewise.
27158         * doc/posix-functions/puts.texi: Likewise.
27159         * doc/posix-functions/vfprintf.texi: Likewise.
27160         * doc/posix-functions/vprintf.texi: Likewise.
27161
27162         * modules/safe-write (Depends-on): Add write.
27163
27164         * modules/sigpipe-tests: New file.
27165         * tests/test-sigpipe.c: New file.
27166         * tests/test-sigpipe.sh: New file.
27167
27168         * modules/write: New file.
27169         * lib/unistd.in.h: Include <sys/types.h>.
27170         (write): New declaration.
27171         * lib/write.c: New file.
27172         * m4/write.m4: New file.
27173         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
27174         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
27175         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
27176         GNULIB_WRITE, REPLACE_WRITE.
27177         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
27178         and the SIGPIPE issue.
27179
27180         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
27181         (raise): New declaration.
27182         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
27183         (ext_signal): New function.
27184         (rpl_raise): New function.
27185         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
27186         GNULIB_SIGNAL_H_SIGPIPE.
27187         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
27188         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
27189
27190         * modules/sigpipe: New file.
27191         * m4/sigpipe.m4: New file.
27192
27193 2008-09-25  Derek Price  <derek@ximbiot.com>
27194             Bruno Haible  <bruno@clisp.org>
27195
27196         * gnulib-tool (func_import): Report all license incompatibilities, not
27197         just the first one.
27198
27199 2008-09-25  Bruno Haible  <bruno@clisp.org>
27200
27201         * gnulib-tool (func_import): When computing the edits, consider not
27202         only the Makefile.ams that exist but also those that will be generated.
27203
27204 2008-09-25  Simon Josefsson  <simon@josefsson.org>
27205
27206         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
27207         fixes gnulib-tool --test warning about duplicate dependency.
27208
27209 2008-09-25  Bruno Haible  <bruno@clisp.org>
27210
27211         * gnulib-tool: Don't ask the user to perform edits in the generated
27212         Makefile.ams.
27213         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
27214         apply to the Makefile.am being generated.
27215         (func_emit_tests_Makefile_am): Execute edits that apply to the
27216         Makefile.am being generated.
27217         (func_import): Setup list of Makefile.am edits before emitting the
27218         Makefile.ams, not at the end.
27219         (func_create_testdir): Update.
27220         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
27221
27222 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27223
27224         * gnulib-tool (func_import): Store the --tests-base option in the
27225         comment in gnulib-cache.m4.
27226
27227 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
27228
27229         * NEWS: Document increased portability that sys_select now provides.
27230
27231         * lib/sys_select.in.h: Install select wrapper.
27232         * lib/sys_socket.in.h: Use more descriptive name when there is no
27233         select wrapper.
27234         * lib/winsock-select.c: New.
27235         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
27236         Require gl_HEADER_SYS_SOCKET.
27237         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
27238         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
27239         * tests/test-sys_select.c: Add functional tests.
27240
27241 2008-09-24  Eric Blake  <ebb9@byu.net>
27242
27243         open, fopen: close fd leak in last patch
27244         * lib/open.c (rpl_open): Close fd before returning error.
27245         * lib/fopen.c (rpl_fopen): Close fd before returning error.
27246         * doc/posix-functions/open.texi (open): Document that Irix also
27247         has the bug.
27248         * doc/posix-functions/fopen.texi (fopen): Likewise.
27249         Reported by Paolo Bonzini.
27250
27251 2008-09-24  Bruno Haible  <bruno@clisp.org>
27252
27253         Ensure that a filename ending in a slash cannot be used to access a
27254         non-directory.
27255         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
27256         to check whether it's really a directory.
27257         * lib/fopen.c: Include fcntl.h, unistd.h.
27258         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
27259         and fdopen().
27260         * modules/fopen (Depends-on): Add unistd.
27261         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
27262         * tests/test-fopen.c (main): Likewise.
27263         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
27264         * doc/posix-functions/fopen.texi: Likewise.
27265         Reported by Eric Blake.
27266
27267 2008-09-23  Eric Blake  <ebb9@byu.net>
27268
27269         c-stack: avoid compiler optimizations when provoking overflow
27270         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
27271         recursion harder to optimize, to ensure a stack overflow occurs.
27272         * tests/test-c-stack.c (recurse): Likewise.
27273         Borrowed from libsigsegv.
27274
27275         c-stack: work around Irix sigaltstack bug
27276         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
27277         whether sigaltstack uses wrong end of stack_t (copied in part from
27278         libsigsegv).
27279         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
27280         Irix bug, without requiring an over-allocation.
27281         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
27282         bug.
27283
27284         fopen: document mingw bug on directories
27285         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
27286         not allowing a stream visiting a directory, even though reading
27287         from such a stream is not portable.
27288
27289 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
27290
27291         * lib/poll.c: Rewrite.
27292         * modules/poll: Depend on alloca.
27293
27294 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
27295
27296         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
27297         instead define prototypes for a full set of wrappers.  Ensure
27298         that Cygwin does not use the compatibility code, which is only
27299         for MinGW.
27300         * lib/winsock.c: New.
27301         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
27302         * modules/sys_socket: Add lib/winsock.c.
27303
27304         * modules/poll-tests: Add errno and perror.
27305         * tests/test-poll.c: Use ioctl, not ioctlsocket.
27306
27307 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
27308
27309         * tests/test-poll.c: Downgrade minimum needed Winsock version.
27310
27311 2008-09-23  Bruno Haible  <bruno@clisp.org>
27312
27313         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
27314         * doc/glibc-functions/*: Likewise.
27315
27316 2008-09-23  Simon Josefsson  <simon@josefsson.org>
27317
27318         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
27319         success.
27320
27321 2008-09-22  Eric Blake  <ebb9@byu.net>
27322             Bruno Haible  <bruno@clisp.org>
27323
27324         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
27325         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
27326         supply %A but mishandle pseudo-NaN.
27327         Reported by Simon Josefsson.
27328
27329 2008-09-21  Bruno Haible  <bruno@clisp.org>
27330
27331         * tests/test-lock.c (main): Tweak skip message.
27332         * tests/test-tls.c (main): Likewise.
27333
27334 2008-09-21  Bruno Haible  <bruno@clisp.org>
27335
27336         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
27337         whether 'struct sigaction' has sa_sigaction here...
27338         (gl_PREREQ_SIG_HANDLER_H): ... not here.
27339         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
27340
27341 2008-09-21  Bruno Haible  <bruno@clisp.org>
27342
27343         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
27344         section.
27345         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
27346         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
27347         the new section.
27348         (Support for obsolete systems lacking POSIX:2001): New section.
27349         (String handling <string.h>): Move strdup to the new section.
27350         Suggested by Simon Josefsson and Paolo Bonzini.
27351
27352 2008-09-21  Bruno Haible  <bruno@clisp.org>
27353
27354         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
27355         exponents in %e and %g results on 'long double'. Needed for mingw's
27356         improved *printf functions.
27357         * tests/test-vasprintf-posix.c (test_function): Likewise.
27358         * tests/test-snprintf-posix.h (test_function): Likewise.
27359         * tests/test-sprintf-posix.h (test_function): Likewise.
27360         Reported by Eric Blake.
27361
27362 2008-09-21  Bruno Haible  <bruno@clisp.org>
27363
27364         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
27365         * tests/test-sprintf-posix.h (test_function): Likewise.
27366
27367 2008-09-21  Bruno Haible  <bruno@clisp.org>
27368
27369         * modules/getpass (Depends-on): Add strdup-posix.
27370
27371         New module 'strdup-posix'.
27372         * modules/strdup-posix: New file.
27373         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
27374         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
27375         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27376         REPLACE_STRDUP.
27377         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
27378         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
27379         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
27380         strdup-posix.
27381
27382         * modules/strdup (Depends-on): Remove malloc-posix.
27383
27384 2008-09-20  Bruno Haible  <bruno@clisp.org>
27385
27386         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
27387         Wildenhues.
27388
27389 2008-09-20  Bruno Haible  <bruno@clisp.org>
27390
27391         Ensure that wint_t gets defined on IRIX 5.3.
27392         * lib/wchar.in.h (wint_t): Define if not defined by the system.
27393         * lib/wctype.in.h (wint_t): Likewise.
27394         (__wctype_wint_t): Remove type.
27395         (isw*): Use wint_t instead of __wctype_wint_t.
27396         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
27397         * modules/wchar (Files): Add m4/wint_t.m4.
27398         (Makefile.am): Substitute HAVE_WINT_T.
27399         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
27400         * tests/test-wctype.c: Check that wint_t is defined.
27401         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
27402         * doc/posix-headers/wctype.texi: Likewise.
27403         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27404
27405 2008-09-18  Bruno Haible  <bruno@clisp.org>
27406
27407         * gnulib-tool (func_exit): Update comment.
27408
27409 2008-09-18  Simon Josefsson  <simon@josefsson.org>
27410
27411         * modules/getaddrinfo (Depends-on): Remove strdup, this module
27412         assumes strdup exists and does not depend on strdup to return
27413         ENOMEM on out of memory conditions.
27414
27415 2008-09-18  Bruno Haible  <bruno@clisp.org>
27416
27417         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
27418         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
27419         digits for the exponent.
27420
27421 2008-09-18  Jim Meyering  <meyering@redhat.com>
27422             Bruno Haible  <bruno@clisp.org>
27423
27424         * lib/vasnprintf.c (decimal_point_char): Define also if
27425         NEED_PRINTF_INFINITE_LONG_DOUBLE.
27426
27427 2008-09-16  Bruno Haible  <bruno@clisp.org>
27428         and Eric Blake  <ebb9@byu.net>
27429
27430         vasnprintf: support Irix 5.3
27431         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
27432         that mishandle long double infinity.
27433         Reported by Tom G. Christensen.
27434
27435 2008-09-16  Bruno Haible  <bruno@clisp.org>
27436
27437         * doc/glibc-functions/scandir.texi: Mention the function is missing on
27438         Solaris 9.
27439         * doc/glibc-functions/alphasort.texi: Likewise.
27440         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
27441
27442 2008-09-16  Jim Meyering  <meyering@redhat.com>
27443
27444         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
27445         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
27446         a umask modification leak out of a subshell.  Otherwise, the
27447         opensolaris /bin/sh would be accepted and thus cause unwarranted
27448         failures in the coreutils test suite.
27449
27450 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
27451
27452         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
27453         to succeed.
27454
27455 2008-09-16  Jim Meyering  <meyering@redhat.com>
27456
27457         avoid spurious test failure when library is built without ACL support
27458         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
27459         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
27460         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
27461         * tests/test-copy-acl.sh: Likewise.
27462
27463 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27464
27465         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
27466         based on character occurrence counts.
27467
27468 2008-09-15  Eric Blake  <ebb9@byu.net>
27469
27470         tests: avoid some compiler warnings
27471         * tests/test-memchr.c (main): Pass NULL indirectly.
27472         * tests/test-closein.c (main): Avoid unused variable.
27473
27474 2008-09-15  Bruno Haible  <bruno@clisp.org>
27475
27476         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
27477         are missing on OpenBSD 4.0 individually.
27478         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
27479
27480 2008-09-15  Bruno Haible  <bruno@clisp.org>
27481
27482         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
27483         * doc/posix-functions/strerror.texi: Mention also Cygwin.
27484         * doc/posix-functions/perror.texi: Likewise.
27485         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
27486         is missing.
27487         Reported by Eric Blake.
27488
27489         * lib/errno.in.h: Use replacement values >= 2000.
27490         Reported by Eric Blake.
27491
27492 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27493
27494         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
27495         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
27496         limit.
27497         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
27498         compareseq was aborted.
27499
27500 2008-09-14  Bruno Haible  <bruno@clisp.org>
27501
27502         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
27503         yvec_edit_count.
27504         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
27505         (fstrcmp_bounded): Simplify result computation accordingly.
27506
27507 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27508
27509         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
27510         (fstrcmp): Define in terms of fstrcmp_bounded.
27511         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
27512         lower_bound argument.
27513         Return quickly if the result is certainly < lower_bound.
27514         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
27515
27516 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27517
27518         * lib/diffseq.h (EARLY_ABORT): New macro.
27519         (compareseq): Change return type to bool. Return true when EARLY_ABORT
27520         evaluates to true.
27521
27522 2008-09-14  Bruno Haible  <bruno@clisp.org>
27523
27524         * modules/perror-tests: New file.
27525         * tests/test-perror.sh: New file.
27526         * tests/test-perror.c: New file.
27527
27528         New module 'perror'.
27529         * lib/stdio.in.h (perror): New declaration.
27530         * lib/perror.c: New file.
27531         * m4/perror.m4: New file.
27532         * modules/perror: New file.
27533         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
27534         * doc/posix-functions/perror.texi: Mention the perror module.
27535         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
27536         REPLACE_PERROR.
27537         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
27538         REPLACE_PERROR.
27539
27540 2008-09-14  Bruno Haible  <bruno@clisp.org>
27541
27542         * modules/stdio (Makefile.am): Reorder to match the order in
27543         lib/stdio.in.h.
27544         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
27545
27546 2008-09-13  Bruno Haible  <bruno@clisp.org>
27547
27548         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
27549
27550 2008-09-13  Bruno Haible  <bruno@clisp.org>
27551
27552         Extend strerror to cover the added errno values.
27553         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
27554         (rpl_strerror): Provide error messages for the added errno values and
27555         for the WSA* values.
27556         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
27557         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
27558         strerror.
27559         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
27560         * modules/strerror (Depends-on): Add errno.
27561         * doc/posix-functions/strerror.texi: Document the change.
27562         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
27563         and EOVERFLOW.
27564
27565 2008-09-13  Bruno Haible  <bruno@clisp.org>
27566
27567         * modules/EOVERFLOW: Remove file.
27568         * m4/eoverflow.m4: Remove file.
27569         * modules/EOVERFLOW-tests: Remove file.
27570         * tests/test-EOVERFLOW.c: Remove file.
27571         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
27572         * modules/ftell (Depends-on): Likewise.
27573         * modules/getdelim (Depends-on): Likewise.
27574         * modules/getugroups (Depends-on): Likewise.
27575         * modules/poll (Depends-on): Likewise.
27576         * modules/snprintf (Depends-on): Likewise.
27577         * modules/sprintf-posix (Depends-on): Likewise.
27578         * modules/vasnprintf (Depends-on): Likewise.
27579         * modules/vasprintf (Depends-on): Likewise.
27580         * modules/vfprintf-posix (Depends-on): Likewise.
27581         * modules/vsnprintf (Depends-on): Likewise.
27582         * modules/vsprintf-posix (Depends-on): Likewise.
27583         * modules/xvasprintf (Depends-on): Likewise.
27584         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27585         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
27586         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
27587         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
27588         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27589         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
27590         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
27591         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
27592         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27593         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
27594         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
27595         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
27596         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27597         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
27598         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
27599         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
27600         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27601         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
27602         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
27603         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
27604         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27605         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
27606         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
27607         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
27608         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
27609         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27610         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
27611         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
27612         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
27613         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
27614         * MODULES.html.sh: Remove EOVERFLOW.
27615         * NEWS: Mention the change.
27616
27617 2008-09-13  Bruno Haible  <bruno@clisp.org>
27618
27619         * modules/errno-tests: New file.
27620         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
27621
27622         * lib/errno.in.h: New file.
27623         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
27624         * modules/errno: New file.
27625         * doc/posix-headers/errno.texi: Update documentation.
27626         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
27627
27628 2008-09-13  Bruno Haible  <bruno@clisp.org>
27629
27630         * tests/test-poll.c: Use #if for native Windows, rather than testing
27631         __MSVCRT__.
27632
27633 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27634             Bruno Haible  <bruno@clisp.org>
27635
27636         * lib/glob.c: Don't include <pwd.h> on native Windows.
27637         (WINDOWS32): New macro.
27638         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
27639
27640 2008-09-13  Bruno Haible  <bruno@clisp.org>
27641
27642         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
27643         (ETIMEDOUT): Remove macro.
27644         (glthread_cond_timedwait_multithreaded): New declaration.
27645         (glthread_cond_timedwait): Use it.
27646         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
27647         (glthread_cond_timedwait_multithreaded): New function.
27648
27649 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
27650
27651         * modules/poll-tests: Do not check for io.h.
27652         * tests/test-poll.c: Check for __MSVCRT__ instead.
27653
27654 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
27655
27656         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
27657         * modules/poll-tests: Add inet_pton, stdbool, sockets.
27658         * tests/test-poll.c: Use them.  Use _pipe on Windows.
27659
27660 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
27661
27662         * modules/poll-tests: New.
27663         * tests/test-poll.c: New.
27664
27665 2008-09-12  Eric Blake  <ebb9@byu.net>
27666
27667         frexp: test for NetBSD failure on -0.0
27668         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
27669         not all, bugs from NetBSD 3.0 have been fixed.
27670         * doc/posix-functions/frexp.texi (frexp): Document bug.
27671         Reported by Thomas Klausner.
27672
27673         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
27674         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
27675         literal -0.0.
27676         Reported by Jonathan C. Patschke <jp@centtech.com>.
27677
27678 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27679
27680         * lib/glthread/cond.h: Use dummy implementation also if
27681         USE_WIN32_THREADS.
27682
27683 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27684
27685         * modules/fnmatch-posix (License): Change to LGPLv2+.
27686         * modules/fnmatch-gnu (License): Likewise.
27687
27688 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27689
27690         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
27691
27692 2008-09-11  Jim Meyering  <meyering@redhat.com>
27693
27694         * users.txt: Add gtk-vnc.
27695
27696 2008-09-08  Simon Josefsson  <simon@josefsson.org>
27697
27698         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
27699         rotate amounts.
27700
27701         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
27702         required for 16-bit and 8-bit rotates.
27703         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
27704         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
27705         UINT8_MAX instead of hard-coded constants.
27706         Suggested by Paul Eggert.
27707
27708 2008-09-07  Bruno Haible  <bruno@clisp.org>
27709
27710         * tests/test-striconveh.c (main): Check behaviour when converting from
27711         UTF-7.
27712
27713         Make striconveh work better with stateful encodings.
27714         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
27715         that iconv does not increment the inptr when returning -1/EINVAL.
27716
27717 2008-09-07  Bruno Haible  <bruno@clisp.org>
27718
27719         * build-aux/config.rpath: Update according to libtool-2.2.6.
27720         * build-aux/config.libpath: Likewise.
27721
27722 2008-09-06  Bruno Haible  <bruno@clisp.org>
27723
27724         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
27725         * lib/freadptr.c (freadptr): Likewise.
27726         * lib/freadseek.c (freadptrinc): Likewise.
27727         Reported by Simon Josefsson.
27728
27729 2008-09-06  Bruno Haible  <bruno@clisp.org>
27730
27731         * modules/freadptr (License): Change to LGPLv2+.
27732         * modules/freadseek (License): Likewise.
27733         Suggested by Eric Blake.
27734
27735         * modules/memchr2 (License): Change to LGPLv2+.
27736         Approved by Eric Blake.
27737
27738 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27739             Bruno Haible  <bruno@clisp.org>
27740
27741         Make gnulib-tool work with native 'sed' on AIX.
27742         * gnulib-tool (sed_noop): New variable.
27743         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
27744         func_add_or_update, func_create_testdir): Use it to initialize sed
27745         script variables.
27746         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27747
27748 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
27749             Bruno Haible  <bruno@clisp.org>
27750
27751         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
27752         also works after #include directives.
27753
27754 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
27755
27756         getdate.y: reject an out-of-range timezone value
27757         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
27758         the range [-24...+24].  When specified with only one or two digits,
27759         * tests/test-getdate.c: Tests for the fix.
27760         * doc/getdate.texi: Document this change.
27761
27762 2008-09-03  Bruno Haible  <bruno@clisp.org>
27763
27764         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
27765
27766 2008-09-02  Simon Josefsson  <simon@josefsson.org>
27767
27768         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
27769         <bruce.korb@gmail.com> with ideas from Ben Pfaff
27770         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
27771         Blake <ebb9@byu.net>.
27772
27773         * tests/test-bitrotate.c: Add more test vectors.
27774
27775 2008-09-02  Eric Blake  <ebb9@byu.net>
27776
27777         vasnprintf-posix: handle large precision via %.*d
27778         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
27779         when handling it ourselves.
27780         * tests/test-vasnprintf-posix.c (test_function): Add test.
27781         * tests/test-snprintf-posix.h (test_function): Likewise.
27782         * tests/test-sprintf-posix.h (test_function): Likewise.
27783         * tests/test-vasprintf-posix.c (test_function): Likewise.
27784         Reported by Alain Guibert.
27785
27786 2008-09-01  Eric Blake  <ebb9@byu.net>
27787
27788         c-stack: make configure-time check more robust
27789         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
27790         successful sigaction call.
27791         Reported by Tom G. Christensen.
27792
27793 2008-09-01  Bruno Haible  <bruno@clisp.org>
27794
27795         New module 'findprog-lgpl'.
27796         * modules/findprog-lgpl: New file.
27797         * lib/findprog-lgpl.c: New file.
27798         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
27799         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
27800         to decide whether to use strdup or xstrdup, concatenated_filename or
27801         xconcatenated_filename.
27802
27803 2008-09-01  Bruno Haible  <bruno@clisp.org>
27804
27805         Split module 'concat-filename' into 'concat-filename' (LGPL) and
27806         'xconcat-filename' (GPL).
27807         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
27808         (License): Change to LGPLv2+.
27809         * modules/xconcat-filename: New file.
27810         * lib/concat-filename.h (concatenated_filename): Change specification.
27811         (xconcatenated_filename): New declaration.
27812         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
27813         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
27814         memory situations.
27815         * lib/xconcat-filename.c: New file.
27816         * NEWS: Mention the change.
27817         * lib/findprog.c: Include concat-filename.h, not filename.h.
27818         (find_in_path): Use xconcatenated_filename instead of
27819         concatenated_filename.
27820         * lib/javacomp.c: Include concat-filename.h, not filename.h.
27821         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
27822         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
27823         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
27824         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
27825         instead of concatenated_filename.
27826         * lib/javaexec.c: Include concat-filename.h, not filename.h.
27827         (execute_java_class): Use xconcatenated_filename instead of
27828         concatenated_filename.
27829         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
27830         * modules/javacomp (Depends-on): Likewise.
27831         * modules/javaexec (Depends-on): Likewise.
27832
27833 2008-09-01  Bruno Haible  <bruno@clisp.org>
27834
27835         Split module 'filename' into 'filename' and 'concat-filename'.
27836         * modules/filename: Keep only lib/filename.h.
27837         (License): Change to LGPLv2+.
27838         * modules/concat-filename: New file, extracted from modules/filename.
27839         * lib/filename.h (concatenated_filename): Remove declaration.
27840         * lib/concat-filename.h: New file, extracted from lib/filename.h.
27841         * lib/concat-filename.c: Include concat-filename.h.
27842         * NEWS: Mention the change.
27843
27844 2008-09-01  Simon Josefsson  <simon@josefsson.org>
27845
27846         * lib/bitrotate.h (rotl8, rotr8): Add.
27847
27848         * modules/bitrotate (configure.ac): Need
27849         AC_REQUIRE([AC_C_INLINE]).
27850         (Description): Mention stdint.h.  Reported by Bruno Haible
27851         <bruno@clisp.org>.
27852
27853         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
27854         Paolo Bonzini <bonzini@gnu.org>.
27855
27856 2008-08-31  Bruno Haible  <bruno@clisp.org>
27857
27858         Assume Solaris specific bi-arch conventions on Solaris systems.
27859         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
27860         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
27861         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
27862         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
27863         like acl_libdirstem.
27864         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
27865         acl_libdirstem.
27866         * NEWS: Mention the change.
27867         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
27868
27869 2008-08-31  Jim Meyering  <meyering@redhat.com>
27870
27871         * lib/strftime.h: Add comments describing the two added arguments.
27872
27873         remove duplicate #include directives
27874         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
27875         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
27876
27877 2008-08-31  Bruno Haible  <bruno@clisp.org>
27878
27879         New module 'sigpipe-die'.
27880         * modules/sigpipe-die: New file.
27881         * lib/sigpipe-die.h: New file.
27882         * lib/sigpipe-die.c: New file.
27883         * MODULES.html.sh (Signal handling): Add sigpipe-die.
27884
27885 2008-08-31  Bruno Haible  <bruno@clisp.org>
27886
27887         Don't override previously installed signal handlers.
27888         * lib/fatal-signal.c (saved_sigactions): New variable.
27889         (uninstall_handlers): Reset the signal to the saved handler, not
27890         to SIG_DFL (except when ignored).
27891         (install_handlers): Save the previous handlers.
27892
27893 2008-08-30  Bruno Haible  <bruno@clisp.org>
27894
27895         * gnulib-tool (func_reset_sigpipe): New function.
27896         (func_get_automake_snippet, func_modules_transitive_closure,
27897         func_import): Invoke it before a join command that reads from stdin,
27898         to avoid "echo: write error: Broken pipe" error messages on stderr.
27899         Reported by Sam Steingold <sds@gnu.org>.
27900
27901 2008-08-30  Bruno Haible  <bruno@clisp.org>
27902
27903         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
27904         Code copied from m4/open.m4.
27905         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
27906         access and the filename ends in a slash. Code copied from lib/open.c.
27907         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
27908         * tests/test-fopen.c (main): Check against bug with trailing slash.
27909
27910 2008-08-29  Bruno Haible  <bruno@clisp.org>
27911
27912         Avoid some "gcc -pedantic" warnings.
27913         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
27914         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
27915         * lib/dirent.in.h: Likewise.
27916         * lib/fcntl.in.h: Likewise.
27917         * lib/float.in.h: Likewise.
27918         * lib/iconv.in.h: Likewise.
27919         * lib/inttypes.in.h: Likewise.
27920         * lib/locale.in.h: Likewise.
27921         * lib/math.in.h: Likewise.
27922         * lib/netinet_in.in.h: Likewise.
27923         * lib/search.in.h: Likewise.
27924         * lib/signal.in.h: Likewise.
27925         * lib/stdarg.in.h: Likewise.
27926         * lib/stdint.in.h: Likewise.
27927         * lib/stdio.in.h: Likewise.
27928         * lib/stdlib.in.h: Likewise.
27929         * lib/string.in.h: Likewise.
27930         * lib/strings.in.h: Likewise.
27931         * lib/sys_select.in.h: Likewise.
27932         * lib/sys_socket.in.h: Likewise.
27933         * lib/sys_stat.in.h: Likewise.
27934         * lib/sys_time.in.h: Likewise.
27935         * lib/sysexits.in.h: Likewise.
27936         * lib/time.in.h: Likewise.
27937         * lib/unistd.in.h: Likewise.
27938         * lib/wchar.in.h: Likewise.
27939         * lib/wctype.in.h: Likewise.
27940         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
27941         * modules/fchdir (Makefile.am): Likewise.
27942         * modules/fcntl (Makefile.am): Likewise.
27943         * modules/float (Makefile.am): Likewise.
27944         * modules/iconv_open (Makefile.am): Likewise.
27945         * modules/inttypes (Makefile.am): Likewise.
27946         * modules/locale (Makefile.am): Likewise.
27947         * modules/math (Makefile.am): Likewise.
27948         * modules/netinet_in (Makefile.am): Likewise.
27949         * modules/search (Makefile.am): Likewise.
27950         * modules/signal (Makefile.am): Likewise.
27951         * modules/stdarg (Makefile.am): Likewise.
27952         * modules/stdint (Makefile.am): Likewise.
27953         * modules/stdio (Makefile.am): Likewise.
27954         * modules/stdlib (Makefile.am): Likewise.
27955         * modules/string (Makefile.am): Likewise.
27956         * modules/strings (Makefile.am): Likewise.
27957         * modules/sys_select (Makefile.am): Likewise.
27958         * modules/sys_socket (Makefile.am): Likewise.
27959         * modules/sys_stat (Makefile.am): Likewise.
27960         * modules/sys_time (Makefile.am): Likewise.
27961         * modules/sysexits (Makefile.am): Likewise.
27962         * modules/time (Makefile.am): Likewise.
27963         * modules/unistd (Makefile.am): Likewise.
27964         * modules/wchar (Makefile.am): Likewise.
27965         * modules/wctype (Makefile.am): Likewise.
27966         Reported by Reuben Thomas <rrt@sc3d.org>.
27967
27968 2008-08-29  Bruno Haible  <bruno@clisp.org>
27969
27970         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
27971         any more.
27972
27973 2008-08-29  Simon Josefsson  <simon@josefsson.org>
27974
27975         * MODULES.html.sh (Misc): Add bitrotate.
27976
27977         * modules/bitrotate: New file.
27978
27979         * lib/bitrotate.h: New file.
27980
27981         * modules/bitrotate-tests: New file.
27982
27983         * tests/test-bitrotate.c: New file.
27984
27985         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
27986         on the bitrotate module.
27987
27988         * lib/arctwo.c: Use new bitrotate module.
27989
27990 2008-08-29  Jim Meyering  <meyering@redhat.com>
27991
27992         bootstrap: merge changes from coreutils
27993         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
27994         of copied files.  Remove a kludge, now that this is fixed.
27995         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
27996         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
27997         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
27998
27999 2008-08-29  Bruno Haible  <bruno@clisp.org>
28000
28001         * MODULES.html.sh: Remove --cvs-urls option.
28002
28003 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
28004
28005         maint.mk: adjust to file name change
28006         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
28007
28008 2008-08-28  Jim Meyering  <meyering@redhat.com>
28009
28010         * modules/getndelim2 (License): Relicense to LGPLv2+.
28011         Approved by Richard Stallman for the version of 1995, and by
28012         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
28013
28014 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
28015
28016         * lib/getdelim.c (flockfile, funlockfile): Make all of them
28017         dummy if one is not available.  Do not touch them if
28018         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
28019         (getc_maybe_unlocked): New.
28020         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
28021
28022 2008-08-26  Eric Blake  <ebb9@byu.net>
28023
28024         doc/INSTALL: resync from autoconf
28025         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
28026         (INSTALL_PRELUDE): Delete; this is done more efficiently by
28027         moving...
28028         * install.texi [!autoconf]: ...here.  Resync from autoconf.
28029         * INSTALL: Regenerate.
28030         * INSTALL.ISO: New file.
28031         * INSTALL.UTF-8: Likewise.
28032
28033 2008-08-26  Jim Meyering  <meyering@redhat.com>
28034
28035         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
28036         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
28037         these definitions conditional, so that they may be overridden, too.
28038
28039 2008-08-26  Bruno Haible  <bruno@clisp.org>
28040
28041         Generate INSTALL file variants with prettier quotes.
28042         * doc/Makefile (INSTALL_PRELUDE): New macro.
28043         (INSTALL): Use it.
28044         (INSTALL.ISO, INSTALL.UTF-8): New rules.
28045
28046 2008-08-26  Bruno Haible  <bruno@clisp.org>
28047
28048         Run makeinfo in an English locale.
28049         * doc/Makefile (MAKEINFO): New variable.
28050
28051 2008-08-26  Bruno Haible  <bruno@clisp.org>
28052
28053         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
28054         Suggested by Eric Blake.
28055
28056 2008-08-25  Bruno Haible  <bruno@clisp.org>
28057
28058         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
28059
28060 2008-08-25  Eric Blake  <ebb9@byu.net>
28061
28062         c-stack: test that stack overflow can be caught
28063         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
28064         that platform allows handling stack overflow; at least OS/2 EMX
28065         has sigaltstack, but crashes before transferring control to
28066         handler on stack overflow.
28067         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
28068         check for HAVE_STACK_OVERFLOW_HANDLING.
28069         Reported by Elbert Pol.
28070
28071 2008-08-25  Bruno Haible  <bruno@clisp.org>
28072
28073         * doc/posix-functions/strftime.texi: Fix description of strftime
28074         module.
28075
28076 2008-08-24  Bruno Haible  <bruno@clisp.org>
28077
28078         * tests/uniwidth/test-uc_width2.c: New file.
28079         * tests/uniwidth/test-uc_width2.sh: New file.
28080         * modules/uniwidth/width-tests (Files): Add the new files.
28081         (TESTS): Add uniwidth/test-uc_width2.sh.
28082         (TESTS_ENVIRONMENT): New variable.
28083         (check_PROGRAMS): Add test-uc_width2.
28084         (test_uc_width2_SOURCES): New variable.
28085
28086         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
28087         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
28088         not 0x00AB.
28089         Reported by Alexander V. Lukyanov <lav@netis.ru>.
28090
28091 2008-08-22  Eric Blake  <ebb9@byu.net>
28092
28093         test-lock, test-tls: mention why a test is skipped
28094         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
28095         skipped.
28096         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
28097
28098         count-one-bits: relax license
28099         * modules/count-one-bits (License): Relicense to LGPLv2+.
28100         Suggested by Ludovic Courtès, approved by Ben Pfaff.
28101
28102 2008-08-22  Andreas Schwab  <schwab@suse.de>
28103
28104         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
28105         Remove spurious space in assignment.
28106
28107 2008-08-21  Simon Josefsson  <simon@josefsson.org>
28108
28109         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
28110         Paul Eggert <eggert@CS.UCLA.EDU>.
28111
28112 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
28113
28114         * modules/gettext: Add m4/threadlib.m4.
28115
28116 2008-08-19  Eric Blake  <ebb9@byu.net>
28117
28118         test-c-stack: fix compilation failure on FreeBSD 5.0
28119         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
28120         headers before <sys/resource.h>.
28121         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
28122         the bug.
28123         Reported by Nelson H. F. Beebe.
28124
28125         strverscmp: migrate from "strverscmp.h" to <string.h>
28126         * modules/string (Makefile.am): Add new hooks.
28127         * modules/strverscmp (Files): Remove strverscmp.h.
28128         (Depends-on): Add string.
28129         (configure.ac): Add indicator.
28130         (Include): Mention new header.
28131         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
28132         defaults.
28133         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
28134         results.
28135         * lib/strverscmp.h: Delete.
28136         * lib/string.in.h (strverscmp): Provide declaration, when needed.
28137         * tests/test-strverscmp.c (includes): Adjust client.
28138         * lib/check-version.c (includes): Likewise.
28139         * NEWS: Document the change.
28140
28141         strverscmp: add unit test
28142         * modules/strverscmp-tests: New file.
28143         * tests/test-strverscmp.c: Likewise.
28144
28145 2008-08-19  Simon Josefsson  <simon@josefsson.org>
28146
28147         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
28148         regarding Windows crypto stuff, from Mono.
28149
28150 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
28151
28152         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
28153         if present, for intel RND.  Return error on failures.
28154
28155 2008-08-18  Ben Pfaff  <blp@gnu.org>
28156
28157         gitlog-to-changelog: give better diagnostic for failed pipe-open
28158         * build-aux/gitlog-to-changelog: Improve error message: suggest
28159         that the version of Git may be too old.
28160
28161 2008-08-18  Simon Josefsson  <simon@josefsson.org>
28162
28163         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
28164         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
28165
28166 2008-08-18  Bruno Haible  <bruno@clisp.org>
28167
28168         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
28169         pthread_in_use().
28170
28171 2008-08-18  Bruno Haible  <bruno@clisp.org>
28172
28173         * lib/glthread/threadlib.c: Include <pthread.h>.
28174
28175 2008-08-18  Bruno Haible  <bruno@clisp.org>
28176
28177         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
28178         glthread_recursive_lock_* macros.
28179         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
28180         Fix syntax error.
28181
28182 2008-08-18  Bruno Haible  <bruno@clisp.org>
28183
28184         * lib/glthread/thread.c: Avoid forcing a context switch right after
28185         thread creation.
28186
28187 2008-08-17  Bruno Haible  <bruno@clisp.org>
28188
28189         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
28190         * lib/glthread/thread.h: Provide Win32 specific implementation.
28191         * modules/thread (Files): Add lib/glthread/thread.c.
28192         (Depends-on): Add lock.
28193         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
28194
28195 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28196
28197         New module 'yield'.
28198         * modules/yield: New file.
28199         * lib/glthread/yield.h: New file.
28200         * m4/yield.m4: New file.
28201         * MODULES.html.sh (Multithreading): Add yield.
28202
28203 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28204
28205         New module 'thread'.
28206         * modules/thread: New file.
28207         * lib/glthread/thread.h: New file.
28208         * m4/thread.m4: New file.
28209         * MODULES.html.sh (Multithreading): Add thread.
28210
28211 2008-08-17  Bruno Haible  <bruno@clisp.org>
28212
28213         * lib/glthread/lock.h: Include <stdlib.h> always.
28214         * lib/glthread/tls.h: Likewise.
28215         * lib/glthread/cond.h: Likewise.
28216
28217 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28218
28219         New module 'cond'.
28220         * modules/cond: New file.
28221         * lib/glthread/cond.h: New file.
28222         * lib/glthread/cond.c: New file.
28223         * m4/cond.m4: New file.
28224         * MODULES.html.sh (Multithreading): Add cond.
28225
28226 2008-08-16  Eric Blake  <ebb9@byu.net>
28227
28228         c-stack: fix regression on Irix 5.3 from 2008-06-21
28229         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
28230         sa_sigaction...
28231         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
28232         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
28233         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
28234         * modules/signal (Makefile.am): Use the value.
28235         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
28236         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
28237         * doc/posix-headers/signal.texi (signal.h): Document this
28238         portability issue.
28239         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
28240         Reported by Tom G. Christensen.
28241
28242 2008-08-17  Bruno Haible  <bruno@clisp.org>
28243
28244         New module 'threadlib'.
28245         * modules/threadlib: New file.
28246         * lib/glthread/threadlib.c: New file, extracted from
28247         lib/glthread/lock.c.
28248         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
28249         functions.
28250         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
28251         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
28252         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
28253         macros.
28254         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
28255         (gl_DISABLE_THREADS): Remove macro.
28256         * modules/lock (Files): Remove build-aux/config.rpath.
28257         (Depends-on): Remove havelib. Add threadlib.
28258         (configure.ac-early): Remove section.
28259         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
28260         * modules/tls (Depends-on): Remove lock. Add threadlib.
28261         (Link): New section, copied from threadlib.
28262         * MODULES.html.sh (Multithreading): Add threadlib.
28263
28264 2008-08-14  Bruno Haible  <bruno@clisp.org>
28265
28266         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
28267         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
28268         glthread_rwlock_unlock, glthread_rwlock_destroy,
28269         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
28270         glthread_recursive_lock_destroy): Define as macros always.
28271         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
28272         glthread_lock_lock.
28273         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
28274         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
28275         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
28276         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
28277         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
28278         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
28279         (glthread_recursive_lock_lock_func): Renamed from
28280         glthread_recursive_lock_lock.
28281         (glthread_recursive_lock_unlock_func): Renamed from
28282         glthread_recursive_lock_unlock.
28283         (glthread_recursive_lock_destroy_func): Renamed from
28284         glthread_recursive_lock_destroy.
28285
28286 2008-08-14  Bruno Haible  <bruno@clisp.org>
28287
28288         * lib/glthread/lock.h: Renamed from lib/lock.h.
28289         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
28290         * lib/glthread/tls.h: Renamed from lib/tls.h.
28291         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
28292         * lib/fstrcmp.c: Update includes.
28293         * lib/strsignal.c: Update includes.
28294         * modules/lock (Files, Makefile.am): Update.
28295         (Include): Change to "glthread/lock.h".
28296         * modules/tls (Files, Makefile.am): Update.
28297         (Include): Change to "glthread/tls.h".
28298         * tests/test-lock.c: Update includes.
28299         * tests/test-tls.c: Update includes.
28300         * NEWS: Mention the renamed header files.
28301
28302 2008-08-11  Jim Meyering  <meyering@redhat.com>
28303
28304         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
28305
28306 2008-08-11  Eric Blake  <ebb9@byu.net>
28307
28308         test-c-stack: avoid C99-ism
28309         * tests/test-c-stack.c (main): Fix whitespace, move declaration
28310         before statement.
28311         Reported by Alain Guibert.
28312
28313 2008-08-10  Jim Meyering  <meyering@redhat.com>
28314
28315         ensure that return value of uinttostr et al are not ignored
28316         * lib/inttostr.h (__GNUC_PREREQ): Define.
28317         (__attribute_warn_unused_result__): Define.
28318         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
28319
28320 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
28321
28322         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
28323         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
28324
28325 2008-08-07  Jim Meyering  <meyering@redhat.com>
28326
28327         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
28328
28329         * modules/mkstemp (License): Relicense under LGPLv2+.
28330         * modules/tempname (License): Likewise.
28331
28332 2008-08-06  Bruno Haible  <bruno@clisp.org>
28333
28334         * lib/poll.c (poll): Further micro-optimization.
28335
28336 2008-08-06  Jim Meyering  <meyering@redhat.com>
28337
28338         inet_pton.c: use locale-independent tolower
28339         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
28340         (inet_pton6): Use c_tolower rather than tolower.
28341         * modules/inet_pton (Depends-on): Add c-ctype.
28342
28343 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
28344
28345         * lib/poll.c (poll): Avoid division when timeout is 0, cache
28346         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
28347
28348 2008-08-06  Jim Meyering  <meyering@redhat.com>
28349
28350         * modules/inet_pton (License): Relicense under LGPLv2+.
28351
28352 2008-08-03  Bruno Haible  <bruno@clisp.org>
28353
28354         Additional non-aborting API for lock and tls.
28355         * lib/lock.h: Include <errno.h>.
28356         (glthread_lock_init): New macro/function.
28357         (gl_lock_init): Define as wrapper around glthread_lock_init.
28358         (glthread_lock_lock): New macro/function.
28359         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
28360         (glthread_lock_unlock): New macro/function.
28361         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
28362         (glthread_lock_destroy): New macro/function.
28363         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
28364         (glthread_rwlock_init): New macro/function.
28365         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
28366         (glthread_rwlock_rdlock): New macro/function.
28367         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
28368         (glthread_rwlock_wrlock): New macro/function.
28369         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
28370         (glthread_rwlock_unlock): New macro/function.
28371         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
28372         (glthread_rwlock_destroy): New macro/function.
28373         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
28374         (glthread_recursive_lock_init): New macro/function.
28375         (gl_recursive_lock_init): Define as wrapper around
28376         glthread_recursive_lock_init.
28377         (glthread_recursive_lock_lock): New macro/function.
28378         (gl_recursive_lock_lock): Define as wrapper around
28379         glthread_recursive_lock_lock.
28380         (glthread_recursive_lock_unlock): New macro/function.
28381         (gl_recursive_lock_unlock): Define as wrapper around
28382         glthread_recursive_lock_unlock.
28383         (glthread_recursive_lock_destroy): New macro/function.
28384         (gl_recursive_lock_destroy): Define as wrapper around
28385         glthread_recursive_lock_destroy.
28386         (glthread_once): New macro/function.
28387         (gl_once): Define as wrapper around glthread_once.
28388         Update function declarations.
28389         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
28390         glthread_rwlock_init. Return error code.
28391         (glthread_rwlock_rdlock_multithreaded): Renamed from
28392         glthread_rwlock_rdlock. Return error code.
28393         (glthread_rwlock_wrlock_multithreaded): Renamed from
28394         glthread_rwlock_wrlock. Return error code.
28395         (glthread_rwlock_unlock_multithreaded): Renamed from
28396         glthread_rwlock_unlock. Return error code.
28397         (glthread_rwlock_destroy_multithreaded): Renamed from
28398         glthread_rwlock_destroy. Return error code.
28399         (glthread_recursive_lock_init_multithreaded): Renamed from
28400         glthread_recursive_lock_init. Return error code.
28401         (glthread_recursive_lock_lock_multithreaded): Renamed from
28402         glthread_recursive_lock_lock. Return error code.
28403         (glthread_recursive_lock_unlock_multithreaded): Renamed from
28404         glthread_recursive_lock_unlock. Return error code.
28405         (glthread_recursive_lock_destroy_multithreaded): Renamed from
28406         glthread_recursive_lock_destroy. Return error code.
28407         (glthread_once_call): Make static.
28408         (glthread_once_multithreaded): Renamed from glthread_once.
28409         * lib/tls.h: Include <errno.h>.
28410         (glthread_tls_key_init): New macro/function.
28411         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
28412         (glthread_tls_set): New macro/function.
28413         (gl_tls_set): Define as wrapper around glthread_tls_set.
28414         (glthread_tls_key_destroy): New macro/function.
28415         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
28416         Update function declarations.
28417         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
28418         glthread_tls_get.
28419         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
28420
28421 2008-08-04  Eric Blake  <ebb9@byu.net>
28422
28423         gnumakefile: use space, not TAB, outside of targets
28424         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
28425
28426 2008-08-02  Jim Meyering  <meyering@redhat.com>
28427
28428         getdate.y: avoid locale-dependent date parsing failure
28429         In Turkish locales, getdate would fail to recognize keywords
28430         containing a lowercase "i".  The solution is not to rely on
28431         locale-sensitive case-conversion.
28432         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
28433         (lookup_word): Use c_toupper in place of toupper.
28434         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
28435         Reported by Vefa Bicakci <bicave@superonline.com> in
28436         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
28437         * modules/getdate (Depends-on): Add c-ctype.
28438
28439 2008-08-02  Bruno Haible  <bruno@clisp.org>
28440
28441         * gnulib-tool (func_import): When updating or creating a .gitignore
28442         file, prepend each added line with a slash, and ignore leading slashes
28443         from the existing lines.
28444         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
28445
28446 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28447
28448         Portability fix for GNU make 3.79.1.
28449         * top/GNUmakefile: Avoid 'else COND', which older GNU make
28450         versions do not understand.
28451
28452 2008-08-01  Bruno Haible  <bruno@clisp.org>
28453
28454         Work around bug of HP-UX 10.20 cc with -0.0 literal.
28455         * tests/test-isnanf.h (zero): New variable.
28456         (main): Avoid literal -0.0f.
28457         * tests/test-isnand.h (zero): New variable.
28458         (main): Avoid literal -0.0.
28459         * tests/test-isnanl.h (zero): New variable.
28460         (main): Avoid literal -0.0L.
28461         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
28462         (test_float, test_double, test_long_double): Avoid literals -0.0f,
28463         -0.0, -0.0L.
28464         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
28465         (test_signbitd): Avoid literal -0.0.
28466         (test_signbitl): Avoid literal -0.0L.
28467         * tests/test-ceilf1.c (zero): New variable.
28468         (main): Avoid literal -0.0f.
28469         * tests/test-ceill.c (zero): New variable.
28470         (main): Avoid literal -0.0L.
28471         * tests/test-floorf1.c (zero): New variable.
28472         (main): Avoid literal -0.0f.
28473         * tests/test-floorl.c (zero): New variable.
28474         (main): Avoid literal -0.0L.
28475         * tests/test-roundf1.c (zero): New variable.
28476         (main): Avoid literal -0.0f.
28477         * tests/test-round1.c (zero): New variable.
28478         (main): Avoid literal -0.0.
28479         * tests/test-roundl.c (zero): New variable.
28480         (main): Avoid literal -0.0L.
28481         * tests/test-truncf1.c (zero): New variable.
28482         (main): Avoid literal -0.0f.
28483         * tests/test-trunc1.c (zero): New variable.
28484         (main): Avoid literal -0.0.
28485         * tests/test-truncl.c (zero): New variable.
28486         (main): Avoid literal -0.0L.
28487         * tests/test-frexp.c (zero): New variable.
28488         (main): Avoid literal -0.0.
28489         * tests/test-frexpl.c (zero): New variable.
28490         (main): Avoid literal -0.0L.
28491         * tests/test-ldexpl.c (zero): New variable.
28492         (main): Avoid literal -0.0L.
28493         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
28494         (zerod, zerol): New variables.
28495         (test_function): Avoid literals -0.0, -0.0L.
28496         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
28497         (zerod, zerol): New variables.
28498         (test_function): Avoid literals -0.0, -0.0L.
28499         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
28500         (zerod, zerol): New variables.
28501         (test_function): Avoid literals -0.0, -0.0L.
28502         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
28503         (zerod, zerol): New variables.
28504         (test_function): Avoid literals -0.0, -0.0L.
28505         * tests/test-strtod.c (zero): New variable.
28506         (main): Avoid literal -0.0.
28507         Reported by Jonathan C. Patschke <jp@centtech.com>.
28508
28509 2008-07-31  Jim Meyering  <meyering@redhat.com>
28510
28511         sha256.h: correct definition of SHA224_DIGEST_SIZE
28512         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
28513         Reported by Paulie Pena IV <paulie4@gmail.com>.
28514         Define as 224 / 8, rather than as a literal.
28515         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
28516         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
28517         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
28518
28519 2008-07-31  Bruno Haible  <bruno@clisp.org>
28520
28521         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
28522         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
28523         Reported by Jonathan Patschke <jp@centtech.com>.
28524
28525 2008-07-31  Bruno Haible  <bruno@clisp.org>
28526
28527         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
28528         Reported by Paolo Bonzini <bonzini@gnu.org>.
28529
28530 2008-07-30  Eric Blake  <ebb9@byu.net>
28531
28532         test-strtod: allow compilation without -lm
28533         * tests/test-strtod.c (main): Avoid link dependence on fabs.
28534         Reported by Dennis Clarke <blastwave@gmail.com>.
28535
28536 2008-07-28  Jim Meyering  <meyering@redhat.com>
28537
28538         bootstrap: work also when there are no .po files in po/
28539         * build-aux/bootstrap (update_po_files): Complete the change
28540         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
28541
28542 2008-07-27  Jim Meyering  <meyering@redhat.com>
28543
28544         * users.txt: Add zile.
28545
28546 2008-07-26  Ben Pfaff  <blp@gnu.org>
28547
28548         Add missing dependencies on new m4/exponent[fdl].m4 files.
28549         * modules/isnanf-nolibm: Add m4/exponentf.m4.
28550         * modules/isnand-nolibm: Add m4/exponentd.m4.
28551         * modules/isnanl-nolibm: Add m4/exponentl.m4.
28552         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
28553         m4/isnan[fdl].m4, because the macros actually used moved.
28554         Reported by Jim Meyering.
28555
28556 2008-07-14  Ben Pfaff  <blp@gnu.org>
28557
28558         Add isinf module.
28559         * lib/isinf.c: New file.
28560         * lib/math.in.h: Define isinf macro if we have decided to replace
28561         it.
28562         * m4/isinf.m4: New file.
28563         * m4/math_h.m4: Initialize and substitute variables for isinf
28564         module.
28565         * modules/isinf: New file.
28566         * modules/isinf-tests: New file.
28567         * modules/math: Add substitutions for new module.
28568         * tests/test-isinf.c: New file.
28569         * doc/posix-functions/isinf.texi: Mention new module.
28570         * MODULES.html.sh: Mention new module.
28571
28572 2008-07-14  Ben Pfaff  <blp@gnu.org>
28573
28574         Factor out some macros for use by additional modules.
28575         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
28576         exponentf.m4.
28577         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
28578         exponentd.m4.
28579         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
28580         file exponentl.m4.
28581         * m4/exponentf.m4: New file.
28582         * m4/exponentd.m4: New file.
28583         * m4/exponentl.m4: New file.
28584         * modules/isnanf: Use new file m4/exponentf.m4.
28585         * modules/isnand: Use new file m4/exponentd.m4.
28586         * modules/isnanl: Use new file m4/exponentl.m4.
28587
28588 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
28589
28590         mktime.c: normalize tp->tm_isdst value to -1/0/1.
28591         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
28592         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
28593         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
28594
28595         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
28596         readlink on platforms without PATH_MAX.
28597
28598 2008-07-21  Eric Blake  <ebb9@byu.net>
28599
28600         Warn, not fail, on stale version.
28601         * top/GNUmakefile (_curr-ver): Tone down previous patch.
28602
28603         Don't allow installation with stale devel version number.
28604         * top/GNUmakefile (_is-install-target): New macro.
28605         (_curr-ver): Forbid installation with stale version number.
28606
28607 2008-07-20  Bruno Haible  <bruno@clisp.org>
28608
28609         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
28610         TESTS_ENVIRONMENT.
28611         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
28612
28613 2008-07-20  Bruno Haible  <bruno@clisp.org>
28614
28615         * lib/c-stack.h (c_stack_action): Add documentation.
28616         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
28617
28618 2008-07-20  Bruno Haible  <bruno@clisp.org>
28619
28620         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
28621         * modules/readlink (License): Likewise.
28622
28623 2008-07-17  Eric Blake  <ebb9@byu.net>
28624
28625         * modules/c-stack (Link): Fix typo.
28626
28627         Make c-stack use libsigsegv, when available.
28628         * modules/c-stack (Depends-on): Add libsigsegv.
28629         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
28630         needed.
28631         * lib/c-stack.c (SIGSTKSZ): Define fallback.
28632         (segv_handler, overflow_handler, c_stack_action)
28633         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
28634         implementation when libsigsegv is available, but only when using
28635         the library is necessary.
28636         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
28637         comment, explaining why XSI check fails on Linux.
28638         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
28639         * tests/test-c-stack2.sh: Tweak skip message.
28640         * NEWS: Document new link-time requirements.
28641
28642 2008-07-16  Eric Blake  <ebb9@byu.net>
28643
28644         c-stack: Expose false positives when not using libsigsegv.
28645         * modules/c-stack-tests (Files): Expand test.
28646         * tests/test-c-stack.c (main): Add means to conditionally trigger
28647         non-overflow SIGSEGV.
28648         * tests/test-c-stack2.sh: New file.
28649
28650 2008-07-14  Bruno Haible  <bruno@clisp.org>
28651
28652         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
28653         Reported by Eric Blake.
28654
28655 2008-07-14  Sam Steingold  <sds@gnu.org>
28656             Bruno Haible  <bruno@clisp.org>
28657
28658         New module libsigsegv.
28659         * modules/libsigsegv: New file.
28660         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
28661         modifications.
28662         * MODULES.html.sh (Signal handling): New section.
28663
28664 2008-07-14  Bruno Haible  <bruno@clisp.org>
28665
28666         * modules/unictype/ctype-* (Description): Add the word "function".
28667         Improves the resulting doc in MODULES.html.
28668
28669 2008-07-12  Ben Pfaff  <blp@gnu.org>
28670
28671         Add longlong module.
28672         * modules/longlong: New file.
28673
28674 2008-07-12  Bruno Haible  <bruno@clisp.org>
28675
28676         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
28677         to empty.
28678
28679 2008-07-10  Ben Pfaff  <blp@gnu.org>
28680
28681         Add isnan module.
28682         * doc/posix-functions/isnan.texi: Mention new module.
28683         * lib/math.in.h: Define isnan macro if we have decided to replace
28684         it.
28685         * m4/isnan.m4: New file.
28686         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
28687         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
28688         also.
28689         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
28690         redundancy.
28691         * m4/math_h.m4: Initialize and substitute variables for isnan
28692         module.
28693         * modules/isnan: New file.
28694         * modules/isnan-tests: New file.
28695         * modules/math: Add substitutions for new module.
28696         * tests/test-isnan.c: New file.
28697         * MODULES.html.sh: Mention new module.
28698
28699 2008-07-10  Ben Pfaff  <blp@gnu.org>
28700
28701         Add isnanf module.
28702         * lib/isnanf.m4: New file.
28703         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
28704         (gl_HAVE_ISNANF_IN_LIBM): New macro.
28705         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
28706         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
28707         * modules/isnanf: New file.
28708         * modules/isnanf-tests: New file.
28709         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
28710         files.
28711         * tests/test-isnanf-nolibm.c: factored most of its contents into
28712         new file tests/test-isnanf.h.
28713         * tests/test-isnanf.h: New file.
28714         * tests/test-isnanf.c: New file.
28715         * MODULES.html.sh: Mention new module.
28716         * doc/glibc-functions/isnanf.texi: Mention new module.
28717
28718 2008-07-10  Ben Pfaff  <blp@gnu.org>
28719
28720         Add isnand module.
28721         * lib/isnand.h: New file.
28722         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
28723         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
28724         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
28725         functionality also.
28726         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
28727         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
28728         (gl_HAVE_ISNAND_IN_LIBM): New macro.
28729         * modules/isnand: New file.
28730         * modules/isnand-tests: New file.
28731         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
28732         files.
28733         * tests/test-isnand-nolibm.c: factored most of its contents into
28734         new file tests/test-isnand.h.
28735         * tests/test-isnand.h: New file.
28736         * tests/test-isnand.c: New file.
28737         * MODULES.html.sh: Mention new module.
28738
28739 2008-07-10  Ben Pfaff  <blp@gnu.org>
28740
28741         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
28742         * lib/isnand.h: Rename lib/isnand-nolibm.h.
28743         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
28744         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
28745         * modules/isnanf-nolibm: Update references to renamed files.
28746         * modules/isnand-nolibm: Likewise.
28747         * modules/isnanf-nolibm-tests: Likewise.
28748         * modules/isnand-nolibm-tests: Likewise.
28749         * lib/frexp.c: Likewise.
28750         * lib/isfinite.c: Likewise.
28751         * lib/signbitd.c: Likewise.
28752         * lib/signbitf.c: Likewise.
28753         * lib/vasnprintf.c: Likewise.
28754         * tests/test-ceilf1.c: Likewise.
28755         * tests/test-ceilf2.c: Likewise.
28756         * tests/test-floorf1.c: Likewise.
28757         * tests/test-floorf2.c: Likewise.
28758         * tests/test-frexp.c: Likewise.
28759         * tests/test-round1.c: Likewise.
28760         * tests/test-round2.c: Likewise.
28761         * tests/test-roundf1.c: Likewise.
28762         * tests/test-strtod.c: Likewise.
28763         * tests/test-trunc1.c: Likewise.
28764         * tests/test-trunc2.c: Likewise.
28765         * tests/test-truncf1.c: Likewise.
28766         * tests/test-truncf2.c: Likewise.
28767         * NEWS: Mention the renamed header files.
28768
28769 2008-07-11  Jim Meyering  <meyering@redhat.com>
28770
28771         vc-list-files: make the last-resort awk code more portable
28772         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
28773         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
28774         does not support it.
28775
28776 2008-07-10  Eric Blake  <ebb9@byu.net>
28777
28778         Work with tar's bootstrap.
28779         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
28780         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
28781         an m4 comment.
28782
28783 2008-07-09  Jim Meyering  <meyering@redhat.com>
28784
28785         posix-shell.m4: fix typo that made this test malfunction
28786         * m4/posix-shell.m4: Remove capitalization in variable name.
28787
28788 2008-07-08  Bruno Haible  <bruno@clisp.org>
28789
28790         * m4/onceonly.m4: Update comments.
28791         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28792
28793 2008-07-04  Jim Meyering  <meyering@redhat.com>
28794
28795         * users.txt: Add vc-dwim.
28796         (bison, coreutils): Use the gitweb URL.
28797
28798 2008-07-03  Jim Meyering  <meyering@redhat.com>
28799
28800         * users.txt: Add libffcall.  From Sam Steingold.
28801
28802 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
28803
28804         getdate.y: do not ignore TZ with relative day, month or year offset
28805         * lib/getdate.y (get_date): Move the tz-handling block to follow the
28806         relative-date-handling, since otherwise, the latter would clobber the
28807         sole output (an updated Start value) of the tz-handling block.
28808         * tests/test-getdate.c: Tests for the fix
28809
28810 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28811
28812         Recognize 'foo_LIBRARIES += libgnu.a'.
28813         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
28814         makefile snippet has already specified an installation location,
28815         also using '+='.
28816
28817 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
28818
28819         getdate.y: factor out common actions
28820         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
28821         Use them in place of open-coded actions.
28822
28823 2008-07-01  Simon Josefsson  <simon@josefsson.org>
28824
28825         Add self-test for getdate module.
28826         * modules/getdate-tests: New file.
28827         * tests/test-getdate.c: New file.
28828
28829 2008-06-29  Bruno Haible  <bruno@clisp.org>
28830
28831         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
28832         .gitignore.
28833         Reported by Sylvain Beucler <beuc@beuc.net>.
28834
28835 2008-06-29  Bruno Haible  <bruno@clisp.org>
28836
28837         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
28838         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
28839
28840 2008-06-29  Bruno Haible  <bruno@clisp.org>
28841
28842         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
28843         EXTRA_DIST.
28844         Reported by Sylvain Beucler <beuc@beuc.net>.
28845
28846 2008-06-26  Jim Meyering  <meyering@redhat.com>
28847
28848         make several modules depend on the "open" module
28849         This provides slightly increased consistency when opening-for-write
28850         the name of a non-directory spelled with a trailing slash.
28851         * modules/chdir-safer: Likewise.
28852         * modules/chown: Likewise.
28853         * modules/clean-temp: Likewise.
28854         * modules/copy-file: Likewise.
28855         * modules/fchdir: Likewise.
28856         * modules/fcntl-safer: Likewise.
28857         * modules/pipe: Likewise.
28858         * modules/utime: Likewise.
28859         Prompted by Eric Blake and Bruno Haible.
28860
28861 2008-06-24  Andreas Schwab  <schwab@suse.de>
28862
28863         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
28864         literals can be used as initializers for global variables.
28865
28866 2008-06-23  Eric Blake  <ebb9@byu.net>
28867
28868         Make gnulib-cache.m4 easier to diff.
28869         * gnulib-tool (func_import): Allow newlines when reading cached
28870         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
28871
28872 2008-06-23  Bruno Haible  <bruno@clisp.org>
28873
28874         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
28875         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
28876         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
28877         m4/signalblocking.m4.
28878         (gl_PREREQ_SIGACTION): Don't invoke it.
28879         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
28880         gl_PREREQ_SIG_HANDLER_H.
28881         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
28882         Don't check for sigaction here.
28883
28884 2008-06-23  Bruno Haible  <bruno@clisp.org>
28885
28886         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
28887         (install_handlers): Don't set the SA_RESETHAND flag.
28888
28889 2008-06-23  Bruno Haible  <bruno@clisp.org>
28890
28891         * m4/sigaction.m4: Comment fixes.
28892         * lib/signal.in.h: Likewise.
28893
28894 2008-06-23  Eric Blake  <ebb9@byu.net>
28895
28896         Fix typo.
28897         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
28898
28899         Avoid SA_ namespace.
28900         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
28901         Reported by Ralf Wildenhues.
28902
28903         Avoid test failure due to SA_RESTORER.
28904         * tests/test-sigaction.c (SA_MASK): New macro.
28905         (main): Avoid failing due to extension flags being set.
28906         Reported by Jim Meyering.
28907
28908         Revert use of sig-handler.h in sigprocmask.c.
28909         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
28910         it requires the existence of struct sigaction.
28911         * lib/sigprocmask.c (handler_t): Restore typedef.
28912         (rpl_signal, old_handlers): Use local type.
28913
28914 2008-06-22  Bruno Haible  <bruno@clisp.org>
28915
28916         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
28917         conditionally.
28918         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28919
28920 2008-06-22  Bruno Haible  <bruno@clisp.org>
28921
28922         * doc/posix-functions/siginterrupt.texi: Move note.
28923
28924         * lib/signal.in.h (SA_RESTART): New macro.
28925         * lib/sigaction.c: Update comment.
28926
28927         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
28928
28929         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
28930         (gl_PREREQ_SIGPROCMASK): Invoke it.
28931         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
28932
28933         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
28934
28935         * lib/sigprocmask.c: Update a comment.
28936
28937 2008-06-21  Eric Blake  <ebb9@byu.net>
28938
28939         Use sigaction module rather than signal().
28940         * modules/c-stack (Depends-on): Add sigaction.
28941         * modules/fatal-signal (Depends-on): Likewise.
28942         * modules/nanosleep (Depends-on): Likewise.
28943         * modules/sigprocmask (Files): Add sig-handler.h.
28944         * modules/sigaction (Files): Likewise.
28945         * lib/sig-handler.h (get_handler): New file, suggested by Paul
28946         Eggert.
28947         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
28948         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
28949         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
28950         (init_fatal_signals): Likewise.
28951         * lib/nanosleep.c (rpl_nanosleep): Likewise.
28952         (siginterrupt): Delete fallback.
28953         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
28954         instead.
28955         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
28956         siginterrupt.
28957
28958         New module sigaction, for mingw.
28959         * modules/sigaction: New module...
28960         * modules/sigaction-tests: ...and its test.
28961         * m4/sigaction.m4: New file.
28962         * lib/sigaction.c: Likewise.
28963         * tests/test-sigaction.c: Likewise.
28964         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
28965         * modules/signal (Makefile.am): Likewise.
28966         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
28967         needed.
28968         * doc/posix-headers/signal.texi (signal.h): Mention provided
28969         types.
28970         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
28971         that sigaction is preferable.
28972         * doc/posix-functions/sigaction.texi (sigaction): Mention new
28973         module.
28974         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
28975         sigaction.
28976
28977         Improve robustness of sigprocmask by overriding signal.
28978         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
28979         is in use.
28980         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
28981         (SIGKILL, SIGSTOP): Provide fallbacks.
28982         (rpl_signal): Implement.
28983         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
28984         signal can be called inside handlers.
28985
28986         Fix nanosleep module on mingw.
28987         * modules/nanosleep (Depends-on): Add sys_select.
28988         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
28989
28990         Fix licensing of sigprocmask.
28991         * modules/raise (License): Relicense as LGPL.
28992
28993 2008-06-21  Bruno Haible  <bruno@clisp.org>
28994
28995         * lib/propername.c (proper_name_utf8): Don't use the transliterated
28996         result if it contains question marks.
28997         Reported by Michael Geng <linux@michaelgeng.de>.
28998
28999 2008-06-19  Bruno Haible  <bruno@clisp.org>
29000
29001         Fix CVS-ism.
29002         * doc/gnulib.texi: Include updated-stamp.texi.
29003         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
29004         (updated-stamp.texi): New rule.
29005         (gnulib.info): Depend on it.
29006         * doc/.gitignore: Add updated-stamp.texi.
29007         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
29008
29009 2008-06-19  Bruno Haible  <bruno@clisp.org>
29010
29011         * doc/Makefile (gnulib.info): Update and simplify dependencies.
29012         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
29013
29014 2008-06-19  Eric Blake  <ebb9@byu.net>
29015
29016         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
29017         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
29018         Reported by Stepan Kasal.
29019
29020 2008-06-18  Bruno Haible  <bruno@clisp.org>
29021
29022         * lib/fatal-signal.c (init_fatal_signals): Add comment.
29023         Reported by Eric Blake.
29024
29025 2008-06-18  Eric Blake  <ebb9@byu.net>
29026
29027         Work around cygwin 1.5.25 strsignal bug.
29028         * tests/test-strsignal.c: Allow for const char *.
29029         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
29030
29031 2008-06-18  Simon Josefsson  <simon@josefsson.org>
29032
29033         * users.txt: Update URL to article and add author/date
29034         information.
29035
29036 2008-06-17  Bruno Haible  <bruno@clisp.org>
29037
29038         New macro gl_DISABLE_THREADS.
29039         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
29040         if the user did not pass --enable-threads or --disable-threads option.
29041         (gl_DISABLE_THREADS): New macro.
29042         Reported by Eric Blake <ebb9@byu.net>.
29043
29044 2008-06-17  Bruno Haible  <bruno@clisp.org>
29045
29046         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
29047         when the macro ignores it.
29048         Based on a patch by Eric Blake <ebb9@byu.net>.
29049
29050 2008-06-17  Bruno Haible  <bruno@clisp.org>
29051
29052         * modules/tls (License): Change to LGPLv2+.
29053         Reported by Eric Blake.
29054
29055 2008-06-17  Eric Blake  <ebb9@byu.net>
29056
29057         Simplify c-stack prerequisites.
29058         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
29059         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
29060         no longer requires <ucontext.h> to exist.  Optimize setrlimit
29061         check.
29062         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
29063         <sys/resource.h>.
29064
29065         Move c-stack test into testsuite.
29066         * modules/c-stack-tests: New file.
29067         * lib/c-stack.c [DEBUG]: Move test program...
29068         * tests/test-c-stack.c: ...into this new file.  Skip rather than
29069         fail test if sigaltstack is lacking.
29070         * tests/test-c-stack.sh: New driver file.
29071
29072 2008-06-16  Eric Blake  <ebb9@byu.net>
29073
29074         Use raise module consistently.
29075         * modules/fatal-signal (Depends-on): Add raise.
29076         * modules/sigprocmask (Depends-on): Likewise.
29077         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
29078         * lib/sigprocmask.c (sigprocmask): Likewise.
29079         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
29080         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
29081
29082         Fix compliance bug in sigpending.
29083         * lib/sigprocmask.c (sigpending): Return pending array via
29084         parameter, not return value.
29085
29086 2008-06-14  Eric Blake  <ebb9@byu.net>
29087
29088         Improve obstack-printf test code.
29089         * tests/test-obstack-printf.c (test_function): Fix comment, and
29090         simplify usage of obstack_* in macros.  Add a test for coverage.
29091         Reported by Bruno Haible.
29092
29093 2008-06-14  Bruno Haible  <bruno@clisp.org>
29094
29095         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
29096         array size as a constant, not as a const variable.
29097         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
29098         AC_USE_SYSTEM_EXTENSIONS.
29099         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
29100         Test whether the obstack_printf function actually exists.
29101         * modules/obstack-printf (Depends-on): Add extensions.
29102         (Include): Remove obstack.h.
29103         * modules/obstack-printf-posix (Depends-on): Add extensions.
29104         (Include): Remove obstack.h.
29105
29106 2008-06-13  Eric Blake  <ebb9@byu.net>
29107
29108         Add obstack-printf and obstack-printf-posix modules.
29109         * modules/obstack-printf: New file.
29110         * modules/obstack-printf-posix: Likewise.
29111         * MODULES.html.sh (Misc): Mention them.
29112         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
29113         Likewise.
29114         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
29115         Likewise.
29116         * modules/stdio (Makefile.am): Accomodate new modules.
29117         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
29118         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
29119         Declare.
29120         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
29121         functions.
29122         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
29123         (gl_REPLACE_OBSTACK_PRINTF): New macros
29124         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
29125         * tests/test-obstack-printf.c: New file.
29126         * modules/obstack-printf-tests: Likewise.
29127         * modules/obstack-printf-posix-tests: Likewise.
29128
29129 2008-06-11  Bruno Haible  <bruno@clisp.org>
29130
29131         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
29132         * lib/open.c: Include errno.h.
29133         (open): Fail when attempting to write to a file that has a trailing
29134         slash.
29135         * tests/test-open.c (main): Test against trailing slash bug.
29136         * doc/posix-functions/open.texi: Mention the trailing slash bug.
29137
29138 2008-06-10  Bruno Haible  <bruno@clisp.org>
29139
29140         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
29141         for $? to work inside the trap command, with various /bin/sh-s.
29142         * tests/test-vc-list-files-cvs.sh: Likewise.
29143
29144 2008-06-10  Bruno Haible  <bruno@clisp.org>
29145
29146         * lib/acl-internal.h: Don't include gettext.h here.
29147         * lib/set-mode-acl.c: Include gettext.h here.
29148         * lib/copy-acl.c: Likewise.
29149
29150 2008-06-10  Bruno Haible  <bruno@clisp.org>
29151
29152         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
29153         * lib/wait-process.c (wait_subprocess): Likewise.
29154         * lib/execute.h (execute): Add termsigp argument.
29155         * lib/execute.c (execute): Likewise.
29156         * lib/csharpcomp.c (compile_csharp_using_pnet,
29157         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
29158         * lib/csharpexec.c (execute_csharp_using_pnet,
29159         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
29160         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
29161         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
29162         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
29163         is_jikes_present): Update.
29164         * lib/javaexec.c (execute_java_class): Update.
29165         * lib/javaversion.c (execute_and_read_line): Update.
29166         * NEWS: Document the changes.
29167         Reported by Eric Blake.
29168
29169 2008-06-10  Eric Blake  <ebb9@byu.net>
29170
29171         Add missing include.
29172         * tests/test-strstr.c (includes): Add <signal.h>.
29173         * tests/test-strcasestr.c (includes): Likewise.
29174         * tests/test-memmem.c (includes): Likewise.
29175
29176 2008-06-10  Bruno Haible  <bruno@clisp.org>
29177
29178         * lib/wait-process.c (wait_subprocess): Add an assertion.
29179
29180 2008-06-10  Bruno Haible  <bruno@clisp.org>
29181
29182         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
29183
29184 2008-06-10  Bruno Haible  <bruno@clisp.org>
29185
29186         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
29187         using alarm().
29188         * tests/test-strcasestr.c (main): Likewise.
29189         * tests/test-strstr.c (main): Likewise.
29190
29191 2008-06-09  Bruno Haible  <bruno@clisp.org>
29192
29193         Work around the Solaris 10 ACE ACLs ABI change.
29194         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
29195         declare if ACL_NO_TRIVIAL is present.
29196         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
29197         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
29198         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
29199         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
29200         define if ACL_NO_TRIVIAL is present.
29201         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
29202         and use the current ABI.
29203         (file_has_acl): Use same #if condition as elsewhere.
29204         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
29205         in use, and use the current ABI.
29206         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
29207         Reported by Jim Meyering.
29208
29209 2008-06-09  Eric Blake  <ebb9@byu.net>
29210
29211         Work around environments that (stupidly) ignore SIGALRM.
29212         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
29213         before using alarm().
29214         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29215         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
29216         Reported by Ian Beckwith <ianb@erislabs.net>.
29217
29218         Produce autobuild blurb earlier in log.
29219         * modules/autobuild (configure.ac-early): Move AB_INIT here.
29220
29221 2008-06-09  Jim Meyering  <meyering@redhat.com>
29222         and OndÅ™ej Vašík  <ovasik@redhat.com>
29223
29224         utimens.c: correct kernel bug work-around
29225         OndÅ™ej Vašík found that the invalid return value of 280 indicates
29226         failure, not success, and the kernel bug we're trying to work
29227         around affects not just the utimensat call, but also the fallback
29228         futimens call.
29229         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
29230         not success.
29231         [HAVE_FUTIMENS]: Use the same work-around, here.
29232
29233 2008-06-09  Jim Meyering  <meyering@redhat.com>
29234
29235         add more guards around definition of ACE_-related code
29236         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
29237         ALLOW and ACE_OWNER are also defined.
29238
29239 2008-06-08  Bruno Haible  <bruno@clisp.org>
29240
29241         * lib/acl-internal.h: Add me as co-author.
29242         * lib/file-has-acl.c: Likewise.
29243         * lib/set-mode-acl.c: Likewise.
29244         * lib/copy-acl.c: Likewise.
29245
29246 2008-06-08  Bruno Haible  <bruno@clisp.org>
29247
29248         Add support for AIX ACLs.
29249         * lib/acl-internal.h (acl_nontrivial): New declaration.
29250         * lib/file-has-acl.c (acl_nontrivial): New function.
29251         (file_has_acl): Add implementation using AIX 4 ACL API.
29252         * lib/set-mode-acl.c (qset_acl): Likewise.
29253         * lib/copy-acl.c (qcopy_acl): Likewise.
29254
29255 2008-06-08  Bruno Haible  <bruno@clisp.org>
29256
29257         Add support for HP-UX ACLs.
29258         * lib/acl-internal.h (acl_nontrivial): New declaration.
29259         * lib/file-has-acl.c (acl_nontrivial): New function.
29260         (file_has_acl): Add implementation using HP-UX 11 ACL API.
29261         * lib/set-mode-acl.c (qset_acl): Likewise.
29262         * lib/copy-acl.c (qcopy_acl): Likewise.
29263
29264 2008-06-08  Bruno Haible  <bruno@clisp.org>
29265
29266         Add support for Cygwin ACLs.
29267         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
29268         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
29269         the chmod_or_fchmod call.
29270         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
29271
29272 2008-06-08  Bruno Haible  <bruno@clisp.org>
29273
29274         Fix bug with setuid modes in Solaris 10+ code.
29275         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
29276         succeeded, when the mode contains some special bits.
29277
29278 2008-06-08  Bruno Haible  <bruno@clisp.org>
29279
29280         Add support for Solaris 7..10 ACLs.
29281         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
29282         declarations.
29283         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
29284         functions.
29285         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
29286         * lib/set-mode-acl.c (qset_acl): Likewise.
29287         * lib/copy-acl.c (qcopy_acl): Likewise.
29288
29289 2008-06-08  Bruno Haible  <bruno@clisp.org>
29290
29291         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
29292         declaration.
29293         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
29294         (acl_access_nontrivial): Remove MacOS X case.
29295         (file_has_acl): Use acl_extended_nontrivial.
29296         * lib/copy-acl.c (qcopy_acl): Likewise.
29297
29298 2008-06-08  Bruno Haible  <bruno@clisp.org>
29299
29300         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
29301
29302 2008-06-08  Jim Meyering  <meyering@redhat.com>
29303
29304         * modules/acl (Maintainer): Add Bruno Haible.
29305
29306 2008-06-07  Bruno Haible  <bruno@clisp.org>
29307
29308         Improve support for Tru64 ACLs.
29309         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
29310         ACL on OSF/1.
29311
29312 2008-06-07  Bruno Haible  <bruno@clisp.org>
29313
29314         Add support for MacOS X ACLs.
29315         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
29316         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
29317         * lib/set-mode-acl.c (qset_acl): Likewise.
29318         * lib/copy-acl.c (qcopy_acl): Likewise.
29319
29320 2008-06-07  Bruno Haible  <bruno@clisp.org>
29321
29322         Fix memory leak introduced on 2008-05-22.
29323         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
29324         use.
29325
29326 2008-06-07  Bruno Haible  <bruno@clisp.org>
29327
29328         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
29329         to construct an empty ACL.
29330
29331 2008-06-07  Bruno Haible  <bruno@clisp.org>
29332
29333         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
29334         precisely.
29335         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
29336
29337 2008-06-07  Bruno Haible  <bruno@clisp.org>
29338
29339         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
29340         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
29341
29342 2008-06-07  Bruno Haible  <bruno@clisp.org>
29343
29344         * doc/posix-functions/_setjmp.texi: Explain the use of this function
29345         regardless of POSIX.
29346         * doc/posix-functions/_longjmp.texi: Likewise.
29347         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
29348         SystemV platform in this case.
29349
29350 2008-06-06  Eric Blake  <ebb9@byu.net>
29351
29352         Document abort() bugs.
29353         * doc/posix-functions/abort.texi (abort): Mention anomalies.
29354
29355         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
29356         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
29357         sigsetjmp.
29358         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
29359         siglongjmp, but only as a macro.
29360         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
29361         is obsolete.
29362         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
29363
29364         Tweak documentation to cover cygwin argz bugs.
29365         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
29366         argz bug fix; no code change needed since no cygwin releases
29367         occurred between the last fix and the bug being tested.
29368         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
29369         module and recently fixed cygwin bugs.
29370         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
29371         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
29372         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
29373         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
29374         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
29375         Likewise.
29376         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
29377         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
29378         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
29379         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
29380         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
29381         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
29382         Likewise.
29383
29384         Avoid gcc warning on cygwin.
29385         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
29386         !ACL_NO_TRIVIAL]: Avoid unused variable.
29387
29388 2008-06-05  Eric Blake  <ebb9@byu.net>
29389
29390         Be tolerant of UNKNOWN version in gnulib-tool test dir.
29391         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
29392         git-version-gen fails to come up with a version.
29393         Reported by Simon Josefsson.
29394
29395 2008-06-05  Jim Meyering  <meyering@redhat.com>
29396             Paul Eggert  <eggert@cs.ucla.edu>
29397
29398         utimens.c: work around a probable Linux kernel bug
29399         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
29400         appears to be a kernel bug that causes utimensat to return 280
29401         instead of 0, indicating success.
29402
29403 2008-06-04  Bruno Haible  <bruno@clisp.org>
29404
29405         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
29406         2008-06-01 commit.
29407
29408 2008-06-04  Bruno Haible  <bruno@clisp.org>
29409
29410         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
29411         * lib/file-has-acl.c (acl_access_nontrivial): New function.
29412         (file_has_acl): Use it. Save errno afterwards.
29413         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
29414
29415 2008-06-03  Bruno Haible  <bruno@clisp.org>
29416
29417         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
29418         draft code. Simplify #ifs.
29419         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
29420         Put Solaris code after POSIX-draft code. Fix comments regarding
29421         Solaris 10, HP-UX. Mention Cygwin.
29422         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
29423
29424 2008-06-03  Eric Blake  <ebb9@byu.net>
29425
29426         Provide fallback for older kernels.
29427         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
29428         Provide runtime fallback if kernel lacks support.
29429         Reported by Mike Frysinger.
29430
29431 2008-06-02  Bruno Haible  <bruno@clisp.org>
29432
29433         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
29434         it exists.
29435
29436 2008-06-02  Bruno Haible  <bruno@clisp.org>
29437
29438         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
29439         * lib/copy-acl.c (qcopy_acl): Update comment.
29440
29441 2008-06-02  Bruno Haible  <bruno@clisp.org>
29442
29443         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
29444         like ACL APIs.
29445
29446 2008-06-02  Bruno Haible  <bruno@clisp.org>
29447
29448         * tests/test-file-has-acl.sh: Use different code for Cygwin.
29449         * tests/test-set-mode-acl.sh: Likewise.
29450         * tests/test-copy-acl.sh: Likewise.
29451         * tests/test-copy-file.sh: Likewise.
29452
29453 2008-06-02  Bruno Haible  <bruno@clisp.org>
29454
29455         * tests/test-file-has-acl.sh: Remove unused code.
29456
29457 2008-06-01  Bruno Haible  <bruno@clisp.org>
29458
29459         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
29460         (copy_acl): Just a wrapper around qcopy_acl that emits the error
29461         messages.
29462         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
29463
29464 2008-06-01  Bruno Haible  <bruno@clisp.org>
29465
29466         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
29467         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
29468         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
29469         APIs.
29470         * modules/acl-tests (configure.ac): Remove tests now contained in
29471         m4/acl.m4.
29472
29473 2008-06-02  Jim Meyering  <meyering@redhat.com>
29474
29475         announce-gen: use a better key-server host name
29476         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
29477         it may be more consistently reliable.  Suggested by Werner Koch
29478         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
29479
29480 2008-06-01  Bruno Haible  <bruno@clisp.org>
29481
29482         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
29483         Reported by Voroskoi Andras <voroskoi@gmail.com>.
29484
29485 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
29486
29487         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
29488
29489 2008-06-01  Bruno Haible  <bruno@clisp.org>
29490
29491         New ACL tests.
29492         * tests/test-file-has-acl.sh: New file.
29493         * tests/test-file-has-acl.c: New file.
29494         * tests/test-set-mode-acl.sh: New file.
29495         * tests/test-set-mode-acl.c: New file.
29496         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
29497         * tests/test-copy-acl.c: New file.
29498         * modules/acl-tests: New file, based on modules/copy-file-tests.
29499         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
29500         (Depends-on): Add acl-tests.
29501         (configure.ac): Remove checks.
29502         (Makefile.am): Don't create test-sameacls program here any more.
29503
29504 2008-06-01  Bruno Haible  <bruno@clisp.org>
29505
29506         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
29507         * tests/test-sameacls.c: Include progname.h.
29508         (main): Invoke set_program_name. Portability fixes for MacOS X,
29509         Solaris, HP-UX.
29510
29511 2008-06-01  Bruno Haible  <bruno@clisp.org>
29512
29513         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
29514         function.
29515         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
29516
29517 2008-06-01  Bruno Haible  <bruno@clisp.org>
29518
29519         * modules/rpmatch (Depends-on): Add strdup.
29520
29521 2008-06-01  Bruno Haible  <bruno@clisp.org>
29522
29523         * lib/pipe.c: Include unistd-safer.h.
29524         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
29525         * modules/pipe (Depends-on): Add unistd-safer.
29526
29527 2008-05-30  Simon Josefsson  <simon@josefsson.org>
29528
29529         * modules/autobuild (configure.ac): Call AB_INIT.
29530
29531 2008-05-30  Simon Josefsson  <simon@josefsson.org>
29532
29533         * tests/test-getaddrinfo.c: Don't print debug messages by default.
29534         Suggested by Bruno Haible <bruno@clisp.org>.
29535
29536 2008-05-30  Simon Josefsson  <simon@josefsson.org>
29537
29538         * tests/test-base64.c: Cast size_t to unsigned long when invoking
29539         printf.  Use %lu instead of %d.  Reported by Bruno Haible
29540         <bruno@clisp.org>.
29541
29542 2008-05-29  Eric Blake  <ebb9@byu.net>
29543
29544         Prefer new POSIX 200x interfaces over futimesat.
29545         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
29546         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
29547         when available.
29548         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
29549
29550 2008-05-28  Bruno Haible  <bruno@clisp.org>
29551
29552         * modules/stpcpy (License): Change to LGPLv2+.
29553         Requested by David Lutterkort <dlutter@redhat.com>.
29554
29555 2008-05-27  Bruno Haible  <bruno@clisp.org>
29556
29557         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
29558         current mingw.
29559         Reported by Jose E. Marchesi <jemarch@gnu.org>.
29560
29561 2008-05-27  Bruno Haible  <bruno@clisp.org>
29562
29563         * modules/iconv_open (Link): New section, from module 'iconv'.
29564         * modules/striconv (Link): Likewise.
29565         * modules/striconveh (Link): Likewise.
29566         * modules/xstriconv (Link): Likewise.
29567         * modules/unicodeio (Link): Likewise.
29568         * modules/propername (Link): Likewise.
29569         Reported by Jim Meyering.
29570
29571 2008-05-26  Jim Meyering  <meyering@redhat.com>
29572
29573         sha256: do not artificially restrict buffer length to be < 2^32
29574         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
29575         uint32_t to size_t.
29576         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
29577         to match.
29578
29579         avoid unaligned access errors, e.g., on sparc
29580         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
29581         direct access through a possibly-unaligned uint64* pointer.
29582         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
29583         direct access through a possibly-unaligned uint32* pointer.
29584         Prompted by this patch from Tom "spot" Callaway:
29585         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
29586
29587         sha512.c: fix typo in comment
29588         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
29589
29590 2008-05-25  Bruno Haible  <bruno@clisp.org>
29591
29592         * lib/set-mode-acl.c: Renamed from lib/acl.c.
29593         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
29594         (Makefile.am): Update lib_SOURCES.
29595
29596 2008-05-25  Bruno Haible  <bruno@clisp.org>
29597
29598         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
29599
29600 2008-05-25  Jim Meyering  <meyering@redhat.com>
29601
29602         useless-if-before-free: freed expr may have white-space differences
29603         * build-aux/useless-if-before-free: Recognize cases in which the
29604         freed expression differs from the tested one in embedded white
29605         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
29606         $1 was used, so we can't make any regexp shy.  Improved tests now
29607         detect this.
29608
29609         useless-if-before-free: accept white space in the expression.
29610         * build-aux/useless-if-before-free: For now, any white space
29611         in the expression must be identical in the free argument.
29612
29613         useless-if-before-free: efficiency tweak
29614         * build-aux/useless-if-before-free: Make the expression-matching
29615         regexp "shy".
29616         Make the *outer* regexp shy, not the expr-matching one.
29617
29618         update code-in-comment to accept cast of free arg
29619         * build-aux/useless-if-before-free: Update regexp.
29620
29621 2008-05-25  Bruno Haible  <bruno@clisp.org>
29622
29623         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
29624         * modules/copy-file-tests (Files, Makefile.am): Update.
29625         * tests/test-copy-file.c (func_test_copy): Update.
29626
29627 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
29628
29629         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
29630
29631 2008-05-23  Bruno Haible  <bruno@clisp.org>
29632
29633         Improve support for ACLs on OSF/1.
29634         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
29635         Remove fallback for unknown flavors of ACLs.
29636
29637 2008-05-22  Bruno Haible  <bruno@clisp.org>
29638
29639         Add support for ACLs on OSF/1.
29640         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
29641         replacements.
29642         (acl_free_text): New macro fallback.
29643         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
29644         acl_free.
29645         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
29646         acl_free_text function. Require AC_C_INLINE.
29647
29648 2008-05-22  Bruno Haible  <bruno@clisp.org>
29649
29650         Make copy_acl work on MacOS X 10.5.
29651         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
29652         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
29653         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
29654         If MODE_INSIDE_ACL, don't assume that every system has the same text
29655         representation for ACLs as FreeBSD.
29656         * lib/copy-acl.c (copy_acl): Add support for platforms with
29657         !MODE_INSIDE_ACL.
29658         * lib/file-has-acl.c (file_has_acl): Likewise.
29659         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
29660         FreeBSD, MacOS X, or IRIX, respectively.
29661
29662 2008-05-22  Bruno Haible  <bruno@clisp.org>
29663
29664         * lib/acl.h: Don't include <sys/acl.h>.
29665         (GETACLCNT): Move fallback to lib/acl-internal.h.
29666         * lib/acl-internal.h: Include <sys/acl.h> here.
29667         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
29668
29669 2008-05-22  Bruno Haible  <bruno@clisp.org>
29670
29671         Split off copy_acl function to separate file.
29672         * lib/copy-acl.c: New file, extracted from lib/acl.c.
29673         * lib/acl.c (copy_acl): Moved function to separate file.
29674         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
29675         * modules/acl (Files): Add lib/copy-acl.c.
29676         (Makefiles.am): Augment lib_SOURCES.
29677
29678 2008-05-22  Bruno Haible  <bruno@clisp.org>
29679
29680         * modules/copy-file-tests: New file.
29681         * tests/test-copy-file.sh: New file.
29682         * tests/test-copy-file.c: New file.
29683         * tests/test-copy-file-sameacls.c: New file.
29684
29685 2008-05-22  Eric Blake  <ebb9@byu.net>
29686
29687         Avoid gcc warning.
29688         * tests/test-memcmp.c (main): Pass NULL indirectly.
29689
29690 2008-05-21  Bruno Haible  <bruno@clisp.org>
29691
29692         Add reference doc about ACLs.
29693         * doc/acl-resources.txt: New file.
29694         * doc/acl-cygwin.txt: New file.
29695
29696 2008-05-21  Bruno Haible  <bruno@clisp.org>
29697
29698         Avoid one more warning from gcc.
29699         * lib/vasnprintf.c (IF_LINT): Update comments.
29700         (VASNPRINTF): Use it also for the 'prefix' array initializer.
29701
29702 2008-05-21  Jim Meyering  <meyering@redhat.com>
29703
29704         avoid a warning from gcc
29705         * lib/vasnprintf.c (IF_LINT): Define.
29706         (scale10_round_decimal_long_double):
29707         Use it to avoid a "may be used uninitialized" warning.
29708         (scale10_round_decimal_double): Likewise.
29709
29710 2008-05-21  Simon Josefsson  <simon@josefsson.org>
29711
29712         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
29713         declared.
29714
29715 2008-05-20  Bruno Haible  <bruno@clisp.org>
29716
29717         * tests/test-memcmp.c (main): Test also the sign of the result. Test
29718         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
29719
29720 2008-05-20  Simon Josefsson  <simon@josefsson.org>
29721
29722         * modules/memcmp-tests: New file.
29723         * tests/test-memcmp.c: New file.
29724
29725 2008-05-19  Bruno Haible  <bruno@clisp.org>
29726
29727         * modules/propername (Notice, configure.ac): Put quoted "..." into
29728         --keyword option.
29729         * lib/propername.h: Update comments accordingly.
29730         Reported by Eric Blake.
29731
29732 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
29733
29734         * modules/getpass-gnu (Depends-on): Add fseeko.
29735
29736 2008-05-19  Simon Josefsson  <simon@josefsson.org>
29737
29738         * modules/base64-tests: New file.
29739
29740 2008-05-19  Bo Borgerson <gigabo@gmail.com>
29741
29742         * lib/base64.c (base64_decode_ctx): If a decode context structure
29743         was passed in use it to ignore newlines.  If a context structure
29744         was _not_ passed in, continue to treat newlines as garbage (this
29745         is the historical behavior).  Formerly base64_decode.
29746         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
29747         takes a decode context structure.
29748         * lib/base64.h (base64_decode): Macro for four-argument calls.
29749         (base64_decode_alloc): Likewise.
29750         * lib/base64.c (base64_decode_ctx): If a decode context structure
29751         was passed in use it to ignore newlines.  If a context structure
29752         was _not_ passed in, continue to treat newlines as garbage (this
29753         is the historical behavior).  Formerly base64_decode.
29754         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
29755         takes a decode context structure.
29756         * lib/base64.h (base64_decode): Macro for four-argument calls.
29757         (base64_decode_alloc): Likewise.
29758
29759 2008-05-19  Jim Meyering  <meyering@redhat.com>
29760
29761         avoid a warning from gcc
29762         * lib/trim.c (IF_LINT): Define.
29763         (trim2): Use it to avoid a "may be used uninitialized" warning.
29764
29765         Fix doc typo.
29766         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
29767
29768 2008-05-19  Bruno Haible  <bruno@clisp.org>
29769
29770         * doc/glibc-functions/getpass.texi: Document limits of other
29771         implementations.
29772
29773 2008-05-19  Simon Josefsson  <simon@josefsson.org>
29774             Bruno Haible <bruno@clisp.org>
29775
29776         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
29777
29778 2008-05-18  Bruno Haible  <bruno@clisp.org>
29779
29780         * modules/propername: New file, from GNU gettext.
29781         * lib/propername.h: New file, from GNU gettext.
29782         * lib/propername.c: New file, from GNU gettext.
29783         * MODULES.html.sh (Internationalization functions): Add propername.
29784
29785 2008-05-16  Jim Meyering  <meyering@redhat.com>
29786             Bruno Haible  <bruno@clisp.org>
29787
29788         Avoid some warnings from "gcc -Wshadow".
29789         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
29790
29791 2008-05-15  Eric Blake  <ebb9@byu.net>
29792
29793         Extend previous patch to cygwin 1.7.0.
29794         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
29795         fast implementation in cygwin >= 1.7.0.
29796         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
29797         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29798
29799 2008-05-15  Bruno Haible  <bruno@clisp.org>
29800
29801         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
29802         implementation in glibc >= 2.9.
29803         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
29804         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29805
29806 2008-05-15  Bruno Haible  <bruno@clisp.org>
29807
29808         * MODULES.html.sh (Internationalization functions): Remove linebreak.
29809         (Unicode string functions): Add unilbrk/*.
29810         Reported by Karl Berry.
29811
29812 2008-05-15  Eric Blake  <ebb9@byu.net>
29813
29814         Fix violation of <stdbool.h> replacement in regex.
29815         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
29816         * lib/regexec.c (re_search_internal): Likewise.
29817         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
29818
29819 2008-05-15  Jim Meyering  <meyering@redhat.com>
29820
29821         avoid distracting test output when git or cvs is not found
29822         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
29823         * tests/test-vc-list-files-git.sh: Likewise.
29824
29825 2008-05-15  Eric Blake  <ebb9@byu.net>
29826
29827         Glibc finally accepted the memmem speedup code, bugzilla #5514.
29828         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
29829         glibc version.
29830         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
29831         * doc/posix-functions/strstr.texi (strstr): Likewise.
29832         * lib/str-two-way.h (MAX): Sychronize with glibc.
29833
29834 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
29835
29836         * lib/regcomp.c (optimize_utf8): Add a note on why we test
29837         opr.ctx_type.
29838         (calc_first): Initialize constraint field.
29839         (duplicate_node_closure): Use it instead of special casing ANCHORS.
29840         Fix grammar.
29841         (duplicate_node): Merge constraint field for all node types.
29842         (calc_eclosure_iter): Look at constraint field for all node types.
29843         * lib/regex_internal.c (create_cd_newstate): Don't look at
29844         opr.ctx_type.
29845
29846 2008-05-14  Bruno Haible  <bruno@clisp.org>
29847
29848         Help GCC to do better code generation.
29849         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
29850         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
29851         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
29852         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
29853         Declare with attribute 'malloc' if supported.
29854
29855 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
29856
29857         use "echo STR|wc -c" rather than unportable "expr length STR"
29858         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
29859         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
29860
29861 2008-05-14  Jim Meyering  <meyering@redhat.com>
29862
29863         use dd ibs=$n count=1 ... rather than less-portable head -c$n
29864         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
29865         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
29866         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
29867         via Collin Lasse.
29868
29869 2008-05-14  Eric Blake  <ebb9@byu.net>
29870
29871         Avoid quadratic growth in gl_LIBSOURCES.
29872         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
29873         Suggested by Bruno Haible.
29874
29875         Test xmemdup0.
29876         * modules/xmemdup0-tests: New file.
29877         * tests/test-xmemdup0.c: Likewise.
29878
29879 2008-05-13  Eric Blake  <ebb9@byu.net>
29880
29881         Split xmemdup0 into its own module.
29882         * modules/xmemdup0: New file.
29883         * lib/xmemdup0.h: Likewise.
29884         * lib/xmemdup0.c: Likewise.
29885         * MODULES.html.sh (Memory management functions): Add xmemdup0.
29886         * lib/xalloc.h (xmemdup0): Remove.
29887         * lib/xmalloc.c (xmemdup0): Likewise.
29888
29889 2008-05-13  Eric Blake  <ebb9@byu.net>
29890             Bruno Haible  <bruno@clisp.org>
29891
29892         Reduce number of forks required during autoconf.
29893         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
29894         and gl_LIBSOURCES_DIR.
29895         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
29896         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
29897         m4_syscmd per file.
29898         <m4_foreach_w>: Move...
29899         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
29900
29901 2008-05-13  Eric Blake  <ebb9@byu.net>
29902
29903         * gnulib-tool: Fix various comment typos.
29904
29905 2008-05-12  Bruno Haible  <bruno@clisp.org>
29906
29907         Tailor the linebreaking algorithm.
29908         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
29909
29910 2008-05-12  Bruno Haible  <bruno@clisp.org>
29911
29912         Update to Unicode 5.0.0.
29913         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
29914         LBP_JV, LBP_JT. Redistribute values.
29915         (unilbrk_table): Change size.
29916         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
29917         Unicode TR#14 rev. 22.
29918         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
29919         LBP_JV, LBP_JT. Redistribute values.
29920         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
29921         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
29922         Update.
29923         * lib/unilbrk/lbrkprop1.h: Regenerated.
29924         * lib/unilbrk/lbrkprop2.h: Regenerated.
29925         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
29926         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
29927         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
29928         Likewise.
29929         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
29930         Likewise.
29931         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
29932         result.
29933         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
29934         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
29935         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
29936         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
29937         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
29938         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
29939
29940 2008-05-11  Bruno Haible  <bruno@clisp.org>
29941
29942         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
29943
29944 2008-05-11  Bruno Haible  <bruno@clisp.org>
29945
29946         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
29947         * modules/unilbrk/gen-lbrk: New file.
29948
29949 2008-05-11  Bruno Haible  <bruno@clisp.org>
29950
29951         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
29952         * m4/sha512.m4 (gl_SHA512): Likewise.
29953
29954 2008-05-11  Jim Meyering  <meyering@redhat.com>
29955
29956         New modules: crypto/sha256, crypto/sha512 (from coreutils)
29957         * modules/crypto/sha256: New file.
29958         * modules/crypto/sha512: Likewise.
29959         * lib/sha256.c: Likewise.
29960         * lib/sha256.h: Likewise.
29961         * lib/sha512.c: Likewise.
29962         * lib/sha512.h: Likewise.
29963         * lib/u64.h: Likewise.
29964         * m4/sha256.m4: Likewise.
29965         * m4/sha512.m4: Likewise.
29966         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
29967
29968 2008-05-10  Bruno Haible  <bruno@clisp.org>
29969
29970         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
29971         (Input/Output <stdio.h>): Add xprintf.
29972         (Signal handling <signal.h>): Add strsignal.
29973         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
29974         (Core language properties): Add func.
29975         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
29976         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
29977         strings.
29978         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
29979         (Input/output): New section.
29980         (File system functions): Add openat-die, stat-macros.
29981         (Networking functions): Add sockets.
29982         (Unicode string functions): Add unictype/*.
29983         (Support for building libraries and executables): Add gperf.
29984         (Support for building documentation): Add agpl-3.0.
29985         (Misc): Add nocrash.
29986
29987 2008-05-10  Bruno Haible  <bruno@clisp.org>
29988
29989         * modules/unictype/gen-ctype: New file.
29990
29991 2008-05-10  Jim Meyering  <meyering@redhat.com>
29992
29993         Make chdir-safer.c more efficient on a system with no symlinks.
29994         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
29995         also if ELOOP is zero.  Suggested by Bruno Haible.
29996
29997         Make chdir-safer.c slightly safer.
29998         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
29999         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
30000
30001         Avoid compile failure on systems without ELOOP (like mingw).
30002         * lib/chdir-safer.c (ELOOP): Define if not already defined.
30003         Reported by Bruno Haible.
30004
30005 2008-05-10  Bruno Haible  <bruno@clisp.org>
30006
30007         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
30008         (is_utf8_encoding): Use a case-insensitive comparison.
30009         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
30010         streq.
30011
30012 2008-05-10  Bruno Haible  <bruno@clisp.org>
30013
30014         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
30015         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
30016         * lib/unilbrk/ulc-common.h (iconv_string_length,
30017         iconv_string_keeping_offsets): Remove declarations.
30018         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
30019         Don't include <iconv.h>, streq.h, xsize.h.
30020         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
30021         conversion.
30022         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
30023         <iconv.h>, streq.h, xsize.h.
30024         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
30025         conversion.
30026         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
30027         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
30028         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
30029         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
30030
30031 2008-05-10  Bruno Haible  <bruno@clisp.org>
30032
30033         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
30034         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
30035
30036         * modules/unilbrk/u32-width-linebreaks-tests: New file.
30037         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
30038
30039         * modules/unilbrk/u16-width-linebreaks-tests: New file.
30040         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
30041
30042         * modules/unilbrk/u8-width-linebreaks-tests: New file.
30043         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
30044
30045         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
30046         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
30047
30048         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
30049         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
30050
30051         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
30052         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
30053
30054         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
30055         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
30056
30057 2008-05-10  Bruno Haible  <bruno@clisp.org>
30058
30059         Split up 'linebreak' module.
30060         * lib/unilbrk.h: New file, based on lib/linebreak.h.
30061         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
30062         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
30063         modifications.
30064         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
30065         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
30066         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
30067         lib/linebreak.c.
30068         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
30069         lib/linebreak.c.
30070         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
30071         lib/linebreak.c.
30072         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
30073         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
30074         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
30075         lib/linebreak.c.
30076         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
30077         lib/linebreak.c.
30078         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
30079         lib/linebreak.c.
30080         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
30081         lib/linebreak.c.
30082         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
30083         lib/linebreak.c.
30084         * modules/unilbrk/base: New file.
30085         * modules/unilbrk/tables: New file.
30086         * modules/unilbrk/u8-possible-linebreaks: New file.
30087         * modules/unilbrk/u16-possible-linebreaks: New file.
30088         * modules/unilbrk/u32-possible-linebreaks: New file.
30089         * modules/unilbrk/ulc-common: New file.
30090         * modules/unilbrk/ulc-possible-linebreaks: New file.
30091         * modules/unilbrk/u8-width-linebreaks: New file.
30092         * modules/unilbrk/u16-width-linebreaks: New file.
30093         * modules/unilbrk/u32-width-linebreaks: New file.
30094         * modules/unilbrk/ulc-width-linebreaks: New file.
30095         * lib/linebreak.h: Remove file.
30096         * lib/linebreak.c: Remove file.
30097         * m4/linebreak.m4: Remove file.
30098         * modules/linebreak: Remove file.
30099         * NEWS: Mention the changes.
30100
30101 2008-05-09  Eric Blake  <ebb9@byu.net>
30102
30103         Add xmemdup0.
30104         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
30105         implementation.
30106         * lib/xmalloc.c (xmemdup0): New C implementation.
30107
30108 2008-05-08  Bruno Haible  <bruno@clisp.org>
30109
30110         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
30111
30112 2008-05-07  Eric Blake  <ebb9@byu.net>
30113
30114         Support cross-compilation of <wctype.h>.
30115         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
30116         AC_CACHE_CHECK.
30117
30118 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
30119
30120         * build-aux/vc-list-files: Add support for bzr.
30121
30122 2008-05-03  Jim Meyering  <meyering@redhat.com>
30123
30124         avoid failed assertion with tight malloc
30125         * tests/test-getndelim2.c: Correct an off-by-one assertion.
30126
30127 2008-05-03  Simon Josefsson  <simon@josefsson.org>
30128
30129         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
30130         are needed from arpa/inet.h.
30131         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
30132         Reported by Bruno Haible.
30133
30134 2008-05-02  Jim Meyering  <meyering@redhat.com>
30135
30136         avoid compilation error on FreeBSD 6
30137         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
30138
30139 2008-05-01  Jim Meyering  <meyering@redhat.com>
30140
30141         useless-if-before-free: correct --help's exit status description
30142         * build-aux/useless-if-before-free (usage): Like grep, exit 0
30143         for one or more matches, etc.  Reported by Bruno Haible.
30144
30145         vc-list-files: make the stand-alone gnulib test work
30146         * modules/vc-list-files-tests (configure.ac):
30147         Define and AC_SUBST abs_aux_dir.
30148         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
30149         $(abs_top_srcdir) to each script and having each of them
30150         duplicate the work of setting PATH, set PATH here, using
30151         the new variable, abs_aux_dir instead.
30152         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
30153         * tests/test-vc-list-files-git.sh: Likewise.
30154         Reported by Bruno Haible.
30155
30156 2008-05-01  Bruno Haible  <bruno@clisp.org>
30157
30158         * lib/getndelim2.c (getndelim2): Fix newsize computation during
30159         reallocation. Rename 'done' to 'found_delimiter'.
30160
30161 2008-05-01  Jim Meyering  <meyering@redhat.com>
30162
30163         vc-list-files: accommodate /bin/sh like the one from Solaris 10
30164         * build-aux/vc-list-files: Use `...`, not $(...).
30165
30166 2008-04-30  Jim Meyering  <meyering@redhat.com>
30167
30168         add tests for vc-list-files
30169         * modules/vc-list-files-tests: New module.
30170         * tests/test-vc-list-files-cvs.sh: New file.
30171         * tests/test-vc-list-files-git.sh: New file.
30172
30173         avoid a warning from gcc
30174         * lib/getndelim2.c (IF_LINT): Define.
30175         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
30176
30177         vc-list-files: work properly with build-aux/cvsu, too
30178         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
30179         to all cvs-based clauses.
30180
30181         vc-list-files: work properly in the CVS+awk case, too
30182         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
30183
30184         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
30185         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
30186         take more than one file argument, so .  Add quotes, just in case $dir
30187         ever contains a shell meta-character.  Prompted by Soren Hansen in
30188         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
30189
30190 2008-04-29  Eric Blake  <ebb9@byu.net>
30191
30192         Optimize getndelim2 to use block operations when possible.
30193         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
30194         freadseek, and memchr2.
30195         * lib/getndelim2.c (getndelim2): Use them for block reads.
30196
30197 2008-04-29  Bruno Haible  <bruno@clisp.org>
30198
30199         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
30200         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
30201         * modules/inet_ntop (Depends-on): Add extensions.
30202         * modules/inet_pton (Depends-on): Likewise.
30203         Reported by Simon Josefsson.
30204
30205 2008-04-29  Jim Meyering  <meyering@redhat.com>
30206
30207         When the is more than one match in a block, match all of them.
30208         * build-aux/useless-if-before-free: Iterate through each block
30209         until there are no more matches.
30210
30211         Fix broken useless-if-before-free script.
30212         * build-aux/useless-if-before-free: Fix typo: missing "?" after
30213         the expression to match cast of argument to free-like function.
30214
30215 2008-04-29  Eric Blake  <ebb9@byu.net>
30216
30217         Use new header.
30218         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
30219
30220 2008-04-29  Jim Meyering  <meyering@redhat.com>
30221
30222         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
30223         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
30224         by gnulib to exist and to declare e.g., inet_ntop.
30225         Don't include "inet_ntop.h", now removed.
30226
30227         * m4/arpa_inet_h.m4: Remove trailing blanks.
30228
30229 2008-04-29  Eric Blake  <ebb9@byu.net>
30230
30231         Silence valgrind on safe reads beyond potential array bounds.
30232         * lib/rawmemchr.valgrind: New file.
30233         * lib/strchrnul.valgrind: Likewise.
30234         * modules/rawmemchr (Files): Distribute new file.
30235         * modules/strchrnul (Files): Likewise.
30236         Suggested by Bruno Haible.
30237
30238 2008-04-29  Bruno Haible  <bruno@clisp.org>
30239
30240         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
30241         (inet_ntop, inet_pton): Change portability warning's wording.
30242         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
30243         Invoke gl_CHECK_NEXT_HEADERS.
30244         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
30245         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
30246         set ARPA_INET_H.
30247         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
30248         * modules/arpa_inet (Description): No longer only for systems that
30249         lack it.
30250         (Depends-on): Add include_next.
30251         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
30252         HAVE_ARPA_INET_H.
30253
30254 2008-04-29  Jim Meyering  <meyering@redhat.com>
30255
30256         * modules/mkdir (License): Re-license as LGPLv2+.
30257
30258 2008-04-29  Bruno Haible  <bruno@clisp.org>
30259
30260         * modules/rawmemchr (Maintainer): Set to Eric.
30261         * modules/strchrnul (Maintainer): Likewise.
30262
30263 2008-04-29  Simon Josefsson  <simon@josefsson.org>
30264
30265         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
30266         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
30267
30268         * modules/arpa_inet (arpa/inet.h): Use them.
30269
30270 2008-04-28  Eric Blake  <ebb9@byu.net>
30271
30272         Test getndelim2.
30273         * modules/getndelim2-tests: New file.
30274         * tests/test-getndelim2.c: Likewise.
30275         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
30276         stream.
30277         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
30278
30279         * MODULES.html.sh: Document new module.
30280
30281 2008-04-20  Bruno Haible  <bruno@clisp.org>
30282
30283         * lib/c-stack.c (die): Use raise.
30284         * modules/c-stack (Depends-on): Add raise.
30285
30286 2008-04-28  Bruno Haible  <bruno@clisp.org>
30287
30288         Expect rpmatch to be declared.
30289         * lib/yesno.c (rpmatch): Remove declaration.
30290
30291         Declare rpmatch.
30292         * lib/stdlib.in.h (rpmatch): New declaration.
30293         * lib/rpmatch.c: Include <stdlib.h> first.
30294         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
30295         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
30296         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
30297         HAVE_RPMATCH.
30298         * modules/rpmatch (Depends-on): Add stdlib, extensions.
30299         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
30300         (Include): Set to <stdlib.h>.
30301         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
30302         HAVE_RPMATCH.
30303         * NEWS: Document the change.
30304
30305 2008-04-28  Bruno Haible  <bruno@clisp.org>
30306
30307         Change rpmatch to use nl_langinfo when appropriate.
30308         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
30309         (N_): New macro.
30310         (localized_pattern): New function/macro.
30311         (try): Remove match, nomatch arguments. Copy the pattern into safe
30312         memory before caching it.
30313         (rpmatch): Use localized_pattern. Add translator comments.
30314         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
30315         Suggested by Eric Blake.
30316         * modules/rpmatch (Depends-on): Add stdbool.
30317
30318 2008-04-28  Eric Blake  <ebb9@byu.net>
30319
30320         Add rawmemchr module, matching glibc.
30321         * modules/string (Makefile.am): New indicator.
30322         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
30323         * lib/string.in.h (rawmemchr): Declare when appropriate.
30324         * modules/rawmemchr: New file.
30325         * m4/rawmemchr.m4: Likewise.
30326         * lib/rawmemchr.c: Likewise.
30327         * modules/rawmemchr-tests: Likewise.
30328         * tests/test-rawmemchr.c: Likewise.
30329         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
30330         module.
30331         * modules/strchrnul (Depends-on): Add rawmemchr.
30332         * lib/strchrnul.c (strchrnul): Optimize a corner case.
30333
30334         Whitespace cleanup.
30335         * tests/test-strchrnul.c: Reindent.
30336         * lib/strchrnul.c: Likewise.
30337
30338         Optimize and test strchrnul.
30339         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
30340         * modules/strchrnul-tests: New file.
30341         * tests/test-strchrnul.c: Likewise.
30342
30343         Remove intprops dependency.
30344         * modules/memchr (Depends-on): Remove intprops.
30345         * modules/memrchr (Depends-on): Likewise.
30346         * modules/memchr2 (Depends-on): Likewise.
30347         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
30348         * lib/memrchr.c (__memrchr): Likewise.
30349         * lib/memrchr2.c (memchr2): Likewise.
30350         Reported by Simon Josefsson.
30351
30352 2008-04-28  Simon Josefsson  <simon@josefsson.org>
30353
30354         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
30355         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30356
30357 2008-04-28  Simon Josefsson  <simon@josefsson.org>
30358
30359         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
30360
30361         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
30362
30363         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
30364
30365         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
30366         declarations.
30367         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
30368
30369         * m4/inet_pton.m4: Don't check for header files.
30370
30371         * m4/inet_ntop.m4: Don't check for header files.
30372
30373 2008-04-28  Simon Josefsson  <simon@josefsson.org>
30374
30375         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
30376         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
30377         trigger for cygwin).
30378         Reported by Bruno Haible  <bruno@clisp.org>.
30379
30380 2008-04-28  Bruno Haible  <bruno@clisp.org>
30381
30382         * doc/posix-functions/strdup.texi: Mention mingw problem.
30383
30384 2008-04-27  Bruno Haible  <bruno@clisp.org>
30385
30386         * modules/stat-time-tests (Depends-on): Add sleep.
30387         * tests/test-stat-time.c (force_unlink): New function.
30388         (cleanup): Use it.
30389         (test_mtime): Remove the ctime related tests.
30390         (test_ctime): New function, containing the ctime related tests.
30391         (main): Call test_ctime, except on native Windows platforms.
30392
30393 2008-04-27  Bruno Haible  <bruno@clisp.org>
30394
30395         * lib/rpmatch.c (rpmatch): Add some comments.
30396         Reported by James Youngman <jay@gnu.org>.
30397
30398 2008-04-27  Bruno Haible  <bruno@clisp.org>
30399
30400         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
30401         quiet NaNs.
30402
30403 2008-04-27  Bruno Haible  <bruno@clisp.org>
30404
30405         Make test-yesno.sh work on mingw.
30406         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
30407         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
30408         (main): Set stdin to binary mode.
30409         * modules/yesno-tests (Depends-on): Add binary-io.
30410
30411 2008-04-27  Bruno Haible  <bruno@clisp.org>
30412
30413         Fix 'isfinite' on x86, x86_64, ia64 platforms.
30414         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
30415         argument that lie outside the IEEE 854 domain.
30416         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
30417         (gl_ISFINITE): Use it.
30418         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
30419
30420 2008-04-27  Bruno Haible  <bruno@clisp.org>
30421
30422         Allow local renaming in config.h.
30423         * lib/memrchr.c (memrchr): Don't undefine outside libc.
30424
30425 2008-04-27  Bruno Haible  <bruno@clisp.org>
30426
30427         * lib/memchr.c (__memchr): Change type of 'i'.
30428         * lib/memchr2.c (memchr2): Likewise.
30429
30430 2008-04-26  Eric Blake  <ebb9@byu.net>
30431         and Bruno Haible  <bruno@clisp.org>
30432
30433         Optimize and test memrchr.
30434         * modules/memrchr (Depends-on): Add intprops.
30435         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
30436         * modules/memrchr-tests: New file.
30437         * tests/test-memrchr.c: New file.
30438
30439 2008-04-26  Bruno Haible  <bruno@clisp.org>
30440
30441         Add tentative support for DragonFly BSD.
30442         * lib/stdio-impl.h: Add macros for DragonFly BSD.
30443         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
30444         fp.
30445         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
30446         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
30447         * lib/fpurge.c (fpurge): Likewise.
30448         * lib/freadable.c (freaadable): Likewise.
30449         * lib/freadahead.c (freadahead): Likewise.
30450         * lib/freading.c (freading): Likewise.
30451         * lib/freadptr.c (freadptr): Likewise.
30452         * lib/freadseek.c (freadptrinc): Likewise.
30453         * lib/fseeko.c (fseeko): Likewise.
30454         * lib/fseterr.c (fseterr): Likewise.
30455         * lib/fwritable.c (fwritable): Likewise.
30456         * lib/fwriting.c (fwriting): Likewise.
30457
30458 2008-04-26  Bruno Haible  <bruno@clisp.org>
30459
30460         * lib/stdio-impl.h: New file.
30461         * lib/fbufmode.c: Include stdio-impl.h.
30462         (fbufmode): Use fp_, remove redundant #defines.
30463         * lib/fflush.c: Include stdio-impl.h.
30464         (clear_ungetc_buffer): Remove redundant #defines.
30465         * lib/fpurge.c: Include stdio-impl.h.
30466         (fpurge): Remove redundant #defines.
30467         * lib/freadable.c: Include stdio-impl.h.
30468         (freadable): Remove redundant #defines.
30469         * lib/freadahead.c: Include stdio-impl.h.
30470         (freadahead): Remove redundant #defines.
30471         * lib/freading.c: Include stdio-impl.h.
30472         (freading): Remove redundant #defines.
30473         * lib/freadptr.c: Include stdio-impl.h.
30474         (freadptr): Remove redundant #defines.
30475         * lib/freadseek.c: Include stdio-impl.h.
30476         (freadptrinc): Remove redundant #defines.
30477         * lib/fseeko.c: Include stdio-impl.h.
30478         (rpl_fseeko): Remove redundant #defines.
30479         * lib/fseterr.c: Include stdio-impl.h.
30480         (fseterr): Remove redundant #defines.
30481         * lib/fwritable.c: Include stdio-impl.h.
30482         (fwritable: Remove redundant #defines.
30483         * lib/fwriting.c: Include stdio-impl.h.
30484         (fwriting): Remove redundant #defines.
30485         * modules/fbufmode (Files): Add lib/stdio-impl.h.
30486         * modules/fflush (Files): Likewise.
30487         * modules/fpurge (Files): Likewise.
30488         * modules/freadable (Files): Likewise.
30489         * modules/freadahead (Files): Likewise.
30490         * modules/freading (Files): Likewise.
30491         * modules/freadptr (Files): Likewise.
30492         * modules/freadseek (Files): Likewise.
30493         * modules/fseeko (Files): Likewise.
30494         * modules/fseterr (Files): Likewise.
30495         * modules/fwritable (Files): Likewise.
30496         * modules/fwriting (Files): Likewise.
30497
30498 2008-04-26  Bruno Haible  <bruno@clisp.org>
30499
30500         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
30501         restore_seek_optimization, update_fpos_cache): New functions, extracted
30502         from rpl_fflush.
30503         (rpl_fflush): Use them.
30504         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
30505         (gl_REPLACE_FFLUSH): Use it.
30506
30507 2008-04-26  Bruno Haible  <bruno@clisp.org>
30508
30509         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
30510         on Solaris.
30511         * tests/test-xstrtoimax.sh: Likewise.
30512         * tests/test-xstrtoumax.sh: Likewise.
30513         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30514
30515 2008-04-26  Bruno Haible  <bruno@clisp.org>
30516
30517         * modules/memchr-tests: New file.
30518         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
30519
30520 2008-04-26  Eric Blake  <ebb9@byu.net>
30521             Bruno Haible  <bruno@clisp.org>
30522
30523         * lib/memchr.c: Include intprops.h.
30524         (__memchr): Optimize parallel detection of matching bytes. Rename local
30525         variables. Add explanatory comments.
30526
30527 2008-04-26  Bruno Haible  <bruno@clisp.org>
30528
30529         Fix module 'memchr', broken since 2000-10-28.
30530         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
30531
30532 2008-04-26  Bruno Haible  <bruno@clisp.org>
30533
30534         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
30535         comments.
30536
30537 2008-04-25  Eric Blake  <ebb9@byu.net>
30538
30539         Use native fstatat on cygwin 1.7.0.
30540         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
30541         first.
30542
30543 2008-04-23  Eric Blake  <ebb9@byu.net>
30544
30545         Improve memchr2 performance.
30546         * lib/memchr2.c (memchr2): Further optimize parallel detection of
30547         NUL bytes.
30548         * modules/memchr2 (Depends-on): Use intprops.h.
30549
30550 2008-04-23  Simon Josefsson  <simon@josefsson.org>
30551
30552         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
30553         an inline function instead of a CPP macro.  Patch by Ben Pfaff
30554         <blp@cs.stanford.edu>.
30555
30556 2008-04-23  Simon Josefsson  <simon@josefsson.org>
30557
30558         * lib/arpa_inet.in.h: New file.
30559
30560         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
30561         (Makefile.am): Sed in substitute header file.
30562
30563         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
30564         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
30565
30566         * modules/inet_ntop (configure.ac): Use
30567         gl_ARPA_INET_MODULE_INDICATOR.
30568
30569         * modules/inet_pton (configure.ac): Use
30570         gl_ARPA_INET_MODULE_INDICATOR.
30571
30572 2008-04-22  Jim Meyering  <meyering@redhat.com>
30573
30574         * modules/verify (License): Re-license as LGPLv2+.
30575
30576 2008-04-22  Simon Josefsson  <simon@josefsson.org>
30577
30578         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
30579         parameter to void* as per POSIX standard (MinGW uses char*).
30580
30581 2008-04-21  Bruno Haible  <bruno@clisp.org>
30582
30583         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
30584         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
30585         Define to replacements if REPLACE_ISWCNTRL is 1.
30586         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
30587         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
30588         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
30589         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
30590         what it fixes.
30591         * doc/posix-functions/iswalpha.texi: Likewise.
30592         * doc/posix-functions/iswblank.texi: Likewise.
30593         * doc/posix-functions/iswcntrl.texi: Likewise.
30594         * doc/posix-functions/iswdigit.texi: Likewise.
30595         * doc/posix-functions/iswgraph.texi: Likewise.
30596         * doc/posix-functions/iswlower.texi: Likewise.
30597         * doc/posix-functions/iswprint.texi: Likewise.
30598         * doc/posix-functions/iswpunct.texi: Likewise.
30599         * doc/posix-functions/iswspace.texi: Likewise.
30600         * doc/posix-functions/iswupper.texi: Likewise.
30601         * doc/posix-functions/iswxdigit.texi: Likewise.
30602         Reported by Alain Guibert.
30603
30604 2008-04-21  Bruno Haible  <bruno@clisp.org>
30605
30606         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
30607         Patch by Alain Guibert.
30608
30609 2008-04-21  Bruno Haible  <bruno@clisp.org>
30610
30611         Fix test failures on mingw.
30612         * tests/test-xstrtol.c (print_no_progname): New function.
30613         (main): Install it in error_print_progname hook.
30614         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
30615         * tests/test-xstrtoimax.sh: Likewise.
30616         * tests/test-xstrtoumax.sh: Likewise.
30617
30618 2008-04-21  Bruno Haible  <bruno@clisp.org>
30619
30620         Fix test failure on mingw.
30621         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
30622
30623 2008-04-21  Bruno Haible  <bruno@clisp.org>
30624
30625         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
30626         Actually assign a value.
30627
30628 2008-04-20  Bruno Haible  <bruno@clisp.org>
30629
30630         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
30631         take 2.
30632         * lib/canonicalize.c (canonicalize_file_name): Elide if the
30633         'canonicalize-lgpl' module is also used.
30634         * lib/canonicalize-lgpl.c: Undo last change.
30635         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
30636
30637 2008-04-20  Bruno Haible  <bruno@clisp.org>
30638
30639         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
30640         config.h. Provide _mkdir based fallback for mingw.
30641         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
30642         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
30643         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
30644         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
30645         rather than defining mkdir in config.h.
30646         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
30647         (gl_SYS_STAT_H_DEFAULTS): New macro.
30648         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
30649         HAVE_IO_H any more.
30650         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
30651         HAVE_DECL_MKDIR and HAVE_IO_H.
30652
30653 2008-04-20  Bruno Haible  <bruno@clisp.org>
30654
30655         * lib/isapipe.c: Port to native Windows platforms.
30656
30657 2008-04-20  Bruno Haible  <bruno@clisp.org>
30658
30659         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
30660
30661 2008-04-21  Eric Blake  <ebb9@byu.net>
30662
30663         Work around preprocessors that don't handle UINTMAX_MAX.
30664         * lib/memchr2.c (memchr2): Avoid embedded #if.
30665         Reported by Alain Guibert, fix suggested by Bruno Haible.
30666
30667 2008-04-21  Simon Josefsson  <simon@josefsson.org>
30668
30669         * doc/posix-functions/strftime.texi (strftime): Explain better
30670         Windows incompatibility.  Suggested by Micah Cowan
30671         <micah@cowan.name>.
30672
30673 2008-04-20  Bruno Haible  <bruno@clisp.org>
30674
30675         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
30676         unistr/u8-mblen.
30677
30678 2008-04-20  Bruno Haible  <bruno@clisp.org>
30679
30680         Fix test failure on platforms with non-GNU iconv.
30681         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
30682         (U_TO_U8): Use it, rather than u16_to_u8.
30683         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
30684         units at the end of the input string.
30685         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
30686
30687 2008-04-20  Bruno Haible  <bruno@clisp.org>
30688
30689         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
30690         when the resulting length is 0.
30691         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
30692
30693 2008-04-20  Bruno Haible  <bruno@clisp.org>
30694
30695         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
30696         works.
30697         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
30698
30699 2008-04-20  Bruno Haible  <bruno@clisp.org>
30700
30701         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
30702         * modules/tsearch-tests (configure.ac): Test for initstate function.
30703
30704 2008-04-20  Bruno Haible  <bruno@clisp.org>
30705
30706         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
30707         for nlink_t if missing.
30708         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
30709
30710 2008-04-19  Bruno Haible  <bruno@clisp.org>
30711
30712         Work around snprintf bug on Linux libc5.
30713         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
30714         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
30715         gl_SNPRINTF_SIZE1.
30716         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
30717         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
30718         that test failed.
30719         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
30720         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
30721         * modules/snprintf (Files): Add m4/printf.m4.
30722         * modules/vsnprintf (Files): Likewise.
30723         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
30724         * doc/posix-functions/vsnprintf.texi: Likewise.
30725
30726 2008-04-19  Bruno Haible  <bruno@clisp.org>
30727
30728         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
30729         from 0.0058 to less than 10^-7.
30730
30731 2008-04-19  Bruno Haible  <bruno@clisp.org>
30732
30733         Fix rounding when a precision is given.
30734         * lib/vasnprintf.c (is_borderline): New function.
30735         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
30736         9...9x.
30737         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
30738         %e, %g.
30739         * tests/test-vasprintf-posix.c (test_function): Likewise.
30740         * tests/test-snprintf-posix.h (test_function): Likewise.
30741         * tests/test-sprintf-posix.h (test_function): Likewise.
30742         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
30743         * tests/test-printf-posix.h (test_function): Likewise.
30744         * tests/test-printf-posix.output: Update.
30745         Reported by John Darrington <john@darrington.wattle.id.au> via
30746         Ben Pfaff <blp@cs.stanford.edu>.
30747
30748 2008-04-18  Simon Josefsson  <simon@josefsson.org>
30749
30750         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
30751         Suggested by Bruno Haible <bruno@clisp.org>.
30752
30753 2008-04-17  Bruno Haible  <bruno@clisp.org>
30754
30755         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
30756         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
30757         implementation.
30758         Patch by Bruce Merry <bmerry@gmail.com>.
30759
30760 2008-04-17  Simon Josefsson  <simon@josefsson.org>
30761
30762         * doc/posix-functions/strftime.texi (strftime): Mention that %e
30763         doesn't work under Windows.
30764
30765 2008-04-16  Bruno Haible  <bruno@clisp.org>
30766
30767         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
30768         New macros.
30769         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
30770         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
30771         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
30772         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
30773         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
30774         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
30775         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
30776         macros.
30777         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
30778         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
30779         Northern Sotho, Uighur.
30780
30781 2008-04-16  Bruno Haible  <bruno@clisp.org>
30782
30783         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
30784         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
30785         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
30786         Reported by Daniel Bergström <daniel@octocode.com>.
30787
30788 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
30789             Bruno Haible  <bruno@clisp.org>
30790
30791         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
30792         function.
30793         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
30794         New functions, mostly extracted from gl_locale_name_default.
30795         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
30796
30797 2008-04-16  Eric Blake  <ebb9@byu.net>
30798
30799         Adjust strtod detection to catch glibc 2.7 bug.
30800         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
30801         Reported by John Gatewood Ham.
30802
30803 2008-04-16  Bruno Haible  <bruno@clisp.org>
30804
30805         Add tentative support for Linux libc5.
30806         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
30807         * lib/fpurge.c (fpurge): Likewise.
30808         * lib/freadable.c (freadable): Likewise.
30809         * lib/freadahead.c (freadahead): Likewise.
30810         * lib/freading.c (freading): Likewise.
30811         * lib/freadptr.c (freadptr): Likewise.
30812         * lib/freadseek.c (freadptrinc): Likewise.
30813         * lib/fseeko.c (rpl_fseeko): Likewise.
30814         * lib/fseterr.c (fseterr): Likewise.
30815         * lib/fwritable.c (fwritable): Likewise.
30816         * lib/fwriting.c (fwriting): Likewise.
30817         Reported by Alain Guibert <alguibert+bts@free.fr>.
30818
30819 2008-04-15  Bruno Haible  <bruno@clisp.org>
30820
30821         * modules/mathl (configure.ac): Define module indicator.
30822
30823 2008-04-15  Bruno Haible  <bruno@clisp.org>
30824
30825         * lib/logl.c (logl): Remove unused variables.
30826
30827 2008-04-15  Bruno Haible  <bruno@clisp.org>
30828
30829         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
30830         fails.
30831
30832 2008-04-15  Bruno Haible  <bruno@clisp.org>
30833
30834         * lib/trim.c (trim2): Fix argument of isspace() macro.
30835
30836 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
30837
30838         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
30839         to 0.
30840         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
30841
30842 2008-04-14  Bruno Haible  <bruno@clisp.org>
30843
30844         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
30845         AC_LANG_PROGRAM argument.
30846         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
30847         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
30848         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
30849         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
30850         * m4/math_h.m4 (gl_MATH_H): Likewise.
30851         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
30852         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
30853         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
30854         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
30855         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
30856         * m4/regex.m4 (gl_REGEX): Likewise.
30857         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
30858         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
30859         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30860         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
30861         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
30862         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
30863         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30864         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
30865
30866 2008-04-14  Jim Meyering  <meyering@redhat.com>
30867
30868         test-strtod: fix typos: s/abs/fabs/
30869         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
30870
30871 2008-04-13  Bruno Haible  <bruno@clisp.org>
30872
30873         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
30874         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
30875         module is also used and while not building the reloc-wrapper.
30876
30877 2008-04-13  Bruno Haible  <bruno@clisp.org>
30878
30879         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
30880
30881 2008-04-13  Bruno Haible  <bruno@clisp.org>
30882
30883         Fix AIX compilation failure introduced on 2008-04-02.
30884         * tests/test-frexp.c (exp): Undefine before redefining.
30885         * tests/test-frexpl.c (exp): Likewise.
30886
30887 2008-04-13  Bruno Haible  <bruno@clisp.org>
30888
30889         Work around a HP-UX stdio bug.
30890         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
30891         * tests/test-ftello.c (main): Likewise.
30892         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
30893         * doc/posix-functions/ftello.texi: Likewise.
30894
30895 2008-04-13  Bruno Haible  <bruno@clisp.org>
30896
30897         Make test-signbit pass on HP-UX/hppa.
30898         * tests/test-signbit.c (minus_zerol): New variable.
30899         (test_signbitl): Use it.
30900
30901 2008-04-13  Bruno Haible  <bruno@clisp.org>
30902
30903         Make truncl work on OSF/1 4.0.
30904         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
30905         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
30906         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
30907         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
30908         HAVE_DECL_TRUNCL.
30909         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
30910         HAVE_DECL_TRUNCL.
30911         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
30912
30913 2008-04-13  Bruno Haible  <bruno@clisp.org>
30914
30915         * lib/unictype.h: Remove trailing comma from enumeration definitions.
30916
30917 2008-04-13  Bruno Haible  <bruno@clisp.org>
30918
30919         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
30920         expression, so as to avoid HP-UX 11 cc compiler bug.
30921
30922 2008-04-13  Bruno Haible  <bruno@clisp.org>
30923
30924         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
30925
30926 2008-04-13  Bruno Haible  <bruno@clisp.org>
30927
30928         * lib/git-merge-changelog.c: Remove empty declaration outside of
30929         functions.
30930
30931 2008-04-13  Bruno Haible  <bruno@clisp.org>
30932
30933         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
30934
30935 2008-04-13  Bruno Haible  <bruno@clisp.org>
30936
30937         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
30938         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
30939         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
30940         also if it exists but lacks definitions of the SHUT_* macros.
30941         * modules/sys_socket (Description): Update.
30942         Reported by Elbert Pol <e.pol@chello.nl>.
30943
30944 2008-04-13  Bruno Haible  <bruno@clisp.org>
30945
30946         * lib/localcharset.c (OS2): Don't redefine if already defined.
30947         Reported by Elbert Pol <e.pol@chello.nl>.
30948
30949 2008-04-13  Bruno Haible  <bruno@clisp.org>
30950
30951         * lib/binary-io.h [__EMX__]: Include <io.h>.
30952         Reported by Elbert Pol <e.pol@chello.nl>.
30953
30954 2008-04-12  Bruno Haible  <bruno@clisp.org>
30955
30956         * lib/fpucw.h: Enable the definitions also for x86_64.
30957         Needed for NetBSD/x86_64.
30958         Reported by Thomas Klausner <tk@giga.or.at>.
30959
30960 2008-04-12  Bruno Haible  <bruno@clisp.org>
30961
30962         * tests/test-strtod.c: Include isnand.h.
30963         (main): Use isnand instead of isnan.
30964         Reported by Jim Meyering.
30965
30966 2008-04-12  Bruno Haible  <bruno@clisp.org>
30967
30968         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
30969         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
30970
30971 2008-04-12  Jim Meyering  <meyering@redhat.com>
30972
30973         * m4/math_h.m4 (gl_MATH_H): Fix typos.
30974
30975 2008-04-12  Bruno Haible  <bruno@clisp.org>
30976
30977         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
30978         Reported by Elbert Pol <e.pol@chello.nl>.
30979
30980 2008-04-12  Eric Blake  <ebb9@byu.net>
30981
30982         Work around Solaris 10 math.h bug.
30983         * m4/math_h.m4 (gl_MATH_H): Check for bug.
30984         (gl_MATH_H_DEFAULTS): Set up default.
30985         * modules/math (Makefile.am): Replace new indicators.
30986         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
30987         * tests/test-math.c (main): Test this.
30988         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
30989         * doc/posix-headers/math.texi (math.h): Mention bug.
30990         Reported by Nelson H. F. Beebe and Jim Meyering.
30991
30992 2008-04-11  Bruno Haible  <bruno@clisp.org>
30993
30994         Adapt to future versions of Apple GCC.
30995         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
30996         Reported by Peter O'Gorman <peter@pogma.com>.
30997
30998 2008-04-11  Bruno Haible  <bruno@clisp.org>
30999
31000         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
31001
31002 2008-04-11  Bruno Haible  <bruno@clisp.org>
31003
31004         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
31005
31006         * modules/getaddrinfo-tests (Makefile.am): Define
31007         test_getaddrinfo_LDADD.
31008
31009 2008-04-11  Bruno Haible  <bruno@clisp.org>
31010
31011         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
31012         (init): Fix syntax error.
31013         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
31014         is declared.
31015
31016 2008-04-11  Bruno Haible  <bruno@clisp.org>
31017
31018         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
31019         * modules/glob (Depends-on): Add stdbool.
31020
31021 2008-04-11  Bruno Haible  <bruno@clisp.org>
31022
31023         * lib/trim.c: Include <string.h>.
31024
31025 2008-04-11  Eric Blake  <ebb9@byu.net>
31026
31027         Avoid compile failure on OS/2.
31028         * lib/regex_internal.h (internal_function): Disable optimization
31029         on OS/2 (__EMX__), where it caused compiler error.
31030         Reported by Elbert Pol.
31031
31032 2008-04-11  Bruno Haible  <bruno@clisp.org>
31033
31034         Flush the standard error stream before aborting. Needed on mingw.
31035         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
31036         * tests/test-array_list.c (ASSERT): Likewise.
31037         * tests/test-array_oset.c (ASSERT): Likewise.
31038         * tests/test-avltree_list.c (ASSERT): Likewise.
31039         * tests/test-avltree_oset.c (ASSERT): Likewise.
31040         * tests/test-avltreehash_list.c (ASSERT): Likewise.
31041         * tests/test-binary-io.c (ASSERT): Likewise.
31042         * tests/test-byteswap.c (ASSERT): Likewise.
31043         * tests/test-c-ctype.c (ASSERT): Likewise.
31044         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
31045         * tests/test-c-strcasestr.c (ASSERT): Likewise.
31046         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
31047         * tests/test-c-strstr.c (ASSERT): Likewise.
31048         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
31049         * tests/test-canonicalize.c (ASSERT): Likewise.
31050         * tests/test-carray_list.c (ASSERT): Likewise.
31051         * tests/test-ceilf1.c (ASSERT): Likewise.
31052         * tests/test-ceilf2.c (ASSERT): Likewise.
31053         * tests/test-ceill.c (ASSERT): Likewise.
31054         * tests/test-count-one-bits.c (ASSERT): Likewise.
31055         * tests/test-fbufmode.c (ASSERT): Likewise.
31056         * tests/test-fflush2.c (ASSERT): Likewise.
31057         * tests/test-floorf1.c (ASSERT): Likewise.
31058         * tests/test-floorf2.c (ASSERT): Likewise.
31059         * tests/test-floorl.c (ASSERT): Likewise.
31060         * tests/test-fopen.c (ASSERT): Likewise.
31061         * tests/test-fpending.c (ASSERT): Likewise.
31062         * tests/test-fprintf-posix.c (ASSERT): Likewise.
31063         * tests/test-fpurge.c (ASSERT): Likewise.
31064         * tests/test-freadable.c (ASSERT): Likewise.
31065         * tests/test-freadahead.c (ASSERT): Likewise.
31066         * tests/test-freading.c (ASSERT): Likewise.
31067         * tests/test-freadptr.c (ASSERT): Likewise.
31068         * tests/test-freadptr2.c (ASSERT): Likewise.
31069         * tests/test-freadseek.c (ASSERT): Likewise.
31070         * tests/test-freopen.c (ASSERT): Likewise.
31071         * tests/test-frexp.c (ASSERT): Likewise.
31072         * tests/test-frexpl.c (ASSERT): Likewise.
31073         * tests/test-fseek.c (ASSERT): Likewise.
31074         * tests/test-fseeko.c (ASSERT): Likewise.
31075         * tests/test-fstrcmp.c (ASSERT): Likewise.
31076         * tests/test-ftell.c (ASSERT): Likewise.
31077         * tests/test-ftello.c (ASSERT): Likewise.
31078         * tests/test-func.c (ASSERT): Likewise.
31079         * tests/test-fwritable.c (ASSERT): Likewise.
31080         * tests/test-fwriting.c (ASSERT): Likewise.
31081         * tests/test-getdelim.c (ASSERT): Likewise.
31082         * tests/test-getline.c (ASSERT): Likewise.
31083         * tests/test-i-ring.c (ASSERT): Likewise.
31084         * tests/test-iconv-utf.c (ASSERT): Likewise.
31085         * tests/test-iconv.c (ASSERT): Likewise.
31086         * tests/test-isfinite.c (ASSERT): Likewise.
31087         * tests/test-isnand.c (ASSERT): Likewise.
31088         * tests/test-isnanf.c (ASSERT): Likewise.
31089         * tests/test-isnanl.h (ASSERT): Likewise.
31090         * tests/test-ldexpl.c (ASSERT): Likewise.
31091         * tests/test-linked_list.c (ASSERT): Likewise.
31092         * tests/test-linkedhash_list.c (ASSERT): Likewise.
31093         * tests/test-localename.c (ASSERT): Likewise.
31094         * tests/test-lseek.c (ASSERT): Likewise.
31095         * tests/test-mbscasecmp.c (ASSERT): Likewise.
31096         * tests/test-mbscasestr1.c (ASSERT): Likewise.
31097         * tests/test-mbscasestr2.c (ASSERT): Likewise.
31098         * tests/test-mbscasestr3.c (ASSERT): Likewise.
31099         * tests/test-mbscasestr4.c (ASSERT): Likewise.
31100         * tests/test-mbschr.c (ASSERT): Likewise.
31101         * tests/test-mbscspn.c (ASSERT): Likewise.
31102         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
31103         * tests/test-mbspbrk.c (ASSERT): Likewise.
31104         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
31105         * tests/test-mbsrchr.c (ASSERT): Likewise.
31106         * tests/test-mbsspn.c (ASSERT): Likewise.
31107         * tests/test-mbsstr1.c (ASSERT): Likewise.
31108         * tests/test-mbsstr2.c (ASSERT): Likewise.
31109         * tests/test-mbsstr3.c (ASSERT): Likewise.
31110         * tests/test-memchr2.c (ASSERT): Likewise.
31111         * tests/test-memmem.c (ASSERT): Likewise.
31112         * tests/test-open.c (ASSERT): Likewise.
31113         * tests/test-printf-frexp.c (ASSERT): Likewise.
31114         * tests/test-printf-frexpl.c (ASSERT): Likewise.
31115         * tests/test-printf-posix.c (ASSERT): Likewise.
31116         * tests/test-quotearg.c (ASSERT): Likewise.
31117         * tests/test-rbtree_list.c (ASSERT): Likewise.
31118         * tests/test-rbtree_oset.c (ASSERT): Likewise.
31119         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
31120         * tests/test-round1.c (ASSERT): Likewise.
31121         * tests/test-roundf1.c (ASSERT): Likewise.
31122         * tests/test-roundl.c (ASSERT): Likewise.
31123         * tests/test-signbit.c (ASSERT): Likewise.
31124         * tests/test-sleep.c (ASSERT): Likewise.
31125         * tests/test-snprintf-posix.c (ASSERT): Likewise.
31126         * tests/test-snprintf.c (ASSERT): Likewise.
31127         * tests/test-sprintf-posix.c (ASSERT): Likewise.
31128         * tests/test-stat-time.c (ASSERT): Likewise.
31129         * tests/test-strcasestr.c (ASSERT): Likewise.
31130         * tests/test-strerror.c (ASSERT): Likewise.
31131         * tests/test-striconv.c (ASSERT): Likewise.
31132         * tests/test-striconveh.c (ASSERT): Likewise.
31133         * tests/test-striconveha.c (ASSERT): Likewise.
31134         * tests/test-strsignal.c (ASSERT): Likewise.
31135         * tests/test-strstr.c (ASSERT): Likewise.
31136         * tests/test-strtod.c (ASSERT): Likewise.
31137         * tests/test-trunc1.c (ASSERT): Likewise.
31138         * tests/test-trunc2.c (ASSERT): Likewise.
31139         * tests/test-truncf1.c (ASSERT): Likewise.
31140         * tests/test-truncf2.c (ASSERT): Likewise.
31141         * tests/test-truncl.c (ASSERT): Likewise.
31142         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
31143         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
31144         * tests/test-vasnprintf.c (ASSERT): Likewise.
31145         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
31146         * tests/test-vasprintf.c (ASSERT): Likewise.
31147         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
31148         * tests/test-vprintf-posix.c (ASSERT): Likewise.
31149         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
31150         * tests/test-vsnprintf.c (ASSERT): Likewise.
31151         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
31152         * tests/test-wcwidth.c (ASSERT): Likewise.
31153         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
31154         * tests/test-xprintf-posix.c (ASSERT): Likewise.
31155         * tests/test-xvasprintf.c (ASSERT): Likewise.
31156         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
31157         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
31158         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
31159         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
31160         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
31161         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
31162         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
31163         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
31164         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
31165         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
31166         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
31167         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
31168         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
31169         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
31170         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
31171         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
31172         * tests/unictype/test-block_list.c (ASSERT): Likewise.
31173         * tests/unictype/test-block_of.c (ASSERT): Likewise.
31174         * tests/unictype/test-block_test.c (ASSERT): Likewise.
31175         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
31176         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
31177         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
31178         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
31179         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
31180         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
31181         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
31182         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
31183         * tests/unictype/test-combining.c (ASSERT): Likewise.
31184         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
31185         * tests/unictype/test-digit.c (ASSERT): Likewise.
31186         * tests/unictype/test-mirror.c (ASSERT): Likewise.
31187         * tests/unictype/test-numeric.c (ASSERT): Likewise.
31188         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
31189         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
31190         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
31191         * tests/unictype/test-scripts.c (ASSERT): Likewise.
31192         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
31193         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
31194         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
31195         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
31196         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
31197         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
31198         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
31199         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
31200         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
31201         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
31202         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
31203         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
31204         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
31205         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
31206         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
31207         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
31208         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
31209         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
31210         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
31211         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
31212         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
31213         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
31214         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
31215         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
31216         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
31217         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
31218         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
31219         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
31220         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
31221         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
31222         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
31223         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
31224         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
31225         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
31226         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
31227         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
31228         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
31229         Reported by Eric Blake.
31230
31231 2008-04-11  Bruno Haible  <bruno@clisp.org>
31232
31233         * lib/wchar.in.h: Tweak comment.
31234
31235 2008-04-11  Bruno Haible  <bruno@clisp.org>
31236
31237         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
31238         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
31239         gl_COMMON.
31240         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
31241
31242 2008-04-11  Bruno Haible  <bruno@clisp.org>
31243
31244         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
31245
31246 2008-04-11  Simon Josefsson  <simon@josefsson.org>
31247
31248         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
31249         of attempting to use non-existing /dev/*random.  Based on patch
31250         from Adam Strzelecki <ono@java.pl> in
31251         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
31252
31253 2008-04-08  Bruno Haible  <bruno@clisp.org>
31254
31255         Add tentative support for emx+gcc.
31256         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
31257         * lib/fpurge.c (fpurge): Likewise.
31258         * lib/freadable.c (freadable): Likewise.
31259         * lib/freadahead.c (freadahead): Likewise.
31260         * lib/freading.c (freading): Likewise.
31261         * lib/freadptr.c (freadptr): Likewise.
31262         * lib/freadseek.c (freadptrinc): Likewise.
31263         * lib/fseeko.c (rpl_fseeko): Likewise.
31264         * lib/fseterr.c (fseterr): Likewise.
31265         * lib/fwritable.c (fwritable): Likewise.
31266         * lib/fwriting.c (fwriting): Likewise.
31267         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
31268
31269 2008-04-09  Eric Blake  <ebb9@byu.net>
31270
31271         Avoid some autoconf warnings.
31272         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
31273         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
31274         * m4/afs.m4 (gl_AFS): Likewise.
31275         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
31276         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
31277         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
31278         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
31279         (gl_INTEGER_TYPE_SUFFIX): Likewise.
31280         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
31281         (AC_CHECK_DECLS_ONCE): Likewise.
31282         Rename file...
31283         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
31284         gnulib-tool requires autoconf 2.59 or better.
31285         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
31286
31287 2008-04-08  Eric Blake  <ebb9@byu.net>
31288
31289         Use 'git describe --match' if present (added in git 1.5.5).
31290         * build-aux/git-version-gen: Limit result to tags that match 'v*'
31291         if possible.
31292
31293 2008-04-08  Bruno Haible  <bruno@clisp.org>
31294
31295         Add tentative support for OpenServer.
31296         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
31297         _ptr, _cnt.
31298         * lib/fpurge.c (fpurge): Likewise.
31299         * lib/freadable.c (freadable): Likewise.
31300         * lib/freadahead.c (freadahead): Likewise.
31301         * lib/freading.c (freading): Likewise.
31302         * lib/freadptr.c (freadptr): Likewise.
31303         * lib/freadseek.c (freadptrinc): Likewise.
31304         * lib/fseeko.c (rpl_fseeko): Likewise.
31305         * lib/fseterr.c (fseterr): Likewise.
31306         * lib/fwritable.c (fwritable): Likewise.
31307         * lib/fwriting.c (fwriting): Likewise.
31308         Reported by Roger Cornelius <rac@tenzing.org> and
31309         Brian K. White <brian@aljex.com>.
31310
31311 2008-04-06  Jim Meyering  <meyering@redhat.com>
31312
31313         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
31314
31315 2008-04-06  Bruno Haible  <bruno@clisp.org>
31316
31317         Avoid possible error with non-ASCII bytes in UTF-8 locales.
31318         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
31319         * tests/test-printf-posix.sh: Likewise.
31320         * tests/test-vfprintf-posix.sh: Likewise.
31321         * tests/test-vprintf-posix.sh: Likewise.
31322         * tests/test-xprintf-posix.sh: Likewise.
31323
31324 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31325
31326         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
31327         hide error from 'ls', needed on OS/2.
31328         Report by Elbert Pol <elbert.pol@gmail.com>.
31329
31330 2008-04-04  Eric Blake  <ebb9@byu.net>
31331
31332         Make test-fseeko.c failures meaningful.
31333         * tests/test-fseeko.c: Print line number on failure.
31334         * tests/test-fseek.c: Likewise.
31335         Reported by Nelson H. F. Beebe.
31336
31337         Improve strtod bug detection check.
31338         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
31339         required for Solaris 10.
31340         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
31341
31342 2008-04-04  Bruno Haible  <bruno@clisp.org>
31343
31344         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
31345         by m4/setenv.m4.
31346
31347 2008-04-03  Eric Blake  <ebb9@byu.net>
31348
31349         Ensure sane .version contents.
31350         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
31351         version string.
31352         * build-aux/git-version-gen: Improve documentation.
31353
31354         Make GNU make output nicer.
31355         * top/GNUmakefile [!_have-Makefile]: Add dependency on
31356         MAKECMDGOALS to enforce message for all command line targets.  Set
31357         srcdir for use in maint.mk.
31358
31359         Another maintainer tweak.
31360         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
31361         a target that regenerates version.
31362
31363 2008-04-03  Jim Meyering  <meyering@redhat.com>
31364
31365         vc-list-files: don't cause coreutils "make po-check" failure
31366         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
31367
31368 2008-04-03  Eric Blake  <ebb9@byu.net>
31369
31370         Allow VPATH usage of vc-list-files.
31371         * build-aux/vc-list-files (scriptversion): Add timestamp.
31372         (options): Add --help, --version, -C.
31373         (CVS): Support installed cvsu.
31374
31375 2008-04-02  Bruno Haible  <bruno@clisp.org>
31376
31377         Avoid some "statement with no effect" warnings from gcc.
31378         * tests/test-wctype.c (main): Explicitly ignore unused values.
31379         Reported by Jim Meyering.
31380
31381 2008-04-02  Jim Meyering  <meyering@redhat.com>
31382
31383         Avoid some warnings from "gcc -Wshadow".
31384         * tests/test-frexp.c (exp): Define to a different identifier.
31385         * tests/test-frexpl.c (exp): Likewise.
31386
31387 2008-04-03  Jim Meyering  <meyering@redhat.com>
31388
31389         bootstrap: remove dangling *.[ch] symlinks from lib
31390         * build-aux/bootstrap [dangling symlink removal]: Move find's
31391         -depth option to precede all others, to avoid a warning.
31392         Remove *.[ch] files too, and from "$source_base" (usually lib/).
31393
31394 2008-04-02  Bruno Haible  <bruno@clisp.org>
31395
31396         Avoid some warnings from "gcc -Wshadow".
31397         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
31398         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
31399         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
31400         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
31401         Reported by Jim Meyering.
31402
31403 2008-04-01  Bruno Haible  <bruno@clisp.org>
31404
31405         Fix test to work on IRIX 6.5 with cc.
31406         * tests/test-math.c (numeric_equal): New function.
31407         (main): Use it.
31408
31409 2008-04-01  Bruno Haible  <bruno@clisp.org>
31410
31411         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
31412
31413 2008-04-01  Bruno Haible  <bruno@clisp.org>
31414
31415         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
31416         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
31417         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
31418         (Depends-on): Remove math.
31419
31420         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
31421         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
31422         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
31423         (Depends-on): Remove math.
31424
31425         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
31426         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
31427         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
31428         (Depends-on): Remove math.
31429         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
31430         (Depends-on): Remove math.
31431
31432         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
31433         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
31434         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
31435         (Depends-on): Remove math.
31436         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
31437         (Depends-on): Remove math.
31438
31439         * tests/test-round1.c: Include nan.h.
31440         (main): Use NaNd instead of NAN.
31441         * modules/round-tests (Files): Add tests/nan.h.
31442
31443         * tests/test-trunc1.c: Include nan.h.
31444         (main): Use NaNd instead of NAN.
31445         * modules/trunc-tests (Files): Add tests/nan.h.
31446
31447         * tests/test-roundf1.c: Include nan.h.
31448         (main): Use NaNf instead of NAN.
31449         * modules/roundf-tests (Files): Add tests/nan.h.
31450
31451         * tests/test-truncf1.c: Include nan.h.
31452         (main): Use NaNf instead of NAN.
31453         * modules/truncf-tests (Files): Add tests/nan.h.
31454
31455         * tests/test-ceilf1.c: Include nan.h.
31456         (main): Use NaNf instead of NAN.
31457         * modules/ceilf-tests (Files): Add tests/nan.h.
31458
31459         * tests/test-floorf1.c: Include nan.h.
31460         (main): Use NaNf instead of NAN.
31461         * modules/floorf-tests (Files): Add tests/nan.h.
31462
31463         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
31464         (main): Use NaNf instead of NAN.
31465         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
31466
31467         * tests/test-isnand.c: Include nan.h instead of <math.h>.
31468         (main): Use NaNd instead of NAN.
31469         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
31470
31471         * tests/test-frexp.c: Include nan.h.
31472         (main): Use NaNd instead of NAN.
31473         * modules/frexp-tests (Files): Add tests/nan.h.
31474
31475         * lib/isnan.c: Don't include <math.h>.
31476         (FUNC): Don't use NAN macro.
31477         * modules/isnand-nolibm (Depends-on): Remove math.
31478         * modules/isnanf-nolibm (Depends-on): Remove math.
31479         * modules/isnanl (Depends-on): Remove math.
31480         * modules/isnanl-nolibm (Depends-on): Remove math.
31481
31482         * tests/nan.h: New file.
31483
31484 2008-04-01  Eric Blake  <ebb9@byu.net>
31485
31486         Fix typos.
31487         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
31488         values to be the right type.
31489
31490         For now, cater to gnulib strtod inaccuracies.
31491         * tests/test-strtod.c (main): Allow 1-ulp error on expected
31492         fractional results.  While not as nice from a QoI perspective, it
31493         is a quicker patch than correctly implementing decimal to binary
31494         rounding.
31495
31496 2008-03-31  Eric Blake  <ebb9@byu.net>
31497
31498         Guarantee a definition of NAN.
31499         * lib/math.in.h (NAN): Define if missing.
31500         * tests/test-math.c (main): Test it.
31501         * doc/posix-headers/math.texi (math.h): Document this.
31502         * lib/isnan.c (rpl_isnand): Use it.
31503         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
31504         * tests/test-floorf1.c (NaN): Likewise.
31505         * tests/test-frexp.c (NaN): Likewise.
31506         * tests/test-isnand.c (NaN): Likewise.
31507         * tests/test-isnanf.c (NaN): Likewise.
31508         * tests/test-round1.c (NaN): Likewise.
31509         * tests/test-roundf1.c (NaN): Likewise.
31510         * tests/test-snprintf-posix.h (NaN): Likewise.
31511         * tests/test-sprintf-posix.h (NaN): Likewise.
31512         * tests/test-trunc1.c (NaN): Likewise.
31513         * tests/test-truncf1.c (NaN): Likewise.
31514         * tests/test-vasnprintf-posix.c (NaN): Likewise.
31515         * tests/test-vasprintf-posix.c (NaN): Likewise.
31516         * modules/isnand-nolibm (Depends-on): Add math.
31517         * modules/isnanf-nolibm (Depends-on): Likewise.
31518         * modules/isnanl (Depends-on): Likewise.
31519         * modules/isnanl-nolibm (Depends-on): Likewise.
31520         * modules/snprintf-posix-tests (Depends-on): Likewise.
31521         * modules/sprintf-posix-tests (Depends-on): Likewise.
31522         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
31523         * modules/vsprintf-posix-tests (Depends-on): Likewise.
31524         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
31525         * modules/vasprintf-posix-tests (Depends-on): Likewise.
31526
31527 2008-03-31  Bruno Haible  <bruno@clisp.org>
31528
31529         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
31530         * doc/posix-functions/strtod.texi: Likewise.
31531
31532 2008-03-31  Bruno Haible  <bruno@clisp.org>
31533
31534         * tests/test-strtod.c (main): Don't use C99 syntax.
31535
31536 2008-03-31  Bruno Haible  <bruno@clisp.org>
31537
31538         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
31539         Reported by Eric Blake.
31540
31541 2008-03-31  Jim Meyering  <meyering@redhat.com>
31542
31543         Don't compare actual signbit return values.
31544         * tests/test-strtod.c (main): Rather, compare only their
31545         zero/non-zero nature.
31546
31547 2008-03-31  Eric Blake  <ebb9@byu.net>
31548
31549         More strtod documentation.
31550         * doc/posix-functions/strtod.texi (strtod): Interpret more test
31551         failures as distinct bugs.
31552
31553 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
31554
31555         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
31556         Problem reported by Erik Benada in
31557         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
31558
31559 2008-03-30  Bruno Haible  <bruno@clisp.org>
31560
31561         * tests/test-strtod.c: Add comments about which assertion fails on which
31562         platform.
31563         * doc/posix-functions/strtod.texi: Add info about many more platforms.
31564
31565 2008-03-30  Eric Blake  <ebb9@byu.net>
31566
31567         Test signbit behavior on zeros.
31568         * tests/test-signbit.c (test_signbitf): Add tests for zero.
31569         (test_signbitd, test_signbitl): Likewise.
31570
31571         More strtod touchups.
31572         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
31573         sign of negative underflow, for now.  Use .5, not .1.
31574         * doc/posix-functions/strtod.texi (strtod): Mention these
31575         limitations.
31576         Reported by Jim Meyering.
31577
31578 2008-03-30  Bruno Haible  <bruno@clisp.org>
31579
31580         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
31581         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
31582
31583 2008-03-30  Bruno Haible  <bruno@clisp.org>
31584
31585         Avoid failure when attempting to return empty iconv results on some
31586         platforms.
31587         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
31588         allocation, don't report ENOMEM when the resulting string is empty.
31589
31590 2008-03-30  Bruno Haible  <bruno@clisp.org>
31591
31592         Fix buffer overrun.
31593         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
31594         Don't consider the width for tmp_length. Check count against tmp_length
31595         before doing the padding. Ensure enough allocation during padding.
31596
31597 2008-03-30  Eric Blake  <ebb9@byu.net>
31598
31599         strtod touchups.
31600         * lib/strtod.c (strtod): Avoid compiler warnings.
31601         Reported by Jim Meyering.
31602
31603 2008-03-30  Bruno Haible  <bruno@clisp.org>
31604
31605         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
31606         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
31607         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
31608         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
31609         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
31610         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
31611         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
31612         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
31613
31614         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
31615         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
31616         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
31617         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
31618         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
31619         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
31620         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
31621         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
31622
31623         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
31624         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
31625         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
31626         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
31627         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
31628         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
31629         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
31630         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
31631
31632         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
31633         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
31634
31635         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
31636         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
31637
31638         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
31639         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
31640
31641         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
31642         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
31643         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
31644
31645         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
31646         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
31647         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
31648
31649         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
31650         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
31651         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
31652
31653         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
31654         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
31655         * modules/vasprintf (Depends-on): Add EOVERFLOW.
31656
31657         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
31658         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
31659         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
31660         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
31661         (Depends-on): Add EOVERFLOW.
31662         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
31663         (Depends-on): Add EOVERFLOW.
31664         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
31665         (Depends-on): Add EOVERFLOW.
31666         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
31667         (Depends-on): Add EOVERFLOW.
31668         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
31669         (Depends-on): Add EOVERFLOW.
31670         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
31671         (Depends-on): Add EOVERFLOW.
31672         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
31673         (Depends-on): Add EOVERFLOW.
31674         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
31675         (Depends-on): Add EOVERFLOW.
31676
31677         * lib/sprintf.c (EOVERFLOW): Remove fallback.
31678         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
31679         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
31680
31681         * lib/snprintf.c (EOVERFLOW): Remove fallback.
31682         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
31683         * modules/snprintf (Depends-on): Add EOVERFLOW.
31684
31685         * lib/poll.c (EOVERFLOW): Remove fallback.
31686         * modules/poll (Depends-on): Add EOVERFLOW.
31687
31688         * lib/getugroups.c (EOVERFLOW): Remove fallback.
31689         * modules/getugroups (Depends-on): Add EOVERFLOW.
31690
31691         * lib/getdelim.c (EOVERFLOW): Remove fallback.
31692         * modules/getdelim (Depends-on): Add EOVERFLOW.
31693
31694         * lib/ftell.c (EOVERFLOW): Remove fallback.
31695         * modules/ftell (Depends-on): Add EOVERFLOW.
31696
31697         * lib/fprintf.c (EOVERFLOW): Remove fallback.
31698         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
31699         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
31700
31701         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
31702
31703         * modules/EOVERFLOW-tests: New file.
31704         * tests/test-EOVERFLOW.c: New file.
31705
31706         * modules/EOVERFLOW: New file.
31707         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
31708
31709 2008-03-30  Bruno Haible  <bruno@clisp.org>
31710
31711         Fix bug introduced on 2007-06-10.
31712         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
31713         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
31714
31715 2008-03-30  Bruno Haible  <bruno@clisp.org>
31716
31717         Improve freadseek's efficiency after ungetc.
31718         * lib/freadseek.c: Include freadahead.h.
31719         (freadptrinc): New function, extracted from freadseek.
31720         (freadseek): Use it in a loop. Use freadahead to determine the number
31721         of loop iterations.
31722         * modules/freadseek (Depends-on): Add freadahead.
31723         (configure.ac): Require AC_C_INLINE.
31724
31725 2008-03-30  Bruno Haible  <bruno@clisp.org>
31726
31727         * lib/freadseek.c (freadseek): Don't ignore the return value of
31728         freadptr.
31729
31730 2008-03-29  Eric Blake  <ebb9@byu.net>
31731
31732         Add hex float support.
31733         * modules/strtod (Depends-on): Add c-ctype.
31734         (Link): Mention POW_LIB.
31735         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
31736         whitespace between 'e' and exponent.
31737         * tests/test-strtod.c (main): Enable hex float tests.
31738         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
31739         now provides.
31740
31741         Document various strtod bugs, with some fixes.
31742         * doc/posix-functions/strtod.texi (strtod): Document bugs with
31743         "-0x", "inf", "nan", and hex constants.
31744         * doc/posix-functions/atof.texi (atof): Likewise.
31745         * modules/stdlib (Makefile.am): Support strtod.
31746         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
31747         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
31748         detect additional strtod bugs.
31749         * lib/stdlib.in.h (rpl_strtod): Add declarations.
31750         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
31751         bool where appropriate.  Parse 'inf' and 'nan'.
31752         * tests/test-strtod.c: New file.
31753         * modules/strtod (Depends-on): Add stdbool, stdlib.
31754         (configure.ac): Turn on module indicator.
31755         * modules/strtod-tests: New module.
31756
31757 2008-03-29  Eric Blake  <ebb9@byu.net>
31758
31759         Fix ftell on mingw.
31760         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
31761         * modules/ftell-tests (Depends-on): Add binary-io.
31762         * modules/ftello-tests (Depends-on): Likewise.
31763         * tests/test-ftell.c (main): Enhance test to cover behavior after
31764         ungetc.  Enforce binary mode.
31765         * tests/test-ftello.c (main): Likewise.
31766
31767         Pass test-freadseek on cygwin.
31768         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
31769         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
31770         ungetc buffer.
31771
31772         * tests/test-fflush2.c (main): Fix typo.
31773
31774 2008-03-29  Bruno Haible  <bruno@clisp.org>
31775
31776         * tests/test-fflush2.c (main): Temporarily disable the contents of
31777         this test.
31778         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
31779         Reported by Eric Blake.
31780
31781 2008-03-28  Simon Josefsson  <simon@josefsson.org>
31782
31783         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
31784         (GC_SHA224_DIGEST_SIZE): Add.
31785
31786         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
31787         (gc_hash_digest_length): Likewise.
31788         (gc_hash_buffer): Likewise.
31789
31790 2008-03-25  Bruno Haible  <bruno@clisp.org>
31791
31792         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
31793         detail which gettext release to use.
31794         Reported by Simon Josefsson.
31795
31796 2008-03-26  Jim Meyering  <meyering@redhat.com>
31797
31798         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
31799         * modules/gnumakefile (clean-GNUmakefile): Also, use
31800         test ... && ... || : syntax rather than if-then ... fi.
31801
31802         gnumakefile: Don't double-quote-expand $(VPATH) value.
31803         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
31804
31805 2008-03-24  Eric Blake  <ebb9@byu.net>
31806
31807         Alter GNUmakefile to install into top directory.
31808         * modules/maintainer-makefile: Split, and add dependency...
31809         * modules/gnumakefile: to this new module.
31810         * build-aux/GNUmakefile: Move...
31811         * top/GNUmakefile: ...here.
31812         * build-aux/maint.mk: Move...
31813         * top/maint.mk: ...here.
31814         * MODULES.html.sh (Support for maintaining...): Document new
31815         module.
31816
31817 2008-03-23  Bruno Haible  <bruno@clisp.org>
31818
31819         * gnulib-tool: New options --vc-files, --no-vc-files.
31820         (func_usage): Document them.
31821         (vc_files): New variable.
31822         (func_import): Consider vc_files.
31823         (func_create_testdir): Set vc_files to empty.
31824         Suggested by Jim Meyering and Karl Berry.
31825
31826 2008-03-23  Bruno Haible  <bruno@clisp.org>
31827
31828         Fix regex compilation error on HP-UX 11.
31829         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
31830         * modules/regex (Files): Add m4/mbstate_t.m4.
31831         Reported by Ton Voon <ton.voon@altinity.com>.
31832
31833 2008-03-23  Bruno Haible  <bruno@clisp.org>
31834
31835         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
31836
31837 2008-03-23  Eric Blake  <ebb9@byu.net>
31838             Bruno Haible  <bruno@clisp.org>
31839
31840         Install files from top/ in the destination directory.
31841         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
31842         augmentation also for the files from top/.
31843         (func_import, func_create_testdir): Rewrite file names:
31844         top/filename -> filename.
31845
31846 2008-03-23  Bruno Haible  <bruno@clisp.org>
31847
31848         Tweak "gnulib --version" output.
31849         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
31850
31851 2008-03-23  Bruno Haible  <bruno@clisp.org>
31852
31853         Tweak "gnulib --version" output.
31854         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
31855         rather than contents of ChangeLog, when possible.
31856
31857 2008-03-21  Eric Blake  <ebb9@byu.net>
31858
31859         More --version tweaks.
31860         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
31861         date of last ChangeLog entry.
31862
31863 2008-03-21  Jim Meyering  <meyering@redhat.com>
31864
31865         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
31866
31867 2008-03-20  Eric Blake  <ebb9@byu.net>
31868
31869         VPATH fix.
31870         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
31871
31872 2008-03-20  Simon Josefsson  <simon@josefsson.org>
31873
31874         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
31875         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
31876
31877 2008-03-20  Eric Blake  <ebb9@byu.net>
31878
31879         Sync GNUmakefile with coreutils.
31880         * build-aux/GNUmakefile (have-Makefile): Rename...
31881         (_have-Makefile): ...to this, for namespace consideration.
31882         (GNUmakefile.cfg): Include, if present.
31883         (_autoreconf): Define a default.
31884         (_is-dist-target): New rule for rebuilds to pick up intra-release
31885         version.
31886         (maint-cfg.mk): Rename...
31887         (cfg.mk): ...to this.
31888
31889 2008-03-18  Jim Meyering  <meyering@redhat.com>
31890
31891         New script and module: mktempd
31892         * MODULES.html.sh (maint+release support): Add mktempd.
31893         * build-aux/mktempd: New file.
31894         * modules/mktempd: New file.
31895
31896 2008-03-15  Jim Meyering  <meyering@redhat.com>
31897
31898         Undo last change.
31899         * lib/sha1.c, lib/md5.c: 63 != ~63.
31900         Reported by Andreas Schwab.
31901
31902         sha1.c, md5.c: Hoist a redundant expression.
31903         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
31904         "ctx->buflen" only once, before calling *_process_block.
31905         * lib/md5.c (md5_process_bytes): Likewise.
31906
31907 2008-03-14  Eric Blake  <ebb9@byu.net>
31908
31909         Bump copyright year in files generated by gnulib-tool.
31910         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
31911         gnulib-tool, rather than hard-coding it.
31912
31913         Fix 'gnulib-tool --version' output to work with git.
31914         * gnulib-tool (func_gnulib_dir): New function, extracted from...
31915         (startup): ...here.
31916         (func_version): Use it to invoke git-version-gen, rather than
31917         relying on CVS keyword expansion.  Modernize wording.
31918         (cvsdatestamp, last_checkin_date, version): Kill unused
31919         variables.
31920
31921 2008-03-12  Jim Meyering  <meyering@redhat.com>
31922
31923         Recognize optional cast of the argument to free.
31924         * build-aux/useless-if-before-free: Update regexps.
31925
31926         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
31927
31928 2008-03-11  Bruno Haible  <bruno@clisp.org>
31929
31930         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
31931         by a single package.
31932         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
31933         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
31934         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
31935         Reported by Sam Steingold <sds@gnu.org>.
31936
31937 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
31938
31939         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
31940         repositories.
31941
31942 2008-03-11  Bruno Haible  <bruno@clisp.org>
31943
31944         Avoid conflicts between local macro definitions.
31945         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
31946         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
31947
31948 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
31949             Bruno Haible  <bruno@clisp.org>
31950
31951         Make va_copy work with some version of xlc on AIX 5.1.
31952         * lib/stdarg.in.h: New file.
31953         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
31954         On AIX, use a <stdarg.h> file substitute.
31955         * modules/stdarg (Files): Add lib/stdarg.in.h.
31956         (Depends-on): Add include_next.
31957         (Makefile.am): Build a stdarg.h substitute if requested.
31958         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
31959
31960 2008-03-10  Bruno Haible  <bruno@clisp.org>
31961
31962         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
31963         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
31964         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
31965
31966 2008-03-10  Bruno Haible  <bruno@clisp.org>
31967
31968         * modules/stdlib (Depends-on): Add include_next, remove
31969         absolute-header.
31970
31971 2008-03-09  Bruno Haible  <bruno@clisp.org>
31972
31973         * lib/freadahead.h (freadahead): Document more precisely.
31974         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
31975         the sum of both buffer sizes.
31976         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
31977         * NEWS: Document the change.
31978
31979 2008-03-09  Bruno Haible  <bruno@clisp.org>
31980
31981         Extend freadptr to return also the buffer size.
31982         * lib/freadptr.h (freadptr): Add sizep argument.
31983         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
31984         (freadptr): Add sizep argument. Determine buffer size like freadahead
31985         does.
31986         * tests/test-freadptr.c: Don't include freadahead.h.
31987         (main): Adapt for new calling convention of freadptr.
31988         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
31989         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
31990         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
31991         tests/test-freadptr2.sh.
31992         (Depends): Remove freadahead.
31993         (TESTS): Add test-freadptr2.sh.
31994         (check_PROGRAMS): Add test-freadptr2.
31995
31996 2008-03-09  Bruno Haible  <bruno@clisp.org>
31997
31998         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
31999         Report and solution by Simon Josefsson.
32000
32001 2008-03-06  Bruno Haible  <bruno@clisp.org>
32002
32003         Make fflush after ungetc work on BSD platforms.
32004         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
32005         * tests/test-fflush2.c: New file.
32006         * tests/test-fflush2.sh: New file.
32007         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
32008         tests/test-fflush2.c.
32009         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
32010         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
32011
32012 2008-03-06  Eric Blake  <ebb9@byu.net>
32013
32014         Likewise for ftello.
32015         * modules/ftello (Dependencies): Add extensions.
32016         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
32017
32018 2008-03-06  Bruno Haible  <bruno@clisp.org>
32019
32020         * modules/fseeko (Dependencies): Add extensions.
32021         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
32022         Needed on glibc systems.
32023
32024 2008-03-06  Bruno Haible  <bruno@clisp.org>
32025
32026         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
32027         email address.
32028         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
32029
32030 2008-03-06  Bruno Haible  <bruno@clisp.org>
32031
32032         * users.txt: Add libgnupdf.
32033
32034 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
32035
32036         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
32037         (Header File Substitutes, Function Substitutes,
32038         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
32039         (Build robot for gnulib): Fix typo.
32040
32041 2008-03-06  Bruno Haible  <bruno@clisp.org>
32042
32043         * doc/gnulib-tool.texi (VCS Issues): Small updates.
32044         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
32045
32046 2008-03-06  Bruno Haible  <bruno@clisp.org>
32047
32048         * doc/func.texi: New file, extracted from doc/gnulib.texi.
32049         * doc/gnulib.texi: Include it.
32050
32051 2008-03-06  Simon Josefsson  <simon@josefsson.org>
32052
32053         * modules/func (License): Change license to unlimited; there was
32054         no LGPL parts in the module anyway.
32055
32056 2008-03-06  Simon Josefsson  <simon@josefsson.org>
32057
32058         * modules/__func__: Renamed to modules/func.
32059         * modules/__func__-tests: Renamed to modules/func-tests.
32060         * tests/test-__func__.c: Renamed to tests/test-func.c.
32061         * m4/__func__.m4: Renamed to m4/func.m4.
32062         * doc/gnulib.texi (__func__): Section renamed to func.
32063         Suggested by Eric Blake <ebb9@byu.net>.
32064
32065 2008-03-06  Simon Josefsson  <simon@josefsson.org>
32066
32067         * doc/gnulib.texi (__func__): Use C99 terminology when talking
32068         about __func__.  Make example self-contained.  Suggested by Eric
32069         Blake <ebb9@byu.net>.
32070
32071         * tests/test-__func__.c (main): Avoid extraneous () around __func.
32072         Suggested by Eric Blake <ebb9@byu.net>.
32073
32074 2008-03-06  Simon Josefsson  <simon@josefsson.org>
32075
32076         * modules/__func__: New file.
32077         * modules/__func__-tests: New file.
32078         * tests/test-__func__.c: New file.
32079         * m4/__func__.m4: New file.
32080         * doc/gnulib.texi (__func__): Document __func__ module.
32081
32082 2008-03-05  Simon Josefsson  <simon@josefsson.org>
32083
32084         * modules/byteswap (License): Re-license as LGPLv2+.
32085
32086 2008-03-05  Simon Josefsson  <simon@josefsson.org>
32087
32088         * doc/Makefile: Add pdf target.
32089
32090 2008-03-05  Simon Josefsson  <simon@josefsson.org>
32091
32092         * modules/inline (License): Use 'unlimited', since there are only
32093         *.m4 files in this module.
32094
32095 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
32096             Bruno Haible  <bruno@clisp.org>
32097
32098         Add support for HP C 7.1 on OpenVMS 8.3.
32099         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
32100
32101 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
32102
32103         Update VMS specifics.
32104         * lib/getopt.c [VMS]: Remove include of unixlib.h.
32105
32106 2008-03-02  Jim Meyering  <meyering@redhat.com>
32107
32108         Remove the last dependency on the "free" module.
32109         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
32110         Reported by Bob Proulx.
32111
32112         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
32113
32114         Remove useless "if" tests before free.  Deprecate "free" module.
32115         * doc/posix-functions/free.texi: Mention that this
32116         module is no longer useful.
32117         * modules/free (Notice): Say this module is obsolete.
32118         * modules/readutmp (Depends-on): Remove free.
32119         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
32120         * lib/putenv.c (putenv): Likewise.
32121         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
32122         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
32123         * tests/test-c-strcasestr.c (main): Likewise.
32124         * tests/test-c-strstr.c (main): Likewise.
32125         * tests/test-mbscasestr1.c (main): Likewise.
32126         * tests/test-mbscasestr2.c (main): Likewise.
32127         * tests/test-mbsstr1.c (main): Likewise.
32128         * tests/test-mbsstr2.c (main): Likewise.
32129         * tests/test-memmem.c (main): Likewise.
32130         * tests/test-strcasestr.c (main): Likewise.
32131         * tests/test-striconv.c (main): Likewise.
32132         * tests/test-striconveh.c (main): Likewise.
32133         * tests/test-striconveha.c (main): Likewise.
32134         * tests/test-strstr.c (main): Likewise.
32135
32136         * build-aux/git-version-gen: Adjust a comment and the Usage string.
32137
32138         bootstrap: sync from coreutils again
32139         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
32140
32141 2008-03-01  Jim Meyering  <meyering@redhat.com>
32142
32143         bootstrap: sync from coreutils
32144         * build-aux/bootstrap (update_po_files): Copy a .po file into place
32145         also when the target doesn't exist.
32146
32147 2008-03-01  Eric Blake  <ebb9@byu.net>
32148
32149         Fix bugs in last patch.
32150         * lib/memchr2.c (memchr2): Fix typo.
32151         * tests/test-memchr2.c: Test previous bug, and don't use GNU
32152         extension.
32153         Reported by Bruce Korb.
32154
32155         New module 'memchr2'.
32156         * modules/memchr2: New file.
32157         * modules/memchr2-tests: Likewise.
32158         * lib/memchr2.h: Likewise.
32159         * lib/memchr2.c: Likewise, based on memchr.c.
32160         * tests/test-memchr2.c: New test.
32161         * MODULES.html.sh (String handling): Add memchr2.
32162
32163 2008-02-29  Bruno Haible  <bruno@clisp.org>
32164
32165         * modules/freadseek-tests: New file.
32166         * tests/test-freadseek.sh: New file.
32167         * tests/test-freadseek.c: New file.
32168
32169         New module 'freadseek'.
32170         * modules/freadseek: New file.
32171         * lib/freadseek.h: New file.
32172         * lib/freadseek.c: New file.
32173         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
32174
32175 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
32176
32177         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
32178         wydawca.
32179
32180         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
32181         program_invocation_name and program_invocation_short_name are
32182         present.
32183
32184 2008-02-28  Bruno Haible  <bruno@clisp.org>
32185
32186         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
32187         * tests/test-freadptr.sh: Also test non-seekable stdin.
32188
32189 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
32190
32191         * build-aux/bootstrap (source_base, m4_base)
32192         (doc_base, tests_base): New variables.
32193         (gnulib_tool_options): Do not hardcode base directories, use
32194         the above variables instead.
32195
32196 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
32197
32198         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
32199
32200 2008-02-28  Bruno Haible  <bruno@clisp.org>
32201
32202         * modules/freadptr-tests: New file.
32203         * tests/test-freadptr.sh: New file.
32204         * tests/test-freadptr.c: New file.
32205
32206         New module 'freadptr'.
32207         * modules/freadptr: New file.
32208         * lib/freadptr.h: New file.
32209         * lib/freadptr.c: New file.
32210         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
32211
32212 2008-02-26  Karl Berry  <karl@freefriends.org>
32213
32214         Sync from Libtool:
32215         * libltdl/argz.c (argz_add, argz_count): New functions.
32216         * libltdl/argz.in.h: Declare them.
32217         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
32218
32219 2008-02-22  Bruno Haible  <bruno@clisp.org>
32220
32221         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
32222         is a pointer type.  Needed for HP-UX 10.
32223         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
32224         * doc/posix-functions/gmtime_r.texi: Likewise.
32225         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
32226
32227 2008-02-24  Bruno Haible  <bruno@clisp.org>
32228
32229         * modules/environ-tests: New file.
32230         * tests/test-environ.c: New file.
32231
32232         New module 'environ'.
32233         * modules/environ: New file.
32234         * lib/unistd.in.h (environ): New declaration.
32235         * m4/environ.m4: New file.
32236         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
32237         after use.
32238         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
32239         HAVE_DECL_ENVIRON.
32240         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
32241         HAVE_DECL_ENVIRON.
32242         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
32243         wrong claim that 'environ' is missing on some systems.
32244         * modules/execute (Depends-on): Add environ.
32245         * lib/execute.c (environ): Remove fallback declaration.
32246         * modules/pipe (Depends-on): Add environ.
32247         * lib/pipe.c (environ): Remove fallback declaration.
32248         * modules/setenv (Depends-on): Add environ.
32249         * lib/setenv.c (environ): Remove fallback declaration.
32250         * modules/unsetenv (Depends-on): Add environ.
32251         * lib/unsetenv.c (environ): Remove fallback declaration.
32252         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
32253         m4/environ.m4.
32254         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
32255         (gl_PREREQ_UNSETENV): Likewise.
32256
32257 2008-02-24  Bruno Haible  <bruno@clisp.org>
32258
32259         * doc/posix-functions/environ.texi: Document the MacOS X problem.
32260
32261 2008-02-20  Bob Proulx  <bob@proulx.com>
32262
32263         Enable use of older two part flavor 'git describe'.
32264         * build-aux/git-version-gen: If using the older two part flavor of
32265         git version then recreate the third part now present in the
32266         newer three part flavor of git describe.
32267
32268 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
32269
32270         * lib/fts.c (fts_build): Typo correction to comment.
32271
32272 2008-02-17  Bruno Haible  <bruno@clisp.org>
32273
32274         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
32275         generating no-op conflicts.
32276
32277 2008-02-17  Bruno Haible  <bruno@clisp.org>
32278
32279         Speed up by 10%.
32280         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
32281         result_entries, rather than an index-based loop.
32282
32283 2008-02-17  Bruno Haible  <bruno@clisp.org>
32284
32285         Speed up by 25%.
32286         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
32287         'hashcode_cached'.
32288         (entry_create): New function.
32289         (entry_hashcode): Use the cached hashcode if possible.
32290         (read_changelog_file, try_split_merged_entry): Use entry_create.
32291
32292 2008-02-17  Bruno Haible  <bruno@clisp.org>
32293
32294         Speed up from O(n^2) to O(n) for long ChangeLog files.
32295         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
32296         (read_changelog_file): Change implementation of entries_reversed list
32297         to rbtreehash.
32298         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
32299
32300 2008-02-17  Bruno Haible  <bruno@clisp.org>
32301
32302         New option --split-merged-entry.
32303         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
32304         (find_paragraph_end, try_split_merged_entry): New functions.
32305         (long_options): Add option --split-merged-entry.
32306         (usage): Document option --split-merged-entry.
32307         (main): Implement option --split-merged-entry.
32308         Reported by Eric Blake.
32309
32310 2008-02-17  Bruno Haible  <bruno@clisp.org>
32311
32312         * lib/git-merge-changelog.c: Include c-strstr.h.
32313         (main): Support the "git pull --rebase" situation.
32314         * modules/git-merge-changelog (Depends-on): Add c-strstr.
32315         Reported by Eric Blake.
32316
32317 2008-02-16  Eric Blake  <ebb9@byu.net>
32318
32319         Avoid doubling \ in common case of "c-maybe" quoting style.
32320         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
32321         eliding outer quotes.
32322         * lib/quotearg.h: Document this.
32323         * tests/test-quotearg.c (result_strings, inputs, results_g)
32324         (flag_results, locale_results): Test it by adding a new string to
32325         each test group.
32326         (compare_strings): Test new string.
32327
32328 2008-02-13  Eric Blake  <ebb9@byu.net>
32329
32330         Avoid trigraph quoting in default output.
32331         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
32332         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
32333         unless explicitly requested.
32334         * tests/test-quotearg.c (flag_results, main): Add additional tests.
32335
32336 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
32337
32338         Don't rely on signed integer overflowing to negative value.
32339         * lib/getugroups.c (getugroups): Include <limits.h>.
32340         Instead, compare against INT_MAX, and increment only if the test passes.
32341
32342 2008-02-13  Jim Meyering  <meyering@redhat.com>
32343         and Eric Blake  <ebb9@byu.net>
32344
32345         Avoid shadowing warning and compile errors on Linux.
32346         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
32347         forwarding macros on Linux.
32348         (dcgettext): Define a stub, for Linux.
32349         (results_g, main): Avoid warnings.
32350
32351 2008-02-12  Eric Blake  <ebb9@byu.net>
32352
32353         Silence warning in last patch.
32354         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
32355
32356         Quotearg part 4: add tests, fix c-maybe colon quoting.
32357         * lib/quotearg.h: Improve documentation.
32358         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
32359         escapes when adding outer quotes.  When quoting trigraphs, use
32360         valid C notation.  When quoting NUL, omit extra characters if next
32361         character is not digit.  Alter prototype.
32362         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
32363         callers.
32364         * modules/quotearg-tests: New module.
32365         * tests/test-quotearg.c: New test.
32366
32367 2008-02-07  Eric Blake  <ebb9@byu.net>
32368
32369         Quotearg part 3: add flag to control outer quote elision.
32370         * lib/quotearg.h (c_maybe_quoting_style): New style.
32371         (enum quoting_flags): Better documentation of flags.
32372         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
32373         c-maybe style.
32374         (quotearg_buffer_restyled): Handle new flag to elide outer
32375         quotes.
32376
32377         Quotearg part 2: add flag that can control NUL elision.
32378         * lib/quotearg.h (set_quoting_flags): New prototype.
32379         * lib/quotearg.c (struct quoting_options): Add flag field.
32380         (set_quoting_flags): New function.
32381         (quotearg_buffer_restyled): Add flags parameter.
32382         (quotearg_alloc_mem): Set the flag if length cannot be returned.
32383         (quotearg_n_options): Set the flag, since length cannot be
32384         returned.
32385         (quoting_options_from_style): Default flags correctly.
32386
32387         Quotearg part 1: more wrappers, restore quotearg_char state.
32388         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
32389         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
32390         (quotearg_colon_mem): New wrappers.
32391         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
32392         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
32393         functions.
32394         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
32395         (quotearg_colon_mem): New functions.
32396
32397 2008-02-11  Bruno Haible  <bruno@clisp.org>
32398
32399         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
32400         library in the current directory: it does not work with parallel make.
32401         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32402
32403 2008-02-11  Bruno Haible  <bruno@clisp.org>
32404
32405         * .gitattributes: New file.
32406
32407 2008-02-11  Jim Meyering  <meyering@redhat.com>
32408
32409         useless-if-before-free: Fix reversed exit values.
32410         * build-aux/useless-if-before-free: Use correct values
32411         for EXIT_MATCH and EXIT_NO_MATCH.
32412
32413         * build-aux/useless-if-before-free: Close stdout carefully.
32414
32415 2008-02-10  Bruno Haible  <bruno@clisp.org>
32416
32417         New module 'git-merge-changelog'.
32418         * modules/git-merge-changelog: New file.
32419         * lib/git-merge-changelog.c: New file.
32420
32421 2008-02-10  Jim Meyering  <meyering@redhat.com>
32422
32423         useless-if-before-free: New option: --list (-l).
32424
32425         useless-if-before-free: Don't exit immediately upon open failure.
32426         * build-aux/useless-if-before-free: Exit 2 for errors.
32427         Upon failure to open a file, don't exit immediately.
32428         Rather, just warn and continue with any remaining files.
32429
32430 2008-02-10  Bruno Haible  <bruno@clisp.org>
32431
32432         New abstract list operation 'node_set_value'.
32433         * lib/gl_list.h (gl_list_node_set_value): New function.
32434         (struct gl_list_implementation): New field node_set_value.
32435         * lib/gl_list.c (gl_list_node_set_value): New function.
32436         * lib/gl_array_list.c (gl_array_node_set_value): New function.
32437         (gl_array_list_implementation): Update.
32438         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
32439         (gl_carray_list_implementation): Update.
32440         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
32441         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
32442         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
32443         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
32444         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
32445         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
32446         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
32447         Update.
32448         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
32449         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
32450         (gl_sublist_list_implementation): Update.
32451
32452 2008-02-10  Bruno Haible  <bruno@clisp.org>
32453
32454         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
32455         Needed when ELEMENT is #defined to 'some_type *'.
32456
32457 2008-02-10  Jim Meyering  <meyering@redhat.com>
32458
32459         New script and module: useless-if-before-free
32460         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
32461         * build-aux/useless-if-before-free: New file.
32462         * modules/useless-if-before-free: New file.
32463
32464         * build-aux/gitlog-to-changelog: Use committer date, not author date.
32465
32466         xstrtol_error: Fix typo.
32467         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
32468         s/exit_failure/exit_status/.
32469
32470 2008-02-09  Jim Meyering  <meyering@redhat.com>
32471
32472         New script and module: gitlog-to-changelog
32473         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
32474         * modules/gitlog-to-changelog: New file.
32475         * build-aux/gitlog-to-changelog: New file.
32476
32477 2008-02-08  Jim Meyering  <meyering@redhat.com>
32478
32479         Avoid two "parameter unused" warnings.
32480         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
32481         Mark "st" as used.
32482
32483         Use "git COMMAND", not "git-COMMAND".
32484         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
32485         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
32486         * build-aux/git-version-gen: Use "git status", not "git-status".
32487
32488 2008-02-07  Bruno Haible  <bruno@clisp.org>
32489
32490         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
32491         Avoids a crash on Windows Vista.
32492         Reported by Adam Strzelecki <ono@java.pl> via
32493         Simon Josefsson <simon@josefsson.org>.
32494
32495 2008-02-06  Bruno Haible  <bruno@clisp.org>
32496
32497         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
32498         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
32499         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
32500         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
32501         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
32502         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32503         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
32504         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
32505         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32506         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32507         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32508         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32509         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32510         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32511         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32512         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
32513         left-adjust flag.
32514         * tests/test-snprintf-posix.h (test_function): Likewise.
32515         * tests/test-sprintf-posix.h (test_function): Likewise.
32516         * tests/test-vasprintf-posix.c (test_function): Likewise.
32517         * doc/posix-functions/fprintf.texi: Update.
32518         * doc/posix-functions/printf.texi: Update.
32519         * doc/posix-functions/snprintf.texi: Update.
32520         * doc/posix-functions/sprintf.texi: Update.
32521         * doc/posix-functions/vfprintf.texi: Update.
32522         * doc/posix-functions/vprintf.texi: Update.
32523         * doc/posix-functions/vsnprintf.texi: Update.
32524         * doc/posix-functions/vsprintf.texi: Update.
32525         Reported by Peter Fales <psfales@alcatel-lucent.com>.
32526
32527 2008-02-06  Bruno Haible  <bruno@clisp.org>
32528
32529         Fix bug introduced on 2008-01-26.
32530         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
32531
32532 2008-02-06  Bruno Haible  <bruno@clisp.org>
32533
32534         Fix bug introduced on 2007-06-10.
32535         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
32536         !NEED_PRINTF_FLAG_ZERO.
32537
32538 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
32539
32540         getloadavg: use libperfstat on AIX5
32541         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
32542
32543 2008-02-03  Bruno Haible  <bruno@clisp.org>
32544
32545         * lib/diffseq.h: Add comments about required #includes.
32546         Reported by Michael Biggs <gnulib@doubleplum.net>.
32547
32548 2008-02-01  Bruno Haible  <bruno@clisp.org>
32549
32550         * users.txt: Add gnuit.
32551
32552 2008-01-31  Bruno Haible  <bruno@clisp.org>
32553
32554         * lib/md4.c (set_uint32): Mark as inline.
32555         * lib/md5.c (set_uint32): Likewise.
32556         * lib/sha1.c (set_uint32): Likewise.
32557         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
32558         * m4/md5.m4 (gl_MD5): Likewise.
32559         * m4/sha1.m4 (gl_SHA1): Likewise.
32560
32561 2008-01-31  Jim Meyering  <meyering@redhat.com>
32562
32563         Use "sizeof VAR", rather than a literal "4".
32564         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
32565         * lib/md4.c (md4_read_ctx): Likewise.
32566         * lib/sha1.c (sha1_read_ctx): Likewise.
32567
32568 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32569
32570         * tests/test-sha1.c: New file, based on test-md5.c.
32571
32572         * modules/crypto/sha1-tests: New file.
32573
32574 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32575
32576         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
32577
32578 2008-01-31  Jim Meyering  <meyering@redhat.com>
32579
32580         Prefer "sizeof v" over the equivalent "4".
32581         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
32582         * lib/md5.c (set_uint32): Likewise.
32583         * lib/sha1.c (set_uint32): Likewise.
32584
32585 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32586
32587         * lib/sha1.c (set_uint32): Mark function as static.
32588
32589 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32590
32591         md2: clarify comments to say that alignment is not required.
32592         * lib/md2.h: Remove warning about alignment in comment.
32593         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
32594         never been required.
32595
32596 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32597
32598         md4: adapt alignment constraint fix from sha1.
32599         * lib/md4.c (set_uint32): New function, from sha1.c
32600         (md4_read_ctx): Use it.
32601         (md4_finish_ctx): Doc fix.
32602         * lib/md4.h: Doc fix.
32603
32604 2008-01-31  Simon Josefsson  <simon@josefsson.org>
32605
32606         md5: adapt alignment constraint fix from sha1.
32607         * lib/md5.c (set_uint32): New function, from sha1.c
32608         (md5_read_ctx): Use it.
32609         (md5_finish_ctx): Doc fix.
32610         * lib/md5.h: Doc fix.
32611
32612 2008-01-30  Peter Palfrader  <weasel@debian.org>
32613
32614         sha1: remove the result buffer alignment constraint
32615         * lib/sha1.c (set_uint32): New function.
32616         (sha1_read_ctx): Rewrite to remove the result buffer alignment
32617         constraint.
32618         (sha1_finish_ctx): Remove comment warning about alignment constraint.
32619         * lib/sha1.h: Likewise.
32620
32621 2008-01-30  Andreas Schwab  <schwab@suse.de>
32622             Bruno Haible  <bruno@clisp.org>
32623
32624         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
32625         correct definition of LDBL_MIN_EXP.
32626
32627 2008-01-30  Karl Berry  <karl@gnu.org>
32628
32629         * config/srclist-update: try to preserve x bit on updates.
32630         * config/srclistvars.sh: update for karl.
32631
32632 2008-01-29  Jim Meyering  <meyering@redhat.com>
32633
32634         vasnprintf.c: Avoid warning about unused label
32635         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
32636         "overflow" label definition and associated code with the
32637         same cpp condition that guards the sole use of that label.
32638
32639 2008-01-26  Bruno Haible  <bruno@clisp.org>
32640
32641         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
32642         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
32643         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
32644         * lib/isnanl-nolibm.h (isnanl): Likewise.
32645         Reported by Paul Eggert <eggert@cs.ucla.edu>.
32646
32647 2008-01-26  Bruno Haible  <bruno@clisp.org>
32648
32649         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
32650         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
32651
32652 2008-01-26  Bruno Haible  <bruno@clisp.org>
32653
32654         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
32655         GCC >= 4.0 built-in.
32656         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
32657
32658 2008-01-26  Bruno Haible  <bruno@clisp.org>
32659
32660         Rename isnan, applicable to 'double' only, to isnand.
32661         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
32662         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
32663         (configure.ac): Update.
32664         (Include): Replace "isnan.h" with "isnand.h".
32665         * m4/isnand.m4: Renamed from m4/isnan.m4.
32666         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
32667         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
32668         instead of isnan.c.
32669         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
32670         instead of HAVE_ISNAN_IN_LIBC.
32671         (isnand): Renamed from isnan.
32672         * lib/isnand.c: New file.
32673         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
32674         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
32675         (Makefile.am): Update.
32676         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
32677         Include isnand.h instead of isnan.h.
32678         (main): Test isnand instead of isnan.
32679         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
32680         isnan-nolibm.
32681         * modules/frexp (Depends-on): Likewise.
32682         * modules/frexp-tests (Depends-on): Likewise.
32683         * modules/frexp-nolibm (Depends-on): Likewise.
32684         * modules/frexp-nolibm-tests (Depends-on): Likewise.
32685         * modules/isfinite (Depends-on): Likewise.
32686         * modules/round-tests (Depends-on): Likewise.
32687         * modules/signbit (Depends-on): Likewise.
32688         * modules/signbit-tests (Depends-on): Likewise.
32689         * modules/snprintf-posix (Depends-on): Likewise.
32690         * modules/sprintf-posix (Depends-on): Likewise.
32691         * modules/trunc-tests (Depends-on): Likewise.
32692         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
32693         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
32694         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
32695         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
32696         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
32697         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
32698         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
32699         * modules/vasnprintf-posix (Depends-on): Likewise.
32700         * modules/vasprintf-posix (Depends-on): Likewise.
32701         * modules/vfprintf-posix (Depends-on): Likewise.
32702         * modules/vsnprintf-posix (Depends-on): Likewise.
32703         * modules/vsprintf-posix (Depends-on): Likewise.
32704         * lib/frexp.c: Include isnand.h instead of isnan.h.
32705         (ISNAN): Set to isnand instead of isnan.
32706         * lib/isfinite.c: Include isnand.h instead of isnan.h.
32707         (gl_isfinited): Use isnand instead of isnan.
32708         * lib/signbitd.c: Include isnand.h instead of isnan.h.
32709         (gl_signbitd): Use isnand instead of isnan.
32710         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
32711         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
32712         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
32713         (main): Use isnand instead of isnan.
32714         * tests/test-round1.c: Include isnand.h.
32715         (main): Use isnand instead of isnan.
32716         * tests/test-round2.c: Include isnand.h instead of isnan.h.
32717         (ISNAN): Set to isnand instead of isnan.
32718         * tests/test-trunc1.c: Include isnand.h.
32719         (main): Use isnand instead of isnan.
32720         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
32721         (equal): Use isnand instead of isnan.
32722         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
32723         isnand-nolibm.
32724         * NEWS: Mention the change.
32725
32726 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
32727             Bruno Haible  <bruno@clisp.org>
32728
32729         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
32730         the GCC builtins for signbits are present and set
32731         REPLACE_SIGNBIT_USING_GCC if so.
32732         * lib/math.in.h (signbit): Define using GCC builtins if
32733         REPLACE_SIGNBIT_USING_GCC is set.
32734         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
32735         REPLACE_SIGNBIT_USING_GCC.
32736         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
32737
32738 2008-01-25  Jim Meyering  <meyering@redhat.com>
32739
32740         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
32741         * lib/poll.c: Include <config.h>, not "config.h".
32742         * tests/test-getaddrinfo.c: Likewise.
32743
32744 2008-01-25  Simon Josefsson  <simon@josefsson.org>
32745
32746         * modules/sockets-tests: New file.
32747
32748 2008-01-24  Simon Josefsson  <simon@josefsson.org>
32749
32750         * modules/sockets: New module, can be used to call WSA_Startup and
32751         WSA_Cleanup when needed.
32752
32753         * lib/sockets.h, lib/sockets.c: New files.
32754
32755         * m4/sockets.m4: New file.
32756
32757         * tests/test-sockets.c: New file.
32758
32759 2008-01-19  Bruno Haible  <bruno@clisp.org>
32760
32761         * doc/posix-headers: Renamed from doc/headers.
32762         * doc/posix-functions: Renamed from doc/functions.
32763         * doc/gnulib.texi: Update.
32764
32765 2008-01-19  Bruno Haible  <bruno@clisp.org>
32766
32767         * doc/glibc-functions/strcasestr.texi: Include contents of
32768         doc/functions/strcasestr.texi, fixing the list of platforms.
32769         * doc/functions/strcasestr.texi: Remove file.
32770
32771 2008-01-19  Bruno Haible  <bruno@clisp.org>
32772
32773         * doc/glibc-functions/memmem.texi: Include contents of
32774         doc/functions/memmem.texi.
32775         * doc/functions/memmem.texi: Remove file.
32776
32777 2008-01-18  Bruno Haible  <bruno@clisp.org>
32778
32779         * doc/glibc-functions/*.texi: New files.
32780         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
32781         to use the new files.
32782
32783 2008-01-17  Bruno Haible  <bruno@clisp.org>
32784
32785         * tests/test-gethostname.c (main): Fix printf statement.
32786
32787 2008-01-17  Simon Josefsson  <simon@josefsson.org>
32788
32789         * modules/gethostname-tests: New file.
32790
32791         * tests/test-gethostname.c: New file.
32792
32793 2008-01-17  Simon Josefsson  <simon@josefsson.org>
32794
32795         * lib/gethostname.c: Include string.h unconditionally, strncpy is
32796         used by the UNAME case.  Reported by Bruno Haible
32797         <bruno@clisp.org>.
32798
32799 2008-01-17  Eric Blake  <ebb9@byu.net>
32800
32801         Convert c-strcasestr to be more efficient.
32802         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
32803         (Depends-on): Add c-strcase, remove malloca, strnlen.
32804         * tests/test-c-strcasestr.c (main): Enhance test.
32805         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
32806
32807 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
32808
32809         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
32810         Use it in creating po/Makevars.
32811
32812 2008-01-15  Simon Josefsson  <simon@josefsson.org>
32813
32814         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
32815         Applications that requires it should initialize libgcrypt
32816         manually.
32817
32818 2008-01-16  Simon Josefsson  <simon@josefsson.org>
32819
32820         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
32821
32822 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
32823
32824         Fix problem with getdate on mingw32 reported by Simon Josefsson
32825         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
32826         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
32827         tzname", when deciding whether to declare tzname.
32828         * lib/strftime.c (tzname): Likewise.
32829
32830 2008-01-15  Bruno Haible  <bruno@clisp.org>
32831
32832         Work around a MacOS X 10.5 bug in frexpl().
32833         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
32834         * doc/functions/frexpl.texi: Document the bug.
32835         Reported by Elias Pipping <pipping@gentoo.org>.
32836
32837 2008-01-14  Eric Blake  <ebb9@byu.net>
32838
32839         Touch up previous patch.
32840         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
32841         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
32842
32843         Convert strcasestr module to use Two-Way algorithm.
32844         * modules/strcasestr-simple: New module, based on the old
32845         strcasestr, but with Two-Way rather than KMP.
32846         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
32847         * lib/string.in.h (rpl_strcasestr): Declare.
32848         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
32849         performance.
32850         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
32851         * modules/string (Makefile.am): Support strcasestr.
32852         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
32853         * modules/strcasestr-tests (Depends-on): Check for alarm.
32854         * tests/test-strcasestr.c: Augment test.
32855         * lib/str-two-way.h: Clean up stray macro.
32856         * NEWS: Document new module.
32857         * MODULES.html.sh (string handling): Likewise.
32858         * doc/functions/strcasestr.texi: New file.
32859         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
32860         here, since it is not a POSIX function.
32861
32862 2008-01-14  Colin Watson  <cjwatson@debian.org>
32863             Bruno Haible  <bruno@clisp.org>
32864
32865         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
32866         works fine; if not, set REPLACE_STRSIGNAL.
32867         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
32868         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32869         REPLACE_STRSIGNAL.
32870         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
32871         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
32872         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
32873
32874 2008-01-14  Bruno Haible  <bruno@clisp.org>
32875
32876         * modules/strsignal (Include): Change to <string.h>.
32877
32878 2008-01-14  Colin Watson  <cjwatson@debian.org>
32879
32880         * modules/argp (Notice): Add a notice recommending to change
32881         XGETTEXT_OPTIONS.
32882         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
32883
32884 2008-01-13  Colin Watson  <cjwatson@debian.org>
32885
32886         * modules/strsignal-tests: New file.
32887         * tests/test-strsignal.c: New file.
32888
32889         * lib/strsignal.c: New file, from glibc with modifications.
32890         * lib/siglist.h: New file, from glibc with modifications.
32891         * lib/string.in.h (strsignal): New declaration.
32892         * m4/strsignal.m4: New file.
32893         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32894         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
32895         * modules/strsignal: New file.
32896         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
32897         HAVE_DECL_STRSIGNAL.
32898
32899 2008-01-13  Bruno Haible  <bruno@clisp.org>
32900
32901         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
32902         locale encoding is not ASCII. Needed for OpenBSD 4.0.
32903         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
32904         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
32905
32906 2008-01-13  Bruno Haible  <bruno@clisp.org>
32907
32908         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
32909         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
32910         * lib/argp.h (__attribute__): Likewise.
32911         * lib/c-stack.c (__attribute__): Likewise.
32912         * lib/error.h (__attribute__): Likewise.
32913         * lib/fts.c (__attribute__): Likewise.
32914         * lib/openat.h (__attribute__): Likewise.
32915         * lib/stdio.in.h (__attribute__): Likewise.
32916         * lib/string.in.h (__attribute__): Likewise.
32917         * lib/utimens.c (__attribute__): Likewise.
32918         * lib/vasnprintf.h (__attribute__): Likewise.
32919         * lib/xalloc.h (__attribute__): Likewise.
32920         * lib/xprintf.h (__attribute__): Likewise.
32921         * lib/xstrtol.h (__attribute__): Likewise.
32922         * lib/xvasprintf.h (__attribute__): Likewise.
32923
32924 2008-01-12  Bruno Haible  <bruno@clisp.org>
32925
32926         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
32927         * doc/glibc-headers/a.out.texi: New file.
32928         * doc/glibc-headers/aliases.texi: New file.
32929         * doc/glibc-headers/alloca.texi: New file.
32930         * doc/glibc-headers/ar.texi: New file.
32931         * doc/glibc-headers/argp.texi: New file.
32932         * doc/glibc-headers/argz.texi: New file.
32933         * doc/glibc-headers/byteswap.texi: New file.
32934         * doc/glibc-headers/crypt.texi: New file.
32935         * doc/glibc-headers/endian.texi: New file.
32936         * doc/glibc-headers/envz.texi: New file.
32937         * doc/glibc-headers/err.texi: New file.
32938         * doc/glibc-headers/error.texi: New file.
32939         * doc/glibc-headers/execinfo.texi: New file.
32940         * doc/glibc-headers/fpu_control.texi: New file.
32941         * doc/glibc-headers/fstab.texi: New file.
32942         * doc/glibc-headers/fts.texi: New file.
32943         * doc/glibc-headers/getopt.texi: New file.
32944         * doc/glibc-headers/ieee754.texi: New file.
32945         * doc/glibc-headers/ifaddrs.texi: New file.
32946         * doc/glibc-headers/libintl.texi: New file.
32947         * doc/glibc-headers/mcheck.texi: New file.
32948         * doc/glibc-headers/mntent.texi: New file.
32949         * doc/glibc-headers/obstack.texi: New file.
32950         * doc/glibc-headers/paths.texi: New file.
32951         * doc/glibc-headers/printf.texi: New file.
32952         * doc/glibc-headers/pty.texi: New file.
32953         * doc/glibc-headers/resolv.texi: New file.
32954         * doc/glibc-headers/shadow.texi: New file.
32955         * doc/glibc-headers/sysexits.texi: New file.
32956         * doc/glibc-headers/ttyent.texi: New file.
32957
32958 2008-01-12  Jim Meyering  <meyering@redhat.com>
32959
32960         announce-gen: emit Gnulib's git-based version string.
32961         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
32962         New option --gnulib-version=V, where V is expected to be
32963         the output of running git describe in the gnulib directory.
32964         (get_tool_versions): Request feedback on xdelta.  I suspect it's
32965         not useful, and plan to stop publishing an xdelta file with each
32966         coreutils release.
32967
32968         * build-aux/announce-gen: Also check for lzma-compressed files.
32969
32970 2008-01-11  Bruno Haible  <bruno@clisp.org>
32971
32972         * tests/test-memmem.c (main): Increase maximum allowed time.
32973         * tests/test-strstr.c (main): Likewise.
32974
32975 2008-01-11  Bruno Haible  <bruno@clisp.org>
32976
32977         * doc/functions/memmem.texi: Add more precisions about platforms.
32978         * doc/functions/strstr.texi: Likewise.
32979
32980 2008-01-10  Eric Blake  <ebb9@byu.net>
32981
32982         * m4/strstr.m4: Delete cruft from copy-n-paste.
32983         Reported by Bruno Haible.
32984
32985 2008-01-10  Bruno Haible  <bruno@clisp.org>
32986
32987         Make c-strstr rely on strstr.
32988         * lib/c-strstr.c: Don't include str-kmp.h.
32989         (c_strstr): Define in terms of strstr.
32990         * modules/c-strstr (Files): Remove lib/str-kmp.h.
32991         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
32992
32993 2008-01-10  Bruno Haible  <bruno@clisp.org>
32994
32995         * doc/gnulib.texi (String Functions in C Locale): New section.
32996         * doc/c-ctype.texi: New file.
32997         * doc/c-strcase.texi: New file.
32998         * doc/c-strcaseeq.texi: New file.
32999         * doc/c-strcasestr.texi: New file.
33000         * doc/c-strstr.texi: New file.
33001         * doc/c-strtod.texi: New file.
33002         * doc/c-strtold.texi: New file.
33003
33004 2008-01-10  Eric Blake  <ebb9@byu.net>
33005
33006         * lib/relocatable.h: Fix a comment.
33007
33008 2008-01-10  Eric Blake  <ebb9@byu.net>
33009
33010         Share two-way algorithm.
33011         * lib/str-two-way.h: New file, merged from...
33012         * lib/memmem.c: ...here...
33013         * lib/strstr.c: ...and here.
33014         * modules/memmem (Files): Use it.
33015         * modules/strstr (Files): Likewise.
33016
33017         Avoid quadratic strstr implementations.
33018         * lib/strstr.c: New file.
33019         * m4/strstr.m4: Likewise.
33020         * modules/strstr: Likewise.
33021         * modules/strstr-tests: Likewise.
33022         * tests/test-strstr.c: Likewise.
33023         * lib/string.in.h (rpl_strstr): Declare.
33024         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
33025         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
33026         * modules/string (Makefile.am): Likewise.
33027         * MODULES.html.sh (string handling): Mention new module.
33028         * doc/functions/strstr.texi (strstr): Document the bug.
33029
33030 2008-01-10  Bruno Haible  <bruno@clisp.org>
33031
33032         * lib/relocatable.h (relocate): State whether result is freshly
33033         allocated or not.
33034         * lib/relocatable.c (relocate): Return a freshly allocated string
33035         instead of a pointer to a privately held string.
33036         Reported by Sylvain Beucler <beuc@gnu.org>.
33037
33038 2008-01-10  Colin Watson  <cjwatson@debian.org>
33039
33040         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
33041         s/S_ISNLK/S_ISLNK/.
33042
33043 2008-01-09  Bruno Haible  <bruno@clisp.org>
33044
33045         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
33046         and other files.
33047         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
33048         if it's only a guess.
33049         * modules/memmem: Simplify by depending on memmem-simple.
33050
33051 2008-01-09  Bruno Haible  <bruno@clisp.org>
33052
33053         Work around OpenBSD 4.0 tdelete() bug.
33054         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
33055         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
33056         macros and don't redefine the enum values.
33057         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
33058         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
33059         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
33060
33061 2008-01-09  Bruno Haible  <bruno@clisp.org>
33062
33063         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
33064         (main): Don't perform the tests if setlocale did not install a UTF-8
33065         locale. Needed on OpenBSD 4.0.
33066         * modules/wcwidth-tests (Depends-on): Add localcharset.
33067
33068 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
33069
33070         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
33071         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
33072         * NEWS: announce this.
33073         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
33074
33075 2008-01-09  Simon Josefsson  <simon@josefsson.org>
33076         and Eric Blake  <ebb9@byu.net>
33077
33078         Add memmem-simple module.
33079         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
33080         (gl_FUNC_MEMMEM): Separate performance from presence checks.
33081         * modules/memmem-simple: New file.
33082         * modules/memmem (Description): Tweak.
33083         * MODULES.html.sh (string handling): Mention new module.
33084         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
33085         addressed by memmem-simple.
33086         * NEWS: Document the difference.
33087
33088 2008-01-09  Eric Blake  <ebb9@byu.net>
33089
33090         Give gcc some memmem optimization hints.
33091         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
33092         (strcasestr): Declare as pure.
33093         * modules/memmem (Maintainer): Claim my implementation.
33094
33095 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33096
33097         Support AIX 6.1 and higher.
33098         * build-aux/config.libpath: Likewise.
33099         * build-aux/config.rpath: Likewise.
33100
33101 2008-01-08  Jim Meyering  <meyering@redhat.com>
33102             Bruno Haible  <bruno@clisp.org>
33103
33104         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
33105         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
33106         Reported by Peter Fales in
33107         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
33108
33109 2008-01-08  Bruno Haible  <bruno@clisp.org>
33110
33111         * modules/unictype/category-of (Depends-on): Add
33112         unictype/category-none.
33113         * modules/unictype/category-and-tests (Depends-on): Add
33114         unictype/category-{L,N,Lu,Nd}.
33115         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
33116         * modules/unictype/category-or-tests (Depends-on): Add
33117         unictype/category-{L,N}.
33118         * modules/unictype/category-name-tests (Depends-on): Add
33119         unictype/category-{Z,Nl}.
33120         Reported by Simon Josefsson.
33121
33122 2008-01-08  Bruno Haible  <bruno@clisp.org>
33123
33124         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
33125         convention better.
33126         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
33127         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
33128         Reported by Peter Miller <millerp@canb.auug.org.au>.
33129
33130 2008-01-08  Eric Blake  <ebb9@byu.net>
33131
33132         Rewrite memmem to guarantee linear complexity without malloc.
33133         * lib/memmem.c (memmem): Use Two-Way rather than
33134         Knuth-Morris-Pratt, to allow O(1) space usage.
33135         (critical_factorization, two_way_short_needle)
33136         (two_way_long_needle): New functions.
33137         (knuth_morris_pratt): Delete.
33138         * modules/memmem (Depends-on): No longer need malloca or stdbool.
33139         Add stdint.
33140         * tests/test-memmem.c (main): Add tests for periodic needle and
33141         sublinear performance.
33142         * doc/functions/memmem.texi (memmem): Document other deficiencies
33143         in cygwin and older glibc.
33144
33145 2008-01-08  Bruno Haible  <bruno@clisp.org>
33146
33147         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
33148         augmentation.
33149
33150 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
33151
33152         Add a configure time option: --disable-acl.
33153         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
33154         AC_ARG_ENABLE(acl).
33155
33156 2008-01-06  Simon Josefsson  <simon@josefsson.org>
33157
33158         * tests/test-localename.c: Don't include obsolete "setenv.h".
33159
33160         * modules/localename-tests (Depends-on): Need unsetenv.
33161
33162 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33163
33164         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
33165
33166 2008-01-06  Colin Watson  <cjwatson@debian.org>
33167
33168         * users.txt: Add man-db.
33169
33170 2008-01-07  Bruno Haible  <bruno@clisp.org>
33171
33172         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
33173         previous section name.
33174
33175 2008-01-07  Bruno Haible  <bruno@clisp.org>
33176
33177         * lib/progname.c (set_program_name): Don't strip off a leading
33178         "lt-" prefix outside a .libs directory.
33179         Suggested by Paul Eggert.
33180
33181 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
33182             Bruno Haible  <bruno@clisp.org>
33183
33184         Improve memory cleanup in 'relocatable' module.
33185         * lib/relocatable.h (compute_curr_prefix): Change return type to
33186         'char *'.
33187         * lib/relocatable.c (compute_curr_prefix): Change return type to
33188         'char *'. Free curr_installdir after use.
33189         (relocate): Free curr_prefix_better after use.
33190         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
33191
33192 2008-01-01  Bruno Haible  <bruno@clisp.org>
33193
33194         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
33195         failure on older glibc systems.
33196         Reported by Peter Fales <psfales@alcatel-lucent.com>.
33197
33198 2008-01-05  Eric Blake  <ebb9@byu.net>
33199
33200         Avoid quadratic system memmem.
33201         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
33202         Reported by Ralf Wildenhues.
33203
33204         Fix memmem test for mingw.
33205         * modules/memmem-tests (configure.ac): Check for alarm.
33206         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
33207         it.
33208         * doc/functions/memmem.texi: New file.
33209         * doc/gnulib.texi (Function Substitutes): Add memmem.
33210         Reported by Bruno Haible.
33211
33212 2008-01-04  Bruno Haible  <bruno@clisp.org>
33213
33214         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
33215         Require gl_HEADER_STRINGS_H_DEFAULTS, not
33216         gl_HEADER_STRING_H_DEFAULTS.
33217
33218 2008-01-04  Eric Blake  <ebb9@byu.net>
33219
33220         Shorten duration of memmem test.
33221         * tests/test-memmem.c (main): Use alarm to declare failure if test
33222         is taking too long.
33223         Reported by Ralf Wildenhues.
33224
33225 2007-12-21  Simon Josefsson  <simon@josefsson.org>
33226
33227         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
33228         string, needed by strerror.
33229
33230 2008-01-03  Colin Watson  <cjwatson@debian.org>
33231             Bruno Haible  <bruno@clisp.org>
33232
33233         * doc/gnulib-tool.texi (Localization): New section.
33234
33235 2008-01-02  Bruno Haible  <bruno@clisp.org>
33236
33237         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
33238         variables to 'unsigned char *' type.
33239         Reported by Paul Eggert.
33240
33241 2008-01-02  Jim Meyering  <jim@meyering.net>
33242
33243         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
33244
33245 2007-12-31  Jim Meyering  <jim@meyering.net>
33246
33247         Avoid use of private FTS type name.
33248         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
33249
33250 2007-12-30  Karl Berry  <karl@gnu.org>
33251
33252         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
33253         work around defect in Texinfo and/or the standalone Info browser.
33254
33255 2007-12-30  Bruno Haible  <bruno@clisp.org>
33256
33257         Unify 5 copies of the KMP code.
33258         * lib/str-kmp.h: New file.
33259         * lib/c-strcasestr.c: Include str-kmp.h.
33260         (knuth_morris_pratt): Remove function.
33261         (c_strcasestr): Update.
33262         * lib/c-strstr.c: Include str-kmp.h.
33263         (knuth_morris_pratt): Remove function.
33264         (c_strcasestr): Update.
33265         * lib/mbscasestr.c: Include str-kmp.h.
33266         (knuth_morris_pratt_unibyte): Remove function.
33267         * lib/mbsstr.c: Include str-kmp.h.
33268         (knuth_morris_pratt_unibyte): Remove function.
33269         * lib/strcasestr.c: Include str-kmp.h.
33270         (knuth_morris_pratt): Remove function.
33271         (strcasestr): Update.
33272         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
33273         * modules/c-strstr (Files): Likewise.
33274         * modules/mbscasestr (Files): Likewise.
33275         * modules/mbsstr (Files): Likewise.
33276         * modules/strcasestr (Files): Likewise.
33277         Suggested by Paul Eggert.
33278
33279 2007-12-30  Bruno Haible  <bruno@clisp.org>
33280
33281         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
33282         defined.
33283
33284 2007-12-30  Bruno Haible  <bruno@clisp.org>
33285
33286         * lib/xmalloca.h: Include xalloc.h.
33287         (xnmalloca): New macro.
33288
33289 2007-12-30  Bruno Haible  <bruno@clisp.org>
33290
33291         * lib/malloca.h (nmalloca): New macro.
33292         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
33293         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
33294         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
33295         knuth_morris_pratt_multibyte): Likewise.
33296         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
33297         knuth_morris_pratt_multibyte): Likewise.
33298         * lib/memmem.c (knuth_morris_pratt): Likewise.
33299         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
33300
33301 2007-12-25  Bruno Haible  <bruno@clisp.org>
33302
33303         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
33304         * lib/glob.c: Don't include openat.h.
33305         (link_exists2_p): Add back the code that deals with the
33306         !GLOB_ALTDIRFUNC case.
33307         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
33308         let it do the filename concatenation.
33309         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
33310         * modules/glob (Depends-on): Remove openat.
33311
33312 2007-12-31  Bruno Haible  <bruno@clisp.org>
33313
33314         * modules/dirfd (License): Change to LGPLv2+.
33315         Approved by Jim Meyering.
33316
33317 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
33318
33319         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
33320         when multiplying M by sizeof (size_t).
33321
33322 2007-12-10  Martin Lambers  <marlam@marlam.de>
33323
33324         Override getpagesize on mingw.
33325         * lib/getpagesize.c: New file.
33326         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
33327         * modules/getpagesize (Files): Add lib/getpagesize.c.
33328         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
33329         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33330         REPLACE_GETPAGESIZE.
33331         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
33332
33333 2007-12-25  Bruno Haible  <bruno@clisp.org>
33334
33335         * modules/localcharset (Notice): New field.
33336         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
33337         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
33338
33339 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
33340             Bruno Haible  <bruno@clisp.org>
33341
33342         Avoid using the syntax symbol() in formatted documentation.
33343         * MODULES.html.sh (func_module): When replacing symbol() with a
33344         hyperlink, remove the parentheses. Show an error if some remain.
33345         Recognize and render the '...' syntax.
33346         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
33347         Rework. Add paragraph about GCC's inlining.
33348         * doc/alloca.texi: Likewise.
33349         * doc/error.texi: Remove parentheses from symbol reference.
33350         * doc/gnulib-intro.texi: Likewise.
33351         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
33352         * modules/fnmatch (Description): Reword to say "the ... function".
33353         * modules/full-read (Description): Likewise.
33354         * modules/full-write (Description): Likewise.
33355         * modules/safe-read (Description): Likewise.
33356         * modules/safe-write (Description): Likewise.
33357         * modules/strchrnul (Description): Likewise.
33358         * modules/trim (Description): Likewise.
33359         * modules/error (Description): Remove parentheses from symbol
33360         references.
33361         * modules/verror (Description): Likewise.
33362         Reported by Karl Berry.
33363
33364 2007-12-25  Bruno Haible  <bruno@clisp.org>
33365
33366         Fixup after 2007-10-16 commit.
33367         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
33368
33369 2007-12-24  Bruno Haible  <bruno@clisp.org>
33370
33371         Make --enable-relocatable work with DESTDIR.
33372         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
33373         to compute installdir from destprog.
33374         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
33375         also set the RELOC_DESTDIR variable.
33376         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
33377
33378 2007-12-24  Bruno Haible  <bruno@clisp.org>
33379
33380         Fix link error due to xalloc_die().
33381         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
33382         of xreadlink.
33383         * lib/relocwrapper.c: Update comments.
33384         * build-aux/install-reloc: Remove xreadlink.c from file list.
33385         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
33386         xreadlink.c.
33387         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
33388
33389 2007-12-24  Bruno Haible  <bruno@clisp.org>
33390
33391         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
33392         * lib/setenv.h: Remove file.
33393         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
33394         lib/setenv.h.
33395         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
33396         (Depends-on): Add stdlib.
33397         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
33398         gl_FUNC_UNSETENV.
33399         (Include): Replace setenv.h with <stdlib.h>.
33400         * modules/unsetenv: New file.
33401         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
33402         * lib/unsetenv.c: Include <stdlib.h> first.
33403         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
33404         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
33405         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
33406         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
33407         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
33408         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
33409         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
33410         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
33411         * doc/functions/unsetenv.texi: Update.
33412         * modules/xsetenv (Depends-on): Add unsetenv.
33413         * modules/getdate (Depends-on): Likewise.
33414         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
33415         * lib/xsetenv.c: Don't include setenv.h.
33416         * lib/getdate.y: Likewise.
33417         * lib/relocwrapper.c: Likewise.
33418         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
33419         (Depends-on): Add stdlib.
33420         * NEWS: Mention the changes.
33421         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
33422
33423 2007-12-23  Bruno Haible  <bruno@clisp.org>
33424
33425         * lib/memmem.c (memmem): Use lowercase variable names. Tab
33426         indentation.
33427
33428 2007-12-23  Bruno Haible  <bruno@clisp.org>
33429
33430         * lib/c-strcasestr.c: Add more comments.
33431         * lib/c-strstr.c: Likewise.
33432         * lib/mbscasestr.c: Likewise.
33433         * lib/mbsstr.c: Likewise.
33434         * lib/strcasestr.c: Likewise.
33435         * lib/memmem.c: Likewise.
33436
33437 2007-12-23  Bruno Haible  <bruno@clisp.org>
33438
33439         * tests/test-memmem.c: Include <string.h> first.
33440
33441 2007-12-22  Bruno Haible  <bruno@clisp.org>
33442
33443         * gnulib-tool (func_create_testdir): Change $auxdir while generating
33444         the contents of $testsbase.
33445         Reported by Ralf Wildenhues.
33446
33447 2007-12-22  Bruno Haible  <bruno@clisp.org>
33448
33449         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
33450         two variables local_ldadd_before, local_ldadd_last.
33451
33452 2007-12-20  Eric Blake  <ebb9@byu.net>
33453
33454         Work around circular library issue when cross-compiling.
33455         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
33456         that progname.o does not need to pull in rpl_memcmp.
33457
33458 2007-12-19  Eric Blake  <ebb9@byu.net>
33459
33460         Fix memmem to avoid O(n^2) worst-case complexity.
33461         * lib/memmem.c (knuth_morris_pratt): New function.
33462         (memmem): Use it if first few naive iterations fail.
33463         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
33464         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
33465         * modules/memchr (License): Likewise.
33466         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
33467         malloca.
33468         * tests/test-memmem.c: Rewrite, borrowing ideas from
33469         test-mbsstr1.c; the old version wouldn't even compile!
33470         * modules/memmem-tests: New file.
33471         * lib/string.in.h (rpl_memmem): Add declaration.
33472         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
33473         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
33474         REPLACE_MEMMEM.
33475
33476 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
33477
33478         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
33479         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
33480         before any system include files, and undef after them all.  This
33481         should fix a problem on VMS reported by John E. Malmberg in
33482         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
33483
33484 2007-12-17  Eric Blake  <ebb9@byu.net>
33485
33486         Revert addition of verify, for BSD/OS.
33487         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
33488         can't handle large files, for the sake of obsolete platforms.
33489         * modules/fseeko (Depends-on): Remove verify.
33490         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
33491         * doc/functions/ftello.texi (ftello): Likewise.
33492         * doc/functions/fgetpos.texi (fgetpos): Likewise.
33493         Reported by Larry Jones.
33494
33495 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
33496
33497         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
33498         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
33499
33500 2007-12-17  Jim Meyering  <meyering@redhat.com>
33501
33502         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
33503         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
33504         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
33505         * modules/getcwd (Depends-on): Add openat.
33506         Reported by Petr Salinger.
33507
33508 2007-12-17  Bruno Haible  <bruno@clisp.org>
33509
33510         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
33511         avoid a segmentation fault of the configure test on x86_64 systems.
33512
33513 2007-12-15  Jim Meyering  <meyering@redhat.com>
33514
33515         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
33516
33517 2007-12-13  Eric Blake  <ebb9@byu.net>
33518
33519         Another fseek test.
33520         * tests/test-fseek.c (main): Also test ungetc handling.
33521         * tests/test-fseeko.c (main): Likewise.
33522         * modules/fseeko (Depends-on): Add verify.
33523         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
33524         large.
33525         Reported by Larry Jones.
33526
33527         Fix fseeko on mingw.
33528         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
33529         seek.
33530
33531         Beef up fseek tests.
33532         * tests/test-fseek.c (main): Also test eof handling.
33533         * tests/test-fseeko.c (main): Likewise.
33534         Reported by Larry Jones.
33535
33536 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
33537
33538         Fix fseeko on BSD-based platforms.
33539         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
33540         successful seek.
33541
33542 2007-12-12  Eric Blake  <ebb9@byu.net>
33543
33544         Allow circular dependency of separate libtests.a
33545         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
33546         when use_libtests.
33547
33548 2007-12-11  Eric Blake  <ebb9@byu.net>
33549
33550         Fix bug with -0.0L in previous patch.
33551         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
33552         * tests/test-isnan.c (main): Also test on zeroes.
33553         * tests/test-isnanf.c (main): Likewise.
33554         * tests/test-isnanl.h (main): Likewise.
33555
33556         Detect pseudo-denormals on x86 even when cross-compiling.
33557         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
33558         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
33559         invalid bit patterns that happen to satisfy ==.
33560
33561         Avoid link failures with separate libtests.a.
33562         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
33563         last, to satisfy circular dependencies.
33564
33565 2007-12-11  Eric Blake  <ebb9@byu.net>
33566         and Bruno Haible  <bruno@clisp.org>
33567
33568         Fix OpenBSD 4.0 <float.h> handling of long double.
33569         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
33570         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
33571         * doc/headers/float.texi (float.h): Document OpenBSD bug.
33572
33573 2007-12-11  Jim Meyering  <meyering@redhat.com>
33574
33575         * users.txt: Add libvirt.
33576
33577         Support versions of autoconf prior to 2.59c.
33578         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
33579         if it is not already defined.
33580
33581 2007-12-09  Bruno Haible  <bruno@clisp.org>
33582
33583         Let 'gnulib-tool --import' collect sources needed for the tests in
33584         tests/ rather than in lib/.
33585         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
33586         argument. If true, add rules to generate libtests.a, and put libtests.a
33587         into $(LDADD). Consider source files in subdirectories and set
33588         uses_subdirs.
33589         (func_emit_initmacro_start, func_emit_initmacro_end,
33590         func_emit_initmacro_done): Pass all arguments explicitly.
33591         (func_import): Determine two module lists main_modules,
33592         testsrelated_modules. Determine use_libtests. Determine two variables
33593         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
33594         instead of just sed_transform_lib_file. Determine two variables
33595         main_files and testsrelated_files. Compute 'files' as the union of
33596         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
33597         func_add_or_update. In the generated gnulib-comp.m4, collect the
33598         object files for tests/ in different variables than those for lib/.
33599         Substitute LIBTESTS_LIBDEPS.
33600         (func_create_testdir): Combine the uses_subdirs results from
33601         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
33602
33603 2007-12-09  Bruno Haible  <bruno@clisp.org>
33604
33605         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
33606         the build-aux directory.
33607
33608 2007-12-09  Bruno Haible  <bruno@clisp.org>
33609
33610         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
33611         introduced on 2006-09-09.
33612
33613 2007-12-07  Jim Meyering  <meyering@redhat.com>
33614
33615         Let these macros work also with autoconf-2.59.
33616         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
33617         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
33618         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
33619
33620 2007-12-06  Jim Meyering  <meyering@redhat.com>
33621
33622         Avoid a configure-time syntax error in gl_FUNC_ACL.
33623         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
33624         function in each branch, before testing the cache variable.
33625
33626 2007-12-04  Eric Blake  <ebb9@byu.net>
33627
33628         Make scripts executable.
33629         * build-aux/config.guess: Add execute permissions.
33630         * build-aux/config.sub: Likewise.
33631         * build-aux/gendocs.sh: Likewise.
33632
33633         Fix frexp on mingw.
33634         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
33635         cross-compiling.
33636         * doc/functions/frexp.texi (frexp): Document the bug.
33637
33638         Make cygwin fseeko check more reliable.
33639         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
33640         version numbers, rather than unrelated feature check.
33641         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
33642         * doc/functions/ftello.texi (ftello): Likewise.
33643         Reported by Bruno Haible.
33644
33645         * m4/strerror.m4: Bump version number.
33646
33647 2007-12-03  Bruno Haible  <bruno@clisp.org>
33648
33649         * doc/functions/mprotect.texi: Mention the mingw problem.
33650
33651 2007-12-03  Eric Blake  <ebb9@byu.net>
33652
33653         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
33654         REPLACE_STRERROR is initialized before this macro.
33655
33656 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
33657
33658         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
33659         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
33660         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
33661         put -lsec in even for programs other than 'ls'.  This fixes a problem
33662         for gettext reported by Bruno Haible in
33663         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
33664         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
33665         Add support for Solaris 10.  This isn't efficient, but should get the
33666         job done for now.
33667
33668 2007-12-03  James Youngman  <jay@gnu.org>
33669
33670         * doc/regexprops-generic.texi: change "an close-group" to "a
33671         close-group" and "illegal" to "not allowed".
33672
33673 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33674
33675         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
33676         pr_byname.h. Needed for the rare case when the maintainer has done
33677         "make maintainer-clean" in the source directory and then attempts a
33678         build outside the source directory.
33679         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
33680         scripts_byname.h.
33681
33682 2007-12-02  Martin Lambers <marlam@marlam.de>
33683             Bruno Haible  <bruno@clisp.org>
33684
33685         * lib/getpagesize.h: Remove file.
33686         * lib/unistd.in.h: Include declaration of getpagesize here.
33687         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
33688         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
33689         HAVE_SYS_PARAM_H.
33690         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
33691         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
33692         * modules/getpagesize (Files): Remove lib/getpagesize.h.
33693         (Depends-on): Add unistd.
33694         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
33695         (Include): Use <unistd.h> instead of getpagesize.h.
33696         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
33697         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
33698         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
33699         gl_GETPAGESIZE invocation, already handled by module dependency.
33700         * lib/pagealign_alloc.c: Don't include getpagesize.h.
33701
33702 2007-12-02  Bruno Haible  <bruno@clisp.org>
33703
33704         * modules/strings-tests: New file.
33705         * tests/test-strings.c: New file.
33706
33707         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
33708         * lib/strings.in.h: New file.
33709         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
33710         * m4/strings_h.m4: New file.
33711         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
33712         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
33713         * modules/strings: New file.
33714         * modules/string (Makefile.am): Update.
33715         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
33716         Reported by Karl Berry.
33717
33718 2007-12-01  Eric Blake  <ebb9@byu.net>
33719
33720         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
33721         accomodate fix in cygwin 1.5.25.
33722
33723 2007-12-01  Jim Meyering  <meyering@redhat.com>
33724
33725         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
33726         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
33727         that would inhibit utf8-optimization of a regexp containing line-
33728         or buffer-anchors, e.g., `^', `$'.
33729
33730 2007-11-30  Bruno Haible  <bruno@clisp.org>
33731
33732         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
33733         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
33734         glthread_recursive_lock_init.
33735         * lib/lock.c (glthread_recursive_lock_init)
33736         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
33737         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
33738
33739 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
33740
33741         New function qset_acl, like set_acl but with syscall semantics.
33742         * lib/acl.h (qset_acl): New decl.
33743         * lib/acl.c (qset_acl): New function.
33744         (set_acl): Use new function.  Use more-consistent diagnostics.
33745
33746 2007-11-28  Jim Meyering  <meyering@redhat.com>
33747
33748         * modules/physmem (License): Change from GPL to LGPLv2+.
33749
33750 2007-11-26  Bruno Haible  <bruno@clisp.org>
33751
33752         * lib/vasnprintf.c (decode_long_double): Don't abort if the
33753         'long double' type has excess precision.
33754         Reported by Jim Meyering in
33755         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
33756
33757 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33758
33759         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
33760         Sync from <http://gnu.org/licenses>.
33761         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
33762         with license text from same location.
33763         * doc/maintain.texi, doc/standards.texi:  Sync from
33764         <http://savannah.gnu.org/projects/gnustandards>.
33765
33766 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
33767         and Jim Meyering  <meyering@redhat.com>
33768
33769         Adjust getdate' grammar to accept a slightly more regular language.
33770         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
33771         Before, the former was rejected.
33772         * lib/getdate.y (digits_to_date_time): New function, factored
33773         out of ...
33774         (number): ...here.  Just call digits_to_date_time.
33775         (hybrid): New non-terminal to handle an <unsigned number,
33776         signed relative offset> sequence consistently.
33777
33778 2007-11-18  Jim Meyering  <meyering@redhat.com>
33779
33780         Pull my changes from coreutils:
33781         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
33782         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
33783         use of $gnulib_tool_option_extras, so that it's separated from the
33784         preceding argument.
33785
33786         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
33787         * build-aux/bootstrap (cp_mark_as_generated): Create any required
33788         parent destination directories before copying a file into place.
33789
33790 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
33791
33792         bootstrap: work also with 4-argument variant of AC_INIT
33793         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
33794
33795 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
33796
33797         Port test-getaddrinfo to Solaris.
33798         Problem reported by Bruno Haible in
33799         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
33800         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
33801         explanation of setting 'hints'.
33802         Don't reject an implementation merely because it returns EAI_SERVICE.
33803         (EAI_SERVICE): Define to 0 if not defined.
33804
33805 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
33806
33807         The license of gnu-make and posix-shell is now "GPLed build tool".
33808         * modules/gnu-make (License): Likewise.
33809         * modules/posix-shell (License): Likewise.
33810
33811         New module posix-shell, for determining a POSIX shell
33812         or perhaps something that is close enough to a POSIX shell.
33813         * m4/posix-shell.m4: New file.
33814         * modules/posix-shell: New file.
33815
33816         * MODULES.html.sh: Mention new module.
33817
33818         New module gnu-make, for determining whether we're using GNU Make.
33819         * m4/gnu-make.m4: New file.
33820         * modules/gnu-make: New file.
33821         * MODULES.html.sh: Mention new module.
33822
33823 2007-11-14  Jim Meyering  <meyering@redhat.com>
33824
33825         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
33826         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
33827         use this macro to create a function _definition_.
33828         Remove useless "#undef ARGMATCH_DIE".
33829
33830 2007-11-14  Bruno Haible  <bruno@clisp.org>
33831
33832         * lib/config.charset: Update for OpenBSD 4.1.
33833         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
33834
33835 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
33836
33837         Document 64-bit #if problems in stdint.texi.
33838         * doc/headers/stdint.texi (stdint.h): Mention problems with
33839         64-bit-#if, and how to work around them.
33840
33841         Don't insist on 'long long int' support in the preprocessor.  It
33842         breaks too many things.  For example, PRIdMAX still uses a 'long
33843         long int' format with the latest Sun compiler, even though
33844         HAVE_LONG_LONG_INT isn't defined due to that compiler's
33845         preprocessor problem.  This causes the latest coreutils to dump
33846         core on Solaris 10 sparc with the Sun C compiler.
33847         Instead, fix the 2007-10-16 problem in a different way, by evaluating
33848         the troublesome expressions at configure-time, not at #if-time.
33849         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
33850         preprocessor.
33851         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
33852         compile-time C checks, done at 'configure'-time.
33853         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
33854         * modules/inttypes (Makefile): Substitute the new symbols that
33855         gl_INTTYPES_H now generates.
33856         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
33857
33858 2007-11-12  Bruno Haible  <bruno@clisp.org>
33859
33860         Tests for Unicode character classification functions.
33861
33862         * modules/unictype/bidicategory-byname-tests: New file.
33863         * modules/unictype/bidicategory-name-tests: New file.
33864         * modules/unictype/bidicategory-of-tests: New file.
33865         * modules/unictype/bidicategory-test-tests: New file.
33866         * modules/unictype/block-list-tests: New file.
33867         * modules/unictype/block-of-tests: New file.
33868         * modules/unictype/block-test-tests: New file.
33869         * modules/unictype/category-C-tests: New file.
33870         * modules/unictype/category-Cc-tests: New file.
33871         * modules/unictype/category-Cf-tests: New file.
33872         * modules/unictype/category-Cn-tests: New file.
33873         * modules/unictype/category-Co-tests: New file.
33874         * modules/unictype/category-Cs-tests: New file.
33875         * modules/unictype/category-L-tests: New file.
33876         * modules/unictype/category-Ll-tests: New file.
33877         * modules/unictype/category-Lm-tests: New file.
33878         * modules/unictype/category-Lo-tests: New file.
33879         * modules/unictype/category-Lt-tests: New file.
33880         * modules/unictype/category-Lu-tests: New file.
33881         * modules/unictype/category-M-tests: New file.
33882         * modules/unictype/category-Mc-tests: New file.
33883         * modules/unictype/category-Me-tests: New file.
33884         * modules/unictype/category-Mn-tests: New file.
33885         * modules/unictype/category-N-tests: New file.
33886         * modules/unictype/category-Nd-tests: New file.
33887         * modules/unictype/category-Nl-tests: New file.
33888         * modules/unictype/category-No-tests: New file.
33889         * modules/unictype/category-P-tests: New file.
33890         * modules/unictype/category-Pc-tests: New file.
33891         * modules/unictype/category-Pd-tests: New file.
33892         * modules/unictype/category-Pe-tests: New file.
33893         * modules/unictype/category-Pf-tests: New file.
33894         * modules/unictype/category-Pi-tests: New file.
33895         * modules/unictype/category-Po-tests: New file.
33896         * modules/unictype/category-Ps-tests: New file.
33897         * modules/unictype/category-S-tests: New file.
33898         * modules/unictype/category-Sc-tests: New file.
33899         * modules/unictype/category-Sk-tests: New file.
33900         * modules/unictype/category-Sm-tests: New file.
33901         * modules/unictype/category-So-tests: New file.
33902         * modules/unictype/category-Z-tests: New file.
33903         * modules/unictype/category-Zl-tests: New file.
33904         * modules/unictype/category-Zp-tests: New file.
33905         * modules/unictype/category-Zs-tests: New file.
33906         * modules/unictype/category-and-not-tests: New file.
33907         * modules/unictype/category-and-tests: New file.
33908         * modules/unictype/category-byname-tests: New file.
33909         * modules/unictype/category-name-tests: New file.
33910         * modules/unictype/category-none-tests: New file.
33911         * modules/unictype/category-of-tests: New file.
33912         * modules/unictype/category-or-tests: New file.
33913         * modules/unictype/category-test-withtable-tests: New file.
33914         * modules/unictype/combining-class-tests: New file.
33915         * modules/unictype/ctype-alnum-tests: New file.
33916         * modules/unictype/ctype-alpha-tests: New file.
33917         * modules/unictype/ctype-blank-tests: New file.
33918         * modules/unictype/ctype-cntrl-tests: New file.
33919         * modules/unictype/ctype-digit-tests: New file.
33920         * modules/unictype/ctype-graph-tests: New file.
33921         * modules/unictype/ctype-lower-tests: New file.
33922         * modules/unictype/ctype-print-tests: New file.
33923         * modules/unictype/ctype-punct-tests: New file.
33924         * modules/unictype/ctype-space-tests: New file.
33925         * modules/unictype/ctype-upper-tests: New file.
33926         * modules/unictype/ctype-xdigit-tests: New file.
33927         * modules/unictype/decimal-digit-tests: New file.
33928         * modules/unictype/digit-tests: New file.
33929         * modules/unictype/mirror-tests: New file.
33930         * modules/unictype/numeric-tests: New file.
33931         * modules/unictype/property-alphabetic-tests: New file.
33932         * modules/unictype/property-ascii-hex-digit-tests: New file.
33933         * modules/unictype/property-bidi-arabic-digit-tests: New file.
33934         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
33935         * modules/unictype/property-bidi-block-separator-tests: New file.
33936         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
33937         * modules/unictype/property-bidi-common-separator-tests: New file.
33938         * modules/unictype/property-bidi-control-tests: New file.
33939         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
33940         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
33941         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
33942         * modules/unictype/property-bidi-european-digit-tests: New file.
33943         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
33944         * modules/unictype/property-bidi-left-to-right-tests: New file.
33945         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
33946         * modules/unictype/property-bidi-other-neutral-tests: New file.
33947         * modules/unictype/property-bidi-pdf-tests: New file.
33948         * modules/unictype/property-bidi-segment-separator-tests: New file.
33949         * modules/unictype/property-bidi-whitespace-tests: New file.
33950         * modules/unictype/property-byname-tests: New file.
33951         * modules/unictype/property-combining-tests: New file.
33952         * modules/unictype/property-composite-tests: New file.
33953         * modules/unictype/property-currency-symbol-tests: New file.
33954         * modules/unictype/property-dash-tests: New file.
33955         * modules/unictype/property-decimal-digit-tests: New file.
33956         * modules/unictype/property-default-ignorable-code-point-tests: New file.
33957         * modules/unictype/property-deprecated-tests: New file.
33958         * modules/unictype/property-diacritic-tests: New file.
33959         * modules/unictype/property-extender-tests: New file.
33960         * modules/unictype/property-format-control-tests: New file.
33961         * modules/unictype/property-grapheme-base-tests: New file.
33962         * modules/unictype/property-grapheme-extend-tests: New file.
33963         * modules/unictype/property-grapheme-link-tests: New file.
33964         * modules/unictype/property-hex-digit-tests: New file.
33965         * modules/unictype/property-hyphen-tests: New file.
33966         * modules/unictype/property-id-continue-tests: New file.
33967         * modules/unictype/property-id-start-tests: New file.
33968         * modules/unictype/property-ideographic-tests: New file.
33969         * modules/unictype/property-ids-binary-operator-tests: New file.
33970         * modules/unictype/property-ids-trinary-operator-tests: New file.
33971         * modules/unictype/property-ignorable-control-tests: New file.
33972         * modules/unictype/property-iso-control-tests: New file.
33973         * modules/unictype/property-join-control-tests: New file.
33974         * modules/unictype/property-left-of-pair-tests: New file.
33975         * modules/unictype/property-line-separator-tests: New file.
33976         * modules/unictype/property-logical-order-exception-tests: New file.
33977         * modules/unictype/property-lowercase-tests: New file.
33978         * modules/unictype/property-math-tests: New file.
33979         * modules/unictype/property-non-break-tests: New file.
33980         * modules/unictype/property-not-a-character-tests: New file.
33981         * modules/unictype/property-numeric-tests: New file.
33982         * modules/unictype/property-other-alphabetic-tests: New file.
33983         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
33984         * modules/unictype/property-other-grapheme-extend-tests: New file.
33985         * modules/unictype/property-other-id-continue-tests: New file.
33986         * modules/unictype/property-other-id-start-tests: New file.
33987         * modules/unictype/property-other-lowercase-tests: New file.
33988         * modules/unictype/property-other-math-tests: New file.
33989         * modules/unictype/property-other-uppercase-tests: New file.
33990         * modules/unictype/property-paired-punctuation-tests: New file.
33991         * modules/unictype/property-paragraph-separator-tests: New file.
33992         * modules/unictype/property-pattern-syntax-tests: New file.
33993         * modules/unictype/property-pattern-white-space-tests: New file.
33994         * modules/unictype/property-private-use-tests: New file.
33995         * modules/unictype/property-punctuation-tests: New file.
33996         * modules/unictype/property-quotation-mark-tests: New file.
33997         * modules/unictype/property-radical-tests: New file.
33998         * modules/unictype/property-sentence-terminal-tests: New file.
33999         * modules/unictype/property-soft-dotted-tests: New file.
34000         * modules/unictype/property-space-tests: New file.
34001         * modules/unictype/property-terminal-punctuation-tests: New file.
34002         * modules/unictype/property-test-tests: New file.
34003         * modules/unictype/property-titlecase-tests: New file.
34004         * modules/unictype/property-unassigned-code-value-tests: New file.
34005         * modules/unictype/property-unified-ideograph-tests: New file.
34006         * modules/unictype/property-uppercase-tests: New file.
34007         * modules/unictype/property-variation-selector-tests: New file.
34008         * modules/unictype/property-white-space-tests: New file.
34009         * modules/unictype/property-xid-continue-tests: New file.
34010         * modules/unictype/property-xid-start-tests: New file.
34011         * modules/unictype/property-zero-width-tests: New file.
34012         * modules/unictype/scripts-tests: New file.
34013         * modules/unictype/syntax-c-ident-tests: New file.
34014         * modules/unictype/syntax-c-whitespace-tests: New file.
34015         * modules/unictype/syntax-java-ident-tests: New file.
34016         * modules/unictype/syntax-java-whitespace-tests: New file.
34017         * tests/unictype/test-bidi_byname.c: New file.
34018         * tests/unictype/test-bidi_name.c: New file.
34019         * tests/unictype/test-bidi_of.c: New file.
34020         * tests/unictype/test-bidi_test.c: New file.
34021         * tests/unictype/test-block_list.c: New file.
34022         * tests/unictype/test-block_of.c: New file.
34023         * tests/unictype/test-block_test.c: New file.
34024         * tests/unictype/test-categ_and.c: New file.
34025         * tests/unictype/test-categ_and_not.c: New file.
34026         * tests/unictype/test-categ_byname.c: New file.
34027         * tests/unictype/test-categ_name.c: New file.
34028         * tests/unictype/test-categ_none.c: New file.
34029         * tests/unictype/test-categ_of.c: New file.
34030         * tests/unictype/test-categ_or.c: New file.
34031         * tests/unictype/test-categ_test_withtable.c: New file.
34032         * tests/unictype/test-combining.c: New file.
34033         * tests/unictype/test-decdigit.c: New file.
34034         * tests/unictype/test-digit.c: New file.
34035         * tests/unictype/test-mirror.c: New file.
34036         * tests/unictype/test-numeric.c: New file.
34037         * tests/unictype/test-pr_byname.c: New file.
34038         * tests/unictype/test-pr_test.c: New file.
34039         * tests/unictype/test-predicate-part1.h: New file.
34040         * tests/unictype/test-predicate-part2.h: New file.
34041         * tests/unictype/test-scripts.c: New file.
34042         * tests/unictype/test-sy_c_ident.c: New file.
34043         * tests/unictype/test-sy_java_ident.c: New file.
34044
34045         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
34046         for Unicode 5.0.0.
34047         * tests/unictype/test-categ_Cc.c: Likewise.
34048         * tests/unictype/test-categ_Cf.c: Likewise.
34049         * tests/unictype/test-categ_Cn.c: Likewise.
34050         * tests/unictype/test-categ_Co.c: Likewise.
34051         * tests/unictype/test-categ_Cs.c: Likewise.
34052         * tests/unictype/test-categ_L.c: Likewise.
34053         * tests/unictype/test-categ_Ll.c: Likewise.
34054         * tests/unictype/test-categ_Lm.c: Likewise.
34055         * tests/unictype/test-categ_Lo.c: Likewise.
34056         * tests/unictype/test-categ_Lt.c: Likewise.
34057         * tests/unictype/test-categ_Lu.c: Likewise.
34058         * tests/unictype/test-categ_M.c: Likewise.
34059         * tests/unictype/test-categ_Mc.c: Likewise.
34060         * tests/unictype/test-categ_Me.c: Likewise.
34061         * tests/unictype/test-categ_Mn.c: Likewise.
34062         * tests/unictype/test-categ_N.c: Likewise.
34063         * tests/unictype/test-categ_Nd.c: Likewise.
34064         * tests/unictype/test-categ_Nl.c: Likewise.
34065         * tests/unictype/test-categ_No.c: Likewise.
34066         * tests/unictype/test-categ_P.c: Likewise.
34067         * tests/unictype/test-categ_Pc.c: Likewise.
34068         * tests/unictype/test-categ_Pd.c: Likewise.
34069         * tests/unictype/test-categ_Pe.c: Likewise.
34070         * tests/unictype/test-categ_Pf.c: Likewise.
34071         * tests/unictype/test-categ_Pi.c: Likewise.
34072         * tests/unictype/test-categ_Po.c: Likewise.
34073         * tests/unictype/test-categ_Ps.c: Likewise.
34074         * tests/unictype/test-categ_S.c: Likewise.
34075         * tests/unictype/test-categ_Sc.c: Likewise.
34076         * tests/unictype/test-categ_Sk.c: Likewise.
34077         * tests/unictype/test-categ_Sm.c: Likewise.
34078         * tests/unictype/test-categ_So.c: Likewise.
34079         * tests/unictype/test-categ_Z.c: Likewise.
34080         * tests/unictype/test-categ_Zl.c: Likewise.
34081         * tests/unictype/test-categ_Zp.c: Likewise.
34082         * tests/unictype/test-categ_Zs.c: Likewise.
34083         * tests/unictype/test-ctype_alnum.c: Likewise.
34084         * tests/unictype/test-ctype_alpha.c: Likewise.
34085         * tests/unictype/test-ctype_blank.c: Likewise.
34086         * tests/unictype/test-ctype_cntrl.c: Likewise.
34087         * tests/unictype/test-ctype_digit.c: Likewise.
34088         * tests/unictype/test-ctype_graph.c: Likewise.
34089         * tests/unictype/test-ctype_lower.c: Likewise.
34090         * tests/unictype/test-ctype_print.c: Likewise.
34091         * tests/unictype/test-ctype_punct.c: Likewise.
34092         * tests/unictype/test-ctype_space.c: Likewise.
34093         * tests/unictype/test-ctype_upper.c: Likewise.
34094         * tests/unictype/test-ctype_xdigit.c: Likewise.
34095         * tests/unictype/test-decdigit.h: Likewise.
34096         * tests/unictype/test-digit.h: Likewise.
34097         * tests/unictype/test-numeric.h: Likewise.
34098         * tests/unictype/test-pr_alphabetic.c: Likewise.
34099         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
34100         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
34101         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
34102         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
34103         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
34104         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
34105         * tests/unictype/test-pr_bidi_control.c: Likewise.
34106         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
34107         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
34108         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
34109         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
34110         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
34111         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
34112         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
34113         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
34114         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
34115         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
34116         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
34117         * tests/unictype/test-pr_combining.c: Likewise.
34118         * tests/unictype/test-pr_composite.c: Likewise.
34119         * tests/unictype/test-pr_currency_symbol.c: Likewise.
34120         * tests/unictype/test-pr_dash.c: Likewise.
34121         * tests/unictype/test-pr_decimal_digit.c: Likewise.
34122         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
34123         * tests/unictype/test-pr_deprecated.c: Likewise.
34124         * tests/unictype/test-pr_diacritic.c: Likewise.
34125         * tests/unictype/test-pr_extender.c: Likewise.
34126         * tests/unictype/test-pr_format_control.c: Likewise.
34127         * tests/unictype/test-pr_grapheme_base.c: Likewise.
34128         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
34129         * tests/unictype/test-pr_grapheme_link.c: Likewise.
34130         * tests/unictype/test-pr_hex_digit.c: Likewise.
34131         * tests/unictype/test-pr_hyphen.c: Likewise.
34132         * tests/unictype/test-pr_id_continue.c: Likewise.
34133         * tests/unictype/test-pr_id_start.c: Likewise.
34134         * tests/unictype/test-pr_ideographic.c: Likewise.
34135         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
34136         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
34137         * tests/unictype/test-pr_ignorable_control.c: Likewise.
34138         * tests/unictype/test-pr_iso_control.c: Likewise.
34139         * tests/unictype/test-pr_join_control.c: Likewise.
34140         * tests/unictype/test-pr_left_of_pair.c: Likewise.
34141         * tests/unictype/test-pr_line_separator.c: Likewise.
34142         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
34143         * tests/unictype/test-pr_lowercase.c: Likewise.
34144         * tests/unictype/test-pr_math.c: Likewise.
34145         * tests/unictype/test-pr_non_break.c: Likewise.
34146         * tests/unictype/test-pr_not_a_character.c: Likewise.
34147         * tests/unictype/test-pr_numeric.c: Likewise.
34148         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
34149         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
34150         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
34151         * tests/unictype/test-pr_other_id_continue.c: Likewise.
34152         * tests/unictype/test-pr_other_id_start.c: Likewise.
34153         * tests/unictype/test-pr_other_lowercase.c: Likewise.
34154         * tests/unictype/test-pr_other_math.c: Likewise.
34155         * tests/unictype/test-pr_other_uppercase.c: Likewise.
34156         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
34157         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
34158         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
34159         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
34160         * tests/unictype/test-pr_private_use.c: Likewise.
34161         * tests/unictype/test-pr_punctuation.c: Likewise.
34162         * tests/unictype/test-pr_quotation_mark.c: Likewise.
34163         * tests/unictype/test-pr_radical.c: Likewise.
34164         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
34165         * tests/unictype/test-pr_soft_dotted.c: Likewise.
34166         * tests/unictype/test-pr_space.c: Likewise.
34167         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
34168         * tests/unictype/test-pr_titlecase.c: Likewise.
34169         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
34170         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
34171         * tests/unictype/test-pr_uppercase.c: Likewise.
34172         * tests/unictype/test-pr_variation_selector.c: Likewise.
34173         * tests/unictype/test-pr_white_space.c: Likewise.
34174         * tests/unictype/test-pr_xid_continue.c: Likewise.
34175         * tests/unictype/test-pr_xid_start.c: Likewise.
34176         * tests/unictype/test-pr_zero_width.c: Likewise.
34177         * tests/unictype/test-sy_c_whitespace.c: Likewise.
34178         * tests/unictype/test-sy_java_whitespace.c: Likewise.
34179
34180 2007-11-12  Bruno Haible  <bruno@clisp.org>
34181
34182         Unicode character classification functions.
34183         * lib/unictype.h: New file.
34184         * modules/unictype/base: New file.
34185         * modules/unictype/category-L: New file.
34186         * modules/unictype/category-Lu: New file.
34187         * modules/unictype/category-Ll: New file.
34188         * modules/unictype/category-Lt: New file.
34189         * modules/unictype/category-Lm: New file.
34190         * modules/unictype/category-Lo: New file.
34191         * modules/unictype/category-M: New file.
34192         * modules/unictype/category-Mn: New file.
34193         * modules/unictype/category-Mc: New file.
34194         * modules/unictype/category-Me: New file.
34195         * modules/unictype/category-N: New file.
34196         * modules/unictype/category-Nd: New file.
34197         * modules/unictype/category-Nl: New file.
34198         * modules/unictype/category-No: New file.
34199         * modules/unictype/category-P: New file.
34200         * modules/unictype/category-Pc: New file.
34201         * modules/unictype/category-Pd: New file.
34202         * modules/unictype/category-Ps: New file.
34203         * modules/unictype/category-Pe: New file.
34204         * modules/unictype/category-Pi: New file.
34205         * modules/unictype/category-Pf: New file.
34206         * modules/unictype/category-Po: New file.
34207         * modules/unictype/category-S: New file.
34208         * modules/unictype/category-Sm: New file.
34209         * modules/unictype/category-Sc: New file.
34210         * modules/unictype/category-Sk: New file.
34211         * modules/unictype/category-So: New file.
34212         * modules/unictype/category-Z: New file.
34213         * modules/unictype/category-Zs: New file.
34214         * modules/unictype/category-Zl: New file.
34215         * modules/unictype/category-Zp: New file.
34216         * modules/unictype/category-C: New file.
34217         * modules/unictype/category-Cc: New file.
34218         * modules/unictype/category-Cf: New file.
34219         * modules/unictype/category-Cs: New file.
34220         * modules/unictype/category-Co: New file.
34221         * modules/unictype/category-Cn: New file.
34222         * modules/unictype/category-or: New file.
34223         * modules/unictype/category-of: New file.
34224         * modules/unictype/category-test: New file.
34225         * modules/unictype/category-test-withtable: New file.
34226         * modules/unictype/category-byname: New file.
34227         * modules/unictype/category-none: New file.
34228         * modules/unictype/category-and: New file.
34229         * modules/unictype/category-and-not: New file.
34230         * modules/unictype/category-name: New file.
34231         * modules/unictype/combining-class: New file.
34232         * modules/unictype/category-all: New file.
34233         * modules/unictype/bidicategory-all: New file.
34234         * modules/unictype/bidicategory-byname: New file.
34235         * modules/unictype/bidicategory-name: New file.
34236         * modules/unictype/bidicategory-of: New file.
34237         * modules/unictype/bidicategory-test: New file.
34238         * modules/unictype/decimal-digit: New file.
34239         * modules/unictype/digit: New file.
34240         * modules/unictype/numeric: New file.
34241         * modules/unictype/mirror: New file.
34242         * modules/unictype/property-white-space: New file.
34243         * modules/unictype/property-alphabetic: New file.
34244         * modules/unictype/property-other-alphabetic: New file.
34245         * modules/unictype/property-not-a-character: New file.
34246         * modules/unictype/property-default-ignorable-code-point: New file.
34247         * modules/unictype/property-other-default-ignorable-code-point: New
34248         file.
34249         * modules/unictype/property-deprecated: New file.
34250         * modules/unictype/property-logical-order-exception: New file.
34251         * modules/unictype/property-variation-selector: New file.
34252         * modules/unictype/property-private-use: New file.
34253         * modules/unictype/property-unassigned-code-value: New file.
34254         * modules/unictype/property-uppercase: New file.
34255         * modules/unictype/property-other-uppercase: New file.
34256         * modules/unictype/property-lowercase: New file.
34257         * modules/unictype/property-other-lowercase: New file.
34258         * modules/unictype/property-titlecase: New file.
34259         * modules/unictype/property-soft-dotted: New file.
34260         * modules/unictype/property-id-start: New file.
34261         * modules/unictype/property-other-id-start: New file.
34262         * modules/unictype/property-id-continue: New file.
34263         * modules/unictype/property-other-id-continue: New file.
34264         * modules/unictype/property-xid-start: New file.
34265         * modules/unictype/property-xid-continue: New file.
34266         * modules/unictype/property-pattern-white-space: New file.
34267         * modules/unictype/property-pattern-syntax: New file.
34268         * modules/unictype/property-join-control: New file.
34269         * modules/unictype/property-grapheme-base: New file.
34270         * modules/unictype/property-grapheme-extend: New file.
34271         * modules/unictype/property-other-grapheme-extend: New file.
34272         * modules/unictype/property-grapheme-link: New file.
34273         * modules/unictype/property-bidi-control: New file.
34274         * modules/unictype/property-bidi-left-to-right: New file.
34275         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
34276         * modules/unictype/property-bidi-arabic-right-to-left: New file.
34277         * modules/unictype/property-bidi-european-digit: New file.
34278         * modules/unictype/property-bidi-eur-num-separator: New file.
34279         * modules/unictype/property-bidi-eur-num-terminator: New file.
34280         * modules/unictype/property-bidi-arabic-digit: New file.
34281         * modules/unictype/property-bidi-common-separator: New file.
34282         * modules/unictype/property-bidi-block-separator: New file.
34283         * modules/unictype/property-bidi-segment-separator: New file.
34284         * modules/unictype/property-bidi-whitespace: New file.
34285         * modules/unictype/property-bidi-non-spacing-mark: New file.
34286         * modules/unictype/property-bidi-boundary-neutral: New file.
34287         * modules/unictype/property-bidi-pdf: New file.
34288         * modules/unictype/property-bidi-embedding-or-override: New file.
34289         * modules/unictype/property-bidi-other-neutral: New file.
34290         * modules/unictype/property-hex-digit: New file.
34291         * modules/unictype/property-ascii-hex-digit: New file.
34292         * modules/unictype/property-ideographic: New file.
34293         * modules/unictype/property-unified-ideograph: New file.
34294         * modules/unictype/property-radical: New file.
34295         * modules/unictype/property-ids-binary-operator: New file.
34296         * modules/unictype/property-ids-trinary-operator: New file.
34297         * modules/unictype/property-zero-width: New file.
34298         * modules/unictype/property-space: New file.
34299         * modules/unictype/property-non-break: New file.
34300         * modules/unictype/property-iso-control: New file.
34301         * modules/unictype/property-format-control: New file.
34302         * modules/unictype/property-dash: New file.
34303         * modules/unictype/property-hyphen: New file.
34304         * modules/unictype/property-punctuation: New file.
34305         * modules/unictype/property-line-separator: New file.
34306         * modules/unictype/property-paragraph-separator: New file.
34307         * modules/unictype/property-quotation-mark: New file.
34308         * modules/unictype/property-sentence-terminal: New file.
34309         * modules/unictype/property-terminal-punctuation: New file.
34310         * modules/unictype/property-currency-symbol: New file.
34311         * modules/unictype/property-math: New file.
34312         * modules/unictype/property-other-math: New file.
34313         * modules/unictype/property-paired-punctuation: New file.
34314         * modules/unictype/property-left-of-pair: New file.
34315         * modules/unictype/property-combining: New file.
34316         * modules/unictype/property-composite: New file.
34317         * modules/unictype/property-decimal-digit: New file.
34318         * modules/unictype/property-numeric: New file.
34319         * modules/unictype/property-diacritic: New file.
34320         * modules/unictype/property-extender: New file.
34321         * modules/unictype/property-ignorable-control: New file.
34322         * modules/unictype/property-test: New file.
34323         * modules/unictype/property-byname: New file.
34324         * modules/unictype/property-all: New file.
34325         * modules/unictype/scripts: New file.
34326         * modules/unictype/scripts-all: New file.
34327         * modules/unictype/block-of: New file.
34328         * modules/unictype/block-test: New file.
34329         * modules/unictype/block-list: New file.
34330         * modules/unictype/block-all: New file.
34331         * modules/unictype/syntax-c-whitespace: New file.
34332         * modules/unictype/syntax-java-whitespace: New file.
34333         * modules/unictype/syntax-c-ident: New file.
34334         * modules/unictype/syntax-java-ident: New file.
34335         * modules/unictype/ctype-alnum: New file.
34336         * modules/unictype/ctype-alpha: New file.
34337         * modules/unictype/ctype-cntrl: New file.
34338         * modules/unictype/ctype-digit: New file.
34339         * modules/unictype/ctype-graph: New file.
34340         * modules/unictype/ctype-lower: New file.
34341         * modules/unictype/ctype-print: New file.
34342         * modules/unictype/ctype-punct: New file.
34343         * modules/unictype/ctype-space: New file.
34344         * modules/unictype/ctype-upper: New file.
34345         * modules/unictype/ctype-xdigit: New file.
34346         * modules/unictype/ctype-blank: New file.
34347         * lib/unictype/bidi_byname.c: New file.
34348         * lib/unictype/bidi_name.c: New file.
34349         * lib/unictype/bidi_of.c: New file.
34350         * lib/unictype/bidi_test.c: New file.
34351         * lib/unictype/bitmap.h: New file.
34352         * lib/unictype/block_test.c: New file.
34353         * lib/unictype/blocks.c: New file.
34354         * lib/unictype/categ_C.c: New file.
34355         * lib/unictype/categ_Cc.c: New file.
34356         * lib/unictype/categ_Cf.c: New file.
34357         * lib/unictype/categ_Cn.c: New file.
34358         * lib/unictype/categ_Co.c: New file.
34359         * lib/unictype/categ_Cs.c: New file.
34360         * lib/unictype/categ_L.c: New file.
34361         * lib/unictype/categ_Ll.c: New file.
34362         * lib/unictype/categ_Lm.c: New file.
34363         * lib/unictype/categ_Lo.c: New file.
34364         * lib/unictype/categ_Lt.c: New file.
34365         * lib/unictype/categ_Lu.c: New file.
34366         * lib/unictype/categ_M.c: New file.
34367         * lib/unictype/categ_Mc.c: New file.
34368         * lib/unictype/categ_Me.c: New file.
34369         * lib/unictype/categ_Mn.c: New file.
34370         * lib/unictype/categ_N.c: New file.
34371         * lib/unictype/categ_Nd.c: New file.
34372         * lib/unictype/categ_Nl.c: New file.
34373         * lib/unictype/categ_No.c: New file.
34374         * lib/unictype/categ_P.c: New file.
34375         * lib/unictype/categ_Pc.c: New file.
34376         * lib/unictype/categ_Pd.c: New file.
34377         * lib/unictype/categ_Pe.c: New file.
34378         * lib/unictype/categ_Pf.c: New file.
34379         * lib/unictype/categ_Pi.c: New file.
34380         * lib/unictype/categ_Po.c: New file.
34381         * lib/unictype/categ_Ps.c: New file.
34382         * lib/unictype/categ_S.c: New file.
34383         * lib/unictype/categ_Sc.c: New file.
34384         * lib/unictype/categ_Sk.c: New file.
34385         * lib/unictype/categ_Sm.c: New file.
34386         * lib/unictype/categ_So.c: New file.
34387         * lib/unictype/categ_Z.c: New file.
34388         * lib/unictype/categ_Zl.c: New file.
34389         * lib/unictype/categ_Zp.c: New file.
34390         * lib/unictype/categ_Zs.c: New file.
34391         * lib/unictype/categ_and.c: New file.
34392         * lib/unictype/categ_and_not.c: New file.
34393         * lib/unictype/categ_byname.c: New file.
34394         * lib/unictype/categ_name.c: New file.
34395         * lib/unictype/categ_none.c: New file.
34396         * lib/unictype/categ_of.c: New file.
34397         * lib/unictype/categ_or.c: New file.
34398         * lib/unictype/categ_test.c: New file.
34399         * lib/unictype/combining.c: New file.
34400         * lib/unictype/ctype_alnum.c: New file.
34401         * lib/unictype/ctype_alpha.c: New file.
34402         * lib/unictype/ctype_blank.c: New file.
34403         * lib/unictype/ctype_cntrl.c: New file.
34404         * lib/unictype/ctype_digit.c: New file.
34405         * lib/unictype/ctype_graph.c: New file.
34406         * lib/unictype/ctype_lower.c: New file.
34407         * lib/unictype/ctype_print.c: New file.
34408         * lib/unictype/ctype_punct.c: New file.
34409         * lib/unictype/ctype_space.c: New file.
34410         * lib/unictype/ctype_upper.c: New file.
34411         * lib/unictype/ctype_xdigit.c: New file.
34412         * lib/unictype/decdigit.c: New file.
34413         * lib/unictype/digit.c: New file.
34414         * lib/unictype/identsyntaxmap.h: New file.
34415         * lib/unictype/mirror.c: New file.
34416         * lib/unictype/numeric.c: New file.
34417         * lib/unictype/pr_alphabetic.c: New file.
34418         * lib/unictype/pr_ascii_hex_digit.c: New file.
34419         * lib/unictype/pr_bidi_arabic_digit.c: New file.
34420         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
34421         * lib/unictype/pr_bidi_block_separator.c: New file.
34422         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
34423         * lib/unictype/pr_bidi_common_separator.c: New file.
34424         * lib/unictype/pr_bidi_control.c: New file.
34425         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
34426         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
34427         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
34428         * lib/unictype/pr_bidi_european_digit.c: New file.
34429         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
34430         * lib/unictype/pr_bidi_left_to_right.c: New file.
34431         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
34432         * lib/unictype/pr_bidi_other_neutral.c: New file.
34433         * lib/unictype/pr_bidi_pdf.c: New file.
34434         * lib/unictype/pr_bidi_segment_separator.c: New file.
34435         * lib/unictype/pr_bidi_whitespace.c: New file.
34436         * lib/unictype/pr_byname.c: New file.
34437         * lib/unictype/pr_byname.gperf: New file.
34438         * lib/unictype/pr_combining.c: New file.
34439         * lib/unictype/pr_composite.c: New file.
34440         * lib/unictype/pr_currency_symbol.c: New file.
34441         * lib/unictype/pr_dash.c: New file.
34442         * lib/unictype/pr_decimal_digit.c: New file.
34443         * lib/unictype/pr_default_ignorable_code_point.c: New file.
34444         * lib/unictype/pr_deprecated.c: New file.
34445         * lib/unictype/pr_diacritic.c: New file.
34446         * lib/unictype/pr_extender.c: New file.
34447         * lib/unictype/pr_format_control.c: New file.
34448         * lib/unictype/pr_grapheme_base.c: New file.
34449         * lib/unictype/pr_grapheme_extend.c: New file.
34450         * lib/unictype/pr_grapheme_link.c: New file.
34451         * lib/unictype/pr_hex_digit.c: New file.
34452         * lib/unictype/pr_hyphen.c: New file.
34453         * lib/unictype/pr_id_continue.c: New file.
34454         * lib/unictype/pr_id_start.c: New file.
34455         * lib/unictype/pr_ideographic.c: New file.
34456         * lib/unictype/pr_ids_binary_operator.c: New file.
34457         * lib/unictype/pr_ids_trinary_operator.c: New file.
34458         * lib/unictype/pr_ignorable_control.c: New file.
34459         * lib/unictype/pr_iso_control.c: New file.
34460         * lib/unictype/pr_join_control.c: New file.
34461         * lib/unictype/pr_left_of_pair.c: New file.
34462         * lib/unictype/pr_line_separator.c: New file.
34463         * lib/unictype/pr_logical_order_exception.c: New file.
34464         * lib/unictype/pr_lowercase.c: New file.
34465         * lib/unictype/pr_math.c: New file.
34466         * lib/unictype/pr_non_break.c: New file.
34467         * lib/unictype/pr_not_a_character.c: New file.
34468         * lib/unictype/pr_numeric.c: New file.
34469         * lib/unictype/pr_other_alphabetic.c: New file.
34470         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
34471         * lib/unictype/pr_other_grapheme_extend.c: New file.
34472         * lib/unictype/pr_other_id_continue.c: New file.
34473         * lib/unictype/pr_other_id_start.c: New file.
34474         * lib/unictype/pr_other_lowercase.c: New file.
34475         * lib/unictype/pr_other_math.c: New file.
34476         * lib/unictype/pr_other_uppercase.c: New file.
34477         * lib/unictype/pr_paired_punctuation.c: New file.
34478         * lib/unictype/pr_paragraph_separator.c: New file.
34479         * lib/unictype/pr_pattern_syntax.c: New file.
34480         * lib/unictype/pr_pattern_white_space.c: New file.
34481         * lib/unictype/pr_private_use.c: New file.
34482         * lib/unictype/pr_punctuation.c: New file.
34483         * lib/unictype/pr_quotation_mark.c: New file.
34484         * lib/unictype/pr_radical.c: New file.
34485         * lib/unictype/pr_sentence_terminal.c: New file.
34486         * lib/unictype/pr_soft_dotted.c: New file.
34487         * lib/unictype/pr_space.c: New file.
34488         * lib/unictype/pr_terminal_punctuation.c: New file.
34489         * lib/unictype/pr_test.c: New file.
34490         * lib/unictype/pr_titlecase.c: New file.
34491         * lib/unictype/pr_unassigned_code_value.c: New file.
34492         * lib/unictype/pr_unified_ideograph.c: New file.
34493         * lib/unictype/pr_uppercase.c: New file.
34494         * lib/unictype/pr_variation_selector.c: New file.
34495         * lib/unictype/pr_white_space.c: New file.
34496         * lib/unictype/pr_xid_continue.c: New file.
34497         * lib/unictype/pr_xid_start.c: New file.
34498         * lib/unictype/pr_zero_width.c: New file.
34499         * lib/unictype/scripts.c: New file.
34500         * lib/unictype/sy_c_ident.c: New file.
34501         * lib/unictype/sy_c_whitespace.c: New file.
34502         * lib/unictype/sy_java_ident.c: New file.
34503         * lib/unictype/sy_java_whitespace.c: New file.
34504
34505         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
34506         Unicode 5.0.0.
34507         * lib/unictype/blocks.h: Likewise.
34508         * lib/unictype/categ_C.h: Likewise.
34509         * lib/unictype/categ_Cc.h: Likewise.
34510         * lib/unictype/categ_Cf.h: Likewise.
34511         * lib/unictype/categ_Cn.h: Likewise.
34512         * lib/unictype/categ_Co.h: Likewise.
34513         * lib/unictype/categ_Cs.h: Likewise.
34514         * lib/unictype/categ_L.h: Likewise.
34515         * lib/unictype/categ_Ll.h: Likewise.
34516         * lib/unictype/categ_Lm.h: Likewise.
34517         * lib/unictype/categ_Lo.h: Likewise.
34518         * lib/unictype/categ_Lt.h: Likewise.
34519         * lib/unictype/categ_Lu.h: Likewise.
34520         * lib/unictype/categ_M.h: Likewise.
34521         * lib/unictype/categ_Mc.h: Likewise.
34522         * lib/unictype/categ_Me.h: Likewise.
34523         * lib/unictype/categ_Mn.h: Likewise.
34524         * lib/unictype/categ_N.h: Likewise.
34525         * lib/unictype/categ_Nd.h: Likewise.
34526         * lib/unictype/categ_Nl.h: Likewise.
34527         * lib/unictype/categ_No.h: Likewise.
34528         * lib/unictype/categ_P.h: Likewise.
34529         * lib/unictype/categ_Pc.h: Likewise.
34530         * lib/unictype/categ_Pd.h: Likewise.
34531         * lib/unictype/categ_Pe.h: Likewise.
34532         * lib/unictype/categ_Pf.h: Likewise.
34533         * lib/unictype/categ_Pi.h: Likewise.
34534         * lib/unictype/categ_Po.h: Likewise.
34535         * lib/unictype/categ_Ps.h: Likewise.
34536         * lib/unictype/categ_S.h: Likewise.
34537         * lib/unictype/categ_Sc.h: Likewise.
34538         * lib/unictype/categ_Sk.h: Likewise.
34539         * lib/unictype/categ_Sm.h: Likewise.
34540         * lib/unictype/categ_So.h: Likewise.
34541         * lib/unictype/categ_Z.h: Likewise.
34542         * lib/unictype/categ_Zl.h: Likewise.
34543         * lib/unictype/categ_Zp.h: Likewise.
34544         * lib/unictype/categ_Zs.h: Likewise.
34545         * lib/unictype/categ_of.h: Likewise.
34546         * lib/unictype/combining.h: Likewise.
34547         * lib/unictype/ctype_alnum.h: Likewise.
34548         * lib/unictype/ctype_alpha.h: Likewise.
34549         * lib/unictype/ctype_blank.h: Likewise.
34550         * lib/unictype/ctype_cntrl.h: Likewise.
34551         * lib/unictype/ctype_digit.h: Likewise.
34552         * lib/unictype/ctype_graph.h: Likewise.
34553         * lib/unictype/ctype_lower.h: Likewise.
34554         * lib/unictype/ctype_print.h: Likewise.
34555         * lib/unictype/ctype_punct.h: Likewise.
34556         * lib/unictype/ctype_space.h: Likewise.
34557         * lib/unictype/ctype_upper.h: Likewise.
34558         * lib/unictype/ctype_xdigit.h: Likewise.
34559         * lib/unictype/decdigit.h: Likewise.
34560         * lib/unictype/digit.h: Likewise.
34561         * lib/unictype/mirror.h: Likewise.
34562         * lib/unictype/numeric.h: Likewise.
34563         * lib/unictype/pr_alphabetic.h: Likewise.
34564         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
34565         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
34566         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
34567         * lib/unictype/pr_bidi_block_separator.h: Likewise.
34568         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
34569         * lib/unictype/pr_bidi_common_separator.h: Likewise.
34570         * lib/unictype/pr_bidi_control.h: Likewise.
34571         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
34572         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
34573         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
34574         * lib/unictype/pr_bidi_european_digit.h: Likewise.
34575         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
34576         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
34577         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
34578         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
34579         * lib/unictype/pr_bidi_pdf.h: Likewise.
34580         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
34581         * lib/unictype/pr_bidi_whitespace.h: Likewise.
34582         * lib/unictype/pr_combining.h: Likewise.
34583         * lib/unictype/pr_composite.h: Likewise.
34584         * lib/unictype/pr_currency_symbol.h: Likewise.
34585         * lib/unictype/pr_dash.h: Likewise.
34586         * lib/unictype/pr_decimal_digit.h: Likewise.
34587         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
34588         * lib/unictype/pr_deprecated.h: Likewise.
34589         * lib/unictype/pr_diacritic.h: Likewise.
34590         * lib/unictype/pr_extender.h: Likewise.
34591         * lib/unictype/pr_format_control.h: Likewise.
34592         * lib/unictype/pr_grapheme_base.h: Likewise.
34593         * lib/unictype/pr_grapheme_extend.h: Likewise.
34594         * lib/unictype/pr_grapheme_link.h: Likewise.
34595         * lib/unictype/pr_hex_digit.h: Likewise.
34596         * lib/unictype/pr_hyphen.h: Likewise.
34597         * lib/unictype/pr_id_continue.h: Likewise.
34598         * lib/unictype/pr_id_start.h: Likewise.
34599         * lib/unictype/pr_ideographic.h: Likewise.
34600         * lib/unictype/pr_ids_binary_operator.h: Likewise.
34601         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
34602         * lib/unictype/pr_ignorable_control.h: Likewise.
34603         * lib/unictype/pr_iso_control.h: Likewise.
34604         * lib/unictype/pr_join_control.h: Likewise.
34605         * lib/unictype/pr_left_of_pair.h: Likewise.
34606         * lib/unictype/pr_line_separator.h: Likewise.
34607         * lib/unictype/pr_logical_order_exception.h: Likewise.
34608         * lib/unictype/pr_lowercase.h: Likewise.
34609         * lib/unictype/pr_math.h: Likewise.
34610         * lib/unictype/pr_non_break.h: Likewise.
34611         * lib/unictype/pr_not_a_character.h: Likewise.
34612         * lib/unictype/pr_numeric.h: Likewise.
34613         * lib/unictype/pr_other_alphabetic.h: Likewise.
34614         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
34615         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
34616         * lib/unictype/pr_other_id_continue.h: Likewise.
34617         * lib/unictype/pr_other_id_start.h: Likewise.
34618         * lib/unictype/pr_other_lowercase.h: Likewise.
34619         * lib/unictype/pr_other_math.h: Likewise.
34620         * lib/unictype/pr_other_uppercase.h: Likewise.
34621         * lib/unictype/pr_paired_punctuation.h: Likewise.
34622         * lib/unictype/pr_paragraph_separator.h: Likewise.
34623         * lib/unictype/pr_pattern_syntax.h: Likewise.
34624         * lib/unictype/pr_pattern_white_space.h: Likewise.
34625         * lib/unictype/pr_private_use.h: Likewise.
34626         * lib/unictype/pr_punctuation.h: Likewise.
34627         * lib/unictype/pr_quotation_mark.h: Likewise.
34628         * lib/unictype/pr_radical.h: Likewise.
34629         * lib/unictype/pr_sentence_terminal.h: Likewise.
34630         * lib/unictype/pr_soft_dotted.h: Likewise.
34631         * lib/unictype/pr_space.h: Likewise.
34632         * lib/unictype/pr_terminal_punctuation.h: Likewise.
34633         * lib/unictype/pr_titlecase.h: Likewise.
34634         * lib/unictype/pr_unassigned_code_value.h: Likewise.
34635         * lib/unictype/pr_unified_ideograph.h: Likewise.
34636         * lib/unictype/pr_uppercase.h: Likewise.
34637         * lib/unictype/pr_variation_selector.h: Likewise.
34638         * lib/unictype/pr_white_space.h: Likewise.
34639         * lib/unictype/pr_xid_continue.h: Likewise.
34640         * lib/unictype/pr_xid_start.h: Likewise.
34641         * lib/unictype/pr_zero_width.h: Likewise.
34642         * lib/unictype/scripts.h: Likewise.
34643         * lib/unictype/scripts_byname.gperf: Likewise.
34644         * lib/unictype/sy_c_ident.h: Likewise.
34645         * lib/unictype/sy_c_whitespace.h: Likewise.
34646         * lib/unictype/sy_java_ident.h: Likewise.
34647         * lib/unictype/sy_java_whitespace.h: Likewise.
34648
34649         * lib/unictype/Makefile: New file.
34650         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
34651         glibc.
34652         * lib/unictype/3level.h: New file, copied from glibc.
34653         * lib/unictype/3levelbit.h: New file.
34654
34655 2007-11-11  Bruno Haible  <bruno@clisp.org>
34656
34657         * modules/gperf: New file.
34658         * modules/iconv_open (Depends-on): Add it.
34659         (Makefile.am): Remove the GPERF definition.
34660
34661 2007-11-11  Bruno Haible  <bruno@clisp.org>
34662
34663         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
34664         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
34665
34666 2007-11-11  Bruno Haible  <bruno@clisp.org>
34667
34668         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
34669         (usage): Remove function.
34670
34671 2007-11-11  Bruno Haible  <bruno@clisp.org>
34672
34673         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
34674         gl_FUNC_CEILF_LIBS.
34675         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
34676         gl_FUNC_CEIL_LIBS.
34677         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
34678         gl_FUNC_CEILL_LIBS.
34679         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
34680         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
34681         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
34682
34683 2007-11-11  Bruno Haible  <bruno@clisp.org>
34684
34685         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
34686         roundf were declared but do not exist on functions.
34687         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
34688         roundl were declared but do not exist on functions.
34689         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
34690         HAVE_FLOORL_AND_CEILL, respectively.
34691         Needed for Sun C on Solaris 10.
34692
34693 2007-11-11  Bruno Haible  <bruno@clisp.org>
34694
34695         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
34696         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
34697         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
34698         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
34699         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
34700         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
34701         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
34702         HAVE_DECL_ROUNDF.
34703         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
34704         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
34705         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
34706         of HAVE_DECL_ROUND*.
34707         * modules/math (Makefile.am): Update.
34708
34709 2007-11-10  Bruno Haible  <bruno@clisp.org>
34710
34711         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
34712         ptrdiff_t as m4/intl.m4.
34713
34714 2007-11-10  Jim Meyering  <meyering@redhat.com>
34715
34716         Avoid link failure for the argmatch test.
34717         * tests/test-argmatch.c (usage): Define function to avoid a link
34718         failure: argmatch_die requires a usage function.
34719
34720 2007-11-09  Bruno Haible  <bruno@clisp.org>
34721
34722         * doc/functions/snprintf.texi: Mention BeOS deficiency.
34723         * doc/functions/vsnprintf.texi: Likewise.
34724         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
34725         with a size argument < 2.
34726
34727 2007-11-09  Bruno Haible  <bruno@clisp.org>
34728
34729         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
34730         buffer. Fixes an inefficiency introduced on 2007-11-03.
34731
34732 2007-11-09  Bruno Haible  <bruno@clisp.org>
34733
34734         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
34735         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
34736
34737 2007-11-08  Jim Meyering  <meyering@redhat.com>
34738
34739         Change cache variable name prefix "jm_" to "gl_" everywhere.
34740         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
34741         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
34742         * m4/uptime.m4: s/gl_/jm_/
34743
34744 2007-11-07  Bruno Haible  <bruno@clisp.org>
34745
34746         Update to GNU gettext 0.17.
34747         * m4/intl.m4: Update to GNU gettext 0.17.
34748         * m4/po.m4: Likewise.
34749         * modules/gettext (Files): Remove m4/ulonglong.m4.
34750         (configure.ac): Require gettext infrastructure from version 0.17.
34751
34752 2007-11-06  Bruno Haible  <bruno@clisp.org>
34753
34754         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
34755         symbolic values are not defined in a public header.
34756         * lib/freadable.c (freadable) [QNX]: Likewise.
34757         * lib/freadahead.c (freadahead) [QNX]: Likewise.
34758         * lib/freading.c (freading) [QNX]: Likewise.
34759         * lib/fseterr.c (fseterr) [QNX]: Likewise.
34760         * lib/fwritable.c (fwritable) [QNX]: Likewise.
34761         * lib/fwriting.c (fwriting) [QNX]: Likewise.
34762         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
34763         Reported by Alain Magloire.
34764
34765         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
34766
34767 2007-11-05  Bruno Haible  <bruno@clisp.org>
34768
34769         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
34770         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
34771         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
34772         Reported by Eric Blake.
34773
34774 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34775             Bruno Haible  <bruno@clisp.org>
34776
34777         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
34778         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
34779         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
34780         (malloc): Undefine also before including <stdlib.h>.
34781         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
34782         Needed on OSF/1 4.0.
34783
34784 2007-11-05  Jim Meyering  <meyering@redhat.com>
34785
34786         git-version-gen: sync from coreutils.
34787         * build-aux/git-version-gen: Add comments.
34788         Change the first '-' to '.' in the snapshot version string,
34789         e.g., 6.9-377-08144 -> 6.9.377-08144
34790         Remove first parameter.
34791         Don't declare a version "-dirty" merely because a time
34792         stamp has changed.
34793
34794 2007-11-04  Bruno Haible  <bruno@clisp.org>
34795
34796         * lib/lock.h: Protect all macro definitions containing an 'if'
34797         statement through a "do { ... } while (0)".
34798         * lib/tls.h: Likewise.
34799
34800 2007-11-04  Bruno Haible  <bruno@clisp.org>
34801
34802         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
34803
34804 2007-11-04  Bruno Haible  <bruno@clisp.org>
34805
34806         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
34807         * modules/fprintf-posix (Depends-on): Add nocrash.
34808         * modules/snprintf-posix (Depends-on): Likewise.
34809         * modules/sprintf-posix (Depends-on): Likewise.
34810         * modules/vasnprintf-posix (Depends-on): Likewise.
34811         * modules/vasprintf-posix (Depends-on): Likewise.
34812         * modules/vfprintf-posix (Depends-on): Likewise.
34813         * modules/vsnprintf-posix (Depends-on): Likewise.
34814         * modules/vsprintf-posix (Depends-on): Likewise.
34815         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
34816         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34817         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34818         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34819         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34820         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34821         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34822
34823 2007-11-04  Bruno Haible  <bruno@clisp.org>
34824
34825         * modules/nocrash: New file.
34826         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
34827         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
34828
34829 2007-11-04  Bruno Haible  <bruno@clisp.org>
34830
34831         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
34832         precision handling.
34833         * tests/test-vasprintf-posix.c (test_function): Likewise.
34834         * tests/test-snprintf-posix.h (test_function): Likewise.
34835         * tests/test-sprintf-posix.h (test_function): Likewise.
34836
34837         Fix *printf behaviour for large precisions on mingw and BeOS.
34838         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
34839         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
34840         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
34841         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
34842         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34843         gl_PRINTF_PRECISION and test its result. Invoke
34844         gl_PREREQ_VASNPRINTF_PRECISION.
34845         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34846         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34847         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34848         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34849         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34850         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34851         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34852         * doc/functions/fprintf.texi: Update.
34853         * doc/functions/printf.texi: Update.
34854         * doc/functions/snprintf.texi: Update.
34855         * doc/functions/sprintf.texi: Update.
34856         * doc/functions/vfprintf.texi: Update.
34857         * doc/functions/vprintf.texi: Update.
34858         * doc/functions/vsnprintf.texi: Update.
34859         * doc/functions/vsprintf.texi: Update.
34860
34861 2007-11-04  Bruno Haible  <bruno@clisp.org>
34862
34863         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
34864
34865 2007-11-04  Bruno Haible  <bruno@clisp.org>
34866
34867         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
34868         Reported by Sylvain Beucler <beuc@gnu.org>.
34869
34870 2007-11-03  Bruno Haible  <bruno@clisp.org>
34871
34872         * tests/test-fprintf-posix2.sh: New file.
34873         * tests/test-fprintf-posix2.c: New file.
34874         * modules/fprintf-posix-tests (Files): Add them.
34875         (TESTS): Add test-fprintf-posix2.sh.
34876         (configure.ac): Check for getrlimit and setrlimit.
34877         (check_PROGRAMS): Add test-fprintf-posix2.
34878
34879         * tests/test-printf-posix2.sh: New file.
34880         * tests/test-printf-posix2.c: New file.
34881         * modules/printf-posix-tests (Files): Add them.
34882         (TESTS): Add test-printf-posix2.sh.
34883         (configure.ac): Check for getrlimit and setrlimit.
34884         (check_PROGRAMS): Add test-printf-posix2.
34885
34886         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
34887         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
34888         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
34889         (decode_double): New function, copied from decode_long_double.
34890         (scale10_round_decimal_decoded): New function, extracted from
34891         scale10_round_decimal_long_double.
34892         (scale10_round_decimal_long_double): Use it.
34893         (scale10_round_decimal_double): New function.
34894         (floorlog10): New function.
34895         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
34896         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
34897         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
34898         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
34899         gl_PRINTF_ENOMEM and test its result. Invoke
34900         gl_PREREQ_VASNPRINTF_ENOMEM.
34901         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34902         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34903         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34904         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34905         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34906         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
34907         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34908         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
34909         * modules/snprintf-posix (Depends-on): Likewise.
34910         * modules/sprintf-posix (Depends-on): Likewise.
34911         * modules/vasnprintf-posix (Depends-on): Likewise.
34912         * modules/vasprintf-posix (Depends-on): Likewise.
34913         * modules/vfprintf-posix (Depends-on): Likewise.
34914         * modules/vsnprintf-posix (Depends-on): Likewise.
34915         * modules/vsprintf-posix (Depends-on): Likewise.
34916         * doc/functions/fprintf.texi: Update.
34917         * doc/functions/printf.texi: Update.
34918         * doc/functions/snprintf.texi: Update.
34919         * doc/functions/sprintf.texi: Update.
34920         * doc/functions/vfprintf.texi: Update.
34921         * doc/functions/vprintf.texi: Update.
34922         * doc/functions/vsnprintf.texi: Update.
34923         * doc/functions/vsprintf.texi: Update.
34924
34925 2007-11-03  Bruno Haible  <bruno@clisp.org>
34926
34927         * modules/frexp-nolibm-tests: New file.
34928
34929         * modules/frexp-nolibm: New file.
34930         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
34931
34932 2007-11-03  Bruno Haible  <bruno@clisp.org>
34933
34934         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
34935         value is C99 compliant.
34936         Needed for OSF/1 5.1.
34937
34938 2007-11-03  Bruno Haible  <bruno@clisp.org>
34939
34940         Fix out-of-memory handling of vasnprintf.
34941         * lib/printf-parse.c: Include <errno.h>.
34942         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
34943         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
34944         is already set.
34945
34946 2007-11-02  Eric Blake  <ebb9@byu.net>
34947
34948         Fix tests on cygwin.
34949         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
34950
34951 2007-11-01  Bruno Haible  <bruno@clisp.org>
34952
34953         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
34954         warning.
34955         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
34956         needed for POSIX compatibility.
34957
34958 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
34959
34960         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
34961         for compatibility with GNU.
34962
34963 2007-11-01  Bruno Haible  <bruno@clisp.org>
34964
34965         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
34966         (putenv): Renamed from rpl_putenv. Change argument type from
34967         'const char *' to 'char *'.
34968         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
34969         of defining putenv in config.h, just set REPLACE_PUTENV.
34970         * modules/putenv (Depends-on): Add stdlib.
34971         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
34972         (Include): Use <stdlib.h>.
34973         * lib/stdlib.in.h (putenv): New declaration.
34974         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
34975         REPLACE_PUTENV.
34976         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
34977         REPLACE_PUTENV.
34978         Needed for MacOS X 10.5.0.
34979         Reported by Peter O'Gorman <peter@pogma.com>.
34980
34981 2007-11-01  Jim Meyering  <meyering@redhat.com>
34982
34983         Treat an empty date string exactly like "0".
34984         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
34985         if the remaining date string (to be parsed) is empty, use "0".
34986         Reported by Mischa Molhoek and discussed in this thread:
34987         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
34988
34989 2007-10-31  Bruno Haible  <bruno@clisp.org>
34990
34991         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
34992         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
34993         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
34994         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
34995         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
34996         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
34997
34998 2007-10-31  Bruno Haible  <bruno@clisp.org>
34999
35000         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
35001         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
35002         (AC_TYPE_LONG_LONG_INT): Use it.
35003         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
35004         it as well.
35005         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
35006         to m4/longlong.m4.
35007         * modules/stdint (Files): Remove m4/ulonglong.m4.
35008         * modules/strtoull (Files): Use m4/longlong.m4 instead of
35009         m4/ulonglong.m4.
35010         * modules/strtoumax (Files): Likewise.
35011
35012 2007-10-30  Bruno Haible  <bruno@clisp.org>
35013
35014         * modules/xvasprintf-posix: New file.
35015         Suggested by Eric Blake.
35016
35017 2007-10-30  Bruno Haible  <bruno@clisp.org>
35018
35019         * modules/xprintf-posix-tests: New file.
35020         * tests/test-xprintf-posix.sh: New file.
35021         * tests/test-xprintf-posix.c: New file.
35022         * tests/test-xfprintf-posix.c: New file.
35023
35024         * modules/xprintf-posix: New file.
35025
35026 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35027
35028         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
35029         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
35030         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
35031
35032 2007-10-29  Bruno Haible  <bruno@clisp.org>
35033
35034         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
35035         contain the special marker '_cv_'.
35036         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
35037         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
35038         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
35039         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
35040         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
35041         Reported by Ralf Wildenhues.
35042
35043 2007-10-29  Bruno Haible  <bruno@clisp.org>
35044
35045         * gnulib-tool (func_import): When --lgpl is not specified, set
35046         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
35047         GPLv3.
35048         Reported by Simon Josefsson.
35049
35050 2007-10-28  Bruno Haible  <bruno@clisp.org>
35051
35052         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
35053         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
35054         HAVE_DECL_ISFINITE.
35055         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
35056         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
35057         HAVE_DECL_ISFINITE.
35058
35059 2007-10-28  Bruno Haible  <bruno@clisp.org>
35060
35061         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
35062         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
35063
35064 2007-10-28  Bruno Haible  <bruno@clisp.org>
35065
35066         Fix link errors with Sun C 5.0 on Solaris 10.
35067         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
35068         function is declared but not present in the compiler's libm.
35069         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
35070         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
35071         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
35072         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
35073         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
35074         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
35075         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
35076         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
35077         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
35078         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
35079         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
35080         HAVE_DECL_FLOORL.
35081
35082 2007-10-28  Bruno Haible  <bruno@clisp.org>
35083
35084         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
35085         gl_FUNC_FLOORL. Cache the result.
35086         (gl_FUNC_FLOORL): Use it.
35087         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
35088         gl_FUNC_CEILL. Cache the result.
35089         (gl_FUNC_CEILL): Use it.
35090
35091         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
35092         gl_FUNC_FLOOR. Cache the result.
35093         (gl_FUNC_FLOOR): Use it.
35094         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
35095         gl_FUNC_CEIL. Cache the result.
35096         (gl_FUNC_CEIL): Use it.
35097
35098         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
35099         gl_FUNC_FLOORF. Cache the result.
35100         (gl_FUNC_FLOORF): Use it.
35101         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
35102         gl_FUNC_CEILF. Cache the result.
35103         (gl_FUNC_CEILF): Use it.
35104
35105 2007-10-28  Bruno Haible  <bruno@clisp.org>
35106
35107         * gnulib-tool: Allow specifying the LGPL version number through
35108         --lgpl=2 or --lgpl=3.
35109         (func_usage): Document --lgpl with argument.
35110         Handle --lgpl=... arguments.
35111         (func_import): Recognize also gl_LGPL calls with an argument. When
35112         --lgpl=2 is used and the module's license is just LGPL, report an
35113         error. Set sed_transform_lib_file according to the lgpl variable. In
35114         the generated files, use --lgpl or gl_LGPL invocations with argument,
35115         if necessary.
35116         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
35117         an LGPv2+ license.
35118         * doc/gnulib-tool.texi (Modified imports): Update explanation of
35119         gl_LGPL macro.
35120
35121 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35122             Bruno Haible  <bruno@clisp.org>
35123
35124         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
35125         (u16_uctomb_aux): Likewise.
35126         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
35127         !HAVE_INLINE.
35128         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
35129
35130 2007-10-28  Bruno Haible  <bruno@clisp.org>
35131
35132         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
35133         Invoke AM_GETTEXT_OPTION if it exists.
35134         * modules/vasprintf: Likewise.
35135         * modules/verror: Likewise.
35136         * modules/xprintf: Likewise.
35137         * modules/xvasprintf: Likewise.
35138
35139 2007-10-27  Ben Pfaff  <blp@gnu.org>
35140
35141         * lib/math.in.h: Define isfinite macro and prototypes for
35142         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
35143         implementations.
35144         * m4/math_h.m4: New substitutions for isfinite module.
35145         * lib/isfinite.c: New file.
35146         * m4/isfinite.m4: New file.
35147         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
35148         * modules/isfinite: New file.
35149         * modules/isfinite-tests: New file.
35150         * tests/tests-isfinite.c: New file.
35151         * doc/functions/isfinite.texi: Mention isfinite module.
35152         * MODULES.html.sh: Mention new module.
35153
35154 2007-10-27  Ben Pfaff  <blp@gnu.org>
35155
35156         Ralf Wildenhues reported that Tru64 4.0D declares the round
35157         functions but does not have definitions.
35158         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
35159         cannot be found in any library, set the output variable to
35160         "missing" instead of "".
35161         * m4/round.m4: Also use our substitute if we cannot find round in
35162         any library, even if it is declared.
35163         * m4/roundf.m4: Likewise for roundf.
35164         * m4/roundl.m4: Likewise for roundl.
35165         * lib/math.in.h: Undefine roundf, round, roundl before defining
35166         their replacements, to allow for hypothetical systems where these
35167         may be defined as macros but not available in libraries.
35168
35169 2007-10-27  Bruno Haible  <bruno@clisp.org>
35170
35171         * doc/gnulib.texi: Invoke @firstparagraphindent.
35172         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
35173         changes in gnulib.
35174         (Source changes): New section.
35175
35176 2007-10-26  Bruno Haible  <bruno@clisp.org>
35177
35178         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
35179         borrowed from autoconf.
35180
35181 2007-10-26  Bruno Haible  <bruno@clisp.org>
35182
35183         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
35184         strerror returned the empty string. Needed on HP-UX 11.00.
35185
35186 2007-10-24  Micah Cowan  <micah@cowan.name>
35187
35188         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
35189         * build-aux/bootstrap: Remove support for now-unnecessary option,
35190         --cvs-user, and envvars CVS_USER, CVS_RSH.
35191
35192 2007-10-24  Jim Meyering  <meyering@redhat.com>
35193
35194         Avoid diagnostics from sha1sum when there is no cached checksum.
35195         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
35196         if the po.s1 file hasn't been created yet.
35197
35198         * build-aux/bootstrap: Sync from coreutils:
35199         2007-10-24  Jim Meyering  <meyering@redhat.com>
35200         Get gnulib from the git repository, not from an obsolete cvs one.
35201         * build-aux/bootstrap: Suggestion from Micah Cowan.
35202         2007-10-04  Jim Meyering  <jim@meyering.net>
35203         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
35204         (update_po_files): Work also when there are no .po files in po/.
35205
35206 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
35207
35208         * README: Append ".git" to git and cg examples.
35209         Problem reported by Benoit Sigoure.
35210
35211 2007-10-23  Micah Cowan  <micah@cowan.name>
35212
35213         * users.txt: Add wget.
35214
35215 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35216
35217         Fix linking of some unistdio tests on FreeBSD.
35218         * modules/unistdio/u16-vsnprintf-tests
35219         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
35220         * modules/unistdio/u16-vsprintf-tests
35221         (test_u16_vsnprintf1_LDADD): Likewise.
35222         * modules/unistdio/u32-vsnprintf-tests
35223         (test_u32_vsnprintf1_LDADD): Likewise.
35224         * modules/unistdio/u32-vsprintf-tests
35225         (test_u32_vsprintf1_LDADD): Likewise.
35226         * modules/unistdio/u8-vsnprintf-tests
35227         (test_u8_vsnprintf1_LDADD): Likewise.
35228         * modules/unistdio/u8-vsprintf-tests
35229         (test_u8_vsprintf1_LDADD): Likewise.
35230         * modules/unistdio/ulc-vsnprintf-tests
35231         (test_ulc_vsnprintf1_LDADD): Likewise.
35232         * modules/unistdio/ulc-vsprintf-tests
35233         (test_ulc_vsprintf1_LDADD): Likewise.
35234
35235         Fix linking of some uniconv tests on FreeBSD.
35236         * modules/uniconv/u16-conv-from-enc-tests
35237         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
35238         * modules/uniconv/u16-conv-to-enc-tests
35239         (test_u16_conv_to_enc_LDADD): Likewise.
35240         * modules/uniconv/u16-strconv-from-enc-tests
35241         (test_u16_strconv_from_enc_LDADD): Likewise.
35242         * modules/uniconv/u16-strconv-to-enc-tests
35243         (test_u16_strconv_to_enc_LDADD): Likewise.
35244         * modules/uniconv/u32-conv-from-enc-tests
35245         (test_u32_conv_from_enc_LDADD): Likewise.
35246         * modules/uniconv/u32-conv-to-enc-tests
35247         (test_u32_conv_to_enc_LDADD): Likewise.
35248         * modules/uniconv/u32-strconv-from-enc-tests
35249         (test_u32_strconv_from_enc_LDADD): Likewise.
35250         * modules/uniconv/u32-strconv-to-enc-tests
35251         (test_u32_strconv_to_enc_LDADD): Likewise.
35252         * modules/uniconv/u8-conv-from-enc-tests
35253         (test_u8_conv_from_enc_LDADD): Likewise.
35254         * modules/uniconv/u8-conv-to-enc-tests
35255         (test_u8_conv_to_enc_LDADD): Likewise.
35256         * modules/uniconv/u8-strconv-from-enc-tests
35257         (test_u8_strconv_from_enc_LDADD): Likewise.
35258         * modules/uniconv/u8-strconv-to-enc-tests
35259         (test_u8_strconv_to_enc_LDADD): Likewise.
35260
35261 2007-10-22  Bruno Haible  <bruno@clisp.org>
35262
35263         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
35264         size.
35265
35266 2007-10-22  Eric Blake  <ebb9@byu.net>
35267
35268         Tweak x*printf documentation.
35269         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
35270         variable name and comments.
35271         Suggested by Bruno Haible.
35272
35273 2007-10-22  Bruno Haible  <bruno@clisp.org>
35274
35275         * lib/acl.c (copy_acl): Fix file name in comment.
35276
35277 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
35278
35279         Fix Tru64 problem with stdbool.h.
35280         * lib/stdbool.in.h (false, true):
35281         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
35282         Don't declare as an enum in this situation; it runs afoul of Tru64.
35283         Problem reported by Steven M. Schweda in
35284         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
35285
35286 2007-10-22  Eric Blake  <ebb9@byu.net>
35287
35288         Also wrap vf?printf.
35289         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
35290         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
35291         (xvprintf, xvfprintf): New functions.
35292
35293 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35294
35295         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
35296         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
35297
35298         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
35299         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
35300
35301 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
35302
35303         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
35304         by Bruno Haible.
35305
35306 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35307
35308         * lib/getloadavg.c
35309         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
35310         Undef `sys' after including sys/table.h, for Tru64 4.0D.
35311
35312         * tests/test-i-ring.c: Work for C89.
35313
35314 2007-10-22  Bruno Haible  <bruno@clisp.org>
35315
35316         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
35317         -1u, in preprocessor expression, so that we don't test for the bug
35318         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
35319         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
35320
35321 2007-10-22  Eric Blake  <ebb9@byu.net>
35322
35323         * tests/test-yesno.sh: Silence stderr during test.
35324
35325 2007-10-22  Simon Josefsson  <simon@josefsson.org>
35326
35327         * modules/crypto/gc-camellia: New file.
35328
35329         * m4/gc-camellia.m4: New file.
35330
35331         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
35332
35333         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
35334
35335 2007-10-22  Simon Josefsson  <simon@josefsson.org>
35336
35337         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
35338         --help to stdout.  Reported by sms@antinode.org (Steven
35339         M. Schweda).
35340
35341 2007-10-22  Simon Josefsson  <simon@josefsson.org>
35342
35343         * users.txt: Fix link to libksba.
35344
35345 2007-10-21  Ben Pfaff  <blp@gnu.org>
35346
35347         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
35348         round.c roundf implementation that depends on floorf and ceilf to
35349         be tested unconditionally.
35350
35351 2007-10-21  Ben Pfaff  <blp@gnu.org>
35352
35353         * m4/check-libm-func.m4: Removed.
35354         * m4/check-math-lib.m4: New file.
35355         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
35356         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
35357         definition and lack of AC_LIBOBJ([roundf]).
35358         * m4/roundl.m4: Ditto, and similarly for roundl.
35359         * modules/round: Reference new m4 file.
35360         * modules/roundf: Ditto.
35361         * modules/roundl: Ditto.
35362         * tests/test-round2.c (main): Use ROUND instead of round.
35363         Bug report from Bruno Haible.
35364
35365 2007-10-21  Bruno Haible  <bruno@clisp.org>
35366
35367         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
35368         context.
35369
35370 2007-10-21  Bruno Haible  <bruno@clisp.org>
35371
35372         * tests/test-wcwidth.c (main): Allow negative result for some control
35373         characters.
35374
35375         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
35376         Needed on OSF/1 5.1.
35377
35378 2007-10-21  Bruno Haible  <bruno@clisp.org>
35379
35380         * tests/test-floorf1.c: Include isnanf.h.
35381         (main): Use isnanf() instead of isnan().
35382         * tests/test-ceilf1.c: Include isnanf.h.
35383         (main): Use isnanf() instead of isnan().
35384         * tests/test-truncf1.c: Include isnanf.h.
35385         (main): Use isnanf() instead of isnan().
35386         * tests/test-roundf1.c: Include isnanf.h.
35387         (main): Use isnanf() instead of isnan().
35388
35389 2007-10-21  Eric Blake  <ebb9@byu.net>
35390
35391         * users.txt: Update URL for m4.
35392
35393 2007-10-21  Bruno Haible  <bruno@clisp.org>
35394
35395         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
35396
35397 2007-10-21  Bruno Haible  <bruno@clisp.org>
35398
35399         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
35400         Git's management files if the CVS files are not present.
35401
35402 2007-10-20  Bruno Haible  <bruno@clisp.org>
35403
35404         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
35405         gcc-3.4.x.
35406
35407 2007-10-20  Ben Pfaff  <blp@gnu.org>
35408
35409         * lib/math.in.h: Declare round, roundf, roundl if we are providing
35410         implementations.
35411         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
35412         * lib/round.c: New file.
35413         * lib/roundf.c: New file.
35414         * lib/roundl.c: New file.
35415         * m4/round.m4: New file.
35416         * m4/roundf.m4: New file.
35417         * m4/roundl.m4: New file.
35418         * m4/check-libm-func-m4: New file.
35419         * modules/math: Replace round, roundf, roundl related @VARS@ in
35420         math.in.h.
35421         * modules/round: New file.
35422         * modules/round-tests: New file.
35423         * modules/roundf: New file.
35424         * modules/roundf-tests: New file.
35425         * modules/roundl: New file.
35426         * modules/roundl-tests: New file.
35427         * tests/test-round1.c: New file.
35428         * tests/test-round2.c: New file.
35429         * tests/test-roundf1.c: New file.
35430         * tests/test-roundf2.c: New file.
35431         * tests/test-roundl.c: New file.
35432         * doc/functions/round.texi: Mention round module.
35433         * doc/functions/roundf.texi: Mention roundf module.
35434         * doc/functions/roundl.texi: Mention roundl module.
35435         * MODULES.html.sh: Mention new modules.
35436         Thanks to Bruno Haible for suggestions.
35437
35438 2007-10-20  Jim Meyering  <meyering@redhat.com>
35439
35440         * lib/xprintf.c: Include <config.h> unconditionally.
35441
35442         Change xprintf's license to GPL.
35443         * modules/xprintf (License): s/LGPL/GPL/, since this module
35444         depends on modules (exit and exitfail) which are GPL.
35445         Suggestion from Bruno Haible.
35446
35447         xprintf fixes.
35448         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
35449         Use a clearer diagnostic.
35450         Patch from Bruno Haible.
35451
35452 2007-10-20  Bruno Haible  <bruno@clisp.org>
35453
35454         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
35455         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
35456         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35457
35458 2007-10-20  Bruno Haible  <bruno@clisp.org>
35459
35460         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
35461         precision in the comparison result > x - 1 or similar.
35462         * tests/test-ceilf2.c (correct_result_p): Likewise.
35463         * tests/test-truncf2.c (correct_result_p): Likewise.
35464         * tests/test-trunc2.c (correct_result_p): Likewise.
35465         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35466
35467 2007-10-20  Bruno Haible  <bruno@clisp.org>
35468
35469         * modules/ceil: New file.
35470         * m4/ceil.m4: New file.
35471         * doc/functions/ceil.texi: Mention the 'ceil' module.
35472
35473 2007-10-20  Bruno Haible  <bruno@clisp.org>
35474
35475         * modules/floor: New file.
35476         * m4/floor.m4: New file.
35477         * doc/functions/floor.texi: Mention the 'floor' module.
35478
35479 2007-10-20  Bruno Haible  <bruno@clisp.org>
35480
35481         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
35482         of %a.
35483         * modules/floorf-tests (Depends-on): Likewise.
35484         * modules/truncf-tests (Depends-on): Likewise.
35485         * modules/trunc-tests (Depends-on): Likewise.
35486         Reported by Ben Pfaff.
35487
35488 2007-10-19  Jim Meyering  <meyering@redhat.com>
35489
35490         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
35491         Don't bother testing specific errno values.  Just test ferror.
35492
35493         New module: xprintf
35494         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
35495
35496 2007-10-19  Bruno Haible  <bruno@clisp.org>
35497
35498         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
35499         syntax.
35500         * modules/javaexec (Makefile.am): Likewise.
35501         * modules/relocatable-prog (Makefile.am): Likewise.
35502         Suggested by Jim Meyering.
35503
35504 2007-10-18  Bruno Haible  <bruno@clisp.org>
35505
35506         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
35507         Reported by Jim Meyering.
35508
35509 2007-10-18  Eric Blake  <ebb9@byu.net>
35510
35511         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
35512
35513 2007-10-18  Bruno Haible  <bruno@clisp.org>
35514
35515         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
35516         the format string into writable memory. Needed in Fortify conditions.
35517
35518 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
35519             Bruno Haible  <bruno@clisp.org>
35520
35521         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
35522         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
35523         * modules/trim (Depends-on): Add mbchar.
35524         (configure.ac): Add gl_FUNC_MBRTOWC.
35525         (Makefile.am): Augment lib_SOURCES.
35526
35527 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
35528
35529         Modify glob.c to use fstatat and dirfd, to simplify it.
35530         Suggested by Eric Blake.
35531         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
35532         Don't include <stdbool.h>; not used.
35533         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
35534         (link_exists_p): Simplify implementation, since we can now assume
35535         dirfd and fstatat.
35536         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
35537
35538 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35539
35540         * gnulib-tool (func_get_dependencies): Fix sed script to
35541         match only tests.
35542
35543 2007-10-17  Bruno Haible  <bruno@clisp.org>
35544
35545         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
35546         allow locale names without encoding suffix.
35547         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
35548         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
35549
35550 2007-10-16  Bruno Haible  <bruno@clisp.org>
35551
35552         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
35553         * lib/getgroups.c (getgroups): Likewise.
35554         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
35555
35556 2007-10-16  Bruno Haible  <bruno@clisp.org>
35557
35558         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
35559         * modules/malloc-posix (License): Likewise.
35560         * modules/realloc-posix (License): Likewise.
35561         * modules/calloc-posix (License): Likewise.
35562         * modules/intprops (License): Change from GPL to LGPL, with
35563         Paul Eggert's approval.
35564
35565 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
35566
35567         Merge glibc changes into lib/glob.c.
35568
35569         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
35570         2007-10-15 04:59:03 UTC.  Here are the changes:
35571
35572         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
35573
35574         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
35575
35576         * lib/glob.c: Add some branch prediction throughout.
35577
35578         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
35579
35580         [BZ #5103]
35581         * lib/glob.c (glob): Recognize patterns starting \/.
35582
35583         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
35584
35585         [BZ #3996]
35586         * lib/glob.c (attribute_hidden): Define if not defined.
35587         (glob): Unescape dirname, filename or username when needed and not
35588         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
35589         is NULL.  Handle unescaped [ in pattern without closing ].
35590         Don't pass GLOB_CHECK down to recursive glob for directories.
35591         (__glob_pattern_type): New function.
35592         (__glob_pattern_p): Implement using __glob_pattern_type.
35593         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
35594         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
35595         Remove unreachable code.
35596
35597         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
35598
35599         * lib/glob.c (glob_in_dir): Add some comments and asserts to
35600         explain why there are no leaks.
35601
35602         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
35603
35604         [BZ #3253]
35605         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
35606         time, rather allocate increasingly bigger arrays of pointers, if
35607         possible with alloca, if too large with malloc.
35608
35609 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
35610
35611         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
35612         Problem reported by H.Merijn Brand in
35613         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
35614         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
35615         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
35616
35617 2007-10-15  Bruno Haible  <bruno@clisp.org>
35618
35619         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
35620         with explicit rpl_ prefix.
35621         * lib/fopen.c (fopen): Likewise.
35622         * lib/freopen.c (freopen): Likewise.
35623         * lib/iconv.c (iconv): Likewise.
35624         * lib/iconv_close.c (iconv_close): Likewise.
35625
35626 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35627
35628         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
35629
35630 2007-10-15  Bruno Haible  <bruno@clisp.org>
35631
35632         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
35633         <stddef.h> instead of <stdlib.h> since we only need NULL.
35634         Reported by Ben Pfaff <blp@cs.stanford.edu>.
35635
35636 2007-10-15  Bruno Haible  <bruno@clisp.org>
35637
35638         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
35639         Replace paragraph talking about LIBOBJS.
35640         Reported by Colin Watson <cjwatson@debian.org>.
35641
35642 2007-10-15  Bruno Haible  <bruno@clisp.org>
35643
35644         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
35645         <stdlib.h> before using NULL.
35646
35647 2007-10-15  Simon Josefsson  <simon@josefsson.org>
35648
35649         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
35650         Reported by Albert Chin <china@thewrittenword.com>.
35651
35652 2007-10-14  Bruno Haible  <bruno@clisp.org>
35653
35654         * modules/iconv_open-utf-tests: New file.
35655         * tests/test-iconv-utf.c: New file.
35656
35657         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
35658         * modules/iconv_open-utf: New file.
35659         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
35660         (iconv, iconv_close): New declarations.
35661         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
35662         be defined.
35663         (iconv_open): Add special handling of conversion between UTF-8 and
35664         UTF-{16,32}{BE,LE}.
35665         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
35666         * lib/iconv_close.c: New file.
35667         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
35668         gl_FUNC_ICONV_OPEN.
35669         (gl_FUNC_ICONV_OPEN): Use it.
35670         (gl_FUNC_ICONV_OPEN_UTF): New macro.
35671         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
35672         and REPLACE_ICONV_UTF.
35673         * modules/iconv_open (Depends-on): Add c-strcase.
35674         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
35675         ICONV_CONST.
35676         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
35677
35678 2007-10-13  Albert Chin  <china@thewrittenword.com>
35679             Bruno Haible  <bruno@clisp.org>
35680
35681         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
35682         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
35683
35684 2007-10-13  Bruno Haible  <bruno@clisp.org>
35685
35686         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
35687         defined, use the ISO C99 inline semantics.
35688         * lib/argp.h (ARGP_EI): Likewise.
35689
35690 2007-10-13  Bruno Haible  <bruno@clisp.org>
35691
35692         Handle 'inline' change in gcc 4.3.0.
35693         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
35694         argp_fmtstream_write, argp_fmtstream_set_lmargin,
35695         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
35696         argp_fmtstream_point): Disable 'extern' declaration if the function
35697         definition is going to be provided inline.
35698         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
35699         semantics, not the ISO C99 inline semantics.
35700         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
35701         'extern' declaration if the function definition is going to be provided
35702         inline.
35703         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
35704         the GNU C inline semantics, not the ISO C99 inline semantics. With
35705         GCC 4.2, avoid a warning.
35706
35707 2007-10-13  Bruno Haible  <bruno@clisp.org>
35708
35709         * lib/freading.h (freading): Enable the use of __freading for
35710         glibc >= 2.7.
35711         * lib/freading.c (freading): Likewise.
35712
35713 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
35714
35715         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
35716         "warning: C99 inline functions are not supported; using GNU89".
35717
35718 2007-10-12  Bruno Haible  <bruno@clisp.org>
35719
35720         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
35721         of 2.
35722         * tests/test-ceilf2.c: New file.
35723         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
35724
35725         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
35726         * modules/ceilf-tests: Update.
35727
35728 2007-10-12  Bruno Haible  <bruno@clisp.org>
35729
35730         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
35731         of 2.
35732         * tests/test-floorf2.c: New file.
35733         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
35734
35735         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
35736         * modules/floorf-tests: Update.
35737
35738 2007-10-12  Bruno Haible  <bruno@clisp.org>
35739
35740         * tests/test-trunc2.c: New file.
35741         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
35742
35743         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
35744         * modules/trunc-tests: Update.
35745
35746 2007-10-12  Bruno Haible  <bruno@clisp.org>
35747
35748         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
35749         of 2.
35750         * tests/test-truncf2.c: New file.
35751         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
35752
35753         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
35754         * modules/truncf-tests: Update.
35755
35756 2007-10-11  Eric Blake  <ebb9@byu.net>
35757
35758         Don't claim strerror is broken on Interix.
35759         * doc/functions/strerror.texi (strerror): Known broken systems are
35760         now Solaris 8, and not Interix.
35761         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
35762         Interix on cross-compile.
35763         Reported by Martin Koeppe in
35764         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
35765
35766 2007-10-11  Bruno Haible  <bruno@clisp.org>
35767
35768         * modules/i-ring-tests: New file.
35769         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
35770         instead of assert.
35771
35772 2007-10-11  Bruno Haible  <bruno@clisp.org>
35773
35774         * modules/filenamecat-tests: New file.
35775         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
35776         * lib/filenamecat.c: Remove test code.
35777
35778 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
35779
35780         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
35781
35782         * lib/strerror.c: Include <string.h> always, to test interface,
35783         and to remove the need for the dummy.
35784         Include intprops.h to compute width instead of doing it ourselves
35785         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
35786         (strerror): Define it to return NULL if there's no system strerror.
35787         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
35788         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
35789         ancient pre-strerror Unix systems well any more.  Saying "unknown
35790         system error" is enough.
35791         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
35792         simpler strerror.c implementation.
35793         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
35794         Simplify the tests to reflect the simpler strerror implementation.
35795         * modules/strerror (Depends-on): Add intprops.
35796
35797 2007-10-09  Eric Blake  <ebb9@byu.net>
35798
35799         Silence test-fpending.
35800         * modules/fpending-tests (Files): Add wrapper script.
35801         * tests/test-fpending.sh: New file.
35802
35803 2007-10-09  Bruno Haible  <bruno@clisp.org>
35804
35805         * MODULES.html.sh (func_module): Don't create a hyperlink for
35806         function names like 'printf_frexp'.
35807         (Misc): Add crc, memxor.
35808         (Characteristics of floating types): New section.
35809         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
35810         isnanf-nolibm, signbit, trunc, truncf, truncl.
35811         (Enhancements for ISO C 99 functions): New subsection Input/output.
35812         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
35813         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
35814         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
35815         (Compatibility checks for POSIX:2001 functions): Add clock-time.
35816         (Enhancements for POSIX:2001 functions): Add chdir-long.
35817         (File system functions): Add areadlink, chdir-safer, read-file.
35818         Remove cycle-check.
35819         (File system as inode set): New section.
35820         (Date and time): Add gethrxtime.
35821         (Multithreading): Add openmp.
35822         (Internationalization functions): Add localename.
35823         (Unicode string functions): Add unistr/u*-mbsnlen.
35824         (Support for maintaining and releasing projects): Add git-version-gen.
35825         (Lone files): Remove directories.
35826
35827 2007-10-08  Ben Pfaff  <blp@gnu.org>
35828
35829         * lib/xmalloca.h: Fix typo in comment.
35830
35831 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
35832
35833         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
35834         when avoiding problems with integer overflow.  Use a portable test
35835         instead.
35836
35837 2007-10-08  Simon Josefsson  <simon@josefsson.org>
35838
35839         * modules/dummy (License): Change to LGPLv2+.
35840         * modules/float (License): Likewise
35841         * modules/realloc (License): Likewise
35842         * modules/stdlib (License): Likewise
35843
35844 2007-10-07  Bruno Haible  <bruno@clisp.org>
35845
35846         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
35847         * floor.c (TWO_MANT_DIG): Likewise.
35848         * ceil.c (TWO_MANT_DIG): Likewise.
35849         Reported by Ben Pfaff.
35850
35851 2007-10-07  Bruno Haible  <bruno@clisp.org>
35852
35853         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
35854         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
35855         * lib/frexp.c (FUNC): Likewise.
35856         * lib/printf-frexp.h (printf_frexp): Likewise.
35857         * lib/printf-frexpl.h (printf_frexpl): Likewise.
35858         * lib/printf-frexp.c (FUNC): Likewise.
35859         Suggested by Jim Meyering.
35860
35861 2007-10-07  Jim Meyering  <meyering@redhat.com>
35862
35863         Make xnanosleep's integer overflow test more robust.
35864         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
35865         so that gcc-4.3.0 doesn't optimize away this test for overflow.
35866
35867 2007-10-07  Bruno Haible  <bruno@clisp.org>
35868
35869         * NEWS: Mention the license change.
35870
35871         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
35872         abbreviations in the modules files.
35873
35874         Change copyright notice from GPLv2+ to GPLv3+.
35875         * README: Change copyright notice.
35876         * MODULES.html.sh: Likewise.
35877         * build-aux/bootstrap.conf: Likewise.
35878         * build-aux/config.libpath: Likewise.
35879         * build-aux/csharpcomp.sh.in: Likewise.
35880         * build-aux/csharpexec.sh.in: Likewise.
35881         * build-aux/install-reloc: Likewise.
35882         * build-aux/javacomp.sh.in: Likewise.
35883         * build-aux/javaexec.sh.in: Likewise.
35884         * build-aux/ldd.sh.in: Likewise.
35885         * build-aux/reloc-ldflags: Likewise.
35886         * build-aux/relocatable.sh.in: Likewise.
35887         * build-aux/x-to-1.in: Likewise.
35888         * check-module: Likewise.
35889         * config/srclistvars.sh: Likewise.
35890         * gnulib-tool: Likewise.
35891         * lib/acl-internal.h: Likewise.
35892         * lib/acl.c: Likewise.
35893         * lib/acl.h: Likewise.
35894         * lib/acl_entries.c: Likewise.
35895         * lib/areadlink-with-size.c: Likewise.
35896         * lib/areadlink.c: Likewise.
35897         * lib/areadlink.h: Likewise.
35898         * lib/argmatch.c: Likewise.
35899         * lib/argmatch.h: Likewise.
35900         * lib/argp-ba.c: Likewise.
35901         * lib/argp-eexst.c: Likewise.
35902         * lib/argp-fmtstream.c: Likewise.
35903         * lib/argp-fmtstream.h: Likewise.
35904         * lib/argp-fs-xinl.c: Likewise.
35905         * lib/argp-help.c: Likewise.
35906         * lib/argp-namefrob.h: Likewise.
35907         * lib/argp-parse.c: Likewise.
35908         * lib/argp-pin.c: Likewise.
35909         * lib/argp-pv.c: Likewise.
35910         * lib/argp-pvh.c: Likewise.
35911         * lib/argp-xinl.c: Likewise.
35912         * lib/argp.h: Likewise.
35913         * lib/at-func.c: Likewise.
35914         * lib/atanl.c: Likewise.
35915         * lib/backupfile.c: Likewise.
35916         * lib/backupfile.h: Likewise.
35917         * lib/basename.c: Likewise.
35918         * lib/binary-io.h: Likewise.
35919         * lib/byteswap.in.h: Likewise.
35920         * lib/c-stack.c: Likewise.
35921         * lib/c-stack.h: Likewise.
35922         * lib/c-strcasestr.c: Likewise.
35923         * lib/c-strcasestr.h: Likewise.
35924         * lib/c-strstr.c: Likewise.
35925         * lib/c-strstr.h: Likewise.
35926         * lib/c-strtod.c: Likewise.
35927         * lib/calloc.c: Likewise.
35928         * lib/canon-host.c: Likewise.
35929         * lib/canon-host.h: Likewise.
35930         * lib/canonicalize-lgpl.c: Likewise.
35931         * lib/canonicalize.c: Likewise.
35932         * lib/canonicalize.h: Likewise.
35933         * lib/ceil.c: Likewise.
35934         * lib/ceilf.c: Likewise.
35935         * lib/ceill.c: Likewise.
35936         * lib/chdir-long.c: Likewise.
35937         * lib/chdir-long.h: Likewise.
35938         * lib/chdir-safer.c: Likewise.
35939         * lib/chdir-safer.h: Likewise.
35940         * lib/chown.c: Likewise.
35941         * lib/classpath.c: Likewise.
35942         * lib/classpath.h: Likewise.
35943         * lib/clean-temp.c: Likewise.
35944         * lib/clean-temp.h: Likewise.
35945         * lib/cloexec.c: Likewise.
35946         * lib/close-stream.c: Likewise.
35947         * lib/closein.c: Likewise.
35948         * lib/closein.h: Likewise.
35949         * lib/closeout.c: Likewise.
35950         * lib/closeout.h: Likewise.
35951         * lib/concat-filename.c: Likewise.
35952         * lib/copy-file.c: Likewise.
35953         * lib/copy-file.h: Likewise.
35954         * lib/count-one-bits.h: Likewise.
35955         * lib/crc.c: Likewise.
35956         * lib/crc.h: Likewise.
35957         * lib/creat-safer.c: Likewise.
35958         * lib/csharpcomp.c: Likewise.
35959         * lib/csharpcomp.h: Likewise.
35960         * lib/csharpexec.c: Likewise.
35961         * lib/csharpexec.h: Likewise.
35962         * lib/cycle-check.c: Likewise.
35963         * lib/cycle-check.h: Likewise.
35964         * lib/diacrit.c: Likewise.
35965         * lib/diacrit.h: Likewise.
35966         * lib/diffseq.h: Likewise.
35967         * lib/dirchownmod.c: Likewise.
35968         * lib/dirent.in.h: Likewise.
35969         * lib/dirfd.c: Likewise.
35970         * lib/dirfd.h: Likewise.
35971         * lib/dirname.c: Likewise.
35972         * lib/dirname.h: Likewise.
35973         * lib/dummy.c: Likewise.
35974         * lib/dup-safer.c: Likewise.
35975         * lib/dup2.c: Likewise.
35976         * lib/eealloc.h: Likewise.
35977         * lib/error.c: Likewise.
35978         * lib/error.h: Likewise.
35979         * lib/euidaccess.c: Likewise.
35980         * lib/exclude.c: Likewise.
35981         * lib/exclude.h: Likewise.
35982         * lib/execute.c: Likewise.
35983         * lib/execute.h: Likewise.
35984         * lib/exitfail.c: Likewise.
35985         * lib/exitfail.h: Likewise.
35986         * lib/expl.c: Likewise.
35987         * lib/fatal-signal.c: Likewise.
35988         * lib/fatal-signal.h: Likewise.
35989         * lib/fbufmode.c: Likewise.
35990         * lib/fbufmode.h: Likewise.
35991         * lib/fchdir.c: Likewise.
35992         * lib/fchmodat.c: Likewise.
35993         * lib/fchownat.c: Likewise.
35994         * lib/fcntl--.h: Likewise.
35995         * lib/fcntl-safer.h: Likewise.
35996         * lib/fcntl.in.h: Likewise.
35997         * lib/fd-safer.c: Likewise.
35998         * lib/fflush.c: Likewise.
35999         * lib/file-has-acl.c: Likewise.
36000         * lib/file-set.c: Likewise.
36001         * lib/file-type.c: Likewise.
36002         * lib/file-type.h: Likewise.
36003         * lib/fileblocks.c: Likewise.
36004         * lib/filemode.c: Likewise.
36005         * lib/filemode.h: Likewise.
36006         * lib/filename.h: Likewise.
36007         * lib/filenamecat.c: Likewise.
36008         * lib/filenamecat.h: Likewise.
36009         * lib/findprog.c: Likewise.
36010         * lib/findprog.h: Likewise.
36011         * lib/float.in.h: Likewise.
36012         * lib/floor.c: Likewise.
36013         * lib/floorf.c: Likewise.
36014         * lib/floorl.c: Likewise.
36015         * lib/fopen-safer.c: Likewise.
36016         * lib/fopen.c: Likewise.
36017         * lib/fpending.c: Likewise.
36018         * lib/fpending.h: Likewise.
36019         * lib/fprintf.c: Likewise.
36020         * lib/fprintftime.h: Likewise.
36021         * lib/fpucw.h: Likewise.
36022         * lib/fpurge.c: Likewise.
36023         * lib/fpurge.h: Likewise.
36024         * lib/freadable.c: Likewise.
36025         * lib/freadable.h: Likewise.
36026         * lib/freadahead.c: Likewise.
36027         * lib/freadahead.h: Likewise.
36028         * lib/freading.c: Likewise.
36029         * lib/freading.h: Likewise.
36030         * lib/free.c: Likewise.
36031         * lib/freopen.c: Likewise.
36032         * lib/frexp.c: Likewise.
36033         * lib/frexpl.c: Likewise.
36034         * lib/fseek.c: Likewise.
36035         * lib/fseterr.c: Likewise.
36036         * lib/fseterr.h: Likewise.
36037         * lib/fstatat.c: Likewise.
36038         * lib/fstrcmp.c: Likewise.
36039         * lib/fstrcmp.h: Likewise.
36040         * lib/fsusage.c: Likewise.
36041         * lib/fsusage.h: Likewise.
36042         * lib/ftell.c: Likewise.
36043         * lib/ftello.c: Likewise.
36044         * lib/fts-cycle.c: Likewise.
36045         * lib/fts.c: Likewise.
36046         * lib/fts_.h: Likewise.
36047         * lib/full-read.c: Likewise.
36048         * lib/full-read.h: Likewise.
36049         * lib/full-write.c: Likewise.
36050         * lib/full-write.h: Likewise.
36051         * lib/fwritable.c: Likewise.
36052         * lib/fwritable.h: Likewise.
36053         * lib/fwriteerror.c: Likewise.
36054         * lib/fwriteerror.h: Likewise.
36055         * lib/fwriting.c: Likewise.
36056         * lib/fwriting.h: Likewise.
36057         * lib/gcd.c: Likewise.
36058         * lib/gcd.h: Likewise.
36059         * lib/getcwd.c: Likewise.
36060         * lib/getdate.h: Likewise.
36061         * lib/getdate.y: Likewise.
36062         * lib/getdomainname.c: Likewise.
36063         * lib/getdomainname.h: Likewise.
36064         * lib/getgroups.c: Likewise.
36065         * lib/gethostname.c: Likewise.
36066         * lib/gethrxtime.c: Likewise.
36067         * lib/gethrxtime.h: Likewise.
36068         * lib/getloadavg.c: Likewise.
36069         * lib/getndelim2.c: Likewise.
36070         * lib/getndelim2.h: Likewise.
36071         * lib/getnline.c: Likewise.
36072         * lib/getnline.h: Likewise.
36073         * lib/getopt.c: Likewise.
36074         * lib/getopt.in.h: Likewise.
36075         * lib/getopt1.c: Likewise.
36076         * lib/getopt_int.h: Likewise.
36077         * lib/getpagesize.h: Likewise.
36078         * lib/getsubopt.c: Likewise.
36079         * lib/gettime.c: Likewise.
36080         * lib/getugroups.c: Likewise.
36081         * lib/getugroups.h: Likewise.
36082         * lib/getusershell.c: Likewise.
36083         * lib/gl_anyavltree_list1.h: Likewise.
36084         * lib/gl_anyavltree_list2.h: Likewise.
36085         * lib/gl_anyhash_list1.h: Likewise.
36086         * lib/gl_anyhash_list2.h: Likewise.
36087         * lib/gl_anylinked_list1.h: Likewise.
36088         * lib/gl_anylinked_list2.h: Likewise.
36089         * lib/gl_anyrbtree_list1.h: Likewise.
36090         * lib/gl_anyrbtree_list2.h: Likewise.
36091         * lib/gl_anytree_list1.h: Likewise.
36092         * lib/gl_anytree_list2.h: Likewise.
36093         * lib/gl_anytree_oset.h: Likewise.
36094         * lib/gl_anytreehash_list1.h: Likewise.
36095         * lib/gl_anytreehash_list2.h: Likewise.
36096         * lib/gl_array_list.c: Likewise.
36097         * lib/gl_array_list.h: Likewise.
36098         * lib/gl_array_oset.c: Likewise.
36099         * lib/gl_array_oset.h: Likewise.
36100         * lib/gl_avltree_list.c: Likewise.
36101         * lib/gl_avltree_list.h: Likewise.
36102         * lib/gl_avltree_oset.c: Likewise.
36103         * lib/gl_avltree_oset.h: Likewise.
36104         * lib/gl_avltreehash_list.c: Likewise.
36105         * lib/gl_avltreehash_list.h: Likewise.
36106         * lib/gl_carray_list.c: Likewise.
36107         * lib/gl_carray_list.h: Likewise.
36108         * lib/gl_linked_list.c: Likewise.
36109         * lib/gl_linked_list.h: Likewise.
36110         * lib/gl_linkedhash_list.c: Likewise.
36111         * lib/gl_linkedhash_list.h: Likewise.
36112         * lib/gl_list.c: Likewise.
36113         * lib/gl_list.h: Likewise.
36114         * lib/gl_oset.c: Likewise.
36115         * lib/gl_oset.h: Likewise.
36116         * lib/gl_rbtree_list.c: Likewise.
36117         * lib/gl_rbtree_list.h: Likewise.
36118         * lib/gl_rbtree_oset.c: Likewise.
36119         * lib/gl_rbtree_oset.h: Likewise.
36120         * lib/gl_rbtreehash_list.c: Likewise.
36121         * lib/gl_rbtreehash_list.h: Likewise.
36122         * lib/gl_sublist.c: Likewise.
36123         * lib/gl_sublist.h: Likewise.
36124         * lib/group-member.c: Likewise.
36125         * lib/group-member.h: Likewise.
36126         * lib/hard-locale.c: Likewise.
36127         * lib/hard-locale.h: Likewise.
36128         * lib/hash-pjw.c: Likewise.
36129         * lib/hash-pjw.h: Likewise.
36130         * lib/hash-triple.c: Likewise.
36131         * lib/hash.c: Likewise.
36132         * lib/hash.h: Likewise.
36133         * lib/human.c: Likewise.
36134         * lib/human.h: Likewise.
36135         * lib/i-ring.c: Likewise.
36136         * lib/i-ring.h: Likewise.
36137         * lib/idcache.c: Likewise.
36138         * lib/imaxabs.c: Likewise.
36139         * lib/imaxdiv.c: Likewise.
36140         * lib/inet_pton.c: Likewise.
36141         * lib/inet_pton.h: Likewise.
36142         * lib/intprops.h: Likewise.
36143         * lib/inttostr.c: Likewise.
36144         * lib/inttostr.h: Likewise.
36145         * lib/inttypes.in.h: Likewise.
36146         * lib/isapipe.c: Likewise.
36147         * lib/isdir.c: Likewise.
36148         * lib/isnan.c: Likewise.
36149         * lib/isnan.h: Likewise.
36150         * lib/isnanf.c: Likewise.
36151         * lib/isnanf.h: Likewise.
36152         * lib/isnanl-nolibm.h: Likewise.
36153         * lib/isnanl.c: Likewise.
36154         * lib/isnanl.h: Likewise.
36155         * lib/javacomp.c: Likewise.
36156         * lib/javacomp.h: Likewise.
36157         * lib/javaexec.c: Likewise.
36158         * lib/javaexec.h: Likewise.
36159         * lib/javaversion.c: Likewise.
36160         * lib/javaversion.h: Likewise.
36161         * lib/javaversion.java: Likewise.
36162         * lib/lbrkprop.h: Likewise.
36163         * lib/lchmod.h: Likewise.
36164         * lib/lchown.c: Likewise.
36165         * lib/ldexpl.c: Likewise.
36166         * lib/linebreak.c: Likewise.
36167         * lib/linebreak.h: Likewise.
36168         * lib/linebuffer.c: Likewise.
36169         * lib/linebuffer.h: Likewise.
36170         * lib/locale.in.h: Likewise.
36171         * lib/logl.c: Likewise.
36172         * lib/long-options.c: Likewise.
36173         * lib/long-options.h: Likewise.
36174         * lib/lstat.c: Likewise.
36175         * lib/lstat.h: Likewise.
36176         * lib/math.in.h: Likewise.
36177         * lib/mbchar.c: Likewise.
36178         * lib/mbchar.h: Likewise.
36179         * lib/mbfile.h: Likewise.
36180         * lib/mbiter.h: Likewise.
36181         * lib/mbscasecmp.c: Likewise.
36182         * lib/mbscasestr.c: Likewise.
36183         * lib/mbschr.c: Likewise.
36184         * lib/mbscspn.c: Likewise.
36185         * lib/mbslen.c: Likewise.
36186         * lib/mbsncasecmp.c: Likewise.
36187         * lib/mbsnlen.c: Likewise.
36188         * lib/mbspbrk.c: Likewise.
36189         * lib/mbspcasecmp.c: Likewise.
36190         * lib/mbsrchr.c: Likewise.
36191         * lib/mbssep.c: Likewise.
36192         * lib/mbsspn.c: Likewise.
36193         * lib/mbsstr.c: Likewise.
36194         * lib/mbstok_r.c: Likewise.
36195         * lib/mbswidth.c: Likewise.
36196         * lib/mbswidth.h: Likewise.
36197         * lib/mbuiter.h: Likewise.
36198         * lib/memcasecmp.c: Likewise.
36199         * lib/memcasecmp.h: Likewise.
36200         * lib/memchr.c: Likewise.
36201         * lib/memcmp.c: Likewise.
36202         * lib/memcoll.c: Likewise.
36203         * lib/memcoll.h: Likewise.
36204         * lib/memcpy.c: Likewise.
36205         * lib/memrchr.c: Likewise.
36206         * lib/mkancesdirs.c: Likewise.
36207         * lib/mkdir-p.c: Likewise.
36208         * lib/mkdir-p.h: Likewise.
36209         * lib/mkdir.c: Likewise.
36210         * lib/mkdirat.c: Likewise.
36211         * lib/mkdtemp.c: Likewise.
36212         * lib/mkstemp-safer.c: Likewise.
36213         * lib/mkstemp.c: Likewise.
36214         * lib/modechange.c: Likewise.
36215         * lib/modechange.h: Likewise.
36216         * lib/mountlist.c: Likewise.
36217         * lib/mountlist.h: Likewise.
36218         * lib/mpsort.c: Likewise.
36219         * lib/nanosleep.c: Likewise.
36220         * lib/obstack.c: Likewise.
36221         * lib/obstack.h: Likewise.
36222         * lib/open-safer.c: Likewise.
36223         * lib/open.c: Likewise.
36224         * lib/openat-die.c: Likewise.
36225         * lib/openat-priv.h: Likewise.
36226         * lib/openat-proc.c: Likewise.
36227         * lib/openat.c: Likewise.
36228         * lib/openat.h: Likewise.
36229         * lib/pagealign_alloc.c: Likewise.
36230         * lib/pagealign_alloc.h: Likewise.
36231         * lib/physmem.c: Likewise.
36232         * lib/physmem.h: Likewise.
36233         * lib/pipe-safer.c: Likewise.
36234         * lib/pipe.c: Likewise.
36235         * lib/pipe.h: Likewise.
36236         * lib/posixtm.c: Likewise.
36237         * lib/posixtm.h: Likewise.
36238         * lib/posixver.c: Likewise.
36239         * lib/printf-frexp.c: Likewise.
36240         * lib/printf-frexp.h: Likewise.
36241         * lib/printf-frexpl.c: Likewise.
36242         * lib/printf-frexpl.h: Likewise.
36243         * lib/printf.c: Likewise.
36244         * lib/progname.c: Likewise.
36245         * lib/progname.h: Likewise.
36246         * lib/progreloc.c: Likewise.
36247         * lib/putenv.c: Likewise.
36248         * lib/quote.c: Likewise.
36249         * lib/quote.h: Likewise.
36250         * lib/quotearg.c: Likewise.
36251         * lib/quotearg.h: Likewise.
36252         * lib/raise.c: Likewise.
36253         * lib/readline.c: Likewise.
36254         * lib/readline.h: Likewise.
36255         * lib/readlink.c: Likewise.
36256         * lib/readtokens.c: Likewise.
36257         * lib/readtokens.h: Likewise.
36258         * lib/readtokens0.c: Likewise.
36259         * lib/readtokens0.h: Likewise.
36260         * lib/readutmp.c: Likewise.
36261         * lib/readutmp.h: Likewise.
36262         * lib/realloc.c: Likewise.
36263         * lib/relocwrapper.c: Likewise.
36264         * lib/rename-dest-slash.c: Likewise.
36265         * lib/rename.c: Likewise.
36266         * lib/rmdir.c: Likewise.
36267         * lib/rpmatch.c: Likewise.
36268         * lib/safe-read.c: Likewise.
36269         * lib/safe-read.h: Likewise.
36270         * lib/safe-write.c: Likewise.
36271         * lib/safe-write.h: Likewise.
36272         * lib/same-inode.h: Likewise.
36273         * lib/same.c: Likewise.
36274         * lib/same.h: Likewise.
36275         * lib/save-cwd.c: Likewise.
36276         * lib/save-cwd.h: Likewise.
36277         * lib/savedir.c: Likewise.
36278         * lib/savedir.h: Likewise.
36279         * lib/savewd.c: Likewise.
36280         * lib/savewd.h: Likewise.
36281         * lib/search.in.h: Likewise.
36282         * lib/setenv.c: Likewise.
36283         * lib/setenv.h: Likewise.
36284         * lib/settime.c: Likewise.
36285         * lib/sh-quote.c: Likewise.
36286         * lib/sh-quote.h: Likewise.
36287         * lib/sig2str.c: Likewise.
36288         * lib/sig2str.h: Likewise.
36289         * lib/signal.in.h: Likewise.
36290         * lib/signbitd.c: Likewise.
36291         * lib/signbitf.c: Likewise.
36292         * lib/signbitl.c: Likewise.
36293         * lib/sigprocmask.c: Likewise.
36294         * lib/sincosl.c: Likewise.
36295         * lib/sleep.c: Likewise.
36296         * lib/sprintf.c: Likewise.
36297         * lib/sqrtl.c: Likewise.
36298         * lib/stat-time.h: Likewise.
36299         * lib/stdio--.h: Likewise.
36300         * lib/stdio-safer.h: Likewise.
36301         * lib/stdlib--.h: Likewise.
36302         * lib/stdlib-safer.h: Likewise.
36303         * lib/stdlib.in.h: Likewise.
36304         * lib/stpcpy.c: Likewise.
36305         * lib/stpncpy.c: Likewise.
36306         * lib/strchrnul.c: Likewise.
36307         * lib/strcspn.c: Likewise.
36308         * lib/strerror.c: Likewise.
36309         * lib/strftime.c: Likewise.
36310         * lib/strftime.h: Likewise.
36311         * lib/striconveh.c: Likewise.
36312         * lib/striconveh.h: Likewise.
36313         * lib/striconveha.c: Likewise.
36314         * lib/striconveha.h: Likewise.
36315         * lib/stripslash.c: Likewise.
36316         * lib/strnlen1.c: Likewise.
36317         * lib/strnlen1.h: Likewise.
36318         * lib/strtod.c: Likewise.
36319         * lib/strtoimax.c: Likewise.
36320         * lib/strtok_r.c: Likewise.
36321         * lib/strtol.c: Likewise.
36322         * lib/strtoll.c: Likewise.
36323         * lib/strtoul.c: Likewise.
36324         * lib/strtoull.c: Likewise.
36325         * lib/sysexits.in.h: Likewise.
36326         * lib/tempname.c: Likewise.
36327         * lib/tempname.h: Likewise.
36328         * lib/timespec.h: Likewise.
36329         * lib/tls.c: Likewise.
36330         * lib/tls.h: Likewise.
36331         * lib/tmpdir.c: Likewise.
36332         * lib/tmpdir.h: Likewise.
36333         * lib/tmpfile-safer.c: Likewise.
36334         * lib/tmpfile.c: Likewise.
36335         * lib/trigl.c: Likewise.
36336         * lib/trigl.h: Likewise.
36337         * lib/trim.c: Likewise.
36338         * lib/trim.h: Likewise.
36339         * lib/trunc.c: Likewise.
36340         * lib/truncf.c: Likewise.
36341         * lib/truncl.c: Likewise.
36342         * lib/tsearch.c: Likewise.
36343         * lib/unicodeio.c: Likewise.
36344         * lib/unicodeio.h: Likewise.
36345         * lib/unistd--.h: Likewise.
36346         * lib/unistd-safer.h: Likewise.
36347         * lib/unistdio/ulc-fprintf.c: Likewise.
36348         * lib/unistdio/ulc-vfprintf.c: Likewise.
36349         * lib/unlinkdir.c: Likewise.
36350         * lib/unlinkdir.h: Likewise.
36351         * lib/unlocked-io.h: Likewise.
36352         * lib/unsetenv.c: Likewise.
36353         * lib/userspec.c: Likewise.
36354         * lib/utime.c: Likewise.
36355         * lib/utimecmp.c: Likewise.
36356         * lib/utimecmp.h: Likewise.
36357         * lib/utimens.c: Likewise.
36358         * lib/verify.h: Likewise.
36359         * lib/verror.c: Likewise.
36360         * lib/verror.h: Likewise.
36361         * lib/version-etc-fsf.c: Likewise.
36362         * lib/version-etc.c: Likewise.
36363         * lib/version-etc.h: Likewise.
36364         * lib/vfprintf.c: Likewise.
36365         * lib/vprintf.c: Likewise.
36366         * lib/vsprintf.c: Likewise.
36367         * lib/w32spawn.h: Likewise.
36368         * lib/wait-process.c: Likewise.
36369         * lib/wait-process.h: Likewise.
36370         * lib/wcwidth.c: Likewise.
36371         * lib/write-any-file.c: Likewise.
36372         * lib/xalloc-die.c: Likewise.
36373         * lib/xalloc.h: Likewise.
36374         * lib/xasprintf.c: Likewise.
36375         * lib/xgetcwd.c: Likewise.
36376         * lib/xgetcwd.h: Likewise.
36377         * lib/xgetdomainname.c: Likewise.
36378         * lib/xgetdomainname.h: Likewise.
36379         * lib/xgethostname.c: Likewise.
36380         * lib/xmalloc.c: Likewise.
36381         * lib/xmalloca.c: Likewise.
36382         * lib/xmalloca.h: Likewise.
36383         * lib/xmemcoll.c: Likewise.
36384         * lib/xnanosleep.c: Likewise.
36385         * lib/xreadlink.c: Likewise.
36386         * lib/xreadlink.h: Likewise.
36387         * lib/xsetenv.c: Likewise.
36388         * lib/xsetenv.h: Likewise.
36389         * lib/xstriconv.c: Likewise.
36390         * lib/xstriconv.h: Likewise.
36391         * lib/xstrndup.c: Likewise.
36392         * lib/xstrndup.h: Likewise.
36393         * lib/xstrtod.c: Likewise.
36394         * lib/xstrtod.h: Likewise.
36395         * lib/xstrtol-error.c: Likewise.
36396         * lib/xstrtol.c: Likewise.
36397         * lib/xstrtol.h: Likewise.
36398         * lib/xtime.h: Likewise.
36399         * lib/xvasprintf.c: Likewise.
36400         * lib/xvasprintf.h: Likewise.
36401         * lib/yesno.c: Likewise.
36402         * lib/yesno.h: Likewise.
36403         * posix-modules: Likewise.
36404         * tests/test-alloca-opt.c: Likewise.
36405         * tests/test-arcfour.c: Likewise.
36406         * tests/test-arctwo.c: Likewise.
36407         * tests/test-argmatch.c: Likewise.
36408         * tests/test-argp-2.sh: Likewise.
36409         * tests/test-argp.c: Likewise.
36410         * tests/test-arpa_inet.c: Likewise.
36411         * tests/test-array_list.c: Likewise.
36412         * tests/test-array_oset.c: Likewise.
36413         * tests/test-atexit.c: Likewise.
36414         * tests/test-avltree_list.c: Likewise.
36415         * tests/test-avltree_oset.c: Likewise.
36416         * tests/test-avltreehash_list.c: Likewise.
36417         * tests/test-base64.c: Likewise.
36418         * tests/test-binary-io.c: Likewise.
36419         * tests/test-byteswap.c: Likewise.
36420         * tests/test-c-ctype.c: Likewise.
36421         * tests/test-c-strcasecmp.c: Likewise.
36422         * tests/test-c-strcasestr.c: Likewise.
36423         * tests/test-c-strncasecmp.c: Likewise.
36424         * tests/test-c-strstr.c: Likewise.
36425         * tests/test-canonicalize-lgpl.c: Likewise.
36426         * tests/test-canonicalize.c: Likewise.
36427         * tests/test-carray_list.c: Likewise.
36428         * tests/test-ceilf.c: Likewise.
36429         * tests/test-ceill.c: Likewise.
36430         * tests/test-count-one-bits.c: Likewise.
36431         * tests/test-crc.c: Likewise.
36432         * tests/test-dirname.c: Likewise.
36433         * tests/test-fbufmode.c: Likewise.
36434         * tests/test-fcntl.c: Likewise.
36435         * tests/test-fflush.c: Likewise.
36436         * tests/test-floorf.c: Likewise.
36437         * tests/test-floorl.c: Likewise.
36438         * tests/test-fopen.c: Likewise.
36439         * tests/test-fprintf-posix.c: Likewise.
36440         * tests/test-fprintf-posix.h: Likewise.
36441         * tests/test-fpurge.c: Likewise.
36442         * tests/test-freadable.c: Likewise.
36443         * tests/test-freadahead.c: Likewise.
36444         * tests/test-freading.c: Likewise.
36445         * tests/test-freopen.c: Likewise.
36446         * tests/test-frexp.c: Likewise.
36447         * tests/test-frexpl.c: Likewise.
36448         * tests/test-fseek.c: Likewise.
36449         * tests/test-fseeko.c: Likewise.
36450         * tests/test-fseterr.c: Likewise.
36451         * tests/test-fstrcmp.c: Likewise.
36452         * tests/test-ftell.c: Likewise.
36453         * tests/test-ftello.c: Likewise.
36454         * tests/test-fwritable.c: Likewise.
36455         * tests/test-fwriting.c: Likewise.
36456         * tests/test-getaddrinfo.c: Likewise.
36457         * tests/test-getpass.c: Likewise.
36458         * tests/test-gettimeofday.c: Likewise.
36459         * tests/test-hmac-md5.c: Likewise.
36460         * tests/test-hmac-sha1.c: Likewise.
36461         * tests/test-iconv.c: Likewise.
36462         * tests/test-iconvme.c: Likewise.
36463         * tests/test-inttypes.c: Likewise.
36464         * tests/test-isnan.c: Likewise.
36465         * tests/test-isnanf.c: Likewise.
36466         * tests/test-isnanl-nolibm.c: Likewise.
36467         * tests/test-isnanl.c: Likewise.
36468         * tests/test-isnanl.h: Likewise.
36469         * tests/test-ldexpl.c: Likewise.
36470         * tests/test-linked_list.c: Likewise.
36471         * tests/test-linkedhash_list.c: Likewise.
36472         * tests/test-locale.c: Likewise.
36473         * tests/test-localename.c: Likewise.
36474         * tests/test-lock.c: Likewise.
36475         * tests/test-lseek.c: Likewise.
36476         * tests/test-malloca.c: Likewise.
36477         * tests/test-math.c: Likewise.
36478         * tests/test-mbscasecmp.c: Likewise.
36479         * tests/test-mbscasestr1.c: Likewise.
36480         * tests/test-mbscasestr2.c: Likewise.
36481         * tests/test-mbscasestr3.c: Likewise.
36482         * tests/test-mbscasestr4.c: Likewise.
36483         * tests/test-mbschr.c: Likewise.
36484         * tests/test-mbscspn.c: Likewise.
36485         * tests/test-mbsncasecmp.c: Likewise.
36486         * tests/test-mbspbrk.c: Likewise.
36487         * tests/test-mbspcasecmp.c: Likewise.
36488         * tests/test-mbsrchr.c: Likewise.
36489         * tests/test-mbsspn.c: Likewise.
36490         * tests/test-mbsstr1.c: Likewise.
36491         * tests/test-mbsstr2.c: Likewise.
36492         * tests/test-mbsstr3.c: Likewise.
36493         * tests/test-md5.c: Likewise.
36494         * tests/test-memmem.c: Likewise.
36495         * tests/test-netinet_in.c: Likewise.
36496         * tests/test-open.c: Likewise.
36497         * tests/test-printf-frexp.c: Likewise.
36498         * tests/test-printf-frexpl.c: Likewise.
36499         * tests/test-printf-posix.c: Likewise.
36500         * tests/test-printf-posix.h: Likewise.
36501         * tests/test-rbtree_list.c: Likewise.
36502         * tests/test-rbtree_oset.c: Likewise.
36503         * tests/test-rbtreehash_list.c: Likewise.
36504         * tests/test-read-file.c: Likewise.
36505         * tests/test-rijndael.c: Likewise.
36506         * tests/test-search.c: Likewise.
36507         * tests/test-signbit.c: Likewise.
36508         * tests/test-sleep.c: Likewise.
36509         * tests/test-snprintf-posix.c: Likewise.
36510         * tests/test-snprintf-posix.h: Likewise.
36511         * tests/test-snprintf.c: Likewise.
36512         * tests/test-sprintf-posix.c: Likewise.
36513         * tests/test-sprintf-posix.h: Likewise.
36514         * tests/test-stat-time.c: Likewise.
36515         * tests/test-stdbool.c: Likewise.
36516         * tests/test-stdint.c: Likewise.
36517         * tests/test-stdio.c: Likewise.
36518         * tests/test-stdlib.c: Likewise.
36519         * tests/test-stpncpy.c: Likewise.
36520         * tests/test-strcasestr.c: Likewise.
36521         * tests/test-striconv.c: Likewise.
36522         * tests/test-striconveh.c: Likewise.
36523         * tests/test-striconveha.c: Likewise.
36524         * tests/test-string.c: Likewise.
36525         * tests/test-sys_select.c: Likewise.
36526         * tests/test-sys_socket.c: Likewise.
36527         * tests/test-sys_stat.c: Likewise.
36528         * tests/test-sys_time.c: Likewise.
36529         * tests/test-sysexits.c: Likewise.
36530         * tests/test-time.c: Likewise.
36531         * tests/test-tls.c: Likewise.
36532         * tests/test-trunc.c: Likewise.
36533         * tests/test-truncf.c: Likewise.
36534         * tests/test-truncl.c: Likewise.
36535         * tests/test-unistd.c: Likewise.
36536         * tests/test-vasnprintf-posix.c: Likewise.
36537         * tests/test-vasnprintf-posix2.c: Likewise.
36538         * tests/test-vasnprintf.c: Likewise.
36539         * tests/test-vasprintf-posix.c: Likewise.
36540         * tests/test-vasprintf.c: Likewise.
36541         * tests/test-verify.c: Likewise.
36542         * tests/test-vfprintf-posix.c: Likewise.
36543         * tests/test-vprintf-posix.c: Likewise.
36544         * tests/test-vsnprintf-posix.c: Likewise.
36545         * tests/test-vsnprintf.c: Likewise.
36546         * tests/test-vsprintf-posix.c: Likewise.
36547         * tests/test-wchar.c: Likewise.
36548         * tests/test-wctype.c: Likewise.
36549         * tests/test-wcwidth.c: Likewise.
36550         * tests/test-xstrtol.c: Likewise.
36551         * tests/test-xvasprintf.c: Likewise.
36552         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
36553         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
36554         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
36555         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
36556         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
36557         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
36558         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
36559         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
36560         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
36561         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
36562         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
36563         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
36564         * tests/uniname/test-uninames.c: Likewise.
36565         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
36566         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
36567         * tests/unistdio/test-u16-printf1.h: Likewise.
36568         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
36569         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
36570         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
36571         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
36572         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
36573         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
36574         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
36575         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
36576         * tests/unistdio/test-u32-printf1.h: Likewise.
36577         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
36578         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
36579         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
36580         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
36581         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
36582         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
36583         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
36584         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
36585         * tests/unistdio/test-u8-printf1.h: Likewise.
36586         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
36587         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
36588         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
36589         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
36590         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
36591         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
36592         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
36593         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
36594         * tests/unistdio/test-ulc-printf1.h: Likewise.
36595         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
36596         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
36597         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
36598         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
36599         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
36600         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
36601         * tests/uniwidth/test-u16-strwidth.c: Likewise.
36602         * tests/uniwidth/test-u16-width.c: Likewise.
36603         * tests/uniwidth/test-u32-strwidth.c: Likewise.
36604         * tests/uniwidth/test-u32-width.c: Likewise.
36605         * tests/uniwidth/test-u8-strwidth.c: Likewise.
36606         * tests/uniwidth/test-u8-width.c: Likewise.
36607         * tests/uniwidth/test-uc_width.c: Likewise.
36608         * config/srclist-update: Likewise.
36609         (fixlicense): Update to GPLv3+.
36610
36611         Change copyright notice from LGPLv2.1+ to LGPLv3+.
36612         * tests/test-tsearch.c: Change copyright notice.
36613
36614         Change copyright notice from LGPLv2.0+ to LGPLv3+.
36615         * lib/c-strcaseeq.h: Change copyright notice.
36616         * lib/streq.h: Likewise.
36617         * lib/uniconv.h: Likewise.
36618         * lib/uniconv/u-conv-from-enc.h: Likewise.
36619         * lib/uniconv/u-conv-to-enc.h: Likewise.
36620         * lib/uniconv/u-strconv-from-enc.h: Likewise.
36621         * lib/uniconv/u-strconv-to-enc.h: Likewise.
36622         * lib/uniconv/u16-conv-from-enc.c: Likewise.
36623         * lib/uniconv/u16-conv-to-enc.c: Likewise.
36624         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
36625         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
36626         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
36627         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
36628         * lib/uniconv/u32-conv-from-enc.c: Likewise.
36629         * lib/uniconv/u32-conv-to-enc.c: Likewise.
36630         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
36631         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
36632         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
36633         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
36634         * lib/uniconv/u8-conv-from-enc.c: Likewise.
36635         * lib/uniconv/u8-conv-to-enc.c: Likewise.
36636         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
36637         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
36638         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
36639         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
36640         * lib/uniname.h: Likewise.
36641         * lib/uniname/uniname.c: Likewise.
36642         * lib/unistdio.h: Likewise.
36643         * lib/unistdio/u-asnprintf.h: Likewise.
36644         * lib/unistdio/u-asprintf.h: Likewise.
36645         * lib/unistdio/u-printf-args.c: Likewise.
36646         * lib/unistdio/u-printf-args.h: Likewise.
36647         * lib/unistdio/u-printf-parse.h: Likewise.
36648         * lib/unistdio/u-snprintf.h: Likewise.
36649         * lib/unistdio/u-sprintf.h: Likewise.
36650         * lib/unistdio/u-vasprintf.h: Likewise.
36651         * lib/unistdio/u-vsnprintf.h: Likewise.
36652         * lib/unistdio/u-vsprintf.h: Likewise.
36653         * lib/unistdio/u16-asnprintf.c: Likewise.
36654         * lib/unistdio/u16-asprintf.c: Likewise.
36655         * lib/unistdio/u16-printf-parse.c: Likewise.
36656         * lib/unistdio/u16-snprintf.c: Likewise.
36657         * lib/unistdio/u16-sprintf.c: Likewise.
36658         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
36659         * lib/unistdio/u16-u16-asprintf.c: Likewise.
36660         * lib/unistdio/u16-u16-snprintf.c: Likewise.
36661         * lib/unistdio/u16-u16-sprintf.c: Likewise.
36662         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
36663         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
36664         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
36665         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
36666         * lib/unistdio/u16-vasnprintf.c: Likewise.
36667         * lib/unistdio/u16-vasprintf.c: Likewise.
36668         * lib/unistdio/u16-vsnprintf.c: Likewise.
36669         * lib/unistdio/u16-vsprintf.c: Likewise.
36670         * lib/unistdio/u32-asnprintf.c: Likewise.
36671         * lib/unistdio/u32-asprintf.c: Likewise.
36672         * lib/unistdio/u32-printf-parse.c: Likewise.
36673         * lib/unistdio/u32-snprintf.c: Likewise.
36674         * lib/unistdio/u32-sprintf.c: Likewise.
36675         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
36676         * lib/unistdio/u32-u32-asprintf.c: Likewise.
36677         * lib/unistdio/u32-u32-snprintf.c: Likewise.
36678         * lib/unistdio/u32-u32-sprintf.c: Likewise.
36679         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
36680         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
36681         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
36682         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
36683         * lib/unistdio/u32-vasnprintf.c: Likewise.
36684         * lib/unistdio/u32-vasprintf.c: Likewise.
36685         * lib/unistdio/u32-vsnprintf.c: Likewise.
36686         * lib/unistdio/u32-vsprintf.c: Likewise.
36687         * lib/unistdio/u8-asnprintf.c: Likewise.
36688         * lib/unistdio/u8-asprintf.c: Likewise.
36689         * lib/unistdio/u8-printf-parse.c: Likewise.
36690         * lib/unistdio/u8-snprintf.c: Likewise.
36691         * lib/unistdio/u8-sprintf.c: Likewise.
36692         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
36693         * lib/unistdio/u8-u8-asprintf.c: Likewise.
36694         * lib/unistdio/u8-u8-snprintf.c: Likewise.
36695         * lib/unistdio/u8-u8-sprintf.c: Likewise.
36696         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
36697         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
36698         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
36699         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
36700         * lib/unistdio/u8-vasnprintf.c: Likewise.
36701         * lib/unistdio/u8-vasprintf.c: Likewise.
36702         * lib/unistdio/u8-vsnprintf.c: Likewise.
36703         * lib/unistdio/u8-vsprintf.c: Likewise.
36704         * lib/unistdio/ulc-asnprintf.c: Likewise.
36705         * lib/unistdio/ulc-asprintf.c: Likewise.
36706         * lib/unistdio/ulc-printf-parse.c: Likewise.
36707         * lib/unistdio/ulc-snprintf.c: Likewise.
36708         * lib/unistdio/ulc-sprintf.c: Likewise.
36709         * lib/unistdio/ulc-vasnprintf.c: Likewise.
36710         * lib/unistdio/ulc-vasprintf.c: Likewise.
36711         * lib/unistdio/ulc-vsnprintf.c: Likewise.
36712         * lib/unistdio/ulc-vsprintf.c: Likewise.
36713         * lib/unistr.h: Likewise.
36714         * lib/unistr/u-cpy-alloc.h: Likewise.
36715         * lib/unistr/u-cpy.h: Likewise.
36716         * lib/unistr/u-endswith.h: Likewise.
36717         * lib/unistr/u-move.h: Likewise.
36718         * lib/unistr/u-set.h: Likewise.
36719         * lib/unistr/u-startswith.h: Likewise.
36720         * lib/unistr/u-stpcpy.h: Likewise.
36721         * lib/unistr/u-stpncpy.h: Likewise.
36722         * lib/unistr/u-strcat.h: Likewise.
36723         * lib/unistr/u-strcpy.h: Likewise.
36724         * lib/unistr/u-strcspn.h: Likewise.
36725         * lib/unistr/u-strdup.h: Likewise.
36726         * lib/unistr/u-strlen.h: Likewise.
36727         * lib/unistr/u-strncat.h: Likewise.
36728         * lib/unistr/u-strncpy.h: Likewise.
36729         * lib/unistr/u-strnlen.h: Likewise.
36730         * lib/unistr/u-strpbrk.h: Likewise.
36731         * lib/unistr/u-strspn.h: Likewise.
36732         * lib/unistr/u-strstr.h: Likewise.
36733         * lib/unistr/u-strtok.h: Likewise.
36734         * lib/unistr/u16-check.c: Likewise.
36735         * lib/unistr/u16-chr.c: Likewise.
36736         * lib/unistr/u16-cmp.c: Likewise.
36737         * lib/unistr/u16-cpy-alloc.c: Likewise.
36738         * lib/unistr/u16-cpy.c: Likewise.
36739         * lib/unistr/u16-endswith.c: Likewise.
36740         * lib/unistr/u16-mblen.c: Likewise.
36741         * lib/unistr/u16-mbsnlen.c: Likewise.
36742         * lib/unistr/u16-mbtouc-aux.c: Likewise.
36743         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
36744         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
36745         * lib/unistr/u16-mbtouc.c: Likewise.
36746         * lib/unistr/u16-mbtoucr.c: Likewise.
36747         * lib/unistr/u16-move.c: Likewise.
36748         * lib/unistr/u16-next.c: Likewise.
36749         * lib/unistr/u16-prev.c: Likewise.
36750         * lib/unistr/u16-set.c: Likewise.
36751         * lib/unistr/u16-startswith.c: Likewise.
36752         * lib/unistr/u16-stpcpy.c: Likewise.
36753         * lib/unistr/u16-stpncpy.c: Likewise.
36754         * lib/unistr/u16-strcat.c: Likewise.
36755         * lib/unistr/u16-strchr.c: Likewise.
36756         * lib/unistr/u16-strcmp.c: Likewise.
36757         * lib/unistr/u16-strcpy.c: Likewise.
36758         * lib/unistr/u16-strcspn.c: Likewise.
36759         * lib/unistr/u16-strdup.c: Likewise.
36760         * lib/unistr/u16-strlen.c: Likewise.
36761         * lib/unistr/u16-strmblen.c: Likewise.
36762         * lib/unistr/u16-strmbtouc.c: Likewise.
36763         * lib/unistr/u16-strncat.c: Likewise.
36764         * lib/unistr/u16-strncmp.c: Likewise.
36765         * lib/unistr/u16-strncpy.c: Likewise.
36766         * lib/unistr/u16-strnlen.c: Likewise.
36767         * lib/unistr/u16-strpbrk.c: Likewise.
36768         * lib/unistr/u16-strrchr.c: Likewise.
36769         * lib/unistr/u16-strspn.c: Likewise.
36770         * lib/unistr/u16-strstr.c: Likewise.
36771         * lib/unistr/u16-strtok.c: Likewise.
36772         * lib/unistr/u16-to-u32.c: Likewise.
36773         * lib/unistr/u16-to-u8.c: Likewise.
36774         * lib/unistr/u16-uctomb-aux.c: Likewise.
36775         * lib/unistr/u16-uctomb.c: Likewise.
36776         * lib/unistr/u32-check.c: Likewise.
36777         * lib/unistr/u32-chr.c: Likewise.
36778         * lib/unistr/u32-cmp.c: Likewise.
36779         * lib/unistr/u32-cpy-alloc.c: Likewise.
36780         * lib/unistr/u32-cpy.c: Likewise.
36781         * lib/unistr/u32-endswith.c: Likewise.
36782         * lib/unistr/u32-mblen.c: Likewise.
36783         * lib/unistr/u32-mbsnlen.c: Likewise.
36784         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
36785         * lib/unistr/u32-mbtouc.c: Likewise.
36786         * lib/unistr/u32-mbtoucr.c: Likewise.
36787         * lib/unistr/u32-move.c: Likewise.
36788         * lib/unistr/u32-next.c: Likewise.
36789         * lib/unistr/u32-prev.c: Likewise.
36790         * lib/unistr/u32-set.c: Likewise.
36791         * lib/unistr/u32-startswith.c: Likewise.
36792         * lib/unistr/u32-stpcpy.c: Likewise.
36793         * lib/unistr/u32-stpncpy.c: Likewise.
36794         * lib/unistr/u32-strcat.c: Likewise.
36795         * lib/unistr/u32-strchr.c: Likewise.
36796         * lib/unistr/u32-strcmp.c: Likewise.
36797         * lib/unistr/u32-strcpy.c: Likewise.
36798         * lib/unistr/u32-strcspn.c: Likewise.
36799         * lib/unistr/u32-strdup.c: Likewise.
36800         * lib/unistr/u32-strlen.c: Likewise.
36801         * lib/unistr/u32-strmblen.c: Likewise.
36802         * lib/unistr/u32-strmbtouc.c: Likewise.
36803         * lib/unistr/u32-strncat.c: Likewise.
36804         * lib/unistr/u32-strncmp.c: Likewise.
36805         * lib/unistr/u32-strncpy.c: Likewise.
36806         * lib/unistr/u32-strnlen.c: Likewise.
36807         * lib/unistr/u32-strpbrk.c: Likewise.
36808         * lib/unistr/u32-strrchr.c: Likewise.
36809         * lib/unistr/u32-strspn.c: Likewise.
36810         * lib/unistr/u32-strstr.c: Likewise.
36811         * lib/unistr/u32-strtok.c: Likewise.
36812         * lib/unistr/u32-to-u16.c: Likewise.
36813         * lib/unistr/u32-to-u8.c: Likewise.
36814         * lib/unistr/u32-uctomb.c: Likewise.
36815         * lib/unistr/u8-check.c: Likewise.
36816         * lib/unistr/u8-chr.c: Likewise.
36817         * lib/unistr/u8-cmp.c: Likewise.
36818         * lib/unistr/u8-cpy-alloc.c: Likewise.
36819         * lib/unistr/u8-cpy.c: Likewise.
36820         * lib/unistr/u8-endswith.c: Likewise.
36821         * lib/unistr/u8-mblen.c: Likewise.
36822         * lib/unistr/u8-mbsnlen.c: Likewise.
36823         * lib/unistr/u8-mbtouc-aux.c: Likewise.
36824         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
36825         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
36826         * lib/unistr/u8-mbtouc.c: Likewise.
36827         * lib/unistr/u8-mbtoucr.c: Likewise.
36828         * lib/unistr/u8-move.c: Likewise.
36829         * lib/unistr/u8-next.c: Likewise.
36830         * lib/unistr/u8-prev.c: Likewise.
36831         * lib/unistr/u8-set.c: Likewise.
36832         * lib/unistr/u8-startswith.c: Likewise.
36833         * lib/unistr/u8-stpcpy.c: Likewise.
36834         * lib/unistr/u8-stpncpy.c: Likewise.
36835         * lib/unistr/u8-strcat.c: Likewise.
36836         * lib/unistr/u8-strchr.c: Likewise.
36837         * lib/unistr/u8-strcmp.c: Likewise.
36838         * lib/unistr/u8-strcpy.c: Likewise.
36839         * lib/unistr/u8-strcspn.c: Likewise.
36840         * lib/unistr/u8-strdup.c: Likewise.
36841         * lib/unistr/u8-strlen.c: Likewise.
36842         * lib/unistr/u8-strmblen.c: Likewise.
36843         * lib/unistr/u8-strmbtouc.c: Likewise.
36844         * lib/unistr/u8-strncat.c: Likewise.
36845         * lib/unistr/u8-strncmp.c: Likewise.
36846         * lib/unistr/u8-strncpy.c: Likewise.
36847         * lib/unistr/u8-strnlen.c: Likewise.
36848         * lib/unistr/u8-strpbrk.c: Likewise.
36849         * lib/unistr/u8-strrchr.c: Likewise.
36850         * lib/unistr/u8-strspn.c: Likewise.
36851         * lib/unistr/u8-strstr.c: Likewise.
36852         * lib/unistr/u8-strtok.c: Likewise.
36853         * lib/unistr/u8-to-u16.c: Likewise.
36854         * lib/unistr/u8-to-u32.c: Likewise.
36855         * lib/unistr/u8-uctomb-aux.c: Likewise.
36856         * lib/unistr/u8-uctomb.c: Likewise.
36857         * lib/unitypes.h: Likewise.
36858         * lib/uniwidth.h: Likewise.
36859         * lib/uniwidth/cjk.h: Likewise.
36860         * lib/uniwidth/u16-strwidth.c: Likewise.
36861         * lib/uniwidth/u16-width.c: Likewise.
36862         * lib/uniwidth/u32-strwidth.c: Likewise.
36863         * lib/uniwidth/u32-width.c: Likewise.
36864         * lib/uniwidth/u8-strwidth.c: Likewise.
36865         * lib/uniwidth/u8-width.c: Likewise.
36866         * lib/uniwidth/width.c: Likewise.
36867
36868 2007-10-07  Bruno Haible  <bruno@clisp.org>
36869
36870         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
36871         The file is still under LGPL (see modules/inttypes).
36872
36873 2007-10-06  Bruno Haible  <bruno@clisp.org>
36874
36875         * modules/trunc (Dependencies): Add 'extensions'.
36876         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
36877         Reported by Ben Pfaff <blp@gnu.org>.
36878
36879 2007-10-06  Bruno Haible  <bruno@clisp.org>
36880
36881         * modules/freopen-tests: New file.
36882         * tests/test-freopen.c: New file.
36883
36884         * modules/fopen-tests: New file.
36885         * tests/test-fopen.c: New file.
36886
36887         * modules/fopen: New file.
36888         * lib/fopen.c: New file.
36889         * m4/fopen.m4: New file.
36890         * modules/freopen: New file.
36891         * lib/freopen.c: New file.
36892         * m4/freopen.m4: New file.
36893         * lib/stdio.in.h (fopen, freopen): New declarations.
36894         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
36895         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
36896         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
36897         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
36898         * doc/functions/fopen.texi: Mention the 'fopen' module.
36899         * doc/functions/freopen.texi: Mention the 'freopen' module.
36900
36901 2007-10-06  Bruno Haible  <bruno@clisp.org>
36902
36903         * modules/open-tests: New file.
36904         * tests/test-open.c: New file.
36905
36906         * modules/open: New file.
36907         * lib/open.c: New file.
36908         * m4/open.m4: New file.
36909         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
36910         lib/open.c does.
36911         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
36912         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
36913         macros.
36914         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
36915         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
36916         REPLACE_OPEN.
36917         * doc/functions/open.texi: Mention the 'open' module.
36918
36919 2007-10-04  Bruno Haible  <bruno@clisp.org>
36920
36921         * modules/ceill-tests: New file.
36922         * tests/test-ceill.c: New file.
36923
36924         * modules/ceill: New file.
36925         * lib/ceill.c: Replace entire file.
36926         * m4/ceill.m4: New file.
36927         * lib/math.in.h (ceill): Replace declaration.
36928         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
36929         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
36930         * doc/functions/ceill.texi: Mention the 'ceill' module.
36931         * modules/mathl (Files): Remove lib/ceill.c.
36932         (Depends-on): Add ceill.
36933
36934 2007-10-04  Bruno Haible  <bruno@clisp.org>
36935
36936         * modules/ceilf-tests: New file.
36937         * tests/test-ceilf.c: New file.
36938
36939         * modules/ceilf: New file.
36940         * lib/ceil.c: New file.
36941         * lib/ceilf.c: New file.
36942         * m4/ceilf.m4: New file.
36943         * lib/math.in.h (ceilf): New declaration.
36944         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
36945         HAVE_DECL_CEILF.
36946         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
36947         HAVE_DECL_CEILF.
36948         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
36949
36950 2007-10-04  Bruno Haible  <bruno@clisp.org>
36951
36952         * modules/floorl-tests: New file.
36953         * tests/test-floorl.c: New file.
36954
36955         * modules/floorl: New file.
36956         * lib/floorl.c: Replace entire file.
36957         * m4/floorl.m4: New file.
36958         * lib/math.in.h (floorl): Replace declaration.
36959         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
36960         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
36961         * doc/functions/floorl.texi: Mention the 'floorl' module.
36962         * modules/mathl (Files): Remove lib/floorl.c.
36963         (Depends-on): Add floorl.
36964
36965 2007-10-04  Bruno Haible  <bruno@clisp.org>
36966
36967         * modules/floorf-tests: New file.
36968         * tests/test-floorf.c: New file.
36969
36970         * modules/floorf: New file.
36971         * lib/floor.c: New file.
36972         * lib/floorf.c: New file.
36973         * m4/floorf.m4: New file.
36974         * lib/math.in.h (floorf): New declaration.
36975         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
36976         HAVE_DECL_FLOORF.
36977         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
36978         HAVE_DECL_FLOORF.
36979         * doc/functions/floorf.texi: Mention the 'floorf' module.
36980
36981 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
36982             Bruno Haible  <bruno@clisp.org>
36983
36984         Advertise for the Git server instead of the CVS server.
36985         * doc/gnulib-intro.texi (Steady Development): Mention the Git
36986         repository instead of the CVS one.
36987         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
36988         about all VCS systems generically.
36989         * doc/gnulib.texi (Introduction): Capitalize `Git'.
36990
36991 2007-10-04  Bruno Haible  <bruno@clisp.org>
36992
36993         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
36994         means.
36995         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
36996
36997 2007-10-04  Bruno Haible  <bruno@clisp.org>
36998
36999         * modules/truncl-tests: New file.
37000         * tests/test-truncl.c: New file.
37001
37002         * modules/truncl: New file.
37003         * lib/truncl.c: New file.
37004         * m4/truncl.m4: New file.
37005         * lib/math.in.h (truncl): New declaration.
37006         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
37007         HAVE_DECL_TRUNCL.
37008         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
37009         HAVE_DECL_TRUNCL.
37010         * doc/functions/truncl.texi: Mention the 'truncl' module.
37011
37012 2007-10-04  Bruno Haible  <bruno@clisp.org>
37013
37014         * modules/truncf-tests: New file.
37015         * tests/test-truncf.c: New file.
37016
37017         * modules/truncf: New file.
37018         * lib/trunc.c: Make paramerizable through USE_* macros.
37019         * lib/truncf.c: New file.
37020         * m4/truncf.m4: New file.
37021         * lib/math.in.h (truncf): New declaration.
37022         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
37023         HAVE_DECL_TRUNCF.
37024         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
37025         HAVE_DECL_TRUNCF.
37026         * doc/functions/truncf.texi: Mention the 'truncf' module.
37027
37028 2007-10-03  Bruno Haible  <bruno@clisp.org>
37029
37030         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
37031         augmentation also for tests modules.
37032         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
37033         * modules/atexit-tests (Makefile.am): Likewise.
37034         * modules/binary-io-tests (Makefile.am): Likewise.
37035         * modules/c-strcase-tests (Makefile.am): Likewise.
37036         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
37037         * modules/canonicalize-tests (Makefile.am): Likewise.
37038         * modules/closein-tests (Makefile.am): Likewise.
37039         * modules/fprintf-posix-tests (Makefile.am): Likewise.
37040         * modules/freadahead-tests (Makefile.am): Likewise.
37041         * modules/fseek-tests (Makefile.am): Likewise.
37042         * modules/fseeko-tests (Makefile.am): Likewise.
37043         * modules/ftell-tests (Makefile.am): Likewise.
37044         * modules/ftello-tests (Makefile.am): Likewise.
37045         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
37046         * modules/isnanl-tests (Makefile.am): Likewise.
37047         * modules/lseek-tests (Makefile.am): Likewise.
37048         * modules/mbscasecmp-tests (Makefile.am): Likewise.
37049         * modules/mbscasestr-tests (Makefile.am): Likewise.
37050         * modules/mbschr-tests (Makefile.am): Likewise.
37051         * modules/mbscspn-tests (Makefile.am): Likewise.
37052         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
37053         * modules/mbspbrk-tests (Makefile.am): Likewise.
37054         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
37055         * modules/mbsrchr-tests (Makefile.am): Likewise.
37056         * modules/mbsspn-tests (Makefile.am): Likewise.
37057         * modules/mbsstr-tests (Makefile.am): Likewise.
37058         * modules/printf-posix-tests (Makefile.am): Likewise.
37059         * modules/snprintf-posix-tests (Makefile.am): Likewise.
37060         * modules/sprintf-posix-tests (Makefile.am): Likewise.
37061         * modules/tsearch-tests (Makefile.am): Likewise.
37062         * modules/uniname/uniname-tests (Makefile.am): Likewise.
37063         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
37064         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
37065         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
37066         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
37067         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
37068         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
37069         * modules/vprintf-posix-tests (Makefile.am): Likewise.
37070         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
37071         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
37072         * modules/xstrtoimax-tests (Makefile.am): Likewise.
37073         * modules/xstrtol-tests (Makefile.am): Likewise.
37074         * modules/xstrtoumax-tests (Makefile.am): Likewise.
37075         * modules/yesno-tests (Makefile.am): Likewise.
37076
37077 2007-10-03  Bruno Haible  <bruno@clisp.org>
37078
37079         * modules/trunc-tests: New file.
37080         * tests/test-trunc.c: New file.
37081
37082         * modules/trunc: New file.
37083         * lib/trunc.c: New file.
37084         * m4/trunc.m4: New file.
37085         * lib/math.in.h (trunc): New declaration.
37086         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
37087         HAVE_DECL_TRUNC.
37088         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
37089         HAVE_DECL_TRUNC.
37090         * doc/functions/trunc.texi: Mention the 'trunc' module.
37091
37092 2007-10-03  Bruno Haible  <bruno@clisp.org>
37093
37094         * tests/test-fpending.c: New file, mostly copied
37095         from coreutils/lib/t-fpending.c.
37096         * modules/fpending-tests: New file.
37097
37098 2007-10-03  Bruno Haible  <bruno@clisp.org>
37099
37100         Port the stdio extensions to QNX (untested).
37101         * lib/fseterr.c (fseterr): Add support for QNX.
37102         * lib/fbufmode.c (fbufmode): Likewise.
37103         * lib/freadable.c (freadable): Likewise.
37104         * lib/fwritable.c (fwritable): Likewise.
37105         * lib/freading.c (freading): Likewise.
37106         * lib/fwriting.c (fwriting): Likewise.
37107         * lib/freadahead.c (freadahed): Likewise.
37108         * lib/fpurge.c (fpurge): Likewise.
37109         * lib/fseeko.c (rpl_fseeko): Likewise.
37110
37111 2007-10-03  Bruno Haible  <bruno@clisp.org>
37112             Jim Meyering  <jim@meyering.net>
37113             Eric Blake  <ebb9@byu.net>
37114
37115         * doc/relocatable.texi: Use @command instead of @program.
37116
37117 2007-10-02  Jim Meyering  <jim@meyering.net>
37118
37119         Perform one more "_.h" -> ".in.h" substitution.
37120         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
37121         instead of unistd_.h here, too.
37122
37123 2007-10-01  Bruno Haible  <bruno@clisp.org>
37124
37125         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
37126         Needed for the alloca-opt module.
37127
37128 2007-09-30  Bruno Haible  <bruno@clisp.org>
37129
37130         * lib/alloca.in.h: Renamed from lib/alloca_.h.
37131         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
37132         alloca_.h.
37133         * lib/argz.in.h: Renamed from lib/argz_.h.
37134         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
37135         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
37136         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
37137         byteswap_.h.
37138         * lib/dirent.in.h: Renamed from lib/dirent_.h.
37139         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
37140         dirent_.h.
37141         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
37142         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
37143         fcntl_.h.
37144         * lib/float.in.h: Renamed from lib/float_.h.
37145         * modules/float (Files, Makefile.am): Use float.in.h instead of
37146         float_.h.
37147         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
37148         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
37149         fnmatch_.h.
37150         * lib/getopt.in.h: Renamed from lib/getopt_.h.
37151         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
37152         getopt_.h.
37153         * lib/glob.in.h: Renamed from lib/glob_.h.
37154         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
37155         * lib/iconv.in.h: Renamed from lib/iconv_.h.
37156         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
37157         iconv_.h.
37158         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
37159         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
37160         inttypes_.h.
37161         * lib/locale.in.h: Renamed from lib/locale_.h.
37162         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
37163         locale_.h.
37164         * lib/math.in.h: Renamed from lib/math_.h.
37165         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
37166         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
37167         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
37168         of netinet_in_.h. Add dependency.
37169         * lib/poll.in.h: Renamed from lib/poll_.h.
37170         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
37171         * lib/search.in.h: Renamed from lib/search_.h.
37172         * modules/search (Files, Makefile.am): Use search.in.h instead of
37173         search_.h.
37174         * lib/signal.in.h: Renamed from lib/signal_.h.
37175         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
37176         _signal.h.
37177         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
37178         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
37179         stdbool_.h.
37180         * lib/stdint.in.h: Renamed from lib/stdint_.h.
37181         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
37182         stdint_.h.
37183         * lib/stdio.in.h: Renamed from lib/stdio_.h.
37184         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
37185         stdio_.h.
37186         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
37187         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
37188         stdlib_.h.
37189         * lib/string.in.h: Renamed from lib/string_.h.
37190         * modules/string (Files, Makefile.am): Use string.in.h instead of
37191         string_.h.
37192         * doc/gnulib-tool.texi (Initial import): Update.
37193         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
37194         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
37195         of sys_select_.h. Add dependency.
37196         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
37197         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
37198         of sys_socket_.h.
37199         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
37200         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
37201         sys_stat_.h.
37202         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
37203         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
37204         sys_time_.h.
37205         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
37206         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
37207         sysexits_.h.
37208         * lib/time.in.h: Renamed from lib/time_.h.
37209         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
37210         * lib/unistd.in.h: Renamed from lib/unistd_.h.
37211         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
37212         unistd_.h.
37213         * lib/wchar.in.h: Renamed from lib/wchar_.h.
37214         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
37215         wchar_.h.
37216         * lib/wctype.in.h: Renamed from lib/wctype_.h.
37217         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
37218         wctype_.h.
37219         * build-aux/bootstrap (slurp): Update.
37220         * lib/.cppi-disable: Update.
37221
37222 2007-09-30  Bruno Haible  <bruno@clisp.org>
37223
37224         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
37225         Needed on BeOS.
37226
37227 2007-09-30  Bruno Haible  <bruno@clisp.org>
37228
37229         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
37230
37231 2007-09-29  Bruno Haible  <bruno@clisp.org>
37232
37233         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
37234
37235 2007-09-29  Bruno Haible  <bruno@clisp.org>
37236
37237         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
37238         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
37239         * build-aux/install-reloc: Compile also areadlink.c.
37240         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
37241
37242 2007-09-29  Bruno Haible  <bruno@clisp.org>
37243
37244         * gnulib-tool (func_emit_initmacro_done): Indentation.
37245
37246 2007-09-29  Bruno Haible  <bruno@clisp.org>
37247
37248         * README: Add CVS checkout update instructions.
37249         Info from Bob Proulx <bob@proulx.com>.
37250
37251 2007-09-28  Eric Blake  <ebb9@byu.net>
37252
37253         Provide move-if-change.
37254         * build-aux/move-if-change: New file, based on best practice
37255         rather than any canonical upstream location.
37256
37257 2007-09-28  Jim Meyering  <jim@meyering.net>
37258
37259         Fix canonicalize loop-detection corner case.
37260         Do not attempt to stat the symlink values stored via seen_triple.
37261         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
37262         on linux-2.6.18, (but not 2.6.22).
37263         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
37264         triple_compare.  The former compares dev,ino,filename, while the latter
37265         would actually stat dirname(filename) when dev and ino were equal.
37266         * lib/hash-triple.c: Install <string.h>.
37267         (STREQ): Define.
37268         (triple_compare_ino_str): New function.
37269         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
37270
37271 2007-09-28  Eric Blake  <ebb9@byu.net>
37272
37273         Enforce that AC_REPLACE_FUNCS files exist.
37274         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
37275         override check for typos.
37276
37277         Fix test-closein on Solaris 10.
37278         * tests/test-closein.c (main): Don't assume stdin can be inherited
37279         closed on all systems.
37280         * tests/test-closein.sh: Likewise.
37281         Reported by Piotr Tarnowski.
37282
37283 2007-09-28  Jim Meyering  <jim@meyering.net>
37284
37285         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
37286
37287 2007-09-27  Jim Meyering  <jim@meyering.net>
37288
37289         canonicalize: Avoid a false-positive cycle failure.
37290         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
37291         Sort.  Remove cycle-check.
37292         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
37293         not cycle-check.h.
37294         (seen_triple): New function.
37295         (canonicalize_filename_mode): Use it instead of cycle-check.
37296         * tests/test-canonicalize.c: Add a test for this bug.
37297         * tests/test-canonicalize.sh: Set up and run the test.
37298
37299         New module, file-set, from coreutils.
37300         * modules/file-set: Define it.
37301         * lib/file-set.c, lib/file-set.h: Implement.
37302
37303         New module, hash-triple, from coreutils.
37304         * modules/hash-triple: Define it.
37305         * lib/hash-triple.c, lib/hash-triple.h: Implement.
37306
37307 2007-09-25  Eric Blake  <ebb9@byu.net>
37308
37309         Fix strerror on Interix.
37310         * lib/string_.h (strerror): Declare replacement.
37311         * doc/functions/strerror.texi (strerror): Document the Interix
37312         shortcoming.
37313         * modules/string (Makefile.am): Support new hooks.
37314         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
37315         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
37316         gl_FUNC_STRERROR_SEPARATE.
37317         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
37318         * lib/strerror.c (rpl_strerror): Provide replacement.
37319         * modules/strerror (Depends-on): Add string.
37320         (configure.ac): Detect use of module.
37321         * tests/test-strerror.c: New file.
37322         * modules/strerror-tests: New test module.
37323         * modules/argp (Depends-on): Add strerror.
37324         * modules/error (Depends-on): Likewise.
37325         Reported by Martin Koeppe.
37326
37327 2007-09-24  Bruno Haible  <bruno@clisp.org>
37328
37329         * README: Update git instructions.
37330
37331 2007-09-24  Eric Blake  <ebb9@byu.net>
37332
37333         Revert fpending breakage from 2007-09-08.
37334         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
37335         __fpending.c.
37336
37337 2007-09-24  Jim Meyering  <jim@meyering.net>
37338
37339         filenamecat.c: Add a test.
37340         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
37341         showing how the function works when DIR is the empty string.
37342
37343 2007-09-21  Simon Josefsson  <simon@josefsson.org>
37344
37345         * tests/test-canonicalize.sh: Turn on executable bit.
37346
37347 2007-09-19  Eric Blake  <ebb9@byu.net>
37348
37349         * README: Update CVS instructions.
37350
37351 2007-09-18  Bruno Haible  <bruno@clisp.org>
37352
37353         * modules/areadlink: New file.
37354         * lib/areadlink.h (areadlink): New declaration.
37355         * lib/areadlink.c: New file, based on lib/xreadlink.c.
37356
37357 2007-09-17  Jim Meyering  <jim@meyering.net>
37358
37359         * lib/savewd.c (ESTALE) [!defined]: Define.
37360         Reported to be required on Interix by Martin Koeppe.
37361
37362 2007-09-17  Bruno Haible  <bruno@clisp.org>
37363
37364         * gnulib-tool (func_version): Use $version.
37365
37366 2007-09-16  Bruno Haible  <bruno@clisp.org>
37367
37368         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
37369         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
37370         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
37371         Reported by Greg Schafer <gschafer@zip.com.au>.
37372
37373 2007-09-15  Bruno Haible  <bruno@clisp.org>
37374
37375         * gnulib-tool (sed): Try a little harder to make bash understand the
37376         alias.
37377         Reported by Bruce Korb <bruce.korb@gmail.com>.
37378
37379 2007-09-13  Eric Blake  <ebb9@byu.net>
37380
37381         * ChangeLog: Remove conflict markers.
37382
37383 2007-09-13  Simon Josefsson  <simon@josefsson.org>
37384
37385         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
37386         Reported by Bruno Haible <bruno@clisp.org>.
37387
37388 2007-09-12  Bruno Haible  <bruno@clisp.org>
37389
37390         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
37391         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
37392         is not defined.
37393
37394 2007-09-12  Eric Blake  <ebb9@byu.net>
37395
37396         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
37397         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
37398         Autoconf definition.
37399         * modules/euidaccess (Depends-on): Add extensions, for
37400         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
37401         * modules/fnmatch (Depends-on): Likewise.
37402         * modules/getaddrinfo (Depends-on): Likewise.
37403         * modules/getdelim (Depends-on): Likewise.
37404         * modules/getline (Depends-on): Likewise.
37405         * modules/getsubopt (Depends-on): Likewise.
37406         * modules/gettext (Depends-on): Likewise.
37407         * modules/group-member (Depends-on): Likewise.
37408         * modules/mbchar (Depends-on): Likewise.
37409         * modules/memmem (Depends-on): Likewise.
37410         * modules/mempcpy (Depends-on): Likewise.
37411         * modules/memrchr (Depends-on): Likewise.
37412         * modules/pagealign_alloc (Depends-on): Likewise.
37413         * modules/readutmp (Depends-on): Likewise.
37414         * modules/stpcpy (Depends-on): Likewise.
37415         * modules/stpncpy (Depends-on): Likewise.
37416         * modules/strchrnul (Depends-on): Likewise.
37417         * modules/strndup (Depends-on): Likewise.
37418         * modules/strsep (Depends-on): Likewise.
37419         * modules/strverscmp (Depends-on): Likewise.
37420         * modules/vasprintf (Depends-on): Likewise.
37421         * modules/wcwidth (Depends-on): Likewise.
37422         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
37423         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
37424         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
37425         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
37426         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
37427         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
37428         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
37429         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
37430         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
37431         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
37432         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
37433         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
37434         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
37435         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
37436         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
37437         * m4/readutmp.m4 (gl_READUTMP): Likewise.
37438         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
37439         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
37440         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
37441         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
37442         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
37443         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
37444         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
37445         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
37446         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
37447         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
37448         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
37449         so that lock.m4 can be used in gettext without extensions module.
37450
37451 2007-09-11  Bruno Haible  <bruno@clisp.org>
37452
37453         * m4/isc-posix.m4: Remove file.
37454         Suggested by Eric Blake.
37455
37456 2007-09-11  Eric Blake  <ebb9@byu.net>
37457
37458         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
37459
37460 2007-09-10  Bruno Haible  <bruno@clisp.org>
37461
37462         * posix-modules: Fix typo in error message.
37463         Reported by Matt <mkraai@beckman.com>.
37464
37465 2007-09-09  Bruno Haible  <bruno@clisp.org>
37466
37467         * doc/functions/getdelim.texi: Update list of platforms lacking the
37468         function.
37469         * doc/functions/getline.texi: Likewise.
37470
37471 2007-09-09  Jim Meyering  <jim@meyering.net>
37472
37473         * lib/hash.c (hash_initialize): Detect calloc failure.
37474         Reported by Bruno Haible.
37475
37476 2007-09-09  Bruno Haible  <bruno@clisp.org>
37477
37478         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
37479         malloc or realloc fails.
37480
37481 2007-09-09  Bruno Haible  <bruno@clisp.org>
37482
37483         * modules/getcwd (Depends-on): Add malloc-posix.
37484         * modules/glob (Depends-on): Likewise.
37485         * modules/putenv (Depends-on): Likewise.
37486         * modules/strdup (Depends-on): Likewise.
37487         * modules/getdelim (Depends-on): Add realloc-posix.
37488         * modules/read-file (Depends-on): Likewise.
37489
37490 2007-09-09  Bruno Haible  <bruno@clisp.org>
37491
37492         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
37493         (gl_FUNC_MALLOC_POSIX): Require it.
37494         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
37495         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
37496         * modules/realloc (Files): Add m4/malloc.m4.
37497         * modules/calloc (Files): Likewise.
37498
37499 2007-09-09  Bruno Haible  <bruno@clisp.org>
37500
37501         * modules/malloc-posix: New file.
37502         * modules/malloc (Depends-on): Add malloc-posix.
37503         * lib/malloc.c: Include errno.h.
37504         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
37505         and a POSIX-compatible malloc into a single function. Set ENOMEM
37506         when returning NULL.
37507         * m4/malloc.m4: New file.
37508         * doc/functions/malloc.texi: Mention the malloc-posix module.
37509         * lib/stdlib_.h (malloc): New declaration.
37510         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
37511         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
37512         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
37513         and HAVE_MALLOC_POSIX.
37514
37515 2007-09-09  Bruno Haible  <bruno@clisp.org>
37516
37517         * modules/realloc-posix: New file.
37518         * modules/realloc (Depends-on): Add realloc-posix.
37519         * lib/realloc.c: Include errno.h.
37520         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
37521         and a POSIX-compatible realloc into a single function. Set ENOMEM
37522         when returning NULL.
37523         * m4/realloc.m4: New file.
37524         * doc/functions/realloc.texi: Mention the realloc-posix module.
37525         * lib/stdlib_.h (realloc): New declaration.
37526         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
37527         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
37528         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
37529         and HAVE_REALLOC_POSIX.
37530
37531 2007-09-09  Bruno Haible  <bruno@clisp.org>
37532
37533         * modules/calloc-posix: New file.
37534         * modules/calloc (Depends-on): Add calloc-posix.
37535         * lib/calloc.c: Include errno.h.
37536         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
37537         and a POSIX-compatible calloc into a single function. Set ENOMEM
37538         when returning NULL.
37539         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
37540         * doc/functions/calloc.texi: Mention the calloc-posix module.
37541         * lib/stdlib_.h (calloc): New declaration.
37542         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
37543         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
37544         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
37545         and HAVE_CALLOC_POSIX.
37546
37547 2007-09-09  Bruno Haible  <bruno@clisp.org>
37548
37549         Allow for modules to show an arbitrary notice.
37550         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
37551         * gnulib-tool: New option --extract-notice.
37552         (func_usage): Document it.
37553         (sed_extract_prog): Update.
37554         (func_get_notice): New function.
37555         (func_modules_notice): New function.
37556         (func_import, func_create_testdir): Invoke it.
37557         Suggested by Jim Meyering.
37558
37559 2007-09-09  Bruno Haible  <bruno@clisp.org>
37560
37561         * gnulib-tool: New options --verbose, --quiet.
37562         (func_usage): Document them.
37563         (verbose): New variable.
37564         (func_execute_command): New function.
37565         (func_import): Don't show the module list and the file list if
37566         $verbose < 0.
37567         (func_create_testdir): Likewise. Use func_execute_command.
37568         (func_create_megatestdir): Use func_execute_command.
37569
37570 2007-09-08  Bruno Haible  <bruno@clisp.org>
37571
37572         * gnulib-tool (func_import): Prefer rsync over wget when available,
37573         for fetching the PO files.
37574
37575 2007-09-08  Bruno Haible  <bruno@clisp.org>
37576
37577         * posix-modules: New file. Portions copied from gnulib-tool.
37578         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
37579
37580 2007-09-08  Jim Meyering  <jim@meyering.net>
37581
37582         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
37583         * lib/fpending.h: Rename from __fpending.h.
37584         * lib/fpending.c: Rename from __fpending.c.
37585         Include "fpending.h", not "__fpending.h".
37586         * lib/__fpending.h, lib/__fpending.c: Remove files.
37587         * modules/fpending (Files): Reflect new file names.
37588         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
37589
37590 2007-09-08  Bruno Haible  <bruno@clisp.org>
37591
37592         * m4/inttypes-h.m4: Remove stub file.
37593
37594 2007-09-07  Simon Josefsson  <simon@josefsson.org>
37595
37596         * doc/headers/stdint.texi: Discuss #include_next issue.
37597
37598 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
37599
37600         * build-aux/bootstrap: Remove obsolete comment about wget --help.
37601
37602 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37603
37604         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
37605         in variable name.
37606
37607 2007-09-03  Jim Meyering  <jim@meyering.net>
37608
37609         New module: git-version-gen.
37610         * modules/git-version-gen: New file.
37611
37612         Import changes from coreutils for bootstrap script.
37613
37614         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
37615
37616         bootstrap: uses rsync to download the .po files
37617         * build-aux/bootstrap (po_download_command_format): New global.
37618         (download_po_files): Use rsync.
37619         (update_po_files): Don't remove .po files after download,
37620         so future rsync runs can take advantage of the copies.
37621
37622         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
37623
37624         Solve the unnecessary-.po-file-regeneration problem once and for all.
37625         * build-aux/bootstrap (download_po_files): New function, renamed from
37626         get_translations.  Now, downloads, but doesn't update LINGUAS.
37627         (update_po_files): New function.
37628
37629         bootstrap: Ignore more.
37630         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
37631         uniwidth to e.g., lib/.gitignore.
37632         (slurp): Handle the sys_stat_.h -> sys mapping, too.
37633
37634         * build-aux/bootstrap: New setting: vc_ignore.
37635         (insert_sorted_if_absent): Create $file if absent.
37636         Adapt to new, possibly empty, list: $vc_ignore.
37637
37638         bootstrap: generate more ignorable names
37639         * build-aux/bootstrap (slurp): When generating ignorable names,
37640         also map .sin to .sed, .gperf to .c, and .y to .c.
37641
37642 2007-09-03  Jim Meyering  <jim@meyering.net>
37643
37644         * build-aux/git-version-gen: New file, from coreutils.  For details, see
37645         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
37646
37647 2007-09-02  Bruno Haible  <bruno@clisp.org>
37648
37649         Fix mis-recognition of 'mcs' on QNX 6.
37650         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
37651         output contains the string "Mono".
37652         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
37653         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
37654
37655 2007-09-01  Bruno Haible  <bruno@clisp.org>
37656
37657         Fix collision between uniwidth/* and linebreak modules.
37658         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
37659         u32_width): Remove declarations.
37660         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
37661         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
37662         streq3, streq2, streq1, streq0): Remove functions.
37663         (STREQ): Remove macro.
37664         (is_cjk_encoding): Remove function.
37665         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
37666         (uc_width, u8_width, u16_width, u32_width): Remove functions.
37667         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
37668         * NEWS: Document the change.
37669
37670 2007-09-01  Bruno Haible  <bruno@clisp.org>
37671
37672         * lib/streq.h: Add double-inclusion guard.
37673
37674 2007-09-01  Karl Berry  <karl@gnu.org>
37675
37676         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
37677
37678 2007-08-28  Jim Meyering  <jim@meyering.net>
37679
37680         Rename mreadlink_with_size to areadlink_with_size.
37681         * NEWS: Document the change.
37682         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
37683         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
37684         * lib/mreadlink.h: Rename this to...
37685         * lib/areadlink.h: ...this.
37686         * modules/mreadlink-with-size: Rename this to...
37687         * modules/areadlink-with-size: ...this.
37688         * lib/canonicalize.c: Reflect the renaming.
37689         * modules/canonicalize: Likewise.
37690
37691 2007-08-26  Bruno Haible  <bruno@clisp.org>
37692
37693         * gnulib-tool (func_import): When deciding which files to remove,
37694         consider also dangling symbolic links.
37695         Reported by Eric Blake.
37696
37697 2007-08-26  Bruno Haible  <bruno@clisp.org>
37698
37699         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
37700
37701 2007-08-23  Simon Josefsson  <simon@josefsson.org>
37702
37703         * lib/readline.c: Don't include getline.h, the prototype is now
37704         found in stdio.h.
37705
37706 2007-08-23  Jim Meyering  <jim@meyering.net>
37707
37708         Getdelim touchup.
37709         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
37710         around the funlockfile call, since funlockfile never sets errno.
37711         Don't set errno upon failed realloc.
37712
37713 2007-08-22  Eric Blake  <ebb9@byu.net>
37714
37715         Getline touchups.
37716         * lib/getdelim.c (getdelim): Revert regression that required *n to
37717         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
37718         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
37719         getdelim, rather than whether implementation is missing.
37720         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
37721         * lib/stdio_.h (getline): Also declare if replacement is
37722         required.
37723         * doc/functions/getdelim.texi: New file.
37724         * doc/functions/getline.texi: Likewise.
37725         * doc/gnulib.texi (Function Substitutes): Add new files.
37726         Reported by Bruno Haible.
37727
37728 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
37729
37730         * users.txt: Add Guile.
37731
37732 2007-08-22  Eric Blake  <ebb9@byu.net>
37733
37734         * tests/test-getdelim.c (main): Use remove, not unlink.
37735         * tests/test-getline.c (main): Likewise.
37736
37737         Move getline and getdelim into stdio.h, per POSIX 200x.
37738         * modules/getline (Files): Remove getline.h.
37739         (Depends-on): Add stdio.
37740         (configure.ac): Add module indicator.
37741         * modules/getdelim (Files): Remove getdelim.h.
37742         (Depends-on): Add stdio.
37743         (configure.ac): Add module indicator.
37744         * modules/stdio (Makefile.am): Work with new indicators.
37745         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
37746         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
37747         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
37748         * lib/getdelim.h: Delete.
37749         * lib/getline.h: Delete.
37750         * lib/stdio_.h (getdelim, getline): Declare.
37751         * modules/getdelim-tests: New module.
37752         * modules/getline-tests: Likewise.
37753         * tests/test-getdelim.c: New file.
37754         * tests/test-getline.c: Likewise.
37755         * NEWS: Document the change.
37756         * lib/getline.c: Update choice of header.
37757         * lib/csharpcomp.c: Likewise.
37758         * lib/getpass.c: Likewise.
37759         * lib/javacomp.c: Likewise.
37760         * lib/javaversion.c: Likewise.
37761         * lib/yesno.c: Likewise.
37762         * lib/getdelim.c: Likewise.
37763         (getdelim): Set errno on failure, and avoid memory leak.
37764
37765 2007-08-19  Bruno Haible  <bruno@clisp.org>
37766
37767         * modules/closein (Depends-on): Add freadahead.
37768         * lib/closein.c: Include freadahead.h.
37769         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
37770         is zero.
37771
37772 2007-08-19  Bruno Haible  <bruno@clisp.org>
37773
37774         * modules/freadahead-tests: New file.
37775         * tests/test-freadahead.sh: New file.
37776         * tests/test-freadahead.c: New file.
37777
37778         * modules/freadahead: New file.
37779         * lib/freadahead.h: New file.
37780         * lib/freadahead.c: New file.
37781         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
37782         fbufmode, fpurge, freadable, fwritable.
37783
37784 2007-08-19  Eric Blake  <ebb9@byu.net>
37785
37786         Test yesno in combination with closein.
37787         * lib/yesno.c (yesno): Document use of stdin.
37788         * modules/yesno-tests (Files): New module.
37789         * tests/test-yesno.c (main): New file.
37790         * tests/test-yesno.sh: Likewise.
37791
37792 2007-08-19  Bruno Haible  <bruno@clisp.org>
37793
37794         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
37795         * lib/fseeko.c (rpl_fseeko): Likewise.
37796         * lib/fseterr.c (fseterr): Likewise.
37797
37798 2007-08-19  Bruno Haible  <bruno@clisp.org>
37799
37800         * tests/test-lseek.c (main): Disable a test for BeOS.
37801         * doc/functions/lseek.texi: Document the BeOS bug.
37802
37803 2007-08-19  Bruno Haible  <bruno@clisp.org>
37804             Eric Blake  <ebb9@byu.net>
37805
37806         * lib/lseek.c: Include <sys/stat.h>.
37807         (rpl_lseek): Add workaround code also for Unix platforms.
37808         Needed for BeOS.
37809         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
37810         * doc/functions/lseek.texi: Document BeOS definiency.
37811
37812 2007-08-18  Bruno Haible  <bruno@clisp.org>
37813
37814         * modules/fstrcmp-tests: New file.
37815         * tests/test-fstrcmp.c: New file.
37816
37817 2007-08-18  Bruno Haible  <bruno@clisp.org>
37818
37819         * modules/fstrcmp: New file, from GNU gettext with modifications.
37820         * lib/fstrcmp.h: New file, from GNU gettext.
37821         * lib/fstrcmp.c: New file, from GNU gettext.
37822         * MODULES.html.sh (String handling): Add fstrcmp.
37823
37824 2007-08-18  Bruno Haible  <bruno@clisp.org>
37825
37826         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
37827         'bool'.
37828         (diag, compareseq): Remove const from the ctxt argument.
37829         (USE_HEURISTIC): Undefine at the end.
37830
37831 2007-08-18  Jim Meyering  <jim@meyering.net>
37832
37833         New file: lib/idcache.h
37834         * NEWS: Mention the addition.
37835         * modules/idcache (Files): Add lib/idcache.h
37836         * lib/idcache.c: Include "idcache.h".
37837         Don't include <sys/types.h>.
37838         Add a FIXME comment.
37839         Move file-scoped "static" declarations to the top.
37840         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
37841
37842 2007-08-17  Bruno Haible  <bruno@clisp.org>
37843         and Paul Eggert  <eggert@cs.ucla.edu>
37844
37845         * MODULES.html.sh: Add diffseq.
37846         * modules/diffseq: New file.
37847         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
37848         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
37849
37850 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
37851
37852         Import changes from coreutils for bootstrap script.
37853
37854         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
37855
37856         * build-aux/bootstrap (slurp): Work even in environments where
37857         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
37858         current code does not slurp files whose names start with ".", and
37859         this looks like it might be a troublesome area.
37860
37861         2007-07-11  Jim Meyering  <jim@meyering.net>
37862
37863         If there's a GPL vN copyright comment, require that N == 3.
37864
37865         2007-07-08  Jim Meyering  <jim@meyering.net>
37866
37867         Run the coreutils-specific code only if tests/Makefile.am.in exists.
37868         * build-aux/bootstrap (mam_template): Move definition out of loop.
37869
37870         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
37871
37872         * build-aux/bootstrap (symlink_to_dir): Rename function from
37873         symlink_to_gnulib.  Add a directory parameter.  Update all
37874         callers.
37875         (cp_mark_as_generated): Also check for -- and link to -- files in
37876         gl/.
37877
37878         2007-07-08  Jim Meyering  <jim@meyering.net>
37879
37880         Adapt to deeper hierarchy in gnulib.
37881         * build-aux/bootstrap (symlink_to_dir): If the destination
37882         directory doesn't exist, create it. This is required at least for
37883         "lib/uniwidth/cjk.h".
37884
37885         2007-05-15  Jim Meyering  <jim@meyering.net>
37886
37887         * build-aux/bootstrap: Now that generated Makefile.am files
37888         are no longer under version control, they must be created at
37889         bootstrap time.
37890
37891 2007-08-14  Ben Pfaff  <blp@gnu.org>
37892
37893         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
37894
37895 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
37896
37897         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
37898         given the changes below.
37899         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
37900         even on hosts that have padding bits beyond the supported 64.
37901
37902 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
37903
37904         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
37905         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
37906         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
37907         depends on it.
37908         (xstrtol_error): Remove.
37909         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
37910         but with a different signature.
37911         (ATTRIBUTE_NORETURN, __attribute__): New macros.
37912         * lib/xstrtol-error.c: Include exitfail.h.
37913         (xstrtol_fatal): New function, with a different signature from the
37914         old xstrtol_error, so that the caller need not worry about passing
37915         in an exit status, or about storage management of the option argument.
37916         (xstrtol_error): Now a static function.  Redo signature to
37917         implement xstrtol_fatal.  Output the correct number of hyphens in
37918         front of the option so that the caller need not worry about
37919         storage management.
37920         (N_): New macro.
37921         (_): Remove; not used now.
37922         * modules/xstrtol: Depend on getopt.
37923         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
37924         of old STRTOL_FATAL_ERROR macro.
37925         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
37926         of test program.
37927         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
37928         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
37929
37930 2007-08-08  Eric Blake  <ebb9@byu.net>
37931
37932         * lib/xstrtol-error.c: Add missing include.
37933
37934         Move xstrtol messages into gnulib domain, when --pobase is used.
37935         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
37936         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
37937         * modules/xstrtol (Files): Distribute new file.
37938         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
37939         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
37940         * tests/test-xstrtol.c: ...into new file.
37941         * tests/test-xstrtoul.c: Also test xstrtoul.
37942         * tests/test-xstrtoimax.c: Also test xstrtoimax.
37943         * tests/test-xstrtoumax.c: Also test xstrtoumax.
37944         * tests/test-xstrtol.sh: Drive the tests.
37945         * tests/test-xstrtoimax.sh: Likewise.
37946         * tests/test-xstrtoumax.sh: Likewise.
37947         * modules/xstrtol-tests: New module.
37948         * modules/xstrtoimax-tests: Likewise.
37949         * modules/xstrtoumax-tests: Likewise.
37950
37951 2007-08-08  Jim Meyering  <jim@meyering.net>
37952
37953         New function: mfile_name_concat.
37954         * lib/filenamecat.c (mfile_name_concat): New function, just like
37955         file_name_concat, but return NULL upon failure rather than exiting
37956         with a diagnostic.
37957         * lib/filenamecat.h: Declare it.
37958
37959 2007-08-07  Bruno Haible  <bruno@clisp.org>
37960
37961         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
37962         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
37963         warning from gcc.
37964         Reported by Eric Blake.
37965
37966 2007-08-07  Simon Josefsson  <simon@josefsson.org>
37967
37968         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
37969         * modules/crypto/arcfour (License): Likewise.
37970         * modules/crypto/des-tests (License): Likewise.
37971         * modules/crypto/gc-arctwo-tests (License): Likewise.
37972         * modules/crypto/gc-des-tests (License): Likewise.
37973         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
37974         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
37975         * modules/crypto/gc-md2-tests (License): Likewise.
37976         * modules/crypto/gc-md4-tests (License): Likewise.
37977         * modules/crypto/gc-md5-tests (License): Likewise.
37978         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
37979         * modules/crypto/gc-rijndael-tests (License): Likewise.
37980         * modules/crypto/gc-sha1-tests (License): Likewise.
37981         * modules/crypto/gc-tests (License): Likewise.
37982         * modules/crypto/hmac-md5 (License): Likewise.
37983         * modules/crypto/hmac-sha1 (License): Likewise.
37984         * modules/crypto/md2-tests (License): Likewise.
37985         * modules/crypto/md4-tests (License): Likewise.
37986         * modules/crypto/md5 (License): Likewise.
37987         * modules/crypto/rijndael (License): Likewise.
37988         * modules/crypto/sha1 (License): Likewise.
37989         * modules/memxor (License): Likewise.
37990
37991 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
37992         and Bruno Haible  <bruno@clisp.org>
37993
37994         * NEWS: Describe interface changes to human, xstrtol.
37995         * lib/human.h: Include <xstrtol.h>.
37996         (human_options): Return enum strtol_error, not int.  Remove
37997         bool arg; take int * instead.
37998         * lib/human.c: Don't include "gettext.h".
37999         (_): Remove; no longer used.
38000         Don't include <xstrtol.h>, since human.h does it.
38001         (human_options): Adjust to abovementioned interface changes.
38002         Do not report error to stderr; that's now the caller's
38003         responsibility.
38004         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
38005         interface change.
38006         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
38007         Str, Argument_type_string.  All uses changed.  Put " argument"
38008         in diagnostics to make them clearer.  Change wording of suffix
38009         message for clarity.
38010         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
38011         Argument_type_string.
38012         (STRTOL_FATAL_WARN): Remove; no longer used.
38013         * modules/human (Depends-on): Remove gettext-h.
38014
38015 2007-08-06  Simon Josefsson  <simon@josefsson.org>
38016
38017         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
38018
38019 2007-07-31  Bruno Haible  <bruno@clisp.org>
38020
38021         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
38022         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
38023         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
38024
38025 2007-07-31  Bruno Haible  <bruno@clisp.org>
38026
38027         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
38028         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
38029
38030 2007-07-30  Bruno Haible  <bruno@clisp.org>
38031
38032         * modules/base64 (License): Use the synonymous term "LGPLv2+".
38033         * modules/c-ctype (License): Likewise.
38034         * modules/c-strcase (License): Likewise.
38035         * modules/check-version (License): Likewise.
38036         * modules/iconv (License): Likewise.
38037         * modules/iconv_open (License): Likewise.
38038         * modules/read-file (License): Likewise.
38039         * modules/striconv (License): Likewise.
38040         * modules/strverscmp (License): Likewise.
38041         * modules/vasprintf (License): Likewise.
38042         * modules/crypto/des (License): Likewise.
38043         * modules/crypto/gc (License): Likewise.
38044         * modules/crypto/gc-arcfour (License): Likewise.
38045         * modules/crypto/gc-arctwo (License): Likewise.
38046         * modules/crypto/gc-des (License): Likewise.
38047         * modules/crypto/gc-hmac-md5 (License): Likewise.
38048         * modules/crypto/gc-hmac-sha1 (License): Likewise.
38049         * modules/crypto/gc-md2 (License): Likewise.
38050         * modules/crypto/gc-md4 (License): Likewise.
38051         * modules/crypto/gc-md5 (License): Likewise.
38052         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
38053         * modules/crypto/gc-random (License): Likewise.
38054         * modules/crypto/gc-rijndael (License): Likewise.
38055         * modules/crypto/gc-sha1 (License): Likewise.
38056         * modules/crypto/md2 (License): Likewise.
38057         * modules/crypto/md4 (License): Likewise.
38058
38059 2007-07-30  Jim Meyering  <jim@meyering.net>
38060
38061         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
38062         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
38063         it has valid stat data.  This bug would cause du not to count the
38064         sizes of inaccessible directories.
38065         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
38066         in <http://bugzilla.redhat.com/250077>.
38067
38068 2007-07-25  Peter O'Gorman  <peter@pogma.com>
38069             Bruno Haible  <bruno@clisp.org>
38070
38071         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
38072         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
38073         #include_next, gives a diagnostic about it, but reports no error in
38074         the exit code.
38075         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
38076
38077 2007-07-24  Ben Pfaff  <blp@gnu.org>
38078
38079         Improve name: "count-one-bits" is better than "popcount".
38080         * MODULES.html.sh: Update name.
38081         * lib/popcount.h: Renamed lib/count-one-bits.h.
38082         (popcount): Renamed count_one_bits.
38083         (popcountl): Renamed count_one_bits_l.
38084         (popcountll): Renamed count_one_bits_ll.
38085         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
38086         * modules/popcount: Renamed module/count-one-bits.
38087         * modules/popcount-tests: Renamed module/count-one-bits-tests.
38088         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
38089
38090 2007-07-23  Ben Pfaff  <blp@gnu.org>
38091
38092         * lib/popcount.h (popcount32): Reduce size of constants, to allow
38093         better code generation, and add U to large constants to avoid
38094         warnings, in non-GCC case.
38095         Suggested by Bruno Haible.
38096
38097 2007-07-23  Ben Pfaff  <blp@gnu.org>
38098
38099         * lib/popcount.h: Use verify_true instead of if...abort.
38100         * modules/popcount: Depend on verify module.
38101         Suggested by Jim Meyering.
38102
38103 2007-07-23  Bruno Haible  <bruno@clisp.org>
38104
38105         * gnulib-tool (func_import): Create a .cvsignore file also when the
38106         directory is not yet in CVS but the toplevel directory is. When
38107         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
38108         Reported by Karl Berry.
38109
38110 2007-07-22  Ben Pfaff  <blp@gnu.org>
38111
38112         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
38113         case.
38114         Suggested by Eric Blake.
38115
38116 2007-07-22  Ben Pfaff  <blp@gnu.org>
38117
38118         New module: popcount.
38119         * MODULES.html.sh: Add popcount.
38120         * modules/popcount: New file.
38121         * modules/popcount-tests: New file.
38122         * tests/test-popcount.c: New file.
38123         * lib/popcount.h: New file.
38124         * m4/popcount.m4: New file.
38125
38126 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
38127
38128         * build-aux/announce-gen: Update to GPLv3.
38129
38130         * build-aux/config.guess: Update from config.
38131
38132 2007-07-21  Bruno Haible  <bruno@clisp.org>
38133
38134         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
38135         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
38136
38137 2007-07-20  Jim Meyering  <jim@meyering.net>
38138
38139         * check-module: Diagnose a self-dependency.
38140
38141 2007-07-19  Bruno Haible  <bruno@clisp.org>
38142
38143         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
38144         empty.
38145         Reported by Eric Blake.
38146
38147 2007-07-18  Bruno Haible  <bruno@clisp.org>
38148
38149         * gnulib-tool: New options --po-base, --po-domain.
38150         (func_usage): Document them.
38151         (pobase, po_domain): New variables.
38152         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
38153         DEFAULT_TEXT_DOMAIN.
38154         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
38155         (func_import): Consider pobase and po_domain. Create a po/ directory.
38156         (func_create_testdir): Set pobase and po_domain to empty.
38157         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
38158         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
38159
38160 2007-07-18  Bruno Haible  <bruno@clisp.org>
38161
38162         * gnulib-tool (func_get_automake_snippet): Synthesize also an
38163         EXTRA_DIST augmentation for files in build-aux/.
38164
38165 2007-07-16  Bruno Haible  <bruno@clisp.org>
38166
38167         * modules/lseek (License): Use the synonymous term "LGPLv2+".
38168         * modules/getdelim (License): Likewise.
38169
38170 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
38171
38172         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
38173         * modules/d-type (License): Likewise.
38174         * modules/extensions (License): Likewise.
38175         * modules/fnmatch (License): Likewise.
38176         * modules/fseeko (License): Likewise.
38177         * modules/getaddrinfo (License): Likewise.
38178         * modules/getline (License): Likewise.
38179         * modules/getlogin_r (License): Likewise.
38180         * modules/getpass (License): Likewise.
38181         * modules/gettimeofday (License): Likewise.
38182         * modules/glob (License): Likewise.
38183         * modules/inet_ntop (License): Likewise.
38184         * modules/malloc (License): Likewise.
38185         * modules/malloca (License): Likewise.
38186         * modules/memmem (License): Likewise.
38187         * modules/mempcpy (License): Likewise.
38188         * modules/memset (License): Likewise.
38189         * modules/minmax (License): Likewise.
38190         * modules/mktime (License): Likewise.
38191         * modules/netinet_in (License): Likewise.
38192         * modules/pathmax (License): Likewise.
38193         * modules/poll (License): Likewise.
38194         * modules/regex (License): Likewise.
38195         * modules/snprintf (License): Likewise.
38196         * modules/stdbool (License): Likewise.
38197         * modules/stdint (License): Likewise.
38198         * modules/stdio (License): Likewise.
38199         * modules/strcase (License): Likewise.
38200         * modules/strcasestr (License): Likewise.
38201         * modules/strdup (License): Likewise.
38202         * modules/string (License): Likewise.
38203         * modules/strndup (License): Likewise.
38204         * modules/strnlen (License): Likewise.
38205         * modules/strpbrk (License): Likewise.
38206         * modules/strptime (License): Likewise.
38207         * modules/strsep (License): Likewise.
38208         * modules/sys_select (License): Likewise.
38209         * modules/sys_socket (License): Likewise.
38210         * modules/sys_stat (License): Likewise.
38211         * modules/sys_time (License): Likewise.
38212         * modules/time (License): Likewise.
38213         * modules/time_r (License): Likewise.
38214         * modules/timegm (License): Likewise.
38215         * modules/unistd (License): Likewise.
38216         * modules/vsnprintf (License): Likewise.
38217         * modules/wctype (License): Likewise.
38218
38219 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38220
38221         * modules/argz (License): LGPLv2+.
38222
38223 2007-07-15  Karl Berry  <karl@gnu.org>
38224
38225         * doc/gnulib.texi: revise node structure per new fdl.texi.
38226
38227 2007-07-14  Bruno Haible  <bruno@clisp.org>
38228
38229         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
38230         the output file.
38231         * lib/uniname/uninames.h: Regenerated.
38232
38233 2007-07-14  Karl Berry  <karl@gnu.org>
38234
38235         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
38236         omitting sectioning and index commands.
38237
38238 2007-07-13  Bruno Haible  <bruno@clisp.org>
38239
38240         New gnulib-tool option --more-symlinks.
38241         * gnulib-tool (func_usage): Document --more-symlinks.
38242         (do_copyrights): New variable.
38243         Recognize option --more-symlinks.
38244         (func_import): Don't add a copyright notice transform to
38245         sed_transform_lib_file if do_copyrights is empty.
38246
38247 2007-07-13  Bruno Haible  <bruno@clisp.org>
38248
38249         * lib/vasnprintf.c (decimal_point_char): Define also if
38250         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
38251         && !NEED_PRINTF_DIRECTIVE_A.
38252         Reported by Clemens Koller <clemens.koller@anagramm.de> via
38253         Gary V. Vaughan <gary@gnu.org>.
38254
38255 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
38256
38257         * lib/inttypes_.h: Undo previous change, since it was fixed
38258         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
38259
38260 2007-07-13  Bruno Haible  <bruno@clisp.org>
38261
38262         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
38263         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
38264
38265 2007-07-13  Jim Meyering  <jim@meyering.net>
38266
38267         df: Don't fail for Tru64's "file-on-file mount".
38268         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
38269         so we fall through and use statfs instead.  Details here:
38270         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
38271         Reported by Albert Chin.
38272
38273 2007-07-13  Bruno Haible  <bruno@clisp.org>
38274
38275         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
38276         * modules/configmake (License): Likewise.
38277         * modules/gettext (License): Likewise.
38278         * modules/gettext-h (License): Likewise.
38279         * modules/include_next (License): Likewise.
38280         * modules/link-warning (License): Likewise.
38281         * modules/localcharset (License): Likewise.
38282         * modules/localename (License): Likewise.
38283         * modules/lock (License): Likewise.
38284         * modules/relocatable-lib-lgpl (License): Likewise.
38285         * modules/size_max (License): Likewise.
38286         * modules/vasnprintf (License): Likewise.
38287         * modules/wchar (License): Likewise.
38288         * modules/xsize (License): Likewise.
38289
38290 2007-07-13  Bruno Haible  <bruno@clisp.org>
38291
38292         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
38293         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
38294
38295 2007-07-12  Bruno Haible  <bruno@clisp.org>
38296
38297         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
38298         in the modules files.
38299
38300 2007-07-11  Karl Berry  <karl@gnu.org>
38301
38302         * MODULES.html.sh (func_module): use
38303          sed -e '\|^'"${includefile}"'$|d'
38304          instead of /.../d, to avoid errors on $includefile's containing /.
38305
38306 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
38307
38308         * gnulib-tool (func_import): Avoid duplication of --avoid
38309         statements
38310         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
38311         names to `_' in variable names.
38312
38313 2007-07-10  Eric Blake  <ebb9@byu.net>
38314
38315         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
38316         * NEWS: Document this change.
38317
38318 2007-07-08  Bruno Haible  <bruno@clisp.org>
38319
38320         Update to Unicode 5.0.
38321         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
38322         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
38323         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
38324         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
38325         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
38326         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
38327         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
38328         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
38329         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
38330         U+10A3F, U+1D242..U+1D244.
38331         (nonspacing_table_ind): Update.
38332         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
38333         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
38334
38335 2007-07-08  Bruno Haible  <bruno@clisp.org>
38336
38337         Update to Unicode 5.0.
38338         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
38339         code transform. Extend the name index field of unicode_name_to_code and
38340         unicode_code_to_name from 16 to 24 bits.
38341         * lib/uniname/uniname.c (unicode_character_name,
38342         unicode_name_character): Add the range 0x12xxx to the code transform.
38343         * lib/uniname/uninames.h: Regenerated.
38344         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
38345
38346 2007-07-07  Bruno Haible  <bruno@clisp.org>
38347
38348         * modules/wcwidth-tests: New file.
38349         * tests/test-wcwidth.c: New file.
38350
38351         Work around MacOS X wcwidth() bug.
38352         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
38353         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
38354         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
38355         original wcwidth in non-UTF-8 locales.
38356         * modules/wcwidth (Depends-on): Add localcharset, streq,
38357         uniwidth/width.
38358         * doc/functions/wcwidth.texi: Update.
38359
38360 2007-07-07  Bruno Haible  <bruno@clisp.org>
38361
38362         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
38363         (wcwidth): New declaration.
38364         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
38365         macros.
38366         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
38367         here. Prepare for creating <wchar.h> unconditionally.
38368         * modules/wchar (Depends-on): Add link-warning.
38369         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
38370         REPLACE_WCWIDTH, and GL_LINK_WARNING.
38371         * lib/wcwidth.h: Remove file.
38372         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
38373         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
38374         * modules/wcwidth (Files): Remove lib/wcwidth.h.
38375         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
38376         (Include): Replace wcwidth.h with <wchar.h>.
38377         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
38378         * lib/mbchar.h: Don't include wcwidth.h.
38379         * lib/mbswidth.c: Likewise.
38380         * NEWS: Mention the change.
38381
38382 2007-07-07  Bruno Haible  <bruno@clisp.org>
38383
38384         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
38385         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
38386         definition with an external declaration.
38387         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
38388         defined as a function. Remove AC_C_INLINE requirement.
38389         * modules/wcwidth (Files): Add lib/wcwidth.c.
38390         (Makefile.am): Remove redundant statement.
38391
38392 2007-07-07  Bruno Haible  <bruno@clisp.org>
38393
38394         * MODULES.html.sh (Unicode string functions): Add the new modules.
38395
38396         * tests/uniwidth/test-u32-strwidth.c: New file.
38397         * modules/uniwidth/u32-strwidth-tests: New file.
38398
38399         * lib/uniwidth/u32-strwidth.c: New file.
38400         * modules/uniwidth/u32-strwidth: New file.
38401
38402         * tests/uniwidth/test-u16-strwidth.c: New file.
38403         * modules/uniwidth/u16-strwidth-tests: New file.
38404
38405         * lib/uniwidth/u16-strwidth.c: New file.
38406         * modules/uniwidth/u16-strwidth: New file.
38407
38408         * tests/uniwidth/test-u8-strwidth.c: New file.
38409         * modules/uniwidth/u8-strwidth-tests: New file.
38410
38411         * lib/uniwidth/u8-strwidth.c: New file.
38412         * modules/uniwidth/u8-strwidth: New file.
38413
38414         * tests/uniwidth/test-u32-width.c: New file.
38415         * modules/uniwidth/u32-width-tests: New file.
38416
38417         * lib/uniwidth/u32-width.c: New file.
38418         * modules/uniwidth/u32-width: New file.
38419
38420         * tests/uniwidth/test-u16-width.c: New file.
38421         * modules/uniwidth/u16-width-tests: New file.
38422
38423         * lib/uniwidth/u16-width.c: New file.
38424         * modules/uniwidth/u16-width: New file.
38425
38426         * tests/uniwidth/test-u8-width.c: New file.
38427         * modules/uniwidth/u8-width-tests: New file.
38428
38429         * lib/uniwidth/u8-width.c: New file.
38430         * modules/uniwidth/u8-width: New file.
38431
38432         * tests/uniwidth/test-uc_width.c: New file.
38433         * modules/uniwidth/width-tests: New file.
38434
38435         * lib/uniwidth/width.c: New file, from GNU libiconv.
38436         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
38437         * modules/uniwidth/width: New file.
38438
38439         * lib/uniwidth.h: New file, from GNU libiconv.
38440         * modules/uniwidth/base: New file.
38441
38442 2007-07-07  Bruno Haible  <bruno@clisp.org>
38443
38444         * lib/uniname.h: New file, from GNU gettext.
38445         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
38446         * lib/uniname/uninames.h: New file, from GNU gettext.
38447         * lib/uniname/uniname.c: New file, from GNU gettext.
38448         * tests/uniname/test-uninames.sh: New file.
38449         * tests/uniname/test-uninames.c: New file, from GNU gettext.
38450         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
38451         * modules/uniname/base: New file.
38452         * modules/uniname/uniname: New file.
38453         * modules/uniname/uniname-tests: New file.
38454         * MODULES.html.sh (Unicode string functions): Add the new modules.
38455
38456 2007-07-06  Bruno Haible  <bruno@clisp.org>
38457
38458         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
38459
38460 2007-07-06  Bruno Haible  <bruno@clisp.org>
38461
38462         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
38463         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
38464         includes <cygwin/sys_time.h> which includes <sys/select.h> which
38465         include <sys/time.h>.
38466         Reported by Eric Blake.
38467
38468 2007-07-06  Eric Blake  <ebb9@byu.net>
38469
38470         Fix testing canonicalize on cygwin.
38471         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
38472         Revert patch from 2007-06-19.
38473         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
38474         canonicalize module is also in use.
38475         * tests/test-canonicalize.c: New file.
38476         * tests/test-canonicalize.sh: Likewise.
38477         * modules/canonicalize-tests: Likewise.
38478
38479 2007-07-06  Jim Meyering  <jim@meyering.net>
38480
38481         * lib/getugroups.c (getugroups): Detect getgrent failure.
38482         Adjust comment to reflect reality: this function may return -1.
38483
38484 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
38485
38486         * build-aux/bootstrap (TP_URL,get_translations): Update to use
38487         the new TP address.
38488         (usage): Fix typo
38489         (gnulib_mk): New variable.
38490
38491 2007-07-05  Jim Meyering  <jim@meyering.net>
38492
38493         Don't let endgrent clobber errno, no matter how improbable.
38494         * lib/getugroups.c (getugroups): Save and restore errno around
38495         endgrent call.
38496
38497         Close the group DB even when failing with 2^31 or more members.
38498         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
38499
38500 2007-07-04  Jim Meyering  <jim@meyering.net>
38501
38502         * lib/getugroups.h: New file.
38503         * lib/getugroups.c: Include "getugroups.h".
38504         Remove uses of "register" keyword.
38505         Move local variable, "cp", down into scope where used.
38506         Give "username" parameter the "const" attribute.
38507         * modules/getugroups (Files): Add lib/getugroups.h
38508
38509 2007-07-04  Karl Berry  <karl@gnu.org>
38510
38511         * MODULES.html.sh (func_all_modules): Complete rename of
38512         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
38513
38514 2007-07-02  Bruno Haible  <bruno@clisp.org>
38515
38516         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
38517         mode, when inttypes.h comes from gnulib.
38518         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
38519
38520 2007-07-02  Simon Josefsson  <simon@josefsson.org>
38521
38522         * NEWS: Mention lgpl module name change.
38523
38524         * modules/lgpl-2.1: Renamed from lgpl.
38525
38526         * NEWS: Mention gpl module name change.
38527
38528         * modules/gpl-3.0: New file, based on gpl-2.0.
38529
38530         * modules/gpl-2.0: Renamed from gpl.
38531
38532         * modules/gpl: Fix filename, doc/gpl.texi is now found at
38533         doc/gpl-2.0.texi.
38534
38535 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
38536
38537         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
38538         #define __STDC_LIMIT_MACROS temporarily while including
38539         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
38540         Problem reported by Joel E. Denny in
38541         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
38542
38543 2007-07-01  Bruno Haible  <bruno@clisp.org>
38544
38545         * lib/unistdio.h: New file.
38546         * lib/unistdio/u-asnprintf.h: New file.
38547         * lib/unistdio/u-asprintf.h: New file.
38548         * lib/unistdio/u-printf-args.c: New file.
38549         * lib/unistdio/u-printf-args.h: New file.
38550         * lib/unistdio/u-printf-parse.h: New file.
38551         * lib/unistdio/u-snprintf.h: New file.
38552         * lib/unistdio/u-sprintf.h: New file.
38553         * lib/unistdio/u-vasprintf.h: New file.
38554         * lib/unistdio/u-vsnprintf.h: New file.
38555         * lib/unistdio/u-vsprintf.h: New file.
38556         * lib/unistdio/ulc-asnprintf.c: New file.
38557         * lib/unistdio/ulc-asprintf.c: New file.
38558         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
38559         * lib/unistdio/ulc-printf-parse.c: New file.
38560         * lib/unistdio/ulc-snprintf.c: New file.
38561         * lib/unistdio/ulc-sprintf.c: New file.
38562         * lib/unistdio/ulc-vasnprintf.c: New file.
38563         * lib/unistdio/ulc-vasprintf.c: New file.
38564         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
38565         * lib/unistdio/ulc-vsnprintf.c: New file.
38566         * lib/unistdio/ulc-vsprintf.c: New file.
38567         * lib/unistdio/u8-asnprintf.c: New file.
38568         * lib/unistdio/u8-asprintf.c: New file.
38569         * lib/unistdio/u8-printf-parse.c: New file.
38570         * lib/unistdio/u8-snprintf.c: New file.
38571         * lib/unistdio/u8-sprintf.c: New file.
38572         * lib/unistdio/u8-vasnprintf.c: New file.
38573         * lib/unistdio/u8-vasprintf.c: New file.
38574         * lib/unistdio/u8-vsnprintf.c: New file.
38575         * lib/unistdio/u8-vsprintf.c: New file.
38576         * lib/unistdio/u8-u8-asnprintf.c: New file.
38577         * lib/unistdio/u8-u8-asprintf.c: New file.
38578         * lib/unistdio/u8-u8-snprintf.c: New file.
38579         * lib/unistdio/u8-u8-sprintf.c: New file.
38580         * lib/unistdio/u8-u8-vasnprintf.c: New file.
38581         * lib/unistdio/u8-u8-vasprintf.c: New file.
38582         * lib/unistdio/u8-u8-vsnprintf.c: New file.
38583         * lib/unistdio/u8-u8-vsprintf.c: New file.
38584         * lib/unistdio/u16-asnprintf.c: New file.
38585         * lib/unistdio/u16-asprintf.c: New file.
38586         * lib/unistdio/u16-printf-parse.c: New file.
38587         * lib/unistdio/u16-snprintf.c: New file.
38588         * lib/unistdio/u16-sprintf.c: New file.
38589         * lib/unistdio/u16-vasnprintf.c: New file.
38590         * lib/unistdio/u16-vasprintf.c: New file.
38591         * lib/unistdio/u16-vsnprintf.c: New file.
38592         * lib/unistdio/u16-vsprintf.c: New file.
38593         * lib/unistdio/u16-u16-asnprintf.c: New file.
38594         * lib/unistdio/u16-u16-asprintf.c: New file.
38595         * lib/unistdio/u16-u16-snprintf.c: New file.
38596         * lib/unistdio/u16-u16-sprintf.c: New file.
38597         * lib/unistdio/u16-u16-vasnprintf.c: New file.
38598         * lib/unistdio/u16-u16-vasprintf.c: New file.
38599         * lib/unistdio/u16-u16-vsnprintf.c: New file.
38600         * lib/unistdio/u16-u16-vsprintf.c: New file.
38601         * lib/unistdio/u32-asnprintf.c: New file.
38602         * lib/unistdio/u32-asprintf.c: New file.
38603         * lib/unistdio/u32-printf-parse.c: New file.
38604         * lib/unistdio/u32-snprintf.c: New file.
38605         * lib/unistdio/u32-sprintf.c: New file.
38606         * lib/unistdio/u32-vasnprintf.c: New file.
38607         * lib/unistdio/u32-vasprintf.c: New file.
38608         * lib/unistdio/u32-vsnprintf.c: New file.
38609         * lib/unistdio/u32-vsprintf.c: New file.
38610         * lib/unistdio/u32-u32-asnprintf.c: New file.
38611         * lib/unistdio/u32-u32-asprintf.c: New file.
38612         * lib/unistdio/u32-u32-snprintf.c: New file.
38613         * lib/unistdio/u32-u32-sprintf.c: New file.
38614         * lib/unistdio/u32-u32-vasnprintf.c: New file.
38615         * lib/unistdio/u32-u32-vasprintf.c: New file.
38616         * lib/unistdio/u32-u32-vsnprintf.c: New file.
38617         * lib/unistdio/u32-u32-vsprintf.c: New file.
38618         * tests/unistdio/test-ulc-asnprintf1.c: New file.
38619         * tests/unistdio/test-ulc-asnprintf1.h: New file.
38620         * tests/unistdio/test-ulc-printf1.h: New file.
38621         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
38622         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
38623         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
38624         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
38625         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
38626         * tests/unistdio/test-ulc-vasprintf1.c: New file.
38627         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
38628         * tests/unistdio/test-ulc-vsprintf1.c: New file.
38629         * tests/unistdio/test-u8-asnprintf1.c: New file.
38630         * tests/unistdio/test-u8-asnprintf1.h: New file.
38631         * tests/unistdio/test-u8-printf1.h: New file.
38632         * tests/unistdio/test-u8-vasnprintf1.c: New file.
38633         * tests/unistdio/test-u8-vasnprintf2.c: New file.
38634         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
38635         * tests/unistdio/test-u8-vasnprintf3.c: New file.
38636         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
38637         * tests/unistdio/test-u8-vasprintf1.c: New file.
38638         * tests/unistdio/test-u8-vsnprintf1.c: New file.
38639         * tests/unistdio/test-u8-vsprintf1.c: New file.
38640         * tests/unistdio/test-u16-asnprintf1.c: New file.
38641         * tests/unistdio/test-u16-asnprintf1.h: New file.
38642         * tests/unistdio/test-u16-printf1.h: New file.
38643         * tests/unistdio/test-u16-vasnprintf1.c: New file.
38644         * tests/unistdio/test-u16-vasnprintf2.c: New file.
38645         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
38646         * tests/unistdio/test-u16-vasnprintf3.c: New file.
38647         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
38648         * tests/unistdio/test-u16-vasprintf1.c: New file.
38649         * tests/unistdio/test-u16-vsnprintf1.c: New file.
38650         * tests/unistdio/test-u16-vsprintf1.c: New file.
38651         * tests/unistdio/test-u32-asnprintf1.c: New file.
38652         * tests/unistdio/test-u32-asnprintf1.h: New file.
38653         * tests/unistdio/test-u32-printf1.h: New file.
38654         * tests/unistdio/test-u32-vasnprintf1.c: New file.
38655         * tests/unistdio/test-u32-vasnprintf2.c: New file.
38656         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
38657         * tests/unistdio/test-u32-vasnprintf3.c: New file.
38658         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
38659         * tests/unistdio/test-u32-vasprintf1.c: New file.
38660         * tests/unistdio/test-u32-vsnprintf1.c: New file.
38661         * tests/unistdio/test-u32-vsprintf1.c: New file.
38662         * modules/unistdio/base: New file.
38663         * modules/unistdio/u-printf-args: New file.
38664         * modules/unistdio/ulc-asnprintf: New file.
38665         * modules/unistdio/ulc-asprintf: New file.
38666         * modules/unistdio/ulc-fprintf: New file.
38667         * modules/unistdio/ulc-printf-parse: New file.
38668         * modules/unistdio/ulc-snprintf: New file.
38669         * modules/unistdio/ulc-sprintf: New file.
38670         * modules/unistdio/ulc-vasnprintf: New file.
38671         * modules/unistdio/ulc-vasprintf: New file.
38672         * modules/unistdio/ulc-vfprintf: New file.
38673         * modules/unistdio/ulc-vsnprintf: New file.
38674         * modules/unistdio/ulc-vsprintf: New file.
38675         * modules/unistdio/u8-asnprintf: New file.
38676         * modules/unistdio/u8-asprintf: New file.
38677         * modules/unistdio/u8-printf-parse: New file.
38678         * modules/unistdio/u8-snprintf: New file.
38679         * modules/unistdio/u8-sprintf: New file.
38680         * modules/unistdio/u8-vasnprintf: New file.
38681         * modules/unistdio/u8-vasprintf: New file.
38682         * modules/unistdio/u8-vsnprintf: New file.
38683         * modules/unistdio/u8-vsprintf: New file.
38684         * modules/unistdio/u8-u8-asnprintf: New file.
38685         * modules/unistdio/u8-u8-asprintf: New file.
38686         * modules/unistdio/u8-u8-snprintf: New file.
38687         * modules/unistdio/u8-u8-sprintf: New file.
38688         * modules/unistdio/u8-u8-vasnprintf: New file.
38689         * modules/unistdio/u8-u8-vasprintf: New file.
38690         * modules/unistdio/u8-u8-vsnprintf: New file.
38691         * modules/unistdio/u8-u8-vsprintf: New file.
38692         * modules/unistdio/u16-asnprintf: New file.
38693         * modules/unistdio/u16-asprintf: New file.
38694         * modules/unistdio/u16-printf-parse: New file.
38695         * modules/unistdio/u16-snprintf: New file.
38696         * modules/unistdio/u16-sprintf: New file.
38697         * modules/unistdio/u16-vasnprintf: New file.
38698         * modules/unistdio/u16-vasprintf: New file.
38699         * modules/unistdio/u16-vsnprintf: New file.
38700         * modules/unistdio/u16-vsprintf: New file.
38701         * modules/unistdio/u16-u16-asnprintf: New file.
38702         * modules/unistdio/u16-u16-asprintf: New file.
38703         * modules/unistdio/u16-u16-snprintf: New file.
38704         * modules/unistdio/u16-u16-sprintf: New file.
38705         * modules/unistdio/u16-u16-vasnprintf: New file.
38706         * modules/unistdio/u16-u16-vasprintf: New file.
38707         * modules/unistdio/u16-u16-vsnprintf: New file.
38708         * modules/unistdio/u16-u16-vsprintf: New file.
38709         * modules/unistdio/u32-asnprintf: New file.
38710         * modules/unistdio/u32-asprintf: New file.
38711         * modules/unistdio/u32-printf-parse: New file.
38712         * modules/unistdio/u32-snprintf: New file.
38713         * modules/unistdio/u32-sprintf: New file.
38714         * modules/unistdio/u32-vasnprintf: New file.
38715         * modules/unistdio/u32-vasprintf: New file.
38716         * modules/unistdio/u32-vsnprintf: New file.
38717         * modules/unistdio/u32-vsprintf: New file.
38718         * modules/unistdio/u32-u32-asnprintf: New file.
38719         * modules/unistdio/u32-u32-asprintf: New file.
38720         * modules/unistdio/u32-u32-snprintf: New file.
38721         * modules/unistdio/u32-u32-sprintf: New file.
38722         * modules/unistdio/u32-u32-vasnprintf: New file.
38723         * modules/unistdio/u32-u32-vasprintf: New file.
38724         * modules/unistdio/u32-u32-vsnprintf: New file.
38725         * modules/unistdio/u32-u32-vsprintf: New file.
38726         * modules/unistdio/ulc-asnprintf-tests: New file.
38727         * modules/unistdio/ulc-vasnprintf-tests: New file.
38728         * modules/unistdio/ulc-vasprintf-tests: New file.
38729         * modules/unistdio/ulc-vsnprintf-tests: New file.
38730         * modules/unistdio/ulc-vsprintf-tests: New file.
38731         * modules/unistdio/u8-asnprintf-tests: New file.
38732         * modules/unistdio/u8-vasnprintf-tests: New file.
38733         * modules/unistdio/u8-vasprintf-tests: New file.
38734         * modules/unistdio/u8-vsnprintf-tests: New file.
38735         * modules/unistdio/u8-vsprintf-tests: New file.
38736         * modules/unistdio/u16-asnprintf-tests: New file.
38737         * modules/unistdio/u16-vasnprintf-tests: New file.
38738         * modules/unistdio/u16-vasprintf-tests: New file.
38739         * modules/unistdio/u16-vsnprintf-tests: New file.
38740         * modules/unistdio/u16-vsprintf-tests: New file.
38741         * modules/unistdio/u32-asnprintf-tests: New file.
38742         * modules/unistdio/u32-vasnprintf-tests: New file.
38743         * modules/unistdio/u32-vasprintf-tests: New file.
38744         * modules/unistdio/u32-vsnprintf-tests: New file.
38745         * modules/unistdio/u32-vsprintf-tests: New file.
38746         * MODULES.html.sh (Unicode string functions): Add the new modules.
38747
38748 2007-07-01  Bruno Haible  <bruno@clisp.org>
38749
38750         * lib/sprintf.c (sprintf): Limit the available length estimation,
38751         to avoid address wraparound.
38752         * lib/vsprintf.c (vsprintf): Likewise.
38753         * modules/sprintf-posix (Dependencies): Add stdint.
38754         * modules/vsprintf-posix (Dependencies): Likewise.
38755
38756 2007-07-01  Bruno Haible  <bruno@clisp.org>
38757
38758         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
38759         Windows PATH as well. Conservative double-quoting. Comments.
38760
38761 2007-07-01  Bruno Haible  <bruno@clisp.org>
38762             Eric Blake  <ebb9@byu.net>
38763             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38764
38765         * gnulib-tool (self_abspathname): Fix algorithm to cope with
38766         empty components in $PATH, denoting '.'.
38767
38768 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38769
38770         * gnulib-tool: Fix indentation.
38771         (func_create_megatestdir): Likewise.
38772         Report by Bruno Haible.
38773
38774 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38775
38776         Sync from Automake.
38777         * build-aux/gnupload: Fix shell portability issues with for loops.
38778         Report by Karl Berry.
38779
38780 2007-06-29  Simon Josefsson  <simon@josefsson.org>
38781
38782         * build-aux/maint.mk (POURL): Use translationproject.org.
38783
38784 2007-06-27  Simon Josefsson  <simon@josefsson.org>
38785             Bruno Haible  <bruno@clisp.org>
38786
38787         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
38788         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
38789         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
38790         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
38791         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
38792
38793 2007-06-27  Bruno Haible  <bruno@clisp.org>
38794
38795         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
38796         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
38797
38798 2007-06-26  Karl Berry  <karl@gnu.org>
38799
38800         * MODULES.html.sh: remove xreadlink-with-size.
38801
38802 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
38803
38804         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
38805         method that I hope also handles the double-include problem noted
38806         by Bruno Haible in
38807         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
38808
38809 2007-06-23  Bruno Haible  <bruno@clisp.org>
38810
38811         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
38812         Don't let the 'mostlyclean' target fail if the last subdirectory could
38813         not be removed.
38814         Reported by Karl Berry.
38815
38816 2007-06-23  Bruno Haible  <bruno@clisp.org>
38817
38818         * gnulib-tool (echo): Add a speedier workaround for ksh.
38819         * tests/test-echo.sh: Likewise.
38820
38821 2007-06-23  Bruno Haible  <bruno@clisp.org>
38822
38823         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
38824         * tests/test-echo.sh: Likewise.
38825
38826 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38827
38828         * gnulib-tool (IFS): Initialize early, so we don't set it to
38829         empty later.
38830         (self_abspathname): Rewrite algorithm to set it, reindent.
38831         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
38832         (func_create_megatestdir): Merge some sed scripts.
38833
38834 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
38835
38836         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
38837         exposed by Sun Studio 11 cc on Solaris 8.
38838
38839 2007-06-22  Bruno Haible  <bruno@clisp.org>
38840
38841         * gnulib-tool (echo): Ensure the echo primitive does not interpret
38842         backslashes.
38843         * tests/test-echo.sh: New file.
38844
38845 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38846
38847         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
38848         simplify `sed_replace_build_aux' scripts, they are portable but
38849         echoing them with `echo' is not.
38850         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
38851
38852 2007-06-21  Karl Berry  <karl@gnu.org>
38853
38854         * config/srclist.txt: guess we can't handle the licenses via
38855         srclist at the moment.
38856
38857 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
38858
38859         * MODULES.html.sh: Add include_next.
38860         * modules/include_next: New file.
38861
38862 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
38863
38864         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
38865         INCLUDE_NEXT.
38866         (gl_CHECK_NEXT_HEADERS): New macro.
38867         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
38868         the obsolescent gl_ABSOLUTE_HEADER.
38869         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
38870         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
38871         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
38872         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
38873         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
38874         * m4/math_h.m4 (gl_MATH_H): Likewise.
38875         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
38876         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
38877         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
38878         * m4/stdint.m4 (gl_STDINT_H): Likewise.
38879         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
38880         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
38881         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
38882         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38883         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
38884         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
38885         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
38886         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
38887         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
38888         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
38889         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
38890         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
38891         * m4/inttypes.m4 (gl_INTTYPES_H): Define
38892         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
38893         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
38894         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
38895         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
38896         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
38897         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
38898         * lib/float_.h: Likewise.
38899         * lib/inttypes_.h: Likewise.
38900         * lib/math_.h: Likewise.
38901         * lib/search_.h: Likewise.
38902         * lib/signal_.h: Likewise.
38903         * lib/stdint_.h: Likewise.
38904         * lib/stdio_.h: Likewise.
38905         * lib/stdlib_.h: Likewise.
38906         * lib/string_.h: Likewise.
38907         * lib/sys_stat_.h: Likewise.
38908         * lib/sys_time_.h: Likewise.
38909         * lib/time_.h: Likewise.
38910         * lib/unistd_.h: Likewise.
38911         * lib/wchar_.h: Likewise.
38912         * lib/wctype_.h: Likewise.
38913         * lib/dirent_.h: Likewise.
38914         * lib/iconv_.h: Likewise.
38915         * lib/locale_.h: Likewise.
38916         * lib/netinet_in_.h: Likewise.
38917         * lib/sys_select_.h: Likewise.
38918         * lib/sys_socket_.h: Likewise.
38919         * lib/sysexits_.h: Likewise.
38920         * modules/fcntl (Depends-on): Depend on include_next, not
38921         absolute_header.
38922         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
38923         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
38924         * modules/fchdir: Likewise.
38925         * modules/float: Likewise.
38926         * modules/iconv_open: Likewise.
38927         * modules/inttypes: Likewise.
38928         * modules/locale: Likewise.
38929         * modules/math: Likewise.
38930         * modules/netinet_in: Likewise.
38931         * modules/search: Likewise.
38932         * modules/signal: Likewise.
38933         * modules/stdint: Likewise.
38934         * modules/stdio: Likewise.
38935         * modules/stdlib: Likewise.
38936         * modules/string: Likewise.
38937         * modules/sys_select: Likewise.
38938         * modules/sys_socket: Likewise.
38939         * modules/sys_stat: Likewise.
38940         * modules/sys_time: Likewise.
38941         * modules/sysexits: Likewise.
38942         * modules/time: Likewise.
38943         * modules/unistd: Likewise.
38944         * modules/wchar: Likewise.
38945         * modules/wctype: Likewise.
38946         * modules/sys_stat: Change maintainer to "all".
38947         * modules/unistd: Likewise.
38948
38949 2007-06-20  Karl Berry  <karl@gnu.org>
38950
38951         * config/srclist.txt: track www changes in license files.
38952
38953 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
38954
38955         * build-aux/bootstrap: Remove stray dot.
38956         Make sure build_aux settings are honored when linking
38957         gnulib_extra_files.
38958
38959 2007-06-19  Eric Blake  <ebb9@byu.net>
38960
38961         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
38962         Allow compilation on cygwin.
38963
38964 2007-06-19  Jim Meyering  <jim@meyering.net>
38965
38966         xreadlink-with-size: Remove module.  No longer used.
38967         Ex-callers now use xreadlink or mreadlink-with-size.
38968         * modules/xreadlink-with-size: Remove module.
38969         * lib/xreadlink-with-size.c: Remove file.
38970         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
38971         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
38972         just before the function definition *is* accurate.
38973
38974         Eliminate one way canonicalize_filename_mode could exit.
38975         * lib/canonicalize.c (canonicalize_filename_mode):
38976         Use mreadlink_with_size, not xreadlink_with_size.
38977
38978 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
38979
38980         Detect porting problems to FreeBSD/arm, which has time_t wider than
38981         long int.  Original problem reported for GNU diff by Xin Li in
38982         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
38983         * modules/getdate (Depends-on): Add intprops, verify.
38984         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
38985         is an integer type no wider than long int.
38986
38987 2007-06-18  Jim Meyering  <jim@meyering.net>
38988
38989         New module: mreadlink-with-size.
38990         * MODULES.html.sh: Add mreadlink-with-size.
38991         * modules/mreadlink-with-size: New module
38992         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
38993         not xreadlink-with-size.
38994         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
38995
38996 2007-06-16  Bruno Haible  <bruno@clisp.org>
38997
38998         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
38999         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
39000         Reported by Gary V. Vaughan <gary@gnu.org>.
39001
39002 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
39003
39004         Revamp lchown so that it lives in unistd.h where it belongs.
39005         * lib/lchown.h: Remove.
39006         * lib/dirchownmod.c: Don't include lib/lchown.h.
39007         * lib/fchownat.c: Likewise.
39008         * lib/openat.c: Likewise.
39009         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
39010         does not follow symlinks.
39011         (EOPNOTSUPP): Define if not defined.
39012         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
39013         is defined to 0.
39014         (lchown): New decl.
39015         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
39016         Do not check for lchown decl.
39017         Set REPLACE_LCHOWN.
39018         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
39019         REPLACE_LCHOWN.
39020         * modules/chown: Make it clear it follows symlinks.
39021         * modules/lchown: Make it clear it doesn't follow symlinks.
39022         (Files): Remove lib/lchown.h
39023         (Depends-on): Add unistd.
39024         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
39025         (Include): Include <unistd.h>, not "lchown.h".
39026         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
39027         REPLACE_LCHOWN.
39028
39029 2007-06-15  Jim Meyering  <jim@meyering.net>
39030
39031         Change license (GPL to LGPL) of fsusage and dependents.
39032         * modules/fsusage (License): Change to LGPL.
39033         * modules/full-read (License): Likewise.
39034         * modules/full-write (License): Likewise.
39035         * modules/safe-read (License): Likewise.
39036         * modules/safe-write (License): Likewise.
39037
39038 2007-06-14  Ben Pfaff  <blp@gnu.org>
39039
39040         Missing part of allocsa -> malloca transition.
39041         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
39042         gl_MALLOCA.
39043
39044 2007-06-12  Bruno Haible  <bruno@clisp.org>
39045
39046         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
39047         to ia64, x86_64, i386.
39048         Reported by Eric Blake.
39049
39050 2007-06-12  Bruno Haible  <bruno@clisp.org>
39051
39052         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
39053         cross-compiling to x86_64.
39054
39055 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
39056
39057         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
39058         glitch reported by Ralf Wildenhues in
39059         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
39060
39061         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
39062         Vin Shelton.
39063
39064 2007-06-11  Bruno Haible  <bruno@clisp.org>
39065
39066         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
39067         replacement string.
39068         Reported by Eric Blake.
39069
39070 2007-06-10  Bruno Haible  <bruno@clisp.org>
39071
39072         Prepare vasnprintf code for use with Unicode strings.
39073         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
39074         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
39075         TYPE_U32_STRING.
39076         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
39077         a_u32_string variants.
39078         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
39079         * lib/printf-args.c: Don't include config.h and the specification
39080         header if PRINTF_FETCHARGS is already defined.
39081         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
39082         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
39083         TYPE_U16_STRING, TYPE_U32_STRING.
39084         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
39085         u16_directive, u16_directives, u32_directive, u32_directives): New
39086         types.
39087         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
39088         New declarations.
39089         * lib/printf-parse.c: Don't include config.h and the specification
39090         header if PRINTF_PARSE is already defined. Eliminate the set of
39091         parameters for WIDE_CHAR_VERSION; the user of this file must provide
39092         them now. Include c-ctype.h.
39093         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
39094         directive and CHAR_T_ONLY_ASCII.
39095         * lib/vasnprintf.c: Don't include config.h and the specification header
39096         if VASNPRINTF is already defined.
39097         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
39098         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
39099         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
39100         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
39101         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
39102         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
39103         code accordingly.
39104         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
39105         pad_ourselves also in this case, with the 'c' and 's' directives, and
39106         with a different notion of "width".
39107         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
39108
39109 2007-06-10  Bruno Haible  <bruno@clisp.org>
39110
39111         * modules/unistr/u32-mbsnlen: New file.
39112         * lib/unistr/u32-mbsnlen.c: New file.
39113
39114         * modules/unistr/u16-mbsnlen: New file.
39115         * lib/unistr/u16-mbsnlen.c: New file.
39116
39117         * modules/unistr/u8-mbsnlen: New file.
39118         * lib/unistr/u8-mbsnlen.c: New file.
39119
39120         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
39121         declarations.
39122
39123 2007-06-10  Bruno Haible  <bruno@clisp.org>
39124
39125         * lib/string_.h (mbsnlen): New declaration.
39126         * lib/mbsnlen.c: New file.
39127         * m4/mbsnlen.m4: New file.
39128         * modules/mbsnlen: New file.
39129         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
39130         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
39131         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
39132
39133 2007-06-10  Bruno Haible  <bruno@clisp.org>
39134
39135         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
39136
39137 2007-06-10  Bruno Haible  <bruno@clisp.org>
39138
39139         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
39140         * lib/mbuiter.h: Likewise.
39141
39142 2007-06-10  Bruno Haible  <bruno@clisp.org>
39143
39144         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
39145         declaration.
39146
39147 2007-06-10  Karl Berry  <karl@gnu.org>
39148
39149         * config/srclist.txt: remove gettext entries, Bruno prefers
39150         to update individually.
39151
39152 2007-06-10  Bruno Haible  <bruno@clisp.org>
39153
39154         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
39155         'maxlen'. Ensure only length + width bytes are allocated, not
39156         length + 1 + width.
39157
39158 2007-06-09  Bruno Haible  <bruno@clisp.org>
39159
39160         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
39161         (CHAR_T): Remove macro.
39162         (VASNPRINTF): Update.
39163
39164 2007-06-09  Bruno Haible  <bruno@clisp.org>
39165
39166         * MODULES.html.sh (Unicode string functions): Add the new modules.
39167
39168         * modules/uniconv/u32-conv-to-enc: New file.
39169         * lib/uniconv/u32-conv-to-enc.c: New file.
39170         * modules/uniconv/u32-conv-to-enc-tests: New file.
39171         * tests/uniconv/test-u32-conv-to-enc.c: New file.
39172
39173         * modules/uniconv/u16-conv-to-enc: New file.
39174         * lib/uniconv/u16-conv-to-enc.c: New file.
39175         * lib/uniconv/u-conv-to-enc.h: New file.
39176         * modules/uniconv/u16-conv-to-enc-tests: New file.
39177         * tests/uniconv/test-u16-conv-to-enc.c: New file.
39178
39179         * modules/uniconv/u8-conv-to-enc: New file.
39180         * lib/uniconv/u8-conv-to-enc.c: New file.
39181         * modules/uniconv/u8-conv-to-enc-tests: New file.
39182         * tests/uniconv/test-u8-conv-to-enc.c: New file.
39183
39184         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
39185         u32_conv_to_encoding): New declarations.
39186
39187 2007-06-09  Bruno Haible  <bruno@clisp.org>
39188
39189         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
39190
39191 2007-06-09  Bruno Haible  <bruno@clisp.org>
39192
39193         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
39194         * modules/malloca: Renamed from modules/allocsa, updated.
39195         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
39196         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
39197         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
39198         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
39199         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
39200         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
39201         * modules/xmalloca: Renamed from modules/xallocsa, updated.
39202         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
39203         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
39204         * modules/c-strcasestr (Depends-on): Update.
39205         * lib/c-strcasestr.c: Update.
39206         * modules/c-strstr (Depends-on): Update.
39207         * lib/c-strstr.c: Update.
39208         * modules/canonicalize-lgpl (Depends-on): Update.
39209         * lib/canonicalize-lgpl.c: Update.
39210         * modules/clean-temp (Depends-on): Update.
39211         * lib/clean-temp.c: Update.
39212         * modules/csharpcomp (Depends-on): Update.
39213         * lib/csharpcomp.c: Update.
39214         * modules/csharpexec (Depends-on): Update.
39215         * lib/csharpexec.c: Update.
39216         * modules/javacomp (Depends-on): Update.
39217         * lib/javacomp.c: Update.
39218         * modules/javaexec (Depends-on): Update.
39219         * lib/javaexec.c: Update.
39220         * modules/mbscasestr (Depends-on): Update.
39221         * lib/mbscasestr.c: Update.
39222         * modules/mbsstr (Depends-on): Update.
39223         * lib/mbsstr.c: Update.
39224         * modules/setenv (Depends-on): Update.
39225         * lib/setenv.c: Update.
39226         * modules/strcasestr (Depends-on): Update.
39227         * lib/strcasestr.c: Update.
39228         * modules/striconveha (Depends-on): Update.
39229         * lib/striconveha.c: Update.
39230         * modules/relocatable-prog-wrapper (Files): Update.
39231         * lib/relocwrapper.c: Update.
39232         * build-aux/install-reloc: Update.
39233         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
39234
39235 2007-06-08  Bruno Haible  <bruno@clisp.org>
39236
39237         Port to uClibc.
39238         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
39239         * lib/fpurge.c (fpurge): Likewise.
39240         * lib/freading.c (freading): Likewise.
39241         * lib/fseeko.c (rpl_fseeko): Likewise.
39242         * lib/fseterr.c (fseterr): Likewise.
39243         * lib/fwriting.c (fwriting): Likewise.
39244         * tests/test-fflush.c (main): Avoid a failure on uClibc.
39245
39246 2007-06-08  Bruno Haible  <bruno@clisp.org>
39247
39248         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
39249         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
39250         * modules/gettext (Files): Add m4/intlmacosx.m4.
39251
39252 2007-06-07  Bruno Haible  <bruno@clisp.org>
39253
39254         * modules/localename-tests: New file.
39255         * tests/test-localename.c: New file.
39256
39257         New module 'localename'.
39258         * lib/localename.h: New file.
39259         * lib/localename.c: New file, from GNU gettext.
39260         * m4/localename.m4: New file.
39261         * modules/localename: New file.
39262
39263 2007-06-07  Bruno Haible  <bruno@clisp.org>
39264
39265         Work around the lack of <wchar.h> on some builds of uClibc.
39266         * doc/headers/wchar.texi: Update.
39267         * lib/wchar_.h: Include <wchar.h> only if it exists.
39268         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
39269         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
39270         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
39271         doesn't exist.
39272         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
39273         * modules/mbfile (Depends-on): Add wchar.
39274         * modules/mbiter (Depends-on): Likewise.
39275         * modules/mbuiter (Depends-on): Likewise.
39276         Reported by Simon Josefsson.
39277
39278 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
39279
39280         Work around problem reported by Steven M. Schweda in
39281         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
39282         Tru64 5.1B with the Compaq compiler environment installed declares
39283         an 'isblank' function but does not define it in the C library.
39284         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
39285         * lib/regex_internal.h (isblank): Likewise.
39286         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
39287         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
39288
39289 2007-06-05  Bruno Haible  <bruno@clisp.org>
39290
39291         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
39292         ia64.
39293         * modules/printf-safe: New file.
39294         * modules/fprintf-posix (Depends-on): Add printf-safe.
39295         * modules/printf-posix (Depends-on): Likewise.
39296         * modules/snprintf-posix (Depends-on): Likewise.
39297         * modules/sprintf-posix (Depends-on): Likewise.
39298         * modules/vasnprintf-posix (Depends-on): Likewise.
39299         * modules/vasprintf-posix (Depends-on): Likewise.
39300         * modules/vfprintf-posix (Depends-on): Likewise.
39301         * modules/vprintf-posix (Depends-on): Likewise.
39302         * modules/vsnprintf-posix (Depends-on): Likewise.
39303         * modules/vsprintf-posix (Depends-on): Likewise.
39304         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
39305         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
39306         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
39307         "no" on i386, x86_64, ia64.
39308         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
39309         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
39310         on i386, x86_64, ia64.
39311         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
39312         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
39313         on i386, x86_64, ia64.
39314         * tests/test-vasnprintf-posix.c: Include float.h.
39315         (LDBL80_WORDS): New macro.
39316         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
39317         on i386, x86_64, ia64.
39318         * tests/test-vasprintf-posix.c: Include float.h.
39319         (LDBL80_WORDS): New macro.
39320         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
39321         on i386, x86_64, ia64.
39322         * tests/test-snprintf-posix.c: Include float.h.
39323         * tests/test-sprintf-posix.c: Likewise.
39324         * tests/test-vsnprintf-posix.c: Likewise.
39325         * tests/test-vsprintf-posix.c: Likewise.
39326
39327 2007-06-05  Bruno Haible  <bruno@clisp.org>
39328
39329         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
39330         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
39331         non-IEEE numbers on i386, x86_64, ia64.
39332         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
39333         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
39334         * tests/test-isnanl.h: Include float.h.
39335         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
39336
39337 2007-06-05  Bruno Haible  <bruno@clisp.org>
39338
39339         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
39340         also the %a / %A. Handle the %a / %A code before this extra handling.
39341
39342 2007-06-05  Bruno Haible  <bruno@clisp.org>
39343
39344         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
39345         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
39346
39347 2007-06-05  Bruno Haible  <bruno@clisp.org>
39348
39349         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
39350         typo in variable name.
39351
39352 2007-06-05  Eric Blake  <ebb9@byu.net>
39353
39354         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
39355         Reported by Simon Josefsson.
39356
39357 2007-06-04  Bruno Haible  <bruno@clisp.org>
39358
39359         Avoid test failures on some PowerPC platforms.
39360         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
39361         Define differently for PowerPC.
39362         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
39363         Reported by Gary V. Vaughan <gary@gnu.org>.
39364
39365 2007-06-02  Bruno Haible  <bruno@clisp.org>
39366
39367         Fix test-stdint failure on FreeBSD/ia64.
39368         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
39369         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
39370         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
39371         * doc/headers/stdint.texi: Update.
39372
39373 2007-06-01  Bruno Haible  <bruno@clisp.org>
39374
39375         * tests/test-binary-io.c (main): Pass a third argument to open().
39376         Reported by Gary V. Vaughan <gary@gnu.org>.
39377
39378 2007-06-01  Bruno Haible  <bruno@clisp.org>
39379
39380         * doc/functions/frexpl.texi: Update for mingw.
39381
39382 2007-06-01  Bruno Haible  <bruno@clisp.org>
39383
39384         * tests/test-lseek.c (main): Disable test of errno for invalid third
39385         argument.
39386         * doc/functions/lseek.texi: Update.
39387         Reported by Gary V. Vaughan <gary@gnu.org>.
39388
39389 2007-05-28  Bruno Haible  <bruno@clisp.org>
39390
39391         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
39392
39393 2007-05-31  Eric Blake  <ebb9@byu.net>
39394
39395         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
39396         cross compiling.
39397
39398 2007-05-30  Eric Blake  <ebb9@byu.net>
39399         and Bruno Haible  <bruno@clisp.org>
39400
39401         Work around mingw test failures exposed by m4-1.4.9b.
39402         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
39403         * tests/test-unistd.c: Disable uid_t and git_t tests for the
39404         moment.
39405
39406 2007-05-30  Bruno Haible  <bruno@clisp.org>
39407
39408         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
39409         assuming that they are closed. Needed on HP-UX 11.
39410
39411 2007-05-29  Bruno Haible  <bruno@clisp.org>
39412
39413         Fix a problem with #include_next.
39414         * lib/dirent_.h: Split the double-inclusion guard.
39415         * lib/fcntl_.h: Likewise.
39416         * lib/float_.h: Likewise.
39417         * lib/iconv_.h: Likewise.
39418         * lib/inttypes_.h: Likewise.
39419         * lib/locale_.h: Likewise.
39420         * lib/math_.h: Likewise.
39421         * lib/netinet_in_.h: Likewise.
39422         * lib/search_.h: Likewise.
39423         * lib/signal_.h: Likewise.
39424         * lib/stdint_.h: Likewise.
39425         * lib/stdio_.h: Likewise.
39426         * lib/stdlib_.h: Likewise.
39427         * lib/string_.h: Likewise.
39428         * lib/sys_select_.h: Likewise.
39429         * lib/sys_socket_.h: Likewise.
39430         * lib/sys_stat_.h: Likewise.
39431         * lib/sys_time_.h: Likewise.
39432         * lib/sysexits_.h: Likewise.
39433         * lib/time_.h: Likewise.
39434         * lib/unistd_.h: Likewise.
39435         * lib/wchar_.h: Likewise.
39436         * lib/wctype_.h: Likewise.
39437
39438 2007-05-29  Bruno Haible  <bruno@clisp.org>
39439
39440         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
39441         for the moment.
39442
39443 2007-05-29  Bruno Haible  <bruno@clisp.org>
39444
39445         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
39446         invocation.
39447         Reported by Eric Blake.
39448
39449 2007-05-29  Bruno Haible  <bruno@clisp.org>
39450
39451         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
39452         compiling case.
39453
39454 2007-05-29  Eric Blake  <ebb9@byu.net>
39455             Bruno Haible  <bruno@clisp.org>
39456
39457         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
39458         cross compiles.
39459
39460 2007-05-28  Eric Blake  <ebb9@byu.net>
39461
39462         * modules/closein-tests (test_closein_LDADD): Support test on
39463         cygwin with libtool.
39464
39465 2007-05-28  Bruno Haible  <bruno@clisp.org>
39466
39467         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
39468         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
39469         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
39470         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
39471         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
39472         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
39473         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
39474         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
39475         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
39476
39477 2007-05-28  Eric Blake  <ebb9@byu.net>
39478
39479         Unconditionally include <config.h> in unit tests.
39480         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
39481         * tests/test-allocsa.c, tests/test-arcfour.c,
39482         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
39483         tests/test-array_list.c, tests/test-array_oset.c,
39484         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
39485         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
39486         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
39487         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
39488         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
39489         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
39490         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
39491         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
39492         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
39493         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
39494         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
39495         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
39496         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
39497         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
39498         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
39499         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
39500         test-md5.c, test-memmem.c, test-printf-posix.c,
39501         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
39502         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
39503         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
39504         test-strcasestr.c, test-striconv.c, test-striconveh.c,
39505         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
39506         test-vasnprintf-posix2.c, test-vasnprintf.c,
39507         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
39508         test-vfprintf-posix.c, test-vprintf-posix.c,
39509         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
39510         test-xvasprintf.c: Likewise.
39511
39512 2007-05-28  Bruno Haible  <bruno@clisp.org>
39513
39514         * gnulib-tool (func_import): Remember the --with-tests command-line
39515         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
39516         Reported by Eric Blake.
39517
39518 2007-05-28  Bruno Haible  <bruno@clisp.org>
39519
39520         * modules/ftell-tests: New file.
39521         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
39522         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
39523
39524         * lib/ftell.c: New file.
39525         * modules/ftell: New file.
39526         * m4/ftell.m4: New file.
39527         * doc/functions/ftell.texi: Update.
39528         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
39529         REPLACE_FTELL.
39530         * lib/stdio_.h (rpl_ftell): New declaration.
39531         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
39532         REPLACE_FTELL.
39533
39534 2007-05-28  Eric Blake  <ebb9@byu.net>
39535
39536         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
39537
39538 2007-05-28  Bruno Haible  <bruno@clisp.org>
39539
39540         * modules/fseek-tests: New file.
39541         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
39542         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
39543
39544         * lib/fseek.c: New file.
39545         * modules/fseek: New file.
39546         * m4/fseek.m4: New file.
39547         * doc/functions/fseek.texi: Update.
39548         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
39549         REPLACE_FSEEK.
39550         * lib/stdio_.h (rpl_fseek): New declaration.
39551         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
39552         REPLACE_FSEEK.
39553
39554 2007-05-28  Bruno Haible  <bruno@clisp.org>
39555
39556         * lib/stdio_.h (fflush): More comments.
39557
39558 2007-05-28  Bruno Haible  <bruno@clisp.org>
39559
39560         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
39561         runtime test.
39562
39563 2007-05-28  Eric Blake  <ebb9@byu.net>
39564
39565         Improve lseek module.
39566         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
39567         * lib/unistd_.h (lseek): Scale back link warning message.
39568         * tests/test-lseek.c: Beef up test.
39569         * tests/test-lseek.sh: Exercise more facets of lseek.
39570         Reported by Bruno Haible.
39571
39572 2007-05-28  Bruno Haible  <bruno@clisp.org>
39573
39574         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
39575         to define.
39576
39577 2007-05-27  Bruno Haible  <bruno@clisp.org>
39578
39579         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
39580
39581 2007-05-27  Bruno Haible  <bruno@clisp.org>
39582
39583         * modules/openmp: New file.
39584         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
39585         Noah Misch.
39586
39587 2007-05-26  Bruno Haible  <bruno@clisp.org>
39588
39589         * modules/chdir-long (Depends-on): Add fchdir.
39590         * modules/chdir-safer (Depends-on): Likewise.
39591         * modules/fts (Depends-on): Likewise.
39592         * modules/fts-lgpl (Depends-on): Likewise.
39593         * modules/openat (Depends-on): Likewise.
39594         * modules/savewd (Depends-on): Likewise.
39595
39596 2007-05-24  Eric Blake  <ebb9@byu.net>
39597
39598         Fix lseek on mingw.
39599         * modules/lseek: New module.
39600         * m4/lseek.m4: New file.
39601         * lib/lseek.c: New file.
39602         * modules/lseek-tests: New file.
39603         * tests/test-lseek.c: New file.
39604         * tests/test-lseek.sh: New file.
39605         * MODULES.html.sh: Document lseek module.
39606         * modules/fflush (Depends-on): Add lseek, fseeko.
39607         * modules/fseeko (Depends-on): Likewise.
39608         * modules/ftello (Depends-on): Likewise.
39609         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
39610         broken.
39611         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
39612         broken.
39613         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
39614         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
39615         * lib/ftello.c (rpl_ftello): Likewise.
39616         * tests/test-fseeko.c (main): Test this.
39617         * tests/test-fseeko.sh: Likewise.
39618         * tests/test-ftello.c (main): Likewise.
39619         * tests/test-ftello.sh: Likewise.
39620         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
39621         implies replacing fseek.
39622         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
39623         HAVE_FTELLO.
39624         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
39625         * modules/unistd (Makefile.am): Likewise.
39626         * lib/unistd_.h (lseek): Declare a replacement.
39627         * doc/functions/lseek.texi (lseek): Document this fix.
39628         * doc/functions/fseek.texi (fseek): Likewise.
39629         * doc/functions/ftell.texi (ftell): Likewise.
39630
39631 2007-05-24  Bruno Haible  <bruno@clisp.org>
39632
39633         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
39634         in the printed representation of a NaN.
39635         * tests/test-vasprintf-posix.c (test_function): Likewise.
39636         * tests/test-snprintf-posix.h (test_function): Likewise.
39637         * tests/test-sprintf-posix.h (test_function): Likewise.
39638         Reported by Eric Blake.
39639
39640 2007-05-23  Eric Blake  <ebb9@byu.net>
39641
39642         Fix fseeko/ftello on cygwin 1.5.24.
39643         * doc/functions/fseeko.texi (fseeko): Document the fix.
39644         * doc/functions/ftello.texi (ftello): Document the fix.
39645         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
39646         * doc/functions/stdout.text (stdout): New file.
39647         * doc/functions/stderr.text (stderr): New file.
39648         * doc/gnulib.texi (Function Substitutes): Use new files.
39649         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
39650         prior to 1.7.0.
39651         * tests/test-ftello.c (main): Likewise for ftello.
39652         * tests/test-fseeko.sh: New file.
39653         * tests/test-ftello.sh: New file.
39654         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
39655         with seekable stdin.
39656         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
39657         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
39658         (gl_REPLACE_FSEEKO): New macro.
39659         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
39660         * modules/fseeko (Files): Distribute fseeko.c.
39661         * modules/ftello (Files): Distribute ftello.c.
39662         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
39663         mode.
39664         * lib/ftello.c (rpl_ftello): New file.
39665         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
39666         fseeko, ftello.
39667         (gl_STDIN_LARGE_OFFSET): New macro.
39668         * modules/stdio (Makefile.am): Perform the replacement.
39669         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
39670
39671 2007-05-23  Bruno Haible  <bruno@clisp.org>
39672
39673         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
39674         GNULIB_POSIXCHECK is defined.
39675
39676 2007-05-21  Bruno Haible  <bruno@clisp.org>
39677
39678         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
39679         Check also the output for NaN arguments. When cross-compiling, guess
39680         no on IRIX.
39681         * lib/vasnprintf.c: Update comments.
39682         * tests/test-vasnprintf-posix.c (strisnan): New function.
39683         (test_function): Use it.
39684         * tests/test-vasprintf-posix.c (strisnan): New function.
39685         (test_function): Use it.
39686         * tests/test-snprintf-posix.h (strisnan): New function.
39687         (test_function): Use it.
39688         * tests/test-sprintf-posix.h (strisnan): New function.
39689         (test_function): Use it.
39690         Reported by Eric Blake.
39691
39692 2007-05-20  Bruno Haible  <bruno@clisp.org>
39693
39694         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
39695         numbers that fails on BeOS.
39696         * doc/functions/frexpl.texi: Update.
39697
39698 2007-05-20  Jim Meyering  <jim@meyering.net>
39699
39700         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
39701         forced upon us by glibc-2.6.
39702
39703 2007-05-20  Bruno Haible  <bruno@clisp.org>
39704
39705         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
39706         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
39707         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
39708         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
39709         NEED_PRINTF_INFINITE.
39710         (is_infinitel): New function.
39711         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
39712         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
39713         gl_PREREQ_VASNPRINTF_INFINITE.
39714         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
39715         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39716         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
39717         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
39718         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
39719         gl_PREREQ_VASNPRINTF_INFINITE.
39720         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39721         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39722         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39723         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39724         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39725         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39726         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39727         * doc/functions/fprintf.texi: Update.
39728         * doc/functions/printf.texi: Update.
39729         * doc/functions/snprintf.texi: Update.
39730         * doc/functions/sprintf.texi: Update.
39731         * doc/functions/vfprintf.texi: Update.
39732         * doc/functions/vprintf.texi: Update.
39733         * doc/functions/vsnprintf.texi: Update.
39734         * doc/functions/vsprintf.texi: Update.
39735
39736 2007-05-20  Bruno Haible  <bruno@clisp.org>
39737
39738         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
39739         was not found in libc.
39740         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
39741
39742 2007-05-20  Bruno Haible  <bruno@clisp.org>
39743
39744         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
39745         printed as "-nan" instead of "nan".
39746         * tests/test-vasprintf-posix.c (test_function): Likewise.
39747         * tests/test-snprintf-posix.h (test_function): Likewise.
39748         * tests/test-sprintf-posix.h (test_function): Likewise.
39749         Needed for HP-UX 11.
39750
39751 2007-05-20  Jim Meyering  <jim@meyering.net>
39752
39753         Fix buggy test for the fchownat-deref bug.
39754         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
39755         symlink required for the run-test.  Without it, this test would
39756         always declare that fchownat doesn't work, and client code would
39757         unnecessarily use the replacement function with fixed libc.
39758         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
39759         Reported by Greg Schafer.
39760
39761 2007-05-19  Bruno Haible  <bruno@clisp.org>
39762
39763         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
39764         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
39765         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
39766         Needed for IRIX 6.5 and Solaris 2.5.1.
39767
39768 2007-05-19  Bruno Haible  <bruno@clisp.org>
39769
39770         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
39771         (test_function): Skip tests involving -0.0 on platforms where
39772         -0.0 = 0.0.
39773         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
39774         (test_function): Skip tests involving -0.0 on platforms where
39775         -0.0 = 0.0.
39776         * tests/test-snprintf-posix.h (have_minus_zero): New function.
39777         (test_function): Skip tests involving -0.0 on platforms where
39778         -0.0 = 0.0.
39779         * tests/test-sprintf-posix.h (have_minus_zero): New function.
39780         (test_function): Skip tests involving -0.0 on platforms where
39781         -0.0 = 0.0.
39782         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
39783         tests.
39784         * tests/test-printf-posix.h (test_function): Likewise.
39785         * tests/test-printf-posix.output: Remove all -0.0 related results.
39786         Needed for IRIX 6.5.
39787
39788 2007-05-19  Bruno Haible  <bruno@clisp.org>
39789
39790         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
39791         printed as "nan0x7fffffff" instead of "nan".
39792         * tests/test-vasprintf-posix.c (test_function): Likewise.
39793         * tests/test-snprintf-posix.h (test_function): Likewise.
39794         * tests/test-sprintf-posix.h (test_function): Likewise.
39795         * tests/test-fprintf-posix.h (NaN): Remove macro.
39796         (test_function): Remove all NaN related tests.
39797         * tests/test-printf-posix.h (NaN): Remove macro.
39798         (test_function): Remove all NaN related tests.
39799         * tests/test-printf-posix.output: Remove all NaN related results.
39800         Needed for IRIX 6.5.
39801
39802 2007-05-19  Bruno Haible  <bruno@clisp.org>
39803
39804         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
39805         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
39806
39807 2007-05-19  Bruno Haible  <bruno@clisp.org>
39808
39809         * lib/float_.h: New file.
39810         * m4/float_h.m4: New file.
39811         * modules/float: New file.
39812         * modules/isnanl (Dependencies): Add float.
39813         * modules/isnanl-nolibm (Dependencies): Likewise.
39814         * modules/mathl (Dependencies): Likewise.
39815         * modules/printf-frexpl (Dependencies): Likewise.
39816         * modules/signbit (Dependencies): Likewise.
39817         * modules/vasnprintf (Dependencies): Likewise.
39818         * doc/headers/float.texi: Update.
39819
39820 2007-05-19  Jim Meyering  <jim@meyering.net>
39821
39822         * lib/utimens.c (gl_futimens): Rename from futimens,
39823         now that glibc-2.6 declares futimens.
39824         * lib/utimens.h: Likewise.
39825
39826 2007-05-19  Bruno Haible  <bruno@clisp.org>
39827
39828         Avoid test failures on mingw.
39829         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
39830         * tests/test-printf-posix.sh: Likewise.
39831         * tests/test-vfprintf-posix.sh: Likewise.
39832         * tests/test-vprintf-posix.sh: Likewise.
39833
39834 2007-05-19  Bruno Haible  <bruno@clisp.org>
39835
39836         Fix *printf result for NaN, Inf, -0.0 on mingw.
39837         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
39838         * lib/vasnprintf.c: Include math.h and isnan.h.
39839         (is_infinite_or_zero): New function.
39840         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
39841         values in the %f, %F, %e, %E, %g, %G directives.
39842         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
39843         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39844         gl_PRINTF_INFINITE and test its result. Invoke
39845         gl_PREREQ_VASNPRINTF_INFINITE.
39846         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39847         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39848         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39849         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39850         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39851         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39852         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39853         * doc/functions/fprintf.texi: Update.
39854         * doc/functions/printf.texi: Update.
39855         * doc/functions/snprintf.texi: Update.
39856         * doc/functions/sprintf.texi: Update.
39857         * doc/functions/vfprintf.texi: Update.
39858         * doc/functions/vprintf.texi: Update.
39859         * doc/functions/vsnprintf.texi: Update.
39860         * doc/functions/vsprintf.texi: Update.
39861
39862 2007-05-19  Bruno Haible  <bruno@clisp.org>
39863
39864         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
39865         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
39866         Instead of multiplying with 10^k, set extra_zeroes to k.
39867         (scale10_round_long_double): Remove function.
39868
39869 2007-05-18  Bruno Haible  <bruno@clisp.org>
39870
39871         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
39872         introduced on 2007-05-06.
39873
39874 2007-05-18  Bruno Haible  <bruno@clisp.org>
39875
39876         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
39877         %g directives.
39878         * tests/test-vasprintf-posix.c (test_function): Likewise.
39879         * tests/test-snprintf-posix.h (test_function): Likewise.
39880         * tests/test-sprintf-posix.h (test_function): Likewise.
39881
39882 2007-05-18  Bruno Haible  <bruno@clisp.org>
39883
39884         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
39885         (strmatch): New function.
39886         (test_function): Test the %f directive on numbers of various exponents.
39887         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
39888         (strmatch): New function.
39889         (test_function): Test the %f directive on numbers of various exponents.
39890         * tests/test-snprintf-posix.h (strmatch): New function.
39891         (test_function): Test the %f directive on numbers of various exponents.
39892         * tests/test-sprintf-posix.h (strmatch): New function.
39893         (test_function): Test the %f directive on numbers of various exponents.
39894         * tests/test-snprintf-posix.c (SIZEOF): New macro.
39895         * tests/test-sprintf-posix.c (SIZEOF): New macro.
39896         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
39897         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
39898
39899 2007-05-18  Bruno Haible  <bruno@clisp.org>
39900
39901         Add support for 'long double' number output.
39902         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
39903         * lib/vasnprintf.c: Include math.h and float+.h.
39904         (mp_limb_t): New type.
39905         (GMP_LIMB_BITS): New macro.
39906         (mp_twolimb_t): New type.
39907         (GMP_TWOLIMB_BITS): New macro.
39908         (mpn_t): New type.
39909         (multiply, divide, convert_to_decimal, decode_long_double,
39910         scale10_round_long_double, scale10_round_decimal_long_double,
39911         floorlog10l): New functions.
39912         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
39913         for the %f, %F, %e, %E, %g, %G directives.
39914         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
39915         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
39916         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
39917         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
39918         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
39919         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
39920         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
39921         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
39922         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
39923         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
39924         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
39925         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
39926         * modules/snprintf-posix (Depends-on): Likewise.
39927         * modules/sprintf-posix (Depends-on): Likewise.
39928         * modules/vasnprintf-posix (Depends-on): Likewise.
39929         * modules/vasprintf-posix (Depends-on): Likewise.
39930         * modules/vfprintf-posix (Depends-on): Likewise.
39931         * modules/vsnprintf-posix (Depends-on): Likewise.
39932         * modules/vsprintf-posix (Depends-on): Likewise.
39933         * modules/vasnprintf (Files): Add lib/float+.h.
39934         * doc/functions/fprintf.texi: Update.
39935         * doc/functions/printf.texi: Update.
39936         * doc/functions/snprintf.texi: Update.
39937         * doc/functions/sprintf.texi: Update.
39938         * doc/functions/vfprintf.texi: Update.
39939         * doc/functions/vprintf.texi: Update.
39940         * doc/functions/vsnprintf.texi: Update.
39941         * doc/functions/vsprintf.texi: Update.
39942
39943 2007-05-18  Bruno Haible  <bruno@clisp.org>
39944
39945         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
39946
39947 2007-05-18  Bruno Haible  <bruno@clisp.org>
39948
39949         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
39950         for printing 64-bit integers. Needed for mingw.
39951
39952 2007-05-18  Bruno Haible  <bruno@clisp.org>
39953
39954         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
39955         gl_FUNC_FREXPL_WORKS.
39956         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
39957
39958 2007-05-18  Bruno Haible  <bruno@clisp.org>
39959
39960         * modules/frexpl-nolibm-tests: New file.
39961
39962         * modules/frexpl-nolibm: New file.
39963         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
39964
39965 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
39966
39967         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
39968         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
39969         GCC 4.2, which otherwise issues a lot of warnings.
39970         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
39971         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
39972         Likewise.
39973         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
39974         * modules/iconv_open (iconv.h): Likewise.
39975         * modules/locale (locale.h): Likewise.
39976         * modules/netinet_in (netinet/in.h): Likewise.
39977         * modules/sys_select (sys_select.h): Likewise.
39978         * modules/sys_socket (sys/socket.h): Likewise.
39979         * modules/sys_stat (sys/stat.h): Likewise.
39980         * modules/sysexits (sysexits.h): Likewise.
39981         * modules/unistd (unistd.h): Likewise.
39982
39983 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39984
39985         * modules/closein-tests (Makefile.am): Distribute
39986         `test-closein.sh'.
39987
39988 2007-05-17  Bruno Haible  <bruno@clisp.org>
39989
39990         * tests/test-printf-posix.output: Renamed from
39991         tests/test-fprintf-posix.out.
39992         * modules/fprintf-posix-tests: Update.
39993         * modules/printf-posix-tests: Update.
39994         * modules/vfprintf-posix-tests: Update.
39995         * modules/vprintf-posix-tests: Update.
39996         * tests/test-fprintf-posix.sh: Update.
39997         * tests/test-printf-posix.sh: Update.
39998         * tests/test-vfprintf-posix.sh: Update.
39999         * tests/test-vprintf-posix.sh: Update.
40000         Reported by Ralf Wildenhues.
40001
40002 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
40003
40004         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
40005         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
40006         GCC 4.2, which otherwise issues a lot of warnings.
40007         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
40008         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
40009         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
40010         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
40011         it should no longer be needed.
40012         * lib/string_.h: Likewise.
40013         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
40014         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
40015         * modules/inttypes (inttypes.h): Likewise.
40016         * modules/math (math.h): Likewise.
40017         * modules/search (search.h): Likewise.
40018         * modules/signal (signal.h): Likewise.
40019         * modules/stdint (stdint.h): Likewise.
40020         * modules/stdio (stdio.h): Likewise.
40021         * modules/stdlib (stdlib.h): Likewise.
40022         * modules/string (string.h): Likewise.
40023         * modules/sys_time (sys/time.h): Likewise.
40024         * modules/time (time.h): Likewise.
40025         * modules/wchar (wchar.h): Likewise.
40026         * modules/wctype (wtype.h): Likewise.
40027
40028 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
40029
40030         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
40031
40032 2007-05-13  Bruno Haible  <bruno@clisp.org>
40033
40034         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
40035         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
40036         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
40037         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
40038         (gl_PREREQ_STRTOK_R): Don't require it here.
40039
40040 2007-05-13  Bruno Haible  <bruno@clisp.org>
40041
40042         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
40043         when used in C++ mode.
40044
40045 2007-05-12  Bruno Haible  <bruno@clisp.org>
40046
40047         * lib/linebuffer.h: Tweak doc.
40048         * lib/linebuffer.c: Likewise.
40049
40050 2007-05-12  James Youngman  <jay@gnu.org>
40051
40052         * lib/linebuffer.c (readlinebuffer_delim): New function,
40053         like readlinebuffer, but use a caller-specified delimiter.
40054         (readlinebuffer): Just call readlinebuffer_delim with '\n'
40055         as the delimiter.
40056         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
40057
40058 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
40059
40060         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
40061         * modules/openat (Files): Remove openat-die.c.
40062         (Depends-on): Add openat-die.
40063         * modules/openat-die: New module.
40064
40065 2007-05-06  Bruno Haible  <bruno@clisp.org>
40066
40067         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
40068         Update with info about Cygwin.
40069         * doc/functions/fprintf.texi: Update.
40070         * doc/functions/printf.texi: Update.
40071         * doc/functions/snprintf.texi: Update.
40072         * doc/functions/sprintf.texi: Update.
40073         * doc/functions/vfprintf.texi: Update.
40074         * doc/functions/vprintf.texi: Update.
40075         * doc/functions/vsnprintf.texi: Update.
40076         * doc/functions/vsprintf.texi: Update.
40077         Reported by Eric Blake.
40078
40079 2007-05-06  Bruno Haible  <bruno@clisp.org>
40080
40081         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
40082         padding ourselves for the floating-point directives.
40083         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
40084         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
40085         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
40086         gl_PRINTF_FLAG_ZERO and test its result. Invoke
40087         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
40088         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40089         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
40090         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40091         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40092         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40093         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40094         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40095         * tests/test-snprintf-posix.h (test_function): Also check the width
40096         and some flags in the %f directive.
40097         * tests/test-sprintf-posix.h (test_function): Likewise.
40098         * tests/test-vasnprintf-posix.c (test_function): Likewise.
40099         * tests/test-vasprintf-posix.c (test_function): Likewise.
40100         * doc/functions/fprintf.texi: Update.
40101         * doc/functions/printf.texi: Update.
40102         * doc/functions/snprintf.texi: Update.
40103         * doc/functions/sprintf.texi: Update.
40104         * doc/functions/vfprintf.texi: Update.
40105         * doc/functions/vprintf.texi: Update.
40106         * doc/functions/vsnprintf.texi: Update.
40107         * doc/functions/vsprintf.texi: Update.
40108
40109 2007-05-06  Bruno Haible  <bruno@clisp.org>
40110
40111         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
40112         pass the ' flag character to sprintf or snprintf.
40113         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
40114         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
40115         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
40116         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
40117         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
40118         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
40119         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
40120         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
40121         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
40122         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
40123         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40124         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
40125         * tests/test-snprintf-posix.h (test_function): Also check the grouping
40126         flag.
40127         * tests/test-sprintf-posix.h (test_function): Likewise.
40128         * tests/test-vasnprintf-posix.c (test_function): Likewise.
40129         * tests/test-vasprintf-posix.c (test_function): Likewise.
40130         * doc/functions/fprintf.texi: Update.
40131         * doc/functions/printf.texi: Update.
40132         * doc/functions/snprintf.texi: Update.
40133         * doc/functions/sprintf.texi: Update.
40134         * doc/functions/vfprintf.texi: Update.
40135         * doc/functions/vprintf.texi: Update.
40136         * doc/functions/vsnprintf.texi: Update.
40137         * doc/functions/vsprintf.texi: Update.
40138
40139 2007-05-01  Bruno Haible  <bruno@clisp.org>
40140
40141         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
40142
40143 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
40144
40145         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
40146         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
40147
40148 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
40149
40150         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
40151         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
40152         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
40153
40154 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
40155
40156         * lib/argp-help.c (struct hol_entry): New member `ord'.
40157         (HOL_ENTRY_PTRCMP): Use ord for comparison
40158         (hol_sort): Initialize ord.
40159
40160 2007-05-01  Bruno Haible  <bruno@clisp.org>
40161
40162         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
40163         Reported by Eric Blake.
40164         * doc/gnulib.texi (Function Substitutes): Update.
40165
40166 2007-05-01  Bruno Haible  <bruno@clisp.org>
40167
40168         * doc/functions.texi: Remove file, now redundant through
40169         doc/functions/*.texi.
40170
40171 2007-05-01  Bruno Haible  <bruno@clisp.org>
40172
40173         * modules/argp (Depends-on): Add sleep.
40174
40175 2007-05-01  Bruno Haible  <bruno@clisp.org>
40176
40177         * modules/sleep-tests: New file.
40178         * tests/test-sleep.c: New file.
40179
40180         * modules/sleep: New file.
40181         * lib/sleep.c: New file.
40182         * m4/sleep.m4: New file.
40183         * lib/unistd_.h (sleep): New declaration.
40184         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
40185         HAVE_SLEEP.
40186         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
40187         * doc/functions/sleep.texi: Document the sleep module.
40188
40189 2007-05-01  Bruno Haible  <bruno@clisp.org>
40190
40191         * lib/sigprocmask.h: Remove file.
40192         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
40193         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
40194         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
40195         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
40196         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
40197         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
40198         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
40199         HAVE_SIGSET_T as a shell variable.
40200         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
40201         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
40202         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
40203         (Depends-on): Add signal. Remove verify.
40204         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
40205         (Include): Mention <signal.h> instead of sigprocmask.h.
40206         * NEWS: Mention the change.
40207         * lib/fatal-signal.c: Don't include sigprocmask.h.
40208
40209 2007-05-01  Bruno Haible  <bruno@clisp.org>
40210
40211         * modules/signal: New file.
40212         * lib/signal_.h: New file.
40213         * m4/signal_h.m4: New file.
40214
40215 2007-05-01  Bruno Haible  <bruno@clisp.org>
40216
40217         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
40218         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
40219         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
40220         HAVE_WCTYPE_CTMP_BUG into wctype.h.
40221
40222 2007-05-01  Bruno Haible  <bruno@clisp.org>
40223
40224         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
40225         configure time.
40226         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
40227         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
40228         * modules/sys_stat (Makefile.am): Substitute their values into
40229         sys/stat.h.
40230
40231 2007-05-01  Bruno Haible  <bruno@clisp.org>
40232
40233         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
40234         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
40235         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
40236
40237 2007-05-01  Bruno Haible  <bruno@clisp.org>
40238
40239         * doc/header/assert.texi: Undo last change: don't mention the gnulib
40240         'assert' module here.
40241
40242 2007-05-01  Bruno Haible  <bruno@clisp.org>
40243
40244         * doc/functions/*.texi: New files.
40245         * doc/functions/google-ranking.txt: New file.
40246         * doc/gnulib.texi (Function Substitutes): New chapter.
40247         (ctime, inet_ntoa): Remove sections.
40248         * doc/ctime.texi: Remove file.
40249         * doc/inet_ntoa.texi: Remove file.
40250         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
40251         dependencies.
40252         (%.info): New rule, specifying a --reference-limit.
40253
40254 2007-05-01  Bruno Haible  <bruno@clisp.org>
40255
40256         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
40257
40258 2007-05-01  Bruno Haible  <bruno@clisp.org>
40259
40260         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
40261         the portability of 'mkdir' to mingw systems.
40262
40263 2007-05-01  Bruno Haible  <bruno@clisp.org>
40264
40265         * doc/headers/google-ranking.txt: New file.
40266
40267 2007-04-30  Eric Blake  <ebb9@byu.net>
40268
40269         Prefer fseeko to fseek.
40270         * modules/getpass (Depends-on): Add fseeko.
40271         * lib/getpass.c (getpass): Use fseeko, not fseek.
40272
40273 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
40274
40275         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
40276         assumes the sorting is stable, while most qsort implementations
40277         are not.  Use argument addresses to ensure they never compare as
40278         equal.
40279
40280         * tests/test-argp-2.sh (usage-indent test): Fix output
40281         (func_compare): Restore diff options
40282         * tests/test-argp.c: Restore #include "progname.h"
40283
40284 2007-04-29  Bruno Haible  <bruno@clisp.org>
40285
40286         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
40287         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
40288         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
40289         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
40290         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
40291         (configure.ac): Define CHECK_SNPRINTF_POSIX.
40292         (TESTS, check_PROGRAMS): Add test-snprintf.
40293         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
40294         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
40295         (TESTS, check_PROGRAMS): Add test-vsnprintf.
40296         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
40297         assertions that fail on HP-UX, OSF/1, or IRIX.
40298         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
40299
40300 2007-04-29  Bruno Haible  <bruno@clisp.org>
40301
40302         * MODULES.html.sh (posix_functions): Remove 'contents'.
40303
40304 2007-04-29  Karl Berry  <karl@gnu.org>
40305
40306         * config/srclist.txt (gendocs_template_min): new entry.
40307
40308 2007-04-29  Bruno Haible  <bruno@clisp.org>
40309
40310         Work around fpurge bug on BSD systems.
40311         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
40312         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
40313         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
40314         fpurge to rpl_fpurge if the system already has this function.
40315         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
40316         the case where the system already has this function. Correct invariants
40317         on BSD systems.
40318         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
40319         BSD systems.
40320
40321 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
40322
40323         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
40324         proposed by Sven Verdoolaege.
40325
40326         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
40327         options.
40328         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
40329         (usage and help tests): Update
40330
40331 2007-04-29  Bruno Haible  <bruno@clisp.org>
40332
40333         * tests/test-fflush.c (main): Use a file of size 17, not 10.
40334         Print more information in case of failure. Disable a test on BeOS.
40335
40336 2007-04-29  Bruno Haible  <bruno@clisp.org>
40337
40338         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
40339         This helps debugging on systems on which no gdb is available.
40340
40341 2007-04-29  Bruno Haible  <bruno@clisp.org>
40342
40343         * lib/freading.h: Improve comments.
40344         * lib/fwriting.h: Likewise.
40345         * tests/test-freading.c (main): Don't check freading immediately after
40346         repositioning. Needed for glibc.
40347
40348 2007-04-29  Bruno Haible  <bruno@clisp.org>
40349
40350         * lib/freading.c (freading): Trivial simplification.
40351
40352 2007-04-28  Bruno Haible  <bruno@clisp.org>
40353
40354         * tests/test-fwriting.c (main): Also test the interaction between
40355         fflush and fwriting.
40356         * modules/fwriting-tests (Depends-on): Add fflush.
40357
40358         * tests/test-freading.c (main): Also test the interaction between
40359         fflush and freading.
40360         * modules/freading-tests (Depends-on): Add fflush.
40361
40362 2007-04-28  Bruno Haible  <bruno@clisp.org>
40363
40364         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
40365         fseeko and ftello.
40366         Suggested by Eric Blake.
40367
40368 2007-04-28  Jim Meyering  <jim@meyering.net>
40369
40370         Avoid false-negative in gl_STDINT_H's C99 conformance test.
40371         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
40372         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
40373
40374 2007-04-27  Eric Blake  <ebb9@byu.net>
40375
40376         * doc/headers/assert.texi (assert.h): Document assert module use.
40377
40378 2007-04-27  Bruno Haible  <bruno@clisp.org>
40379
40380         * doc/headers/*.texi: New files.
40381         * doc/gnulib.texi (Header File Substitutes): New chapter.
40382         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
40383         dependencies.
40384         (standards.info ,standards.html, standards.dvi): Update dependencies.
40385         (mostlyclean, clean): New targets.
40386
40387 2007-04-27  Bruno Haible  <bruno@clisp.org>
40388
40389         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
40390         * modules/sysexits (Files, Makefile.am): Update.
40391
40392         * lib/sys_socket_.h: Renamed from lib/socket_.h.
40393         * modules/sys_socket (Files, Makefile.am): Update.
40394
40395         * lib/sys_stat_.h: Renamed from lib/stat_.h.
40396         * modules/sys_stat (Files, Makefile.am): Update.
40397
40398 2007-04-27  Eric Blake  <ebb9@byu.net>
40399
40400         * lib/freading.h: Improve comments.
40401         * lib/fwriting.h: Likewise.
40402         * lib/fflush.c: Likewise.
40403
40404         Fix closein for mingw.
40405         * modules/closein-tests: Add tests for closein.
40406         * tests/test-closein.c: New file.
40407         * tests/test-closein.sh: Likewise.
40408         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
40409         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
40410
40411 2007-04-27  Bruno Haible  <bruno@clisp.org>
40412
40413         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
40414         version is < 6.
40415         * lib/math_.h [__DECC]: Likewise.
40416         * lib/stdio_.h [__DECC]: Likewise.
40417         * lib/stdlib_.h [__DECC]: Likewise.
40418         * lib/string_.h [__DECC]: Likewise.
40419         * lib/time_.h [__DECC]: Likewise.
40420         * lib/wchar_.h [__DECC]: Likewise.
40421         * lib/wctype_.h [__DECC]: Likewise.
40422
40423 2007-04-27  Bruno Haible  <bruno@clisp.org>
40424
40425         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
40426
40427 2007-04-27  Bruno Haible  <bruno@clisp.org>
40428
40429         * lib/fflush.c: Add comments.
40430         * modules/fpurge-tests (Depends-on): Add fflush.
40431         * modules/freadable-tests (Depends-on): Likewise.
40432         * modules/fwritable-tests (Depends-on): Likewise.
40433
40434 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
40435
40436         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
40437         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
40438         Report by Bruno Haible <bruno@clisp.org>.
40439
40440 2007-04-26  Eric Blake  <ebb9@byu.net>
40441
40442         Fix fflush on mingw.
40443         * modules/fflush (Depends-on): Add freading.
40444         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
40445         but unread data.
40446
40447 2007-04-26  Eric Blake  <ebb9@byu.net>
40448         and Bruno Haible  <bruno@clisp.org>
40449
40450         Implement freading and fwriting.
40451         * lib/freading.c: New file.
40452         * lib/freading.h: Likewise.
40453         * m4/freading.m4: Likewise.
40454         * modules/freading: Likewise.
40455         * modules/freading-tests: Likewise.
40456         * tests/test-freading.c: Likewise.
40457         * lib/fwriting.c: New file.
40458         * lib/fwriting.h: Likewise.
40459         * m4/fwriting.m4: Likewise.
40460         * modules/fwriting: Likewise.
40461         * modules/fwriting-tests: Likewise.
40462         * tests/test-fwriting.c: Likewise.
40463         * MODULES.html.sh (File stream based Input/Output): Mention them.
40464
40465 2007-04-26  Bruno Haible  <bruno@clisp.org>
40466
40467         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
40468         'long' when we assume it.
40469         Suggested by Eric Blake.
40470
40471 2007-04-26  Bruno Haible  <bruno@clisp.org>
40472
40473         Ensure fseeko, ftello are declared on glibc systems.
40474         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
40475         * modules/fseeko (configure.ac-early): Likewise.
40476         * modules/ftello (configure.ac-early): Likewise.
40477         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
40478         AC_FUNC_FSEEKO for this.
40479         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
40480         (gl_CHECK_FSEEKO): Remove macro.
40481
40482 2007-04-26  Bruno Haible  <bruno@clisp.org>
40483
40484         * tests/test-fflush.c (main): Also check the ftell result after
40485         fflush and fseek/fseeko.
40486         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
40487         file descriptor position cache in the stream.
40488         * lib/fseeko.c (rpl_fseeko): Likewise.
40489
40490 2007-04-26  Bruno Haible  <bruno@clisp.org>
40491
40492         * modules/fflush-tests (Depends-on): Add fseeko.
40493
40494 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
40495             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40496
40497         * lib/argz_.h: ensure error_t definition is obtained in same
40498         mechanism system argz.h would have.
40499         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
40500         argz facilities are known bad.  Err on the side of caution if
40501         cross-compiling.
40502
40503 2007-04-25  Eric Blake  <ebb9@byu.net>
40504
40505         * lib/fpurge.c (includes): Use stdlib.h for free.
40506         * tests/test-fflush.c (main): Also test fflush-fseeko.
40507
40508 2007-04-25  Bruno Haible  <bruno@clisp.org>
40509
40510         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
40511         * lib/fseeko.c: New file.
40512         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
40513         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
40514         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
40515         gl_FUNC_FSEEKO.
40516         (gl_FUNC_FSEEKO): Invoke it.
40517         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
40518         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
40519         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
40520
40521 2007-04-25  Bruno Haible  <bruno@clisp.org>
40522
40523         * modules/fflush (Depends-on): Add ftello.
40524
40525 2007-04-25  Bruno Haible  <bruno@clisp.org>
40526
40527         * modules/ftello-tests: New file.
40528         * tests/test-ftello.c: New file.
40529
40530         * modules/ftello: New file.
40531         * m4/ftello.m4: New file.
40532         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
40533         HAVE_FTELLO.
40534         * lib/stdio_.h (ftello): New declaration.
40535         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
40536         HAVE_FTELLO.
40537
40538 2007-04-25  Bruno Haible  <bruno@clisp.org>
40539
40540         * modules/fseeko-tests: New file.
40541         * tests/test-fseeko.c: New file.
40542
40543         * modules/fseeko: New file.
40544         * m4/fseeko.m4: New file.
40545         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
40546         HAVE_FSEEKO.
40547         * lib/stdio_.h (fseeko): New declaration.
40548         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
40549         HAVE_FSEEKO.
40550
40551 2007-04-25  Bruno Haible  <bruno@clisp.org>
40552
40553         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
40554
40555 2007-04-25  Bruno Haible  <bruno@clisp.org>
40556
40557         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
40558         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
40559         * tests/test-unistd.c: Likewise.
40560         * tests/test-fcntl.c: Likewise.
40561
40562 2007-04-23  Eric Blake  <ebb9@byu.net>
40563
40564         * lib/fflush.c: Fix missing include.
40565         Reported by Bruno Haible.
40566
40567 2007-04-23  Bruno Haible  <bruno@clisp.org>
40568
40569         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
40570         Reported by Eric Blake.
40571
40572 2007-04-23  Bruno Haible  <bruno@clisp.org>
40573
40574         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
40575
40576 2007-04-23  Bruno Haible  <bruno@clisp.org>
40577
40578         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
40579
40580 2007-04-23  Bruno Haible  <bruno@clisp.org>
40581
40582         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
40583         Needed on HP-UX 11.
40584
40585 2007-04-16  Eric Blake  <ebb9@byu.net>
40586
40587         Make fflush rely on fpurge.
40588         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
40589         open coding all variants.
40590         * modules/fflush (Depends-on): Add fpurge and unistd.
40591         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
40592         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
40593
40594         Fix --with-tests compilation on cygwin.
40595         * modules/argmatch-tests (Makefile.am): List gnulib library first
40596         in LDADD.
40597         * modules/argp-tests (Makefile.am): Likewise.
40598         * modules/array-list-tests (Makefile.am): Likewise.
40599         * modules/array-oset-tests (Makefile.am): Likewise.
40600         * modules/avltree-list-tests (Makefile.am): Likewise.
40601         * modules/avltree-oset-tests (Makefile.am): Likewise.
40602         * modules/avltreehash-list-tests (Makefile.am): Likewise.
40603         * modules/carray-list-tests (Makefile.am): Likewise.
40604         * modules/dirname-tests (Makefile.am): Likewise.
40605         * modules/frexp-tests (Makefile.am): Likewise.
40606         * modules/isnanl-tests (Makefile.am): Likewise.
40607         * modules/linked-list-tests (Makefile.am): Likewise.
40608         * modules/linkedhash-list-tests (Makefile.am): Likewise.
40609         * modules/lock-tests (Makefile.am): Likewise.
40610         * modules/rbtree-list-tests (Makefile.am): Likewise.
40611         * modules/rbtree-oset-tests (Makefile.am): Likewise.
40612         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
40613         * modules/tls-tests (Makefile.am): Likewise.
40614         * modules/tsearch-tests (Makefile.am): Likewise.
40615         * modules/xvasprintf-tests (Makefile.am): Likewise.
40616
40617         Fix fpurge for cygwin.
40618         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
40619         value.
40620         * modules/fpurge-tests (Depends-on): Clean up trash.
40621
40622 2007-04-16  Simon Josefsson  <simon@josefsson.org>
40623
40624         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
40625
40626         * m4/autobuild.m4: Re-indent.
40627
40628 2007-04-13  Bruno Haible  <bruno@clisp.org>
40629
40630         * modules/fpurge-tests: New file.
40631         * tests/test-fpurge.c: New file.
40632
40633         * modules/fpurge: New file.
40634         * lib/fpurge.h: New file.
40635         * lib/fpurge.c: New file.
40636         * m4/fpurge.m4: New file.
40637
40638 2007-04-13  Bruno Haible  <bruno@clisp.org>
40639
40640         * modules/fbufmode-tests: New file.
40641         * tests/test-fbufmode.c: New file.
40642
40643         * modules/fbufmode: New file.
40644         * lib/fbufmode.h: New file.
40645         * lib/fbufmode.c: New file.
40646         * m4/fbufmode.m4: New file.
40647
40648 2007-04-13  Bruno Haible  <bruno@clisp.org>
40649
40650         * modules/fwritable-tests: New file.
40651         * tests/test-fwritable.c: New file.
40652
40653         * modules/fwritable: New file.
40654         * lib/fwritable.h: New file.
40655         * lib/fwritable.c: New file.
40656         * m4/fwritable.m4: New file.
40657
40658 2007-04-13  Bruno Haible  <bruno@clisp.org>
40659
40660         * modules/freadable-tests: New file.
40661         * tests/test-freadable.c: New file.
40662
40663         * modules/freadable: New file.
40664         * lib/freadable.h: New file.
40665         * lib/freadable.c: New file.
40666         * m4/freadable.m4: New file.
40667
40668 2007-04-13  Bruno Haible  <bruno@clisp.org>
40669
40670         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
40671         MOSTLYCLEANFILES.
40672
40673 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
40674
40675         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
40676         gzip bootstrap.conf to avoid dragging in i18n machinery.
40677         (gnulib_tool_option): Use it.
40678
40679 2007-04-13  Bruno Haible  <bruno@clisp.org>
40680
40681         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
40682         %F directives.
40683         * tests/test-vasprintf-posix.c (test_function): Likewise.
40684         * tests/test-snprintf-posix.h (test_function): Likewise.
40685         * tests/test-sprintf-posix.h (test_function): Likewise.
40686         * tests/test-fprintf-posix.h (test_function): Likewise.
40687         * tests/test-printf-posix.h (test_function): Likewise.
40688         * tests/test-fprintf-posix.out: Likewise.
40689
40690 2007-04-13  Bruno Haible  <bruno@clisp.org>
40691
40692         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
40693         * modules/tls-tests (configure.ac): Likewise.
40694         Reported by Arto C. Nirkko <anirkko@insel.ch>.
40695
40696 2007-04-13  Bruno Haible  <bruno@clisp.org>
40697
40698         * lib/tls.c (glthread_tls_get): Fix return type.
40699         Patch by Arto C. Nirkko <anirkko@insel.ch>.
40700
40701 2007-04-12  Eric Blake  <ebb9@byu.net>
40702
40703         * modules/gettime (Depends-on): Remove gettime.
40704         Reported by Dmitry V. Levin.
40705
40706 2007-04-12  Bruno Haible  <bruno@clisp.org>
40707
40708         * modules/fflush (Include): Mention <stdio.h>.
40709         * modules/strtoimax (Include): Mention <inttypes.h>.
40710         * modules/strtoumax (Include): Likewise.
40711
40712 2007-04-12  Eric Blake  <ebb9@byu.net>
40713
40714         * .cvsignore: New file.
40715         * .gitignore: Likewise.
40716
40717 2007-04-12  Bruno Haible  <bruno@clisp.org>
40718
40719         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
40720         not before, since $(LDADD) often contains libgnu.a.
40721         * modules/striconv-tests (test_striconv_LDADD): Likewise.
40722         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
40723         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
40724         Needed on Cygwin.
40725
40726 2007-04-12  Eric Blake  <ebb9@byu.net>
40727
40728         Work around glibc's failure to flush stdin on fclose.
40729         * lib/closein.c (close_stdin): Flush stdin before closing.
40730
40731         Work around glibc's failure to reset seekable stdin on exit.
40732         * modules/closein: New module.
40733         * lib/closein.c: New file.
40734         * lib/closein.h: Likewise.
40735         * m4/closein.m4: Likewise.
40736         * MODULES.html.sh (File stream based Input/Output): Document it.
40737
40738 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40739
40740         * gnulib-tool: Rename generated 'autobuild' script to
40741         'do-autobuild' in --create-megatestdir output.
40742
40743         * doc/gnulib.texi (Build robot for gnulib): Fix.
40744
40745 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40746
40747         * modules/sysexits (Depends-on): Add absolute-header.
40748
40749 2007-04-12  Eric Blake  <ebb9@byu.net>
40750
40751         No need to preserve errno on success.
40752         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
40753         Reported by Bruno Haible.
40754
40755 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40756
40757         * MODULES.html.sh (Support for maintaining and releasing
40758         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
40759
40760 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40761
40762         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
40763
40764 2007-04-12  Simon Josefsson  <simon@josefsson.org>
40765
40766         * modules/autobuild: New module.
40767
40768         * m4/autobuild.m4: New file.
40769
40770 2007-04-11  Bruno Haible  <bruno@clisp.org>
40771
40772         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
40773         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
40774         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
40775         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
40776         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
40777         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40778         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40779         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
40780         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40781         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40782         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
40783         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40784         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40785         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
40786         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40787         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40788         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
40789         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40790         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40791         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
40792         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40793         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40794         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
40795         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40796         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40797         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
40798         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
40799         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
40800         Reported by Eric Blake.
40801
40802 2007-04-11  Bruno Haible  <bruno@clisp.org>
40803
40804         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
40805
40806 2007-04-10  Bruno Haible  <bruno@clisp.org>
40807
40808         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
40809         for NaN and Infinity. Needed on FreeBSD 6.1.
40810         * tests/test-vasnprintf-posix.c (test_function): Undo last change
40811         regarding results for "%010a" of Infinity and NaN.
40812         * tests/test-vasprintf-posix.c (test_function): Likewise.
40813         * tests/test-snprintf-posix.h (test_function): Likewise.
40814         * tests/test-sprintf-posix.h (test_function): Likewise.
40815         * tests/test-fprintf-posix.h (test_function): Likewise.
40816         * tests/test-printf-posix.h (test_function): Likewise.
40817         * tests/test-fprintf-posix.out: Likewise.
40818
40819 2007-04-10  Bruno Haible  <bruno@clisp.org>
40820
40821         * modules/locale-tests: New file.
40822         * tests/test-locale.c: New file.
40823
40824         * modules/locale: New file.
40825         * lib/locale_.h: New file.
40826         * m4/locale_h.m4: New file.
40827
40828 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
40829             Bruno Haible  <bruno@clisp.org>
40830
40831         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
40832         be determined, test for availability of the copysignf, copysign,
40833         copysignl functions.
40834         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
40835         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
40836         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
40837
40838 2007-04-09  Eric Blake  <ebb9@byu.net>
40839
40840         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
40841         * modules/stdio (Makefile.am): Support fflush.
40842         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40843         * modules/fflush: New file.
40844         * lib/fflush.c: Likewise.
40845         * m4/fflush.m4: Likewise.
40846         * modules/fflush-tests: New test.
40847         * tests/test-fflush.c: Likewise.
40848         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
40849
40850 2007-04-06  Bruno Haible  <bruno@clisp.org>
40851
40852         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
40853         (VASNPRINTF): Use signbit for faster determination whether to print a
40854         minus sign.
40855         * modules/vasnprintf (Files): Remove lib/float+.h.
40856         * modules/fprintf-posix (Depends-on): Add signbit.
40857         * modules/snprintf-posix (Depends-on): Likewise.
40858         * modules/sprintf-posix (Depends-on): Likewise.
40859         * modules/vasnprintf-posix (Depends-on): Likewise.
40860         * modules/vasprintf-posix (Depends-on): Likewise.
40861         * modules/vfprintf-posix (Depends-on): Likewise.
40862         * modules/vsnprintf-posix (Depends-on): Likewise.
40863         * modules/vsprintf-posix (Depends-on): Likewise.
40864
40865 2007-04-06  Bruno Haible  <bruno@clisp.org>
40866
40867         * tests/test-frexp.c (main): Test also the sign bit of zero results.
40868         * tests/test-frexpl.c (main): Likewise.
40869         * tests/test-ldexpl.c (main): Likewise.
40870         * modules/frexp-tests (Depends-on): Add signbit.
40871         * modules/frexpl-tests (Depdends-on): Likewise.
40872         * modules/ldexpl-tests (Depdends-on): Likewise.
40873
40874 2007-04-06  Bruno Haible  <bruno@clisp.org>
40875
40876         * modules/signbit-tests: New file.
40877         * tests/test-signbit.c: New file.
40878
40879         * modules/signbit: New file.
40880         * lib/signbitf.c: New file.
40881         * lib/signbitd.c: New file.
40882         * lib/signbitl.c: New file.
40883         * m4/signbit.m4: New file.
40884         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
40885         (signbit): New macro.
40886         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
40887         REPLACE_SIGNBIT.
40888         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
40889         REPLACE_FREXPL into math.h.
40890
40891 2007-04-06  Bruno Haible  <bruno@clisp.org>
40892
40893         * modules/isnanf-nolibm-tests: New file.
40894         * tests/test-isnanf.c: New file.
40895
40896         * modules/isnanf-nolibm: New file.
40897         * lib/isnanf.h: New file.
40898         * lib/isnanf.c: New file.
40899         * lib/isnan.c: Consider the USE_FLOAT macro.
40900         * m4/isnanf.m4: New file.
40901
40902 2007-04-06  Bruno Haible  <bruno@clisp.org>
40903
40904         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
40905         (Link): New section.
40906
40907         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
40908
40909 2007-04-06  Bruno Haible  <bruno@clisp.org>
40910
40911         Assume the 'long double' type.
40912         * m4/longdouble.m4: Remove file.
40913         * config/srclist.txt: Don't mention longdouble.m4.
40914         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
40915         * lib/float+.h: Likewise.
40916         * lib/frexp.c: Likewise.
40917         * lib/printf-args.h: Likewise.
40918         * lib/printf-args.c: Likewise.
40919         * lib/printf-frexp.c: Likewise.
40920         * lib/printf-parse.c: Likewise.
40921         * lib/vasnprintf.c: Likewise.
40922         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
40923         * m4/intl.m4: Likewise.
40924         * m4/isnanl.m4: Likewise.
40925         * m4/printf.m4: Likewise.
40926         * m4/printf-frexpl.m4: Likewise.
40927         * m4/vasnprintf.m4: Likewise.
40928         * modules/allocsa (Files): Remove m4/longdouble.m4.
40929         * modules/gettext (Files): Likewise.
40930         * modules/relocatable-prog-wrapper (Files): Likewise.
40931         * modules/vasnprintf (Files): Likewise.
40932         * modules/isnanl (Files): Likewise.
40933         (Include): Simplify.
40934         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
40935         (Include): Simplify.
40936         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
40937         (Include): Simplify.
40938         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
40939         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40940         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
40941         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40942         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
40943         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40944         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
40945         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40946         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
40947         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40948         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
40949         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
40950         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
40951         * tests/test-isnanl.c: Likewise.
40952         * tests/test-snprintf-posix.h: Likewise.
40953         * tests/test-sprintf-posix.h: Likewise.
40954         * tests/test-vasnprintf-posix.c: Likewise.
40955         * tests/test-vasnprintf-posix2.c: Likewise.
40956         * tests/test-vasprintf-posix.c: Likewise.
40957
40958 2007-04-06  Bruno Haible  <bruno@clisp.org>
40959
40960         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
40961         * lib/math_.h [__DECC]: Include the overridden include file through
40962         #include_next, outside the double-inclusion guard.
40963         * lib/stdio_.h [__DECC]: Likewise.
40964         * lib/stdlib_.h [__DECC]: Likewise.
40965         * lib/string_.h [__DECC]: Likewise.
40966         * lib/time_.h [__DECC]: Likewise.
40967         * lib/wchar_.h [__DECC]: Likewise.
40968         * lib/wctype_.h [__DECC]: Likewise.
40969         * lib/inttypes_.h [__DECC]: Likewise.
40970         Reported by Albert Chin <china@thewrittenword.com> in
40971         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
40972
40973 2007-04-04  Eric Blake  <ebb9@byu.net>
40974
40975         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
40976         1.5.x.
40977
40978 2007-04-04  Bruno Haible  <bruno@clisp.org>
40979
40980         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
40981         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
40982
40983 2007-04-04  Bruno Haible  <bruno@clisp.org>
40984
40985         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
40986         results for "%010a" of Infinity and NaN.
40987         * tests/test-vasprintf-posix.c (test_function): Likewise.
40988         * tests/test-snprintf-posix.h (test_function): Likewise.
40989         * tests/test-sprintf-posix.h (test_function): Likewise.
40990         * tests/test-fprintf-posix.h (test_function): Remove these tests.
40991         * tests/test-printf-posix.h (test_function): Likewise.
40992         * tests/test-fprintf-posix.out: Update.
40993         Needed for FreeBSD 6.1.
40994
40995 2007-04-04  Bruno Haible  <bruno@clisp.org>
40996
40997         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
40998         directly used by the gnulib modules nor by gnulib-tool.
40999
41000 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
41001
41002         * DEPENDENCIES: Give overall description of version dependency
41003         desirability.  Use more-typical names for apps.
41004         Add shell, coreutils, diffutils, grep, tar, gzip.
41005
41006 2007-04-04  Simon Josefsson  <simon@josefsson.org>
41007
41008         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
41009
41010 2007-04-04  Karl Berry  <karl@gnu.org>
41011
41012         * MODULES.html.sh (func_module): missing '.
41013
41014 2007-04-03  Bruno Haible  <bruno@clisp.org>
41015
41016         * modules/argmatch-tests (Makefile.am): New variable
41017         test_argmatch_LDADD.
41018         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
41019         * modules/array-list-tests (Makefile.am): New variable
41020         test_array_list_LDADD.
41021         * modules/array-oset-tests (Makefile.am): New variable
41022         test_array_oset_LDADD.
41023         * modules/avltree-list-tests (Makefile.am): New variable
41024         test_avltree_list_LDADD.
41025         * modules/avltree-oset-tests (Makefile.am): New variable
41026         test_avltree_oset_LDADD.
41027         * modules/avltreehash-list-tests (Makefile.am): New variable
41028         test_avltreehash_list_LDADD.
41029         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
41030         test_canonicalize_lgpl_LDADD.
41031         * modules/carray-list-tests (Makefile.am): New variable
41032         test_carray_list_LDADD.
41033         * modules/dirname-tests (Makefile.am): New variable
41034         test_dirname_LDADD.
41035         * modules/linked-list-tests (Makefile.am): New variable
41036         test_linked_list_LDADD.
41037         * modules/linkedhash-list-tests (Makefile.am): New variable
41038         test_linkedhash_list_LDADD.
41039         * modules/rbtree-list-tests (Makefile.am): New variable
41040         test_rbtree_list_LDADD.
41041         * modules/rbtree-oset-tests (Makefile.am): New variable
41042         test_rbtree_oset_LDADD.
41043         * modules/rbtreehash-list-tests (Makefile.am): New variable
41044         test_rbtreehash_list_LDADD.
41045         * modules/xvasprintf-tests (Makefile.am): New variable
41046         test_xvasprintf_LDADD.
41047         Reported by Eric Blake.
41048
41049 2007-04-03  Eric Blake  <ebb9@byu.net>
41050
41051         * DEPENDENCIES: Weaken m4 requirements.
41052
41053 2007-04-03  Bruno Haible  <bruno@clisp.org>
41054
41055         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
41056         * modules/isnanl-tests (configure.ac): Likewise.
41057
41058 2007-04-03  Ben Pfaff  <blp@gnu.org>
41059
41060         * modules/iconv_open: Add $(srcdir)/ to source directory
41061         references in Makefile fragments that call gperf, to fix VPATH
41062         builds.
41063
41064 2007-04-03  Bruno Haible  <bruno@clisp.org>
41065
41066         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
41067         * lib/ldexpl.c: Undo last change.
41068
41069 2007-04-03  Bruno Haible  <bruno@clisp.org>
41070
41071         * modules/printf-frexpl (Depends-on): Undo last change.
41072         (Files): Add m4/ldexpl.m4.
41073
41074 2007-04-03  Bruno Haible  <bruno@clisp.org>
41075
41076         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
41077         * modules/isnanl (Link): New section.
41078
41079         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
41080         * modules/frexp (Link): New section.
41081
41082         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
41083         * modules/frexpl (Link): New section.
41084
41085         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
41086         * modules/ldexpl (Link): New section.
41087
41088 2007-04-03  Bruno Haible  <bruno@clisp.org>
41089
41090         * modules/TEMPLATE-EXTENDED: New file.
41091         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
41092
41093 2007-04-03  Bruno Haible  <bruno@clisp.org>
41094
41095         * DEPENDENCIES: New file.
41096         Suggested by Simon Josefsson.
41097
41098 2007-04-03  Bruno Haible  <bruno@clisp.org>
41099
41100         * doc/gnulib.texi: Escape @.
41101
41102 2007-04-03  James Youngman  <jay@gnu.org>
41103         and Paul Eggert  <eggert@cs.ucla.edu>
41104
41105         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
41106         birthtime on all systems that have birthtime, not just those which
41107         use st_birthtimensec rather than st_birthtim.  Putting zero in
41108         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
41109         that the birth time is not available for files on an NFS mount.
41110
41111 2007-04-03  Simon Josefsson  <simon@josefsson.org>
41112
41113         * modules/memxor: Move back from crypto/, suggested by Bruno.
41114         * modules/crypto/hmac-sha1: Fix memxor dependency.
41115
41116         * modules/crypto/gc: Moved from ../.
41117
41118 2007-04-02  Eric Blake  <ebb9@byu.net>
41119
41120         * lib/ldexpl.c (includes): Avoid libm.
41121
41122         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
41123
41124 2007-04-02  Bruno Haible  <bruno@clisp.org>
41125
41126         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
41127         on IRIX.
41128
41129 2007-04-02  Bruno Haible  <bruno@clisp.org>
41130
41131         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
41132         x86 or x86_64 platforms running MacOS X.
41133         Reported by Ryan Schmidt <@ryandesign.com>.
41134
41135 2007-04-02  Bruno Haible  <bruno@clisp.org>
41136
41137         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
41138         i386.
41139
41140 2007-04-01  Simon Josefsson  <simon@josefsson.org>
41141
41142         * modules/crypto/arcfour: Moved from ../.
41143         * modules/crypto/arcfour-tests: Moved from ../.
41144         * modules/crypto/arctwo: Moved from ../.
41145         * modules/crypto/arctwo-tests: Moved from ../.
41146         * modules/crypto/des: Moved from ../.
41147         * modules/crypto/des-tests: Moved from ../.
41148         * modules/crypto/gc-arcfour: Moved from ../.
41149         * modules/crypto/gc-arcfour-tests: Moved from ../.
41150         * modules/crypto/gc-arctwo: Moved from ../.
41151         * modules/crypto/gc-arctwo-tests: Moved from ../.
41152         * modules/crypto/gc-des: Moved from ../.
41153         * modules/crypto/gc-des-tests: Moved from ../.
41154         * modules/crypto/gc-hmac-md5: Moved from ../.
41155         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
41156         * modules/crypto/gc-hmac-sha1: Moved from ../.
41157         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
41158         * modules/crypto/gc-md2: Moved from ../.
41159         * modules/crypto/gc-md2-tests: Moved from ../.
41160         * modules/crypto/gc-md4: Moved from ../.
41161         * modules/crypto/gc-md4-tests: Moved from ../.
41162         * modules/crypto/gc-md5: Moved from ../.
41163         * modules/crypto/gc-md5-tests: Moved from ../.
41164         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
41165         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
41166         * modules/crypto/gc-random: Moved from ../.
41167         * modules/crypto/gc-rijndael: Moved from ../.
41168         * modules/crypto/gc-rijndael-tests: Moved from ../.
41169         * modules/crypto/gc-sha1: Moved from ../.
41170         * modules/crypto/gc-sha1-tests: Moved from ../.
41171         * modules/crypto/gc-tests: Moved from ../.
41172         * modules/crypto/hmac-md5: Moved from ../.
41173         * modules/crypto/hmac-md5-tests: Moved from ../.
41174         * modules/crypto/hmac-sha1: Moved from ../.
41175         * modules/crypto/hmac-sha1-tests: Moved from ../.
41176         * modules/crypto/md2: Moved from ../.
41177         * modules/crypto/md2-tests: Moved from ../.
41178         * modules/crypto/md4: Moved from ../.
41179         * modules/crypto/md4-tests: Moved from ../.
41180         * modules/crypto/md5: Moved from ../.
41181         * modules/crypto/md5-tests: Moved from ../.
41182         * modules/crypto/memxor: Moved from ../.
41183         * modules/crypto/rijndael: Moved from ../.
41184         * modules/crypto/rijndael-tests: Moved from ../.
41185         * modules/crypto/sha1: Moved from ../.
41186
41187 2007-03-30  James Youngman  <jay@gnu.org>
41188
41189         * tests/test-stat-time.c (prepare_test): use chmod() rather than
41190         rename() to change the ctime of a file (because ctime is unaffected
41191         by rename on jfs2 on AIX 5.1).
41192         (main): Start by doing cleanup, in case a previous run failed leaving
41193         test files behind.
41194
41195 2007-03-31  Bruno Haible  <bruno@clisp.org>
41196
41197         Support old proprietary implementations of iconv.
41198         * modules/iconv_open: New file.
41199         * lib/iconv_.h: New file.
41200         * m4/iconv_h.m4: New file.
41201         * lib/iconv_open.c: New file.
41202         * lib/iconv_open-aix.gperf: New file.
41203         * lib/iconv_open-hpux.gperf: New file.
41204         * lib/iconv_open-irix.gperf: New file.
41205         * lib/iconv_open-osf.gperf: New file.
41206         * m4/iconv_open.m4: New file.
41207         * modules/linebreak (Depends-on): Add iconv_open.
41208         * modules/striconv (Depends-on): Likewise.
41209         * modules/striconveh (Depends-on): Likewise.
41210         * modules/unicodeio (Depends-on): Likewise.
41211         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
41212         (iconv_t)(-1).
41213         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
41214         conversion if cd is (iconv_t)(-1).
41215         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
41216         is not possible.
41217
41218 2007-03-31  Bruno Haible  <bruno@clisp.org>
41219
41220         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
41221         work on Solaris either. Protect also second use of "autodetect_jp".
41222
41223 2007-03-31  Bruno Haible  <bruno@clisp.org>
41224
41225         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
41226         the function is not present.
41227
41228 2007-03-31  Bruno Haible  <bruno@clisp.org>
41229
41230         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
41231         the function is not present.
41232
41233 2007-03-31  Bruno Haible  <bruno@clisp.org>
41234
41235         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
41236         a bug in HP-UX iconv_open().
41237
41238 2007-03-31  Bruno Haible  <bruno@clisp.org>
41239
41240         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
41241         (Mathematics <math.h>): New section, add fpieee.
41242         (Input/output <stdio.h>): Add fseterr.
41243         (Mathematics <math.h>): New section, add printf-frexp.
41244         (Container data structures): Add sublist.
41245         (Core language properties): Add fpucw, inline.
41246         (Functions for greatest-width integer types <inttypes.h>): Add
41247         imaxabs, imaxdiv, inttypes.
41248         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
41249         isnanl-nolibm, ldexp.
41250         (Mathematics <math.h>): New section, add printf-frexpl.
41251         (Support for systems lacking POSIX:2001): Add fprintf-posix,
41252         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
41253         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
41254         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
41255         (Unicode string functions): Add unistr/u*-mbtoucr.
41256         (Java): Add javacomp-script, javaexec-script.
41257         (C#): Add csharpcomp-script, csharpexec-script.
41258         (Support for building libraries and executables): Add havelib,
41259         relocatable-*.
41260         (Support for maintaining and releasing projects): Renamed from
41261         'Support for maintaining and release projects'. Add announce-gen.
41262
41263 2007-03-31  Bruno Haible  <bruno@clisp.org>
41264
41265         * README: Talk primarily about git.
41266         (git and CVS): Renamed from CVS.
41267         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
41268         gnulib is available through git.
41269         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
41270
41271 2007-03-30  Bruno Haible  <bruno@clisp.org>
41272
41273         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
41274         * lib/poll_.h: Likewise.
41275         * lib/stat_.h: Likewise.
41276         * lib/sys_time_.h: Likewise.
41277         * lib/sysexit_.h: Likewise.
41278         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
41279         * lib/stdbool_.h: Likewise.
41280         * lib/byteswap_.h: Add double-inclusion guard.
41281
41282 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
41283
41284         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
41285
41286 2007-03-30  Karl Berry  <karl@gnu.org>
41287
41288         * config/srclist-update: double space after USA in the license
41289         substitution, since that's how it's usually (?) written.
41290
41291 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
41292
41293         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
41294         reported by Bruno Haible.
41295
41296 2007-03-29  Bruno Haible  <bruno@clisp.org>
41297
41298         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
41299         a bug in AIX iconv().
41300
41301 2007-03-29  Bruno Haible  <bruno@clisp.org>
41302
41303         * modules/ldexpl-tests: New file.
41304         * tests/test-ldexpl.c: New file.
41305
41306 2007-03-29  Bruno Haible  <bruno@clisp.org>
41307
41308         * lib/ldexpl.c: Include fpucw.h.
41309         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
41310         multiplication.
41311         * modules/ldexpl (Depends-on): Add fpucw.
41312
41313 2007-03-29  Bruno Haible  <bruno@clisp.org>
41314
41315         * modules/ldexpl: New file.
41316         * m4/ldexpl.m4: New file.
41317         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
41318         set.
41319         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
41320         REPLACE_LDEXPL.
41321         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
41322         REPLACE_LDEXPL.
41323         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
41324         gl_FUNC_LDEXPL_WORKS.
41325         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
41326         * modules/mathl (Files): Remove lib/ldexpl.c.
41327         (Depends-on): Add ldexpl.
41328
41329 2007-03-29  Bruno Haible  <bruno@clisp.org>
41330
41331         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
41332
41333 2007-03-29  Bruno Haible  <bruno@clisp.org>
41334
41335         * tests/test-striconveh.c (main): Don't assume that a direct conversion
41336         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
41337         and possibly also HP-UX.
41338         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
41339         work on AIX, IRIX, HP-UX, OSF/1.
41340         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
41341         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
41342         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
41343         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
41344         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
41345         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
41346
41347 2007-03-29  Bruno Haible  <bruno@clisp.org>
41348
41349         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
41350
41351 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
41352
41353         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
41354         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
41355
41356 2007-03-29  Eric Blake  <ebb9@byu.net>
41357
41358         * lib/acl-internal.h: Remove redundant include.
41359         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
41360         Cygwin when a file is locked.
41361
41362 2007-03-29  Bruno Haible  <bruno@clisp.org>
41363
41364         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
41365         file.
41366         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
41367
41368 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
41369
41370         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
41371         try to remove a parent directory if the child couldn't be removed
41372         (except for the first rmdir, which could fail because the child
41373         doesn't exist).  Problem reported by Jeff Blaine in
41374         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
41375
41376 2007-03-28  Bruno Haible  <bruno@clisp.org>
41377
41378         * lib/striconveh.c (utf8conv_carefully): New function.
41379         (mem_cd_iconveh_internal): Invoke it.
41380
41381 2007-03-28  Bruno Haible  <bruno@clisp.org>
41382
41383         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
41384         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
41385         input.
41386         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
41387         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
41388         unistr/u8-uctomb.
41389
41390 2007-03-28  Bruno Haible  <bruno@clisp.org>
41391
41392         * modules/unistr/u8-mbtoucr: New file.
41393         * lib/unistr/u8-mbtoucr.c: New file.
41394         * modules/unistr/u16-mbtoucr: New file.
41395         * lib/unistr/u16-mbtoucr.c: New file.
41396         * modules/unistr/u16-mbtoucr: New file.
41397         * lib/unistr/u16-mbtoucr.c: New file.
41398         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
41399
41400 2007-03-27  Simon Josefsson  <simon@josefsson.org>
41401             Bruno Haible  <bruno@clisp.org>
41402
41403         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
41404         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
41405         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
41406
41407         * m4/stdio_h.m4: Add stubs for vasprintf too.
41408
41409         * modules/stdio: Support vasprintf in sed command.
41410
41411         * modules/vasprintf: Depend on stdio for prototypes.  Remove
41412         vasprintf.h.  Add stdio module indicator.
41413
41414         * lib/stdio_.h: Declare asprintf and vasprintf, based on
41415         vasprintf.h.
41416
41417         * lib/vasprintf.h: File removed.
41418
41419         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
41420         * lib/vasprintf.c: Ditto.
41421         * lib/xvasprintf.c: Ditto.
41422         * tests/test-vasprintf-posix.c: Ditto.
41423         * tests/test-vasprintf.c: Ditto.
41424
41425 2007-03-27  Bruno Haible  <bruno@clisp.org>
41426
41427         Make vasnprintf multithread-safe.
41428         * lib/vasnprintf.c (decimal_point_char): New function.
41429         (VASNPRINTF): Use it.
41430         Suggested by Simon Josefsson.
41431
41432 2007-03-27  Eric Blake  <ebb9@byu.net>
41433
41434         Support sub-second birthtime on cygwin.
41435         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
41436         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
41437         (get_stat_birthtime): Also work with st_birthtim.
41438
41439 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
41440
41441         * lib/stat-time.h (USE_BIRTHTIME): Remove.
41442         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
41443         (get_stat_birthtime_ns): Do not try to use "spare" fields.
41444         (get_stat_birthtime_ns): Simplify compile-time tests.
41445         (get_stat_birthtime): Change the API to look like
41446         get_stat_mtime etc., except return a negative tv_nsec on error.
41447         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
41448         Don't check for "spare" fields.
41449         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
41450         or for struct stat.st_birthtime, as these tests aren't used.
41451         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
41452
41453 2007-03-27  Bruno Haible  <bruno@clisp.org>
41454
41455         * lib/stat-time.h: Include <sys/stat.h>.
41456
41457 2007-03-27  James Youngman  <jay@gnu.org>
41458
41459         * lib/stat-time.h (get_stat_birthtime): New function for
41460           retrieving st_birthtime as provided by UFS2 (hence *BSD).
41461         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
41462           and its variants.
41463         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
41464         * modules/stat-time-test: New file.
41465         * tests/test-stat-time.c: New test, devised by Bruno Haible.
41466
41467 2007-03-26  Bruno Haible  <bruno@clisp.org>
41468
41469         Better support of signalling NaNs.
41470         * lib/atanl.c: Include isnanl.h.
41471         (atanl): Perform test for NaN at the beginning of the function and
41472         through a call to isnanl.
41473         * lib/cosl.c: Include isnanl.h.
41474         (cosl): Perform test for NaN at the beginning of the function and
41475         through a call to isnanl.
41476         * lib/ldexpl.c: Include isnanl.h.
41477         (ldexpl): Perform test for NaN through a call to isnanl.
41478         * lib/logl.c: Include isnanl.h.
41479         (logl): Perform test for NaN at the beginning of the function and
41480         through a call to isnanl.
41481         * lib/sinl.c: Include isnanl.h.
41482         (sinl): Perform test for NaN at the beginning of the function and
41483         through a call to isnanl.
41484         * lib/sqrtl.c: Include isnanl.h.
41485         (sqrtl): Perform test for NaN at the beginning of the function and
41486         through a call to isnanl.
41487         * lib/tanl.c: Include isnanl.h.
41488         (tanl): Perform test for NaN at the beginning of the function and
41489         through a call to isnanl.
41490         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
41491         * modules/mathl (Depends-on): Add isnanl.
41492
41493 2007-03-26  Eric Blake  <ebb9@byu.net>
41494
41495         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
41496         regression in logic sense of previous patch.
41497
41498 2007-03-26  Bruno Haible  <bruno@clisp.org>
41499
41500         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
41501         unportable shell command "if ! ...".
41502         Reported by Ralf Wildenhues.
41503
41504 2007-03-25  Bruno Haible  <bruno@clisp.org>
41505
41506         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
41507         <sysexits.h> file, and only add EX_CONFIG.
41508         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
41509         absolute file name and whether it is sufficient. Substitute also
41510         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
41511         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
41512         ABSOLUTE_SYSEXITS_H into sysexits.h.
41513
41514 2007-03-25  Bruno Haible  <bruno@clisp.org>
41515
41516         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
41517         hints is NULL.
41518
41519 2007-03-25  Bruno Haible  <bruno@clisp.org>
41520
41521         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
41522         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
41523
41524 2007-03-25  Bruno Haible  <bruno@clisp.org>
41525
41526         * lib/vasnprintf.c: Include langinfo.h.
41527         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
41528         multithread-safe.
41529         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
41530         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
41531         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
41532         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
41533         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
41534         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
41535         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
41536         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
41537         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
41538         Reported by Simon Josefsson.
41539
41540 2007-03-25  Bruno Haible  <bruno@clisp.org>
41541
41542         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
41543         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
41544         * modules/vasnprintf (Depends-on): Add stdint.
41545
41546 2007-03-25  Bruno Haible  <bruno@clisp.org>
41547
41548         * modules/fpieee: New file.
41549         * m4/fpieee.m4: New file.
41550         * modules/isnan-nolibm (Depends-on): Add fpieee.
41551         * modules/isnanl-nolibm (Depends-on): Add fpieee.
41552         * modules/isnanl (Depends-on): Add fpieee.
41553
41554 2007-03-25  Bruno Haible  <bruno@clisp.org>
41555
41556         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
41557
41558 2007-03-25  Bruno Haible  <bruno@clisp.org>
41559
41560         Avoid test failures on IRIX 6.5.
41561         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
41562         (main): Use it.
41563         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
41564         macros.
41565         (main): Use them.
41566
41567 2007-03-25  Bruno Haible  <bruno@clisp.org>
41568
41569         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
41570         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
41571         exists but doesn't work.
41572         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
41573         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
41574         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
41575         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
41576
41577 2007-03-25  Bruno Haible  <bruno@clisp.org>
41578
41579         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
41580         returns inf. Needed on IRIX 6.5.
41581
41582 2007-03-25  Bruno Haible  <bruno@clisp.org>
41583
41584         * tests/test-frexpl.c: Include isnanl-nolibm.h.
41585         (main): Use isnanl instead of x != x idiom.
41586         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
41587
41588         * tests/test-frexp.c: Include isnan.h.
41589         (main): Use isnan instead of x != x idiom.
41590         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
41591
41592 2007-03-25  Bruno Haible  <bruno@clisp.org>
41593
41594         * tests/test-frexp.c (NaN): New function/macro.
41595         (main): Use it instead of 0.0 / 0.0.
41596         * tests/test-isnan.c (NaN): New function/macro.
41597         (main): Use it instead of 0.0 / 0.0.
41598         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
41599         (test_function): Use it instead of 0.0 / 0.0.
41600         * tests/test-vasprintf-posix.c (NaN): New function/macro.
41601         (test_function): Use it instead of 0.0 / 0.0.
41602         * tests/test-snprintf-posix.h (NaN): New function/macro.
41603         (test_function): Use it instead of 0.0 / 0.0.
41604         * tests/test-sprintf-posix.h (NaN): New function/macro.
41605         (test_function): Use it instead of 0.0 / 0.0.
41606         * tests/test-fprintf-posix.h (NaN): New function/macro.
41607         (test_function): Use it instead of 0.0 / 0.0.
41608         * tests/test-printf-posix.h (NaN): New function/macro.
41609         (test_function): Use it instead of 0.0 / 0.0.
41610
41611         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
41612
41613 2007-03-25  Bruno Haible  <bruno@clisp.org>
41614
41615         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
41616
41617 2007-03-25  Bruno Haible  <bruno@clisp.org>
41618
41619         * lib/regexec.c (merge_state_with_log): Make static.
41620
41621 2007-03-25  Bruno Haible  <bruno@clisp.org>
41622
41623         * lib/trigl.c (kernel_rem_pio2): Make static.
41624
41625 2007-03-25  Bruno Haible  <bruno@clisp.org>
41626
41627         * lib/sincosl.c (sincosl_table): Make static.
41628
41629 2007-03-25  Bruno Haible  <bruno@clisp.org>
41630
41631         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
41632         if the compiler does not support C99.
41633
41634 2007-03-25  Bruno Haible  <bruno@clisp.org>
41635
41636         * modules/time (Makefile.am): Ensure all rule action lines start with a
41637         tab.
41638
41639 2007-03-24  Bruno Haible  <bruno@clisp.org>
41640
41641         * modules/tsearch-tests: New file.
41642         * tests/test-tsearch.sh: New file.
41643         * tests/test-tsearch.c: New file, mostly copied from glibc.
41644
41645         * modules/search-tests: New file.
41646         * tests/test-search.c: New file.
41647
41648         * modules/search: New file.
41649         * lib/search_.h: New file, incorporating lib/tsearch.h.
41650         * m4/search_h.m4: New file.
41651         * lib/tsearch.h: Remove file.
41652         * lib/tsearch.c: Include search.h instead of tsearch.h.
41653         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
41654         HAVE_TSEARCH.
41655         * modules/tsearch (Files): Remove lib/tsearch.h.
41656         (Depends-on): Add search.
41657         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
41658         (Include): Change tsearch.h into search.h.
41659
41660 2007-03-24  Bruno Haible  <bruno@clisp.org>
41661
41662         * modules/fpucw: New file.
41663         * lib/fpucw.h: New file.
41664         * lib/frexp.c: Include fpucw.h.
41665         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
41666         (FUNC): Use them.
41667         * lib/printf-frexp.c: Include fpucw.h.
41668         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
41669         (FUNC): Use them.
41670         * lib/vasnprintf.c: Include fpucw.h.
41671         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
41672         'long double' calculations.
41673         * tests/test-frexpl.c: Include fpucw.h.
41674         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
41675         * tests/test-printf-frexpl.c: Include fpucw.h.
41676         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
41677         * modules/frexpl (Depends-on): Add fpucw.
41678         * modules/printf-frexpl (Depends-on): Likewise.
41679         * modules/fprintf-posix (Depends-on): Likewise.
41680         * modules/snprintf-posix (Depends-on): Likewise.
41681         * modules/sprintf-posix (Depends-on): Likewise.
41682         * modules/vasnprintf-posix (Depends-on): Likewise.
41683         * modules/vasprintf-posix (Depends-on): Likewise.
41684         * modules/vfprintf-posix (Depends-on): Likewise.
41685         * modules/vsnprintf-posix (Depends-on): Likewise.
41686         * modules/vsprintf-posix (Depends-on): Likewise.
41687         * modules/frexpl-tests (Depends-on): Likewise.
41688         * modules/printf-frexpl-tests (Depends-on): Likewise.
41689
41690 2007-03-24  Bruno Haible  <bruno@clisp.org>
41691
41692         * lib/float+.h: New file.
41693         * lib/isnan.c: Include float+.h.
41694         (SIZE): New macro.
41695         (FUNC): Compare only SIZE bytes of the value.
41696         * lib/vasnprintf.c: Include float+.h.
41697         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
41698         SIZEOF_LDBL or SIZEOF_DBL bytes.
41699         * modules/isnan-nolibm (Files): Add lib/float+.h.
41700         * modules/isnanl-nolibm (Files): Add lib/float+.h.
41701         * modules/isnanl (Files): Add lib/float+.h.
41702         * modules/vasnprintf (Files): Add lib/float+.h.
41703
41704 2007-03-24  Bruno Haible  <bruno@clisp.org>
41705
41706         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
41707         include isnanl-nolibm.h.
41708
41709 2007-03-24  Bruno Haible  <bruno@clisp.org>
41710
41711         * tests/test-read-file.c (main): Don't produce spurious output for
41712         expected situations. Make the test fail if it encountered unexpected
41713         results.
41714
41715 2007-03-24  Bruno Haible  <bruno@clisp.org>
41716
41717         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
41718         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
41719
41720 2007-03-24  Bruno Haible  <bruno@clisp.org>
41721
41722         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
41723
41724 2007-03-24  Bruno Haible  <bruno@clisp.org>
41725
41726         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
41727         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
41728
41729         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
41730         * modules/utf8-ucs4: Turn into a symbolic link to module
41731         unistr/u8-mbtouc.
41732
41733         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
41734         utf8-ucs4-unsafe.
41735         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
41736         unistr/u8-mbtouc-unsafe.
41737
41738         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
41739         * modules/utf16-ucs4: Turn into a symbolic link to module
41740         unistr/u16-mbtouc.
41741
41742         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
41743         utf16-ucs4-unsafe.
41744         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
41745         unistr/u16-mbtouc-unsafe.
41746
41747         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
41748         * modules/ucs4-utf8: Turn into a symbolic link to module
41749         unistr/u8-ubtomb.
41750
41751         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
41752         * modules/ucs4-utf16: Turn into a symbolic link to module
41753         unistr/u16-ubtomb.
41754
41755 2007-03-24  Bruno Haible  <bruno@clisp.org>
41756
41757         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
41758         Enable the function only if HAVE_INLINE.
41759         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
41760         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
41761         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
41762         Enable the function only if HAVE_INLINE.
41763         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
41764         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
41765         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
41766         Enable the function only if HAVE_INLINE.
41767         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
41768         Enable the function only if HAVE_INLINE.
41769         * modules/utf8-ucs4: Update.
41770         * modules/utf8-ucs4-unsafe: Update.
41771         * modules/utf16-ucs4: Update.
41772         * modules/utf16-ucs4-unsafe: Update.
41773         * modules/ucs4-utf8: Update.
41774         * modules/ucs4-utf16: Update.
41775
41776 2007-03-24  Bruno Haible  <bruno@clisp.org>
41777
41778         * lib/utf8-ucs4.h: Remove file.
41779         * lib/utf8-ucs4-unsafe.h: Remove file.
41780         * lib/utf16-ucs4.h: Remove file.
41781         * lib/utf16-ucs4-unsafe.h: Remove file.
41782         * lib/ucs4-utf8.h: Remove file.
41783         * lib/ucs4-utf16.h: Remove file.
41784         * lib/unistr.h: Include their previous contents.
41785         * m4/utf-ucs4.m4: Remove file.
41786         * m4/ucs4-utf.m4: Remove file.
41787         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
41788         (Depends-on): Add unistr/base.
41789         (configure.ac): Remove gl_UTF_UCS4.
41790         (Makefile.am): Update.
41791         (Include): Change to unistr.h.
41792         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
41793         (Depends-on): Add unistr/base.
41794         (configure.ac): Remove gl_UTF_UCS4.
41795         (Makefile.am): Update.
41796         (Include): Change to unistr.h.
41797         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
41798         (Depends-on): Add unistr/base.
41799         (configure.ac): Remove gl_UTF_UCS4.
41800         (Makefile.am): Update.
41801         (Include): Change to unistr.h.
41802         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
41803         (Depends-on): Add unistr/base.
41804         (configure.ac): Remove gl_UTF_UCS4.
41805         (Makefile.am): Update.
41806         (Include): Change to unistr.h.
41807         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
41808         (Depends-on): Add unistr/base.
41809         (configure.ac): Remove gl_UCS4_UTF.
41810         (Makefile.am): Update.
41811         (Include): Change to unistr.h.
41812         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
41813         (Depends-on): Add unistr/base.
41814         (configure.ac): Remove gl_UCS4_UTF.
41815         (Makefile.am): Update.
41816         (Include): Change to unistr.h.
41817         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
41818         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
41819         utf8-ucs4-unsafe.h.
41820         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
41821         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
41822         utf16-ucs4-unsafe.h.
41823         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
41824         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
41825         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
41826         * lib/unistr/u8-strchr.c: Likewise.
41827         * lib/unistr/u8-strrchr.c: Likewise.
41828         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
41829         * lib/unistr/u16-strchr.c: Likewise.
41830         * lib/unistr/u16-strrchr.c: Likewise.
41831         * lib/striconveh.c: Update.
41832         * lib/linebreak.c: Update.
41833
41834 2007-03-24  Bruno Haible  <bruno@clisp.org>
41835
41836         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
41837         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
41838
41839 2007-03-22  Bruno Haible  <bruno@clisp.org>
41840
41841         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
41842
41843 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
41844
41845         * MODULES.html.sh (File system functions): New module write-any-file.
41846         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
41847         * m4/write-any-file.m4: New files.
41848
41849 2007-03-23  Eric Blake  <ebb9@byu.net>
41850
41851         * gnulib-tool: Rearrange space-tab sequences, since some editors
41852         like to eat them.
41853
41854 2007-03-23  Eric Blake  <ebb9@byu.net>
41855
41856         * lib/version-etc.c (version_etc_va): Update license wording to
41857         be more concise.  Recommended by Richard Stallman.
41858
41859 2007-03-22  Bruno Haible  <bruno@clisp.org>
41860
41861         * lib/poll.c (MSG_PEEK): New fallback definition.
41862
41863 2007-03-22  Bruno Haible  <bruno@clisp.org>
41864
41865         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
41866         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
41867         (main): Update.
41868         Fixes a compilation error on BeOS.
41869
41870 2007-03-22  Bruno Haible  <bruno@clisp.org>
41871
41872         * modules/frexpl-tests: New file.
41873         * tests/test-frexpl.c: New file.
41874
41875         * modules/frexpl: New file.
41876         * m4/frexpl.m4: New file.
41877         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
41878         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
41879         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
41880         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
41881         (Depends-on): Add frexpl. Remove isnanl-nolibm.
41882         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
41883
41884 2007-03-22  Bruno Haible  <bruno@clisp.org>
41885
41886         * lib/frexpl.c: Share code with lib/frexp.c.
41887         * modules/mathl (Files): Add lib/frexp.c.
41888         (Depends-on): Add isnanl-nolibm.
41889
41890 2007-03-22  Bruno Haible  <bruno@clisp.org>
41891
41892         * modules/printf-frexp (Files): Add m4/frexp.m4.
41893         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
41894         only if the found frexp function actually works.
41895
41896 2007-03-22  Bruno Haible  <bruno@clisp.org>
41897
41898         * lib/frexp.c: Remove older implementation that uses divisions.
41899
41900 2007-03-21  Bruno Haible  <bruno@clisp.org>
41901
41902         * modules/frexp-tests: New file.
41903         * tests/test-frexp.c: New file.
41904
41905         * modules/frexp: New file.
41906         * lib/frexp.c: New file.
41907         * m4/frexp.m4: New file.
41908         * lib/math_.h (frexp): New declaration.
41909         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
41910         REPLACE_FREXP.
41911         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
41912
41913 2007-03-21  Bruno Haible  <bruno@clisp.org>
41914
41915         * modules/isnanl-tests: New file.
41916         * tests/test-isnanl.c: New file.
41917
41918         * modules/isnanl: New file.
41919         * lib/isnanl.h: New file.
41920         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
41921         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
41922         gl_FUNC_ISNANL_WORKS.
41923         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
41924         New macros.
41925
41926 2007-03-21  Bruno Haible  <bruno@clisp.org>
41927
41928         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
41929         lib/isnanl.h.
41930         (Include): Update.
41931         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
41932         * lib/vasnprintf.c: Update.
41933         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
41934         tests/test-isnanl.h, remove tests/test-isnanl.c.
41935         (Makefile.am): Update.
41936         * tests/test-isnanl-nolibm.c: New file.
41937         * tests/test-isnanl.h: New file.
41938         * tests/test-isnanl.c: Remove file.
41939
41940 2007-03-21  Jim Meyering  <jim@meyering.net>
41941
41942         When trying to open ".", treat ESTALE like EACCES.
41943         * lib/savewd.c (savewd_save): Resort to forking not just upon
41944         failure with EACCES, but also when errno is ESTALE.
41945
41946 2007-03-20  Bruno Haible  <bruno@clisp.org>
41947
41948         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
41949         Needed on AIX 5.1. Reported by Matthew Woehlke.
41950
41951 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
41952
41953         Suggestions by Bruno Haible:
41954         * lib/acl-internal.h: Include "gettext.h" rather than rolling
41955         our own.
41956         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
41957         * modules/acl (Depends-on): Add gettext.
41958
41959 2007-03-19  Bruno Haible  <bruno@clisp.org>
41960
41961         * modules/iconvme: Remove file.
41962         * lib/iconvme.h: Remove file.
41963         * lib/iconvme.c: Remove file.
41964         * m4/iconvme.m4: Remove file.
41965
41966 2007-03-19  Bruno Haible  <bruno@clisp.org>
41967
41968         * doc/relocatable-maint.texi: Break long shell script line.
41969         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
41970
41971 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
41972
41973         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
41974         handle file_has_acl.
41975         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
41976         * lib/acl.c: Move header inclusions and related macro defns into
41977         lib/acl-internal.h.
41978         (S_ISLNK): Remove defn, since that's now done for us.
41979         (file_has_acl): Move to lib/file-has-acl.c.
41980         Call acl_trivial if available.  This is the crucial part of the fix.
41981         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
41982         shared within the library.  Rewrite a bit, partly to make it compatible
41983         with the GNU coding style.
41984         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
41985         Remove unnecessary double-quotes.
41986         Don't test for acl_to_text; the build will catch that.
41987         Replace acl_entries if it doesn't exist and it is needed.
41988         Check for -lsec and acl_trivial (as used on Solaris 10).
41989         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
41990         lib/file-has-acl.c.
41991         (Depends-on): Add sys_stat, for S_ISLNK.
41992
41993 2007-03-19  Ben Pfaff  <blp@gnu.org>
41994
41995         * doc/gnulib.texi: Fix typos.
41996         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
41997
41998 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
41999
42000         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
42001         If size is zero here, buf must be zero.
42002
42003 2007-03-19  Simon Josefsson  <simon@josefsson.org>
42004
42005         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
42006         <bruno@clisp.org>.
42007
42008 2007-03-18  Bruno Haible  <bruno@clisp.org>
42009
42010         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
42011         Suggested by Eric Blake.
42012
42013 2007-03-18  Ben Pfaff  <blp@gnu.org>
42014
42015         * doc/relocatable.texi: Recommend using as prefix a directory
42016         that does not exist and will never be created.  Based on
42017         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
42018         and others.
42019
42020 2007-03-17  Bruno Haible  <bruno@clisp.org>
42021
42022         * lib/fchownat.c: Include lchown.h.
42023
42024 2007-03-17  Bruno Haible  <bruno@clisp.org>
42025
42026         Fix endless loop when the given allocated size was > INT_MAX.
42027         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
42028         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
42029         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
42030         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
42031         * lib/sprintf.c (sprintf): Likewise.
42032
42033 2007-03-17  Bruno Haible  <bruno@clisp.org>
42034
42035         * tests/test-argp-2.sh (func_compare): Output a context diff.
42036
42037 2007-03-17  Bruno Haible  <bruno@clisp.org>
42038
42039         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
42040         locale's decimal-point character.
42041
42042 2007-03-17  Bruno Haible  <bruno@clisp.org>
42043
42044         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
42045         before comparing it. Needed because on some platforms (e.g. x86) a
42046         'long double' occupies less bytes than sizeof (long double).
42047
42048 2007-03-17  Bruno Haible  <bruno@clisp.org>
42049
42050         * tests/test-crc.c (main): Make printf statements 64-bit clean.
42051         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
42052         * tests/test-getaddrinfo.c (simple): Likewise.
42053         * tests/test-read-file.c (main): Likewise.
42054
42055 2007-03-17  Bruno Haible  <bruno@clisp.org>
42056
42057         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
42058
42059 2007-03-17  Bruno Haible  <bruno@clisp.org>
42060
42061         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
42062         unused variable.
42063
42064 2007-03-17  Bruno Haible  <bruno@clisp.org>
42065
42066         * tests/test-c-strcasecmp.c: Include c-strcase.h.
42067         * tests/test-c-strncasecmp.c: Likewise.
42068
42069 2007-03-17  Bruno Haible  <bruno@clisp.org>
42070
42071         * modules/stdlib (Depends-on): Add unistd.
42072         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
42073         Needed for MacOS X 10.3.
42074
42075 2007-03-17  Bruno Haible  <bruno@clisp.org>
42076
42077         * lib/unistr/u-strdup.h: Include <stdlib.h>.
42078
42079 2007-03-17  Bruno Haible  <bruno@clisp.org>
42080
42081         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
42082
42083 2007-03-17  Bruno Haible  <bruno@clisp.org>
42084
42085         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
42086         to reflect files copied from gnulib (with or without modifications).
42087         Suggested by Jim Meyering.
42088
42089 2007-03-17  Eric Blake  <ebb9@byu.net>
42090
42091         * NEWS: Document stdlib change from 2007-02-18.
42092
42093 2007-03-17  Jim Meyering  <jim@meyering.net>
42094
42095         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
42096         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
42097         someone uses a name containing shell meta-characters.
42098         Reported by Alfred M. Szmidt.
42099
42100         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
42101
42102 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
42103
42104         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
42105         and copy gettext configuration files only if configure.ac contains
42106         a use of AM_GNU_GETTEXT_VERSION.
42107
42108 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
42109
42110         * build-aux/bootstrap (gnulib_name): New variable.
42111         (gnulib_tool_options): Use it.
42112
42113 2007-03-13  Simon Josefsson  <simon@josefsson.org>
42114
42115         * tests/test-des.c: Use new namespace.
42116
42117 2007-03-15  Bruno Haible  <bruno@clisp.org>
42118
42119         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
42120         Reported by James Youngman <jay@gnu.org>.
42121
42122 2007-03-15  Bruno Haible  <bruno@clisp.org>
42123
42124         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
42125         declared prototype. Needed with cc on OSF/1 5.1.
42126
42127 2007-03-15  Bruno Haible  <bruno@clisp.org>
42128
42129         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
42130         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
42131         (struct gl_list_implementation): Add dispose_fn argument to the
42132         'create_empty', 'create' methods.
42133         (struct gl_list_impl_base): Add field 'dispose_fn'.
42134         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
42135         argument.
42136         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
42137         dispose_fn argument.
42138         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
42139         dispose_fn on the dropped values.
42140         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
42141         dispose_fn argument.
42142         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
42143         dropped values.
42144         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
42145         (gl_tree_remove_node): Call dispose_fn on the dropped value.
42146         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
42147         (gl_tree_remove_node): Call dispose_fn on the dropped value.
42148         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
42149         argument.
42150         (gl_tree_list_free): Call dispose_fn on the dropped values.
42151         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
42152         the dropped values.
42153         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
42154         Add dispose_fn argument.
42155         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
42156         Call dispose_fn on the dropped values.
42157         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
42158         Add dispose_fn argument.
42159         (gl_sublist_create): Initialize the 'dispose_fn' field.
42160         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
42161         * tests/test-array_list.c (main): Update.
42162         * tests/test-carray_list.c (main): Update.
42163         * tests/test-avltree_list.c (main): Update.
42164         * tests/test-rbtree_list.c (main): Update.
42165         * tests/test-avltreehash_list.c (main): Update.
42166         * tests/test-rbtreehash_list.c (main): Update.
42167         * tests/test-linked_list.c (main): Update.
42168         * tests/test-linkedhash_list.c (main): Update.
42169         * tests/test-array_oset.c (main): Update.
42170
42171 2007-03-15  Bruno Haible  <bruno@clisp.org>
42172
42173         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
42174         (gl_oset_create_empty): Add dispose_fn argument.
42175         (struct gl_oset_implementation): Add dispose_fn argument to
42176         'create_empty' method.
42177         (struct gl_oset_impl_base): Add dispose_fn field.
42178         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
42179         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
42180         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
42181         values.
42182         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
42183         (gl_tree_oset_free): Call dispose_fn on the dropped values.
42184         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
42185         dropped value.
42186         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
42187         dropped value.
42188         * tests/test-array_oset.c (main): Update.
42189         * tests/test-avltree_oset.c (main): Update.
42190         * tests/test-rbtree_oset.c (main): Update.
42191         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
42192
42193 2007-03-13  Bruno Haible  <bruno@clisp.org>
42194
42195         * tests/test-stdbool.c (i): Update after last patch.
42196
42197 2007-03-12  Bruno Haible  <bruno@clisp.org>
42198
42199         * lib/quotearg.c: Include <wctype.h> early, before the definition of
42200         the iswprint macro. Needed on Solaris 2.5.1.
42201
42202 2007-03-12  Bruno Haible  <bruno@clisp.org>
42203
42204         * tests/test-printf-frexp.c (main): Declare x as volatile.
42205
42206 2007-03-12  Simon Josefsson  <simon@josefsson.org>
42207
42208         * doc/gnulib.texi (Build robot for gnulib): New section.
42209
42210 2007-03-12  Jim Meyering  <jim@meyering.net>
42211
42212         * build-aux/bootstrap: New file.
42213         * build-aux/bootstrap.conf: New file, from coreutils.
42214
42215 2007-03-11  Bruno Haible  <bruno@clisp.org>
42216
42217         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
42218
42219 2007-03-12  Simon Josefsson  <simon@josefsson.org>
42220
42221         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
42222         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
42223         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
42224
42225 2007-03-11  Bruno Haible  <bruno@clisp.org>
42226
42227         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
42228         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
42229
42230 2007-03-11  Bruno Haible  <bruno@clisp.org>
42231
42232         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
42233         formula. Needed for SunPRO C 5.0.
42234
42235 2007-03-11  Bruno Haible  <bruno@clisp.org>
42236
42237         * modules/long-options (Depends-on): Add getopt.
42238
42239 2007-03-11  Bruno Haible  <bruno@clisp.org>
42240
42241         * modules/modechange (Depends-on): Add stdbool.
42242
42243 2007-03-11  Bruno Haible  <bruno@clisp.org>
42244
42245         * modules/i-ring (Depends-on): Add stdbool.
42246
42247 2007-03-11  Bruno Haible  <bruno@clisp.org>
42248
42249         * modules/gc-des (Depends-on): Add stdbool.
42250
42251 2007-03-11  Bruno Haible  <bruno@clisp.org>
42252
42253         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
42254
42255 2007-03-11  Bruno Haible  <bruno@clisp.org>
42256
42257         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
42258
42259 2007-03-11  Bruno Haible  <bruno@clisp.org>
42260
42261         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
42262
42263 2007-03-11  Bruno Haible  <bruno@clisp.org>
42264
42265         * lib/vasnprintf.c (sprintf): Undefine.
42266
42267 2007-03-11  Bruno Haible  <bruno@clisp.org>
42268
42269         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
42270         initializers in SunPRO C and Compaq C compilers.
42271
42272 2007-03-11  Bruno Haible  <bruno@clisp.org>
42273
42274         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
42275         decrementing code ANSI C compliant.
42276
42277 2007-03-11  Bruno Haible  <bruno@clisp.org>
42278
42279         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
42280         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
42281
42282 2007-03-11  Bruno Haible  <bruno@clisp.org>
42283
42284         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
42285         <stdbool.h> substitute doesn't pass.
42286
42287 2007-03-11  Bruno Haible  <bruno@clisp.org>
42288
42289         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
42290
42291 2007-03-11  Bruno Haible  <bruno@clisp.org>
42292
42293         * gnulib-tool (func_create_megatestdir): Create also an autobuild
42294         script, for submission to autobuild.josefsson.org.
42295
42296 2007-03-10  Bruno Haible  <bruno@clisp.org>
42297
42298         * modules/canonicalize-lgpl-tests: New file.
42299         * tests/test-canonicalize-lgpl.sh: New file.
42300         * tests/test-canonicalize-lgpl.c: New file.
42301
42302         * modules/c-strcase-tests: New file.
42303         * tests/test-c-strcase.sh: New file.
42304         * tests/test-c-strcasecmp.c: New file.
42305         * tests/test-c-strncasecmp.c: New file.
42306
42307         * modules/atexit-tests: New file.
42308         * tests/test-atexit.sh: New file.
42309         * tests/test-atexit.c: New file.
42310
42311 2007-03-10  Bruno Haible  <bruno@clisp.org>
42312
42313         * tests/test-binary-io.sh: Use temporary filenames that are not so
42314         likely to clash with those of other tests (in a parallel make).
42315         * tests/test-binary-io.c: Likewise.
42316
42317 2007-03-10  Bruno Haible  <bruno@clisp.org>
42318
42319         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
42320         fallback; use #error instead.
42321         Suggested by Simon Josefsson.
42322
42323 2007-03-10  Bruno Haible  <bruno@clisp.org>
42324
42325         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
42326         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
42327         first and the last.
42328
42329 2007-03-10  Bruno Haible  <bruno@clisp.org>
42330
42331         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
42332
42333 2007-03-10  Bruno Haible  <bruno@clisp.org>
42334
42335         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
42336         "make distcheck".
42337         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
42338         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
42339         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
42340
42341 2007-03-10  Bruno Haible  <bruno@clisp.org>
42342
42343         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
42344         variable.
42345         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
42346         variable.
42347
42348 2007-03-09  Eric Blake  <ebb9@byu.net>
42349         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
42350
42351         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
42352         types are not being provided by gnulib.
42353         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
42354         types are supported.
42355
42356 2007-03-10  Bruno Haible  <bruno@clisp.org>
42357
42358         * lib/stdio_.h (__attribute__): New macro.
42359         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
42360         vsprintf): Specify __attribute__ __format__ for GCC.
42361         Suggested by Eric Blake.
42362
42363 2007-03-09  Bruno Haible  <bruno@clisp.org>
42364
42365         * modules/printf-posix-tests: New file.
42366         * tests/test-printf-posix.sh: New file.
42367         * tests/test-printf-posix.c: New file.
42368
42369         * modules/printf-posix: New file.
42370         * lib/printf.c: New file.
42371         * m4/printf-posix-rpl.m4: New file.
42372         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
42373         REPLACE_PRINTF.
42374         * lib/stdio_.h (printf): New declaration.
42375         (format, __format__, ____printf____, ____scanf____, ____strftime____,
42376         ____strfmon____): New macros.
42377         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
42378         REPLACE_PRINTF.
42379
42380 2007-03-09  Bruno Haible  <bruno@clisp.org>
42381
42382         * tests/test-vasnprintf-posix2.sh: New file.
42383         * tests/test-vasnprintf-posix2.c: New file.
42384         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
42385         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
42386         (Makefile.am): Activate test-vasnprintf-posix2.sh.
42387
42388         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
42389         a locale dependent decimal point, rather than always '.'.
42390
42391 2007-03-09  Eric Blake  <ebb9@byu.net>
42392
42393         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
42394         spite of platforms like Tandem/NSK that define it to -1.
42395
42396 2007-03-08  Bruno Haible  <bruno@clisp.org>
42397
42398         * modules/vprintf-posix-tests: New file.
42399         * tests/test-vprintf-posix.sh: New file.
42400         * tests/test-vprintf-posix.c: New file.
42401         * tests/test-printf-posix.h: New file.
42402
42403         * modules/vprintf-posix: New file.
42404         * lib/vprintf.c: New file.
42405         * m4/vprintf-posix.m4: New file.
42406         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
42407         REPLACE_VPRINTF.
42408         * lib/stdio_.h (vprintf): New declaration.
42409         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
42410         REPLACE_VPRINTF.
42411
42412 2007-03-08  Bruno Haible  <bruno@clisp.org>
42413
42414         * modules/fprintf-posix-tests: New file.
42415         * tests/test-fprintf-posix.sh: New file.
42416         * tests/test-fprintf-posix.c: New file.
42417
42418         * modules/fprintf-posix: New file.
42419         * lib/fprintf.c: New file.
42420         * m4/fprintf-posix.m4: New file.
42421         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
42422         REPLACE_FPRINTF.
42423         * lib/stdio_.h (fprintf): New declaration.
42424         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
42425         REPLACE_FPRINTF.
42426
42427 2007-03-08  Bruno Haible  <bruno@clisp.org>
42428
42429         * modules/vfprintf-posix-tests: New file.
42430         * tests/test-vfprintf-posix.sh: New file.
42431         * tests/test-vfprintf-posix.c: New file.
42432         * tests/test-fprintf-posix.h: New file.
42433         * tests/test-fprintf-posix.out: New file.
42434
42435         * modules/vfprintf-posix: New file.
42436         * lib/vfprintf.c: New file.
42437         * m4/vfprintf-posix.m4: New file.
42438         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
42439         REPLACE_VFPRINTF.
42440         * lib/stdio_.h (vfprintf): New declaration.
42441         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
42442         REPLACE_VFPRINTF.
42443
42444 2007-03-08  Bruno Haible  <bruno@clisp.org>
42445
42446         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
42447
42448 2007-03-08  Bruno Haible  <bruno@clisp.org>
42449
42450         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
42451         instead of 'expr' invocations.
42452         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42453         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42454         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42455         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42456         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42457         Suggested by Paul Eggert.
42458
42459 2007-03-08  Bruno Haible  <bruno@clisp.org>
42460
42461         * modules/fseterr-tests: New file.
42462         * tests/test-fseterr.c: New file.
42463
42464         * modules/fseterr: New file.
42465         * lib/fseterr.h: New file.
42466         * lib/fseterr.c: New file.
42467
42468 2007-03-08  Bruno Haible  <bruno@clisp.org>
42469
42470         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
42471         * lib/getopt_.h: Likewise.
42472         * lib/mbswidth.h: Likewise.
42473         * lib/setenv.h: Likewise.
42474         * lib/vasnprintf.h: Likewise.
42475         * lib/vasprintf.h: Likewise.
42476         * lib/verror.h: Likewise.
42477         * lib/xsetenv.h: Likewise.
42478         * lib/xvasprintf.h: Likewise.
42479
42480 2007-03-08  Jim Meyering  <jim@meyering.net>
42481
42482         * users.txt: Add parted.
42483
42484         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
42485
42486 2007-03-07  Bruno Haible  <bruno@clisp.org>
42487
42488         * m4/printf.m4: Make the shell script snippets copy&pastable.
42489
42490 2007-03-02  Bruno Haible  <bruno@clisp.org>
42491
42492         * lib/netinet_in_.h: New file.
42493         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
42494         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
42495         * modules/netinet_in (Files): Add lib/netinet_in_.h.
42496         (Depends-on): Add absolute-header.
42497         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
42498         into netinet/in.h.
42499
42500 2007-03-03  Bruno Haible  <bruno@clisp.org>
42501
42502         * lib/sys_select_.h: New file.
42503         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
42504         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
42505         * modules/sys_select (Files): Add lib/sys_select_.h.
42506         (Depends-on): Add absolute-header.
42507         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
42508         into sys/select.h.
42509
42510 2007-03-02  Bruno Haible  <bruno@clisp.org>
42511
42512         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
42513         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
42514         values.
42515         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
42516         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
42517         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
42518         * modules/sys_socket (Depends-on): Add absolute-header.
42519         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
42520         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
42521         (Include): Remove requirement of inclusion of <sys/types.h>.
42522
42523 2007-03-02  Bruno Haible  <bruno@clisp.org>
42524
42525         * lib/byteswap_.h (bswap_32): Fix formula.
42526
42527 2007-03-06  Bruno Haible  <bruno@clisp.org>
42528
42529         * modules/sprintf-posix-tests: New file.
42530         * tests/test-sprintf-posix.c: New file.
42531
42532         * modules/sprintf-posix: New file.
42533         * lib/sprintf.c: New file.
42534         * m4/sprintf-posix.m4: New file.
42535         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
42536         REPLACE_SPRINTF.
42537         * lib/stdio_.h (sprintf): New declaration.
42538         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
42539         REPLACE_SPRINTF.
42540
42541 2007-03-06  Bruno Haible  <bruno@clisp.org>
42542
42543         * modules/vsprintf-posix-tests: New file.
42544         * tests/test-vsprintf-posix.c: New file.
42545         * tests/test-sprintf-posix.h: New file.
42546
42547         * modules/vsprintf-posix: New file.
42548         * lib/vsprintf.c: New file.
42549         * m4/vsprintf-posix.m4: New file.
42550         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
42551         REPLACE_VSPRINTF.
42552         * lib/stdio_.h (vsprintf): New declaration.
42553         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
42554         REPLACE_VSPRINTF.
42555
42556 2007-03-06  Bruno Haible  <bruno@clisp.org>
42557
42558         * modules/vsnprintf (Depend-on): Remove minmax.
42559
42560 2007-03-06  Bruno Haible  <bruno@clisp.org>
42561
42562         * modules/snprintf-posix-tests: New file.
42563         * tests/test-snprintf-posix.c: New file.
42564
42565         * modules/snprintf-posix: New file.
42566         * m4/snprintf-posix.m4: New file.
42567         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
42568         gl_FUNC_SNPRINTF.
42569         (gl_FUNC_SNPRINTF): Invoke it.
42570         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
42571         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
42572         is set.
42573         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
42574
42575 2007-03-06  Bruno Haible  <bruno@clisp.org>
42576
42577         * modules/vsnprintf-posix-tests: New file.
42578         * tests/test-vsnprintf-posix.c: New file.
42579         * tests/test-snprintf-posix.h: New file.
42580
42581         * modules/vsnprintf-posix: New file.
42582         * m4/vsnprintf-posix.m4: New file.
42583         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
42584         gl_FUNC_VSNPRINTF.
42585         (gl_FUNC_VSNPRINTF): Invoke it.
42586         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
42587         * lib/stdio_.h (vsnprintf): Define as a replacement if
42588         REPLACE_VSNPRINTF is set.
42589         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
42590
42591 2007-03-06  Bruno Haible  <bruno@clisp.org>
42592
42593         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
42594         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
42595
42596 2007-03-06  Bruno Haible  <bruno@clisp.org>
42597
42598         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
42599         (asinl): Declare also if HAVE_DECL_ASINL is set.
42600         (atanl): Declare also if HAVE_DECL_ATANL is set.
42601         (ceill): Declare also if HAVE_DECL_CEILL is set.
42602         (cosl): Declare also if HAVE_DECL_COSL is set.
42603         (expl): Declare also if HAVE_DECL_EXPL is set.
42604         (floorl): Declare also if HAVE_DECL_FLOORL is set.
42605         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
42606         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
42607         (logl): Declare also if HAVE_DECL_LOGL is set.
42608         (sinl): Declare also if HAVE_DECL_SINL is set.
42609         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
42610         (tanl): Declare also if HAVE_DECL_TANL is set.
42611         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
42612         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
42613         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
42614         declaration of frexpl, ldexpl.
42615         * modules/printf-frexpl (Depends-on): Add math.
42616         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
42617
42618 2007-03-05  Bruno Haible  <bruno@clisp.org>
42619
42620         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
42621         frexpl and ldexpl are declared.
42622         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
42623
42624 2007-03-05  Bruno Haible  <bruno@clisp.org>
42625
42626         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
42627         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
42628
42629 2007-03-05  Bruno Haible  <bruno@clisp.org>
42630
42631         * lib/stdio_.h: Include <stddef.h>.
42632
42633 2007-03-05  Bruno Haible  <bruno@clisp.org>
42634
42635         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
42636
42637 2007-03-05  Bruno Haible  <bruno@clisp.org>
42638
42639         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
42640         NetBSD 4, from Ralf Wildenhues.
42641
42642 2007-03-04  Bruno Haible  <bruno@clisp.org>
42643
42644         * lib/vasprintf.h: Update #if logic for the case when the functions
42645         exist but are overridden.
42646
42647 2007-03-04  Bruno Haible  <bruno@clisp.org>
42648
42649         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
42650         implementations: glibc-2.4 and MacOS X 10.3.
42651         * tests/test-vasnprintf-posix.c (test_function): Test also the case
42652         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
42653         * tests/test-vasprintf-posix.c (test_function): Likewise.
42654
42655 2007-03-04  Bruno Haible  <bruno@clisp.org>
42656
42657         * modules/vasprintf-posix-tests: New file.
42658         * tests/test-vasprintf-posix.c: New file.
42659
42660         * modules/vasprintf-posix: New file.
42661         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
42662         defined.
42663         * m4/vasprintf-posix.m4: New file.
42664         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
42665         gl_FUNC_VASPRINTF.
42666         (gl_FUNC_VASPRINTF): Invoke it.
42667         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
42668         here.
42669         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
42670
42671 2007-03-04  Bruno Haible  <bruno@clisp.org>
42672
42673         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
42674         REPLACE_GETTIMEOFDAY.
42675         * modules/sys_time (Makefile.am): Likewise.
42676         * m4/sys_time_h.m4: Likewise.
42677         * m4/gettimeofday.m4: Likewise.
42678
42679 2007-03-04  Bruno Haible  <bruno@clisp.org>
42680
42681         * modules/vasnprintf-posix-tests: New file.
42682         * tests/test-vasnprintf-posix.c: New file.
42683
42684         * modules/vasnprintf-posix: New file.
42685         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
42686         printf-frexpl.h.
42687         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
42688         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
42689         REPLACE_VASNPRINTF is defined.
42690         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
42691         gl_FUNC_VASNPRINTF.
42692         (gl_FUNC_VASNPRINTF): Invoke it.
42693         * m4/vasnprintf-posix.m4: New file.
42694         * m4/printf.m4: New file.
42695
42696 2007-03-04  Bruno Haible  <bruno@clisp.org>
42697
42698         Compile progreloc.c only if --enable-relocatable is specified.
42699         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
42700         if --enable-relocatable was specified.
42701         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
42702         lib_SOURCES.
42703
42704 2007-03-04  Jim Meyering  <jim@meyering.net>
42705
42706         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
42707         Use it consistently, rather than enumerating errno constants.
42708
42709 2007-03-04  Bruno Haible  <bruno@clisp.org>
42710
42711         * modules/xvasprintf-tests: New file.
42712         * tests/test-xvasprintf.c: New file.
42713
42714         * modules/vasprintf-tests: New file.
42715         * tests/test-vasprintf.c: New file.
42716
42717         * modules/vasnprintf-tests: New file.
42718         * tests/test-vasnprintf.c: New file.
42719
42720         * modules/vsnprintf-tests: New file.
42721         * tests/test-vsnprintf.c: New file.
42722
42723         * modules/snprintf-tests: New file.
42724         * tests/test-snprintf.c: New file.
42725
42726 2007-03-04  Bruno Haible  <bruno@clisp.org>
42727
42728         Compile relocatable.c only if --enable-relocatable is specified.
42729         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
42730         gl_RELOCATABLE_LIBRARY.
42731         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
42732         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
42733         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
42734         gl_RELOCATABLE_LIBRARY.
42735         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
42736         (Makefile.am): Remove lib_SOURCES.
42737         * modules/relocatable-lib-lgpl (configure.ac): Invoke
42738         gl_RELOCATABLE_LIBRARY.
42739         (Makefile.am): Remove lib_SOURCES.
42740         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
42741         always.
42742         * modules/relocatable-prog-wrapper (configure.ac): Invoke
42743         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
42744
42745 2007-03-04  Bruno Haible  <bruno@clisp.org>
42746
42747         * modules/argmatch-tests: New file.
42748         * tests/test-argmatch.c: New file.
42749
42750         * tests/test-allocsa.c (main): Halve the number of loop runs.
42751
42752         * modules/alloca-opt-tests: New file.
42753         * tests/test-alloca-opt.c: New file.
42754
42755 2007-03-04  Jim Meyering  <jim@meyering.net>
42756
42757         Work around difference between Linux ACLs and Solaris 10 ZFS.
42758         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
42759         for EINVAL.
42760
42761 2007-03-03  Bruno Haible  <bruno@clisp.org>
42762
42763         * modules/relocatable-prog (Depends-on): Add back progreloc's
42764         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
42765
42766 2007-03-03  Bruno Haible  <bruno@clisp.org>
42767
42768         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
42769         * modules/relocatable-lib: New file.
42770
42771 2007-03-03  Bruno Haible  <bruno@clisp.org>
42772
42773         * modules/relocatable-prog: Renamed from modules/relocatable.
42774         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
42775
42776 2007-03-03  Bruno Haible  <bruno@clisp.org>
42777
42778         * modules/relocatable-script (Files): Add doc/relocatable.texi,
42779         m4/relocatable-lib.m4.
42780         (Depends-on): Remove 'relocatable'.
42781         (configure.ac): Add gl_RELOCATABLE_NOP.
42782
42783 2007-03-03  Bruno Haible  <bruno@clisp.org>
42784
42785         * modules/relocatable-prog-wrapper: New file.
42786         * modules/relocatable (Depends-on): Add it. Remove all other
42787         dependencies except progname.
42788         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
42789
42790         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
42791         (gl_FUNC_STRERROR): Nop.
42792         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
42793
42794         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
42795         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
42796
42797         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
42798         (gl_FUNC_READLINK): Update.
42799
42800         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
42801
42802 2007-03-03  Bruno Haible  <bruno@clisp.org>
42803
42804         * lib/xreadlink.c: Include <unistd.h> unconditionally.
42805         * modules/xreadlink (Depends-on): Add unistd.
42806         * modules/xreadlink-with-size (Depends-on): Likewise.
42807
42808 2007-03-03  Bruno Haible  <bruno@clisp.org>
42809
42810         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
42811         extracted from gt_FUNC_SETENV.
42812         (gt_FUNC_SETENV): Remove macro.
42813         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
42814         remove gt_FUNC_SETENV.
42815
42816 2007-03-03  Bruno Haible  <bruno@clisp.org>
42817
42818         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
42819         ENABLE_RELOCATABLE here.
42820         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
42821
42822 2007-03-03  Bruno Haible  <bruno@clisp.org>
42823
42824         * modules/rbtreehash-list-tests (Depends-on): Add progname.
42825         * tests/test-rbtreehash_list.c: Include progname.h.
42826         (main): Call set_program_name.
42827
42828         * modules/rbtree-oset-tests (Depends-on): Add progname.
42829         * tests/test-rbtree_oset.c: Include progname.h.
42830         (main): Call set_program_name.
42831
42832         * modules/rbtree-list-tests (Depends-on): Add progname.
42833         * tests/test-rbtree_list.c: Include progname.h.
42834         (main): Call set_program_name.
42835
42836         * modules/linked-list-tests (Depends-on): Add progname.
42837         * tests/test-linked_list.c: Include progname.h.
42838         (main): Call set_program_name.
42839
42840 2007-03-03  Bruno Haible  <bruno@clisp.org>
42841
42842         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
42843         All uses of __restrict changed to _Restrict_.
42844         * lib/glob_.h (__restrict): Remove macro.
42845
42846 2007-03-02  Bruno Haible  <bruno@clisp.org>
42847
42848         * modules/gettext (configure.ac): Require gettext infrastructure
42849         from version 0.16.1.
42850
42851 2007-03-02  Bruno Haible  <bruno@clisp.org>
42852
42853         * modules/linkedhash-list-tests (Depends-on): Add progname.
42854         * tests/test-linkedhash_list.c: Include progname.h.
42855         (main): Call set_program_name.
42856
42857         * modules/carray-list-tests (Depends-on): Add progname.
42858         * tests/test-carray_list.c: Include progname.h.
42859         (main): Call set_program_name.
42860
42861         * modules/avltreehash-list-tests (Depends-on): Add progname.
42862         * tests/test-avltreehash_list.c: Include progname.h.
42863         (main): Call set_program_name.
42864
42865         * modules/avltree-oset-tests (Depends-on): Add progname.
42866         * tests/test-avltree_oset.c: Include progname.h.
42867         (main): Call set_program_name.
42868
42869         * modules/avltree-list-tests (Depends-on): Add progname.
42870         * tests/test-avltree_list.c: Include progname.h.
42871         (main): Call set_program_name.
42872
42873         * modules/array-oset-tests (Depends-on): Add progname.
42874         * tests/test-array_oset.c: Include progname.h.
42875         (main): Call set_program_name.
42876
42877         * modules/array-list-tests (Depends-on): Add progname.
42878         * tests/test-array_list.c: Include progname.h.
42879         (main): Call set_program_name.
42880
42881         * modules/argp-tests (Depends-on): Add progname.
42882         * tests/test-argp.c: Include argp.h first. Include progname.h.
42883         (main): Call set_program_name.
42884
42885 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
42886
42887         * doc/gnulib-tool.texi (Initial import): Reword description of
42888         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
42889         limited effect even if defined after the first system include.
42890
42891 2007-03-01  Bruno Haible  <bruno@clisp.org>
42892
42893         * build-aux/config.libpath: Update to libtool-1.5.22.
42894         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
42895
42896 2007-03-01  Bruno Haible  <bruno@clisp.org>
42897
42898         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
42899         foo_CFLAGS.
42900         Reported by Ralf Wildenhues.
42901
42902 2007-03-01  Bruno Haible  <bruno@clisp.org>
42903
42904         * build-aux/install-reloc: Remove object files left over by some
42905         compilers.
42906         Reported by Ralf Wildenhues.
42907
42908 2007-03-01  Bruno Haible  <bruno@clisp.org>
42909
42910         * build-aux/install-reloc: Break long lines.
42911
42912 2007-03-01  Bruno Haible  <bruno@clisp.org>
42913
42914         * doc/relocatable.texi: Document that it may not work on OpenBSD.
42915         Reported by Ralf Wildenhues.
42916
42917 2007-03-01  Bruno Haible  <bruno@clisp.org>
42918
42919         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
42920         include ordering constraints.
42921
42922 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
42923
42924         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
42925         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
42926         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
42927         as another example.
42928         * lib/time_.h: Fix misspelling.
42929         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
42930         Require gl_HEADER_TIME_H_DEFAULTS.
42931         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
42932         * m4/time_r.m4 (gl_TIME_R): Likewise.
42933         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
42934
42935 2007-03-01  Bruno Haible  <bruno@clisp.org>
42936
42937         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
42938         * m4/utimens.m4 (gl_UTIMENS): Likewise.
42939
42940 2007-03-01  Jim Meyering  <jim@meyering.net>
42941
42942         * modules/xreadlink (Maintainer): Add my name.
42943         * modules/xreadlink-with-size (Depends-on): Alphabetize.
42944
42945 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
42946             Bruno Haible  <bruno@clisp.org>
42947
42948         * build-aux/install-reloc: Compile also c-ctype.c.
42949         * build-aux/relocatable.sh.in: New file.
42950         * doc/relocatable.texi: New file.
42951         * doc/relocatable-maint.texi: New file.
42952         * doc/gnulib.texi: Include relocatable-maint.texi.
42953         * lib/progreloc.c: Include unistd.h unconditionally.
42954         * lib/relocwrapper.c: Include unistd.h unconditionally.
42955         Include c-ctype.h.
42956         (add_dotbin): Use c_tolower.
42957         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
42958         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
42959         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
42960         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
42961         to m4/relocatable-lib.m4.
42962         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
42963         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
42964         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
42965         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
42966         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
42967         * modules/relocatable: New file.
42968         * modules/relocatable-lib: New file.
42969         * modules/relocatable-script: New file.
42970
42971 2007-02-28  Bruno Haible  <bruno@clisp.org>
42972
42973         Import --enable-relocatable infrastructure.
42974         * build-aux/config.libpath: New file, from GNU gettext.
42975         * build-aux/install-reloc: New file, from GNU gettext.
42976         * build-aux/reloc-ldflags: New file, from GNU gettext.
42977         * lib/relocatable.h: New file, from GNU gettext.
42978         * lib/relocatable.c: New file, from GNU gettext.
42979         * lib/relocwrapper.c: New file, from GNU gettext.
42980         * m4/relocatable.m4: New file, from GNU gettext.
42981
42982 2007-02-28  Bruno Haible  <bruno@clisp.org>
42983
42984         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
42985
42986         * modules/xreadlink: New file, from GNU gettext with modifications.
42987         * lib/xreadlink.c: New file, from GNU gettext.
42988         * lib/xreadlink.h: Add comments.
42989         (xreadlink): New declaration.
42990
42991         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
42992         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
42993         lib/xreadlink-with-size.c.
42994         (configure.ac): Remove gl_XREADLINK invocation.
42995         (Makefile.am): Augment lib_SOURCES.
42996         * m4/xreadlink.m4: Remove file.
42997         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
42998         (xreadlink_with_size): Renamed from xreadink.
42999         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
43000         * modules/canonicalize (Depends-on): Replace xreadlink with
43001         xreadlink-with-size.
43002         * lib/canonicalize.c (canonicalize_filename_mode): Update.
43003
43004 2007-02-25  Jim Meyering  <jim@meyering.net>
43005
43006         * build-aux/announce-gen: When complaining about excess arguments,
43007         list them.
43008
43009 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
43010
43011         * README: Document signed integer overflow situation more
43012         accurately.
43013
43014 2007-02-25  Bruno Haible  <bruno@clisp.org>
43015
43016         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
43017         'a' or 'A' conversion.
43018
43019 2007-02-25  Bruno Haible  <bruno@clisp.org>
43020
43021         * modules/filename: Renamed from modules/pathname.
43022         (Files): Replace lib/pathname.h with lib/filename.h. Replace
43023         lib/concatpath.c with lib/concat-filename.c.
43024         (Makefile.am): Update.
43025         (Include): Replace pathname.h with filename.h.
43026         * lib/filename.h: Renamed from lib/pathname.h.
43027         (concatenated_filename): Renamed from concatenated_pathname.
43028         * lib/concat-filename.c: Renamed from lib/concatpath.c.
43029         (concatenated_filename): Renamed from concatenated_pathname.
43030         * lib/findprog.c: Include filename.h instead of pathname.h.
43031         (find_in_path): Update.
43032         * lib/javacomp.c: Include filename.h instead of pathname.h.
43033         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
43034         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
43035         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
43036         is_oldgcj_14_13_usable, is_javac_usable): Update.
43037         * lib/javaexec.c: Include filename.h instead of pathname.h.
43038         (execute_java_class): Update.
43039         * modules/findprog: Update.
43040         * modules/javacomp: Update.
43041         * modules/javaexec: Update.
43042         * MODULES.html.sh (File system functions): Add 'filename', remove
43043         'pathname'.
43044
43045 2007-02-25  Bruno Haible  <bruno@clisp.org>
43046
43047         * modules/printf-frexpl-tests: New file.
43048         * tests/test-printf-frexpl.c: New file.
43049
43050         * modules/printf-frexpl: New file.
43051         * lib/printf-frexpl.h: New file.
43052         * lib/printf-frexpl.c: New file.
43053         * m4/printf-frexpl.m4: New file.
43054
43055 2007-02-25  Bruno Haible  <bruno@clisp.org>
43056
43057         * modules/printf-frexp-tests: New file.
43058         * tests/test-printf-frexp.c: New file.
43059
43060         * modules/printf-frexp: New file.
43061         * lib/printf-frexp.h: New file.
43062         * lib/printf-frexp.c: New file.
43063         * m4/printf-frexp.m4: New file.
43064
43065 2007-02-25  Bruno Haible  <bruno@clisp.org>
43066
43067         Assume automake >= 1.10 for the tests.
43068         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
43069         * modules/arctwo-tests: Likewise.
43070         * modules/argp-tests: Likewise.
43071         * modules/avltree-list-tests: Likewise.
43072         * modules/avltree-oset-tests: Likewise.
43073         * modules/avltreehash-list-tests: Likewise.
43074         * modules/carray-list-tests: Likewise.
43075         * modules/crc-tests: Likewise.
43076         * modules/des-tests: Likewise.
43077         * modules/gc-arcfour-tests: Likewise.
43078         * modules/gc-arctwo-tests: Likewise.
43079         * modules/gc-des-tests: Likewise.
43080         * modules/gc-hmac-md5-tests: Likewise.
43081         * modules/gc-hmac-sha1-tests: Likewise.
43082         * modules/gc-md2-tests: Likewise.
43083         * modules/gc-md4-tests: Likewise.
43084         * modules/gc-md5-tests: Likewise.
43085         * modules/gc-pbkdf2-sha1-tests: Likewise.
43086         * modules/gc-rijndael-tests: Likewise.
43087         * modules/gc-sha1-tests: Likewise.
43088         * modules/gc-tests: Likewise.
43089         * modules/getaddrinfo-tests: Likewise.
43090         * modules/hmac-md5-tests: Likewise.
43091         * modules/hmac-sha1-tests: Likewise.
43092         * modules/linked-list-tests: Likewise.
43093         * modules/linkedhash-list-tests: Likewise.
43094         * modules/lock-tests: Likewise.
43095         * modules/md2-tests: Likewise.
43096         * modules/md4-tests: Likewise.
43097         * modules/md5-tests: Likewise.
43098         * modules/rbtree-list-tests: Likewise.
43099         * modules/rbtree-oset-tests: Likewise.
43100         * modules/rbtreehash-list-tests: Likewise.
43101         * modules/read-file-tests: Likewise.
43102         * modules/rijndael-tests: Likewise.
43103         * modules/stdint-tests: Likewise.
43104         * modules/tls-tests: Likewise.
43105
43106 2007-02-24  Bruno Haible  <bruno@clisp.org>
43107
43108         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
43109         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
43110         function; instead check whether isnan with a double argument links.
43111         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
43112         function; instead check whether isnan with a 'long double' argument
43113         links.
43114         Reported by Eric Blake <ebb9@byu.net>.
43115
43116 2007-02-24  Bruno Haible  <bruno@clisp.org>
43117
43118         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
43119         defined.
43120         * lib/isnanl.c: Remove all code. Just include isnan.c.
43121         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
43122
43123 2007-02-25  Jim Meyering  <jim@meyering.net>
43124
43125         Avoid conflicting types for 'unsetenv' on FreeBSD.
43126         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
43127         conflicting with FreeBSD's (5.0 and 6.1) function declaration
43128         in stdlib.h.
43129
43130 2007-02-24  Bruno Haible  <bruno@clisp.org>
43131
43132         * modules/isnanl-nolibm-tests: New file.
43133         * tests/test-isnanl.c: New file.
43134
43135         * modules/isnanl-nolibm: New file.
43136         * lib/isnanl.h: New file.
43137         * lib/isnanl.c: New file.
43138         * m4/isnanl.m4: New file.
43139
43140 2007-02-24  Bruno Haible  <bruno@clisp.org>
43141
43142         * modules/isnan-nolibm-tests: New file.
43143         * tests/test-isnan.c: New file.
43144
43145         * modules/isnan-nolibm: New file.
43146         * lib/isnan.h: New file.
43147         * lib/isnan.c: New file.
43148         * m4/isnan.m4: New file.
43149
43150 2007-02-24  Bruno Haible  <bruno@clisp.org>
43151
43152         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
43153         assume that an exponent fits in 20 bits.
43154
43155 2007-02-24  Jim Meyering  <jim@meyering.net>
43156
43157         * m4/regex.m4: Update the description of the configure-time option,
43158         --without-included-regex, to state accurately what the defaults are,
43159         and perhaps to give people an idea why using this option is risky.
43160
43161 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
43162
43163         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
43164         loops on small arguments.  This attempts to avoid the problem
43165         Bruno Haible reported for AIX 4.3.2 in
43166         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
43167
43168 2007-02-23  Bruno Haible  <bruno@clisp.org>
43169
43170         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
43171         Needed for help2man.
43172
43173 2007-02-23  Karl Berry  <karl@gnu.org>
43174
43175         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
43176         exists, foo.h should be cvs-ignored, not committed.
43177
43178 2007-02-23  Eric Blake  <ebb9@byu.net>
43179
43180         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
43181         * lib/stat-time.h (includes): Likewise.
43182         * lib/utimecmp.c (includes): Likewise.
43183         * lib/utimens.h (includes): Likewise.
43184         * lib/getdate.y (includes): Also include "timespec.h" for use
43185         internal to the module.
43186         * modules/utimens (Depends-on): Revert yesterday's patch.
43187         * modules/nanosleep (Depends-on): Add missing dependency.
43188
43189 2007-02-22  Bruno Haible  <bruno@clisp.org>
43190
43191         * lib/glob.c: Don't include getlogin_r.h.
43192
43193 2007-02-22  Jim Meyering  <jim@meyering.net>
43194
43195         * modules/utimens (Depends-on): Add timespec, required for
43196         utimens.h's inclusion of timespec.h.
43197
43198 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
43199
43200         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
43201         long unreadable paths in GNU/Linux.  Problem reported by Andreas
43202         Schwab in
43203         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
43204         I'll try to think of a better way to fix the Solaris problem.
43205
43206         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
43207         like glibc; on Solaris 10, it fails with errno == EINVAL.
43208         POSIX says the behavior is unspecified if the first argument is NULL,
43209         so play it safe and never pass NULL to the system getcwd.
43210
43211 2007-02-21  Jim Meyering  <jim@meyering.net>
43212
43213         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
43214         of gettimeofday.  It would conflict with the one now always
43215         provided via sys_time_.h.  Reported by Matthew Woehlke, as
43216         an IRIX 6.5 build failure.
43217
43218 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
43219
43220         Minor fixups to port to Solaris 10 with Sun C 5.8.
43221         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
43222         * modules/getcwd (Depends-on): Add dirfd.
43223         * lib/putenv.c (putenv): #undef it.
43224         (rpl_putenv): New decl.
43225         (malloc, free): Include <stdlib.h> rather than prototyping separately.
43226
43227 2007-02-20  Bruno Haible  <bruno@clisp.org>
43228
43229         * modules/stdio-tests: New file.
43230         * tests/test-stdio.c: New file.
43231
43232         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
43233         (Depends-on): Add stdio.
43234         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
43235         (Include): Use <stdio.h> instead of vsnprintf.h.
43236         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
43237         HAVE_DECL_VSNPRINTF.
43238         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
43239
43240         * modules/snprintf (Files): Remove lib/snprintf.h.
43241         (Depends-on): Add stdio.
43242         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
43243         (Include): Use <stdio.h> instead of snprintf.h.
43244         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
43245         HAVE_DECL_SNPRINTF.
43246         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
43247         * lib/getaddrinfo.c: Likewise.
43248
43249         * modules/stdio: New file.
43250         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
43251         * lib/snprintf.h: Remove file.
43252         * lib/vsnprintf.h: Remove file.
43253         * lib/.cppi-disable: Remove snprintf.h.
43254         * m4/stdio_h.m4: New file.
43255         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
43256
43257 2007-02-20  Jim Meyering  <jim@meyering.net>
43258
43259         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
43260         used by e.g., mingw.  From Bruno Haible.
43261
43262 2007-02-19  Bruno Haible  <bruno@clisp.org>
43263
43264         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
43265         warnings.
43266         Reported by Ben Pfaff <blp@cs.stanford.edu>.
43267
43268 2007-02-19  Bruno Haible  <bruno@clisp.org>
43269
43270         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
43271         from mingw users.
43272
43273 2007-02-19  Bruno Haible  <bruno@clisp.org>
43274
43275         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
43276         warnings.
43277         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
43278
43279 2007-02-19  Jim Meyering  <jim@meyering.net>
43280
43281         Don't use FD after a successful "fdopendir (fd)".
43282         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
43283         Reset it by calling dirfd on the just-obtained DIR*.
43284
43285         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
43286         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
43287
43288 2007-02-18  Bruno Haible  <bruno@clisp.org>
43289
43290         * lib/readlink.c: Include <unistd.h>.
43291         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
43292         HAVE_READLINK.
43293         * modules/readlink (Depends-on): Add unistd.
43294         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43295         (Include): Add <unistd.h>.
43296
43297         * lib/getlogin_r.h: Remove file.
43298         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
43299         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
43300         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
43301         HAVE_DECL_GETLOGIN_R.
43302         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
43303         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43304         (Include): Use <unistd.h> instead of getlogin_r.h.
43305
43306         * lib/getcwd.h: Remove file.
43307         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
43308         * lib/xgetcwd.c: Likewise.
43309         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
43310         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
43311         * modules/getcwd (Files): Remove lib/getcwd.h.
43312         (Depends-on): Add unistd.
43313         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43314         (Include): Use <unistd.h> instad of getcwd.h.
43315
43316         * lib/ftruncate.c: Include <unistd.h> first.
43317         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
43318         Set HAVE_FTRUNCATE.
43319         * modules/ftruncate (Depends-on): Add unistd.
43320         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43321
43322         * lib/fchdir.c: Include <unistd.h> first.
43323         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
43324         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
43325         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
43326         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43327         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
43328
43329         * lib/dup2.c: Include <unistd.h> first.
43330         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
43331         HAVE_DUP2.
43332         * modules/dup2 (Depends-on): Add unistd.
43333         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43334
43335         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
43336         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
43337         REPLACE_CHOWN. Don't define chown as a macro here.
43338         * modules/chown (Depends-on): Add unistd.
43339         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
43340
43341         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
43342         Add definition for GL_LINK_WARNING.
43343         (chown, dup2): New declarations.
43344         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
43345         link warning.
43346         (ftruncate): New declaration.
43347         (getcwd): New declaration, taken from old getcwd.h.
43348         (getlogin_r): New declaration, taken from old getlogin_r.h.
43349         (readlink): New declaration.
43350         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
43351         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
43352         (gl_PREREQ_UNISTD): Remove macro.
43353         (gl_UNISTD_MODULE_INDICATOR): New macro.
43354         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
43355         many new variables. Don't set UNISTD_H.
43356         * modules/unistd (Description): Change.
43357         (Depends-on): Add link-warning.
43358         (configure.ac): Update.
43359         (Makefile.am): Create unistd.h always. Substitute many new variables
43360         into it.
43361
43362 2007-02-18  Bruno Haible  <bruno@clisp.org>
43363
43364         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
43365         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
43366         HAVE_GETSUBOPT.
43367         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
43368         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
43369         * lib/getsubopt.h: Remove file.
43370         * modules/getsubopt (Files): Remove lib/getsubopt.h.
43371         (Depends-on): Add stdlib.
43372         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43373         (Includes): Use <stdlib.h> instead of getsubopt.h.
43374         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
43375         Set HAVE_GETSUBOPT.
43376         * lib/getsubopt.c: Don't include getsubopt.h.
43377
43378 2007-02-18  Bruno Haible  <bruno@clisp.org>
43379
43380         * modules/fchdir (Depends-on): Add dup2.
43381
43382 2007-02-18  Bruno Haible  <bruno@clisp.org>
43383
43384         * lib/stdlib_.h: Handle glibc's special invocation convention
43385         specially.
43386
43387 2007-02-18  Bruno Haible  <bruno@clisp.org>
43388
43389         * modules/stdlib-tests: New file.
43390         * tests/test-stdlib.c: New file.
43391
43392         * modules/mkstemp (Files): Remove lib/mkstemp.h.
43393         (Depends-on): Add stdlib.
43394         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43395         (Includes): Use <stdlib.h> instead of mkstemp.h.
43396         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
43397         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
43398         * lib/mkstemp.c: Don't include mkstemp.h.
43399         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
43400         * lib/stdlib--.h: Don't include mkstemp.h.
43401
43402         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
43403         (Depends-on): Add stdlib.
43404         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
43405         (Includes): Use <stdlib.h> instead of mkdtemp.h.
43406         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
43407         HAVE_MKDTEMP.
43408         * lib/mkdtemp.c: Don't include mkdtemp.h.
43409         * lib/clean-temp.c: Don't include mkdtemp.h.
43410
43411         * modules/exit (Files): Remove lib/exit.h.
43412         (Depends-on): Add stdlib.
43413         (Makefile.am): Remove lib_SOURCES.
43414         (Include): Use <stdlib.h> instead of exit.h.
43415         * lib/argmatch.c: Don't include exit.h.
43416         * lib/execute.c: Likewise.
43417         * lib/pagealign_alloc.c: Likewise.
43418         * lib/pipe.c: Likewise.
43419         * lib/wait-process.c: Likewise.
43420         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
43421         * lib/exitfail.c: Likewise.
43422         * lib/savewd.c: Likewise.
43423         * lib/xsetenv.c: Likewise.
43424
43425         * modules/stdlib: New file.
43426         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
43427         and extra comments about mkstemp().
43428         * lib/exit.h: Remove file.
43429         * lib/mkdtemp.h: Remove file.
43430         * lib/mkstemp.h: Remove file.
43431         * m4/stdlib_h.m4: New file.
43432         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
43433
43434 2007-02-18  Bruno Haible  <bruno@clisp.org>
43435
43436         * modules/math-tests: New file.
43437         * tests/test-math.c: New file.
43438
43439         * modules/math: New file.
43440         * modules/mathl (Files): Remove lib/mathl.h.
43441         (Depends-on): Add math.
43442         (Makefile.am): Don't mention mathl.h.
43443         (Include): Use <math.h> instead of mathl.h.
43444         * lib/math_.h: New file.
43445         * lib/mathl.h: Remove file.
43446         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
43447         mathl.h.
43448         * lib/asinl.c: Likewise.
43449         * lib/atanl.c: Likewise.
43450         * lib/ceill.c: Likewise.
43451         * lib/cosl.c: Likewise.
43452         * lib/expl.c: Likewise.
43453         * lib/floorl.c: Likewise.
43454         * lib/frexpl.c: Likewise.
43455         * lib/ldexpl.c: Likewise.
43456         * lib/logl.c: Likewise.
43457         * lib/sincosl.c: Likewise.
43458         * lib/sinl.c: Likewise.
43459         * lib/sqrtl.c: Likewise.
43460         * lib/tanl.c: Likewise.
43461         * lib/trigl.c: Likewise.
43462         * m4/math_h.m4: New file.
43463         * MODULES.html.sh (Mathematics): Add math.
43464
43465 2007-02-17  Bruno Haible  <bruno@clisp.org>
43466
43467         * modules/wctype-tests: New file.
43468         * tests/test-wctype.c: New file.
43469
43470         * modules/wchar-tests: New file.
43471         * tests/test-wchar.c: New file.
43472
43473         * modules/unistd-tests: New file.
43474         * tests/test-unistd.c: New file.
43475
43476         * modules/time-tests: New file.
43477         * tests/test-time.c: New file.
43478
43479         * modules/sysexits-tests: New file.
43480         * tests/test-sysexits.c: New file.
43481
43482         * modules/sys_time-tests: New file.
43483         * tests/test-sys_time.c: New file.
43484
43485         * modules/sys_stat-tests: New file.
43486         * tests/test-sys_stat.c: New file.
43487
43488         * modules/sys_socket-tests: New file.
43489         * tests/test-sys_socket.c: New file.
43490
43491         * modules/sys_select-tests: New file.
43492         * tests/test-sys_select.c: New file.
43493
43494         * modules/string-tests: New file.
43495         * tests/test-string.c: New file.
43496
43497         * modules/stdbool-tests: New file.
43498         * tests/test-stdbool.c: New file.
43499
43500         * modules/netinet_in-tests: New file.
43501         * tests/test-netinet_in.c: New file.
43502
43503         * modules/inttypes-tests: New file.
43504         * tests/test-inttypes.c: New file.
43505
43506         * modules/fcntl-tests: New file.
43507         * tests/test-fcntl.c: New file.
43508
43509         * modules/byteswap-tests: New file.
43510         * tests/test-byteswap.c: New file.
43511
43512         * modules/arpa_inet-tests: New file.
43513         * tests/test-arpa_inet.c: New file.
43514
43515 2007-02-17  Bruno Haible  <bruno@clisp.org>
43516
43517         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
43518         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
43519         if the corresponding module is not enabled. Emit link warnings if
43520         the function is used nevertheless.
43521         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
43522         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
43523         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
43524         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
43525         * modules/inttypes (Depends-on): Add link-warning.
43526         (Makefile.am): Copy the contents of build-aux/link-warning.h into
43527         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
43528         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
43529         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
43530         * modules/imaxdiv (configure.ac): Likewise.
43531         * modules/strtoimax (configure.ac): Likewise.
43532         * modules/strtoumax (configure.ac): Likewise.
43533
43534 2007-02-17  Bruno Haible  <bruno@clisp.org>
43535
43536         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
43537         gl_STRING_MODULE_INDICATOR_DEFAULTS.
43538         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
43539         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
43540
43541 2007-02-17  Bruno Haible  <bruno@clisp.org>
43542
43543         * modules/link-warning: New file.
43544         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
43545         * lib/string_.h (GL_LINK_WARNING): Remove definition.
43546         * modules/string (Depends-on): Add link-warning.
43547         (Makefile.am): Copy the contents of build-aux/link-warning.h into
43548         string.h.
43549         * MODULES.html.sh (Support for building libraries and executables): Add
43550         link-warning.
43551
43552 2007-02-17  Bruno Haible  <bruno@clisp.org>
43553
43554         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
43555         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
43556         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
43557         long lines.
43558
43559 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
43560             Bruno Haible  <bruno@clisp.org>
43561
43562         * modules/tmpfile: New file.
43563         * lib/tmpfile.c: New file.
43564         * m4/tmpfile.m4: New file.
43565         * MODULES.html.sh (func_all_modules): New section "Input/output".
43566
43567 2007-02-15  Bruno Haible  <bruno@clisp.org>
43568
43569         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
43570         (supports_delete_on_close): New function.
43571         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
43572
43573 2007-02-14  Bruno Haible  <bruno@clisp.org>
43574
43575         * modules/mbspcasecmp-tests: New file.
43576         * tests/test-mbspcasecmp.sh: New file.
43577         * tests/test-mbspcasecmp.c: New file.
43578
43579         New module mbspcasecmp.
43580         * modules/mbspcasecmp: New file.
43581         * lib/mbspcasecmp.c: New file.
43582         * lib/string_.h (strncasecmp): Change warning message.
43583         (mbspcasecmp): New declaration.
43584         * m4/mbspcasecmp.m4: New file.
43585         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43586         GNULIB_MBSPCASECMP.
43587         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
43588         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
43589
43590 2007-02-14  Bruno Haible  <bruno@clisp.org>
43591
43592         * modules/mbsncasecmp-tests: New file.
43593         * tests/test-mbsncasecmp.sh: New file.
43594         * tests/test-mbsncasecmp.c: New file.
43595
43596         New module mbsncasecmp.
43597         * modules/mbsncasecmp: New file.
43598         * lib/mbsncasecmp.c: New file.
43599         * lib/string_.h (mbsncasecmp): New declaration.
43600         * m4/mbsncasecmp.m4: New file.
43601         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43602         GNULIB_MBSNCASECMP.
43603         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
43604         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
43605
43606 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
43607
43608         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
43609         Verify that it doesn't overlap with our flags.
43610         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
43611         do not have the desired effect in multibyte locales; instead, use
43612         mbscasecmp.
43613         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
43614         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
43615         we don't require GNU fnmatch ourselves (if our users require it, they
43616         should do so explicitly).
43617
43618         Fix regex code so it doesn't rely on strcasecmp.
43619         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
43620         Otherwise, include gnulib's langinfo.h.
43621         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
43622         undesirable behavior in non-C locales.  Instead, rely on localecharset.
43623         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
43624         * modules/regex (FILES): Remove m4/codeset.m4.
43625         (Depends-on): Add localcharset.  Remove strcase.
43626
43627 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43628
43629         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
43630         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
43631
43632 2007-02-13  Bruno Haible  <bruno@clisp.org>
43633
43634         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
43635         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43636
43637 2007-02-12  Bruno Haible  <bruno@clisp.org>
43638
43639         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
43640         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
43641         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
43642         time warning rather than a link error.
43643
43644 2007-02-12  Bruno Haible  <bruno@clisp.org>
43645
43646         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
43647         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
43648         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
43649
43650 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
43651
43652         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
43653         args, not 2.
43654
43655 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
43656
43657         New module 'time', so that apps can include <time.h> as per
43658         POSIX and GNU instead of separate include files like time_r.h
43659         and timegm.h.  This implementation tries out a simpler approach
43660         for replacing decls in standard include files (as compared to
43661         the string module), somewhat as an experiment.
43662
43663         * config/srclist.txt: Comment out mktime.c for now.
43664         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
43665         since it doesn't apply any more.  Use generic wording instead.
43666         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
43667         'time'.
43668         * lib/time_.h, m4/time_h.m4, modules/time: New files.
43669         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
43670         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
43671         Don't include <sys/types.h>; no longer needed since we assume C89.
43672         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
43673         * lib/strftime.c: Likewise.
43674         * lib/time_r.c: Likewise.
43675         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
43676         * lib/nanosleep.c: Include <time.h> first, to check interface.
43677         * lib/strptime.c: Likewise.
43678         * lib/time_r.c: Likewise.
43679         * lib/timegm.c: Likewise.
43680         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
43681         needed.
43682         * lib/timegm.c: Don't include timegm.h; no longer needed.
43683         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
43684         time.h now handles any problems in that area.
43685         (struct timespec, nanosleep): Remove; time.h now arranges for these.
43686         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
43687         that time.h defines struct timespec.
43688         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
43689         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
43690         handles that.
43691         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
43692         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
43693         needed.  Set REPLACE_LOCALTIME.
43694         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
43695         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
43696         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
43697         nanosleep; time_h.m4 now does that.  Don't require
43698         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
43699         module handles this now.
43700         * modules/getdate (Depends-on): Remove timespec.  Add time.
43701         * modules/nanosleep (Depends-on): Likewise.
43702         * modules/stat-time (Depends-on): Likewise.
43703         * modules/nanosleep (Include): Include time.h, not timespec.h.
43704         * modules/strptime (Files): Remove lib/strptime.h.
43705         (Depends-on): Add extensions, time.
43706         (Include): Include time.h, not strptime.h.
43707         * modules/time_r (Files): Remove lib/time_r.h.
43708         (Depends-on): Add time.
43709         (Include): Include time.h, not time_r.h.
43710         * modules/timegm: Likewise.
43711         * modules/timespec (Description): Now does timespec-related decls
43712         of our own, instead of struct timespec itself.
43713         (Depends-on): Add time; remove extensions.
43714         (Maintainer): Add self.
43715         * modules/utimecmp (Depends-on): Add time; remove timespec.
43716         * modules/utimens (Depends-on): Likewise.
43717         * modules/xnanosleep (Depends-on): Likewise.
43718
43719 2007-02-11  Bruno Haible  <bruno@clisp.org>
43720
43721         * lib/c-strstr.c: Include allocsa.h.
43722         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
43723         * lib/c-strcasestr.c: Include allocsa.h.
43724         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
43725         * lib/strcasestr.c: Include allocsa.h.
43726         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
43727         * lib/mbsstr.c: Include allocsa.h.
43728         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
43729         allocsa/freesa instead of malloc/free.
43730         * lib/mbscasestr.c: Include allocsa.h.
43731         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
43732         allocsa/freesa instead of malloc/free.
43733         * modules/c-strstr (Depends-on): Add allocsa.
43734         * modules/c-strcasestr (Depends-on): Likewise.
43735         * modules/strcasestr (Depends-on): Likewise.
43736         * modules/mbsstr (Depends-on): Likewise.
43737         * modules/mbscasestr (Depends-on): Likewise.
43738
43739 2007-02-11  Bruno Haible  <bruno@clisp.org>
43740
43741         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
43742
43743         * modules/mbsspn-tests: New file.
43744         * tests/test-mbsspn.sh: New file.
43745         * tests/test-mbsspn.c: New file.
43746
43747 2007-02-11  Bruno Haible  <bruno@clisp.org>
43748
43749         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
43750
43751         * modules/mbspbrk-tests: New file.
43752         * tests/test-mbspbrk.sh: New file.
43753         * tests/test-mbspbrk.c: New file.
43754
43755 2007-02-11  Bruno Haible  <bruno@clisp.org>
43756
43757         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
43758         unneeded cast.
43759
43760         * modules/mbscspn-tests: New file.
43761         * tests/test-mbscspn.sh: New file.
43762         * tests/test-mbscspn.c: New file.
43763
43764 2007-02-11  Bruno Haible  <bruno@clisp.org>
43765
43766         * modules/mbscasecmp-tests: New file.
43767         * tests/test-mbscasecmp.sh: New file.
43768         * tests/test-mbscasecmp.c: New file.
43769
43770 2007-02-11  Bruno Haible  <bruno@clisp.org>
43771
43772         Ensure O(n) worst-case complexity of mbscasestr.
43773         * lib/mbscasestr.c: Include stdbool.h.
43774         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
43775         functions.
43776         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
43777         the bookkeeping indicates that it's worth it.
43778         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
43779
43780         * modules/mbscasestr-tests: New file.
43781         * tests/test-mbscasestr1.c: New file.
43782         * tests/test-mbscasestr2.sh: New file.
43783         * tests/test-mbscasestr2.c: New file.
43784         * tests/test-mbscasestr3.sh: New file.
43785         * tests/test-mbscasestr3.c: New file.
43786         * tests/test-mbscasestr4.sh: New file.
43787         * tests/test-mbscasestr4.c: New file.
43788         * m4/locale-tr.m4: New file.
43789
43790 2007-02-11  Bruno Haible  <bruno@clisp.org>
43791
43792         Ensure O(n) worst-case complexity of mbsstr.
43793         * lib/mbsstr.c: Include stdbool.h.
43794         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
43795         functions.
43796         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
43797         bookkeeping indicates that it's worth it.
43798         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
43799
43800         * modules/mbsstr-tests: New file.
43801         * tests/test-mbsstr1.c: New file.
43802         * tests/test-mbsstr2.sh: New file.
43803         * tests/test-mbsstr2.c: New file.
43804         * tests/test-mbsstr3.sh: New file.
43805         * tests/test-mbsstr3.c: New file.
43806         * m4/locale-fr.m4: New file.
43807
43808 2007-02-11  Bruno Haible  <bruno@clisp.org>
43809
43810         * lib/mbsrchr.c (mbsrchr): Fix bug.
43811
43812         * modules/mbsrchr-tests: New file.
43813         * tests/test-mbsrchr.sh: New file.
43814         * tests/test-mbsrchr.c: New file.
43815
43816 2007-02-11  Bruno Haible  <bruno@clisp.org>
43817
43818         * lib/mbschr.c (mbschr): Fix bug.
43819
43820         * modules/mbschr-tests: New file.
43821         * tests/test-mbschr.sh: New file.
43822         * tests/test-mbschr.c: New file.
43823         * m4/locale-zh.m4: New file.
43824
43825 2007-02-11  Bruno Haible  <bruno@clisp.org>
43826
43827         Support for copying multibyte string iterators.
43828         * lib/mbiter.h: Include <string.h>.
43829         (mbiter_multi_copy): New function.
43830         (mbi_copy): New macro.
43831         * lib/mbuiter.h: Include <string.h>.
43832         (mbuiter_multi_copy): New function.
43833         (mbui_copy): New macro.
43834
43835 2007-02-11  Bruno Haible  <bruno@clisp.org>
43836
43837         New module mbslen.
43838         * modules/mbslen: New file.
43839         * lib/mbslen.c: New file.
43840         * lib/string_.h (mbslen): New declaration.
43841         * m4/mbslen.m4: New file.
43842         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43843         GNULIB_MBSLEN.
43844         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
43845         * MODULES.html.sh (Internationalization functions): Add mbslen.
43846
43847 2007-02-11  Bruno Haible  <bruno@clisp.org>
43848
43849         Ensure O(n) worst-case complexity of strcasestr substitute.
43850         * lib/strcasestr.c: Include stdbool.h.
43851         (knuth_morris_pratt): New function.
43852         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
43853         bookkeeping indicates that it's worth it.
43854         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
43855
43856         * modules/strcasestr-tests: New file.
43857         * tests/test-strcasestr.c: New file.
43858
43859 2007-02-11  Bruno Haible  <bruno@clisp.org>
43860
43861         Ensure O(n) worst-case complexity of c_strcasestr.
43862         * lib/c-strcasestr.c: Include stdbool.h, string.h.
43863         (knuth_morris_pratt): New function.
43864         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
43865         the bookkeeping indicates that it's worth it.
43866         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
43867
43868         * modules/c-strcasestr-tests: New file.
43869         * tests/test-c-strcasestr.c: New file.
43870
43871 2007-02-11  Bruno Haible  <bruno@clisp.org>
43872
43873         Ensure O(n) worst-case complexity of c_strstr.
43874         * lib/c-strstr.c: Include stdbool.h, string.h.
43875         (knuth_morris_pratt): New function.
43876         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
43877         bookkeeping indicates that it's worth it.
43878         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
43879
43880         * lib/c-strstr.c: Complete rewrite for maintainability.
43881
43882         * modules/c-strstr-tests: New file.
43883         * tests/test-c-strstr.c: New file.
43884
43885 2007-02-11  Bruno Haible  <bruno@clisp.org>
43886
43887         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
43888         5.2.1 and earlier, whereby \055 was treated just like the range
43889         delimiter '-'.
43890         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
43891
43892 2007-02-08  Bruno Haible  <bruno@clisp.org>
43893
43894         * modules/regex (Depends-on): Add stdbool.
43895         Reported by Dalibor Topic <robilad@kaffe.org>.
43896
43897 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
43898
43899         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
43900         Prefer returning from main to exiting from it.
43901         Remove unnecessary parens after sizeof.
43902
43903 2007-02-05  Bruno Haible  <bruno@clisp.org>
43904
43905         New module mbssep.
43906         * modules/mbssep: New file.
43907         * lib/mbssep.c: New file.
43908         * lib/string_.h (strsep): Add a conditional link warning.
43909         (mbssep): New declaration.
43910         * m4/mbssep.m4: New file.
43911         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43912         GNULIB_MBSSEP.
43913         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
43914         * MODULES.html.sh (Internationalization functions): Add mbssep.
43915
43916 2007-02-05  Bruno Haible  <bruno@clisp.org>
43917
43918         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
43919         Optimize search in case of 1 delimiter.
43920
43921 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
43922
43923         * lib/acl.h: Include sys/types.h before sys/acl.h.
43924
43925 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
43926
43927         Merge upstream fix for glibc bugzilla #3957:
43928
43929         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
43930
43931         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
43932         bit for RE_HAT_LISTS_NOT_NEWLINE.
43933         (build_charclass_op): Remove bogus comment.
43934
43935 2007-02-05  Simon Josefsson  <simon@josefsson.org>
43936
43937         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
43938
43939 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
43940
43941         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
43942         * lib/memmem.c [!defined _LIBC]: Include config.h.
43943
43944 2007-02-04  Bruno Haible  <bruno@clisp.org>
43945
43946         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
43947         warning message.
43948
43949 2007-02-04  Bruno Haible  <bruno@clisp.org>
43950
43951         New module mbstok_r.
43952         * modules/mbstok_r: New file.
43953         * lib/mbstok_r.c: New file.
43954         * lib/string_.h (strtok_r): Change argument names to match the
43955         comments. Add a conditional link warning.
43956         (mbstok_r): New declaration.
43957         * m4/mbstok_r.m4: New file.
43958         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43959         GNULIB_MBSTOK_R.
43960         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
43961         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
43962
43963 2007-02-04  Bruno Haible  <bruno@clisp.org>
43964
43965         New module mbsspn.
43966         * modules/mbsspn: New file.
43967         * lib/mbsspn.c: New file.
43968         * lib/string_.h (strspn): Add a conditional link warning.
43969         (mbsspn): New declaration.
43970         * m4/mbsspn.m4: New file.
43971         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43972         GNULIB_MBSSPN.
43973         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
43974         * MODULES.html.sh (Internationalization functions): Add mbsspn.
43975
43976 2007-02-04  Bruno Haible  <bruno@clisp.org>
43977
43978         New module mbspbrk.
43979         * modules/mbspbrk: New file.
43980         * lib/mbspbrk.c: New file.
43981         * lib/string_.h (strpbrk): Add a conditional link warning.
43982         (mbspbrk): New declaration.
43983         * m4/mbspbrk.m4: New file.
43984         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43985         GNULIB_MBSPBRK.
43986         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
43987         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
43988
43989 2007-02-04  Bruno Haible  <bruno@clisp.org>
43990
43991         New module mbscspn.
43992         * modules/mbscspn: New file.
43993         * lib/mbscspn.c: New file.
43994         * lib/string_.h (strcspn): Add a conditional link warning.
43995         (mbscspn): New declaration.
43996         * m4/mbscspn.m4: New file.
43997         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
43998         GNULIB_MBSCSPN.
43999         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
44000         * MODULES.html.sh (Internationalization functions): Add mbscspn.
44001
44002 2007-02-04  Bruno Haible  <bruno@clisp.org>
44003
44004         New module mbscasestr, reduced goal of strcasestr.
44005         * modules/mbscasestr: New file.
44006         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
44007         (mbscasestr): Renamed from strcasestr.
44008         * lib/strcasestr.c: Don't include mbuiter.h.
44009         (strcasestr): Remove support for multibyte locales.
44010         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
44011         Change the conditional link warning.
44012         (mbscasestr): New declaration.
44013         * m4/mbscasestr.m4: New file.
44014         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
44015         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
44016         REPLACE_STRCASESTR.
44017         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
44018         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44019         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
44020         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
44021         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
44022         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
44023         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
44024         (Depends-on): Remove mbuiter.
44025         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
44026
44027 2007-02-04  Bruno Haible  <bruno@clisp.org>
44028
44029         Simplify handling of strncasecmp.
44030         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
44031         the conditional link warning.
44032         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44033         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
44034         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
44035         * modules/strcase (configure.ac): Don't invoke
44036         gl_STRING_MODULE_INDICATOR.
44037         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
44038
44039 2007-02-04  Bruno Haible  <bruno@clisp.org>
44040
44041         New module mbscasecmp, reduced goal of strcasecmp.
44042         * modules/mbscasecmp: New file.
44043         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
44044         (mbscasecmp): Renamed from strcasecmp.
44045         * lib/strcasecmp.c: Don't include mbuiter.h.
44046         (strcasecmp): Remove support for multibyte locales.
44047         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
44048         Change the conditional link warning.
44049         (mbscasecmp): New declaration.
44050         * m4/mbscasecmp.m4: New file.
44051         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
44052         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
44053         REPLACE_STRCASECMP.
44054         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
44055         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44056         GNULIB_MBSCASECMP.
44057         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
44058         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
44059         * modules/strcase (Files): Remove m4/mbrtowc.m4.
44060         (Depends-on): Remove mbuiter.
44061         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
44062
44063 2007-02-04  Bruno Haible  <bruno@clisp.org>
44064
44065         New module mbsstr. Remove module strstr.
44066         * modules/mbsstr: New file.
44067         * modules/strstr: Remove file.
44068         * lib/mbsstr.c: Renamed from lib/strstr.c.
44069         (mbsstr): Renamed from strstr.
44070         * lib/string_.h (strstr): Remove declaration. Change the conditional
44071         link warning.
44072         (mbsstr): New declaration.
44073         * m4/mbsstr.m4: New file.
44074         * m4/strstr.m4: Remove file.
44075         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
44076         REPLACE_STRSTR.
44077         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
44078         Don't initialize GNULIB_STRSTR.
44079         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
44080         substitute GNULIB_STRSTR and REPLACE_STRSTR.
44081         * MODULES.html.sh (Internationalization functions): Add mbsstr.
44082         (Support for systems lacking ANSI C 89): Remove strstr.
44083
44084 2007-02-04  Bruno Haible  <bruno@clisp.org>
44085
44086         New module mbsrchr.
44087         * modules/mbsrchr: New file.
44088         * lib/mbsrchr.c: New file.
44089         * lib/string_.h (strrchr): Add a conditional link warning.
44090         (mbsrchr): New declaration.
44091         * m4/mbsrchr.m4: New file.
44092         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44093         GNULIB_MBSRCHR.
44094         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
44095         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
44096
44097 2007-02-04  Bruno Haible  <bruno@clisp.org>
44098
44099         New module mbschr.
44100         * modules/mbschr: New file.
44101         * lib/mbschr.c: New file.
44102         * lib/string_.h (strchr): Add a conditional link warning.
44103         (mbschr): New declaration.
44104         * m4/mbschr.m4: New file.
44105         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
44106         GNULIB_MBSCHR.
44107         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
44108         * MODULES.html.sh (Internationalization functions): Add mbschr.
44109
44110 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
44111
44112         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
44113
44114         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
44115
44116 2007-02-04  Bruno Haible  <bruno@clisp.org>
44117
44118         New module description section 'configure.ac-early'.
44119         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
44120         (func_get_autoconf_early_snippet): New function.
44121         (func_import, func_create_testdir): Use it. Remove special cases for
44122         modules 'extensions' and 'lock'.
44123         * modules/extensions (configure.ac-early): Require
44124         gl_USE_SYSTEM_EXTENSIONS.
44125         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
44126
44127 2007-02-04  Bruno Haible  <bruno@clisp.org>
44128
44129         Make use of gcj-4.3's -fsource and -ftarget option.
44130         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
44131         and if so try the options -fsource and -ftarget.
44132         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
44133         source_version, ftarget_option, target_version arguments.
44134         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
44135         (is_envjavac_oldgcj_14_14_usable): Renamed from
44136         is_envjavac_gcj_14_14_usable.
44137         (is_envjavac_oldgcj_14_13_usable): Renamed from
44138         is_envjavac_gcj_14_13_usable.
44139         (is_gcj_present): Update.
44140         (is_gcj_43, is_gcj43_usable): New functions.
44141         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
44142         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
44143         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
44144         try the options -fsource and -ftarget.
44145
44146 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
44147
44148         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
44149         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
44150         larger value.
44151
44152 2007-02-03  Jim Meyering  <jim@meyering.net>
44153
44154         Give tools a better chance to allocate space for very large buffers.
44155         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
44156
44157         Make pwd and readlink work also when run with an unreadable parent dir
44158         on systems with openat support.
44159         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
44160         provided getcwd function, even when we have openat support.
44161         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
44162
44163 2007-02-02  Bruno Haible  <bruno@clisp.org>
44164
44165         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
44166         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
44167         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
44168         portability problems if one of these functions is only used on specific
44169         platforms.
44170         Reported by Paul Eggert.
44171
44172 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
44173
44174         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
44175         is causing more trouble than it's curing.
44176         * lib/regex_internal.h (__mempcpy): Remove.
44177         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
44178         (and make the code a tad smaller to boot).
44179         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
44180
44181 2007-02-02  Jim Meyering  <jim@meyering.net>
44182
44183         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
44184         section, not in the Makefile.am: one.
44185
44186 2007-02-02  Eric Blake  <ebb9@byu.net>
44187
44188         * lib/strchrnul.c: Always include config.h first.
44189
44190         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
44191         gnulib strstr is not necessary here.
44192
44193 2007-02-02  Simon Josefsson  <simon@josefsson.org>
44194
44195         * m4/socklen.m4: Fix typo.
44196
44197 2007-02-02  Eric Blake  <ebb9@byu.net>
44198
44199         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
44200         * modules/netinet_in (Makefile.am): Likewise.
44201
44202 2007-02-01  Bruno Haible  <bruno@clisp.org>
44203
44204         * lib/string_.h (GL_LINK_WARNING): New macro.
44205         (strcasecmp, strstr, strcasestr): If provided by the system,
44206         conditionally define as a macro that leads to a warning instead of to
44207         an error.
44208         (strncasecmp): Conditionally define as a macro that leads to a warning.
44209
44210 2007-02-01  Karl Berry  <karl@gnu.org>
44211
44212         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
44213
44214 2007-02-01  Bruno Haible  <bruno@clisp.org>
44215
44216         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
44217         renamings.
44218
44219 2007-02-01  Eric Blake  <ebb9@byu.net>
44220
44221         * modules/regex (Depends-on): Revert dependence on mempcpy.
44222         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
44223         module's definition of mempcpy.
44224         Reported by Paul Eggert.
44225
44226 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
44227
44228         * lib/string_.h: If the gnulib module XYZ is not present, undefine
44229         the symbol XYZ before redefining it.  This fixes a problem with
44230         programs that don't use XYZ, when compiled on systems that define
44231         XYZ to something else.
44232
44233 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
44234
44235         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
44236         occurs when "mkdir -m foo" creates a setgid directory that is (1)
44237         writeable to group or other and (2) is intended to have a special
44238         mode bit that is set or cleared.  In such a case, the directory
44239         should be neither group- nor other-writeable until the special
44240         mode bits are right.
44241
44242 2007-01-31  Eric Blake  <ebb9@byu.net>
44243
44244         * modules/mountlist (Depends-on): Add strstr.
44245
44246         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
44247         bug.
44248         * modules/string (Makefile.am): Remove redundant replacement.
44249         * modules/regex (Depends-on): Add mempcpy.
44250
44251 2007-01-31  Bruno Haible  <bruno@clisp.org>
44252
44253         New module description field 'Link'.
44254         * gnulib-tool (func_usage): Document --extract-link-directive.
44255         (sed_extract_prog): Recognize 'Link' directive.
44256         (func_get_link_directive): New function.
44257         (func_import): Show summary of link directives.
44258         Handle --extract-link-directive option.
44259         * modules/acl (Link): New section.
44260         * modules/clock-time (Link): New section.
44261         * modules/euidaccess (Link): New section.
44262         * modules/gettext (Link): New section.
44263         * modules/iconv (Link): New section.
44264         * modules/lock (Link): New section.
44265         * modules/nanosleep (Link): New section.
44266         * modules/readline (Link): New section.
44267
44268 2007-01-27  Bruno Haible  <bruno@clisp.org>
44269
44270         Enforce the use of gnulib modules for unportable <string.h> functions.
44271         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
44272         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
44273         (gl_HEADER_STRING_H_BODY): Require it.
44274         * lib/string_.h: If the gnulib module XYZ is not present, redefine
44275         the symbol XYZ to one that gives a link error.
44276         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
44277         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
44278         * modules/mempcpy (configure.ac): Likewise.
44279         * modules/memrchr (configure.ac): Likewise.
44280         * modules/stpcpy (configure.ac): Likewise.
44281         * modules/stpncpy (configure.ac): Likewise.
44282         * modules/strcase (configure.ac): Likewise.
44283         * modules/strcasestr (configure.ac): Likewise.
44284         * modules/strchrnul (configure.ac): Likewise.
44285         * modules/strdup (configure.ac): Likewise.
44286         * modules/strndup (configure.ac): Likewise.
44287         * modules/strnlen (configure.ac): Likewise.
44288         * modules/strpbrk (configure.ac): Likewise.
44289         * modules/strsep (configure.ac): Likewise.
44290         * modules/strstr (configure.ac): Likewise.
44291         * modules/strtok_r (configure.ac): Likewise.
44292
44293 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
44294
44295         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
44296
44297 2007-01-30  Jim Meyering  <jim@meyering.net>
44298
44299         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
44300
44301 2007-01-29  Bruno Haible  <bruno@clisp.org>
44302
44303         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
44304         * lib/execute.c: Likewise.
44305         * lib/pipe.c: Likewise.
44306         * lib/printf-args.h: Likewise.
44307         * lib/printf-args.c: Likewise.
44308         * lib/printf-parse.c: Likewise.
44309         * lib/vasnprintf.c: Likewise.
44310
44311 2007-01-29  Eric Blake  <ebb9@byu.net>
44312
44313         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
44314         declaration.
44315
44316 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
44317
44318         * lib/strptime.h (strptime): Use 'restrict' for args where
44319         POSIX requires this.
44320         * lib/strptime.c (strptime): Likewise.
44321         Change license notice from LGPL to GPL, since gnulib-tool will
44322         change this as needed.
44323         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
44324         defined.
44325         Include "strptime.h" first, to check interface.
44326         Do not #undef _LIBC and _NL_CURRENT.
44327         Do not include <stdlib.h>; no longer needed.
44328         Include "time_r.h" and declare ptime_locale_status
44329         only if _LIBC is not defined.
44330         (__P): Remove unused macro.
44331         (match_string): Bring back glibc version, but use it only if _LIBC
44332         is defined.
44333         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
44334         Remove unnecessary assertion and abort() call.
44335         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
44336         * m4/strptime.m4: Fix serial number comment.
44337         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
44338         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
44339         (Depends-on): Add time_r.
44340
44341 2007-01-29  Bruno Haible  <bruno@clisp.org>
44342
44343         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44344         strptime.
44345         * modules/strptime (Depends-on): Add stdbool.
44346         * lib/strptime.h: Include <time.h> always. Add comments.
44347
44348 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
44349
44350         * modules/strptime: New file.
44351         * lib/strptime.h: New file.
44352         * lib/strptime.c: New file.
44353         * m4/strptime.m4: New file.
44354
44355 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
44356
44357         * MODULES.html.sh: New module mpsort.
44358         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
44359
44360         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
44361         a circularity problem with HP-UX ia64 reported by Bob Proulx in
44362         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
44363         All uses changed.
44364         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
44365         All uses changed.
44366         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
44367         to _Restrict_.
44368         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
44369         the parameter matches the prototype.
44370
44371 2007-01-28  Jim Meyering  <jim@meyering.net>
44372
44373         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
44374         sys/time.h here, reverting that part of the previous patch:
44375         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
44376
44377 2007-01-28  Bruno Haible  <bruno@clisp.org>
44378
44379         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
44380         value of $(SYS_TIME_H).
44381         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
44382         remove it conditionally, too. [added by Jim Meyering]
44383         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
44384         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
44385         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
44386         GETTIMEOFDAY_REPLACEMENT to 1.
44387
44388 2007-01-28  Bruno Haible  <bruno@clisp.org>
44389
44390         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
44391         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
44392         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
44393         Set UNISTD_H instead of UNISTD_H2.
44394         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
44395
44396 2007-01-28  Bruno Haible  <bruno@clisp.org>
44397
44398         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
44399         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
44400
44401 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44402
44403         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
44404         (func_create_testdir): Ensure C locale for `grep' and `tr'
44405         character ranges.
44406         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
44407         ACLOCAL_AMFLAGS parsing state machine.
44408
44409 2007-01-27  Bruno Haible  <bruno@clisp.org>
44410
44411         * modules/unistr/base: Update.
44412
44413 2007-01-27  Bruno Haible  <bruno@clisp.org>
44414
44415         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
44416         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
44417         * modules/unistr/u32-mbtouc-unsafe: Renamed from
44418         modules/unistr/u32-mbtouc.
44419         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
44420         * lib/unistr.h: Update.
44421         * lib/linebreak.c: Update.
44422         * modules/unistr/u32-mbtouc: Renamed from
44423         modules/unistr/u32-mbtouc-safe.
44424         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
44425         * lib/unistr.h: Update.
44426         * lib/unistr/u32-to-u8.c: Update.
44427         * lib/unistr/u32-to-u16.c: Update.
44428
44429 2007-01-27  Bruno Haible  <bruno@clisp.org>
44430
44431         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
44432         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
44433         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
44434         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
44435         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
44436         * modules/unistr/u16-mbtouc-unsafe: Renamed from
44437         modules/unistr/u16-mbtouc.
44438         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
44439         * lib/unistr.h: Update.
44440         * lib/linebreak.c: Update.
44441         * modules/linebreak: Update.
44442         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
44443         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
44444         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
44445         * modules/unistr/u16-mbtouc: Renamed from
44446         modules/unistr/u16-mbtouc-safe.
44447         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
44448         * lib/unistr.h: Update.
44449         * lib/unistr/u16-to-u8.c: Update.
44450         * modules/unistr/u16-to-u8: Update.
44451         * lib/unistr/u16-to-u32.c: Update.
44452         * modules/unistr/u16-to-u32: Update.
44453
44454 2007-01-27  Bruno Haible  <bruno@clisp.org>
44455
44456         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
44457         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
44458         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
44459         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
44460         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
44461         * modules/unistr/u8-mbtouc-unsafe: Renamed from
44462         modules/unistr/u8-mbtouc.
44463         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
44464         * lib/unistr.h: Update.
44465         * lib/striconveh.c: Update.
44466         * modules/striconveh: Update.
44467         * lib/linebreak.c: Update.
44468         * modules/linebreak: Update.
44469         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
44470         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
44471         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
44472         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
44473         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
44474         * lib/unistr.h: Update.
44475         * lib/striconveh.c: Update.
44476         * modules/striconveh: Update.
44477         * lib/unistr/u8-to-u16.c: Update.
44478         * modules/unistr/u8-to-u16: Update.
44479         * lib/unistr/u8-to-u32.c: Update.
44480         * modules/unistr/u8-to-u32: Update.
44481
44482 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44483
44484         Sync from Libtool.
44485         * lib/argz.c: Do not include strings.h nor memory.h, include
44486         string.h unconditionally.  Patch by Simon Josefsson.
44487
44488 2007-01-27  Bruno Haible  <bruno@clisp.org>
44489
44490         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
44491         from gl_HEADER_STRING_H_BODY.
44492         (gl_HEADER_STRING_H_BODY): Require it.
44493         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
44494         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
44495         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
44496         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
44497         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
44498         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
44499         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44500         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
44501         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
44502         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
44503         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
44504         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
44505         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
44506         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
44507         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
44508
44509 2007-01-27  Bruno Haible  <bruno@clisp.org>
44510
44511         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
44512         check_PROGRAMS into noinst_PROGRAMS.
44513         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
44514         check_PROGRAMS in this case.
44515         (func_import): Set for_test to false.
44516         (func_create_testdir): Set for_test to true.
44517
44518 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
44519             Bruno Haible  <bruno@clisp.org>
44520
44521         * modules/strcasestr (Files): Remove lib/strcasestr.h.
44522         (Depends-on): Add string.
44523         (Includes): Use <string.h> instead of strcasestr.h.
44524         * modules/string (Makefile.am): Also substitute the value of
44525         REPLACE_STRCASESTR.
44526         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
44527         assume strcasestr is declared in <string.h> not <strings.h>. Also
44528         set REPLACE_STRCASESTR.
44529         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
44530         REPLACE_STRCASESTR.
44531         * lib/strcasestr.h: Remove file.
44532         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
44533         * lib/string_.h (strcasestr): New declaration.
44534
44535 2007-01-27  Bruno Haible  <bruno@clisp.org>
44536
44537         * lib/string_.h: Use 'extern'.
44538
44539 2007-01-27  Jim Meyering  <jim@meyering.net>
44540
44541         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
44542         of set-but-not-used local, "q".
44543
44544         * lib/mempcpy.c: Include <config.h> before <string.h>.
44545         This fixes a compilation error on HP-UX, due to the system's
44546         "restrict"-using mempcpy prototype.
44547
44548 2007-01-26  Bruno Haible  <bruno@clisp.org>
44549
44550         Small optimization.
44551         * lib/javacomp.c: Include c-strstr.h.
44552          (is_envjavac_gcj): Use c_strstr instead of strstr.
44553         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
44554
44555 2007-01-26  Bruno Haible  <bruno@clisp.org>
44556
44557         * MODULES.html.sh (Unicode string functions): Add the new modules.
44558
44559         * modules/uniconv/u32-strconv-to-locale: New file.
44560         * lib/uniconv/u32-strconv-to-locale.c: New file.
44561
44562         * modules/uniconv/u16-strconv-to-locale: New file.
44563         * lib/uniconv/u16-strconv-to-locale.c: New file.
44564
44565         * modules/uniconv/u8-strconv-to-locale: New file.
44566         * lib/uniconv/u8-strconv-to-locale.c: New file.
44567
44568         * modules/uniconv/u32-strconv-from-locale: New file.
44569         * lib/uniconv/u32-strconv-from-locale.c: New file.
44570
44571         * modules/uniconv/u16-strconv-from-locale: New file.
44572         * lib/uniconv/u16-strconv-from-locale.c: New file.
44573
44574         * modules/uniconv/u8-strconv-from-locale: New file.
44575         * lib/uniconv/u8-strconv-from-locale.c: New file.
44576
44577         * modules/uniconv/u32-strconv-to-enc: New file.
44578         * lib/uniconv/u32-strconv-to-enc.c: New file.
44579         * modules/uniconv/u32-strconv-to-enc-tests: New file.
44580         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
44581
44582         * modules/uniconv/u16-strconv-to-enc: New file.
44583         * lib/uniconv/u16-strconv-to-enc.c: New file.
44584         * lib/uniconv/u-strconv-to-enc.h: New file.
44585         * modules/uniconv/u16-strconv-to-enc-tests: New file.
44586         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
44587
44588         * modules/uniconv/u8-strconv-to-enc: New file.
44589         * lib/uniconv/u8-strconv-to-enc.c: New file.
44590         * modules/uniconv/u8-strconv-to-enc-tests: New file.
44591         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
44592
44593         * modules/uniconv/u32-strconv-from-enc: New file.
44594         * lib/uniconv/u32-strconv-from-enc.c: New file.
44595         * modules/uniconv/u32-strconv-from-enc-tests: New file.
44596         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
44597
44598         * modules/uniconv/u16-strconv-from-enc: New file.
44599         * lib/uniconv/u16-strconv-from-enc.c: New file.
44600         * modules/uniconv/u16-strconv-from-enc-tests: New file.
44601         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
44602
44603         * modules/uniconv/u8-strconv-from-enc: New file.
44604         * lib/uniconv/u8-strconv-from-enc.c: New file.
44605         * lib/uniconv/u-strconv-from-enc.h: New file.
44606         * modules/uniconv/u8-strconv-from-enc-tests: New file.
44607         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
44608
44609         * modules/uniconv/u32-conv-from-enc: New file.
44610         * lib/uniconv/u32-conv-from-enc.c: New file.
44611         * modules/uniconv/u32-conv-from-enc-tests: New file.
44612         * tests/uniconv/test-u32-conv-from-enc.c: New file.
44613
44614         * modules/uniconv/u16-conv-from-enc: New file.
44615         * lib/uniconv/u16-conv-from-enc.c: New file.
44616         * lib/uniconv/u-conv-from-enc.h: New file.
44617         * modules/uniconv/u16-conv-from-enc-tests: New file.
44618         * tests/uniconv/test-u16-conv-from-enc.c: New file.
44619
44620         * modules/uniconv/u8-conv-from-enc: New file.
44621         * lib/uniconv/u8-conv-from-enc.c: New file.
44622         * modules/uniconv/u8-conv-from-enc-tests: New file.
44623         * tests/uniconv/test-u8-conv-from-enc.c: New file.
44624
44625         * modules/uniconv/base: New file.
44626         * lib/uniconv.h: New file.
44627
44628 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
44629
44630         * doc/gnulib-tool.texi (Initial import): Update to match current
44631         behavior with strdup module.
44632         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
44633         * lib/memmem.h: Remove; all uses removed.  This is now done
44634         by <string.h>.
44635         * lib/mempcpy.h: Likewise.
44636         * lib/memrchr.h: Likewise.
44637         * lib/stpcpy.h: Likewise.
44638         * lib/stpncpy.h: Likewise.
44639         * lib/strcase.h: Likewise.
44640         * lib/strchrnul.h: Likewise.
44641         * lib/strdup.h: Likewise.
44642         * lib/strndup.h: Likewise.
44643         * lib/strnlen.h: Likewise.
44644         * lib/strpbrk.h: Likewise.
44645         * lib/strsep.h: Likewise.
44646         * lib/strstr.h: Likewise.
44647         * lib/strtok_r.h: Likewise.
44648         * lib/string_.h: New file.
44649         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
44650         Rely on <string.h> instead.
44651         * lib/canon-host.c: Likewise.
44652         * lib/chdir-long.c: Likewise.
44653         * lib/concatpath.c: Likewise.
44654         * lib/exclude.c: Likewise.
44655         * lib/fchdir.c: Likewise.
44656         * lib/getaddrinfo.c: Likewise.
44657         * lib/getcwd.c: Likewise.
44658         * lib/getsubopt.c: Likewise.
44659         * lib/glob.c: Likewise.
44660         * lib/hard-locale.c: Likewise.
44661         * lib/iconvme.c: Likewise.
44662         * lib/javacomp.c: Likewise.
44663         * lib/mempcpy.c: Likewise.
44664         * lib/memrchr.c: Likewise.
44665         * lib/regex_internal.h: Likewise.
44666         * lib/stpncpy.c: Likewise.
44667         * lib/strcasecmp.c: Likewise.
44668         * lib/strchrnul.c: Likewise.
44669         * lib/strdup.c: Likewise.
44670         * lib/striconv.c: Likewise.
44671         * lib/striconveh.c: Likewise.
44672         * lib/striconveha.c: Likewise.
44673         * lib/strncasecmp.c: Likewise.
44674         * lib/strndup.c: Likewise.
44675         * lib/strnlen.c: Likewise.
44676         * lib/strsep.c: Likewise.
44677         * lib/strstr.c: Likewise.
44678         * lib/strtok_r.c: Likewise.
44679         * lib/userspec.c: Likewise.
44680         * lib/w32spawn.h: Likewise.
44681         * lib/xstrndup.c: Likewise.
44682         * lib/mountlist.c (strstr): Remove decl.
44683         * m4/string_h.m4: New file.
44684         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
44685         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
44686         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
44687         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
44688         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
44689         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
44690         Set REPLACE_STRCASECMP if necessary.
44691         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
44692         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
44693         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
44694         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
44695         HAVE_DECL_STRDUP if necessary.
44696         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
44697         since gl_FUNC_STRNDUP does that now.
44698         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
44699         Check for decl here...
44700         (gl_PREREQ_STRNLEN): ... not here.
44701         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
44702         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
44703         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
44704         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
44705         necessary.
44706         * modules/string: New file.
44707         * modules/memmem (Files): Remove special-purpose include file.
44708         (Depends-on): Add string.
44709         (Include): Include <string.h>, not the removed file.
44710         * modules/mempcpy: Likewise.
44711         * modules/memrchr: Likewise.
44712         * modules/stpcpy: Likewise.
44713         * modules/stpncpy: Likewise.
44714         * modules/strcase: Likewise.
44715         * modules/strchrnul: Likewise.
44716         * modules/strdup: Likewise.
44717         * modules/strndup: Likewise.
44718         * modules/strnlen: Likewise.
44719         * modules/strpbrk: Likewise.
44720         * modules/strsep: Likewise.
44721         * modules/strstr: Likewise.
44722         * modules/strtok_r: Likewise.
44723         * tests/test-dirname.c: Don't include "strdup.h", since
44724         <string.h> now suffices.
44725         * tests/test-memmem.c: Don't include "memmem.h", since
44726         <string.h> now suffices.
44727
44728 2007-01-25  Bruno Haible  <bruno@clisp.org>
44729
44730         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
44731         *resultp is 0.
44732
44733         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
44734         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
44735         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
44736         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
44737
44738         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
44739         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
44740         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
44741         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
44742         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
44743         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
44744
44745 2007-01-24  Bruno Haible  <bruno@clisp.org>
44746
44747         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
44748         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
44749         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
44750         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
44751         gl_FUNC_FTS_CORE.
44752         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
44753         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
44754         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
44755         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
44756         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
44757         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
44758         gl_FUNC_FCHOWNAT.
44759         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
44760         gl_FUNC_STRFTIME.
44761         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
44762         Reported by Ralf Wildenhues.
44763
44764 2007-01-24  Bruno Haible  <bruno@clisp.org>
44765
44766         Drop AC_REQUIRE calls that are redundant with the module dependencies.
44767         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
44768         gl_GETADDRINFO.
44769         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
44770         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
44771         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
44772
44773 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
44774
44775         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
44776         Don't use 'exit'; just return from 'main'.
44777         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
44778
44779         * lib/fnmatch_.h: Readjust white space and comments to match
44780         glibc, to avoid spurious diffs.
44781
44782 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44783
44784         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
44785         2004-12-01 change by Jakub Jelinek, since this code won't compile
44786         if !LIBC.  Problem reported by Bob Proulx.
44787
44788 2007-01-23  Bruno Haible  <bruno@clisp.org>
44789
44790         * lib/striconveh.c: Include c-strcaseeq.h.
44791         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
44792         * modules/striconveh (Depends-on): Add c-strcaseeq.
44793
44794 2007-01-23  Bruno Haible  <bruno@clisp.org>
44795
44796         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
44797
44798         * modules/c-strcaseeq: New file.
44799         * lib/c-strcaseeq.h: New file.
44800
44801         * modules/streq: New file.
44802         * lib/streq.h: New file.
44803
44804 2007-01-23  Bruno Haible  <bruno@clisp.org>
44805
44806         * modules/striconveha-tests: New file.
44807         * tests/test-striconveha.c: New file.
44808
44809         * lib/striconveha.h: Include <stdbool.h>.
44810         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
44811         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
44812         (mem_iconveha_notranslit): Renamed from mem_iconveha.
44813         (mem_iconveha): New function.
44814         (str_iconveha_notranslit): Renamed from str_iconveha.
44815         (str_iconveha): New function.
44816         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
44817         c-strcase.
44818
44819 2007-01-23  Bruno Haible  <bruno@clisp.org>
44820
44821         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
44822         encodings without forgiving before trying any encoding with handler.
44823         (str_iconveha): Try all encodings without forgiving before trying any
44824         encoding with handler.
44825
44826 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44827
44828         Import the following changes from libc.
44829
44830         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
44831
44832         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
44833
44834         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
44835
44836         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
44837         normal_bracket label.
44838
44839         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
44840
44841         [BZ #361]
44842         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
44843         to normal_bracket after fetching the next character.
44844
44845 2007-01-22  Bruno Haible  <bruno@clisp.org>
44846
44847         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
44848         argument.
44849         * lib/striconveh.c (iconv_carefully_1): New function.
44850         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
44851         argument.
44852         (str_cd_iconveh): Update.
44853         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
44854         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
44855         * tests/test-striconveh.c (MAGIC): New macro.
44856         (new_offsets): New function.
44857         (main): Test call with and without offsets.
44858
44859 2007-01-22  Bruno Haible  <bruno@clisp.org>
44860
44861         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
44862         * modules/sys_select (Makefile.am): Likewise.
44863         * modules/sys_socket (Makefile.am): Likewise.
44864         * modules/sys_time (Makefile.am): Likewise.
44865
44866 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
44867
44868         * modules/gettimeofday (License): Change from GPL to LGPL, since
44869         gettimeofday is a library function.
44870
44871 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44872
44873         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
44874
44875 2007-01-21  Bruno Haible  <bruno@clisp.org>
44876
44877         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
44878
44879 2007-01-21  Bruno Haible  <bruno@clisp.org>
44880
44881         * modules/striconveha: New file.
44882         * lib/striconveha.h: New file.
44883         * lib/striconveha.c: New file.
44884         * MODULES.html.sh (Internationalization functions): Add striconveha.
44885         * lib/striconv.c (str_iconv): Optimize the case of an empty input
44886         string.
44887         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
44888
44889 2007-01-21  Bruno Haible  <bruno@clisp.org>
44890
44891         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
44892         * lib/striconveh.c (str_iconveh): Likewise.
44893
44894 2007-01-21  Bruno Haible  <bruno@clisp.org>
44895
44896         * lib/striconveh.h (mem_iconveh): New declaration.
44897         * lib/striconveh.c (mem_iconveh): New function.
44898         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
44899
44900 2007-01-21  Bruno Haible  <bruno@clisp.org>
44901
44902         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
44903
44904         * lib/striconveh.h (mem_cd_iconveh): Change specification.
44905         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
44906         original result buffer.
44907         (str_cd_iconveh): Update.
44908         * tests/test-striconveh.c (main): Update.
44909
44910         * lib/striconv.h (mem_cd_iconv): Change specification.
44911         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
44912         result buffer.
44913         (str_cd_iconv): Update.
44914         * tests/test-striconv.c (main): Update.
44915
44916 2007-01-21  Bruno Haible  <bruno@clisp.org>
44917
44918         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
44919
44920 2007-01-20  Jim Meyering  <jim@meyering.net>
44921
44922         * lib/userspec.c (parse_with_separator): If a user or group string
44923         starts with "+", skip the corresponding name-to-ID look-up, since
44924         such a look-up must fail: user and group names may not include "+".
44925
44926 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
44927
44928         * lib/poll.c: Include sys/time.h and time.h unconditionally,
44929         since we now assume the sys_time module.
44930         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
44931         check for sys/time.h; no longer needed.
44932         * modules/poll (Depends-on): Depend on sys_time.
44933
44934 2007-01-18  Bruno Haible  <bruno@clisp.org>
44935
44936         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
44937         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
44938
44939         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
44940         gettimeofday.
44941
44942         * tests/test-gettimeofday.c: Include <time.h>.
44943         (dummy): Remove variable.
44944
44945         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
44946         gl_HEADER_SYS_TIME_H.
44947         (gl_HEADER_SYS_TIME_H): New macro.
44948
44949         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
44950         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44951         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
44952         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
44953         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44954         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
44955         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
44956         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44957         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
44958         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
44959         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
44960
44961         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
44962         last change; it caused a compilation error when cross-compiling to
44963         Cygwin.
44964
44965 2007-01-18  Jim Meyering  <jim@meyering.net>
44966
44967         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
44968         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
44969         than the race-prone "test -d sys || mkdir sys".
44970         (configure.ac): Use AC_PROG_MKDIR_P.
44971         * modules/sys_select: Likewise.
44972         * modules/sys_socket: Likewise.
44973         * modules/sys_time: Likewise.
44974
44975 2007-01-18  Eric Blake  <ebb9@byu.net>
44976
44977         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
44978         replace gettimeofday.
44979         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
44980         name, to avoid infinite recursion.
44981
44982 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
44983
44984         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
44985         module sys_time.
44986         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
44987         assume timespec.h defines struct timeval.
44988         * lib/settime.c: Likewise.
44989         * lib/utimens.c: Likewise.
44990         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
44991         since we now assume the gettimeofday module.
44992         * lib/tempname.c (__gen_tempname): Likewise.
44993         * lib/gettimeofday.h: Remove.
44994         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
44995         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
44996         Include <time.h>, for 'time()'.
44997         (localtime_buffer_addr): Also use this workaround if
44998         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
44999         to simplify the uses.  All uses changed.
45000         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
45001         that #undef is inside {}, and 'const' follows type name consistently.
45002         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
45003         (gettimeofday): Do not use the maximum possible value for
45004         tv->tv_usec, since that might break usages other than ls.c.
45005         Instead, we'll leave ls.c alone.  This undoes today's patch
45006         by Bruno.  Add a compile-time warning for 1s-clock resolution;
45007         we've never observed the problem but might as well keep the
45008         canary.
45009         * lib/nanosleep.c: Include timespec.h first, for interface check.
45010         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
45011         now assume the sys_time module.
45012         * lib/tempname.c: Likewise.
45013         * lib/timespec.h: Likewise.
45014         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
45015         needed.
45016         * lib/strftime.c: Likewise.
45017         * lib/timespec.h: Likewise.
45018         * lib/posixtm.c: Include posixtm.h first, for interface check.
45019         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
45020         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
45021         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
45022         * lib/sys_time_.h: New file.
45023         * lib/timespec.h (struct timespec): Use long int, not long.
45024         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
45025         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
45026         Remove obsolescent call to AC_HEADER_TIME.
45027         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
45028         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
45029         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
45030         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
45031         Likewise.
45032         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
45033         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
45034         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
45035         into the sys_time module.  Check for gettimeofday just once.
45036         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
45037         for gettimeofday signature to just check the signature.  Merely
45038         compile it, since linking doesn't test signature.  Improve test for
45039         whether gettimeofday.o is actually needed.
45040         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
45041         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
45042         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
45043         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
45044         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
45045         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
45046         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
45047         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
45048         than worrying about sys/time.h.
45049         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
45050         Don't bother worrying about TIME_WITH_SYS_TIME.
45051         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
45052         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
45053         * m4/sys_time_h.m4: New file.
45054         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
45055         Don't include sys/time.h.  Return from main rather than exiting.
45056         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
45057         all uses changed.
45058         * modules/gethrxtime (Depends-on): Add sys_time.
45059         * modules/gettime (Depends-on): Likewise.
45060         * modules/gettimeofday (Depends-on): Likewise.
45061         * modules/nanosleep (Depends-on): Likewise.
45062         * modules/settime (Depends-on): Likewise.
45063         * modules/tempname (Depends-on): Likewise.
45064         * modules/utimens (Depends-on): Likewise.
45065         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
45066         (Include:) Change back to <sys/time.h>.
45067         (Maintainer:) Add self.
45068         * modules/sys_time: New file.
45069         * modules/tempname (Depends-on): Add gettimeofday.
45070         * tests/test-gettimeofday.c: Include <sys/time.h>
45071         rather than gettimeofday.h.
45072
45073 2007-01-17  Bruno Haible  <bruno@clisp.org>
45074
45075         * gnulib-tool (func_get_license): Revert last patch. Instead, let
45076         the license default to GPL.
45077         (func_create_testdir): Don't complain if a module is LGPL and its
45078         tests module depends on GPLed modules.
45079
45080 2007-01-17  Bruno Haible  <bruno@clisp.org>
45081
45082         * lib/gettimeofday.c (gettimeofday): Add code for the case
45083         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
45084         maximum possible value for tv->tv_usec, rather than the minimum one.
45085
45086 2005-10-08  Martin Lambers  <marlam@marlam.de>
45087 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
45088 2007-01-16  Bruno Haible  <bruno@clisp.org>
45089
45090         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
45091         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
45092         gl_FUNC_GETTIMEOFDAY.
45093         (Include): Add gettimeofday.h.
45094         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
45095         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
45096         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
45097         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
45098         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
45099         * lib/gettimeofday.h: New file.
45100         * lib/gettimeofday.c: Include <sys/timeb.h>.
45101         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
45102         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
45103         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
45104         fall back on time().
45105
45106         * tests/test-gettimeofday.c: New file.
45107         * modules/gettimeofday-tests: New file.
45108
45109 2007-01-16  Eric Blake  <ebb9@byu.net>
45110
45111         * modules/fnmatch (Depends-on): Depend on wchar.
45112         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
45113         * m4/fnmatch.m4: Likewise.
45114         * modules/mbchar (Makefile.am): Assume <wchar.h>.
45115         * m4/mbchar.m4: Likewise.
45116         * modules/mbswidth (Depends-on): Depend on wchar.
45117         * lib/mbswidth.c: Assume <wchar.h>.
45118         * m4/mbswidth.m4: Likewise.
45119         * modules/quotearg (Depends-on): Depend on wchar.
45120         * lib/quotearg.c: Assume <wchar.h>.
45121         * m4/quotearg.m4: Likewise.
45122         * modules/regex (Depends-on): Depend on wchar.
45123         * lib/regex_internal.h: Assume <wchar.h>.
45124         * m4/regex.m4: Likewise.
45125         * modules/stdint (Depends-on): Depend on wchar.
45126         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
45127         * m4/stdint.m4: Likewise.
45128         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
45129         * modules/strftime (Depends-on): Depend on wchar.
45130         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
45131         * modules/strtol (Depends-on): Depend on wchar.
45132         * lib/strtol.c: Assume <wchar.h>.
45133         * modules/wcwidth (Depends-on): Depend on wchar.
45134         * lib/wcwidth.h: Assume <wchar.h>.
45135         * m4/wcwidth.m4: Likewise.
45136
45137 2007-01-16  Bruno Haible  <bruno@clisp.org>
45138
45139         * modules/csharpexec-script: New, created from...
45140         * modules/csharpexec: ... this.
45141
45142 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
45143
45144         * modules/javaexec-script: New, created from...
45145         * modules/javaexec: ... this.
45146
45147 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
45148
45149         * modules/poll (Dependencies): Add sys_select.
45150
45151 2007-01-15  Jim Meyering  <jim@meyering.net>
45152
45153         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
45154         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
45155         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
45156         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
45157
45158 2007-01-15  Bruno Haible  <bruno@clisp.org>
45159
45160         * modules/striconveh: New file.
45161         * lib/striconveh.h: New file.
45162         * lib/striconveh.c: New file.
45163         * MODULES.html.sh (Internationalization functions): Add striconveh.
45164
45165         * modules/striconveh-tests: New file.
45166         * tests/test-striconveh.c: New file.
45167
45168 2007-01-15  Bruno Haible  <bruno@clisp.org>
45169
45170         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
45171         not from GNU libiconv or GNU libc.
45172
45173 2007-01-15  Bruno Haible  <bruno@clisp.org>
45174
45175         * doc/gnulib-intro.texi (Copyright): Explain the different license
45176         terms for module descriptions, autoconf macros, tests, documentation.
45177
45178 2007-01-14  Bruno Haible  <bruno@clisp.org>
45179
45180         * modules/striconv-tests: New file.
45181         * tests/test-striconv.c: New file.
45182
45183 2007-01-14  Bruno Haible  <bruno@clisp.org>
45184
45185         * modules/iconv-tests: New file.
45186         * tests/test-iconv.c: New file.
45187
45188 2007-01-14  Bruno Haible  <bruno@clisp.org>
45189
45190         * gnulib-tool (func_get_license): For test modules, use the license of
45191         the main module.
45192
45193 2007-01-14  Bruno Haible  <bruno@clisp.org>
45194
45195         * modules/iconv (Include): Clarify that <iconv.h> can only be included
45196         if iconv is found to exist.
45197
45198 2007-01-14  Bruno Haible  <bruno@clisp.org>
45199
45200         * modules/c-ctype-tests: New file.
45201         * tests/test-c-ctype.c: New file.
45202
45203 2007-01-14  Bruno Haible  <bruno@clisp.org>
45204
45205         * modules/binary-io-tests: New file.
45206         * tests/test-binary-io.sh: New file.
45207         * tests/test-binary-io.c: New file.
45208
45209 2007-01-14  Bruno Haible  <bruno@clisp.org>
45210
45211         * modules/array-oset-tests: New file.
45212         * tests/test-array_oset.c: New file.
45213
45214 2007-01-14  Bruno Haible  <bruno@clisp.org>
45215
45216         * modules/array-list-tests: New file.
45217         * tests/test-array_list.c: New file.
45218
45219 2007-01-14  Bruno Haible  <bruno@clisp.org>
45220
45221         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
45222         and make.
45223         Reported by Simon Josefsson in
45224         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
45225
45226 2007-01-14  Bruno Haible  <bruno@clisp.org>
45227
45228         * modules/allocsa-tests: New file.
45229         * tests/test-allocsa.c: New file.
45230
45231 2007-01-14  Bruno Haible  <bruno@clisp.org>
45232
45233         * modules/fchdir (Depends-on): Add absolute-header.
45234         * modules/unistd (Depends-on): Likewise.
45235
45236 2006-12-30  Bruno Haible  <bruno@clisp.org>
45237
45238         * modules/fchdir: New file.
45239         * modules/unistd (Files): Add lib/unistd_.h.
45240         (Makefile.am): Generate unistd.h from unistd_.h.
45241         * lib/fchdir.c: New file.
45242         * lib/dirent_.h: New file.
45243         * lib/unistd_.h: New file.
45244         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
45245         * m4/fchdir.m4: New file.
45246         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
45247         (gl_HEADER_UNISTD): Invoke it.
45248         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
45249         function.
45250         * lib/backupfile.c (opendir, closedir): Undefine.
45251         * lib/chown.c (open, close): Undefine.
45252         * lib/clean-temp.c (open, close): Undefine.
45253         * lib/copy-file.c (open, close): Undefine.
45254         * lib/execute.c (open, close): Undefine.
45255         * lib/fsusage.c (open, close): Undefine.
45256         * lib/gc-gnulib.c (open, close): Undefine.
45257         * lib/getcwd.c (opendir, closedir): Undefine.
45258         * lib/glob.c (opendir, closedir): Undefine.
45259         * lib/javacomp.c (open, close): Undefine.
45260         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
45261         * lib/openat-proc.c (open, close): Undefine.
45262         * lib/pagealign_alloc.c (open, close): Undefine.
45263         * lib/pipe.c (open, close): Undefine.
45264         * lib/progreloc.c (open, close): Undefine.
45265         * lib/savedir.c (opendir, closedir): Undefine.
45266         * lib/utime.c (open, close): Undefine.
45267         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
45268
45269 2007-01-10  Bruno Haible  <bruno@clisp.org>
45270
45271         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
45272
45273 2007-01-12  Eric Blake  <ebb9@byu.net>
45274
45275         Provide a robust <wchar.h>.  Further simplifications are now
45276         possible in other modules, but not included here.
45277         * modules/wchar: New module.
45278         * m4/wchar.m4: New file.
45279         * lib/wchar_.h: Likewise.
45280         * modules/mbchar (Depends-on): Depend on wchar, as the first use
45281         of the new module.
45282         * MODULES.html.sh (Extended multibyte and wide character utilities):
45283         New section.
45284
45285 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
45286
45287         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
45288         to a reasonable default for memory allocation.
45289         (xreadlink): Don't allocate a huge buffer, to work around a buggy
45290         file system that reports garbage st_size values for symlinks.
45291         Problem reported by Liyang Hu.
45292
45293 2007-01-11  Simon Josefsson  <simon@josefsson.org>
45294
45295         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
45296         Emacs .#* auto-save files).
45297
45298 2007-01-11  Bruno Haible  <bruno@clisp.org>
45299
45300         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
45301         directory.
45302
45303 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
45304
45305         Use @...@ consistently in lib/wctype_.h.
45306         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
45307         on it being set to 1 or 0.
45308         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
45309         go back to AC_SUBSTing it.
45310         * modules/wctype (Makefile.am): Undo previous change.
45311
45312 2007-01-10  Eric Blake  <ebb9@byu.net>
45313
45314         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
45315         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
45316         * modules/wctype (Makefile.am): Likewise.
45317         Reported by Chris McGuire.
45318
45319 2007-01-10  Jim Meyering  <jim@meyering.net>
45320
45321         fts.c: a small readability/maintainability improvement
45322         * lib/fts.c (fts_read): Make this code slightly more readable and
45323         maintainable by hoisting the "sp->fts_cur = p" assignments to
45324         immediately follow the statements that set P.  Derived from
45325         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
45326
45327 2007-01-10  Eric Blake  <ebb9@byu.net>
45328
45329         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
45330         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
45331         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
45332         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
45333         Reported by Chris McGuire.
45334
45335 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
45336
45337         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
45338         in sed script.
45339
45340 2007-01-09  Bruno Haible  <bruno@clisp.org>
45341
45342         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
45343         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
45344         variables.
45345         (func_module): Use them.
45346
45347 2007-01-09  Bruno Haible  <bruno@clisp.org>
45348
45349         * modules/unistr/base: New file.
45350         * lib/unistr.h: New file.
45351
45352         * modules/unistr/u8-to-u16: New file.
45353         * lib/unistr/u8-to-u16.c: New file.
45354
45355         * modules/unistr/u8-to-u32: New file.
45356         * lib/unistr/u8-to-u32.c: New file.
45357
45358         * modules/unistr/u16-to-u8: New file.
45359         * lib/unistr/u16-to-u8.c: New file.
45360
45361         * modules/unistr/u16-to-u32: New file.
45362         * lib/unistr/u16-to-u32.c: New file.
45363
45364         * modules/unistr/u32-to-u8: New file.
45365         * lib/unistr/u32-to-u8.c: New file.
45366
45367         * modules/unistr/u32-to-u16: New file.
45368         * lib/unistr/u32-to-u16.c: New file.
45369
45370         * modules/unistr/u8-check: New file.
45371         * modules/unistr/u16-check: New file.
45372         * modules/unistr/u32-check: New file.
45373         * lib/unistr/u8-check.c: New file.
45374         * lib/unistr/u16-check.c: New file.
45375         * lib/unistr/u32-check.c: New file.
45376
45377         * modules/unistr/u8-chr: New file.
45378         * modules/unistr/u16-chr: New file.
45379         * modules/unistr/u32-chr: New file.
45380         * lib/unistr/u8-chr.c: New file.
45381         * lib/unistr/u16-chr.c: New file.
45382         * lib/unistr/u32-chr.c: New file.
45383
45384         * modules/unistr/u8-cmp: New file.
45385         * modules/unistr/u16-cmp: New file.
45386         * modules/unistr/u32-cmp: New file.
45387         * lib/unistr/u8-cmp.c: New file.
45388         * lib/unistr/u16-cmp.c: New file.
45389         * lib/unistr/u32-cmp.c: New file.
45390
45391         * modules/unistr/u8-cpy: New file.
45392         * modules/unistr/u16-cpy: New file.
45393         * modules/unistr/u32-cpy: New file.
45394         * lib/unistr/u8-cpy.c: New file.
45395         * lib/unistr/u16-cpy.c: New file.
45396         * lib/unistr/u32-cpy.c: New file.
45397         * lib/unistr/u-cpy.h: New file.
45398
45399         * modules/unistr/u8-cpy-alloc: New file.
45400         * modules/unistr/u16-cpy-alloc: New file.
45401         * modules/unistr/u32-cpy-alloc: New file.
45402         * lib/unistr/u8-cpy-alloc.c: New file.
45403         * lib/unistr/u16-cpy-alloc.c: New file.
45404         * lib/unistr/u32-cpy-alloc.c: New file.
45405         * lib/unistr/u-cpy-alloc.h: New file.
45406
45407         * modules/unistr/u8-endswith: New file.
45408         * modules/unistr/u16-endswith: New file.
45409         * modules/unistr/u32-endswith: New file.
45410         * lib/unistr/u8-endswith.c: New file.
45411         * lib/unistr/u16-endswith.c: New file.
45412         * lib/unistr/u32-endswith.c: New file.
45413         * lib/unistr/u-endswith.h: New file.
45414
45415         * modules/unistr/u8-mblen: New file.
45416         * modules/unistr/u16-mblen: New file.
45417         * modules/unistr/u32-mblen: New file.
45418         * lib/unistr/u8-mblen.c: New file.
45419         * lib/unistr/u16-mblen.c: New file.
45420         * lib/unistr/u32-mblen.c: New file.
45421
45422         * modules/unistr/u8-mbtouc: New file.
45423         * modules/unistr/u16-mbtouc: New file.
45424         * modules/unistr/u32-mbtouc: New file.
45425         * lib/unistr/u8-mbtouc.c: New file.
45426         * lib/unistr/u16-mbtouc.c: New file.
45427         * lib/unistr/u32-mbtouc.c: New file.
45428
45429         * modules/unistr/u8-mbtouc-safe: New file.
45430         * modules/unistr/u16-mbtouc-safe: New file.
45431         * modules/unistr/u32-mbtouc-safe: New file.
45432         * lib/unistr/u8-mbtouc-safe.c: New file.
45433         * lib/unistr/u16-mbtouc-safe.c: New file.
45434         * lib/unistr/u32-mbtouc-safe.c: New file.
45435
45436         * modules/unistr/u8-move: New file.
45437         * modules/unistr/u16-move: New file.
45438         * modules/unistr/u32-move: New file.
45439         * lib/unistr/u8-move.c: New file.
45440         * lib/unistr/u16-move.c: New file.
45441         * lib/unistr/u32-move.c: New file.
45442         * lib/unistr/u-move.h: New file.
45443
45444         * modules/unistr/u8-next: New file.
45445         * modules/unistr/u16-next: New file.
45446         * modules/unistr/u32-next: New file.
45447         * lib/unistr/u8-next.c: New file.
45448         * lib/unistr/u16-next.c: New file.
45449         * lib/unistr/u32-next.c: New file.
45450
45451         * modules/unistr/u8-prev: New file.
45452         * modules/unistr/u16-prev: New file.
45453         * modules/unistr/u32-prev: New file.
45454         * lib/unistr/u8-prev.c: New file.
45455         * lib/unistr/u16-prev.c: New file.
45456         * lib/unistr/u32-prev.c: New file.
45457
45458         * modules/unistr/u8-set: New file.
45459         * modules/unistr/u16-set: New file.
45460         * modules/unistr/u32-set: New file.
45461         * lib/unistr/u8-set.c: New file.
45462         * lib/unistr/u16-set.c: New file.
45463         * lib/unistr/u32-set.c: New file.
45464         * lib/unistr/u-set.h: New file.
45465
45466         * modules/unistr/u8-startswith: New file.
45467         * modules/unistr/u16-startswith: New file.
45468         * modules/unistr/u32-startswith: New file.
45469         * lib/unistr/u8-startswith.c: New file.
45470         * lib/unistr/u16-startswith.c: New file.
45471         * lib/unistr/u32-startswith.c: New file.
45472         * lib/unistr/u-startswith.h: New file.
45473
45474         * modules/unistr/u8-stpcpy: New file.
45475         * modules/unistr/u16-stpcpy: New file.
45476         * modules/unistr/u32-stpcpy: New file.
45477         * lib/unistr/u8-stpcpy.c: New file.
45478         * lib/unistr/u16-stpcpy.c: New file.
45479         * lib/unistr/u32-stpcpy.c: New file.
45480         * lib/unistr/u-stpcpy.h: New file.
45481
45482         * modules/unistr/u8-stpncpy: New file.
45483         * modules/unistr/u16-stpncpy: New file.
45484         * modules/unistr/u32-stpncpy: New file.
45485         * lib/unistr/u8-stpncpy.c: New file.
45486         * lib/unistr/u16-stpncpy.c: New file.
45487         * lib/unistr/u32-stpncpy.c: New file.
45488         * lib/unistr/u-stpncpy.h: New file.
45489
45490         * modules/unistr/u8-strcat: New file.
45491         * modules/unistr/u16-strcat: New file.
45492         * modules/unistr/u32-strcat: New file.
45493         * lib/unistr/u8-strcat.c: New file.
45494         * lib/unistr/u16-strcat.c: New file.
45495         * lib/unistr/u32-strcat.c: New file.
45496         * lib/unistr/u-strcat.h: New file.
45497
45498         * modules/unistr/u8-strchr: New file.
45499         * modules/unistr/u16-strchr: New file.
45500         * modules/unistr/u32-strchr: New file.
45501         * lib/unistr/u8-strchr.c: New file.
45502         * lib/unistr/u16-strchr.c: New file.
45503         * lib/unistr/u32-strchr.c: New file.
45504
45505         * modules/unistr/u8-strcmp: New file.
45506         * modules/unistr/u16-strcmp: New file.
45507         * modules/unistr/u32-strcmp: New file.
45508         * lib/unistr/u8-strcmp.c: New file.
45509         * lib/unistr/u16-strcmp.c: New file.
45510         * lib/unistr/u32-strcmp.c: New file.
45511
45512         * modules/unistr/u8-strcpy: New file.
45513         * modules/unistr/u16-strcpy: New file.
45514         * modules/unistr/u32-strcpy: New file.
45515         * lib/unistr/u8-strcpy.c: New file.
45516         * lib/unistr/u16-strcpy.c: New file.
45517         * lib/unistr/u32-strcpy.c: New file.
45518         * lib/unistr/u-strcpy.h: New file.
45519
45520         * modules/unistr/u8-strcspn: New file.
45521         * modules/unistr/u16-strcspn: New file.
45522         * modules/unistr/u32-strcspn: New file.
45523         * lib/unistr/u8-strcspn.c: New file.
45524         * lib/unistr/u16-strcspn.c: New file.
45525         * lib/unistr/u32-strcspn.c: New file.
45526         * lib/unistr/u-strcspn.h: New file.
45527
45528         * modules/unistr/u8-strdup: New file.
45529         * modules/unistr/u16-strdup: New file.
45530         * modules/unistr/u32-strdup: New file.
45531         * lib/unistr/u8-strdup.c: New file.
45532         * lib/unistr/u16-strdup.c: New file.
45533         * lib/unistr/u32-strdup.c: New file.
45534         * lib/unistr/u-strdup.h: New file.
45535
45536         * modules/unistr/u8-strlen: New file.
45537         * modules/unistr/u16-strlen: New file.
45538         * modules/unistr/u32-strlen: New file.
45539         * lib/unistr/u8-strlen.c: New file.
45540         * lib/unistr/u16-strlen.c: New file.
45541         * lib/unistr/u32-strlen.c: New file.
45542         * lib/unistr/u-strlen.h: New file.
45543
45544         * modules/unistr/u8-strmblen: New file.
45545         * modules/unistr/u16-strmblen: New file.
45546         * modules/unistr/u32-strmblen: New file.
45547         * lib/unistr/u8-strmblen.c: New file.
45548         * lib/unistr/u16-strmblen.c: New file.
45549         * lib/unistr/u32-strmblen.c: New file.
45550
45551         * modules/unistr/u8-strmbtouc: New file.
45552         * modules/unistr/u16-strmbtouc: New file.
45553         * modules/unistr/u32-strmbtouc: New file.
45554         * lib/unistr/u8-strmbtouc.c: New file.
45555         * lib/unistr/u16-strmbtouc.c: New file.
45556         * lib/unistr/u32-strmbtouc.c: New file.
45557
45558         * modules/unistr/u8-strncat: New file.
45559         * modules/unistr/u16-strncat: New file.
45560         * modules/unistr/u32-strncat: New file.
45561         * lib/unistr/u8-strncat.c: New file.
45562         * lib/unistr/u16-strncat.c: New file.
45563         * lib/unistr/u32-strncat.c: New file.
45564         * lib/unistr/u-strncat.h: New file.
45565
45566         * modules/unistr/u8-strncmp: New file.
45567         * modules/unistr/u16-strncmp: New file.
45568         * modules/unistr/u32-strncmp: New file.
45569         * lib/unistr/u8-strncmp.c: New file.
45570         * lib/unistr/u16-strncmp.c: New file.
45571         * lib/unistr/u32-strncmp.c: New file.
45572
45573         * modules/unistr/u8-strncpy: New file.
45574         * modules/unistr/u16-strncpy: New file.
45575         * modules/unistr/u32-strncpy: New file.
45576         * lib/unistr/u8-strncpy.c: New file.
45577         * lib/unistr/u16-strncpy.c: New file.
45578         * lib/unistr/u32-strncpy.c: New file.
45579         * lib/unistr/u-strncpy.h: New file.
45580
45581         * modules/unistr/u8-strnlen: New file.
45582         * modules/unistr/u16-strnlen: New file.
45583         * modules/unistr/u32-strnlen: New file.
45584         * lib/unistr/u8-strnlen.c: New file.
45585         * lib/unistr/u16-strnlen.c: New file.
45586         * lib/unistr/u32-strnlen.c: New file.
45587         * lib/unistr/u-strnlen.h: New file.
45588
45589         * modules/unistr/u8-strpbrk: New file.
45590         * modules/unistr/u16-strpbrk: New file.
45591         * modules/unistr/u32-strpbrk: New file.
45592         * lib/unistr/u8-strpbrk.c: New file.
45593         * lib/unistr/u16-strpbrk.c: New file.
45594         * lib/unistr/u32-strpbrk.c: New file.
45595         * lib/unistr/u-strpbrk.h: New file.
45596
45597         * modules/unistr/u8-strrchr: New file.
45598         * modules/unistr/u16-strrchr: New file.
45599         * modules/unistr/u32-strrchr: New file.
45600         * lib/unistr/u8-strrchr.c: New file.
45601         * lib/unistr/u16-strrchr.c: New file.
45602         * lib/unistr/u32-strrchr.c: New file.
45603
45604         * modules/unistr/u8-strspn: New file.
45605         * modules/unistr/u16-strspn: New file.
45606         * modules/unistr/u32-strspn: New file.
45607         * lib/unistr/u8-strspn.c: New file.
45608         * lib/unistr/u16-strspn.c: New file.
45609         * lib/unistr/u32-strspn.c: New file.
45610         * lib/unistr/u-strspn.h: New file.
45611
45612         * modules/unistr/u8-strstr: New file.
45613         * modules/unistr/u16-strstr: New file.
45614         * modules/unistr/u32-strstr: New file.
45615         * lib/unistr/u8-strstr.c: New file.
45616         * lib/unistr/u16-strstr.c: New file.
45617         * lib/unistr/u32-strstr.c: New file.
45618         * lib/unistr/u-strstr.h: New file.
45619
45620         * modules/unistr/u8-strtok: New file.
45621         * modules/unistr/u16-strtok: New file.
45622         * modules/unistr/u32-strtok: New file.
45623         * lib/unistr/u8-strtok.c: New file.
45624         * lib/unistr/u16-strtok.c: New file.
45625         * lib/unistr/u32-strtok.c: New file.
45626         * lib/unistr/u-strtok.h: New file.
45627
45628         * modules/unistr/u8-uctomb: New file.
45629         * modules/unistr/u16-uctomb: New file.
45630         * modules/unistr/u32-uctomb: New file.
45631         * lib/unistr/u8-uctomb.c: New file.
45632         * lib/unistr/u16-uctomb.c: New file.
45633         * lib/unistr/u32-uctomb.c: New file.
45634
45635         * MODULES.html.sh (Unicode string functions): Add the new modules.
45636
45637 2007-01-08  Bruno Haible  <bruno@clisp.org>
45638
45639         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
45640         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
45641         subdirectories.
45642
45643 2007-01-08  Karl Berry  <karl@gnu.org>
45644
45645         * doc/error.texi: mention that main() fns must set program_name
45646         when progname is used.
45647
45648 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
45649
45650         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
45651         WCTYPE_H is empty, for the benefit of builds from non-distclean
45652         directories.  Problem reported by Eric Blake in
45653         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
45654
45655 2007-01-08  Bruno Haible  <bruno@clisp.org>
45656
45657         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
45658         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
45659         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
45660         PROVIDE_CANONICALIZE_FILENAME_MODE.
45661         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
45662
45663 2007-01-08  Bruno Haible  <bruno@clisp.org>
45664
45665         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
45666         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
45667         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
45668         * lib/fts.c: Likewise.
45669         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
45670
45671 2006-12-25  Bruno Haible  <bruno@clisp.org>
45672
45673         * modules/utf8-ucs4-safe: New file.
45674         * lib/utf8-ucs4-safe.h: New file.
45675         * lib/unistr/utf8-ucs4-safe.c: New file.
45676
45677         * modules/utf16-ucs4-safe: New file.
45678         * lib/utf16-ucs4-safe.h: New file.
45679         * lib/unistr/utf16-ucs4-safe.c: New file.
45680
45681         * MODULES.html.sh (Unicode string functions): Add the new modules.
45682
45683 2007-01-08  Bruno Haible  <bruno@clisp.org>
45684
45685         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
45686         (Depends-on): Add unitypes.
45687         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
45688         (u8_mbtouc_aux): Move out to separate file.
45689         (u8_mbtouc): Use ucs4_t, uint8_t types.
45690         * lib/unistr/utf8-ucs4.c: New file.
45691
45692         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
45693         (Depends-on): Add unitypes.
45694         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
45695         (u16_mbtouc_aux): Move out to separate file.
45696         (u16_mbtouc): Use ucs4_t, uint16_t types.
45697         * lib/unistr/utf16-ucs4.c: New file.
45698
45699         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
45700         (Depends-on): Add unitypes.
45701         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
45702         (u8_uctomb_aux): Move out to separate file.
45703         (u8_uctomb): Use ucs4_t, uint8_t types.
45704         * lib/unistr/ucs4-utf8.c: New file.
45705
45706         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
45707         (Depends-on): Add unitypes.
45708         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
45709         (u16_uctomb_aux): Move out to separate file.
45710         (u16_uctomb): Use ucs4_t, uint16_t types.
45711         * lib/unistr/ucs4-utf16.c: New file.
45712
45713 2006-12-25  Bruno Haible  <bruno@clisp.org>
45714
45715         * modules/unitypes: New file.
45716         * lib/unitypes.h: New file.
45717         * MODULES.html.sh (func_all_modules): New section "Unicode string
45718         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
45719         this section. Add unitypes.
45720
45721 2007-01-08  Bruno Haible  <bruno@clisp.org>
45722
45723         Avoid variable names that conflict with those from libtool.
45724         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
45725         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
45726         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
45727         library_names_spec to acl_library_names_spec, hardcode_* to
45728         acl_hardcode_*.
45729         Reported by Ralf Wildenhues.
45730
45731 2007-01-08  Bruno Haible  <bruno@clisp.org>
45732
45733         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
45734         definition.
45735         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
45736         definition.
45737         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
45738         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
45739         definition.
45740         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
45741         definition.
45742         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
45743         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
45744         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
45745         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
45746         definition.
45747         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
45748         definition.
45749         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
45750         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
45751         GC_USE_<algorithm>.
45752         * lib/gc-libgcrypt.c: Likewise.
45753         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
45754         * modules/gc-arctwo (configure.ac): Likewise.
45755         * modules/gc-des (configure.ac): Likewise.
45756         * modules/gc-hmac-md5 (configure.ac): Likewise.
45757         * modules/gc-hmac-sha1 (configure.ac): Likewise.
45758         * modules/gc-md2 (configure.ac): Likewise.
45759         * modules/gc-md4 (configure.ac): Likewise.
45760         * modules/gc-md5 (configure.ac): Likewise.
45761         * modules/gc-random (configure.ac): Likewise.
45762         * modules/gc-rijndael (configure.ac): Likewise.
45763         * modules/gc-sha1 (configure.ac): Likewise.
45764
45765 2007-01-08  Bruno Haible  <bruno@clisp.org>
45766
45767         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
45768         macro definition.
45769         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
45770         definition.
45771         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
45772         definition.
45773         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
45774         * modules/fcntl-safer (configure.ac): Likewise.
45775         * modules/fopen-safer (configure.ac): Likewise.
45776         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
45777         GNULIB_FWRITEERROR macro definition.
45778
45779 2007-01-08  Bruno Haible  <bruno@clisp.org>
45780
45781         * m4/gnulib-common.m4: New file.
45782         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
45783         (func_get_filelist): Add m4/gnulib-common.m4.
45784
45785 2007-01-08  Bruno Haible  <bruno@clisp.org>
45786
45787         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
45788         command.
45789
45790 2007-01-08  Jim Meyering  <jim@meyering.net>
45791
45792         Use a more robust test for a "can't happen" condition.
45793         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
45794         narrowed the st_size value.  Presuming the "can't happen" condition
45795         is true, that narrowing could conceivably convert an invalid st_size
45796         value into a valid one.  Instead, use a change based on Matthew
45797         Woehlke's original patch.
45798
45799         Slight readability improvement: use an assert-like macro
45800         in place of literal "abort ()" uses.
45801         * lib/fts.c (fts_assert): Define.
45802         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
45803         Use this macro instead of a bare 'abort'.
45804
45805 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
45806
45807         Don't worry about using IRIX 5.3's wctype.h broken definitions;
45808         simply work around them.
45809         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
45810         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
45811         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
45812         declaring.
45813         Don't bother to define as macros, since the standard doesn't require it.
45814         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
45815         longer worry about IRIX 5.3.
45816         (HAVE_WCTYPE_CTMP_BUG): Remove.
45817
45818 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
45819
45820         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
45821         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
45822         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
45823         Problems reported by Georg Schwarz for IRIX 5.3.
45824
45825         * gnulib-tool (autoconf_minversion): Take the maximum version number
45826         found, not the minimum.  Problem reported by James Youngman.
45827
45828 2007-01-03  Karl Berry  <karl@gnu.org>
45829
45830         * doc/error.texi: new file, explaining interaction with progname.
45831         * doc/gnulib.texi: include it.  Update copyright.
45832
45833 2007-01-03  Simon Josefsson  <simon@josefsson.org>
45834
45835         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
45836         AC_CANONICAL_HOST, to improve autobuild outputs.
45837
45838 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
45839             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
45840
45841         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
45842         sockets, server sockets, and other file descriptors.  Count errors
45843         to compute the return value.  Reorder the code a bit to be easier
45844         to follow.  Don't set event bits that were not requested (except
45845         POLLERR and POLLHUP).
45846
45847 2007-01-01  Bruno Haible  <bruno@clisp.org>
45848
45849         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
45850
45851 2007-01-03  Jim Meyering  <jim@meyering.net>
45852
45853         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
45854
45855 2007-01-02  Bruno Haible  <bruno@clisp.org>
45856
45857         * modules/settime (Include): Require timespec.h.
45858         * modules/nanosleep (Include): Likewise.
45859
45860 2007-01-01  Bruno Haible  <bruno@clisp.org>
45861
45862         * gnulib-tool (func_emit_copyright_notice): Bump year.
45863         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
45864
45865 2007-01-01  Bruno Haible  <bruno@clisp.org>
45866
45867         Improve support for OpenBSD.
45868         * build-aux/config.rpath (libname_spec): Export.
45869         (library_names_spec): New variable. Export.
45870         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
45871         library_names_spec from the config.rpath output. Locate shared library
45872         through the name pattern in library_names_spec.
45873
45874 2007-01-01  Eric Blake  <ebb9@byu.net>
45875
45876         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
45877
45878 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
45879
45880         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
45881         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
45882         assume the C locale, and avoid an "eval" that could cause trouble.
45883         Problem with SORT reported by Bob Proulx.
45884
45885         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
45886         Define.  Trivial patch from Henning Nielsen Lund, originally
45887         sent to bug-grep@gnu.org today.
45888
45889 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
45890
45891         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
45892         struct stat.  Problem reported by Henning Nielsen Lund.
45893         * lib/acl.c: Include acl.h first, to check interface.  Don't
45894         bother to include sys/types.h and sys/stat.h again.
45895
45896 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
45897
45898         Import the following change from libc; problem reported by
45899         Sven Verdoolaege.
45900
45901         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
45902
45903         [BZ #1373]
45904         * lib/argp.h: Remove __NTH for __argp_usage inline function.
45905
45906 2006-12-28  Jim Meyering  <jim@meyering.net>
45907
45908         * build-aux/announce-gen: Do not assume that the package
45909         builds any of tar.gz, tar.bz2, and .xdelta files.
45910         Suggestion from Simon Josefsson.
45911
45912 2006-12-28  Simon Josefsson  <simon@josefsson.org>
45913
45914         * modules/announce-gen: New file.
45915
45916 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
45917
45918         * lib/mbchar.h: Just include <wctype.h>; the wctype module
45919         handles its gotchas now.
45920         * lib/mbswidth.c: Likewise.
45921         * lib/wcwidth.h: Likewise.
45922         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
45923         and iswcntrl; the wctype module does this stuff now.
45924         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
45925         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
45926         * modules/mbchar (Depends-on): Add wctype.
45927         * modules/mbswidth (Depends-on): Likewise.
45928         * modules/wcwidth (Depends-on): Likewise.
45929
45930 2006-12-27  Eric Blake  <ebb9@byu.net>
45931
45932         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
45933         module uses more than what <wctype.h> is required to provide.
45934
45935 2006-12-26  Eric Blake  <ebb9@byu.net>
45936
45937         * gnulib-tool (sed_extract_prog): Avoid space-tab.
45938
45939 2006-12-26  Eric Blake  <ebb9@byu.net>
45940
45941         * modules/absolute-header: New module.
45942         * modules/fcntl (Depends-on): Depend on it.
45943         * modules/inttypes (Depends-on): Likewise.
45944         * modules/stdint (Depends-on): Likewise.
45945         * modules/sys_stat (Depends-on): Likewise.
45946         * modules/wctype (Depends-on): Likewise.
45947         * MODULES.html.sh (Support for building libraries and
45948         executables): Document it.
45949
45950 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
45951
45952         * gnulib-tool (SED): Remove, undoing previous change.
45953         The problem was that it broke coreutils on Solaris, because
45954         "sed --posix" leaked into a makefile.
45955         (sed): New alias, if 'alias' and GNU sed.
45956
45957 2006-12-24  Jim Meyering  <jim@meyering.net>
45958
45959         Work around an fchownat bug in glibc-2.4:
45960         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
45961         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
45962         in spite of the -P option.
45963         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
45964         New macros.
45965         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
45966         * modules/openat (Files): Add lib/fchownat.c.
45967         * lib/openat.c (fchownat): Don't define here.  Move to...
45968         * lib/fchownat.c: ...this new file.
45969
45970 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
45971
45972         Fix bug reported by Bruno Haible in
45973         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
45974         where quotearg.c didn't compile on Mac OS X 10.2 because it
45975         lacks <wchar.h> and wint_t.
45976         * lib/wctype_.h (__wctype_wint_t): New type.
45977         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
45978         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
45979         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
45980         Arg is now of type __wctype_wint_t, not wint_t.
45981         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
45982         substitute HAVE_WINT_T.
45983         * modules/wctype (Files): Add m4/wint_t.m4.
45984         (wctype.h): Substitute HAVE_WINT_T.
45985
45986 2006-12-23  Bruno Haible  <bruno@clisp.org>
45987
45988         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
45989
45990 2006-12-23  Bruno Haible  <bruno@clisp.org>
45991
45992         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
45993         S_ISLNK.
45994         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
45995         mingw.
45996
45997 2006-12-22  Bruno Haible  <bruno@clisp.org>
45998
45999         * lib/copy-file.c: Include acl.h.
46000         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
46001         Close the file descriptors only after being done with copy_acl.
46002         * modules/copy-file (Depends-on): Add acl.
46003
46004 2006-12-22  Bruno Haible  <bruno@clisp.org>
46005
46006         * gnulib-tool (SED): New variable.
46007         Use $SED instead of sed everywhere.
46008
46009 2006-12-22  Bruno Haible  <bruno@clisp.org>
46010
46011         * modules/no-c++: New file.
46012         * m4/no-c++.m4: New file.
46013         * MODULES.html.sh (Support for building libraries and executables):
46014         Add no-c++.
46015
46016 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
46017
46018         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
46019         Include <limits.h>, and use its INT_MAX to rewrite the
46020         j loop so that it does not overflow 'int'.  Problem reported by
46021         Ralf Wildenhues in
46022         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
46023         Play it safe by shifting left by 1 rather than multiplying by 2,
46024         as GCC is less likely to optimize this away when the value
46025         is signed (when it assumes overflow leads to undefined behavior).
46026         Also, don't assume time_t uses two's complement.
46027
46028 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
46029
46030         * MODULES.html.sh: New module wctype.
46031         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
46032         * lib/fnmatch.c: Don't bother to include <wchar.h> before
46033         <wctype.h>, since the new wctype module should fix this.
46034         * lib/quotearg.c: Include <wctype.h> unconditionally, since
46035         the wctype module should arrange for it.
46036         * lib/regex_internal.h: Likewise.
46037         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
46038         since the wctype module should handle this now.
46039         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
46040         * modules/fnmatch (Depends-on): Add wctype.
46041         * modules/quotearg (Depends-on): Likewise.
46042         * modules/regex (Depends-on): Likewise.
46043
46044 2006-12-19  Bruno Haible  <bruno@clisp.org>
46045
46046         * lib/strdup.h [C++]: Wrap definitions in extern "C".
46047         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
46048
46049 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46050
46051         * modules/savewd (Depends-on): Fix dependency on fcntl.
46052
46053 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
46054
46055         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
46056         conforms to C99, rather than relying on the user's environment
46057         setting of STDINT_H.
46058
46059 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
46060         and Eric Blake  <ebb9@byu.net>
46061
46062         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
46063         This is more consistent with the other defines here.
46064         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
46065         Port to z/OS.  Problem reported by Paul Gilmartin.
46066         Change local vars to use gl_ prefix rather than ac_.
46067         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
46068         with other defines.
46069         * modules/double-slash-root: New module.
46070         * modules/dirname (Files): Remove m4/double-slash-root.m4.
46071         (Depends-on): Add double-slash-root.
46072         * MODULES.html.sh (File system functions): Mention new module.
46073
46074 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
46075
46076         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
46077         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
46078         This is for the benefit of gzip, which doesn't do i18n.
46079
46080 2006-12-12  Jim Meyering  <jim@meyering.net>
46081
46082         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
46083         Reported by Andreas Schwab <schwab@suse.de>.
46084
46085 2006-12-12  Bruno Haible  <bruno@clisp.org>
46086
46087         Merge these changes.
46088         2006-09-05  Bruno Haible  <bruno@clisp.org>
46089         * lib/iconvme.c (iconv_string): No need to save and restore errno when
46090         iconv_alloc succeeded.
46091         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
46092         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
46093         test for " && dest " at the end - dest is always != NULL there. Call
46094         iconv with 4xNULL arguments initially, to reset the state. Call iconv
46095         with 2xNULL arguments, also to flush the state storage. Handle the
46096         IRIX iconv behaviour. Realloc the final result, to throw away unused
46097         memory.
46098
46099 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
46100
46101         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
46102         and fchmodat unconditionally, since glibc 2.4 has them.
46103         Problem reported by Arkadiusz Miskiewicz.
46104
46105 2006-12-10  Bruno Haible  <bruno@clisp.org>
46106
46107         * gnulib-tool (func_import): Show the include files only for those
46108         modules that are copied and specified.
46109         Reported by Karl Berry.
46110
46111 2006-12-08  Jim Meyering  <jim@meyering.net>
46112
46113         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
46114         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
46115
46116         * build-aux/announce-gen: Add two new options, both optional:
46117         --bootstrap-tools=TOOL_LIST
46118               a comma-separated list of tools, e.g.,
46119               autoconf,automake,bison,gnulib
46120         --gnulib-snapshot-date=DATE
46121               if gnulib is in the bootstrap tool list,
46122               then report this as the snapshot date.
46123               If not specified, use the current date/time.
46124               If you specify a date here, be sure it's UTC.
46125
46126 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46127
46128         * tests/test-argp-2.sh: Fix test to match actual output.
46129         (func_compare): Fix sed script to be portable.
46130
46131 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
46132
46133         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
46134         workaround for this case.  It is not autoconfigured now; offhand
46135         it's hard to see how to autoconfigure it.
46136
46137 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
46138
46139         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
46140         a directory that is about to be chowned.  Such a directory's
46141         initial file permissions should permit the owner only and this
46142         should not be changed until after the chown, since the group and
46143         other bits would be incorrect if they granted permission before
46144         the chown.
46145
46146         Fix porting problem for iswctype reported by Georg Schwarz in:
46147         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
46148         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
46149         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
46150         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
46151         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
46152
46153 2006-12-03  Jim Meyering  <jim@meyering.net>
46154
46155         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
46156         p->fts_statp may not yet be defined.
46157         (fts_read): Instead, set it in the caller, once p->fts_statp is
46158         sure to be defined, and corresponds to a top-level directory.
46159         This bug made du -x fail.  Here's the coreutils test case:
46160         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
46161         Reported by Mike Frysinger.
46162
46163 2006-12-01  Jim Meyering  <jim@meyering.net>
46164
46165         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
46166         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
46167         Reported by Simon Josefsson.
46168
46169 2006-11-30  Jim Meyering  <jim@meyering.net>
46170
46171         * m4/warning.m4: Use the all-permissive copyright notice
46172         recommended by RMS (rather than LGPL).
46173         * m4/vararrays.m4: Likewise.
46174         * m4/flexmember.m4: Likewise.
46175
46176 2006-11-29  Bruno Haible  <bruno@clisp.org>
46177
46178         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
46179         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
46180         using +=.
46181         Reported by Simon Josefsson <simon@josefsson.org>.
46182
46183 2006-11-28  James Youngman <jay@gnu.org>
46184
46185         * README: Advise users that they might find the bug-gnulib@gnu.org
46186         and autotools-announce@gnu.org mailing lists useful.
46187
46188 2006-11-28  Bruno Haible  <bruno@clisp.org>
46189
46190         * m4/ptrdiff_max.m4: Remove file.
46191
46192 2006-11-21  Bruno Haible  <bruno@clisp.org>
46193
46194         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
46195         _AC_COMPUTE_INT.
46196         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
46197         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
46198         _AC_COMPUTE_INT.
46199         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
46200         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
46201         _AC_COMPUTE_INT.
46202         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
46203
46204 2006-11-28  Jim Meyering  <jim@meyering.net>
46205
46206         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
46207         warning from "gcc -Wshadow" about shadowing the builtin.
46208
46209 2006-11-27  Bruno Haible  <bruno@clisp.org>
46210
46211         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
46212         _AC_COMPUTE_INT.
46213         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
46214
46215 2006-11-27  Bruno Haible  <bruno@clisp.org>
46216             Paul Eggert  <eggert@cs.ucla.edu>
46217
46218         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
46219
46220 2006-11-26  Bruno Haible  <bruno@clisp.org>
46221
46222         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
46223         noinst_LTLIBRARIES.
46224
46225 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
46226             Bruno Haible  <bruno@clisp.org>
46227
46228         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
46229         if compiling with "gcc -ansi".
46230
46231 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
46232
46233         Fix some incompatibilities with gcc -ansi -pedantic.
46234         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
46235         if compiling pedantically with GCC, unless it's C99 or later.
46236         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
46237         it mishandles gcc -ansi -pedantic as well.
46238         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
46239         if gcc -pedantic.
46240         * lib/regexec.c (check_node_accept_bytes): Don't use auto
46241         initializers for struct if -pedantic, unless it's C99 or later.
46242
46243 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
46244
46245         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
46246         Don't close an fd more than once. Identical atimes indicate
46247         success, not failure.
46248
46249 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
46250
46251         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
46252
46253 2006-11-23  Jim Meyering  <jim@meyering.net>
46254
46255         * build-aux/announce-gen: New file.  From coreutils.
46256
46257 2006-11-22  Jim Meyering  <jim@meyering.net>
46258
46259         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
46260         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
46261         (fts_read): Use a temporary to narrow the overused st_size member
46262         before using it in a switch statement.  Reported by Matthew Woehlke.
46263
46264         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
46265         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
46266
46267 2006-11-20  Bruno Haible  <bruno@clisp.org>
46268
46269         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
46270         changequote instead of pairs of brackets.
46271         Reported by Andreas Schwab <schwab@suse.de>.
46272
46273 2006-11-21  Jim Meyering  <jim@meyering.net>
46274
46275         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
46276         so as to remain compatible with older compilers.
46277         Patch from Michael Deutschmann.
46278
46279 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
46280
46281         * MODULES.html.sh (File system functions): Add openat.
46282
46283         * lib/openat.h (rpl_fstatat): New macro, if
46284         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
46285         (fstatat): Define to rpl_fstatat under the same conditions,
46286         unless COMPILING_FSTATAT.
46287         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
46288         seems to have the bug.
46289         * lib/fstatat.c: New file.
46290         * modules/openat (Files): Add it.
46291
46292 2006-11-20  Bruno Haible  <bruno@clisp.org>
46293
46294         * Makefile: New file.
46295
46296 2006-11-20  Jim Meyering  <jim@meyering.net>
46297
46298         The beginnings of syntax-related checks for gnulib.
46299         * lib/Makefile: New file.
46300         * lib/t-idcache: New script.  Ensure that the two halves of
46301         idcache.c stay in sync.
46302
46303         * lib/idcache.c: Adjust comments in user- and group- portions to
46304         be more accurate, and to be consistent with one another.
46305
46306 2006-11-20  Jim Meyering  <jim@meyering.net>
46307
46308         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
46309         continue using the flexible array member (thus, this module performs
46310         half as many malloc calls), with the addition that...
46311         (getgroup, getuser): Consistently record a non-match via an empty
46312         "name" string, and map an empty string match to a NULL return value.
46313         * modules/idcache (Depends-on): Re-add flexmember.
46314
46315         * lib/idcache.c (getuser): Remove all uses of the register keyword.
46316         (getuidbyname, getgroup, getgidbyname): Likewise.
46317
46318         Use cleaner syntax: NULL rather than 0.
46319         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
46320
46321 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
46322
46323         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
46324         It mishandled the case where the group was missing.
46325         Problem reported by Greg Schafer.
46326         * modules/idcache: Likewise.
46327
46328 2006-11-18  Jim Meyering  <jim@meyering.net>
46329
46330         * check-module (%exempt_header): Add exception for some
46331         conditionally-included headers.
46332
46333         * modules/i-ring (Depends-on): Add verify.
46334         (License): Change to LGPL.
46335
46336 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
46337
46338         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
46339         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
46340         and inttostr.h.  Use snprintf rather than uinttostr, so that
46341         LGPLed code doesn't depend on GPLed.
46342
46343 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
46344
46345         * modules/inline (License): Change from GPL to LGPL.
46346
46347 2006-11-17  Jim Meyering  <jim@meyering.net>
46348
46349         * modules/d-type (License): Switch to LGPL.
46350
46351 2006-11-15  Bruno Haible  <bruno@clisp.org>
46352
46353         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
46354
46355 2006-11-15  Eric Blake  <ebb9@byu.net>
46356
46357         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
46358         the module dependency.
46359
46360 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46361             Bruno Haible  <bruno@clisp.org>
46362
46363         * gnulib-tool (func_create_testdir): Add license consistency check.
46364
46365 2006-11-15  Eric Blake  <ebb9@byu.net>
46366
46367         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
46368         random "(cached)" in configure output.
46369
46370 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46371
46372         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
46373         test for conforming inttypes.h is both announced and cached.
46374
46375         * MODULES.html.sh (seen_modules, seen_files): New variables.
46376         (func_module): Rewrite to use a few less gnulib-tool and sed
46377         invocations.  Avoid a couple of quadratic algorithms for ...
46378         (missed_modules, missed_files): ... these, with ...
46379         (func_append, func_tmpdir): ... these new functions, from
46380         gnulib-tool.  Analogously, install traps for cleanup.
46381
46382         * tests/test-gc.c (main): Remove unused variables.
46383         * tests/test-read-file.c: Include stdlib.h, for 'free'.
46384
46385 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
46386
46387         * modules/inttostr (License): Change to LGPL.
46388
46389 2006-11-14  Eric Blake  <ebb9@byu.net>
46390
46391         * modules/tempname (License): Change to LGPL.
46392
46393 2006-11-14  Eric Blake  <ebb9@byu.net>
46394
46395         * doc/functions.texi (Function Portability): *printf functions on
46396         Cygwin now understand all POSIX size specifiers.
46397
46398 2006-11-14  Bruno Haible  <bruno@clisp.org>
46399
46400         * modules/c-ctype (License): Change to LGPL.
46401
46402 2006-11-12  Bruno Haible  <bruno@clisp.org>
46403
46404         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
46405         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
46406         for GNOME libraries, for which the include files are installed in
46407         subdirectories of $prefix/include.
46408
46409 2006-11-12  Bruno Haible  <bruno@clisp.org>
46410
46411         * m4/lib-link.m4: Require at least autoconf-2.54.
46412         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
46413         name to underscores for the --with option.
46414
46415 2006-11-13  Bruno Haible  <bruno@clisp.org>
46416
46417         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
46418         the tests directory.
46419         Reported by Ralf Wildenhues.
46420
46421 2006-11-13  Bruno Haible  <bruno@clisp.org>
46422
46423         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
46424         (func_emit_initmacro_end): Undo the override here.
46425         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
46426         Works around the famous automake error in coreutils.
46427
46428 2006-11-13  Eric Blake  <ebb9@byu.net>
46429
46430         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
46431         element, not its node.
46432
46433 2006-11-12  Bruno Haible  <bruno@clisp.org>
46434
46435         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
46436         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
46437
46438 2006-11-12  Bruno Haible  <bruno@clisp.org>
46439
46440         * gnulib-tool: New option --local-symlink.
46441         (func_usage): Document it.
46442         (lsymbolic): New variable.
46443         (func_import, func_create_testdir): If --symlink was not specified,
46444         test whether --local-symlink was specified and the file comes from
46445         the local_gnulib_dir.
46446
46447 2006-11-12  Bruno Haible  <bruno@clisp.org>
46448
46449         * gnulib-tool (func_ln): New function.
46450         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
46451
46452 2006-11-12  Bruno Haible  <bruno@clisp.org>
46453
46454         Finish support for source files in subdirectories.
46455         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
46456         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
46457         AUTOMAKE_OPTIONS.
46458         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
46459
46460 2006-11-12  Bruno Haible  <bruno@clisp.org>
46461
46462         * gnulib-tool (func_get_automake_snippet): Synthesize also an
46463         EXTRA_lib_SOURCES augmentation.
46464         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
46465
46466 2006-11-12  Jim Meyering  <jim@meyering.net>
46467
46468         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
46469         file descriptors.  This also averts a failure on systems with
46470         native openat support when a traversed directory lacks "x" access.
46471         * lib/fts_.h: Include "i-ring.h"
46472         (struct FTS) [fts_fd_ring]: New member.
46473         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
46474         (FCHDIR): Add parentheses.
46475         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
46476         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
46477         When descending, rather than simply closing the previous
46478         fts_cwd_fd value, push that file descriptor onto the ring.
46479         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
46480         (fts_open): Initialize the new fd_ring member.
46481         (fts_close): Clear the ring.
46482         (fts_safe_changedir): When possible, use our new fd_ring to skip
46483         the diropen and fstat and dev/ino comparison that would normally
46484         accompany a virtual `chdir ("..")'.
46485
46486         * modules/fts (Depends-on): Add i-ring.
46487         * modules/i-ring: New module.
46488         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
46489         * m4/i-ring.m4: New file.
46490
46491 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46492
46493         * gnulib-tool (func_create_testdir): Fix replacement of
46494         `build-aux' in configure.ac.  Run autotools in gltests
46495         subdirectory.
46496         (func_create_testdir, func_create_megatestdir, test): There is
46497         no need for '--force' in most autotool invocations in a new
46498         tree.  Actually fail the whole test if any of the tools, or the
46499         configure or make stages fail.
46500
46501         Sync from Automake.
46502         * build-aux/gnupload: Revert last change.  Add pointer to upload
46503         instructions of the GNU Maintenance Instructions.
46504         Suggestion by Karl Berry.
46505
46506 2006-11-10  Jim Meyering  <jim@meyering.net>
46507
46508         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
46509
46510 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
46511
46512         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
46513         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
46514         (bind_textdomain_codeset) [! ENABLE_NLS]:
46515         Evaluate all the arguments.  That way, callers get compatible behavior
46516         if the arguments have side effects.  Also, it avoids some GCC
46517         diagnostics in some cases; Joel E. Denny reported problems when Bison
46518         was configured with --enable-gcc-warnigs.
46519
46520 2006-11-10  Jim Meyering  <jim@meyering.net>
46521
46522         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
46523         relevant options in CFLAGS (like -O, -fno-inline) are taken into
46524         account.
46525
46526 2006-11-10  Jim Meyering  <jim@meyering.net>
46527
46528         * modules/inline: New file/module.
46529         * modules/xalloc (Files): Remove m4/inline.m4.
46530         (Depends-on): Add inline, instead.
46531         * modules/oset: Likewise.
46532         * modules/list: Likewise.
46533
46534 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
46535
46536         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
46537         Problem reported by Matthew Woehlke.
46538
46539 2006-11-09  Bruno Haible  <bruno@clisp.org>
46540
46541         * lib/tempname.c (gen_tempname): Remove variant that invokes
46542         __gen_tempname.
46543         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
46544         __gen_tempname.
46545
46546 2006-11-08  Bruno Haible  <bruno@clisp.org>
46547
46548         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
46549         to 'yes' instead of 'cross-compiling'.
46550
46551 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
46552
46553         * lib/quotearg.h (quotearg_free): New decl.
46554         * lib/quotearg.c (quotearg_free): New function.
46555         (slot0, nslots, slotvec0, slotvec):
46556         Now file-scope so that quotearg_free can get at them.
46557
46558 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46559
46560         Sync from Automake.
46561         * build-aux/gnupload: Add missing 'gnu' to example URL.
46562         Report by Karl Berry.
46563
46564 2006-11-08  Bruno Haible  <bruno@clisp.org>
46565
46566         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
46567         Suggested by Paul Eggert.
46568
46569 2006-11-08  Jim Meyering  <jim@meyering.net>
46570
46571         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
46572         It's already included if !_LIBC.
46573         (fts_safe_changedir): Add a comment.
46574
46575 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
46576
46577         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
46578         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
46579         Matthew Woehlke.
46580
46581         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
46582         definitions up, to avoid colliding with change below.
46583         (static_inline) [HAVE_INLINE]: New macro.
46584         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
46585         Provide extern decls when !HAVE_INLINE.  Do not define unless
46586         static_inline is defined, either by us or by xmalloc.c.  Use
46587         static_inline rather than static inline.
46588         (XCALLOC): Optimize sizeof(T) = 1 case.
46589         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
46590
46591 2006-11-07  Bruno Haible  <bruno@clisp.org>
46592
46593         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
46594         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
46595         AC_C_INLINE.
46596         * modules/xalloc (Files): Add m4/inline.m4.
46597
46598 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46599
46600         * README: Fix typo.
46601         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
46602         (Miscellanous Notes): ...from this.
46603
46604 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
46605
46606         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
46607         Mention that offsetof should be used instead of sizeof.
46608         From Bruno Haible.
46609
46610 2006-11-07  Bruno Haible  <bruno@clisp.org>
46611
46612         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
46613
46614 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
46615
46616         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
46617         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
46618         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
46619         (gl_tree_add_before, gl_tree_add_after):
46620         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
46621         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
46622         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
46623         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
46624         (gl_linked_add_after, gl_linked_add_at): Likewise.
46625         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
46626         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
46627         (gl_tree_add_before, gl_tree_add_after): Likewise.
46628         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
46629         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
46630         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
46631
46632 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46633
46634         * lib/gl_oset.h: Use C comment style, not C++ comment style.
46635
46636 2006-11-06  Bruno Haible  <bruno@clisp.org>
46637
46638         * m4/inline.m4: New file.
46639         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
46640         * modules/list (Files): Add m4/inline.m4.
46641         * modules/oset (Files): Likewise.
46642
46643 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
46644
46645         * lib/idcache.c: Include <stddef.h>, for offsetof.
46646         (struct userid.name): Change from char * to a flexible array member.
46647         All uses changed.
46648         * modules/idcache (Depends-on): Add flexmember.
46649
46650         * MODULES.html.sh (Core language properties): New module flexmember.
46651         * modules/flexmember, m4/flexmember.m4: New files.
46652
46653         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
46654         inline functions that are identical with the old xnmalloc_inline,
46655         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
46656         that we can avoid some unnecessary integer multiplications and
46657         divisions in the common case where the element size is known at
46658         compile time.
46659         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
46660         needed.
46661         (xnboundedmalloc): Remove.
46662         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
46663         arguments, for consistency with rest of this header.
46664         (xcharalloc): Rewrite using XNMALLOC.
46665         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
46666         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
46667         versions have been moved to lib/xalloc.h and renamed to be the
46668         non-*_inline versions.
46669         (xmalloc, xrealloc): Implement without reference to the xnmalloc
46670         and xnrealloc functions, since those functions are now inline and
46671         now call us.
46672         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
46673         renaming described above.
46674         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
46675         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
46676         captures the dependency in AC_C_INLINE.
46677
46678         New module canonicalize-lgpl, proposed by Charles Wilson in
46679         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
46680         with a few small changes afterwards.
46681         * MODULES.html.sh (File system functions): New module
46682         canonicalize-lgpl.
46683         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
46684         and canonicalize_file_name.
46685         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
46686         * modules/canonicalize-lgpl: New files.
46687
46688 2006-11-05  Bruno Haible  <bruno@clisp.org>
46689
46690         * gnulib-tool (func_import, func_create_testdir): Create directories
46691         also for files in subdirectories of lib/.
46692
46693 2006-11-05  Bruno Haible  <bruno@clisp.org>
46694
46695         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
46696         ANSI C compliant.
46697
46698 2006-11-03  Bruno Haible  <bruno@clisp.org>
46699
46700         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
46701         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
46702         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
46703         (xnboundedmalloc): New inline function.
46704         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
46705         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
46706         xmalloc.
46707         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
46708         xmalloc.
46709         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
46710         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
46711         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
46712         xmalloc.
46713         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
46714         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
46715         xmalloc.
46716         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
46717         gl_tree_add_after): Use XMALLOC instead of xmalloc.
46718         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
46719         xmalloc.
46720         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
46721         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
46722         gl_tree_add_after): Use XMALLOC instead of xmalloc.
46723         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
46724         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
46725         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
46726         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
46727
46728 2006-11-03  Bruno Haible  <bruno@clisp.org>
46729
46730         * lib/c-ctype.h [C++]: Define functions without name mangling.
46731         * lib/fwriteerror.h [C++]: Likewise.
46732         * lib/gcd.h [C++]: Likewise.
46733         * lib/linebreak.h [C++]: Likewise.
46734
46735 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
46736
46737         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
46738         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
46739         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
46740         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
46741         Check for functions and headers just once.
46742         Check for declaration of canonicalize_file_name.
46743         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
46744
46745 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
46746
46747         * gnulib-tool (func_import): Fix typo in actioncmd.
46748
46749 2006-11-02  Bruno Haible  <bruno@clisp.org>
46750
46751         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
46752         newline sequence in the Makefile.am snippet as a space, like "make"
46753         does.
46754         Reported by Roger Persson <perrog@gmail.com>.
46755
46756 2006-11-01  Bruno Haible  <bruno@clisp.org>
46757
46758         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
46759         already declared in <string.h>.
46760         * lib/strcase.h (strncasecmp): Don't declare it if yes.
46761
46762 2006-11-01  Bruno Haible  <bruno@clisp.org>
46763
46764         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
46765         * lib/strcase.h: Include <string.h>.
46766         (strcasecmp): Define to rpl_strcasecmp here.
46767
46768 2006-11-01  Bruno Haible  <bruno@clisp.org>
46769
46770         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
46771
46772 2006-11-01  Eric Blake  <ebb9@byu.net>
46773
46774         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
46775
46776         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
46777
46778 2006-10-29  Bruno Haible  <bruno@clisp.org>
46779
46780         Make it compile in C++ mode.
46781         * lib/full-write.c (full_rw): Add a cast.
46782
46783 2006-11-01  Bruno Haible  <bruno@clisp.org>
46784
46785         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
46786         be POSIX compliant.
46787         Reported by Roger Persson <perrog@gmail.com>.
46788
46789 2006-11-01  Eric Blake  <ebb9@byu.net>
46790
46791         * lib/getopt_.h: Fix comments.
46792
46793 2006-10-31  Eric Blake  <ebb9@byu.net>
46794
46795         * modules/tmpdir (Depends-on): Add sys_stat.
46796         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
46797         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
46798         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
46799         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
46800         tempname.
46801
46802 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
46803
46804         Avoid some C++ diagnostics reported by Bruno Haible.
46805         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
46806         xmalloc.
46807         (quotearg_alloc): Use xcharalloc rather than xmalloc.
46808         (struct slotvec): Move to top level.
46809         (quotearg_n_options): Rewrite to avoid xmalloc.
46810         * lib/xalloc.h (xcharalloc): New function.
46811         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
46812         [defined __cplusplus]: Add function template that provides result
46813         type propagation.  This part of the change is from Bruno Haible.
46814
46815 2006-10-29  Bruno Haible  <bruno@clisp.org>
46816
46817         Make it compile in C++ mode.
46818         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
46819         * lib/strnlen1.c (strnlen1): Cast memchr result.
46820         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
46821         * lib/clean-temp.c (string_equals, string_hash): Add casts.
46822         (create_temp_dir): Rename local variable 'template'.
46823         (compile_csharp_using_sscli): Add cast.
46824         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
46825         * lib/findprog.c (find_in_path): Likewise.
46826         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
46827         * lib/wait-process.c (register_slave_subprocess): Likewise.
46828
46829 2006-10-22  Bruno Haible  <bruno@clisp.org>
46830
46831         * modules/tsearch: New file.
46832         * lib/tsearch.h: New file.
46833         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
46834         * m4/tsearch.m4: New file.
46835         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
46836
46837 2006-10-29  Eric Blake  <ebb9@byu.net>
46838
46839         * lib/arcfour.c: Assume config.h.
46840         * lib/arctwo.c: Likewise.
46841         * lib/base64.c: Likewise.
46842         * lib/check-version.c: Likewise.
46843         * lib/crc.c: Likewise.
46844         * lib/des.c: Likewise.
46845         * lib/gc-gnulib.c: Likewise.
46846         * lib/gc-libgcrypt.c: Likewise.
46847         * lib/gc-pbkdf2-sha1.c: Likewise.
46848         * lib/getaddrinfo.c: Likewise.
46849         * lib/getdelim.c: Likewise.
46850         * lib/getline.c: Likewise.
46851         * lib/hmac-md5.c: Likewise.
46852         * lib/hmac-sha1.c: Likewise.
46853         * lib/iconvme.c: Likewise.
46854         * lib/md2.c: Likewise.
46855         * lib/md4.c: Likewise.
46856         * lib/memxor.c: Likewise.
46857         * lib/read-file.c: Likewise.
46858         * lib/readline.c: Likewise.
46859         * lib/rijndael-alg-fst.c: Likewise.
46860         * lib/rijndael-api-fst.c: Likewise.
46861         * lib/xgetdomainname.c: Likewise.
46862
46863 2006-10-28  Eric Blake  <ebb9@byu.net>
46864
46865         * lib/xstrndup.c: Assume config.h.
46866
46867 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
46868
46869         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
46870         stat-macros.h is now for our own macros, whereas stat_h is for
46871         macros in the <sys/stat.h> name space.
46872         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
46873         (STAT_MACROS_H): Remove.
46874         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
46875         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
46876         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
46877         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
46878         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
46879         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
46880         Move these macros to ...
46881         * lib/stat_.h: here.  Don't include stat-macros.h.
46882         * lib/canonicalize.c: Don't include stat-macros.h.
46883         * lib/chown.c: Likewise.
46884         * lib/euidaccess.c: Likewise.
46885         * lib/file-type.c: Likewise.
46886         * lib/filemode.c: Likewise.
46887         * lib/glob.c: Likewise.
46888         * lib/isapipe.c: Likewise.
46889         * lib/lchown.c: Likewise.
46890         * lib/lstat.c: Likewise.
46891         * lib/mkdir-p.c: Likewise.
46892         * lib/rmdir.c: Likewise.
46893         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
46894         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
46895         unless mkdir isn't declared, to speed up 'configure'.
46896         Always create sys/stat.h, since it's unlikely any real sys/stat.h
46897         would define all the S_* symbols.
46898         * modules/canonicalize (Depends-on):
46899         Depend on sys_stat, not stat-macros.
46900         * modules/chown: Likewise.
46901         * modules/euidaccess: Likewise.
46902         * modules/filemode: Likewise.
46903         * modules/file-type: Likewise.
46904         * modules/glob: Likewise.
46905         * modules/isapipe: Likewise.
46906         * modules/lchown: Likewise.
46907         * modules/lstat: Likewise.
46908         * modules/mkancesdirs: Likewise.
46909         * modules/rmdir: Likewise.
46910         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
46911         * modules/modechange: Likewise.
46912         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
46913         (configure.ac): Remove gl_STAT_MACROS.
46914         * modules/sys_stat (Depends-on): Remove stat-macros.
46915
46916 2006-10-27  Bruno Haible  <bruno@clisp.org>
46917
46918         * m4/signed.m4: Remove file.
46919         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
46920         invocation.
46921         * modules/vasnprintf (Files): Remove m4/signed.m4.
46922
46923 2006-10-27  Bruno Haible  <bruno@clisp.org>
46924
46925         Update to GNU gettext 0.16.
46926         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
46927         m4/inttypes-h.m4, m4/signed.m4.
46928         * m4/gettext.m4: Update to GNU gettext 0.16.
46929         * m4/intl.m4: New file, from GNU gettext.
46930         * m4/intldir.m4: New file, from GNU gettext.
46931         * config/srclist.txt: Update
46932
46933 2006-10-27  Eric Blake  <ebb9@byu.net>
46934
46935         * MODULES.html.sh: Document tempname.
46936         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
46937         dependencies.
46938         (Files): Move lib/tempname.c...
46939         * modules/tempname: ...to this new module.
46940         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
46941         (gl_PREREQ_TEMPNAME): Move...
46942         * m4/tempname.m4: ...to this new file.
46943         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
46944         * modules/sys_stat (Depends-on): Add stat-macros.
46945         * lib/stat_.h (includes): Pick up stat macros.
46946         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
46947         if stat macros are broken.
46948         * lib/tempname.c (includes): No need to include "stat-macros.h".
46949         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
46950         (direxists, __path_search) [!_LIBC]: Don't compile these in
46951         gnulib; the tmpdir module covers that.
46952         * lib/tempname.h: New file.
46953
46954 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
46955
46956         * COPYING: Explain how gnulib-tool converts licence headers.
46957         Almost all wording by Eric Blake.
46958
46959 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
46960
46961         * lib/mbchar.h (is_basic_table): Make read-only.
46962         * lib/mbchar.c (is_basic_table): Likewise.
46963         Reported by John Darrington.
46964
46965 2006-10-25  Bruno Haible  <bruno@clisp.org>
46966
46967         * lib/progname.h (set_program_name): Undefine before defining.
46968
46969 2006-10-25  Bruno Haible  <bruno@clisp.org>
46970
46971         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
46972         false for non-gcc C++ compilers.
46973         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
46974
46975 2006-10-24  Bruno Haible  <bruno@clisp.org>
46976
46977         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
46978         iconv implementations like Irix iconv.
46979
46980 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46981
46982         * modules/vararrays: New file.
46983         * m4/vararrays.m4: New file, taken from diffutils.
46984         * MODULES.html.sh: New module vararrays.
46985
46986 2006-10-24  Karl Berry  <karl@gnu.org>
46987
46988         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
46989         Don't call GNU Unix.
46990
46991 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46992
46993         * users.txt: Add Libtool.
46994
46995         Sync from Libtool:
46996
46997         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
46998
46999         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
47000         to gnulib's policy of including config.h unconditionally.
47001
47002 2006-10-24  Bruno Haible  <bruno@clisp.org>
47003
47004         * modules/wcwidth (Files): Add m4/wint_t.m4.
47005         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
47006         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
47007
47008 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
47009
47010         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
47011         to pacify GCC with some -W flags enabled.  Problem reported by
47012         Bruno Haible.
47013
47014 2006-10-24  Jim Meyering  <jim@meyering.net>
47015
47016         * MODULES.html.sh: Remove uinttostr.  It's not a module.
47017         Reported by Karl Berry.
47018
47019 2006-10-23  Bruno Haible  <bruno@clisp.org>
47020
47021         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
47022
47023 2006-10-24  Bruno Haible  <bruno@clisp.org>
47024
47025         * lib/gl_list.h: Use C comment style, not C++ comment style.
47026
47027 2006-10-23  Eric Blake  <ebb9@byu.net>
47028
47029         * lib/getaddrinfo.c (includes): Add missing include.
47030
47031 2006-10-23  Bruno Haible  <bruno@clisp.org>
47032             Paul Eggert  <eggert@cs.ucla.edu>
47033
47034         Ability to rename obstack_free.
47035         * lib/obstack.h (__obstack_free): New macro. Declare instead of
47036         obstack_free.
47037         (obstack_free): Invoke the __obstack_free macro.
47038         * lib/obstack.c (obstack_free): Use __obstack_free macro.
47039
47040 2006-10-23  Bruno Haible  <bruno@clisp.org>
47041             Paul Eggert  <eggert@cs.ucla.edu>
47042
47043         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
47044         __argc, __argv from the declaration. (They are defined as macros on
47045         mingw.)
47046
47047 2006-10-22  Bruno Haible  <bruno@clisp.org>
47048
47049         * doc/gnulib-intro.texi: New file.
47050         * doc/gnulib.texi: Include it.
47051
47052 2006-10-21  Bruno Haible  <bruno@clisp.org>
47053
47054         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
47055         "Introduction", "Miscellanous Notes", "Particular Modules".
47056
47057 2006-10-21  Bruno Haible  <bruno@clisp.org>
47058
47059         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47060         Change mostlyclean-local rule to avoid sh syntax error from bash
47061         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
47062
47063 2006-10-23  Jim Meyering  <jim@meyering.net>
47064
47065         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
47066         in place of snprintf.
47067
47068         * modules/inttostr (Files): Add lib/uinttostr.c.
47069         * lib/uinttostr.c (inttostr): New file/function.
47070         * lib/inttostr.h (uinttostr): Declare.
47071         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
47072         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
47073         Add uinttostr.
47074         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
47075
47076 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
47077
47078         * lib/canonicalize.c (ELOOP): Define if not already defined.
47079         Problem reported by Bruno Haible in
47080         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
47081
47082 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
47083
47084         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
47085         Problem reported by Perry Smith and Ville Laurikari.
47086
47087         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
47088         uses.
47089
47090 2006-10-19  Bruno Haible  <bruno@clisp.org>
47091
47092         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
47093         for mingw.
47094
47095 2006-10-19  Bruno Haible  <bruno@clisp.org>
47096
47097         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
47098         Needed for mingw.
47099
47100 2006-10-19  Bruno Haible  <bruno@clisp.org>
47101
47102         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
47103
47104 2006-10-19  Bruno Haible  <bruno@clisp.org>
47105
47106         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
47107         it.
47108
47109 2006-10-19  Bruno Haible  <bruno@clisp.org>
47110
47111         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
47112         invocation.
47113
47114 2006-10-19  Bruno Haible  <bruno@clisp.org>
47115
47116         * gnulib-tool (func_create_testdir): Don't include ftruncate and
47117         mountlist by default.
47118
47119 2006-10-16  Bruno Haible  <bruno@clisp.org>
47120
47121         * lib/c-strstr.c: Include c-strstr.h.
47122
47123 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
47124
47125         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
47126         in a slash.
47127
47128 2006-10-18  Bruno Haible  <bruno@clisp.org>
47129
47130         * lib/lock.h [C++]: Wrap definitions in extern "C".
47131
47132 2006-10-18  Bruno Haible  <bruno@clisp.org>
47133
47134         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
47135         gl_LIBOBJS list.
47136
47137 2006-10-18  Bruno Haible  <bruno@clisp.org>
47138
47139         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
47140
47141 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
47142
47143         * lib/xstrtol.h: Include gettext.h.
47144         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
47145         Problem reported by Eric Blake.
47146         * modules/xstrtol (Depends-on): Add gettext-h.
47147
47148 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
47149
47150         * lib/strftime.c (advance): New macro.
47151         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
47152         incomplete type, so you can't add 0 to it.  Problem and patch
47153         reported by Eelco Dolstra for dietlibc.
47154
47155 2006-10-18  Jim Meyering  <jim@meyering.net>
47156
47157         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
47158         type for a local, and rename it: s/up/user_proc/.
47159
47160 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
47161
47162         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
47163         READ_UTMP_USER_PROCESS.
47164         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
47165
47166 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
47167
47168         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
47169         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
47170
47171 2006-10-17  Eric Blake  <ebb9@byu.net>
47172
47173         * lib/sigprocmask.c (sigprocmask): Fix typo.
47174
47175         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
47176
47177         * modules/clean-temp (Makefile.am): Don't add to make output...
47178         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
47179         config.h.
47180
47181 2006-10-17  Bruno Haible  <bruno@clisp.org>
47182
47183         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
47184         differently if DEFAULT_TEXT_DOMAIN is set.
47185
47186 2006-10-16  Bruno Haible  <bruno@clisp.org>
47187
47188         * lib/clean-temp.c: Include fwriteerror.h.
47189
47190 2006-10-16  Bruno Haible  <bruno@clisp.org>
47191
47192         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
47193
47194 2006-10-16  Bruno Haible  <bruno@clisp.org>
47195
47196         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
47197         * lib/sigprocmask.h: Include <sys/types.h>.
47198         (sigset_t): Use the system's definition if present.
47199
47200 2006-10-17  Eric Blake  <ebb9@byu.net>
47201
47202         * lib/xvasprintf.c (includes): Assume config.h.
47203         * lib/xasprintf.c (includes): Likewise.
47204
47205 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
47206
47207         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
47208         at least as wide as intmax_t.
47209
47210 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
47211
47212         (Imported from Automake.)
47213         * build-aux/gnupload: Update to version 1.1 of directive file.
47214
47215 2006-10-16  Eric Blake  <ebb9@byu.net>
47216
47217         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
47218         match Automake 1.10a.
47219
47220 2006-10-14  Bruno Haible  <bruno@clisp.org>
47221
47222         * modules/sigprocmask: New file.
47223         * lib/sigprocmask.h: New file.
47224         * lib/sigprocmask.c: New file.
47225         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
47226         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
47227         request sigprocmask.o.
47228         (gl_PREREQ_SIGPROCMASK): New macro.
47229         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
47230         (Depends-on): Add sigprocmask.
47231         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
47232         gt_SIGNALBLOCKING. Test for 'raise' only once.
47233         * lib/fatal-signal.c: Include sigprocmask.h.
47234         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
47235         unblock_fatal_signals): Define always.
47236         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47237         sigprocmask.
47238
47239 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
47240
47241         Sync from Automake.
47242         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
47243         which incorrectly sets the mode of an existing destination
47244         directory.  In some cases the unpatched install-sh could do the
47245         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
47246         system.  We hope this is rare in practice, but it's clearly worth
47247         fixing.  Problem reported by Alex Unleashed in
47248         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
47249         Also, don't bother to check for -m bugs unless we're using -m;
47250         suggested by Stepan Kasal.
47251
47252 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47253
47254         Sync from Automake.
47255         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
47256         `-c' flag, so they appear at the same position as in %FASTDEP%
47257         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
47258         which ignores unknown options only after the first non-option.
47259         Bug report against M4 by Nelson H. F. Beebe.
47260
47261 2006-10-13  Jim Meyering  <jim@meyering.net>
47262
47263         Fix a bug in yesterday's change.
47264         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
47265         p->fts_statp->st_dev would be used uninitialized.
47266         Ensures that we always call fts_stat on the very first entry.
47267         Miklos Szeredi reported that find -xdev stopped working.
47268
47269 2006-10-12  Bruno Haible  <bruno@clisp.org>
47270
47271         * gnulib-tool (func_get_automake_snippet): Append an automatically
47272         computed EXTRA_DIST augmentation.
47273         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
47274         * modules/alloca-opt (Makefile.am): Likewise.
47275         * modules/allocsa (Makefile.am): Likewise.
47276         * modules/arcfour (Makefile.am): Likewise.
47277         * modules/arctwo (Makefile.am): Likewise.
47278         * modules/argmatch (Makefile.am): Likewise.
47279         * modules/argz (Makefile.am): Likewise.
47280         * modules/atexit (Makefile.am): Likewise.
47281         * modules/backupfile (Makefile.am): Likewise.
47282         * modules/byteswap (Makefile.am): Likewise.
47283         * modules/c-strtod (Makefile.am): Likewise.
47284         * modules/c-strtold (Makefile.am): Likewise.
47285         * modules/calloc (Makefile.am): Likewise.
47286         * modules/canon-host (Makefile.am): Likewise.
47287         * modules/canonicalize (Makefile.am): Likewise.
47288         * modules/chdir-long (Makefile.am): Likewise.
47289         * modules/chdir-safer (Makefile.am): Likewise.
47290         * modules/check-version (Makefile.am): Likewise.
47291         * modules/chown (Makefile.am): Likewise.
47292         * modules/cloexec (Makefile.am): Likewise.
47293         * modules/close-stream (Makefile.am): Likewise.
47294         * modules/closeout (Makefile.am): Likewise.
47295         * modules/crc (Makefile.am): Likewise.
47296         * modules/csharpexec (Makefile.am): Likewise.
47297         * modules/cycle-check (Makefile.am): Likewise.
47298         * modules/des (Makefile.am): Likewise.
47299         * modules/dev-ino (Makefile.am): Likewise.
47300         * modules/dirfd (Makefile.am): Likewise.
47301         * modules/dirname (Makefile.am): Likewise.
47302         * modules/dup2 (Makefile.am): Likewise.
47303         * modules/eealloc (Makefile.am): Likewise.
47304         * modules/error (Makefile.am): Likewise.
47305         * modules/euidaccess (Makefile.am): Likewise.
47306         * modules/exclude (Makefile.am): Likewise.
47307         * modules/exitfail (Makefile.am): Likewise.
47308         * modules/fcntl-safer (Makefile.am): Likewise.
47309         * modules/fcntl (Makefile.am): Likewise.
47310         * modules/file-type (Makefile.am): Likewise.
47311         * modules/fileblocks (Makefile.am): Likewise.
47312         * modules/filemode (Makefile.am): Likewise.
47313         * modules/filenamecat (Makefile.am): Likewise.
47314         * modules/fnmatch (Makefile.am): Likewise.
47315         * modules/fopen-safer (Makefile.am): Likewise.
47316         * modules/fpending (Makefile.am): Likewise.
47317         * modules/fprintftime (Makefile.am): Likewise.
47318         * modules/free (Makefile.am): Likewise.
47319         * modules/fsusage (Makefile.am): Likewise.
47320         * modules/ftruncate (Makefile.am): Likewise.
47321         * modules/fts (Makefile.am): Likewise.
47322         * modules/gc-arcfour (Makefile.am): Likewise.
47323         * modules/gc-des (Makefile.am): Likewise.
47324         * modules/gc-hmac-md5 (Makefile.am): Likewise.
47325         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
47326         * modules/gc-md4 (Makefile.am): Likewise.
47327         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
47328         * modules/gc-sha1 (Makefile.am): Likewise.
47329         * modules/gc (Makefile.am): Likewise.
47330         * modules/getaddrinfo (Makefile.am): Likewise.
47331         * modules/getcwd (Makefile.am): Likewise.
47332         * modules/getdelim (Makefile.am): Likewise.
47333         * modules/getdomainname (Makefile.am): Likewise.
47334         * modules/getgroups (Makefile.am): Likewise.
47335         * modules/gethostname (Makefile.am): Likewise.
47336         * modules/gethrxtime (Makefile.am): Likewise.
47337         * modules/getline (Makefile.am): Likewise.
47338         * modules/getloadavg (Makefile.am): Likewise.
47339         * modules/getlogin_r (Makefile.am): Likewise.
47340         * modules/getndelim2 (Makefile.am): Likewise.
47341         * modules/getopt (Makefile.am): Likewise.
47342         * modules/getpagesize (Makefile.am): Likewise.
47343         * modules/getpass-gnu (Makefile.am): Likewise.
47344         * modules/getpass (Makefile.am): Likewise.
47345         * modules/getsubopt (Makefile.am): Likewise.
47346         * modules/gettime (Makefile.am): Likewise.
47347         * modules/gettimeofday (Makefile.am): Likewise.
47348         * modules/getugroups (Makefile.am): Likewise.
47349         * modules/getusershell (Makefile.am): Likewise.
47350         * modules/glob (Makefile.am): Likewise.
47351         * modules/group-member (Makefile.am): Likewise.
47352         * modules/hard-locale (Makefile.am): Likewise.
47353         * modules/hash (Makefile.am): Likewise.
47354         * modules/hmac-md5 (Makefile.am): Likewise.
47355         * modules/hmac-sha1 (Makefile.am): Likewise.
47356         * modules/human (Makefile.am): Likewise.
47357         * modules/idcache (Makefile.am): Likewise.
47358         * modules/imaxabs (Makefile.am): Likewise.
47359         * modules/imaxdiv (Makefile.am): Likewise.
47360         * modules/inet_ntop (Makefile.am): Likewise.
47361         * modules/inet_pton (Makefile.am): Likewise.
47362         * modules/intprops (Makefile.am): Likewise.
47363         * modules/inttostr (Makefile.am): Likewise.
47364         * modules/inttypes (Makefile.am): Likewise.
47365         * modules/isapipe (Makefile.am): Likewise.
47366         * modules/javaversion (Makefile.am): Likewise.
47367         * modules/lchmod (Makefile.am): Likewise.
47368         * modules/lchown (Makefile.am): Likewise.
47369         * modules/localcharset (Makefile.am): Likewise.
47370         * modules/long-options (Makefile.am): Likewise.
47371         * modules/lstat (Makefile.am): Likewise.
47372         * modules/malloc (Makefile.am): Likewise.
47373         * modules/mathl (Makefile.am): Likewise.
47374         * modules/mbchar (Makefile.am): Likewise.
47375         * modules/md2 (Makefile.am): Likewise.
47376         * modules/md4 (Makefile.am): Likewise.
47377         * modules/md5 (Makefile.am): Likewise.
47378         * modules/memcasecmp (Makefile.am): Likewise.
47379         * modules/memchr (Makefile.am): Likewise.
47380         * modules/memcmp (Makefile.am): Likewise.
47381         * modules/memcoll (Makefile.am): Likewise.
47382         * modules/memcpy (Makefile.am): Likewise.
47383         * modules/memmem (Makefile.am): Likewise.
47384         * modules/memmove (Makefile.am): Likewise.
47385         * modules/mempcpy (Makefile.am): Likewise.
47386         * modules/memrchr (Makefile.am): Likewise.
47387         * modules/memset (Makefile.am): Likewise.
47388         * modules/memxor (Makefile.am): Likewise.
47389         * modules/mkancesdirs (Makefile.am): Likewise.
47390         * modules/mkdir-p (Makefile.am): Likewise.
47391         * modules/mkdir (Makefile.am): Likewise.
47392         * modules/mkdtemp (Makefile.am): Likewise.
47393         * modules/mkstemp (Makefile.am): Likewise.
47394         * modules/mktime (Makefile.am): Likewise.
47395         * modules/modechange (Makefile.am): Likewise.
47396         * modules/mountlist (Makefile.am): Likewise.
47397         * modules/nanosleep (Makefile.am): Likewise.
47398         * modules/obstack (Makefile.am): Likewise.
47399         * modules/openat (Makefile.am): Likewise.
47400         * modules/pagealign_alloc (Makefile.am): Likewise.
47401         * modules/pathmax (Makefile.am): Likewise.
47402         * modules/physmem (Makefile.am): Likewise.
47403         * modules/poll (Makefile.am): Likewise.
47404         * modules/posixtm (Makefile.am): Likewise.
47405         * modules/posixver (Makefile.am): Likewise.
47406         * modules/putenv (Makefile.am): Likewise.
47407         * modules/quote (Makefile.am): Likewise.
47408         * modules/quotearg (Makefile.am): Likewise.
47409         * modules/raise (Makefile.am): Likewise.
47410         * modules/read-file (Makefile.am): Likewise.
47411         * modules/readline (Makefile.am): Likewise.
47412         * modules/readlink (Makefile.am): Likewise.
47413         * modules/readtokens (Makefile.am): Likewise.
47414         * modules/readutmp (Makefile.am): Likewise.
47415         * modules/realloc (Makefile.am): Likewise.
47416         * modules/regex (Makefile.am): Likewise.
47417         * modules/rename-dest-slash (Makefile.am): Likewise.
47418         * modules/rename (Makefile.am): Likewise.
47419         * modules/rijndael (Makefile.am): Likewise.
47420         * modules/rmdir (Makefile.am): Likewise.
47421         * modules/rpmatch (Makefile.am): Likewise.
47422         * modules/safe-read (Makefile.am): Likewise.
47423         * modules/safe-write (Makefile.am): Likewise.
47424         * modules/same-inode (Makefile.am): Likewise.
47425         * modules/same (Makefile.am): Likewise.
47426         * modules/save-cwd (Makefile.am): Likewise.
47427         * modules/savedir (Makefile.am): Likewise.
47428         * modules/setenv (Makefile.am): Likewise.
47429         * modules/settime (Makefile.am): Likewise.
47430         * modules/sha1 (Makefile.am): Likewise.
47431         * modules/sig2str (Makefile.am): Likewise.
47432         * modules/snprintf (Makefile.am): Likewise.
47433         * modules/stat-macros (Makefile.am): Likewise.
47434         * modules/stat-time (Makefile.am): Likewise.
47435         * modules/stdbool (Makefile.am): Likewise.
47436         * modules/stdint (Makefile.am): Likewise.
47437         * modules/stdlib-safer (Makefile.am): Likewise.
47438         * modules/stpcpy (Makefile.am): Likewise.
47439         * modules/stpncpy (Makefile.am): Likewise.
47440         * modules/strcase (Makefile.am): Likewise.
47441         * modules/strcasestr (Makefile.am): Likewise.
47442         * modules/strchrnul (Makefile.am): Likewise.
47443         * modules/strcspn (Makefile.am): Likewise.
47444         * modules/strdup (Makefile.am): Likewise.
47445         * modules/strerror (Makefile.am): Likewise.
47446         * modules/strftime (Makefile.am): Likewise.
47447         * modules/strndup (Makefile.am): Likewise.
47448         * modules/strnlen (Makefile.am): Likewise.
47449         * modules/strpbrk (Makefile.am): Likewise.
47450         * modules/strsep (Makefile.am): Likewise.
47451         * modules/strstr (Makefile.am): Likewise.
47452         * modules/strtod (Makefile.am): Likewise.
47453         * modules/strtoimax (Makefile.am): Likewise.
47454         * modules/strtok_r (Makefile.am): Likewise.
47455         * modules/strtol (Makefile.am): Likewise.
47456         * modules/strtoll (Makefile.am): Likewise.
47457         * modules/strtoul (Makefile.am): Likewise.
47458         * modules/strtoull (Makefile.am): Likewise.
47459         * modules/strtoumax (Makefile.am): Likewise.
47460         * modules/strverscmp (Makefile.am): Likewise.
47461         * modules/sys_socket (Makefile.am): Likewise.
47462         * modules/sys_stat (Makefile.am): Likewise.
47463         * modules/sysexits (Makefile.am): Likewise.
47464         * modules/time_r (Makefile.am): Likewise.
47465         * modules/timegm (Makefile.am): Likewise.
47466         * modules/timespec (Makefile.am): Likewise.
47467         * modules/tmpfile-safer (Makefile.am): Likewise.
47468         * modules/trim (Makefile.am): Likewise.
47469         * modules/unistd-safer (Makefile.am): Likewise.
47470         * modules/unlinkdir (Makefile.am): Likewise.
47471         * modules/unlocked-io (Makefile.am): Likewise.
47472         * modules/userspec (Makefile.am): Likewise.
47473         * modules/utime (Makefile.am): Likewise.
47474         * modules/utimecmp (Makefile.am): Likewise.
47475         * modules/utimens (Makefile.am): Likewise.
47476         * modules/vasnprintf (Makefile.am): Likewise.
47477         * modules/vasprintf (Makefile.am): Likewise.
47478         * modules/vsnprintf (Makefile.am): Likewise.
47479         * modules/xalloc (Makefile.am): Likewise.
47480         * modules/xgetcwd (Makefile.am): Likewise.
47481         * modules/xnanosleep (Makefile.am): Likewise.
47482         * modules/xreadlink (Makefile.am): Likewise.
47483         * modules/xstrtod (Makefile.am): Likewise.
47484         * modules/xstrtol (Makefile.am): Likewise.
47485         * modules/xstrtold (Makefile.am): Likewise.
47486         * modules/yesno (Makefile.am): Likewise.
47487         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
47488
47489 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
47490
47491         * modules/error (Makefile.am): Distribute files through
47492         EXTRA_DIST, not lib_SOURCES.
47493
47494 2006-10-12  Eric Blake  <ebb9@byu.net>
47495
47496         * modules/error (Makefile.am): Distribute files in /lib.
47497         * modules/obstack (Makefile.am): Likewise.
47498
47499 2006-10-12  Bruno Haible  <bruno@clisp.org>
47500
47501         * modules/acl (Makefile.am): Distribute all files in lib/ through
47502         EXTRA_DIST.
47503         * modules/arcfour (Makefile.am): Likewise.
47504         * modules/arctwo (Makefile.am): Likewise.
47505         * modules/argmatch (Makefile.am): Likewise.
47506         * modules/argz (Makefile.am): Likewise.
47507         * modules/atexit (Makefile.am): Likewise.
47508         * modules/backupfile (Makefile.am): Likewise.
47509         * modules/c-strtod (Makefile.am): Likewise.
47510         * modules/c-strtold (Makefile.am): Likewise.
47511         * modules/calloc (Makefile.am): Likewise.
47512         * modules/canon-host (Makefile.am): Likewise.
47513         * modules/canonicalize (Makefile.am): Likewise.
47514         * modules/chdir-long (Makefile.am): Likewise.
47515         * modules/chdir-safer (Makefile.am): Likewise.
47516         * modules/check-version (Makefile.am): Likewise.
47517         * modules/chown (Makefile.am): Likewise.
47518         * modules/cloexec (Makefile.am): Likewise.
47519         * modules/close-stream (Makefile.am): Likewise.
47520         * modules/closeout (Makefile.am): Likewise.
47521         * modules/crc (Makefile.am): Likewise.
47522         * modules/cycle-check (Makefile.am): Likewise.
47523         * modules/des (Makefile.am): Likewise.
47524         * modules/dirfd (Makefile.am): Likewise.
47525         * modules/dirname (Makefile.am): Likewise.
47526         * modules/dup2 (Makefile.am): Likewise.
47527         * modules/euidaccess (Makefile.am): Likewise.
47528         * modules/exclude (Makefile.am): Likewise.
47529         * modules/exitfail (Makefile.am): Likewise.
47530         * modules/fcntl-safer (Makefile.am): Likewise.
47531         * modules/file-type (Makefile.am): Likewise.
47532         * modules/fileblocks (Makefile.am): Likewise.
47533         * modules/filemode (Makefile.am): Likewise.
47534         * modules/filenamecat (Makefile.am): Likewise.
47535         * modules/fnmatch (Makefile.am): Likewise.
47536         * modules/fopen-safer (Makefile.am): Likewise.
47537         * modules/fpending (Makefile.am): Likewise.
47538         * modules/fprintftime (Makefile.am): Likewise.
47539         * modules/free (Makefile.am): Likewise.
47540         * modules/fsusage (Makefile.am): Likewise.
47541         * modules/ftruncate (Makefile.am): Likewise.
47542         * modules/fts (Makefile.am): Likewise.
47543         * modules/gc (Makefile.am): Likewise.
47544         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
47545         * modules/getaddrinfo (Makefile.am): Likewise.
47546         * modules/getcwd (Makefile.am): Likewise.
47547         * modules/getdelim (Makefile.am): Likewise.
47548         * modules/getdomainname (Makefile.am): Likewise.
47549         * modules/getgroups (Makefile.am): Likewise.
47550         * modules/gethostname (Makefile.am): Likewise.
47551         * modules/gethrxtime (Makefile.am): Likewise.
47552         * modules/getline (Makefile.am): Likewise.
47553         * modules/getloadavg (Makefile.am): Likewise.
47554         * modules/getlogin_r (Makefile.am): Likewise.
47555         * modules/getopt (Makefile.am): Likewise.
47556         * modules/getpass (Makefile.am): Likewise.
47557         * modules/getpass-gnu (Makefile.am): Likewise.
47558         * modules/getsubopt (Makefile.am): Likewise.
47559         * modules/gettime (Makefile.am): Likewise.
47560         * modules/gettimeofday (Makefile.am): Likewise.
47561         * modules/getugroups (Makefile.am): Likewise.
47562         * modules/getusershell (Makefile.am): Likewise.
47563         * modules/glob (Makefile.am): Likewise.
47564         * modules/group-member (Makefile.am): Likewise.
47565         * modules/hard-locale (Makefile.am): Likewise.
47566         * modules/hash (Makefile.am): Likewise.
47567         * modules/hmac-md5 (Makefile.am): Likewise.
47568         * modules/hmac-sha1 (Makefile.am): Likewise.
47569         * modules/human (Makefile.am): Likewise.
47570         * modules/idcache (Makefile.am): Likewise.
47571         * modules/imaxabs (Makefile.am): Likewise.
47572         * modules/imaxdiv (Makefile.am): Likewise.
47573         * modules/inet_ntop (Makefile.am): Likewise.
47574         * modules/inet_pton (Makefile.am): Likewise.
47575         * modules/inttostr (Makefile.am): Likewise.
47576         * modules/isapipe (Makefile.am): Likewise.
47577         * modules/lchown (Makefile.am): Likewise.
47578         * modules/long-options (Makefile.am): Likewise.
47579         * modules/lstat (Makefile.am): Likewise.
47580         * modules/malloc (Makefile.am): Likewise.
47581         * modules/mathl (Makefile.am): Likewise.
47582         * modules/mbchar (Makefile.am): Likewise.
47583         * modules/md2 (Makefile.am): Likewise.
47584         * modules/md4 (Makefile.am): Likewise.
47585         * modules/md5 (Makefile.am): Likewise.
47586         * modules/memcasecmp (Makefile.am): Likewise.
47587         * modules/memchr (Makefile.am): Likewise.
47588         * modules/memcmp (Makefile.am): Likewise.
47589         * modules/memcoll (Makefile.am): Likewise.
47590         * modules/memcpy (Makefile.am): Likewise.
47591         * modules/memmem (Makefile.am): Likewise.
47592         * modules/memmove (Makefile.am): Likewise.
47593         * modules/mempcpy (Makefile.am): Likewise.
47594         * modules/memrchr (Makefile.am): Likewise.
47595         * modules/memset (Makefile.am): Likewise.
47596         * modules/memxor (Makefile.am): Likewise.
47597         * modules/mkancesdirs (Makefile.am): Likewise.
47598         * modules/mkdir (Makefile.am): Likewise.
47599         * modules/mkdir-p (Makefile.am): Likewise.
47600         * modules/mkdtemp (Makefile.am): Likewise.
47601         * modules/mkstemp (Makefile.am): Likewise.
47602         * modules/mktime (Makefile.am): Likewise.
47603         * modules/modechange (Makefile.am): Likewise.
47604         * modules/mountlist (Makefile.am): Likewise.
47605         * modules/nanosleep (Makefile.am): Likewise.
47606         * modules/openat (Makefile.am): Likewise.
47607         * modules/pagealign_alloc (Makefile.am): Likewise.
47608         * modules/physmem (Makefile.am): Likewise.
47609         * modules/poll (Makefile.am): Likewise.
47610         * modules/posixtm (Makefile.am): Likewise.
47611         * modules/posixver (Makefile.am): Likewise.
47612         * modules/putenv (Makefile.am): Likewise.
47613         * modules/quote (Makefile.am): Likewise.
47614         * modules/quotearg (Makefile.am): Likewise.
47615         * modules/raise (Makefile.am): Likewise.
47616         * modules/read-file (Makefile.am): Likewise.
47617         * modules/readline (Makefile.am): Likewise.
47618         * modules/readlink (Makefile.am): Likewise.
47619         * modules/readtokens (Makefile.am): Likewise.
47620         * modules/readutmp (Makefile.am): Likewise.
47621         * modules/realloc (Makefile.am): Likewise.
47622         * modules/regex (Makefile.am): Likewise.
47623         * modules/rename (Makefile.am): Likewise.
47624         * modules/rename-dest-slash (Makefile.am): Likewise.
47625         * modules/rijndael (Makefile.am): Likewise.
47626         * modules/rmdir (Makefile.am): Likewise.
47627         * modules/rpmatch (Makefile.am): Likewise.
47628         * modules/safe-read (Makefile.am): Likewise.
47629         * modules/safe-write (Makefile.am): Likewise.
47630         * modules/same (Makefile.am): Likewise.
47631         * modules/save-cwd (Makefile.am): Likewise.
47632         * modules/savedir (Makefile.am): Likewise.
47633         * modules/setenv (Makefile.am): Likewise.
47634         * modules/settime (Makefile.am): Likewise.
47635         * modules/sha1 (Makefile.am): Likewise.
47636         * modules/sig2str (Makefile.am): Likewise.
47637         * modules/snprintf (Makefile.am): Likewise.
47638         * modules/stdlib-safer (Makefile.am): Likewise.
47639         * modules/stpcpy (Makefile.am): Likewise.
47640         * modules/stpncpy (Makefile.am): Likewise.
47641         * modules/strcase (Makefile.am): Likewise.
47642         * modules/strcasestr (Makefile.am): Likewise.
47643         * modules/strchrnul (Makefile.am): Likewise.
47644         * modules/strcspn (Makefile.am): Likewise.
47645         * modules/strdup (Makefile.am): Likewise.
47646         * modules/strerror (Makefile.am): Likewise.
47647         * modules/strftime (Makefile.am): Likewise.
47648         * modules/strndup (Makefile.am): Likewise.
47649         * modules/strnlen (Makefile.am): Likewise.
47650         * modules/strpbrk (Makefile.am): Likewise.
47651         * modules/strsep (Makefile.am): Likewise.
47652         * modules/strstr (Makefile.am): Likewise.
47653         * modules/strtod (Makefile.am): Likewise.
47654         * modules/strtoimax (Makefile.am): Likewise.
47655         * modules/strtok_r (Makefile.am): Likewise.
47656         * modules/strtol (Makefile.am): Likewise.
47657         * modules/strtoll (Makefile.am): Likewise.
47658         * modules/strtoul (Makefile.am): Likewise.
47659         * modules/strtoull (Makefile.am): Likewise.
47660         * modules/strtoumax (Makefile.am): Likewise.
47661         * modules/strverscmp (Makefile.am): Likewise.
47662         * modules/time_r (Makefile.am): Likewise.
47663         * modules/timegm (Makefile.am): Likewise.
47664         * modules/tmpfile-safer (Makefile.am): Likewise.
47665         * modules/unistd-safer (Makefile.am): Likewise.
47666         * modules/unlinkdir (Makefile.am): Likewise.
47667         * modules/userspec (Makefile.am): Likewise.
47668         * modules/utime (Makefile.am): Likewise.
47669         * modules/utimecmp (Makefile.am): Likewise.
47670         * modules/utimens (Makefile.am): Likewise.
47671         * modules/vasnprintf (Makefile.am): Likewise.
47672         * modules/vasprintf (Makefile.am): Likewise.
47673         * modules/vsnprintf (Makefile.am): Likewise.
47674         * modules/xalloc (Makefile.am): Likewise.
47675         * modules/xgetcwd (Makefile.am): Likewise.
47676         * modules/xnanosleep (Makefile.am): Likewise.
47677         * modules/xreadlink (Makefile.am): Likewise.
47678         * modules/xstrtod (Makefile.am): Likewise.
47679         * modules/xstrtol (Makefile.am): Likewise.
47680         * modules/xstrtold (Makefile.am): Likewise.
47681         * modules/yesno (Makefile.am): Likewise.
47682
47683 2006-10-12  Jim Meyering  <jim@meyering.net>
47684
47685         * m4/getloadavg.m4: Revert the change below.
47686
47687         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
47688         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
47689         fail with a symlink, which is what coreutils' ./bootstrap now
47690         creates by default.
47691
47692 2006-10-12  Bruno Haible  <bruno@clisp.org>
47693
47694         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
47695         mingw.
47696         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
47697         MSVC and mingw explicitly.
47698
47699 2006-10-11  Simon Josefsson  <jas@extundo.com>
47700             Bruno Haible  <bruno@clisp.org>
47701
47702         Add support for multiple gnulib-tool invocations in the scope of a
47703         single configure.ac file.
47704         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
47705         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
47706         with the same contents as the _LIBADD variable.
47707         (func_emit_initmacro_start, func_emit_initmacro_end,
47708         func_emit_initmacro_done): New functions.
47709         (func_import, func_create_testdir): Invoke them. Allow the identifiers
47710         gl_LIBOBJS and gl_LTLIBOBJS.
47711
47712 2006-10-11  Bruno Haible  <bruno@clisp.org>
47713
47714         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
47715         (func_create_testdir): Don't create po/Makefile.am, don't invoke
47716         autoreconf. Instead, invoke autopoint explicitly but move back the
47717         *.m4 files from gnulib.
47718
47719 2006-10-11  Bruno Haible  <bruno@clisp.org>
47720
47721         * gnulib-tool (func_usage): Make module names after --create-testdir
47722         optional.
47723         (func_create_testdir): If no module was specified, use nearly all
47724         modules.
47725
47726 2006-10-12  Jim Meyering  <jim@meyering.net>
47727
47728         Big performance improvement for fts-based tools that use FTS_NOSTAT.
47729         Avoid spurious inode-mismatch problems on non-POSIX file systems.
47730         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
47731         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
47732         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
47733         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
47734         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
47735         (fts_set_stat_required): New function.
47736         (fts_open): Defer the calls to fts_stat, if possible or requested.
47737         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
47738         into fts_stat itself.
47739         (fts_read): Perform any required (deferred) fts_stat call.
47740         (fts_build): Likewise, for the directory we're about to open and read.
47741         In the readdir loop, carefully decide whether each entry will require
47742         an eventual call to fts_stat, using dirent.d_type info if available.
47743         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
47744         a command line argument into this function.  Update all callers.
47745         Map a return value of FTS_DOT to FTS_D for a command line argument.
47746         * modules/fts (Depends-on): Add d-type.  Alphabetize.
47747         Thanks to Miklos Szeredi for his tenacity and for the initial
47748         bug report about "find" failing on a FUSE-based file system.
47749
47750         * lib/fts.c (fts_open): Use consistent indentation.
47751
47752 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
47753
47754         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
47755         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
47756         reported by Jim Meyering.  All uses of cache variables renamed
47757         to match Autoconf's.
47758         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
47759         the other one.
47760
47761         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
47762         Fix misspelling in diagnostic.
47763
47764 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
47765
47766         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
47767         defined.  Problem reported by Matthew Woehlke.
47768
47769         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
47770         Add support for Tandem NonStop R series.
47771         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
47772         Use new macro.
47773
47774         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
47775         (has_trailing_slash): Omit size arg; all callers changed.
47776         Omit 'inline', since it doesn't help performance and we'd
47777         need to configure it.
47778         Don't count //, ///, etc. as having a trailing slash.
47779         As a side effect, this removes a C99ism reported by Matthew Woehlke.
47780         (rpl_rename_dest_slash): On failure, use rename's errno rather
47781         than (in some cases) an incorrect or junk errno.
47782         Simplify code by removing need to compute length; this does
47783         cause it to make two passes instead of one over the file name,
47784         but it's worth it.
47785
47786         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
47787         change, since Autoconf's version may no longer be appropriate now
47788         that we are using CVS Autoconf's version.  Add support for Tandem.
47789
47790 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
47791             Bruno Haible  <bruno@clisp.org>
47792
47793         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
47794         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
47795         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
47796         gl_AC_TYPE_LONG_LONG.
47797
47798         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
47799         instead of HAVE_LONG_LONG.
47800         * lib/printf-args.c (printf_fetchargs): Likewise.
47801         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
47802         * lib/vasnprintf.c (VASNPRINTF): Likewise.
47803         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
47804         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
47805         gl_AC_TYPE_LONG_LONG.
47806
47807 2006-10-11  Bruno Haible  <bruno@clisp.org>
47808
47809         * m4/longlong.m4: Add comments.
47810         * m4/ulonglong.m4: Likewise.
47811
47812 2006-10-10  Bruno Haible  <bruno@clisp.org>
47813
47814         Make it possible to #define stpcpy, strdup to aliases.
47815         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
47816         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
47817
47818 2006-10-10  Bruno Haible  <bruno@clisp.org>
47819
47820         Make it possible to #define gcd to an alias.
47821         * lib/gcd.c: Include config.h.
47822
47823 2006-10-10  Bruno Haible  <bruno@clisp.org>
47824
47825         Make it possible to #define c_isascii to an alias.
47826         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
47827         defined. Undefine the macros before defining them, to avoid gcc
47828         warnings.
47829         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
47830         define NO_C_CTYPE_MACROS early.
47831
47832 2006-10-10  Bruno Haible  <bruno@clisp.org>
47833
47834         Make it possible to #define set_program_name to an alias.
47835         * lib/progname.c: Don't undefine set_program_name; instead, undefine
47836         ENABLE_RELOCATABLE early.
47837
47838 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
47839
47840         Port to Tandem NSK OSS, which has 64-bit signed int but at most
47841         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
47842         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
47843         More generally, don't assume that 64-bit signed int is available
47844         if unsigned int is, and vice versa.
47845         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
47846         unsigned symbols, not on their signed counterparts.
47847         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
47848         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
47849         (UINT64_C, UINTMAX_C):
47850         Likewise.
47851         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
47852         unsigned counterparts.
47853         (Have_long_long, Unsigned): New macros.
47854         (Int): Renamed from INT.
47855         (strtoimax): Use the new macros.
47856         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
47857         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
47858         * modules/inttypes (inttypes.h): Substitute
47859         HAVE_UNSIGNED_LONG_LONG_INT.
47860         * modules/stdint (stdint.h): Likewise.
47861         (Files): Add m4/ulonglong.m4.
47862
47863 2006-10-10  Bruno Haible  <bruno@clisp.org>
47864
47865         Fix a gcc -Wshadow warning.
47866         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
47867         to 'bucket'.
47868         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
47869         gl_linked_indexof_from_to): Likewise.
47870         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
47871         Likewise.
47872         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
47873         Likewise.
47874         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
47875         Reported by Eric Blake.
47876
47877 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
47878
47879         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
47880         for NetBSD.  Problem reported by Bruno Haible.
47881
47882 2006-10-09  Jim Meyering  <jim@meyering.net>
47883
47884         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
47885         Patch from Bruno Haible.
47886
47887 2006-10-09  Jim Meyering  <jim@meyering.net>
47888
47889         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
47890         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
47891         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
47892
47893 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
47894
47895         Don't include <config.h> twice; this doesn't work in some cases,
47896         e.g., when config.h has "#define intmax_t long long int" and
47897         we include <config.h>, <inttypes.h>, <config.h> in that order.
47898         Problem reported by Matthew Woehlke in:
47899         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
47900         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
47901         * lib/fts-cycle.c: Don't include config.h.
47902         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
47903         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
47904         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
47905         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
47906         inttypes.h.
47907         * lib/xstrtoumax.c: Likewise.
47908         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
47909         __strtol and the like, so that this module is more like its siblings.
47910         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
47911         Remove; no longer needed now that we assume gnulib inttypes.h.
47912
47913 2006-10-08  Bruno Haible  <bruno@clisp.org>
47914
47915         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
47916         option.
47917
47918 2006-10-07  Jim Meyering  <jim@meyering.net>
47919
47920         * modules/inttypes (inttypes.h): Revert what seems to have been
47921         an inadvertent part of today's change: use "|", not "/" in the
47922         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
47923
47924 2006-10-07  Bruno Haible  <bruno@clisp.org>
47925
47926         * modules/sublist: New file.
47927
47928 2006-10-07  Bruno Haible  <bruno@clisp.org>
47929
47930         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
47931         * modules/argz (argz.h): Likewise.
47932         * modules/arpa_inet (arpa/inet.h): Likewise.
47933         * modules/byteswap (byteswap.h): Likewise.
47934         * modules/configmake (configmake.h): Likewise.
47935         * modules/fcntl (fcntl.h): Likewise.
47936         * modules/fnmatch (fnmatch.h): Likewise.
47937         * modules/getopt (getopt.h): Likewise.
47938         * modules/glob (glob.h): Likewise.
47939         * modules/inttypes (inttypes.h): Likewise.
47940         * modules/netinet_in (netinet/in.h): Likewise.
47941         * modules/poll (poll.h): Likewise.
47942         * modules/stdbool (stdbool.h): Likewise.
47943         * modules/stdint (stdint.h): Likewise.
47944         * modules/sys_select (sys/select.h): Likewise.
47945         * modules/sys_socket (sys/socket.h): Likewise.
47946         * modules/sys_stat (sys/stat.h): Likewise.
47947         * modules/sysexits (sysexits.h): Likewise.
47948         * modules/unistd (unistd.h): Likewise.
47949         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
47950         Add a "DO NOT EDIT" comment to the generated file.
47951         (func_import): Likewise for gnulib-comp.m4.
47952
47953 2006-10-07  Bruno Haible  <bruno@clisp.org>
47954
47955         * lib/gl_sublist.h: New file.
47956         * lib/gl_sublist.c: New file.
47957
47958 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
47959
47960         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
47961         name (relative to the original working directory) and the file
47962         name component (relative to the temporary working directory).  All
47963         callers changed.
47964         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
47965         * lib/mkdir-p.c (make_dir_parents): Likewise.
47966         * lib/mkdir-p.h (make_dir_parents): Likewise.
47967
47968 2006-10-06  Eric Blake  <ebb9@byu.net>
47969
47970         Define several macros for use by the clean-temp module.
47971         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
47972         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
47973         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
47974
47975         * lib/clean-temp.h (close_stream_temp): New declaration.
47976         * lib/clean-temp.c (includes): Pull in headers according to what
47977         other modules are in use.
47978         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
47979
47980 2006-10-06  Bruno Haible  <bruno@clisp.org>
47981
47982         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
47983         instead of fopen, fwriteerror.
47984
47985 2006-10-06  Bruno Haible  <bruno@clisp.org>
47986
47987         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
47988         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
47989         int.
47990         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
47991         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
47992         Return an error indicator.
47993         Suggested by Eric Blake.
47994
47995 2006-10-06  Bruno Haible  <bruno@clisp.org>
47996
47997         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
47998         Reported by Eric Blake.
47999
48000 2006-10-06  Bruno Haible  <bruno@clisp.org>
48001
48002         * modules/closeout (Description): Mention stderr too.
48003
48004 2006-10-06  Bruno Haible  <bruno@clisp.org>
48005         and Paul Eggert  <eggert@cs.ucla.edu>
48006
48007         * lib/closeout.c (close_stdout): Also close stderr.
48008         * lib/closeout.h: Update comment.
48009
48010 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
48011
48012         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
48013         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
48014         * lib/dirchownmod.c: Include lchown.h.
48015         * lib/lchown.c: Don't include files that lchown.h now includes.
48016         Don't declare chown, since lchown.h now does that.
48017         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
48018         (lchown): Define to rpl_chown if lchown is declared but
48019         does not exist.  Declare using a prototype if lchown is not
48020         declared.  Add a copyright notice.
48021         * lib/mkstemp.h: Include <unistd.h>.
48022         * lib/openat.c: Include lchown.h.
48023
48024         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
48025         we now test for that separately.
48026         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
48027         rather than O_NOFOLLOW, when testing whether it's possible to
48028         avoid a race condition reliably.
48029         * lib/savewd.c (savewd_chdir): Likewise.
48030
48031         Remove macros that are no longer needed now that stdint.h is
48032         reliable.
48033         * lib/fsusage.c (UINTMAX_MAX): Remove.
48034         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
48035         * lib/utimecmp.c (SIZE_MAX): Remove.
48036
48037         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
48038
48039         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
48040         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
48041         O_NOATIME works.
48042
48043 2006-10-05  Bruno Haible  <bruno@clisp.org>
48044
48045         * lib/gl_list.h (gl_sortedlist_search_from_to,
48046         gl_sortedlist_indexof_from_to): New declarations.
48047         (gl_list_implementation): New fields sortedlist_search_from_to,
48048         sortedlist_indexof_from_to.
48049         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
48050         inline functions.
48051         * lib/gl_list.c (gl_sortedlist_search_from_to,
48052         gl_sortedlist_indexof_from_to): New functions.
48053         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
48054         function.
48055         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
48056         (gl_array_sortedlist_search_from_to): New function.
48057         (gl_array_list_implementation): Update.
48058         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
48059         function.
48060         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
48061         (gl_carray_sortedlist_search_from_to): New function.
48062         (gl_carray_list_implementation): Update.
48063         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
48064         gl_linked_sortedlist_indexof_from_to): New functions.
48065         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
48066         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
48067         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
48068         gl_tree_sortedlist_indexof_from_to): New functions.
48069         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
48070         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
48071         Update.
48072         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
48073         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
48074         Update.
48075
48076 2006-10-05  Bruno Haible  <bruno@clisp.org>
48077
48078         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
48079         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
48080         (struct gl_list_implementation): Add fields search_from_to,
48081         indexof_from_to. Remove fields search, indexof.
48082         (gl_list_search): Use the search_from_to method.
48083         (gl_list_search_from, gl_list_search_from_to): New functions.
48084         (gl_list_indexof): Use the indexof_from_to method.
48085         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
48086         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
48087         (gl_list_search_from, gl_list_search_from_to): New functions.
48088         (gl_list_indexof): Use the indexof_from_to method.
48089         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
48090         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
48091         gl_array_indexof. Add start_index, end_index arguments.
48092         (gl_array_search_from_to): Renamed from gl_array_search. Add
48093         start_index, end_index arguments.
48094         (gl_array_remove, gl_array_list_implementation): Update.
48095         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
48096         gl_carray_indexof. Add start_index, end_index arguments.
48097         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
48098         start_index, end_index arguments.
48099         (gl_carray_remove, gl_carray_list_implementation): Update.
48100         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
48101         gl_linked_search. Add start_index, end_index arguments.
48102         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
48103         start_index, end_index arguments.
48104         (gl_linked_remove): Update.
48105         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
48106         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
48107         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
48108         field to 'size_t'.
48109         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
48110         gl_tree_search. Add start_index, end_index arguments.
48111         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
48112         start_index, end_index arguments.
48113         (gl_tree_remove): Update.
48114         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
48115         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
48116         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
48117         function.
48118         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
48119         gl_tree_search. Add start_index, end_index arguments.
48120         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
48121         start_index, end_index arguments.
48122         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
48123         Update.
48124         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
48125
48126 2006-10-05  Bruno Haible  <bruno@clisp.org>
48127
48128         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
48129
48130         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
48131         fwriteerror_temp): New declarations.
48132         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
48133         (descriptors): New variable.
48134         (cleanup): First, close the descriptors.
48135         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
48136         fclose_temp, fwriteerror_temp): New functions.
48137
48138 2006-10-04  Jim Meyering  <jim@meyering.net>
48139
48140         * lib/fts.c (fts_open): Tiny comment change.
48141
48142 2006-10-04  Bruno Haible  <bruno@clisp.org>
48143
48144         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
48145         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
48146         gl_LOCK_BODY.
48147         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
48148         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
48149         gl_LOCK_EARLY_BODY.
48150         (gl_LOCK): Require gl_LOCK_BODY.
48151
48152 2006-10-04  Bruno Haible  <bruno@clisp.org>
48153
48154         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
48155         (gl_oset_search_atleast): New declaration.
48156         (struct gl_oset_implementation): Add field 'search_atleast'.
48157         (gl_oset_search_atleast): New inline function.
48158         * lib/gl_oset.c (gl_oset_search_atleast): New function.
48159         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
48160         (gl_array_oset_implementation): Update.
48161         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
48162         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
48163         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
48164
48165 2006-10-04  Bruno Haible  <bruno@clisp.org>
48166
48167         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
48168
48169 2006-10-03  Bruno Haible  <bruno@clisp.org>
48170
48171         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
48172         from gl_avltreehash_list_implementation.
48173
48174 2006-10-03  Bruno Haible  <bruno@clisp.org>
48175
48176         * lib/gl_oset.c (gl_oset_add): Fix return type.
48177
48178 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
48179
48180         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
48181
48182 2006-10-02  Eric Blake  <ebb9@byu.net>
48183
48184         * modules/strnlen (Depends-on): Add extensions.
48185
48186 2006-10-02  Eric Blake  <ebb9@byu.net>
48187
48188         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
48189         definition in 2.60+.
48190
48191 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
48192
48193         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
48194         checks.
48195
48196 2006-10-02  Bruno Haible  <bruno@clisp.org>
48197
48198         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
48199         to the AUTOMAKE_OPTIONS.
48200         Reported by Jim Meyering.
48201
48202 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
48203
48204         Work around bug in Solaris 10 /proc file system:
48205         /proc/self/fd/NNN/.. isn't the parent directory of
48206         the directory whose file descriptor is NNN.  This needs to
48207         be worked around at run time, not compile time, since a
48208         program might be built on Solaris 8, where things work, and
48209         run on Solaris 10.
48210         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
48211         to use the following interface instead:
48212         (OPENAT_BUFFER_SIZE): New macro.
48213         (openat_proc_name): New function.
48214         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
48215         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
48216         Likewise.
48217         * lib/openat-proc.c: New file.
48218         * modules/openat (Files): Add lib/openat-proc.c.
48219         (Depends-on): Add same-inode, stdbool.
48220         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
48221
48222 2006-09-29  Bruno Haible  <bruno@clisp.org>
48223
48224         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
48225         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
48226         argument. Set stdout_closed before testing for ferror, not after.
48227         (fwriteerror, fwriteerror_no_ebadf): New functions.
48228
48229 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48230
48231         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
48232
48233 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
48234
48235         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
48236         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
48237
48238 2006-09-28  Jim Meyering  <jim@meyering.net>
48239
48240         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
48241         Include <unistd.h>.
48242
48243 2006-09-28  Bruno Haible  <bruno@clisp.org>
48244
48245         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
48246         * modules/linkedhash-list (Depends-on): Likewise.
48247         * modules/rbtreehash-list (Depends-on): Likewise.
48248
48249 2006-09-28  Bruno Haible  <bruno@clisp.org>
48250
48251         * lib/strndup.h: Simplify the redefinition of strndup.
48252         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
48253         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
48254
48255 2006-09-28  Bruno Haible  <bruno@clisp.org>
48256
48257         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
48258         * lib/gl_linkedhash_list.c: Likewise.
48259         * lib/gl_rbtreehash_list.c: Likewise.
48260
48261 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
48262
48263         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
48264         getaddrinfo.
48265
48266         * lib/__fpending.h: Don't include <stdio_ext.h> unless
48267         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
48268         it causes <stdio_ext.h> to cause a compile-time error.
48269         Problem reported by Nelson H. F. Beebe.
48270         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
48271         of HAVE_DECL___PENDING.
48272
48273         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
48274         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
48275         declaration.
48276
48277 2006-09-27  Jim Meyering  <jim@meyering.net>
48278
48279         This file could end up with a definition for a function
48280         named __strndup, rather than rpl_strndup on a system with
48281         incomplete weak_alias support.
48282         * lib/strndup.c (strndup): Rename from __strndup.
48283         Remove #defines that used to map __strndup to strndup.
48284         Don't use K&R prototypes.
48285         Remove LIBC-related code, since this file is not sync'd with glibc.
48286         * lib/strndup.h: Revamp, accordingly.
48287         * m4/strndup.m4: Modernize.
48288
48289 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
48290
48291         * modules/savewd (Depends-on): Add 'raise'.
48292         * lib/savewd.c: Include <signal.h>, for 'raise'.
48293
48294 2006-09-26  Jim Meyering  <jim@meyering.net>
48295
48296         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
48297         when we detect Darwin 8.7.0's acl_get_file bug.
48298         Rearrange to perform the new (below) run-test while $LIBS
48299         contains any acl-related library.  Set USE_ACL at the end.
48300         (gl_ACL_GET_FILE): New function.
48301
48302 2006-09-26  Eric Blake  <ebb9@byu.net>
48303
48304         * lib/verror.c: Include <config.h> unconditionally.
48305
48306 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
48307
48308         * modules/clock-time (Maintainer): Add self.
48309         * modules/getlogin_r (Depends-on): Add extensions.
48310
48311 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48312
48313         * modules/clock-time: New module.
48314         * modules/nanosleep (Depends-on): Add clock-time.
48315         * modules/gethrxtime (Depends-on): Likewise.
48316         * modules/gettime (Depends-on): Likewise.
48317         * modules/settime (Depends-on): Likewise.
48318
48319         * modules/fts-lgpl: Depend on openat.
48320         * modules/mkancesdirs: Depend on savewd.
48321         * modules/mkdir-p: Likewise.
48322
48323 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48324
48325         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
48326
48327         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
48328         `gl_have_arbitrary_file_name_length_limit' to
48329         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
48330         actually works between configure runs.
48331
48332 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48333             Bruno Haible  <bruno@clisp.org>
48334
48335         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
48336
48337 2006-09-25  Jim Meyering  <jim@meyering.net>
48338
48339         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
48340         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
48341
48342 2006-09-25  Eric Blake  <ebb9@byu.net>
48343
48344         * gnulib-tool (func_import, func_create_testdir): Fix typos in
48345         exec's in 2006-09-18 patch when shuffling fds.
48346
48347 2006-09-25  Bruno Haible  <bruno@clisp.org>
48348
48349         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
48350         Reported by Jim Meyering.
48351
48352 2006-09-24  Jim Meyering  <jim@meyering.net>
48353
48354         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
48355         compare a pointer against a literal "0".  That caused failures with
48356         at least HP-UX's hpcc.
48357
48358 2006-09-22  Simon Josefsson  <jas@extundo.com>
48359
48360         * modules/gc-sha1:
48361         * modules/gc-md4:
48362         * modules/gc-hmac-sha1:
48363         * modules/gc-hmac-md5:
48364         * modules/gc-des:
48365         * modules/gc-arcfour: Distribute more files.
48366
48367 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48368
48369         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
48370         (gl_linked_iterator_from_to): Initialize struct completely.
48371         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
48372         (gl_tree_iterator_from_to): Likewise
48373         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
48374         * lib/gl_array_list.c [lint] (gl_array_iterator)
48375         (gl_array_iterator_from_to): Likewise.
48376         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
48377         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
48378         (gl_carray_iterator_from_to): Likewise.
48379
48380         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
48381         * lib/md4.c (md4_process_block): Remove unused variable.
48382         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
48383         parentheses for clarity.
48384
48385 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48386
48387         * modules/bison-i18n (Depends-on): Add gettext.
48388
48389 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48390
48391         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
48392         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
48393         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
48394         also add missing comma that caused broken test.
48395         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
48396         stdlib.h, for `abort'.
48397         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
48398         variables.
48399         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
48400         include unistd.h if present, for `rmdir'.
48401         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
48402         variables.
48403         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
48404         in the process include standard headers for prototypes.
48405         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
48406         gets declared on GNU/Linux.
48407         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
48408         unistd.h, for `rmdir'.
48409         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
48410
48411         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
48412         always true.
48413         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
48414
48415         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
48416
48417 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48418
48419         * gnulib-tool (func_version): Create output all at once.  This
48420         may help avoid triggering unnecessary SIGPIPEs, and at any
48421         rate it doesn't hurt.
48422
48423 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48424             Bruno Haible  <bruno@clisp.org>
48425
48426         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
48427         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
48428         * m4/signed.m4 (bh_C_SIGNED): Likewise.
48429
48430         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
48431         (gl_FUNC_VASPRINTF): Invoke it.
48432
48433 2006-09-22  Bruno Haible  <bruno@clisp.org>
48434
48435         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
48436         getloadavg.c as first argument.
48437
48438 2006-09-22  Bruno Haible  <bruno@clisp.org>
48439
48440         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
48441         at the beginning of the gl_INIT macro.
48442         * modules/getloadavg (configure.ac): Pass $gl_source_base to
48443         gl_GETLOADAVG.
48444
48445 2006-09-22  Bruno Haible  <bruno@clisp.org>
48446
48447         * gnulib-tool (func_create_megatestdir): Don't include the config-h
48448         module.
48449         Suggested by Ralf Wildenhues.
48450
48451 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
48452
48453         Import this patch from libc:
48454
48455         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
48456
48457         * lib/regex_internal.c (re_string_reconstruct): Handle
48458         offset < pstr->valid_raw_len && pstr->offsets_needed case.
48459         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
48460         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
48461         re_string_context_at.
48462
48463         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
48464         now requires it.
48465         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
48466         gl_REGEX now does it for us.
48467         (gl_REGEX): Add test taken from
48468         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
48469
48470         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
48471         Check that large offsets work.  Modernize Autoconf usages.
48472         Prefer "yes" to mean a good thing rather than a bad.
48473         Don't put "#define mkstemp" in config.h, as this might interfere
48474         with standard system headers that "#define mkstemp mkstemp64".
48475
48476         * modules/mkstemp (Depends-on): Add extensions, so that
48477         mkstemp is visible on some platforms.
48478         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
48479         (Include): Change to "mkstemp.h" from <stdlib.h>.
48480         (Files): Add mkstemp.h.
48481
48482         * lib/mkstemp.h: New file, since some standard headers
48483         #define mkstemp.
48484         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
48485         Include "mkstemp.h".
48486         Make the _LIBC code resemble glibc original more,
48487         e.g., use K&R style.
48488         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
48489         (mkstemp): Remove, since mkstemp.h does this for us.
48490         * lib/stdlib--.h: Include mkstemp.h.
48491
48492         Import this patch from libc:
48493
48494         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
48495
48496         * lib/tempname.c (__gen_tempname): Change attempts_min
48497         into a macro.  Use preprocessor to decide how to initialize
48498         attempts [Coverity CID 67].
48499
48500 2006-09-20  Bruno Haible  <bruno@clisp.org>
48501
48502         * lib/mkdtemp.c: Import from libc.
48503         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
48504                 * sysdeps/posix/tempname.c (__gen_tempname): Change
48505                 attempts_min into a macro.  Use preprocessor to decide how to
48506                 initialize attempts [Coverity CID 67].
48507         2001-11-27  Paul Eggert  <eggert@twinsun.com>
48508                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
48509                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
48510
48511 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48512
48513         * gnulib-tool (func_exit): New function, to allow to pass the
48514         exit status portably through the trap.  Use everywhere.
48515         (--help, --version): Signal a write error.
48516         (trap): catch SIGPIPE, for write errors.
48517         Exit at the end of the trap, with the correct exit status.
48518
48519 2006-09-19  Karl Berry  <karl@gnu.org>
48520
48521         * doc/gnulib.texi: note about the license texinfo files.
48522
48523 2006-09-19  Eric Blake  <ebb9@byu.net>
48524
48525         * gnulib-tool: Avoid space-tab.
48526
48527 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
48528
48529         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
48530         that prevented coreutils 6.1 from building.  Problem reported
48531         by Petter Reinholdtsen.
48532
48533 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
48534
48535         * gnulib-tool (avoidlist): Fix typo that broke options like
48536         --avoid=lock that are used by coreutils bootstrap.
48537
48538 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
48539
48540         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
48541         more systematically.
48542
48543 2006-09-18  Jim Meyering  <jim@meyering.net>
48544
48545         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
48546
48547 2006-09-18  Bruno Haible  <bruno@clisp.org>
48548
48549         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
48550
48551 2006-09-18  Bruno Haible  <bruno@clisp.org>
48552
48553         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
48554         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
48555         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
48556         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
48557         * m4/gettext.m4: Require autoconf >= 2.52.
48558         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
48559         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
48560         of gl_cv_header_inttypes_h.
48561
48562 2006-09-18  Bruno Haible  <bruno@clisp.org>
48563
48564         * lib/javaversion.c: Include configmake.h.
48565
48566 2006-09-18  Bruno Haible  <bruno@clisp.org>
48567
48568         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
48569         avoid that the while loops be executed in a subshell.
48570
48571 2006-09-18  Bruno Haible  <bruno@clisp.org>
48572
48573         * MODULES.html.sh (func_module): Break long lines.
48574         Suggested by Bruce Korb <bkorb@gnu.org>.
48575
48576 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48577
48578         Speed up by a factor of 1.12.
48579         * gnulib-tool (nl): New variable.
48580         (func_import): Rewrite include directive extraction to only read each
48581         directive once.
48582
48583 2006-09-17  Bruno Haible  <bruno@clisp.org>
48584
48585         * modules/javaversion (Makefile.am): Remove DEFS setting.
48586         (Depends-on): Add configmake, for PKGDATADIR definition.
48587
48588 2006-09-17  Bruno Haible  <bruno@clisp.org>
48589
48590         * gnulib-tool (func_create_testdir): Rewrite all files at once.
48591
48592 2006-09-17  Bruno Haible  <bruno@clisp.org>
48593
48594         * gnulib-tool (func_append): New function, stolen from libtool.m4.
48595         (func_modules_transitive_closure, func_modules_add_dummy,
48596         func_modules_to_filelist, func_import, func_create_testdir,
48597         func_create_megatestdir, ...): Use it wherever possible.
48598         Suggested by Ralf Wildenhues.
48599
48600 2006-09-16  Karl Berry  <karl@gnu.org>
48601
48602         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
48603         to avoid sectioning errors.
48604         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
48605         [ifinfo]: blank line after @center-ed titles.
48606         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
48607         Spell FSF address consistently with others.
48608         (These changes approved by rms.)
48609
48610 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48611
48612         Speed up by a factor of 1.61.
48613         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
48614         already checked module names again.
48615
48616 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48617
48618         Speed up by a factor of 1.13.
48619         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
48620         for new_files, and the input to func_add_or_update.
48621
48622 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48623
48624         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
48625         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
48626
48627 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
48628
48629         * modules/mkancesdirs (Depends-on): Add fcntl.
48630         * modules/savewd: New file.
48631         * MODULES.html.sh (File system functions): Add savewd.
48632
48633         * modules/configmake (Makefile.am): Add support for the
48634         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
48635
48636 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
48637
48638         * m4/savewd.m4: New file.
48639
48640 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
48641
48642         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
48643         (dirchownmod): New arg FD.  All callers changed.
48644         Use FD rather than opening the directory ourself, as opening is
48645         now the caller's responsibility.
48646         * lib/dirchownmod.h: Likewise.
48647         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
48648         hosts that require <sys/types.h> before <sys/stat.h>.  Include
48649         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
48650         (test_dir): Remove.
48651         (mkancesdirs): Return length of prefix of FILE that has already
48652         been made, or -2 if there is a child doing the work.  Redo
48653         algorithm so that it is O(N) rather than O(N**2).  Optimize away
48654         ".", and treat ".." specially since it might stray back into
48655         already-created areas.  Use a subprocess if necessary.  New arg
48656         WD; all users changed.  MAKE_DIR function should now return 1
48657         if it creates a directory that is not readable.  Return -2 if
48658         a child process is spun off.
48659         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
48660         Adjust signature to match code.
48661         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
48662         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
48663         all users changed.
48664         * lib/savewd.c, lib/savewd.h: New files.
48665
48666 2006-09-15  Jim Meyering  <jim@meyering.net>
48667
48668         * modules/rename-dest-slash: New module.
48669         * MODULES.html.sh (posix_compat): Add it here.
48670
48671         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
48672
48673 2006-09-15  Jim Meyering  <jim@meyering.net>
48674
48675         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
48676         file.
48677
48678         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
48679
48680 2006-09-15  Jim Meyering  <jim@meyering.net>
48681
48682         * lib/rename-dest-slash.c (has_trailing_slash): Use
48683         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
48684         (rpl_rename_dest_slash): Perform the cheaper trailing slash
48685         test before testing whether SRC is a directory.
48686         Suggestions from Bruno Haible.
48687
48688         Avoid a warning about an unused variable.
48689         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
48690         into the #ifdef block where it's used.
48691
48692         * lib/rename-dest-slash.c: New file.
48693
48694 2006-09-14  Bruno Haible  <bruno@clisp.org>
48695
48696         * lib/allocsa.c: Include <config.h> unconditionally.
48697         * lib/asnprintf.c: Likewise.
48698         * lib/asprintf.c: Likewise.
48699         * lib/c-strcasecmp.c: Likewise.
48700         * lib/c-strcasestr.c: Likewise.
48701         * lib/c-strncasecmp.c: Likewise.
48702         * lib/c-strstr.c: Likewise.
48703         * lib/classpath.c: Likewise.
48704         * lib/clean-temp.c: Likewise.
48705         * lib/concatpath.c: Likewise.
48706         * lib/copy-file.c: Likewise.
48707         * lib/csharpcomp.c: Likewise.
48708         * lib/csharpexec.c: Likewise.
48709         * lib/execute.c: Likewise.
48710         * lib/fatal-signal.c: Likewise.
48711         * lib/findprog.c: Likewise.
48712         * lib/fwriteerror.c: Likewise.
48713         * lib/gl_array_list.c: Likewise.
48714         * lib/gl_array_oset.c: Likewise.
48715         * lib/gl_avltree_list.c: Likewise.
48716         * lib/gl_avltree_oset.c: Likewise.
48717         * lib/gl_avltreehash_list.c: Likewise.
48718         * lib/gl_carray_list.c: Likewise.
48719         * lib/gl_linked_list.c: Likewise.
48720         * lib/gl_linkedhash_list.c: Likewise.
48721         * lib/gl_list.c: Likewise.
48722         * lib/gl_oset.c: Likewise.
48723         * lib/gl_rbtree_list.c: Likewise.
48724         * lib/gl_rbtree_oset.c: Likewise.
48725         * lib/gl_rbtreehash_list.c: Likewise.
48726         * lib/imaxabs.c: Likewise.
48727         * lib/imaxdiv.c: Likewise.
48728         * lib/javacomp.c: Likewise.
48729         * lib/javaexec.c: Likewise.
48730         * lib/javaversion.c: Likewise.
48731         * lib/linebreak.c: Likewise.
48732         * lib/localcharset.c: Likewise.
48733         * lib/lock.c: Likewise.
48734         * lib/mbchar.c: Likewise.
48735         * lib/mbswidth.c: Likewise.
48736         * lib/mkdtemp.c: Likewise.
48737         * lib/pipe.c: Likewise.
48738         * lib/printf-args.c: Likewise.
48739         * lib/printf-parse.c: Likewise.
48740         * lib/progname.c: Likewise.
48741         * lib/progreloc.c: Likewise.
48742         * lib/readlink.c: Likewise.
48743         * lib/sh-quote.c: Likewise.
48744         * lib/stpcpy.c: Likewise.
48745         * lib/stpncpy.c: Likewise.
48746         * lib/strcasecmp.c: Likewise.
48747         * lib/strcasestr.c: Likewise.
48748         * lib/strcspn.c: Likewise.
48749         * lib/striconv.c: Likewise.
48750         * lib/strncasecmp.c: Likewise.
48751         * lib/strnlen1.c: Likewise.
48752         * lib/strstr.c: Likewise.
48753         * lib/strtok_r.c: Likewise.
48754         * lib/tls.c: Likewise.
48755         * lib/tmpdir.c: Likewise.
48756         * lib/unicodeio.c: Likewise.
48757         * lib/unsetenv.c: Likewise.
48758         * lib/vasnprintf.c: Likewise.
48759         * lib/vasprintf.c: Likewise.
48760         * lib/wait-process.c: Likewise.
48761         * lib/xallocsa.c: Likewise.
48762         * lib/xsetenv.c: Likewise.
48763         * lib/xstriconv.c: Likewise.
48764
48765 2006-09-13  Simon Josefsson  <jas@extundo.com>
48766
48767         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
48768         that internally, suggested by Ralf Wildenhues
48769         <Ralf.Wildenhues@gmx.de>.
48770
48771 2006-09-13  Simon Josefsson  <jas@extundo.com>
48772
48773         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
48774         @LIBOBJS@.
48775         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48776
48777 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
48778
48779         * lib/_fpending.c: Include <config.h> unconditionally, since we no
48780         longer worry about uses that don't define HAVE_CONFIG_H.
48781         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
48782         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
48783         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
48784         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
48785         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
48786         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
48787         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
48788         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
48789         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
48790         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
48791         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
48792         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
48793         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
48794         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
48795         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
48796         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
48797         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
48798         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
48799         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
48800         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
48801         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
48802         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
48803         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
48804         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
48805         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
48806         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
48807         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
48808         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
48809         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
48810         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
48811         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
48812         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
48813         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
48814         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
48815         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
48816         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
48817         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
48818         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
48819         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
48820         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
48821         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
48822         Likewise.
48823
48824 2006-09-13  Eric Blake  <ebb9@byu.net>
48825
48826         * lib/getopt.c: Fix typo in last commit.
48827
48828 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48829
48830         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
48831         dgettext.
48832
48833 2006-09-12  Jim Meyering  <jim@meyering.net>
48834
48835         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
48836         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
48837         Reported by Nelson H. F. Beebe.
48838
48839 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
48840
48841         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
48842         program_invocation_name and program_invocation_short_name are
48843         initialized.
48844         * lib/argp-namefrob.h: Move declarations of program_invocation_name
48845         and program_invocation_short_name to argp.h, so they are visible
48846         to user programs.
48847         * lib/argp.h: Likewise
48848
48849 2006-09-10  Bruno Haible  <bruno@clisp.org>
48850
48851         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
48852         m4/inttypes_h.m4, m4/uintmax_t.m4.
48853
48854 2006-09-10  Bruno Haible  <bruno@clisp.org>
48855
48856         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
48857         gl_AC_TYPE_UINTMAX_T.
48858
48859 2006-09-10  Bruno Haible  <bruno@clisp.org>
48860
48861         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
48862
48863 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
48864
48865         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
48866         convention.  Text proposed by Bruno Haible.
48867         (struct argp_option): Document the use of N_() wrappers.
48868
48869         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
48870         '\v', and translate the two parts separately, instead of feeding
48871         the whole string to gettext.  This allows to exclude
48872         '\v' from the strings visible to the translator by writing doc
48873         strings as N_("..") "\v" N_("..").
48874
48875 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
48876
48877         * config/srclist.txt: Undo latest change; the bug was fixed.
48878
48879 2006-09-09  Bruno Haible  <bruno@clisp.org>
48880
48881         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
48882         assignments if building a library without libtool.
48883         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
48884         in func_emit_lib_Makefile_am.
48885         (func_import): When building a static library libfoo.a, arrange to
48886         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
48887         (func_create_testdir): Likewise.
48888         * modules/gc (configure.ac, Makefile.am): If building statically,
48889         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
48890         * modules/iconvme (configure.ac, Makefile.am): Likewise.
48891         * modules/striconv (configure.ac, Makefile.am): Likewise.
48892         Based on a suggestion by Ralf Wildenhues.
48893
48894 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48895
48896         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
48897         Check for unistd.h too, since Autoconf doesn't assume POSIX.
48898         Also:
48899
48900         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48901         Add year_2050_test to catch glibc bug 2821
48902         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
48903
48904         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
48905         Prefer #ifdef to #if.
48906
48907         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
48908         Return from 'main' instead of calling 'exit'.
48909
48910 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48911
48912         * lib/mktime.c (guess_time_tm): Fix bug where mktime
48913         returned the maximum time_t value rather than (time_t) -1.
48914         Problem originally reported by William Bardwell
48915         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
48916
48917         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
48918         Moved to here ...
48919         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
48920         ... from here.
48921
48922 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
48923
48924         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
48925         2821 is fixed.
48926
48927 2006-09-08  Jim Meyering  <jim@meyering.net>
48928
48929         Don't make generated files read-only.  That would bother too many
48930         people.  However, do retain the ability to work when targets are
48931         read-only: remove the destination and temporary files before writing
48932         them (when generated via sed or echo), or by using the -f option for
48933         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
48934         * modules/alloca-opt, modules/argz, modules/arpa_inet:
48935         * modules/byteswap, modules/configmake, modules/fcntl:
48936         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
48937         * modules/localcharset, modules/netinet_in, modules/poll:
48938         * modules/stdbool, modules/stdint, modules/sys_select:
48939         * modules/sys_socket, modules/sys_stat, modules/sysexits:
48940
48941 2006-09-08  Jim Meyering  <jim@meyering.net>
48942
48943         Avoid new build failure on FreeBSD 6.0.
48944         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
48945         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
48946         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
48947
48948 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48949
48950         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
48951
48952 2006-09-07  Jim Meyering  <jim@meyering.net>
48953
48954         Fix global typo in last change: use chmod u-w, not chmod u-x.
48955         Spotted by Paul Eggert and Bruce Korb.
48956         * modules/alloca-opt, modules/argz, modules/arpa_inet:
48957         * modules/byteswap, modules/configmake, modules/fcntl:
48958         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
48959         * modules/localcharset, modules/netinet_in, modules/poll:
48960         * modules/stdbool, modules/stdint, modules/sys_select:
48961         * modules/sys_socket, modules/sys_stat, modules/sysexits:
48962
48963 2006-09-06  Jim Meyering  <jim@meyering.net>
48964
48965         Make generated files be read-only.
48966         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
48967         Ensure that each generated file is now read-only.
48968         * modules/argz: Likewise.
48969         * modules/arpa_inet: Likewise.
48970         * modules/byteswap: Likewise.
48971         * modules/configmake: Likewise.
48972         * modules/fcntl: Likewise.
48973         * modules/fnmatch: Likewise.
48974         * modules/getopt: Likewise.
48975         * modules/glob: Likewise.
48976         * modules/inttypes: Likewise.
48977         * modules/netinet_in: Likewise.
48978         * modules/poll: Likewise.
48979         * modules/stdbool: Likewise.
48980         * modules/stdint: Likewise.
48981         * modules/sys_select: Likewise.
48982         * modules/sys_socket: Likewise.
48983         * modules/sys_stat: Likewise.
48984         * modules/sysexits: Likewise.
48985         * modules/localcharset: Same as above, but continue using temporary
48986         file named "t-$@" (why different?) rather than the "$@-t" used
48987         everywhere else.
48988
48989         * modules/sysexits (Makefile.am): Replace literal occurrences
48990         of "sysexit.h" more readable, and more consistent, "$@".
48991
48992 2006-09-06  Bruno Haible  <bruno@clisp.org>
48993
48994         * modules/striconv: New file.
48995         * modules/xstriconv: New file.
48996         * MODULES.html.sh (Internationalization functions): Add striconv,
48997         xstriconv.
48998
48999 2006-09-06  Bruno Haible  <bruno@clisp.org>
49000
49001         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
49002         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
49003         not using libtool correctly.
49004
49005 2006-09-06  Bruno Haible  <bruno@clisp.org>
49006
49007         * lib/striconv.h: New file.
49008         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
49009         iconvstring.c.
49010         * lib/xstriconv.h: New file.
49011         * lib/xstriconv.c: New file.
49012
49013 2006-09-06  Bruno Haible  <bruno@clisp.org>
49014
49015         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
49016         lib_..._LDFLAGS.
49017
49018 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49019
49020         * lib/argz_.h: Sync from Libtool.
49021
49022         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
49023                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
49024
49025         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
49026
49027 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
49028
49029         * modules/trim: New file.
49030
49031 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
49032
49033         * lib/trim.h: New file.
49034         * lib/trim.c: New file.
49035
49036 2006-09-05  Bruno Haible  <bruno@clisp.org>
49037
49038         * MODULES.html.sh (String handling): Add trim.
49039
49040 2006-09-04  Karl Berry  <karl@gnu.org>
49041
49042         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
49043         until next release.
49044
49045 2006-09-03  Bruno Haible  <bruno@clisp.org>
49046
49047         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
49048         correctly.
49049
49050 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
49051
49052         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
49053         not gl_GETLOADAVG.  Omit unneeded semicolons.
49054         Problems reported by Ralf Wildenhues in
49055         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
49056         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
49057         at the end, which is the usual gnulib style.
49058
49059         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
49060         of doing all the work ourselves.
49061         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
49062         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
49063
49064 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
49065
49066         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
49067         Problem reported by Ralf Wildenhues in
49068         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
49069
49070         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
49071         HAVE_STRUCT_STATFS_F_FSTYPENAME.
49072
49073 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
49074
49075         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
49076         yesterday's patch by changing test -n to test -z.
49077
49078 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49079
49080         * modules/getloadavg (Files): Add m4/getloadavg.m4.
49081         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
49082         the former is now obsolescent.
49083
49084         * modules/chdir-long (Depends-on): Add fcntl.
49085
49086 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49087
49088         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
49089         obsolescent, and programs should use gnulib instead.
49090         * m4/getloadavg.m4: New file, with contents taken from Autoconf
49091         but with prefixes changed.
49092
49093 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
49094
49095         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
49096         or stdbool.h, because they might not exist while configuring.
49097
49098         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
49099         Don't include unistd.h or limits.h; not needed, since chdir-long.h
49100         does that for us.
49101         (O_DIRECTORY): Remove.
49102
49103 2006-08-31  Eric Blake  <ebb9@byu.net>
49104
49105         * gnulib-tool: Don't let emacs change spaces to TAB.
49106
49107 2006-08-31  Bruno Haible  <bruno@clisp.org>
49108
49109         * gnulib-tool: When calling func_import more than once, do it in a
49110         subshell.
49111         Reported by Eric Blake <ebb9@byu.net>.
49112
49113 2006-08-31  Bruno Haible  <bruno@clisp.org>
49114
49115         * gnulib-tool (nl): Remove variable.
49116         (sed_transform_lib_file): Use more robust test for config-h module.
49117         (func_import): Fix typo in 2006-08-25 patch.
49118
49119 2006-08-31  Bruno Haible  <bruno@clisp.org>
49120
49121         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
49122         specified, augment Makefile.am variables instead of assigning them.
49123
49124 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
49125
49126         Work around a bug in both the Linux and SunOS 64-bit kernels:
49127         nanosleep mishandles sleeps for longer than 2**31 seconds.
49128         Problem reported by Frank v Waveren in
49129         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
49130         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
49131         Check for nanosleep bug.
49132         (LIB_NANOSLEEP): Append clock_gettime library if needed.
49133
49134 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
49135
49136         Work around a bug in both the Linux and SunOS 64-bit kernels:
49137         nanosleep mishandles sleeps for longer than 2**31 seconds.
49138         Problem reported by Frank v Waveren in
49139         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
49140         * lib/nanosleep.c (BILLION): New constant.
49141         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
49142         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
49143         implementation.
49144
49145 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
49146
49147         * modules/nanosleep (Depends-on): Add gettime.
49148
49149 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
49150         and Simon Josefsson  <jas@extundo.com>
49151         and Oskar Liljeblad  <oskar@osk.mine.nu>
49152
49153         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
49154         * gnulib-tool (func_import): New license type 'unmodifiable license
49155         text'.
49156         * modules/fdl: Use it.  Longer description.
49157         * module/gpl, module/lgpl: New files.
49158
49159 2006-08-30  Jim Meyering  <jim@meyering.net>
49160
49161         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
49162         shadowing the parameter.
49163
49164 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49165
49166         Sync from Libtool:
49167
49168         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49169
49170         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
49171         sharing with gnulib.  Report by Eric Blake.
49172
49173 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
49174
49175         * modules/isapipe: New file.
49176         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
49177
49178 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
49179
49180         * modules/configmake (Makefile.am): Add a comment, and omit
49181         the CONFIGMAKE_ prefix from generated macro names.  Suggested
49182         by Bruno Haible.
49183
49184 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
49185
49186         * m4/isapipe.m4: New file.
49187
49188 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
49189
49190         * lib/isapipe.c, lib/isapipe.h: New files.
49191
49192 2006-08-29  Jim Meyering  <jim@meyering.net>
49193
49194         * modules/configmake (Makefile.am): Make configmake.h depend on
49195         Makefile.  Otherwise, a stale configmake.h could hang around.
49196
49197 2006-08-29  Eric Blake  <ebb9@byu.net>
49198
49199         * lib/error.c (error_at_line, print_errno_message): Match libc, after
49200         resolution of upstream bug 3044.
49201
49202 2006-08-29  Bruno Haible  <bruno@clisp.org>
49203
49204         * modules/localcharset (Depends-on): Add configmake.
49205         (Makefile.am): Remove setting of LIBDIR through DEFS.
49206
49207 2006-08-29  Bruno Haible  <bruno@clisp.org>
49208
49209         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
49210         defined.
49211
49212 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
49213
49214         * modules/fcntl: New file.
49215         * modules/chdir-safer (Depends-on): Add fcntl.
49216         * modules/fts: Likewise.
49217         * modules/mkdir-p: Likewise.
49218
49219         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
49220         This undoes the most recent change, since we're now addressing the
49221         problem in a different way.
49222
49223         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
49224         into output, since the output might be called Makefile.am even
49225         if $makefile_name is something different.
49226         (func_import): Use $makefile_am rather than
49227         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
49228         empty.
49229
49230         * modules/inttypes (Files): Add m4/inttypes-h.m4.
49231
49232 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
49233
49234         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
49235         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
49236         recent change to stdint.m4, since we're now addressing the problem in a
49237         different way.
49238
49239 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
49240
49241         * m4/fcntl_h.m4: New file.
49242
49243 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
49244
49245         * lib/fcntl_.h: New file.
49246         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
49247         the fcntl module.
49248         * lib/dirchownmod.c: Likewise.
49249         * lib/fts.c: Likewise.
49250
49251         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
49252         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
49253         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
49254         just before including <inttypes.h>, to avoid circular inclusion.
49255
49256 2006-08-28  Jim Meyering  <jim@meyering.net>
49257
49258         * doc/visibility.texi: Actually read and correct the grammar of the
49259         sentence affected by yesterday's change.
49260
49261 2006-08-28  Eric Blake  <ebb9@byu.net>
49262
49263         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
49264         needs wrapper.
49265
49266 2006-08-28  Eric Blake  <ebb9@byu.net>
49267
49268         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
49269
49270 2006-08-28  Eric Blake  <ebb9@byu.net>
49271
49272         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
49273
49274 2006-08-28  Bruno Haible  <bruno@clisp.org>
49275
49276         * modules/c-strstr: New file, from GNU gettext.
49277         * MODULES.html.sh (String handling): Add c-strstr.
49278
49279 2006-08-28  Bruno Haible  <bruno@clisp.org>
49280
49281         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
49282         macros.
49283         Reported by Eric Blake.
49284
49285 2006-08-28  Bruno Haible  <bruno@clisp.org>
49286
49287         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
49288         (VASNPRINTF): Return a string of length > INT_MAX without failing.
49289         * lib/vasprintf.c: Include errno.h, limits.h.
49290         (EOVERFLOW): New fallback definition.
49291         (vasprintf): Test here whether the string length is > INT_MAX.
49292         * lib/vsnprintf.c: Include errno.h, limits.h.
49293         (EOVERFLOW): New fallback definition.
49294         (vsnprintf): Fix bug when generated string was too long for the buffer.
49295         Test here whether the string length is > INT_MAX.
49296
49297 2006-08-28  Bruno Haible  <bruno@clisp.org>
49298
49299         * lib/inttypes_.h (SCNX*): Remove definitions.
49300         Reported by Eric Blake.
49301
49302 2006-08-28  Bruno Haible  <bruno@clisp.org>
49303
49304         * lib/c-strstr.h: New file, from GNU gettext.
49305         * lib/c-strstr.c: New file, from GNU gettext.
49306
49307 2006-08-28  Bruno Haible  <bruno@clisp.org>
49308
49309         * gnulib-tool: Reorder some statements.
49310
49311 2006-08-28  Bruno Haible  <bruno@clisp.org>
49312
49313         * gnulib-tool: New option --makefile-name.
49314         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
49315         $makefile_name.
49316         (func_import): Write $makefile_name to the cache file, and read it from
49317         there unless explicitly specified. Use $makefile_name as file name
49318         instead of Makefile.am. Adjust the recommendations accordingly.
49319
49320 2006-08-28  Bruno Haible  <bruno@clisp.org>
49321
49322         * gnulib-tool (func_verify_module): Check against misapplying patch.
49323
49324 2006-08-28  Bruno Haible  <bruno@clisp.org>
49325
49326         * gnulib-tool (func_relativize, func_relconcat): New functions.
49327         Give an error if --local-dir is given with --update.
49328         Remove trailing slashes from $local_gnulib_dir.
49329         (func_import): Store the relativized $local_gnulib_dir in
49330         gnulib-cache.m4, and read it from there if not specified explicitly.
49331
49332 2006-08-28  Bruno Haible  <bruno@clisp.org>
49333
49334         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
49335         is the current directory. Respect also $local_gnulib_dir.
49336
49337 2006-08-28  Bruno Haible  <bruno@clisp.org>
49338             Simon Josefsson  <jas@extundo.com>
49339
49340         BeOS portability.
49341         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
49342
49343 2006-08-27  Jim Meyering  <jim@meyering.net>
49344
49345         * doc/visibility.texi: Remove duplicate word: "pointer".
49346
49347 2006-08-26  Bruno Haible  <bruno@clisp.org>
49348
49349         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
49350         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
49351         (Makefile.am): Create inttypes.h from inttypes_.h.
49352         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
49353
49354         * modules/imaxabs: New file.
49355
49356         * modules/imaxdiv: New file.
49357
49358 2006-08-26  Bruno Haible  <bruno@clisp.org>
49359
49360         * m4/inttypes.m4: New file.
49361         * m4/_inttypes_h.m4: Remove file.
49362         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
49363         PRI_MACROS_BROKEN.
49364         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
49365
49366         * m4/imaxabs.m4: New file.
49367
49368         * m4/imaxdiv.m4: New file.
49369
49370 2006-08-26  Bruno Haible  <bruno@clisp.org>
49371
49372         * lib/inttypes_.h: New file.
49373         * lib/inttypes.h: Remove file.
49374         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
49375
49376         * lib/imaxabs.c: New file.
49377
49378         * lib/imaxdiv.c: New file.
49379
49380 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49381
49382         New config-h module, so that "make" output needn't be cluttered
49383         by -DHAVE_CONFIG_H.
49384         * MODULES.html.sh (Support for building libraries and executables):
49385         Add config-h.
49386         * modules/config-h: New file.
49387         * gnulib-tool (nl, sed_transform_lib_file): New vars.
49388         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
49389         the config-h module is used.
49390
49391         New configmake module, so that "make" output needn't be cluttered
49392         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
49393         * MODULES.html.sh (Support for building libraries and executables):
49394         Add configmake.
49395         * modules/configmake: New file.
49396
49397 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
49398
49399         * m4/config-h.m4: New file.
49400
49401 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49402
49403         * config/srclist.txt: Add elisp-comp.
49404
49405 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
49406
49407         * MODULES.html.sh (Support for building libraries and executables):
49408         Add elisp-comp.
49409         * build-aux/elisp-comp: New file.
49410         * modules/elisp-comp: New file.
49411
49412 2006-08-24  Bruno Haible  <bruno@clisp.org>
49413
49414         * gnulib-tool (func_create_testdir): Use non-default values of
49415         sourcebase and m4base.
49416
49417 2006-08-24  Bruno Haible  <bruno@clisp.org>
49418
49419         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
49420         HTML structure.
49421
49422 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
49423
49424         * modules/openat (Depends-on): Add lchown.
49425
49426 2006-08-23  Bruno Haible  <bruno@clisp.org>
49427
49428         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
49429         of gl_LOCK_EARLY instead of gl_LOCK.
49430
49431 2006-08-23  Bruno Haible  <bruno@clisp.org>
49432
49433         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
49434         on OSF/1 to no.
49435         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
49436
49437 2006-08-23  Bruno Haible  <bruno@clisp.org>
49438
49439         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
49440         as unusable.
49441
49442         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
49443         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
49444         (gl_LOCK): New macro.
49445
49446 2006-08-22  Simon Josefsson  <jas@extundo.com>
49447
49448         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
49449         to md5 module.
49450
49451 2006-08-22  Simon Josefsson  <jas@extundo.com>
49452
49453         * MODULES.html.sh: Add "Support for maintaining and release
49454         projects".
49455
49456         * build-aux/gnupload: New file, from coreutils.
49457
49458 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
49459
49460         Avoid the need for AC_LIBSOURCES in m4 macros.
49461         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
49462         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
49463         * modules/check-version (EXTRA_DIST): Add check-version.h.
49464         * modules/crc (EXTRA_DIST): Add crc.h.
49465         * modules/des (EXTRA_DIST): Add des.h.
49466         * modules/gc (EXTRA_DIST): Add gc.h.
49467         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
49468         * modules/getline (EXTRA_DIST): Add getline.h.
49469         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
49470         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
49471         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
49472         * modules/md2 (EXTRA_DIST): Add md2.h.
49473         * modules/md4 (EXTRA_DIST): Add md4.h.
49474         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
49475         * modules/read-file (EXTRA_DIST): Add read-file.h.
49476         * modules/readline (EXTRA_DIST): Add readline.h.
49477         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
49478         rijndael-api-fst.h.
49479
49480 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
49481
49482         * m4/rijndael.m4 (gl_ARCFOUR):
49483         * m4/arctwo.m4 (gl_ARCTWO):
49484         * m4/check-version.m4 (gl_CHECK_VERSION):
49485         * m4/crc.m4 (gl_CRC):
49486         * m4/des.m4 (gl_DES):
49487         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
49488         * m4/gc.m4 (gl_GC):
49489         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
49490         * m4/getline.m4 (gl_FUNC_GETLINE):
49491         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
49492         * m4/hmac-md5.m4 (gl_HMAC_MD5):
49493         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
49494         * m4/md2.m4 (gl_MD2):
49495         * m4/md4.m4 (gl_MD4):
49496         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
49497         * m4/read-file.m4 (gl_FUNC_READ_FILE):
49498         * m4/readline.m4 (gl_FUNC_READLINE):
49499         * m4/rijndael.m4 (gl_RIJNDAEL):
49500         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
49501         to get the necessary .h files and whatnot.
49502
49503 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
49504
49505         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
49506         gnulib rather than the other way around.
49507         * config/srclistvars.sh (COREUTILS): Remove.
49508
49509 2006-08-22  Jim Meyering  <jim@meyering.net>
49510
49511         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
49512
49513         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
49514
49515 2006-08-22  Eric Blake  <ebb9@byu.net>
49516
49517         * modules/regexprops-generic: New file.
49518         * MODULES.html.sh (Support for building documentation): List it.
49519
49520 2006-08-22  Eric Blake  <ebb9@byu.net>
49521
49522         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
49523         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
49524         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
49525         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
49526
49527 2006-08-22  Bruno Haible  <bruno@clisp.org>
49528
49529         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
49530         and lib_LTLIBRARIES like the other lib_* variables.
49531
49532 2006-08-22  Bruno Haible  <bruno@clisp.org>
49533
49534         * build-aux/x-to-1.in: New file, from GNU gettext.
49535
49536 2006-08-22  Bruno Haible  <bruno@clisp.org>
49537
49538         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
49539         <utmpx.h> exists.
49540
49541 2006-08-22  Bruno Haible  <bruno@clisp.org>
49542
49543         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
49544         <utmpx.h> exists.
49545
49546 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
49547
49548         BeOS portability.
49549         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
49550         exist.
49551         Problem reported by Bruno Haible.
49552
49553 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
49554
49555         Avoid the need for AC_LIBSOURCES in m4 macros.
49556         * modules/acl (EXTRA_DIST): Add acl.h.
49557         * modules/argmatch (Files): Add m4/argmatch.m4.
49558         (configure.ac): Add gl_ARGMATCH.
49559         (EXTRA_DIST): Renamed from lib_SOURCES, for
49560         consistency with the other modules.  Remove argmatch.c.
49561         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
49562         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
49563         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
49564         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
49565         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
49566         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
49567         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
49568         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
49569         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
49570         * modules/closeout (EXTRA_DIST): Add closeout.h.
49571         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
49572         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
49573         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
49574         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
49575         dirname.h; remove basename.c and stripslash.c.
49576         * modules/exclude (EXTRA_DIST): Add exclude.h.
49577         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
49578         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
49579         * modules/file-type (EXTRA_DIST): Add file-type.h.
49580         * modules/filemode (EXTRA_DIST): Add filemode.h.
49581         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
49582         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
49583         * modules/fpending (EXTRA_DIST): Add __fpending.h.
49584         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
49585         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
49586         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
49587         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
49588         * modules/getdate (EXTRA_DIST): Add getdate.c.
49589         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
49590         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
49591         * modules/getpass (EXTRA_DIST): Add getpass.h.
49592         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
49593         * modules/group-member (EXTRA_DIST): Add group-member.h.
49594         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
49595         * modules/hash (EXTRA_DIST): Add hash.h.
49596         * modules/human (EXTRA_DIST): Add human.h.
49597         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
49598         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
49599         * modules/lchown (EXTRA_DIST): Add lchown.h.
49600         * modules/long-options (EXTRA_DIST): Add long-options.h.
49601         * modules/lstat (EXTRA_DIST): Add lstat.h.
49602         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
49603         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
49604         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
49605         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
49606         * modules/memxor (EXTRA_DIST): Add memxor.h.
49607         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
49608         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
49609         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
49610         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
49611         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
49612         * modules/physmem (EXTRA_DIST): Add physmem.h.
49613         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
49614         * modules/posixver (EXTRA_DIST): Add posixver.h.
49615         * modules/quote (EXTRA_DIST): Add quote.h.
49616         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
49617         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
49618         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
49619         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
49620         regex_internal.h regexec.c.
49621         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
49622         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
49623         * modules/same (EXTRA_DIST): Add same.h.
49624         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
49625         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
49626         * modules/savedir (EXTRA_DIST): Add savedir.h.
49627         * modules/sha1 (EXTRA_DIST): Add sha1.h.
49628         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
49629         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
49630         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
49631         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
49632         * modules/strdup (EXTRA_DIST): Add strdup.h.
49633         * modules/strftime (EXTRA_DIST): Add strftime.h.
49634         * modules/strndup (EXTRA_DIST): Add strndup.h.
49635         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
49636         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
49637         * modules/time_r (EXTRA_DIST): Add time_r.h.
49638         * modules/timespec (EXTRA_DIST): Add timespec.h.
49639         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
49640         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
49641         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
49642         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
49643         * modules/userspec (EXTRA_DIST): Add userspec.h.
49644         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
49645         * modules/utimens (EXTRA_DIST): Add utimens.h.
49646         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
49647         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
49648         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
49649         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
49650         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
49651         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
49652         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
49653         * modules/yesno (EXTRA_DIST): Add yesno.h.
49654
49655 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
49656
49657         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
49658
49659         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
49660         * m4/dev-ino.m4, same-inode.m4: Remove.
49661
49662         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
49663         * m4/acl.m4 (AC_FUNC_ACL):
49664         * m4/backupfile.m4 (gl_BACKUPFILE):
49665         * m4/c-strtod.m4 (gl_C99_STRTOLD):
49666         * m4/canon-host.m4 (gl_CANON_HOST):
49667         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
49668         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
49669         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
49670         * m4/cloexec.m4 (gl_CLOEXEC):
49671         * m4/close-stream.m4 (gl_CLOSE_STREAM):
49672         * m4/closeout.m4 (gl_CLOSEOUT):
49673         * m4/dirfd.m4 (gl_FUNC_DIRFD):
49674         * m4/dirname.m4 (gl_DIRNAME):
49675         * m4/exclude.m4 (gl_EXCLUDE):
49676         * m4/exitfail.m4 (gl_EXITFAIL):
49677         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
49678         * m4/file-type.m4 (gl_FILE_TYPE):
49679         * m4/filemode.m4 (gl_FILEMODE):
49680         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
49681         * m4/fpending.m4 (gl_FUNC_FPENDING):
49682         * m4/fprintftime.m4 (gl_FPRINTFTIME):
49683         * m4/fts.m4 (gl_FUNC_FTS):
49684         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
49685         * m4/getdate.m4 (gl_GETDATE):
49686         * m4/gethrxtime.m4 (gl_GETHRXTIME):
49687         * m4/getpagesize.m4 (gl_GETPAGESIZE):
49688         * m4/getpass.m4 (gl_FUNC_GETPASS):
49689         * m4/gettime.m4 (gl_GETTIME):
49690         * m4/getugroups.m4 (gl_GETUGROUPS):
49691         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
49692         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
49693         * m4/hard-locale.m4 (gl_HARD_LOCALE):
49694         * m4/hash.m4 (gl_HASH):
49695         * m4/idcache.m4 (gl_IDCACHE):
49696         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
49697         * m4/lchown.m4 (gl_FUNC_LCHOWN):
49698         * m4/long-options.m4 (gl_LONG_OPTIONS):
49699         * m4/lstat.m4 (gl_FUNC_LSTAT):
49700         * m4/md5.m4 (gl_MD5):
49701         * m4/memcasecmp.m4 (gl_MEMCASECMP):
49702         * m4/memcoll.m4 (gl_MEMCOLL):
49703         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
49704         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
49705         * m4/memxor.m4 (gl_MEMXOR):
49706         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
49707         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
49708         * m4/modechange.m4 (gl_MODECHANGE):
49709         * m4/mountlist.m4 (gl_MOUNTLIST):
49710         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
49711         * m4/openat.m4 (gl_FUNC_OPENAT):
49712         * m4/pathmax.m4 (gl_PATHMAX):
49713         * m4/physmem.m4 (gl_PHYSMEM):
49714         * m4/posixtm.m4 (gl_POSIXTM):
49715         * m4/posixver.m4 (gl_POSIXVER):
49716         * m4/quote.m4 (gl_QUOTE):
49717         * m4/quotearg.m4 (gl_QUOTEARG):
49718         * m4/readtokens.m4 (gl_READTOKENS):
49719         * m4/readutmp.m4 (gl_READUTMP):
49720         * m4/regex.m4 (gl_REGEX):
49721         * m4/safe-read.m4 (gl_SAFE_READ):
49722         * m4/safe-write.m4 (gl_SAFE_WRITE):
49723         * m4/same.m4 (gl_SAME):
49724         * m4/save-cwd.m4 (gl_SAVE_CWD):
49725         * m4/savedir.m4 (gl_SAVEDIR):
49726         * m4/settime.m4 (gl_SETTIME):
49727         * m4/sha1.m4 (gl_SHA1):
49728         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
49729         * m4/stat-macros.m4 (gl_STAT_MACROS):
49730         * m4/stat-time.m4 (gl_STAT_TIME):
49731         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
49732         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
49733         * m4/strdup.m4 (gl_FUNC_STRDUP):
49734         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
49735         * m4/strndup.m4 (gl_FUNC_STRNDUP):
49736         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
49737         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
49738         * m4/time_r.m4 (gl_TIME_R):
49739         * m4/timespec.m4 (gl_TIMESPEC):
49740         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
49741         * m4/unlinkdir.m4 (gl_UNLINKDIR):
49742         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
49743         * m4/userspec.m4 (gl_USERSPEC):
49744         * m4/utimecmp.m4 (gl_UTIMECMP):
49745         * m4/utimens.m4 (gl_UTIMENS):
49746         * m4/xalloc.m4 (gl_XALLOC):
49747         * m4/xgetcwd.m4 (gl_XGETCWD):
49748         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
49749         * m4/xreadlink.m4 (gl_XREADLINK):
49750         * m4/xstrtod.m4 (gl_XSTRTOD):
49751         * m4/yesno.m4 (gl_YESNO):
49752         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
49753         to get the necessary .h files and whatnot.
49754
49755 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
49756             Bruno Haible  <bruno@clisp.org>
49757
49758         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
49759         /bin/sh understanding of '!' conditional negation.
49760
49761 2006-08-21  Jim Meyering  <jim@meyering.net>
49762
49763         * modules/openat (Depends-on): Really alphabetize.
49764
49765         * modules/acl (Depends-on): Add error and quote.
49766
49767         * check-module (find_included_lib_files): Add at-func.c to the
49768         ok-to-include-more-than-once white list.
49769
49770         * modules/openat (Depends-on): Add lstat.  Alphabetize.
49771
49772 2006-08-21  Bruno Haible  <bruno@clisp.org>
49773
49774         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
49775         Emit a pkgdata_DATA variable only if some snippets add contents to it.
49776         Reported by Martin Lambers <marlam@marlam.de>.
49777
49778 2006-08-21  Bruno Haible  <bruno@clisp.org>
49779
49780         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
49781         specify an installation location, don't emit a noinst_LIBRARIES or
49782         noinst_LTLIBRARIES assignment.
49783
49784 2006-08-21  Bruno Haible  <bruno@clisp.org>
49785
49786         BeOS portability.
49787         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
49788         BeOS has mbrtowc() but no <wctype.h>.
49789
49790 2006-08-21  Bruno Haible  <bruno@clisp.org>
49791
49792         BeOS portability.
49793         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
49794         exist.
49795
49796 2006-08-21  Bruno Haible  <bruno@clisp.org>
49797
49798         BeOS portability.
49799         * lib/mbchar.h: Include <wctype.h> only if it exists.
49800
49801 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49802
49803         Remove files that are no longer needed by their respective modules.
49804         * m4/obstack.m4: Remove.
49805         * m4/strerror_r.m4: Remove.
49806         * m4/uint32_t.m4: Remove.
49807         * m4/uintptr_t.m4: Remove.
49808         * m4/ullong_max.m4: Remove.
49809         * m4/xstrtoimax.m4: Remove.
49810         * m4/xstrtoumax.m4: Remove.
49811
49812         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
49813         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
49814         dependencies now capture this.
49815
49816         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
49817         Do not use AC_LIBSOURCES, since gnulib modules now do this.
49818         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
49819         * m4/human.m4 (gl_HUMAN): Likewise.
49820         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
49821         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
49822
49823         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
49824
49825         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
49826         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
49827         stdint.
49828         * m4/human.m4 (gl_HUMAN): Likewise.
49829         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
49830         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
49831         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
49832         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
49833         * m4/xstrtol (gl_XSTRTOL): Likewise.
49834
49835         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
49836         AC_TYPE_LONG_LONG_INT.
49837         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
49838         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
49839         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
49840         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
49841
49842         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
49843         on stdbool.
49844
49845         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
49846         (gl_PREREQ_XSTRTOUL): Remove.
49847
49848         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
49849
49850         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
49851         mode.
49852
49853 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49854
49855         Add and change modules to make it easier for coreutils to use
49856         gnulib-tool.
49857         * modules/backupfile (Files): Remove m4/d-ino.m4.
49858         (Depends-on): Add d-ino.
49859         * modules/cycle-check (Depends-on): Add stdint.
49860         (lib_SOURCES): Add cycle-check.h.
49861         * modules/d-ino: New module.
49862         * modules/d-type: New module.
49863         * modules/error (Files): Remove m4/strerror_r.m4.
49864         * modules/filemode (Files): Add m4/st_dm_mode.m4.
49865         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
49866         m4/inttypes_h.m4, m4/uintmax_t.m4.
49867         (Depends-on): Add stdint.
49868         (lib_SOURCES): Add fsusage.h.
49869         * modules/getcwd (Files): Remove d-ino.m4.
49870         (Depends-on): Add d-ino.
49871         * modules/getndelim2 (Depends-on): Add stdint.
49872         * modules/glob (Files): Remove m4/d-type.m4.
49873         (Depends-on): Add d-type.
49874         * modules/host-os: New module.
49875         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
49876         m4/inttypes_h.m4, m4/uintmax_t.m4.
49877         * Depends-on: Add stdint.
49878         (lib_SOURCES): Add human.h.
49879         * modules/inttostr (Files): Remove m4/intmax_t.m4,
49880         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
49881         m4/uintmax_t.m4, m4/ulonglong.m4.
49882         (Depends-on): Add stdint.
49883         (EXTRA_DIST): Add inttostr.h.
49884         * modules/lchmod: New module.
49885         * modules/link-follow: New module.
49886         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
49887         (Depends-on): Add lchmod.
49888         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
49889         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
49890         (Depends-on): Add stdint.
49891         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
49892         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
49893         (Depends-on): Add stdint.
49894         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
49895         * modules/perl: New module.
49896         * modules/regex (Depends-on): Add stdint.
49897         * modules/rmdir-errno: New module.
49898         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
49899         m4/intmax_t.m4.
49900         (Depends-on): Add stdint.
49901         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
49902         m4/uintmax_t.m4.
49903         (Depends-on): Add stdint.
49904         * modules/unlink-busy: New module.
49905         * modules/utimecmp (Depends-on): Add stdint.
49906         * modules/uptime: New module.
49907         * modules/winsz-ioctl: New module.
49908         * modules/winsz-termios: New module.
49909         * modules/xnanosleep (Depends-on): Add nanosleep.
49910         * modules/ullong_max: Remove.
49911         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
49912         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
49913         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
49914         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
49915         (Depends-on): Add inttypes.
49916         (lib_SOURCES): Add xstrtol.h.
49917         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
49918         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
49919         * MODULES.html.sh: Move 'assert' into the assert section.
49920         Move 'dummy' into the linking section.
49921         Remove ullong_max.
49922         Add section for compatibility checks for POSIX:2001 functions,
49923         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
49924         winsz-ioctl, and winsz-termios into it.
49925         Add lchmod.
49926         Add top-level Misc section and put host-os, perl, and uptime
49927         into it.
49928
49929 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
49930
49931         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
49932         now assume the stdint module.  Do not include inttypes.h.
49933         * lib/fsusage.h: Likewise.
49934         * lib/getndelim2.c: Likewise.
49935         * lib/human.h: Likewise.
49936         * lib/inttostr.h: Likewise.
49937         * lib/obstack.c: Likewise.
49938         * lib/regex_internal.h: Likewise.
49939         * lib/tempname.c: Likewise.
49940         * lib/utimecmp.c: Likewise.
49941         * lib/xstrtol.h: Likewise.
49942
49943         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
49944
49945         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
49946         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
49947         * lib/xtime.h: Likewise.
49948
49949 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
49950
49951         * modules/openat (Files): Add lib/fchmodat.c.
49952         Fixes problem reported by Jay Youngman.
49953
49954 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
49955
49956         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
49957         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
49958
49959 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
49960             Bruno Haible  <bruno@clisp.org>
49961
49962         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
49963         and is a script that invokes bison. Tighten the code. Add comments.
49964
49965 2006-08-18  Jim Meyering  <jim@meyering.net>
49966
49967         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
49968         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
49969         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
49970         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
49971
49972 2006-08-18  Bruno Haible  <bruno@clisp.org>
49973
49974         * modules/bison-i18n: New file.
49975         * MODULES.html.sh (Internationalization functions): Add it.
49976
49977 2006-08-18  Bruno Haible  <bruno@clisp.org>
49978
49979         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
49980         sys/statvfs.h. When getmntinfo was found, check its declaration and
49981         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
49982
49983 2006-08-18  Bruno Haible  <bruno@clisp.org>
49984
49985         * m4/bison-i18n.m4: New file, from bison.
49986
49987 2006-08-18  Bruno Haible  <bruno@clisp.org>
49988
49989         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
49990         (ME_DUMMY): Treat "kernfs" as a dummy.
49991         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
49992
49993 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
49994
49995         Update from coreutils.
49996
49997         2006-08-15  Jim Meyering  <jim@meyering.net>
49998
49999         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
50000
50001         2006-01-17  Jim Meyering  <jim@meyering.net>
50002
50003         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
50004
50005         2006-01-11  Jim Meyering  <jim@meyering.net>
50006
50007         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
50008         Check for the lchmod function.
50009
50010 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
50011
50012         Update from coreutils.
50013
50014         * lib/__fpending.h: Add copyright notice.
50015         * lib/fprintftime.h: Likewise.
50016         * lib/savedir.c: Use (C) in copyright notice.
50017         * lib/savedir.h: Likewise.
50018
50019         2006-08-15  Jim Meyering  <jim@meyering.net>
50020
50021         * lib/at-func.c: New file, with the logic of all emulated at-functions.
50022         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
50023         in support of the EXPECTED_ERRNO macro.
50024         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
50025         definitions.  Instead, define the appropriate symbols and include
50026         "at-func.c".
50027         * lib/mkdirat.c (mkdirat): Likewise.
50028         * lib/fchmodat.c (fchmodat): Likewise.
50029         (ENOSYS): Remove definition.
50030         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
50031         it.  Don't include "unistd--.h" -- it wasn't ever used.
50032
50033         2006-01-17  Jim Meyering  <jim@meyering.net>
50034
50035         Rewrite fts.c not to change the current working directory,
50036         by using openat, fstatat, fdopendir, etc..
50037
50038         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
50039         (HAVE_OPENAT_SUPPORT): Define.
50040         [_LIBC] (fchdir): Don't undef or define; no longer used.
50041         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
50042         Now, this `function' always succeeds, and consumes its file descriptor
50043         parameter -- so callers must not close such FDs.  Update callers.
50044         (diropen_fd, opendirat, cwd_advance_fd): New functions.
50045         (diropen): Add parameter, SP.  Adjust all callers.
50046         Implement using diropen_fd, rather than open.
50047         (fts_open): Initialize new member, fts_cwd_fd.
50048         Remove fts_rft-setting code.
50049         (fts_close): Close fts_cwd_fd, if necessary.
50050         (__opendir2): Define in terms of opendir or opendirat,
50051         depending on whether the FST_NOCHDIR flag is set.
50052         (fts_build): Since fts_safe_changedir consumes its FD, and since
50053         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
50054         and close the dup'd file descriptor upon failure.
50055         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
50056         (fts_safe_changedir): Tweak semantics to reflect that this function
50057         now calls cwd_advance_fd and hence consumes its FD argument.
50058         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
50059         [struct FTS] (fts_rft): Remove now-unused member.
50060         [struct FTS] (fts_cycle.state): Improve comment.
50061
50062         * lib/openat.c (openat_needs_fchdir): New function.
50063         * lib/openat.h (openat_needs_fchdir): Declare it.
50064
50065 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
50066
50067         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
50068         Problem and fix reported by Pádraig Brady in
50069         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
50070
50071 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
50072
50073         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
50074
50075 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
50076
50077         * lib/memcoll.c (memcoll): Optimize for the common case where the
50078         arguments are bytewise equal.
50079
50080 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
50081
50082         * doc/regexprops-generic.texi: Add a copyright notice.
50083
50084 2006-08-15  Bruno Haible  <bruno@clisp.org>
50085
50086         * modules/tmpdir (License): Change to LGPL.
50087
50088 2006-08-15  Bruno Haible  <bruno@clisp.org>
50089
50090         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
50091         module.
50092
50093 2006-08-14  Simon Josefsson  <jas@extundo.com>
50094
50095         * config/srclist.txt: Add gnupload.
50096
50097 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
50098
50099         Change copyright notice from LGPL 2 to GPL 2, since that's the
50100         standard form used in the gnulib repository.
50101         * tests/test-lock.c: Likewise.
50102         * tests/test-stdint.c: Likewise.
50103         * tests/test-tls.c: Likewise.
50104
50105         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
50106         prelude-manager.  User shorter URLs for GNU projects, without '?'.
50107         Add copyright notice.
50108
50109         * check-module: Add copyright notice.  Output a copyright
50110         notice if "--version" is specified.
50111         * modules/COPYING: New file.
50112         * tests/test-getaddrinfo.c: Add copyright notice.
50113         * tests/test-verify.c: Likewise.
50114
50115 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
50116
50117         Change copyright notice from LGPL 2 to GPL 2, since that's the
50118         standard form used in the gnulib repository.
50119         * lib/lock.c: LGPL -> GPL.
50120         * lib/lock.h: Likewise.
50121         * lib/strnlen1.c: Likewise.
50122         * lib/strnlen1.h: Likewise.
50123         * lib/tls.c: Likewise.
50124         * lib/tls.h: Likewise.
50125         * lib/tmpdir.c: Likewise.
50126
50127         * lib/TODO: Remove; this belongs only in coreutils.
50128
50129 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
50130
50131         Add copyright notices to long-enough files that lack them, since
50132         otherwise the files aren't clearly free.  Use the same notice that
50133         getdate.texi already uses.
50134         * doc/alloca-opt.texi: Add copyright notice.
50135         * doc/alloca.texi: Likewise.
50136         * doc/ctime.texi: Likewise.
50137         * doc/functions.texi: Likewise.
50138         * doc/gcd.texi: Likewise.
50139         * doc/gnulib-tool.texi: Likewise.
50140         * doc/inet_ntoa.texi: Likewise.
50141         * doc/visibility.texi: Likewise.
50142
50143         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
50144         * doc/quote.texi: Add copyright notice.
50145
50146         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
50147         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
50148         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
50149         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
50150         is now obsolete, and give a pointer to the Sun list.
50151         Add copyright notice.
50152
50153 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
50154
50155         * config/srclistvars.sh: Add copyright notice.
50156
50157 2006-08-14  Eric Blake  <ebb9@byu.net>
50158
50159         Import the following change from libc:
50160
50161         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
50162
50163         Upstream bug 2997.
50164         * lib/misc/error.c: Add space between program name and message if file
50165         name is missing.
50166
50167 2006-08-12  Karl Berry  <karl@gnu.org>
50168
50169         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
50170         remove, these originate in gnulib now.
50171
50172 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50173
50174         * doc/Makefile (standards.info standards.html standards.dvi):
50175         Also depend on make-stds.texi.
50176
50177 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
50178
50179         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
50180         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
50181
50182         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
50183         in wchar_t.  Problem reported by Eric Blake.
50184
50185         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
50186         LEN is smaller than SIZE.  Suggested by Bruno Haible.
50187         Also, help the compiler to keep LEN in a register.
50188
50189 2006-08-11  Eric Blake  <ebb9@byu.net>
50190
50191         * users.txt: Sort.  Add tar.
50192
50193 2006-08-11  Bruno Haible  <bruno@clisp.org>
50194
50195         * users.txt: New file.
50196
50197 2006-08-11  Bruno Haible  <bruno@clisp.org>
50198
50199         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
50200         before <wchar.h>. Needed for OSF/1 and BSD/OS.
50201
50202 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
50203
50204         * modules/snprintf (Depends-on): Remove minmax.
50205         (Maintainer): Add self and Bruno.
50206
50207 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
50208
50209         * lib/.cppi-disable: Add snprintf.h, socket_.h.
50210         * lib/snprintf.c: Include <errno.h> and <limits.h>.
50211         (EOVERFLOW): Define if the system does not.
50212         Do not include "minmax.h"; it wasn't used.
50213         (snprintf): Don't assume size_t promotes to an unsigned type.
50214         Fix bug when generated string was too long for the buffer: the
50215         buffer's contents are supposed to be the initial prefix of the
50216         output.  Don't assume vasnprintf returns EOVERFLOW if the size
50217         exceeds INT_MAX; do the check ourselves.
50218
50219         Import the following changes from libc:
50220
50221         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
50222
50223         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
50224         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
50225         set wc to the byte which couldn't be converted.
50226         (re_string_reconstruct): Don't clear valid_raw_len before calling
50227         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
50228         tip_context using re_string_context_at.
50229
50230         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
50231
50232         * lib/posix/regex.h: g++ still cannot handled [restrict].
50233
50234         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
50235
50236         * lib/posix/regex.h: Remove special handling for VMS.
50237
50238 2006-08-10  Jim Meyering  <jim@meyering.net>
50239
50240         * modules/same-inode: New module.
50241         * modules/dev-ino: New module.
50242         * modules/cycle-check: Depend on these modules, rather than simply
50243         including their .h files.
50244         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
50245         required via m4/cycle-check.m4.
50246         * modules/same: Depend on new same-inode module, rather than
50247         including same-inode.h.
50248         * modules/chdir-safer: New file.
50249
50250         * modules/chown (Depends-on): Add stat-macros.
50251
50252 2006-08-10  Jim Meyering  <jim@meyering.net>
50253
50254         * m4/cycle-check.m4: New file.
50255         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
50256         * m4/dev-ino.m4, m4/same-inode.m4: New files.
50257
50258 2006-08-10  Eric Blake  <ebb9@byu.net>
50259
50260         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
50261         in from original proposal.
50262
50263 2006-08-10  Eric Blake  <ebb9@byu.net>
50264         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
50265
50266         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
50267         namespace.
50268
50269 2006-08-10  Bruno Haible  <bruno@clisp.org>
50270
50271         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
50272         as well.
50273
50274 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
50275
50276         Sync from coreutils.
50277
50278         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
50279
50280         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
50281         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
50282
50283 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
50284
50285         * modules/restrict: Remove; no longer needed now that we assume
50286         Autoconf 2.59 or later.
50287         * MODULES.html.sh: Remove 'restrict'.
50288         * modules/argp (Depends-on): Remove 'restrict'.
50289         * modules/base64 (Depends-on): Likewise.
50290         * modules/gc (Depends-on): Likewise.
50291         * modules/getaddrinfo (Depends-on): Likewise.
50292         * modules/glob (Depends-on): Likewise.
50293         * modules/inet_ntop (Depends-on): Likewise.
50294         * modules/inet_pton (Depends-on): Likewise.
50295         * modules/memxor (Depends-on): Likewise.
50296         * modules/regex (Depends-on): Likewise.
50297         * modules/strtok_r (Depends-on): Likewise.
50298         * modules/time_r (Depends-on): Likewise.
50299
50300 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
50301
50302         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
50303         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
50304         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
50305         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
50306         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
50307         * m4/memxor.m4 (gl_MEMXOR): Likewise.
50308         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
50309         gl_C_RESTRICT replaced by AC_C_RESTRICT.
50310
50311         Merge from coreutils.
50312         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
50313         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
50314         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
50315         * m4/time_r.m4 (gl_TIME_R): Likewise.
50316
50317 2006-08-09  Karl Berry  <karl@gnu.org>
50318
50319         * config/srclist.txt: no more gettext-tools, per Bruno.
50320
50321 2006-08-08  Eric Blake  <ebb9@byu.net>
50322
50323         * modules/verror: New module.
50324         * MODULES.html.sh: Document it.
50325
50326 2006-08-08  Eric Blake  <ebb9@byu.net>
50327
50328         * lib/verror.h, lib/verror.c: New files.
50329
50330 2006-08-08  Eric Blake  <ebb9@byu.net>
50331
50332         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
50333         verror_at_line output complies with GNU Coding Standards even when
50334         file is NULL.
50335
50336 2006-08-07  Bruno Haible  <bruno@clisp.org>
50337
50338         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
50339         versions of AIX.
50340         Reported by Ralf Wildenhues.
50341
50342 2006-08-07  Bruno Haible  <bruno@clisp.org>
50343
50344         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
50345         in an AC_DEFUN. Needed so that the autoconf snippets can use
50346         AC_REQUIRE.
50347
50348 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50349
50350         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50351         Initialize pkgdata_DATA.
50352         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
50353         overriding it.
50354
50355 2006-08-06  Eric Blake  <ebb9@byu.net>
50356
50357         * lib/error.h: Fold in some upstream changes from glibc.
50358         * lib/error.c: Likewise.
50359
50360 2006-08-04  Bruno Haible  <bruno@clisp.org>
50361
50362         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50363         Make the mostlyclean-local rule depend on mostlyclean-generic.
50364         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
50365
50366 2006-07-31  Bruno Haible  <bruno@clisp.org>
50367
50368         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
50369         <stdlib.h>, <string.h>.
50370
50371 2006-07-30  Bruno Haible  <bruno@clisp.org>
50372
50373         * modules/readlink (License): Change to LGPL.
50374
50375 2006-07-30  Bruno Haible  <bruno@clisp.org>
50376
50377         * modules/javaversion (Makefile.am): Distribute javaversion.java and
50378         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
50379         set PKGDATADIR to point to it.
50380
50381 2006-07-30  Bruno Haible  <bruno@clisp.org>
50382
50383         * modules/csharpexec (configure.ac): Comment out macro invocation.
50384         * modules/javaexec (configure.ac): Likewise.
50385         * modules/javacomp-script (configure.ac): Likewise.
50386
50387         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
50388
50389 2006-07-30  Bruno Haible  <bruno@clisp.org>
50390
50391         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
50392         linked-list.
50393
50394 2006-07-30  Bruno Haible  <bruno@clisp.org>
50395
50396         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
50397
50398 2006-07-30  Bruno Haible  <bruno@clisp.org>
50399
50400         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
50401         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
50402         get removed.
50403
50404 2006-07-29  Bruno Haible  <bruno@clisp.org>
50405
50406         Make it possible for gnulib-tool to work with locally modified or
50407         augmented gnulib repositories.
50408         * gnulib-tool (func_usage): Document --local-dir option.
50409         (local_gnulib_dir): New variable.
50410         Handle --local-dir option.
50411         (func_lookup_file): New function.
50412         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
50413         (func_get_description, func_get_filelist, func_get_description,
50414         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
50415         func_get_automake_snippet, func_get_include_directive,
50416         func_get_license, func_get_maintainer): Use func_lookup_file.
50417         (func_import, func_create_testdir): Use func_lookup_file.
50418
50419 2006-07-29  Bruno Haible  <bruno@clisp.org>
50420
50421         * modules/setenv (Depends-on): Add unistd.
50422
50423 2006-07-29  Bruno Haible  <bruno@clisp.org>
50424
50425         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
50426
50427 2006-07-29  Bruno Haible  <bruno@clisp.org>
50428
50429         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
50430
50431 2006-07-29  Bruno Haible  <bruno@clisp.org>
50432
50433         * gnulib-tool (import, update): If there is no Makefile.am, look at
50434         aclocal.m4, instead of bailing out.
50435
50436 2006-07-29  Bruno Haible  <bruno@clisp.org>
50437
50438         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
50439         Categorize the options by when they are useful.
50440
50441 2006-07-29  Bruno Haible  <bruno@clisp.org>
50442
50443         * gnulib-tool (func_usage): Document option --no-libtool.
50444         Handle option --no-libtool.
50445         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
50446         for changed semantics of $libtool variable.
50447         (func_import): Likewise. If libtool is not used, show this through
50448         an option --no-libtool.
50449         (func_create_testdir): Update.
50450
50451 2006-07-29  Bruno Haible  <bruno@clisp.org>
50452
50453         * gnulib-tool (func_import): Extend error message about missing
50454         --doc-base.
50455
50456 2006-07-29  Bruno Haible  <bruno@clisp.org>
50457
50458         * gnulib-tool (func_import): Don't create the $docbase directory if
50459         there is no file to store there.
50460
50461 2006-07-29  Bruno Haible  <bruno@clisp.org>
50462
50463         * gnulib-tool (autoconf_minversion): If a --dir option is given and
50464         relevant, look for configure.ac there, not in the current directory.
50465         Also use a simple search for AC_PREREQ, not "autoconf --trace".
50466
50467 2006-07-29  Bruno Haible  <bruno@clisp.org>
50468
50469         * gnulib-tool (SORT): New variable.
50470         (func_usage): Undocument --assume-autoconf option.
50471         Remove --assume-autoconf option handling.
50472         (autoconf_minversion): Determine from the contents of configure.ac.
50473         (func_import): Remove autoconf_minversion handling.
50474         Suggested by Eric Blake.
50475
50476 2006-07-29  Bruno Haible  <bruno@clisp.org>
50477
50478         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
50479
50480 2006-07-29  Bruno Haible  <bruno@clisp.org>
50481
50482         * config/srclist.txt (*setenv.[ch]): Remove rules.
50483
50484 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50485
50486         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
50487
50488 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50489
50490         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
50491         arpa/inet.h.
50492
50493 2006-07-28  Simon Josefsson  <jas@extundo.com>
50494
50495         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
50496         * modules/inet_pton (Depends-on): Likewise.
50497
50498 2006-07-28  Simon Josefsson  <jas@extundo.com>
50499
50500         * m4/netinet_in_h.m4: New file.
50501
50502 2006-07-28  Simon Josefsson  <jas@extundo.com>
50503
50504         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
50505         #include's.
50506
50507 2006-07-28  Simon Josefsson  <jas@extundo.com>
50508
50509         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
50510         #include's.
50511
50512 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
50513
50514         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
50515         setgid on directories only if they set these bits.
50516         * lib/modechange.h: Remove obsolete comment about masks.
50517
50518 2006-07-28  Eric Blake  <ebb9@byu.net>
50519
50520         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
50521         macro expansion.
50522
50523 2006-07-28  Bruno Haible  <bruno@clisp.org>
50524
50525         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
50526
50527 2006-07-28  Bruno Haible  <bruno@clisp.org>
50528
50529         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
50530
50531 2006-07-28  Bruno Haible  <bruno@clisp.org>
50532
50533         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
50534         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
50535         Define fallbacks.
50536         Avoids link error on FreeBSD 4.x.
50537         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50538
50539         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
50540         encoding.
50541         * lib/mbswidth.c (iswcntrl): Likewise.
50542
50543 2006-07-27  Bruno Haible  <bruno@clisp.org>
50544
50545         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
50546         test.
50547
50548 2006-07-27  Bruno Haible  <bruno@clisp.org>
50549
50550         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
50551         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
50552         defined.
50553
50554 2006-07-26  Eric Blake  <ebb9@byu.net>
50555
50556         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
50557
50558 2006-07-26  Eric Blake  <ebb9@byu.net>
50559
50560         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
50561         like mingw that lack mkstemp.
50562         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
50563         avoid compilation warning on mingw.
50564
50565 2006-07-26  Bruno Haible  <bruno@clisp.org>
50566
50567         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
50568         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
50569         INT_FAST*_MIN, INTPTR_MIN.
50570
50571 2006-07-25  Bruno Haible  <bruno@clisp.org>
50572
50573         * modules/version-etc (Depends-on): Add stdarg.
50574
50575 2006-07-25  Bruno Haible  <bruno@clisp.org>
50576
50577         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
50578         complex commands.
50579
50580 2006-07-25  Bruno Haible  <bruno@clisp.org>
50581
50582         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
50583         defined in <stdarg.h> or config.h.
50584
50585 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
50586
50587         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
50588         (gl_STDIO_SAFER): Remove.
50589
50590 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
50591
50592         * MODULES.html.sh (File stream based Input/Output):
50593         Add fopen-safer, tmpfile-safer; remove stdio-safer.
50594         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
50595         * modules/fopen-safer, modules/tmpfile-safer: New files.
50596         * modules/stdio-safer: Remove.
50597
50598 2006-07-24  Bruno Haible  <bruno@clisp.org>
50599
50600         * modules/tmpdir: New file.
50601         * MODULES.html.sh (File system functions): Add it.
50602
50603 2006-07-24  Bruno Haible  <bruno@clisp.org>
50604
50605         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
50606         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
50607
50608 2006-07-24  Bruno Haible  <bruno@clisp.org>
50609
50610         * modules/clean-temp: New file.
50611
50612 2006-07-24  Bruno Haible  <bruno@clisp.org>
50613
50614         * m4/tmpdir.m4: New file, from GNU gettext.
50615
50616 2006-07-24  Bruno Haible  <bruno@clisp.org>
50617
50618         * lib/tmpdir.h: New file, from GNU gettext.
50619         * lib/tmpdir.c: New file, from GNU gettext.
50620
50621 2006-07-24  Bruno Haible  <bruno@clisp.org>
50622
50623         * lib/clean-temp.h: New file, from GNU gettext.
50624         * lib/clean-temp.c: New file, from GNU gettext.
50625
50626 2006-07-23  Eric Blake  <ebb9@byu.net>
50627
50628         * modules/stdio-safer (Files): Add tmpfile-safer.c.
50629         (Depends-on): Add binary-io.
50630
50631 2006-07-23  Eric Blake  <ebb9@byu.net>
50632
50633         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
50634
50635 2006-07-23  Eric Blake  <ebb9@byu.net>
50636
50637         * lib/tmpfile-safer.c: New file.
50638         * lib/stdio-safer.h (fopen_safer): Add prototype.
50639         * lib/stdio--.h (tmpfile): Make safer.
50640
50641 2006-07-23  Bruno Haible  <bruno@clisp.org>
50642
50643         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
50644         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
50645         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
50646         gl_linked_remove_at): Use it.
50647
50648 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
50649         and Simon Josefsson <jas@extundo.com>
50650
50651         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
50652
50653         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
50654
50655 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
50656
50657         * modules/close-stream: New file.
50658         * modules/closeout (Description): Make it clear that it exits
50659         with a diagnostic on error.
50660         (Depends-on): Add close-stream.  Remove fpending, stdbool.
50661         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
50662
50663 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
50664
50665         * m4/close-stream.m4: New file.
50666
50667 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
50668
50669         * lib/close-stream.c, lib/close-stream.h: New files.
50670
50671 2006-07-22  Bruno Haible  <bruno@clisp.org>
50672
50673         Merge from GNU gettext 0.15.
50674
50675         2006-05-01  Bruno Haible  <bruno@clisp.org>
50676
50677                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
50678
50679         2006-07-22  Bruno Haible  <bruno@clisp.org>
50680
50681                 * modules/javaversion: New file.
50682                 * MODULES.html.sh (Java): Add javaversion.
50683
50684         2006-03-12  Bruno Haible  <bruno@clisp.org>
50685
50686                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
50687
50688         2005-12-04  Bruno Haible  <bruno@clisp.org>
50689
50690                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
50691                 (untested).
50692
50693         2006-06-21  Bruno Haible  <bruno@clisp.org>
50694
50695                 Avoid warnings from recent versions of mcs.
50696                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
50697                 -o, -L, -r any more. Use options documented since mcs-1.0
50698                 instead. Similarly for -g.
50699
50700         2005-12-04  Bruno Haible  <bruno@clisp.org>
50701
50702                 * build-aux/csharpcomp.sh.in: Suffix for resources is
50703                 .resources, not .resource.
50704
50705         2005-07-09  Bruno Haible  <bruno@clisp.org>
50706
50707                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
50708                 add a .dll suffix.
50709                 Reported by Mark Junker <mjscod@gmx.de>.
50710
50711         2006-07-22  Bruno Haible  <bruno@clisp.org>
50712
50713                 * modules/gettext: Upgrade to gettext-0.15.
50714                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
50715                 m4/visibility.m4.
50716                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
50717
50718 2006-07-22  Bruno Haible  <bruno@clisp.org>
50719
50720         Merge from GNU gettext 0.15.
50721
50722         2006-03-25  Bruno Haible  <bruno@clisp.org>
50723
50724                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
50725
50726         2006-07-21  Bruno Haible  <bruno@clisp.org>
50727
50728                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
50729                 "1.1".
50730
50731         2006-05-09  Bruno Haible  <bruno@clisp.org>
50732
50733                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
50734                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
50735                 for the conftestver execution.
50736
50737         2006-05-01  Bruno Haible  <bruno@clisp.org>
50738
50739                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
50740                 optional target-version argument. Verify that the compiler
50741                 groks source of the specified source-version, or add -source
50742                 option as necessary. Verify that the compiler produces
50743                 bytecode in the specified target-version, or add -target and
50744                 -source options as necessary. Make the result of the test
50745                 available as variable CONF_JAVAC. Also log error output in
50746                 config.log.
50747
50748         2006-03-11  Bruno Haible  <bruno@clisp.org>
50749
50750                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
50751
50752         2006-05-09  Bruno Haible  <bruno@clisp.org>
50753
50754                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
50755                 CLASSPATH_SEPARATOR to a semicolon.
50756
50757         2006-03-12  Bruno Haible  <bruno@clisp.org>
50758
50759                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
50760                 available as variable CONF_JAVA, for subsequent autoconf
50761                 tests. Also log error output in config.log.
50762
50763         2006-07-19  Bruno Haible  <bruno@clisp.org>
50764
50765                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
50766                 that getline works on glibc2 systems. Needed to avoid trouble
50767                 in relocatable.c.
50768                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
50769
50770         2005-12-04  Bruno Haible  <bruno@clisp.org>
50771
50772                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
50773                 launcher (untested).
50774
50775         2005-12-04  Bruno Haible  <bruno@clisp.org>
50776
50777                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
50778
50779         2006-07-22  Bruno Haible  <bruno@clisp.org>
50780
50781                 * gettext.m4: Update from GNU gettext-0.15.
50782                 * nls.m4: Likewise.
50783                 * po.m4: Likewise.
50784                 * inttypes-pri.m4: Likewise.
50785                 * inttypes-h.m4: Renamed from inttypes.m4.
50786                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
50787
50788 2006-07-22  Bruno Haible  <bruno@clisp.org>
50789
50790         Merge from GNU gettext 0.15.
50791
50792         2005-07-05  Bruno Haible  <bruno@clisp.org>
50793
50794                 * printf-args.c (printf_fetchargs): Work around broken
50795                 definition of wint_t on mingw.
50796
50797         2005-02-12  Bruno Haible  <bruno@clisp.org>
50798
50799                 * xallocsa.h: Add extern "C" for C++.
50800
50801         2006-05-17  Bruno Haible  <bruno@clisp.org>
50802
50803                 Cygwin portability.
50804                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
50805
50806         2006-04-30  Bruno Haible  <bruno@clisp.org>
50807
50808                 * progreloc.c: Include <mach-o/dyld.h> if available.
50809                 (find_executable): Use _NSGetExecutablePath when possible.
50810
50811         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
50812
50813                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
50814                 function.
50815
50816         2005-12-29  Bruno Haible  <bruno@clisp.org>
50817
50818                 * progreloc.c (set_program_name_and_installdir): Fix
50819                 compilation error.
50820
50821         2005-12-04  Bruno Haible  <bruno@clisp.org>
50822
50823                 Cygwin portability.
50824                 * progreloc.c: Include <windows.h> also on Cygwin.
50825                 (find_executable): Add support for Cygwin.
50826                 (set_program_name_and_installdir): Handle also platforms with
50827                 nonempty EXEEXT.
50828
50829         2006-07-11  Bruno Haible  <bruno@clisp.org>
50830
50831                 * javacomp.c: Fix a comment.
50832                 Reported by Jim Meyering.
50833
50834         2006-04-30  Bruno Haible  <bruno@clisp.org>
50835
50836                 * javacomp.h (compile_java_class): Add source_version,
50837                 target_version arguments.
50838                 * javacomp.c: Rewritten to choose only a compiler that
50839                 respects the specified source_version and target_version.
50840
50841         2006-06-27  Bruno Haible  <bruno@clisp.org>
50842
50843                 Assume correct S_ISDIR macro.
50844                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
50845
50846         2006-07-22  Bruno Haible  <bruno@clisp.org>
50847
50848                 * javaversion.h: New file, from GNU gettext.
50849                 * javaversion.c: New file, from GNU gettext.
50850                 * javaversion.java: New file, from GNU gettext.
50851                 * javaversion.class: New file, from GNU gettext.
50852
50853         2006-05-17  Bruno Haible  <bruno@clisp.org>
50854
50855                 Cygwin portability.
50856                 * javaexec.c (execute_java_class): Test for jview program
50857                 also on Cygwin.
50858
50859         2006-04-09  Bruno Haible  <bruno@clisp.org>
50860
50861                 * fatal-signal.c: Don't include string.h.
50862                 (at_fatal_signal): Use a copying loop instead of memcpy.
50863
50864         2005-12-04  Bruno Haible  <bruno@clisp.org>
50865
50866                 * csharpexec.c: Add support for 'clix' launcher (untested).
50867                 (execute_csharp_using_sscli): New function.
50868                 (execute_csharp_program): Call it.
50869
50870         2006-06-21  Bruno Haible  <bruno@clisp.org>
50871
50872                 Avoid warnings from recent versions of mcs.
50873                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
50874                 -o, -L, -r any more. Use options documented since mcs-1.0
50875                 instead. Similarly for -g.
50876
50877         2005-07-09  Bruno Haible  <bruno@clisp.org>
50878
50879                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
50880                 add a .dll suffix.
50881                 Reported by Mark Junker <mjscod@gmx.de>.
50882
50883         2006-06-17  Bruno Haible  <bruno@clisp.org>
50884
50885                 * config.charset: Update for NetBSD 3.0.
50886
50887         2006-05-17  Bruno Haible  <bruno@clisp.org>
50888
50889                 Cygwin portability.
50890                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
50891
50892         2006-05-16  Bruno Haible  <bruno@clisp.org>
50893
50894                 * localcharset.c [CYGWIN]: Include <windows.h>.
50895                 (get_charset_aliases): For Cygwin, return the same CPxxx
50896                 aliases list as under WIN32.
50897                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
50898                 the environment variables. Fall back to GetACP().
50899
50900         2006-04-05  Bruno Haible  <bruno@clisp.org>
50901
50902                 * config.charset: Update Juan Manuel Guerrero's address.
50903
50904         2005-02-12  Bruno Haible  <bruno@clisp.org>
50905
50906                 * allocsa.h: Add extern "C" for C++.
50907
50908         2005-02-10  Bruno Haible  <bruno@clisp.org>
50909
50910                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
50911                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
50912
50913         2006-07-22  Bruno Haible  <bruno@clisp.org>
50914
50915                 * gettext.h: Update to GNU gettext-0.15.
50916
50917 2006-07-22  Bruno Haible  <bruno@clisp.org>
50918
50919         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
50920         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
50921         lib-prefix.m4, longdouble.m4, ssize_t.m4.
50922
50923 2006-07-21  Eric Blake  <ebb9@byu.net>
50924
50925         * modules/stdlib-safer: New file.
50926         * MODULES.html.sh (File stream based Input/Output): Add
50927         stdlib-safer.
50928
50929 2006-07-21  Eric Blake  <ebb9@byu.net>
50930
50931         * lib/stdlib-safer.h: New file from coreutils, required by
50932         stdlib--.h.
50933
50934 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
50935
50936         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
50937
50938 2006-07-20  Bruno Haible  <bruno@clisp.org>
50939
50940         * gnulib-tool: Recognize new option --assume-autoconf.
50941         (autoconf_minversion): New variable.
50942         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
50943
50944 2006-07-20  Bruno Haible  <bruno@clisp.org>
50945
50946         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
50947
50948 2006-07-19  Derek R. Price  <derek@ximbiot.com>
50949
50950         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
50951         Reindent and repaginate.
50952
50953 2006-07-19  Derek Price  <derek@ximbiot.com>
50954
50955         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
50956         Correct grammar.
50957
50958 2006-07-17  Bruno Haible  <bruno@clisp.org>
50959
50960         * modules/list: New file.
50961         * modules/array-list: New file.
50962         * modules/carray-list, modules/carray-list-tests: New files.
50963         * modules/linked-list, modules/linked-list-tests: New files.
50964         * modules/avltree-list, modules/avltree-list-tests: New files.
50965         * modules/rbtree-list, modules/rbtree-list-tests: New files.
50966         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
50967         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
50968         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
50969         * modules/oset: New file.
50970         * modules/array-oset: New file.
50971         * modules/avltree-oset, modules/avltree-oset-tests: New files.
50972         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
50973         * tests/test-carray_list.c: New file.
50974         * tests/test-linked_list.c: New file.
50975         * tests/test-avltree_list.c: New file.
50976         * tests/test-rbtree_list.c: New file.
50977         * tests/test-linkedhash_list.c: New file.
50978         * tests/test-avltreehash_list.c: New file.
50979         * tests/test-rbtreehash_list.c: New file.
50980         * tests/test-avltree_oset.c: New file.
50981         * tests/test-rbtree_oset.c: New file.
50982         * MODULES.html.sh (Container data structures): New section.
50983
50984 2006-07-17  Bruno Haible  <bruno@clisp.org>
50985
50986         * m4/gl_list.m4: New file.
50987
50988 2006-07-17  Bruno Haible  <bruno@clisp.org>
50989
50990         * lib/gl_list.h: New file.
50991         * lib/gl_list.c: New file.
50992         * lib/gl_array_list.h: New file.
50993         * lib/gl_array_list.c: New file.
50994         * lib/gl_carray_list.h: New file.
50995         * lib/gl_carray_list.c: New file.
50996         * lib/gl_linked_list.h: New file.
50997         * lib/gl_linked_list.c: New file.
50998         * lib/gl_anylinked_list1.h: New file.
50999         * lib/gl_anylinked_list2.h: New file.
51000         * lib/gl_avltree_list.h: New file.
51001         * lib/gl_avltree_list.c: New file.
51002         * lib/gl_anyavltree_list1.h: New file.
51003         * lib/gl_anyavltree_list2.h: New file.
51004         * lib/gl_rbtree_list.h: New file.
51005         * lib/gl_rbtree_list.c: New file.
51006         * lib/gl_anyrbtree_list1.h: New file.
51007         * lib/gl_anyrbtree_list2.h: New file.
51008         * lib/gl_anytree_list1.h: New file.
51009         * lib/gl_anytree_list2.h: New file.
51010         * lib/gl_linkedhash_list.h: New file.
51011         * lib/gl_linkedhash_list.c: New file.
51012         * lib/gl_anyhash_list1.h: New file.
51013         * lib/gl_anyhash_list2.h: New file.
51014         * lib/gl_avltreehash_list.h: New file.
51015         * lib/gl_avltreehash_list.c: New file.
51016         * lib/gl_rbtreehash_list.h: New file.
51017         * lib/gl_rbtreehash_list.c: New file.
51018         * lib/gl_anytreehash_list1.h: New file.
51019         * lib/gl_anytreehash_list2.h: New file.
51020
51021         * lib/gl_oset.h: New file.
51022         * lib/gl_oset.c: New file.
51023         * lib/gl_array_oset.h: New file.
51024         * lib/gl_array_oset.c: New file.
51025         * lib/gl_avltree_oset.h: New file.
51026         * lib/gl_avltree_oset.c: New file.
51027         * lib/gl_rbtree_oset.h: New file.
51028         * lib/gl_rbtree_oset.c: New file.
51029         * lib/gl_anytree_oset.h: New file.
51030
51031 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
51032
51033         * m4/mkancesdirs.m4: New file.
51034         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
51035         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
51036         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
51037         it.
51038
51039 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
51040
51041         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
51042         * lib/mkancesdirs.h: New files.
51043         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
51044         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
51045         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
51046         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
51047         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
51048         callers changed.  Revamp internals significantly, by not
51049         attempting to create directories that are temporarily more
51050         permissive than the final results.  Do not attempt to use
51051         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
51052         This removes some race conditions, fixes some bugs, and simplifies
51053         things.  Use new dirchownmod function to do owner and mode changes.
51054         * lib/mkdir-p.h: Likewise.
51055         * lib/modechange.c (octal_to_mode): New function.
51056         (struct mode_change): New member mentioned.
51057         (make_node_op_equals): New arg mentioned.  All callers changed.
51058         (mode_compile): Keep track of which mode bits the user has explicitly
51059         mentioned.
51060         (mode_adjust): New arg DIR, so that we implement the X op correctly.
51061         New arg PMODE_BITS, to keep track of which mode bits the user
51062         mentioned; it treats S_ISUID and S_ISGID speciall.
51063         All callers changed.
51064         * lib/modechange.h: Likewise.
51065
51066 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
51067
51068         * MODULES.html.sh: Add mkancestors.
51069         * modules/mkancesdirs: New module.
51070         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
51071         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
51072         The chdir-safer and afs files are now orphans; I'll remove them
51073         unless someone speaks up.
51074         Add lib/dirchownmod.c, lib/dirchownmod.h.
51075         (Depends-on): Remove alloca, chown, save-cwd, dirname.
51076         Add lchown, mkancesdirs.
51077         (Maintainer): Add self.
51078
51079 2006-07-15  Karl Berry  <karl@gnu.org>
51080
51081         * gnulib-tool: help message wording/arrangement.
51082
51083 2006-07-14  Simon Josefsson  <jas@extundo.com>
51084
51085         * doc/gnulib.texi (Libtool and Windows): New section.
51086
51087 2006-07-12  Simon Josefsson  <jas@extundo.com>
51088
51089         * modules/gendocs (License): Fix license, approved by Karl.
51090
51091 2006-07-12  Eric Blake  <ebb9@byu.net>
51092
51093         * MODULES.html.sh: Add gendocs.
51094
51095 2006-07-11  Eric Blake  <ebb9@byu.net>
51096
51097         * modules/fdl: New module, to install doc/fdl.texi.
51098         * MODULES.html.sh: Add new section for documentation modules.
51099         * gnulib-tool: Avoid space-tab.
51100         (--doc-base): New option, to manage files from doc.
51101
51102 2006-07-11  Eric Blake  <ebb9@byu.net>
51103
51104         * m4/absolute-header.m4: Fix comments to match recent change.
51105
51106 2006-07-11  Eric Blake  <ebb9@byu.net>
51107
51108         * gnulib-tool: List --doc-base before --tests-base.
51109
51110 2006-07-11  Derek R. Price  <derek@ximbiot.com>
51111
51112         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
51113
51114 2006-07-11  Bruno Haible  <bruno@clisp.org>
51115
51116         * README: Mention where to put documentation.
51117
51118 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51119
51120         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
51121
51122 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
51123
51124         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
51125         to stdint.m4.
51126
51127 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
51128
51129         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
51130         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
51131         "no/such/file/stdint.h" when there is no such file, so that
51132         the resulting C code can be parsed by dodgy compilers.
51133         Problems reported by Bob Proulx.
51134
51135 2006-07-10  Derek R. Price  <derek@ximbiot.com>
51136
51137         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
51138         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
51139         macros into the GNU _D_EXACT_NAMLEN.
51140         * lib/savedir.c:  Likewise.
51141         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
51142
51143 2006-07-10  Derek R. Price  <derek@ximbiot.com>
51144         and Paul Eggert  <eggert@cs.ucla.edu>
51145
51146         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
51147         * m4/savedir.m4:
51148         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
51149         macros into the GNU _D_EXACT_NAMLEN.
51150
51151 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
51152
51153         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
51154         around the absolute name, to work around a problem with the HP-UX
51155         11.23 native C compiler, reported by Bob Proulx.
51156
51157 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
51158
51159         * doc/maintain.texi, make-stds.texi: Sync from
51160         <http://savannah.gnu.org/projects/gnustandards>.
51161
51162 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
51163
51164         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
51165
51166 2006-07-09  Jim Meyering  <jim@meyering.net>
51167
51168         * m4/glob.m4: Remove a doubled word in a comment.
51169
51170 2006-07-09  Jim Meyering  <jim@meyering.net>
51171
51172         * lib/argp-pv.c: Remove a doubled word in a comment.
51173         * lib/check-version.c (check_version): Likewise.
51174         * lib/javacomp.c (compile_java_class): Likewise.
51175
51176 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
51177
51178         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
51179         for the benefit of people using Autoconf 2.60.  If you want to
51180         support older Autoconf versions you can copy m4/onceonly_2_57.m4
51181         (or m4/onceonly.m4, if pre-2.57) manually.
51182
51183 2006-07-08  Jim Meyering  <jim@meyering.net>
51184
51185         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
51186         comment.
51187         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
51188         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
51189         comment.
51190
51191 2006-07-08  Jim Meyering  <jim@meyering.net>
51192
51193         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
51194
51195 2006-07-07  Simon Josefsson  <jas@extundo.com>
51196
51197         * tests/test-crc.c: Change expected crc value, the test vector
51198         were probably computed using the old broken crc.c?
51199
51200 2006-07-06  Simon Josefsson  <jas@extundo.com>
51201
51202         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
51203         now the canonical place for the M4 file).
51204
51205         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
51206         from the sys_socket dependency now.
51207
51208         * modules/inet_pton (Files): Ditto.
51209
51210         * modules/inet_ntop (Files): Ditto.
51211
51212 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
51213
51214         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
51215         not gl_PREREQ_GETUSERSHELL.
51216
51217 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51218
51219         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
51220         with only one argument, for Autoconf 2.60.
51221         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
51222         expand to nothing, so add a shell command to avoid syntax error.
51223         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
51224
51225 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51226
51227         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
51228
51229 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
51230
51231         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
51232         no longer needed.  Check for isblank decl.
51233         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
51234         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
51235         of existence.
51236
51237 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
51238
51239         * lib/getloadavg.c: Use __VMS, not VMS.
51240         * lib/getopt.c: Likewise.
51241         * lib/getpagesize.h: Likewise.
51242         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
51243         and probably does not work.
51244
51245 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
51246
51247         * lib/.cppi-disable: Add wcwidth.
51248         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
51249         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
51250         (ISGRAPH): Remove.  All uses changed to isgraph.
51251         (FOLD) [!defined _LIBC]: Remove special case.
51252         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
51253         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
51254         HAVE_ISBLANK.
51255         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
51256         case.
51257
51258 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
51259
51260         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
51261         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
51262         brackets.  Other minor changes to suppress some compiler
51263         warnings.
51264
51265 2006-07-06  Derek R. Price  <derek@ximbiot.com>
51266         and Paul Eggert  <eggert@cs.ucla.edu>
51267
51268         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
51269         of invoking obsolescent AC_HEADER_DIRENT macro.
51270         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
51271         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
51272         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
51273         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
51274         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
51275         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
51276         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
51277         * m4/readdir.m4: Remove; no longer needed.
51278
51279 2006-07-06  Derek R. Price  <derek@ximbiot.com>
51280         and Paul Eggert  <eggert@cs.ucla.edu>
51281
51282         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
51283         Don't worry about this obsolete case any more.
51284         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
51285         directories.
51286         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
51287         worry about this obsolete case any more.
51288         * lib/fts.c: Likewise.
51289         * lib/getcwd.c: Likewise.
51290         * lib/glob.h: Likewise.
51291         * lib/savedir.c: Likewise.
51292
51293 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
51294
51295         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
51296         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
51297         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
51298         needed.
51299         All uses removed.
51300         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
51301         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
51302         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
51303         needed.
51304         * m4/getdate.m4 (gl_GETDATE): Likewise.
51305         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
51306         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
51307         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
51308         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
51309         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
51310         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
51311         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
51312         needed.
51313
51314 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
51315
51316         * lib/memcasecmp.c: Include <limits.h>.
51317         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
51318         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
51319         Don't assume isdigit succeeds only on '0' through '9'.
51320
51321 2006-07-05  Eric Blake  <ebb9@byu.net>
51322
51323         * modules/getaddrinfo (Depends-on): Add snprintf.
51324
51325 2006-07-05  Eric Blake  <ebb9@byu.net>
51326
51327         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
51328         to avoid 'header present but could not be compiled' on cygwin.
51329
51330 2006-07-05  Eric Blake  <ebb9@byu.net>
51331
51332         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
51333         missing from netdb.h.
51334         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
51335
51336 2006-07-05  Derek R. Price  <derek@ximbiot.com>
51337
51338         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
51339         no longer needed.
51340         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
51341         * m4/getdate.m4 (gl_GETDATE): Likewise.
51342         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
51343         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
51344         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
51345         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
51346         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
51347
51348 2006-07-05  Derek R. Price  <derek@ximbiot.com>
51349
51350         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
51351         All uses of is_space replaced by isspace.
51352         * lib/exit.h: Don't talk about STDC_HEADERS.
51353         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
51354         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
51355         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
51356         replaced by isprint etc.
51357         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
51358         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
51359         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
51360         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
51361         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
51362         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
51363
51364 2006-07-05  Bruno Haible  <bruno@clisp.org>
51365
51366         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
51367         the function exists, before testing against AIX.
51368         Reported by Martin Lambers <marlam@marlam.de>.
51369
51370 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
51371
51372         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
51373         From Mark D. Baushke.
51374
51375 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
51376
51377         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
51378         to the absolute name, not just one, to bypass Sun C 5.8's
51379         "warning: #include of /usr/include/... may be non-portable".
51380
51381 2006-07-04  Eric Blake  <ebb9@byu.net>
51382
51383         * modules/dirname-tests: New test module.
51384         * tests/test-dirname.c: New file, replacing dirname.c
51385         TEST_DIRNAME section that was recently deleted.
51386
51387 2006-07-04  Bruno Haible  <bruno@clisp.org>
51388
51389         Assume ANSI C header files and <ctype.h> functions.
51390         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
51391         (mbsnwidth): Use isprint, iscntrl instead.
51392
51393 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51394
51395         Merge from coreutils.
51396         * MODULES.html.sh: Add xstrtold.
51397         * modules/xstrtold: New file.
51398         * modules/cycle-check (Files): Add lib/same-inode.h.
51399         * modules/dirname (Files): Add m4/double-slash-root.m4.
51400         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
51401         * modules/mkdir-p (Files): Add lib/same-inode.h.
51402         * modules/same (Files): Add lib/same-inode.h.
51403
51404 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51405
51406         * m4/absolute-header.m4: Renamed from full-header-path.m4.
51407         This is to keep the terminology clean; POSIX talks about
51408         "absolute pathnames", not "full pathnames", but the GNU
51409         Coding Standards say to use "path" for something else;
51410         so use "absolute" to keep both sides happy.
51411         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
51412         Set gl_absolute_header, not gl_full_header_path.
51413         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
51414         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
51415         All uses changed.
51416
51417         Merge from coreutils.
51418
51419         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
51420
51421         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
51422         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
51423         want to require the building of c-strtod.o.
51424         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
51425         needs -lm directly.
51426         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
51427
51428         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
51429
51430         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
51431         --as-needed option if available.  Problem reported by Albert Chin in
51432         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
51433         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
51434         cc merely issues a bunch of annoying warnings for --as-needed
51435         (this problem was reported by Bob Proulx).  Also, try linking with
51436         -lm to detect a bug in binutils 2.16 (this problem was reported
51437         by Ralf Wildenhues).
51438
51439         2006-06-18  Jim Meyering  <jim@meyering.net>
51440
51441         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
51442         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
51443         macro.
51444         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
51445         also check for glibc-2.4's abort-inducing bug.
51446
51447         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
51448         Low-probability clean-up should be to use rmdir to get rid of
51449         the just-created directory, not unlink.
51450
51451         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
51452         configure fail, and request a bug report to inform us about it.
51453         Add a comment that, barring reports to the contrary, in 2007 we'll
51454         assume ftruncate is universally available.
51455
51456         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
51457
51458         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
51459
51460         2006-03-12  Jim Meyering  <jim@meyering.net>
51461
51462         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
51463         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
51464         * m4/same.m4 (gl_SAME): Likewise.
51465         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
51466
51467         2006-03-11  Eric Blake  <ebb9@byu.net>
51468
51469         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
51470         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
51471         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
51472         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
51473
51474 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
51475
51476         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
51477         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
51478         reported by Mark D. Baushke, one in
51479         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
51480
51481         Merge from coreutils.
51482
51483         * lib/.cppi-disable: Add stdint_.h.
51484         * lib/.cvsignore: Add stdint.h.
51485
51486         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
51487
51488         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
51489         both double and long double versions.
51490         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
51491         * lib/xstrtold.c: New file.
51492         * lib/xstrtod.h (xstrtold): New decl.
51493
51494         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
51495
51496         * lib/filemode.c (setst): Remove.
51497         (strmode): Rewrite to avoid setst.  This makes the code shorter,
51498         (arguably) clearer, and the generated code is a bit smaller on my
51499         Debian GNU/Linux stable x86 host.
51500
51501         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
51502
51503         * lib/filemode.c: Include "filemode.h" first, to test the interface.
51504         Assume that filemode.h includes sys/types.h and sys/stat.h.
51505         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
51506         (ftypelet): Reorder to put common cases first, for efficiency.
51507         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
51508         to do 'M'.
51509         (strmode): Renamed from mode_string, and now stores 12 bytes instead
51510         of 10, for compatibility with FreeBSD.  All callers changed.
51511         (filemodestring): Now stores 12 bytes instead of 10, and sets file
51512         types that can't be deduced solely from st_mode.  First arg is now a
51513         const pointer.
51514         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
51515         (strmode): Renamed from mode_string.
51516         (filemodestring): New decl.
51517         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
51518         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
51519         needed.
51520         (S_ISPORT, S_ISWHT): New macros, if not already defined.
51521
51522         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
51523
51524         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
51525         fsusage.h now does that.  Include fsusage.h first, to test interface.
51526         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
51527         at most one method (the old code could have generated decls that
51528         didn't conform to C89, not that this was ever exercised).
51529         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
51530
51531         2006-03-19  Jim Meyering  <jim@meyering.net>
51532
51533         Work even in a chroot where d_ino values for entries in "/"
51534         don't match the stat.st_ino values for the same names.
51535         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
51536         number, iterate through all entries again, using lstat instead.
51537         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
51538         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
51539
51540         * lib/getcwd.c (__getcwd): Clarify a comment.
51541         Use memcpy in place of a call to strcpy.
51542
51543         2006-03-12  Jim Meyering  <jim@meyering.net>
51544
51545         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
51546         matches that of the current directory (which we're about to chdir ".."
51547         out of), then save the dev-ino of the parent, instead.
51548
51549         * lib/same-inode.h (SAME_INODE): New file/macro.
51550         * lib/chdir-safer.c (SAME_INODE): Remove definition.
51551         Include "same-inode.h", instead.
51552         * lib/same.c: Likewise.
51553         * lib/cycle-check.h: Include "same-inode.h".
51554         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
51555         * lib/cycle-check.c (SAME_INODE): Remove definition.
51556         * lib/root-dev-ino.h: Include "same-inode.h".
51557
51558         2006-03-11  Eric Blake  <ebb9@byu.net>
51559
51560         * lib/same.c (same_name): s/base_name/last_component/
51561         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
51562         * lib/filenamecat.c (file_name_concat): Likewise.
51563
51564         2006-03-11  Eric Blake  <ebb9@byu.net>,
51565                     Paul Eggert  <eggert@cs.ucla.edu>
51566
51567         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
51568         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
51569         drive prefix.
51570         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
51571         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
51572         (last_component): New method.
51573         * lib/dirname.c (dir_len): Determine when drive letters need a
51574         subsequent slash.  Preserve // when it is special.
51575         (dir_name): Don't append dot when drive letter is absolute.
51576         [TEST_DIRNAME]: Move into a full-blown gnulib test.
51577         * lib/basename.c (base_name): New semantics - malloc the result.
51578         Preserve // when it is special.  Preserve relative files that look
51579         like drive letters.
51580         (base_len): Preserve // when it is special.
51581         (last_component): New method, similar to old base_name semantics.
51582         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
51583         base_name.  Strip redundant slashes from ///.
51584
51585 2006-07-03  Jim Meyering  <jim@meyering.net>
51586
51587         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
51588         macro is used before the first cycle_check call.
51589
51590 2006-07-03  Eric Blake  <ebb9@byu.net>
51591
51592         * modules/dirname (Depends-on): Add xstrndup.
51593
51594 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
51595
51596         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
51597         test cases, so that config.log is a bit easier to follow.
51598
51599 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
51600
51601         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
51602         both are 64 bits, since this seems to be the tradition, and this
51603         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
51604         we ever run into a host that prefers long long to long in this
51605         case, we'll need another configure-time test.  Problem reported by
51606         Jim Meyering.
51607
51608 2006-07-02  Eric Blake  <ebb9@byu.net>
51609
51610         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
51611
51612 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
51613
51614         * modules/inttypes (Depends-on): No longer depends on stdint.
51615         * modules/stdint (Description): Say more about assumptions.
51616         Say that the fast types might differ.  Say macros are used.
51617         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
51618         (Makefile.am): Revise list of substituted symbols to match
51619         new stdint.m4.
51620         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
51621         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
51622         * tests/test-stdint.c (verify_same_types)
51623         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
51624         the code conforms to C99/C89.
51625         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
51626         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
51627
51628 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
51629
51630         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
51631         but fix a bug, by requiring at least 64 bits.
51632         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
51633         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
51634         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
51635         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
51636
51637         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
51638         changes.  Make 2.59 a prerequisite.  Check and substitute for
51639         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
51640         inttypes.h.  Do not use special include files; just use the
51641         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
51642         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
51643         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
51644         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
51645         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
51646         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
51647         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
51648         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
51649         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
51650         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
51651         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
51652         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
51653         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
51654         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
51655         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
51656         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
51657         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
51658         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
51659         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
51660         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
51661         WINT_MAX.  Check for C99 conformance more strictly, by detecting
51662         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
51663         not check for things that C99 does not require, e.g., int8_t.  If
51664         a test isn't needed unless <stdint.h> isn't working, and is
51665         unlikely to be needed for any other reason, then don't do it
51666         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
51667         size_t, since we assume C89 freestanding at least.  Do not check
51668         for sig_atomic_t, wchar_t, or wint_t, since the code now does
51669         the right thing even if the types are not defined.  Instead use:
51670         (gl_STDINT_TYPE_PROPERTIES): New macro.
51671         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
51672         testing whether <sys/types.h> clashes, as Autoconf does this for
51673         us now.  All uses removed.
51674         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
51675         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
51676         (gl_CHECK_TYPE_SAME):
51677         Remove; no longer needed.
51678         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
51679         exists, since we'll return 0 anyway in that case.
51680         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
51681
51682 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
51683
51684         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
51685         possible collision with system files.
51686         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
51687         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
51688         WCHAR_MIN and WCHAR_MAX in this case.
51689         (<stddef.h>): Do not include; no longer needed.
51690         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
51691         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
51692         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
51693         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
51694         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
51695         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
51696         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
51697         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
51698         !defined(__c99))]: Include in this case too, since it's harmless
51699         now.
51700         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
51701         dangerous to do so.
51702         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
51703         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
51704         (_STDINT_MIN, _STDINT_MAX): New macros.
51705         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
51706         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
51707         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
51708         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
51709         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
51710         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
51711         macros, not typedefs; this simplifies things quite a bit.
51712         Use long int for all types narrower than int64_t.
51713         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
51714         Define in terms of long long int or int64_t or long int,
51715         not int64_t or int32_t.  This saves some compile-time testing.
51716         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
51717         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
51718         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
51719         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
51720         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
51721         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
51722         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
51723         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
51724         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
51725         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
51726         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
51727         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
51728         undef any previous version and define our own version, for
51729         simplicity and consistency with the new macros for types.
51730         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
51731         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
51732         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
51733         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
51734         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
51735         @WINT_T_SUFFIX@ to keep things simple here.
51736         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
51737         Simplify by assuming typical 8/16/32/64 host, since we're
51738         already doing that elsewhere anyway.
51739         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
51740         and assume long long int is 64 bits if available.  This
51741         speeds up 'configure'.
51742
51743 2006-07-01  Eric Blake  <ebb9@byu.net>
51744
51745         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
51746         Reported by Andreas Buening.
51747
51748 2006-07-01  Eric Blake  <ebb9@byu.net>
51749
51750         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
51751
51752 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
51753
51754         * lib/getaddrinfo.c: fixed typo
51755
51756 2006-06-29  Jim Meyering  <jim@meyering.net>
51757
51758         * modules/strftime (Maintainer): Add my name, since with the
51759         FPRINTFTIME changes strftime.c has forked from glibc.
51760
51761 2006-06-29  Eric Blake  <ebb9@byu.net>
51762
51763         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
51764
51765 2006-06-29  Eric Blake  <ebb9@byu.net>
51766
51767         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
51768
51769 2006-06-29  Eric Blake  <ebb9@byu.net>
51770
51771         * lib/stat_.h: New file.
51772
51773 2006-06-29  Eric Blake  <ebb9@byu.net>
51774
51775         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
51776         unused static function.
51777
51778 2006-06-29  Eric Blake  <ebb9@byu.net>
51779
51780         * doc/functions.texi (Function Portability): Document missing lstat
51781         on mingw.
51782
51783 2006-06-29  Eric Blake  <ebb9@byu.net>
51784
51785         * MODULES.html.sh: Add sys_stat.
51786         * modules/sys_stat: New module.
51787         * modules/mkstemp (Depends-on): Add sys_stat.
51788
51789 2006-06-29  Derek R. Price  <derek@ximbiot.com>
51790
51791         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
51792
51793 2006-06-29  Derek R. Price  <derek@ximbiot.com>
51794
51795         * m4/c-bs-a.m4: Removed.
51796
51797 2006-06-29  Derek R. Price  <derek@ximbiot.com>
51798
51799         * lib/strftime.c: Assume strftime() exists.
51800
51801 2006-06-29  Derek Price  <derek@ximbiot.com>
51802
51803         * modules/c-bs-a: Removed - \a is C89.
51804         * MODULES.html.sh: Remove c-bs-a.
51805
51806 2006-06-29  Bruno Haible  <bruno@clisp.org>
51807
51808         * modules/wcwidth (License): Change to LGPL.
51809
51810 2006-06-28  Simon Josefsson  <jas@extundo.com>
51811
51812         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
51813         on _WIN32.
51814
51815         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
51816         getnameinfo.
51817
51818 2006-06-28  Simon Josefsson  <jas@extundo.com>
51819
51820         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
51821
51822 2006-06-28  Simon Josefsson  <jas@extundo.com>
51823
51824         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
51825         functions there.  It will succeed on Windows XP, but on Windows
51826         2000 and (presumably) earlier, it will fail, and use the internal
51827         re-implementation.
51828         (use_win32_p): New function.
51829         (getaddrinfo): Use strtoul on servname, to support numeric ports.
51830         Support AI_NUMERICSERV to disable getservbyname.
51831         (getnameinfo): New function, only supports
51832         NI_NUMERICHOST|NI_NUMERICSERV for now.
51833
51834         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
51835         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
51836         getnameinfo.
51837
51838 2006-06-28  Eric Blake  <ebb9@byu.net>
51839
51840         * modules/wcwidth: New file.
51841         * modules/mbchar (Depends-on): Add wcwidth.
51842         * modules/mbswidth (Depends-on): Add wcwidth.
51843         * MODULES.html.sh: Add wcwidth.
51844
51845 2006-06-28  Eric Blake  <ebb9@byu.net>
51846
51847         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
51848         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
51849
51850 2006-06-28  Eric Blake  <ebb9@byu.net>
51851
51852         * lib/xvasprintf.h: Fix comments.
51853
51854 2006-06-28  Eric Blake  <ebb9@byu.net>
51855
51856         * lib/mbchar.h (wcwidth): Include wcwidth.h.
51857         * lib/mbswidth.c (wcwidth): Move from here...
51858         * lib/wcwidth.h: ...to this new file.
51859
51860 2006-06-28  Derek R. Price  <derek@ximbiot.com>
51861
51862         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
51863
51864         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
51865         it's obsolete.
51866         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
51867
51868 2006-06-28  Derek R. Price  <derek@ximbiot.com>
51869
51870         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
51871         Autoconf 2.60 says this stuff was obsolete.
51872
51873 2006-06-28  Bruno Haible  <bruno@clisp.org>
51874
51875         * modules/wcwidth (Files): Add m4/wchar_t.m4.
51876
51877 2006-06-28  Bruno Haible  <bruno@clisp.org>
51878
51879         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
51880         gt_TYPE_WCHAR_T.
51881
51882 2006-06-28  Bruno Haible  <bruno@clisp.org>
51883
51884         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
51885         declaration for wcwidth.
51886         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
51887
51888 2006-06-28  Bruno Haible  <bruno@clisp.org>
51889
51890         * lib/mkdtemp.c [MINGW]: Include <io.h>.
51891         (mkdir): Define using _mkdir.
51892
51893 2006-06-28  Bruno Haible  <bruno@clisp.org>
51894
51895         * lib/getaddrinfo.h: Fix POSIX URL.
51896         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
51897         _WIN32.
51898         (use_win32_p): Make static.
51899         (getaddrinfo): Reject service name if it is empty or does not consist
51900         solely of decimal digits, or if its value is > 65535.
51901         (getnameinfo): Remove useless casts.
51902
51903 2006-06-27  Simon Josefsson  <jas@extundo.com>
51904
51905         * modules/sys_select: New file, suggested by Bruno Haible, Paul
51906         Eggert and Martin Lambers.
51907
51908 2006-06-27  Simon Josefsson  <jas@extundo.com>
51909
51910         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
51911         Eggert and Martin Lambers.
51912
51913 2006-06-27  Bruno Haible  <bruno@clisp.org>
51914
51915         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
51916         result to 0, not to empty.
51917         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
51918
51919 2006-06-27  Bruno Haible  <bruno@clisp.org>
51920
51921         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
51922
51923 2006-06-26  Simon Josefsson  <jas@extundo.com>
51924
51925         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
51926         present.
51927
51928 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
51929
51930         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
51931         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
51932         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
51933
51934 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
51935
51936         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
51937
51938 2006-06-26  Bruno Haible  <bruno@clisp.org>
51939
51940         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
51941
51942 2006-06-26  Bruno Haible  <bruno@clisp.org>
51943
51944         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
51945
51946 2006-06-26  Bruno Haible  <bruno@clisp.org>
51947
51948         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
51949         SGI C compiler in pre-C99 mode.
51950         Suggested by Mark D. Baushke and Larry Jones.
51951
51952 2006-06-26  Bruno Haible  <bruno@clisp.org>
51953
51954         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
51955         WCHAR_MAX.
51956         Reported by Mark D. Baushke and Larry Jones.
51957
51958 2006-06-26  Bruno Haible  <bruno@clisp.org>
51959
51960         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
51961         in pre-C99 mode.
51962         Suggested by Mark D. Baushke and Larry Jones.
51963
51964 2006-06-23  Simon Josefsson  <jas@extundo.com>
51965             Bruno Haible  <bruno@clisp.org>
51966
51967         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
51968         Emit mostlyclean-local rule.
51969         (func_emit_tests_Makefile_am): Likewise.
51970         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
51971
51972 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
51973
51974         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
51975
51976 2006-06-23  Bruno Haible  <bruno@clisp.org>
51977
51978         * tests/test-stdint.c: Update to match ISO C 99 Technical
51979         Corrigendum 1.
51980
51981 2006-06-23  Bruno Haible  <bruno@clisp.org>
51982
51983         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
51984
51985 2006-06-23  Bruno Haible  <bruno@clisp.org>
51986
51987         * lib/stdint_.h: Treat IRIX like OpenBSD.
51988
51989 2006-06-23  Bruno Haible  <bruno@clisp.org>
51990
51991         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
51992         ISO C 99 Technical Corrigendum 1.
51993
51994 2006-06-22  Simon Josefsson  <jas@extundo.com>
51995
51996         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
51997         MinGW.
51998
51999 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
52000
52001         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
52002         needed.  Some compiler complained about some of them.  Problem reported
52003         by Larry Jones in
52004         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
52005
52006 2006-06-21  Simon Josefsson  <jas@extundo.com>
52007
52008         * tests/test-getaddrinfo.c: New file.
52009
52010         * modules/getaddrinfo-tests: New file.
52011
52012         * MODULES.html.sh: Add inet_pton.
52013
52014         * modules/inet_pton: New file.
52015
52016 2006-06-21  Simon Josefsson  <jas@extundo.com>
52017
52018         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
52019         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
52020         of using the (limited) gnulib implementation on Windows XP.
52021
52022         * m4/inet_pton.m4: New file.
52023
52024 2006-06-21  Simon Josefsson  <jas@extundo.com>
52025
52026         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
52027         variable.
52028
52029         * lib/socket_.h: Don't define WINVER.
52030
52031         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
52032         slightly modified to work in gnulib.
52033
52034 2006-06-21  Simon Josefsson  <jas@extundo.com>
52035
52036         * doc/gnulib.texi (Windows sockets): Add.
52037
52038 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
52039
52040         * lib/read-file.c (fread_file): Start with buffer allocation of
52041         0 bytes rather than 1 byte; this simplifies the code.
52042         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
52043         code to free buffer and save/restore errno.
52044         (internal_read_file): Remove unused local.
52045
52046 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
52047
52048         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
52049         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
52050         Problem reported by Denis Excoffier in
52051         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
52052
52053 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
52054
52055         * modules/sys_socket, modules/socklen: Include sys/types since
52056         FreeBSD 4.x's sys/socket.h needs it.
52057
52058 2006-06-19  Simon Josefsson  <jas@extundo.com>
52059
52060         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
52061
52062 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
52063
52064         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
52065
52066 2006-06-19  Bruno Haible  <bruno@clisp.org>
52067
52068         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
52069         and FULL_PATH_INTTYPES_H in angle brackets.
52070         Reported by Mark D. Baushke <mdb@gnu.org>.
52071
52072 2006-06-17  Eric Blake  <ebb9@byu.net>
52073
52074         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
52075         errno.
52076
52077 2006-06-17  Bruno Haible  <bruno@clisp.org>
52078
52079         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
52080         <sys/inttypes.h>.
52081
52082 2006-06-17  Bruno Haible  <bruno@clisp.org>
52083
52084         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
52085         whether errno is declared. Assume <errno.h> declares errno.
52086
52087 2006-06-17  Bruno Haible  <bruno@clisp.org>
52088
52089         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
52090
52091 2006-06-17  Bruno Haible  <bruno@clisp.org>
52092
52093         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
52094         problem on Solaris 2.5.1.
52095
52096 2006-06-16  Eric Blake  <ebb9@byu.net>
52097
52098         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
52099         * lib/unicodeio.c [!defined errno]: Likewise.
52100         * lib/strtol.c [!defined errno]: Likewise.
52101         * lib/strtod.c [!defined errno]: Likewise.
52102
52103 2006-06-15  Eric Blake  <ebb9@byu.net>
52104
52105         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
52106
52107 2006-06-15  Eric Blake  <ebb9@byu.net>
52108
52109         * config/srclist.txt (ssize_t.m4): Lose sync.
52110
52111 2006-06-15  Bruno Haible  <bruno@clisp.org>
52112
52113         * modules/stdint (Files): Include m4/full-header-path.m4,
52114         m4/size_max.m4, m4/wchar_t.m4.
52115         (Makefile.am): Many more substitutions.
52116         * modules/stdint-tests: New file.
52117         * tests/test-stdint.c: New file.
52118
52119 2006-06-15  Bruno Haible  <bruno@clisp.org>
52120
52121         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
52122         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
52123         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
52124         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
52125         gl_CHECK_TYPE_SAME): New macros.
52126
52127 2006-06-15  Bruno Haible  <bruno@clisp.org>
52128
52129         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
52130
52131 2006-06-15  Bruno Haible  <bruno@clisp.org>
52132
52133         * lib/stdint_.h: Rewritten to be fully auto-configured.
52134         Fixes bug on HP-UX/IA64.
52135
52136 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
52137
52138         * lib/getdate.y (__attribute__): Don't define if already defined.
52139         Problem reported by Larry Jones.
52140         * lib/utimens.c (__attribute__): Likewise.
52141
52142 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
52143
52144         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
52145         reported by Andreas Schwab.
52146
52147 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52148             Bruno Haible  <bruno@clisp.org>
52149
52150         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
52151         check for the declaration of strnlen and a run test that exposes the
52152         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
52153         rpl_strndup.
52154
52155 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52156             Bruno Haible  <bruno@clisp.org>
52157
52158         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
52159
52160 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52161
52162         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
52163         compile test, for Tru64 4.0D.
52164
52165 2006-05-28  Karl Berry  <karl@gnu.org>
52166
52167         * config/srclist.txt (printf-args.c): lose sync.
52168
52169 2006-05-26  Martin Lambers  <marlam@marlam.de>
52170
52171         * lib/getpass.c: Updates the test for the native W32 API, and adds
52172         missing includes, thus fixing compilation warnings.
52173
52174 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
52175
52176         * lib/exclude.c (exclude_fnmatch): New function.
52177         (excluded_file_name): Call exclude_fnmatch.
52178         * lib/exclude.h (excluded_file_name): New prototype
52179
52180 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
52181
52182         * lib/tempname.c (small_open, large_open): New macros.
52183         (__open, __open64) [!_LIBC]: Remove.
52184         (__gen_tempname): Use small_open and large_open instead of __open
52185         and __open64.  This fixes a portability bug on HP-UX 11.11i
52186         reported by Simon Wing-Tang in
52187         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
52188
52189 2006-05-24  Bruno Haible  <bruno@clisp.org>
52190
52191         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
52192         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
52193         Reported by Thorsten Maerz <torte@netztorte.de> via
52194         Aaron Stone <aaron@serendipity.cx>.
52195
52196 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
52197
52198         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
52199         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
52200         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
52201         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
52202         not really conditional on the cache.
52203         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
52204
52205 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
52206
52207         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
52208         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
52209         (my_usleep): Don't mishandle maximum value.
52210
52211 2006-05-19  Jim Meyering  <jim@meyering.net>
52212
52213         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
52214
52215 2006-05-17  Bruno Haible  <bruno@clisp.org>
52216
52217         Cygwin portability.
52218         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
52219
52220 2006-05-17  Bruno Haible  <bruno@clisp.org>
52221
52222         * lib/stdint_.h: Fix recognition of Cygwin.
52223
52224 2006-05-15  Bruno Haible  <bruno@clisp.org>
52225
52226         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
52227         on libtool patch by Ralf Wildenhues.
52228
52229 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
52230
52231         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
52232         test for C99 conformance; (bool) 0.5 is an integer constant
52233         expression, but (bool) -0.5 is not.  Problem reported by Fedor
52234         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
52235
52236 2006-05-11  Simon Josefsson  <jas@extundo.com>
52237
52238         * m4/xvasprintf.m4: Fix obvious typo.
52239
52240 2006-05-11  Jim Meyering  <jim@meyering.net>
52241
52242         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
52243         James Lemley.
52244
52245 2006-05-10  Simon Josefsson  <jas@extundo.com>
52246
52247         * lib/md4.c: Typo fix, update copyright years.
52248         (K1, K2): Don't use L because it turn computations into 64-bit on
52249         64-bit platforms.
52250
52251 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
52252
52253         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
52254         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
52255         unwanted sign propagation, e.g., on hosts with 64-bit int.
52256         There still are some problems with reeelly weird theoretical hosts
52257         (e.g., 33-bit int) but it's not worth worrying about now.
52258         * lib/sha1.c (rol): Likewise.
52259         (K1, K2, K3, K4): Remove unnecessary L suffix.
52260
52261 2006-05-10  Bruno Haible  <bruno@clisp.org>
52262
52263         * lib/des.c: Cast to avoid warnings.
52264
52265 2006-05-09  Bruno Haible  <bruno@clisp.org>
52266
52267         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
52268         (Depends-on): Depend also on xsize, stdarg.
52269         (configure.ac): Add gl_XVASPRINTF.
52270
52271 2006-05-09  Bruno Haible  <bruno@clisp.org>
52272
52273         * m4/xvasprintf.m4: New file.
52274
52275 2006-05-09  Bruno Haible  <bruno@clisp.org>
52276
52277         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
52278         (EOVERFLOW): Define fallback value.
52279         (xstrcat): New function.
52280         (xvasprintf): Recognize the special case of a string concatenation.
52281
52282 2006-05-08  Eric Blake  <ebb9@byu.net>
52283
52284         * gnulib-tool (func_version): Base copyright year on CVS date.
52285         (func_emit_copyright_notice): New function.
52286         (func_emit_lib_Makefile_am): Use it.
52287         (func_emit_tests_Makefile_am): Likewise.
52288         (func_import): Likewise.
52289
52290 2006-05-08  Bruno Haible  <bruno@clisp.org>
52291
52292         * modules/stdarg: New file.
52293         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
52294
52295 2006-05-08  Bruno Haible  <bruno@clisp.org>
52296
52297         * m4/stdarg.m4: New file, from GNU gettext.
52298
52299 2006-05-08  Bruno Haible  <bruno@clisp.org>
52300
52301         * config/srclist.txt (build-aux/config.rpath): different from latest
52302         release.
52303
52304 2006-05-08  Bruno Haible  <bruno@clisp.org>
52305
52306         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
52307
52308 2006-05-05  Jim Meyering  <jim@meyering.net>
52309
52310         * m4/warning.m4: New file, derived from bison's file by the same name.
52311
52312 2006-05-03  Bruno Haible  <bruno@clisp.org>
52313
52314         * lib/stdint_.h: Shorter URL.
52315         * lib/inttypes.h: Likewise.
52316
52317 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
52318
52319         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
52320
52321 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
52322
52323         * lib/verify.h: Document the internals better.  Most of this change
52324         was written by Bruno Haible.
52325
52326 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
52327
52328         * doc/verify.texi: New file, partly based on a proposal by
52329         Bruno Haible.
52330
52331 2006-05-02  Bruno Haible  <bruno@clisp.org>
52332
52333         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
52334         test from here...
52335         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
52336
52337 2006-04-29  Bruno Haible  <bruno@clisp.org>
52338
52339         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
52340         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
52341
52342 2006-04-29  Bruno Haible  <bruno@clisp.org>
52343
52344         * gnulib-tool: Make --update option actually work.
52345
52346 2006-04-29  Bruno Haible  <bruno@clisp.org>
52347
52348         * doc/gcd.texi: New file.
52349         * doc/gnulib.texi: Include it.
52350
52351 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
52352
52353         * lib/getdate.y (get_date): When adding relative date, start with the
52354         initial time, not with the result of the first mktime call.
52355
52356 2006-04-25  Bruno Haible  <bruno@clisp.org>
52357
52358         * gnulib-tool (func_import): Output the include directives in three
52359         blocks, sorted separately.
52360         Reported by Ben Pfaff <blp@cs.stanford.edu>.
52361
52362 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
52363
52364         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
52365         to define main with arguments, for C++.  Reported by Eric Blake.
52366         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
52367         Prefer 'int main ()' to 'int main (void)', for C++.
52368         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
52369         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
52370         for 'main', for C99 and C++.
52371
52372 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
52373
52374         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
52375         Don't assume that exit status -1 is valid.
52376         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
52377         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
52378         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
52379         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
52380         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
52381         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
52382         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
52383         functions can be used without declaring them, or that you can
52384         exit with status -1.
52385         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
52386
52387 2006-04-24  Karl Berry  <karl@gnu.org>
52388
52389         * config/srclist.txt (longdouble.m4): sync lost.
52390
52391 2006-04-24  Eric Blake  <ebb9@byu.net>
52392
52393         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
52394
52395 2006-04-24  Bruno Haible  <bruno@clisp.org>
52396
52397         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
52398         poll() implementation in AIX.
52399         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52400
52401 2006-04-24  Bruno Haible  <bruno@clisp.org>
52402
52403         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
52404         assigned exactly once.
52405
52406 2006-04-23  Claudio Fontana  <claudio@gnu.org>
52407             Bruno Haible  <bruno@clisp.org>
52408
52409         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
52410         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
52411         for AM_CPPFLAGS.
52412
52413 2006-04-23  Bruno Haible  <bruno@clisp.org>
52414
52415         * modules/copy-file: Depend on unistd.
52416         * modules/execute: Likewise.
52417         * modules/fatal-signal: Likewise.
52418         * modules/findprog: Likewise.
52419         * modules/mkdtemp : Likewise.
52420         * modules/pipe: Likewise.
52421         * modules/wait-process: Likewise.
52422
52423 2006-04-23  Bruno Haible  <bruno@clisp.org>
52424
52425         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
52426         condition was already detected.
52427         Reported by Ben Pfaff <blp@cs.stanford.edu>.
52428
52429 2006-04-23  Bruno Haible  <bruno@clisp.org>
52430
52431         * lib/copy-file.c: Include <unistd.h> unconditionally.
52432         * lib/execute.c: Likewise.
52433         * lib/fatal-signal.c: Likewise.
52434         * lib/findprog.c: Likewise.
52435         * lib/mkdtemp.c: Likewise.
52436         * lib/pipe.h: Likewise.
52437         * lib/pipe.c: Likewise.
52438         * lib/wait-process.h: Likewise.
52439
52440 2006-04-23  Bruno Haible  <bruno@clisp.org>
52441
52442         * gnulib-tool (func_usage): Fix --import description. Document
52443         --update.
52444         (func_import): Create temporary file in a temporary directory, if
52445         --dry-run is specified. Silence errors from 'grep' when there are no
52446         m4 files in $m4dir.
52447         (func_create_testdir): Silence errors from 'grep' when there are no
52448         m4 files in $m4dir.
52449         Reported by Karl Berry <karl@freefriends.org>.
52450
52451 2006-04-20  Bruno Haible  <bruno@clisp.org>
52452
52453         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
52454         one argument, so that the code will be portable to Autoconf 2.60.
52455         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
52456         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
52457         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
52458
52459 2006-04-19  Derek Price  <derek@ximbiot.com>
52460             Eric Blake  <ebb9@byu.net>
52461
52462         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
52463         rather than "/full/path.h".  Update comment to match.  Shorten &
52464         generalize m4_translit call via AS_TR_CPP.
52465
52466 2006-04-19  Derek Price  <derek@ximbiot.com>
52467             Eric Blake  <ebb9@byu.net>
52468
52469         * lib/inttypes.h: Correct grammar in comment.
52470
52471 2006-04-18  Derek Price  <derek@ximbiot.com>
52472             Paul Eggert  <eggert@cs.ucla.edu>
52473
52474         * modules/inttypes: New file.
52475         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
52476
52477 2006-04-18  Derek Price  <derek@ximbiot.com>
52478             Paul Eggert  <eggert@cs.ucla.edu>
52479
52480         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
52481         New files.
52482
52483 2006-04-18  Derek Price  <derek@ximbiot.com>
52484             Paul Eggert  <eggert@cs.ucla.edu>
52485
52486         * lib/inttypes.h: New file.
52487         * lib/strtoimax.c: Assume <inttypes.h>.
52488
52489 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
52490
52491         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
52492         isn't mounted.  Problem reported by Kir Kolyshkin.
52493
52494 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
52495
52496         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
52497         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
52498         Derek R. Price.
52499         * lib/regex.h (RE_DUP_MAX): Update comment to match current
52500         implementation.
52501
52502 2006-04-12  Eric Blake  <ebb9@byu.net>
52503
52504         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
52505         is now done automatically by the corresponding Autoconf macro.
52506
52507 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
52508
52509         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
52510         time_r.h.
52511
52512 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
52513
52514         Merge regex changes from libc, removing some of our
52515         POSIX-conformance changes that were rejected and redoing them in a
52516         less-intrusive way.
52517
52518         * lib/regcomp.c (re_compile_internal, init_dfa):
52519         Length arg is now size_t, not Idx.  All uses changed.
52520         (peek_token): Forward decl now says internal_function.
52521         (__re_error_msgid, __re_error_msgid_idx):
52522         Now static rather than extern with attribute_hidden.
52523         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
52524         For some reason libc prefers K&R style defns for external functions.
52525         (regerror) [!defined _LIBC]: Likewise.
52526         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
52527         (seek_collating_symbol_entry, lookup_collation_sequence_value):
52528         (build_range_exp, build_collating_symbol):
52529         Use K&R-style defn.
52530         (re_compile_fastmap): Use '\0' to memset, not 0.
52531         (utf8_sb_map): Make the calculations more obvious.
52532         (init_dfa, parse_bracket_exp, build_charclass_op):
52533         Call calloc and cast result, as glibc does.
52534         (init_word_char, fetch_token, peek_token, peek_token_bracket):
52535         (build_range_exp, build_collating_symbol):
52536         Now internal functions.
52537
52538         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
52539
52540         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
52541         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
52542         Don't depend on VMS; depend on __VMS instead, for POSIX
52543         namespace cleanness.
52544         (regoff_t): Define to ssize_t, not long int.
52545
52546         Remove the REG_ macros named below.  Instead, make the old names
52547         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
52548         __USE_GNU_REGEX.
52549         (REG_BACKSLASH_ESCAPE_IN_LISTS):
52550         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
52551         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
52552         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
52553         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
52554         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
52555         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
52556         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
52557         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
52558         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
52559         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
52560         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
52561         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
52562         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
52563         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
52564         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
52565         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
52566         (REG_NREGS):
52567         Remove.  All uses replaced by the old RE_* names.
52568         (RE_BACKSLASH_ESCAPE_IN_LISTS):
52569         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
52570         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
52571         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
52572         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
52573         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
52574         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
52575         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
52576         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
52577         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
52578         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
52579         Don't bother having these macros be independent of each others'
52580         values, since they no longer exist in the POSIX name space.
52581
52582         Rename the following member names back to their old names,
52583         unless !__USE_GNU_REGEX.  All uses changed back.
52584         (buffer): Renamed from re_buffer.
52585         (allocated): Renamed from re_allocated.
52586         (used): Renamed from re_used.
52587         (syntax): Renamed from re_syntax.
52588         (fastmap): Renamed from re_fastmap.
52589         (translate): Renamed from re_translate.
52590         (can_be_null): Renamed from re_can_be_null.
52591         (regs_allocated): Renamed from re_regs_allocated.
52592         (fastmap_accurate): Renamed from re_fastmap_accurate.
52593         (no_sub): Renamed from re_no_sub.
52594         (not_bol): Renamed from re_not_bol.
52595         (not_eol): Renamed from re_not_eol.
52596         (newline_anchor): Renamed from re_newline_anchor.
52597         (num_regs): Renamed from rm_num_regs.
52598         (start): Renamed from rm_start.
52599         (end): Renamed from rm_end.
52600
52601         (free_state): Move up a bit.
52602
52603         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
52604         #define to be empty.
52605         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
52606         when that is what is intended.
52607         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
52608         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
52609         (MAX): New macro.
52610         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
52611         All uses changed back to re_malloc, etc.  It's now the caller's
52612         responsibility to check for overflow; all callers changed.
52613         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
52614         (re_x2nrealloc): Remove.
52615         (free_state): Remove decl.
52616
52617         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
52618         (re_set_registers, re_exec):
52619         Use K&R-style defn.
52620
52621         2006-01-31  Roland McGrath  <roland@redhat.com>
52622
52623         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
52624         Reported by Mike Frysinger <vapier@gentoo.org>.
52625
52626         2006-01-15  Andreas Jaeger  <aj@suse.de>
52627
52628         [BZ #1950]
52629         * lib/regex_internal.c (re_string_reconstruct): Adjust for
52630         build_wcs_upper_buffer change.
52631         (build_wcs_upper_buffer): Change return type.
52632
52633         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
52634
52635         * lib/regex_internal.h: Include <stdint.h> if available.
52636
52637         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
52638
52639         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
52640
52641         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
52642
52643         * lib/regcomp.c: Adjust for changed secondary hash function.
52644
52645         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
52646
52647         * lib/regex.h: Pretty printing.
52648         Clean up namespace a bit.
52649
52650         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
52651
52652         * lib/regexec.c (update_cur_sifted_state, check_arrival,
52653         check_arrival_add_next_nodes): Avoid using uninitialized variable.
52654
52655         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
52656                     Ulrich Drepper  <drepper@redhat.com>
52657
52658         [BZ #1302]
52659         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
52660         changed.
52661         (bitset_word_t): Renamed from bitset_word.  All uses changed.
52662
52663         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
52664
52665         [BZ #281]
52666         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
52667         * lib/regcomp.c: Remove unnecessary uses of
52668         unsigned RE_TRANSLATE_TYPE.
52669         * lib/regex_internal.h: Likewise.
52670         * lib/regex_internal.c: Likewise.
52671         * lib/regexec.c: Likewise.
52672         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
52673
52674         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
52675
52676         * lib/regexec.c (find_recover_state): Remove unnecessary
52677         initialization.
52678         (transit_state_bkref): Make DFA a const pointer.
52679         (get_subexp): Likewise.
52680         (check_arrival): Likewise.
52681         (update_cur_sifted_state): Likewise.
52682         (re_search_internal): Likewise.
52683         (prune_impossible_nodes): Likewise.
52684         (acquire_init_state_context): Likewise.
52685         (proceed_next_node): Likewise.
52686         (set_regs): Likewise.
52687         (free_fail_stack_return): Likewise.
52688         (check_arrival_expand_ecl): Mark DFA parameter as const.
52689         (check_arrival_expand_ecl_sub): Likewise.
52690         (check_subexp_limits): Likewise.
52691         (sub_epsilon_src_nodes):  Likewise.
52692         (add_epsilon_src_nodes):  Likewise.
52693         (merge_state_array): Likewise.
52694         (update_regs): Likewise.
52695         (build_trtable): Likewise.
52696         (sift_states_backward): Mark MCTX parameter as const.
52697         (build_sifted_states): Likewise.
52698         (update_cur_sifted_state): Likewise.
52699         (sift_states_mkref): Likewise.
52700         (check_arrival_expand_ecl): Mark eclosure as const.
52701         (check_dst_limits_calc_pos_1): Likewise.
52702         * lib/regex_internal.h (re_match_context_t): Make dfa a const
52703         pointer.
52704
52705         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
52706
52707         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
52708         (transit_state_sb): Likewise.
52709         (transit_state_mb): Likewise.
52710         (sift_states_iter_mb): Likewise.
52711         (check_arrival_add_next_nodes): Likewise.
52712         (check_node_accept_bytes): Change first parameter to pointer-to-const.
52713         [_LIBC] (re_search_2_stub): Use mempcpy.
52714
52715         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
52716         mbrtowc for very simple UTF-8 case.
52717
52718         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
52719         a pointer-to-const.
52720         (re_acquire_state_context): Likewise.
52721         * lib/regex_internal.h: Adjust prototypes.
52722
52723         * lib/regex.c: Prevent using C++ compilers.
52724
52725         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
52726         (re_acquire_state_context): Likewise.
52727
52728 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
52729
52730         * modules/regex (Depends-on): Add ssize_t.
52731
52732 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
52733
52734         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
52735         translation table.
52736
52737 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
52738
52739         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
52740
52741 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
52742             Bruno Haible  <bruno@clisp.org>
52743
52744         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
52745         <sys/types.h> and <inttypes.h>.
52746
52747 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52748
52749         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
52750         `__error_t_defined', so argp.h will not typedef the former.
52751
52752 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
52753
52754         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
52755         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
52756         glibc names.  Even if glibc is changed to conform to POSIX, the
52757         traditional names will be available anyway, since regex depends on
52758         the extensions module.  Also, fix a longstanding typo in the
52759         implementation of Spencer ERE test #75 from grep 2.3.  Problems
52760         reported by Emanuele Giaquinta.  Also, change sense of cached
52761         variable, so that the message makes sense.
52762
52763 2006-03-24  Simon Josefsson  <jas@extundo.com>
52764
52765         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
52766         including some doc fixes.
52767         (base64_encode_alloc): Fix +1 bug on allocation failures.
52768
52769 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52770
52771         * lib/base64.c (base64_encode): Do not read past end of array with
52772         unsanitized input on systems with CHAR_BIT > 8.
52773
52774 2006-03-24  Eric Blake  <ebb9@byu.net>
52775
52776         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
52777
52778 2006-03-22  Karl Berry  <karl@gnu.org>
52779
52780         * config/srclist.txt (*setenv.[ch]): get from coreutils.
52781         * config/srclistvars.sh (COREUTILS): new var.
52782
52783 2006-03-17  Jim Meyering  <jim@meyering.net>
52784
52785         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
52786         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
52787
52788 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
52789
52790         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
52791         no longer needs it.  Instead, check that regoff_t is as least
52792         as wide as ptrdiff_t.
52793
52794         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
52795         so that our regex.h stays compatible with the installed regex.
52796         This is helpful for installers who configure --without-included-regex.
52797         Problem reported by Emanuele Giaquinta.
52798
52799 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
52800
52801         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
52802         Typedef to long int, not to off_, as POSIX will likely change
52803         in that direction.
52804
52805 2006-03-15  Eric Blake  <ebb9@byu.net>
52806
52807         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
52808
52809 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
52810
52811         * lib/argp-help.c (validate_uparams): Fix typo
52812         * lib/argp-parse.c (argp_default_options): Consistently begin help
52813         messages with a lowercase letter.
52814
52815 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
52816
52817         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
52818         overrun buffers and shouldn't be used (much as gets shouldn't be
52819         used).
52820         * lib/time_r.c (asctime_r, ctime_r): Likewise.
52821
52822 2006-03-08  Simon Josefsson  <jas@extundo.com>
52823
52824         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
52825         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52826
52827 2006-03-08  Simon Josefsson  <jas@extundo.com>
52828
52829         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
52830         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52831
52832 2006-03-08  Simon Josefsson  <jas@extundo.com>
52833
52834         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
52835         signal that configure disabled the device.
52836
52837 2006-03-08  Simon Josefsson  <jas@extundo.com>
52838
52839         * build-aux/maint.mk: Fix refresh-po, to handle no translated
52840         languages.
52841
52842 2006-03-07  Simon Josefsson  <jas@extundo.com>
52843
52844         * modules/getopt (Depends-on): Add unistd.
52845
52846         * modules/unistd: New file.
52847
52848 2006-03-07  Simon Josefsson  <jas@extundo.com>
52849
52850         * modules/gc-random: New file.
52851
52852 2006-03-07  Simon Josefsson  <jas@extundo.com>
52853
52854         * m4/unistd_h.m4: New file.
52855
52856 2006-03-07  Simon Josefsson  <jas@extundo.com>
52857
52858         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
52859         test to be side-effect free by storing the result in the cache
52860         variable gl_cv_lib_readline, and moving the assignment of
52861         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
52862         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52863
52864 2006-03-07  Simon Josefsson  <jas@extundo.com>
52865
52866         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
52867         error on missing devices (the functions will return an error).
52868
52869         * m4/gc.m4: Move random stuff to gc-random.m4
52870
52871 2006-03-07  Simon Josefsson  <jas@extundo.com>
52872
52873         * lib/unistd_.h: New file.
52874
52875 2006-03-07  Simon Josefsson  <jas@extundo.com>
52876
52877         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
52878
52879 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
52880
52881         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
52882         Problem reported by Juan Manuel Guerrero.
52883
52884 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
52885
52886         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
52887         the unistd module.
52888         * lib/getlogin_r.c: Likewise.
52889         * lib/getlogin_r.h: Likewise.
52890         * lib/glob.c: Likewise.
52891         * lib/pagealign_alloc.c: Likewise.
52892         * lib/unistd_.h: Remove; no longer needed.
52893
52894 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
52895
52896         * MODULES.html.sh (Support for systems lacking POSIX:2001):
52897         Add unistd.
52898         * modules/c-stack (Depends-on): Add unistd.
52899         * modules/getlogin_r: Likewise.
52900         * modules/glob: Likewise.
52901         * modules/pagealign_alloc: Likewise.
52902         * modules/unistd (Files): Remove lib/unistd_.h.
52903         (EXTRA_DIST): Remove.
52904         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
52905         need unistd_.h.
52906         (MOSTLYCLEANFILES): Remove unistd.h-t.
52907
52908 2006-03-03  Simon Josefsson  <jas@extundo.com>
52909
52910         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
52911
52912 2006-03-03  Simon Josefsson  <jas@extundo.com>
52913
52914         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
52915         libidn and bison.
52916
52917 2006-03-03  Simon Josefsson  <jas@extundo.com>
52918
52919         * build-aux/maint.mk: Add indent target.
52920
52921 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
52922
52923         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
52924         our replacement poll.h in any case, to avoid a differing
52925         declaration from a system header.  Seen on AIX.
52926
52927 2006-03-01  Simon Josefsson  <jas@extundo.com>
52928
52929         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
52930         <kasal@ucw.cz>.
52931
52932 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52933
52934         * modules/gettime (Depends-on): Add extensions module.
52935         * modules/nanosleep (Depends-on): Likewise.
52936         * modules/settime (Depends-on): Likewise.
52937
52938 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
52939
52940         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
52941         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
52942         pedantically.
52943         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
52944         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
52945
52946         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
52947         not "==".  Reported by Ralf Wildenhues.
52948
52949 2006-03-01  Karl Berry  <karl@gnu.org>
52950
52951         * doc/Copyright/request-*: new files, synced from gnuorg.
52952
52953 2006-03-01  Karl Berry  <karl@gnu.org>
52954
52955         * config/srclist.txt (Copyright/*): new entries.
52956
52957 2006-02-28  Simon Josefsson  <jas@extundo.com>
52958
52959         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
52960
52961 2006-02-27  Simon Josefsson  <jas@extundo.com>
52962
52963         * lib/base64.h: Indent #define's.  From Jim Meyering
52964         <jim@meyering.net>.
52965
52966 2006-02-27  Jim Meyering  <jim@meyering.net>
52967
52968         Revert the change of 2006-02-24, so these files can continue
52969         to be sync'd from gettext.
52970         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
52971         of `config.h'.
52972
52973 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
52974
52975         * modules/intprops: New file.
52976         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
52977         Add intprops.
52978         * modules/getloadavg (Files): Remove lib/intprops.h.
52979         (Depends-on): Add intprops.
52980         * modules/human: Likewise.
52981         * modules/inttostr: Likewise.
52982         * modules/openat: Likewise.
52983         * modules/sig2str: Likewise.
52984         * modules/userspec: Likewise.
52985         * modules/utimecmp: Likewise.
52986         * modules/xnanosleep: Likewise.
52987         * modules/xstrtol: Likewise.
52988
52989 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
52990
52991         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
52992         * modules/lock-tests (TESTS): Use $(EXEEXT).
52993         * modules/tls-tests: Likewise.
52994         * modules/argp-tests: Likewise.
52995         (check_PROGRAMS): New var, replacing...
52996         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
52997
52998 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52999
53000         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
53001         `config.h'.
53002
53003 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
53004
53005         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
53006
53007 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53008
53009         Sync from coreutils.
53010         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
53011         gl_CHDIR_SAFER.
53012
53013 2006-02-22  Jim Meyering  <jim@meyering.net>
53014
53015         Sync from coreutils.
53016         * m4/chdir-safer.m4: New file.
53017
53018 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
53019
53020         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
53021         AT_FDCWD exceeds INT_MAX.
53022         * lib/openat.h (AT_FDCWD): Likewise.
53023
53024 2006-02-17  Eric Blake  <address@hidden>
53025
53026         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
53027
53028 2006-02-16  Simon Josefsson  <jas@extundo.com>
53029
53030         * modules/getaddrinfo (Depends-on): Add sys_socket.
53031
53032 2006-02-15  Simon Josefsson  <jas@extundo.com>
53033
53034         * build-aux/maint.mk: Add dsyntax-check rule.
53035
53036 2006-02-15  Eric Blake  <ebb9@byu.net>
53037
53038         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
53039         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
53040         'present but cannot compile' warnings on cygwin.
53041         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
53042         use ws2tcpip.h if sys/socket.h works.
53043         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
53044         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
53045
53046 2006-02-14  Simon Josefsson  <jas@extundo.com>
53047
53048         * modules/maintainer-makefile (Files): Rename.
53049
53050         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
53051         and (the local) Makefile.cfg to maint-cfg.mk.
53052
53053         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
53054         to the latter.
53055
53056         * modules/maintainer-makefile: New module.
53057
53058         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
53059         severaly stripped to make it possible to build it up from scratch
53060         with reliable tests.
53061
53062         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
53063         fixes to permit overriding the default actions when configure and
53064         makefile are not available.
53065
53066 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
53067
53068         Sync from coreutils.
53069         * modules/lstat (Depends-on): Don't depend on xalloc.
53070         (License): Change from GPL to LGPL, since this is now simply a
53071         replacement for a libc function.
53072
53073 2006-02-14  Jim Meyering  <jim@meyering.net>
53074
53075         Sync from coreutils.
53076
53077         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
53078         failure on deficient systems, and simplify gnulib lgpl dependencies.
53079         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
53080         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
53081
53082         * lib/xalloc-die.c: Remove unused definition of N_.
53083
53084 2006-02-14  Jim Meyering  <jim@meyering.net>
53085
53086         Sync from coreutils.
53087         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
53088         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
53089         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
53090         double-quote uses of that variable, to accommodate the rare case in
53091         which getmntent is available in none of the libraries checked.  This
53092         happens at least on FreeBSD 5.0.
53093
53094 2006-02-13  Simon Josefsson  <jas@extundo.com>
53095
53096         * gnulib-tool (Usage): Fix --import, from
53097         karl@freefriends.org (Karl Berry).
53098
53099 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
53100
53101         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
53102
53103 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
53104
53105         * lib/argp-namefrob.h: Restore changes accidentally lost during the
53106         "autoupdate" on 2005-12-12.
53107
53108 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
53109
53110         * modules/closeout (Depends-on): Remove atexit.
53111
53112 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
53113
53114         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
53115         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
53116
53117 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
53118
53119         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
53120         __EXTENSIONS__ if this causes compilation to fail.  Problem
53121         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
53122         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
53123
53124 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
53125
53126         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
53127         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
53128         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
53129         All uses changed.
53130
53131 2006-01-26  Simon Josefsson  <jas@extundo.com>
53132
53133         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
53134         prototype is visible on mingw32.
53135
53136         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
53137         for mingw32.
53138
53139         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
53140         mingw32).
53141
53142 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
53143
53144         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
53145         attempt to open for write; this always fails, at least on POSIX
53146         hosts.  This reinstates the 2006-01-09 change, which was
53147         inadvertently removed.
53148
53149 2006-01-26  Bruno Haible  <bruno@clisp.org>
53150
53151         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
53152         Reported by Paul Eggert.
53153
53154 2006-01-26  Bruno Haible  <bruno@clisp.org>
53155             Paul Eggert  <eggert@cs.ucla.edu>
53156
53157         * lib/stdbool_.h (_Bool)
53158         [(! (defined __cplusplus || defined __BEOS__)
53159           && !defined __GNUC__
53160           && !(defined __HP_cc || defined __xlc__
53161                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
53162                || defined __sgi))]:
53163         #define to signed char in these cases too; this simplifies
53164         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
53165         etc., separately) and makes it more conservative.
53166
53167 2006-01-25  Simon Josefsson  <jas@extundo.com>
53168
53169         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
53170         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
53171         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
53172
53173 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
53174
53175         * lib/argp-namefrob.h: Bugfix. Remove stray #
53176
53177 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
53178
53179         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
53180         so that we test the test.
53181         Check for yet another HP-UX cc bug involving *bool |= bool.
53182
53183 2006-01-25  Karl Berry  <karl@gnu.org>
53184
53185         * config/srclist.txt (vasnprintf.c): sync lost.
53186
53187 2006-01-25  Jim Meyering  <jim@meyering.net>
53188
53189         Sync from the stable (b5) branch of coreutils:
53190
53191         * lib/fts.c (fts_children): Don't let close() clobber errno from
53192         failed fchdir().
53193
53194         * lib/fts.c (fts_stat): When following a symlink-to-directory,
53195         don't necessarily interpret stat-fails+lstat-succeeds as indicating
53196         a dangling symlink.  That can also happen at least for ELOOP.
53197         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
53198         FYI, this bug predates the inclusion of fts.c in coreutils.
53199
53200         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
53201         in their own block, so pre-c99 compilers don't object.
53202
53203         Avoid the double-free (first in fts_read, second in fts_close) that
53204         would occur when an `active' directory is made inaccessible (e.g.,
53205         via chmod a-x) during a traversal.
53206         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
53207         before returning.  Reproduce this failure by
53208         mkdir -p a/b; cd a; chmod a-x . b
53209         Reported by Stavros Passas.
53210
53211 2006-01-25  Jim Meyering  <jim@meyering.net>
53212
53213         * lib/fileblocks.c: Remove more useless parentheses.
53214         * lib/readutmp.h: Likewise.
53215
53216 2006-01-25  Bruno Haible  <bruno@clisp.org>
53217
53218         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
53219         warnings.
53220         Reported by Paul Eggert.
53221
53222 2006-01-25  Bruno Haible  <bruno@clisp.org>
53223
53224         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
53225         rid of a trap command. For Solaris sh.
53226         Reported by Mark D. Baushke <mdb@gnu.org>.
53227
53228 2006-01-24  Simon Josefsson  <jas@extundo.com>
53229
53230         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
53231         Bruno.
53232
53233 2006-01-24  Karl Berry  <karl@gnu.org>
53234
53235         * config/srclist.txt (argp-namefrob.h): sync lost.
53236
53237 2006-01-24  Jim Meyering  <jim@meyering.net>
53238
53239         * modules/openat (Files): Add lib/intprops.h.
53240         From Mark D. Baushke.
53241
53242 2006-01-24  Jim Meyering  <jim@meyering.net>
53243
53244         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
53245         Reported by Mark D. Baushke.
53246
53247 2006-01-24  Jim Meyering  <jim@meyering.net>
53248
53249         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
53250
53251 2006-01-24  Bruno Haible  <bruno@clisp.org>
53252
53253         * modules/strnlen (Maintainer): Change from glibc to all.
53254
53255 2006-01-24  Bruno Haible  <bruno@clisp.org>
53256
53257         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
53258         Patch by Paul Eggert.
53259
53260 2006-01-24  Bruno Haible  <bruno@clisp.org>
53261
53262         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
53263         already has it.
53264         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
53265         2005-11-26.
53266
53267         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
53268         'signed char' to avoid problems with the built-in _Bool type.
53269         Reported by Paul Eggert on 2005-11-26.
53270
53271 2006-01-24  Bruno Haible  <bruno@clisp.org>
53272
53273         * gnulib-tool (func_import): Avoid constructing complicated sed
53274         expressions inside backquote.
53275         Report and solution by Mark D. Baushke <mdb@gnu.org>.
53276
53277 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
53278
53279         These changes imported from libc.
53280         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
53281         test and two separate function calls.
53282         * lib/strndup.c (__strndup): Add libc_hidden_def.
53283
53284 2006-01-23  Simon Josefsson  <jas@extundo.com>
53285
53286         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
53287         Remove the test_*_SOURCES variable: automake infers it by default.
53288         * modules/tls-tests: Likewise.
53289
53290 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
53291
53292         Work around porting bugs reported by Dieter in
53293         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
53294         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
53295         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
53296         Include "getopt.h" first, to check interface.
53297         (getenv): Declare only if defined HAVE_DECL_GETENV &&
53298         !HAVE_DECL_GETENV.
53299         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
53300         (__strndup): Revert to K&R-style function dfns, the glibc style.
53301         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
53302         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
53303         Include strnlen.h first, to get prototype properly.
53304         (strnlen): Renamed from __strnlen.
53305         Remove weak alias.
53306
53307 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
53308
53309         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
53310
53311 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
53312
53313         * config/srclist.txt: Adjust to reflect glibc reorganization.
53314         This affects only comments.
53315
53316 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
53317
53318          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
53319          Reported by Bruce Korb <bkorb@gnu.org>.
53320
53321 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
53322
53323         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
53324         to pacify gcc -Wswitch-default.
53325
53326 2006-01-22  Bruno Haible  <bruno@clisp.org>
53327
53328         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
53329         temporary buffer for sprintf, take into account the precision also
53330         for 'd', 'i', 'u', 'o', 'x', 'X'.
53331
53332 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
53333
53334         * modules/argp-tests: New module
53335         * tests/test-argp.c: New file
53336         * tests/test-argp-2.sh: New file
53337
53338 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
53339
53340         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
53341         (__argp_base_name): Removed
53342         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
53343         typo.
53344         (__argp_base_name): Provide macro definition or extern declaration
53345         depending on the configuration
53346
53347 2006-01-20  Simon Josefsson  <jas@extundo.com>
53348
53349         * modules/inet_ntop (Depends-on): Depend on sys_socket.
53350
53351 2006-01-20  Simon Josefsson  <jas@extundo.com>
53352
53353         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
53354
53355 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
53356
53357         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
53358         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
53359         Suggested by Bruno Haible.
53360
53361 2006-01-20  Karl Berry  <karl@gnu.org>
53362
53363         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
53364         until changes propagate, I guess.
53365
53366 2006-01-19  Simon Josefsson  <jas@extundo.com>
53367
53368         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
53369
53370 2006-01-19  Simon Josefsson  <jas@extundo.com>
53371
53372         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
53373
53374 2006-01-19  Simon Josefsson  <jas@extundo.com>
53375
53376         * gnulib-tool: Set check_PROGRAMS.
53377
53378         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
53379         modules/des-tests, modules/gc-arcfour-tests,
53380         modules/gc-arctwo-tests, modules/gc-des-tests,
53381         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
53382         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
53383         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
53384         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
53385         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
53386         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
53387         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
53388         test_*_SOURCES.
53389
53390 2006-01-18  Simon Josefsson  <jas@extundo.com>
53391
53392         * modules/socklen (Depends-on): Depend on sys_socket.
53393
53394 2006-01-18  Simon Josefsson  <jas@extundo.com>
53395
53396         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
53397         modules/des-tests, modules/gc-arcfour-tests,
53398         modules/gc-arctwo-tests, modules/gc-des-tests,
53399         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
53400         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
53401         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
53402         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
53403         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
53404         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
53405         $(EXEEXT) to automake TESTS variable, for mingw32.
53406
53407 2006-01-17  Simon Josefsson  <jas@extundo.com>
53408
53409         * modules/socklen (Include): Need sys/socket.h.
53410
53411 2006-01-17  Bruno Haible  <bruno@clisp.org>
53412
53413         * modules/ssize_t (Include): Add <sys/types.h>.
53414
53415 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
53416
53417         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
53418         it's not portable and it doesn't work with cross-compiles.
53419         Problem reported by Bruno Haible.  Fix missing-$ typo in
53420         'test "gl_cv_ignore_unused_libraries" ...' that prevented
53421         -zignore from being used with Sun's C compiler.
53422
53423 2006-01-12  Simon Josefsson  <jas@extundo.com>
53424
53425         * lib/base64.c: Fix warning, reported by Bruno Haible
53426         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
53427
53428 2006-01-12  Bruno Haible  <bruno@clisp.org>
53429
53430         * modules/ldd: New file.
53431         * build-aux/ldd.sh.in: New file.
53432         * MODULES.html.sh (Support for building libraries and executables): Add
53433         ldd.
53434
53435 2006-01-12  Bruno Haible  <bruno@clisp.org>
53436
53437         * m4/ldd.m4: New file.
53438
53439 2006-01-12  Bruno Haible  <bruno@clisp.org>
53440
53441         * gnulib-tool (func_import, func_create_testdir): Don't go into an
53442         endless loop while replacing $auxdir with build-aux.
53443
53444 2006-01-11  Simon Josefsson  <jas@extundo.com>
53445
53446         * lib/stdint_.h (SIZE_MAX): Add missing (.
53447
53448 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
53449
53450         Sync from coreutils.
53451         * lib/md5.c: Fix commentary typos.
53452         (alignof, UNALIGNED_P): No need for a GCC-specific version.
53453         * lib/md5.h (__attribute__): Remove; unused.
53454         * lib/sha1.c: Fix commentary to match md5 better.
53455         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
53456         so that we don't need to worry about alignment.  All uses changed.
53457         This merges the 2005-10-28 md5 change into sha1.
53458
53459 2006-01-11  Jim Meyering  <jim@meyering.net>
53460
53461         Sync from coreutils.
53462         * lib/md5.c (OP): Fix spacing.
53463
53464 2006-01-11  Bruno Haible  <bruno@clisp.org>
53465
53466         Ensure automatic ordering between gl_LOCK and gl_ARGP.
53467         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
53468         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
53469
53470 2006-01-11  Bruno Haible  <bruno@clisp.org>
53471
53472         Ensure automatic ordering between gl_LOCK and gl_ARGP.
53473         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
53474         the "early" section as well.
53475
53476 2006-01-11  Bruno Haible  <bruno@clisp.org>
53477
53478         Avoid "ar: no archive members specified" error on MacOS X.
53479         * gnulib-tool (func_modules_add_dummy): New function.
53480         (func_import, func_create_testdir): Invoke it.
53481
53482 2006-01-11  Bruno Haible  <bruno@clisp.org>
53483
53484         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
53485         with $auxdir in AC_CONFIG_FILES statements.
53486
53487 2006-01-11  Bruno Haible  <bruno@clisp.org>
53488
53489         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
53490         Initialize also noinst_HEADERS to empty.
53491
53492 2006-01-11  Bruno Haible  <bruno@clisp.org>
53493
53494         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
53495         variables.
53496         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
53497         autoreconf.
53498
53499 2006-01-11  Bruno Haible  <bruno@clisp.org>
53500
53501         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
53502         overridable by the user.
53503         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53504
53505 2006-01-10  Simon Josefsson  <jas@extundo.com>
53506
53507         * modules/sys_socket: New file.
53508
53509 2006-01-10  Simon Josefsson  <jas@extundo.com>
53510
53511         * m4/sys_socket_h.m4: New file.
53512
53513 2006-01-10  Simon Josefsson  <jas@extundo.com>
53514
53515         * lib/socket_.h: New file.
53516
53517 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
53518
53519         * modules/readutmp (Maintainer): Add myself.
53520
53521 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
53522
53523         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
53524         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
53525         People who are still concerned with buggy memcmp implementations
53526         can invoke gl_FUNC_MEMCMP themselves.
53527
53528 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
53529
53530         * lib/regex_internal.h (BITSET_WORD_BITS):
53531         Work around a bug in 64-bit PGC (before version 6.1-2), where the
53532         preprocessor mishandles large unsigned values as if they were signed.
53533         Problem reported by Claudio Fontana in
53534         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
53535
53536 2006-01-10  Jim Meyering  <jim@meyering.net>
53537
53538         Avoid the double-free (first in fts_read, second in fts_close) that
53539         would occur when an `active' directory is made inaccessible (e.g.,
53540         via chmod a-x) during a traversal.
53541         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
53542         before returning.  Reproduce this failure by
53543         mkdir -p a/b; cd a; chmod a-x . b
53544         Reported by Stavros Passas.
53545
53546         Sync from coreutils.
53547         * lib/sha1.c: Tweak grammar in a comment.
53548
53549 2006-01-10  Jim Meyering  <jim@meyering.net>
53550
53551         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
53552         Patch by Joerg Sonnenberger.
53553
53554 2006-01-10  Bruno Haible  <bruno@clisp.org>
53555
53556         * modules/readutmp: Depend on module free.
53557         * modules/strtok_r: Depend on module restrict.
53558
53559 2006-01-10  Bruno Haible  <bruno@clisp.org>
53560
53561         * modules/gettext (configure.ac): Add an invocation of
53562         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
53563
53564 2006-01-10  Bruno Haible  <bruno@clisp.org>
53565
53566         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
53567         Reported by Werner Lemberg <wl@gnu.org>.
53568
53569 2006-01-10  Bruno Haible  <bruno@clisp.org>
53570
53571         * lib/localcharset.c: Update from GNU gettext.
53572
53573 2006-01-10  Bruno Haible  <bruno@clisp.org>
53574
53575         * lib/argp.h (__const): Remove macro. Use const instead.
53576         * lib/argp-fmtstream.h (__const): Likewise.
53577         * lib/glob_.h (__const): Remove macro.
53578         * lib/glob-libc.h: Use const instead of __const.
53579
53580 2006-01-10  Bruno Haible  <bruno@clisp.org>
53581
53582         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
53583         variable.
53584         Needed to avoid an automake error regarding the 'gettext' module.
53585
53586 2006-01-09  Simon Josefsson  <jas@extundo.com>
53587
53588         * modules/inet_ntop (Depends-on): Add restrict.
53589
53590 2006-01-09  Simon Josefsson  <jas@extundo.com>
53591
53592         * modules/gc-rijndael-tests (License): Put under LGPL.
53593
53594         * modules/gc-des-tests (License): Likewise.
53595
53596         * modules/gc-arcfour-tests (License): Likewise.
53597
53598         * modules/gc-arctwo-tests (License): Likewise.
53599
53600         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
53601
53602         * modules/gc-hmac-sha1-tests (Files): Likewise.
53603
53604         * modules/gc-hmac-md5-tests (License): Likewise.
53605
53606         * modules/gc-sha1-tests (License): Likewise.
53607
53608         * modules/gc-md5-tests (License): Likewise.
53609
53610         * modules/gc-md4-tests (License): Likewise.
53611
53612         * modules/gc-md2-tests (License): Likewise.
53613
53614         * modules/gc-tests (License): Likewise.
53615
53616         * modules/des-tests (License): Likewise.
53617
53618         * modules/md4-tests (License): Likewise.
53619
53620         * modules/md2-tests (License): Likewise.
53621
53622 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53623
53624         Sync from coreutils:
53625
53626         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
53627         * modules/lib-ignore: New file.
53628         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
53629         chdir-safer.m4, lchmod.m4.
53630         * modules/openat: Add mkdirat.c, openat-priv.h.
53631
53632 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53633
53634         Sync from coreutils.
53635         * m4/lib-ignore.m4: New file.
53636         * m4/lchmod.m4: New file.
53637
53638 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53639
53640         Sync from coreutils.
53641         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
53642         for write access: POSIX says that must fail.
53643         * lib/fts.c (diropen): Likewise.
53644         * lib/save-cwd.c (save_cwd): Likewise.
53645         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
53646         well, for minor improvements on hosts that lack O_DIRECTORY.
53647         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
53648         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
53649         Fall back on chown if open failed with EACCES.
53650
53651         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
53652         Report an error at compile-time if only a 1-second nominal clock
53653         resolution is found.
53654
53655         * lib/lchmod.h: New file.
53656         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
53657         (make_dir_parents): Use lchown rather than chown, and
53658         lchmod rather than chmod.
53659
53660         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
53661         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
53662         "proc" reported by n0dalus.
53663
53664         * lib/mountlist.c: Include <limits.h>.
53665         (dev_from_mount_options)
53666         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
53667         New function.  It no longer assumes "dev=" has the System V meaning
53668         on Linux (since it doesn't).  It also parses "dev=" more carefully.
53669         (read_file_system_list)
53670         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
53671         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
53672         dev= in that case.
53673
53674         * lib/posixtm.h (PDS_PRE_2000): New macro.
53675         * lib/posixtm.c (year): Arg is now syntax_bits rather than
53676         allow_century.  All usages changed.  Reject dates outside the range
53677         1969-1999 if PDS_PRE_2000 is used.
53678
53679 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
53680
53681         Sync from coreutils.
53682         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
53683         (Time of day items): Mention the possibility of leap seconds.
53684         Problem reported by Dr. David Alan Gilbert.
53685
53686 2006-01-09  Jim Meyering  <jim@meyering.net>
53687
53688         Sync from coreutils.
53689
53690         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
53691
53692         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
53693
53694         * lib/modechange.c (mode_compile): Reject an invalid mode string
53695         that starts with an octal digit.  From Andreas Gruenbacher.
53696
53697         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
53698         and dup to open_safer and dup_safer, respectively.
53699         (openat_permissive): Fix typo in comment.
53700
53701         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
53702         "gettext.h"; either no longer needed or are guaranteed by openat.h.
53703         (_): Remove; no longer needed.
53704         (openat): Renamed from rpl_openat; no need for rpl_openat
53705         since openat.h renames openat for us.
53706         Replace most of the body with a call to openat_permissive,
53707         to avoid duplicate code.
53708         Port to (probably hypothetical) environments were mode_t is
53709         wider than int.
53710         (openat_permissive): Require mode arg, so that we can check
53711         types better.  Put it just after flags.  Change cwd failure
53712         indicator from pointer-to-bool to pointer-to-errno-value.
53713         All callers changed.
53714         Invoke openat_save_fail and/or openat_restore_fail if
53715         cwd_errno is null, so that openat can call us.
53716         (openat_permissive, fdopendir, fstatat, unlinkat):
53717         Simplify errno handling to avoid some duplicate code,
53718         as it's OK to set errno on success.
53719         * lib/openat.h: Revamp code so that function macros depend on
53720         __OPENAT_PREFIX only, not also on AT_FDCWD.
53721         (openat_ro): Remove.  Caller changed to use openat_permissive.
53722         (openat_permissive): Now a macro, if not a function.
53723         (openat_restore_fail, openat_save_fail): Now always functions,
53724         since mkdirat needs them even if __OPENAT_PREFIX is defined.
53725
53726         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
53727         and openat.c.
53728         * lib/mkdirat.c: Include openat-priv.h.
53729         Remove definitions of macros defined therein.
53730         * lib/openat.c: Likewise.
53731
53732         * lib/mkdirat.c (mkdirat): New file and function.
53733         * lib/openat.h (mkdirat): Declare.
53734
53735         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
53736
53737         * lib/openat.h (openat_permissive): Declare.
53738         (openat_ro): Define.
53739
53740         * lib/openat.c (EXPECTED_ERRNO): New macro.
53741         (openat_permissive): New function -- used in remove.c rewrite.
53742         (all functions): Set errno just before returning, only if there
53743         was an actual failure.
53744         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
53745
53746         Emulate openat-family functions using Linux's procfs, if possible.
53747         Idea and some code based on Ulrich Drepper's glibc changes.
53748
53749         * lib/openat.c: (BUILD_PROC_NAME): New macro.
53750         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
53751         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
53752         before falling back on save_cwd and restore_cwd.
53753         (fdopendir, fstatat, unlinkat): Likewise.
53754
53755         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
53756         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
53757
53758         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
53759         as second argument to va_arg.  Otherwise, some versions of gcc
53760         warn that `if this code is reached, the program will abort'.
53761
53762 2006-01-09  Jim Meyering  <jim@meyering.net>
53763
53764         Sync from coreutils.
53765         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
53766         Require openat-priv.h.
53767
53768 2006-01-09  Bruno Haible  <bruno@clisp.org>
53769
53770         * modules/strnlen (Include): Use strnlen.h.
53771
53772 2006-01-09  Bruno Haible  <bruno@clisp.org>
53773
53774         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
53775
53776 2006-01-09  Bruno Haible  <bruno@clisp.org>
53777
53778         * lib/sysexit_.h (EX_OK): New macro.
53779         Suggested by Martin Lambers <marlam@marlam.de>.
53780
53781 2006-01-09  Bruno Haible  <bruno@clisp.org>
53782
53783         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
53784         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
53785
53786 2006-01-09  Bruno Haible  <bruno@clisp.org>
53787
53788         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
53789         numbers.
53790
53791 2006-01-09  Bruno Haible  <bruno@clisp.org>
53792
53793         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
53794         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
53795         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
53796         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
53797
53798 2006-01-09  Bruno Haible  <bruno@clisp.org>
53799
53800         * build-aux/javacomp.sh.in: New file, moved from lib/.
53801         * modules/javacomp-script (Files): Update.
53802         (configure.ac): Add AC_CONFIG_FILES invocation.
53803         (EXTRA_DIST): Remove variable.
53804
53805         * build-aux/javaexec.sh.in: New file, moved from lib/.
53806         * modules/javaexec (Files): Update.
53807         (configure.ac): Add AC_CONFIG_FILES invocation.
53808         (EXTRA_DIST): Remove javaexec.sh.in.
53809
53810         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
53811         * modules/csharpcomp-script (Files): Update.
53812         (configure.ac): Add AC_CONFIG_FILES invocation.
53813         (EXTRA_DIST): Remove variable.
53814
53815         * build-aux/csharpexec.sh.in: New file, moved from lib/.
53816         * modules/csharpexec (Files): Update.
53817         (configure.ac): Add AC_CONFIG_FILES invocation.
53818         (EXTRA_DIST): Remove csharpexec.sh.in.
53819
53820 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
53821
53822         Sync from coreutils.
53823
53824         Add POSIX ACL support
53825         * lib/acl.h (copy_acl, set_acl): Add declarations.
53826         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
53827         systems other than Linux.
53828         (chmod_or_fchmod): New function: use fchmod when possible,
53829         and chmod otherwise.
53830         (file_has_acl): Add a POSIX ACL implementation, with a
53831         Linux-specific subcase.
53832         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
53833         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
53834         acls are unsupported.
53835         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
53836         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
53837         are unsupported.
53838
53839 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
53840
53841         Sync from coreutils.
53842         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
53843
53844 2006-01-07  Bruno Haible  <bruno@clisp.org>
53845
53846         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
53847         gl_EARLY.
53848
53849 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
53850
53851         * lib/strftime.c (tzname): Don't declare if it is already #defined.
53852         Problem reported for Mingw by Mark Junker.
53853
53854 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
53855
53856         * README: Gnulib normally doesn't generate a tarball.
53857
53858 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
53859
53860         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
53861         long int, not int, for nanosecond counts, so that people who are
53862         used to POSIX struct timespec won't be surprised.  Reported by Jim
53863         Meyering.
53864
53865 2005-12-28  Bruno Haible  <bruno@clisp.org>
53866
53867         * build-aux/config.rpath: Update from GNU gettext.
53868
53869 2005-12-16  Jim Meyering  <jim@meyering.net>
53870
53871         * modules/fprintftime: New module.
53872         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
53873
53874 2005-12-16  Jim Meyering  <jim@meyering.net>
53875
53876         * m4/fprintftime.m4: New file.
53877
53878 2005-12-16  Jim Meyering  <jim@meyering.net>
53879
53880         * lib/fprintftime.c, lib/fprintftime.h: New files.
53881
53882 2005-12-15  Simon Josefsson  <jas@extundo.com>
53883
53884         * modules/socklen (configure.ac): Fix M4 macro name, to align with
53885         new m4/socklen.m4.
53886
53887 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
53888
53889         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
53890         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
53891
53892 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
53893
53894         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
53895         * lib/argp-help.c (fill_in_uparams): Check if the constructed
53896         struct uparams is valid. Fall back to the default values if it is
53897         not.
53898
53899 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
53900
53901         * modules/argp (Files): Add argp-pin.c
53902         (Depends-on): dirname
53903         (lib_SOURCES): Add argp-pin.c
53904
53905 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
53906
53907         * m4/argp.m4:  Check if program_invocation_name and
53908         program_invocation_short_name are declared and define appropriate
53909         macros if they are not.
53910
53911 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
53912
53913         * lib/argp-help.c (__argp_base_name): New function
53914         (__argp_short_program_name): Rewrite using __argp_base_name
53915         * lib/argp-namefrob.h: Define program_invocation_name and
53916         program_invocation_short_name if requested
53917         (__argp_base_name): Add prototype
53918         * lib/argp-parse.c (argp_def): Use gettext wrappers
53919         (argp_default_parser): Use __argp_base_name
53920         * lib/argp-pin.c: New file. Defines program_invocation_name and
53921         program_invocation_short_name on systems that lack them.
53922
53923 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
53924
53925         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
53926         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
53927         porting problem reported by Georg Schwarz in
53928         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
53929
53930 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
53931
53932         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
53933         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
53934         porting problem reported by Georg Schwarz in
53935         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
53936
53937 2005-12-05  Bruno Haible  <bruno@clisp.org>
53938
53939         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
53940         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
53941         Reported by Mark Junker <mjscod@gmx.de>.
53942
53943 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
53944
53945         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
53946         Use implementation from Albert Chin, with some
53947         comments/corrections by Stepan Kasal and myself.
53948
53949 2005-12-02  Bruno Haible  <bruno@clisp.org>
53950
53951         * gnulib-tool (func_import): Accept GPLed build tool modules when
53952         --lgpl is given.
53953         * modules/csharpcomp-script: New file.
53954         * modules/csharpcomp: Depend on it.
53955         * modules/javacomp-script: New file.
53956         * modules/javacomp: Depend on it.
53957         Suggested by Simon Josefsson.
53958
53959 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
53960
53961         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
53962         statement, to work around an HP-UX 10.20 compiler bug reported by
53963         Peter O'Gorman.
53964
53965 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
53966
53967         * modules/savedir (Depends-on): Add openat.
53968
53969 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
53970
53971         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
53972         (uintmax_t) [defined uintmax_t]: Do not declare.
53973         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
53974         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
53975         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
53976         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
53977         sake of portability to weird hosts that C allows (though we don't
53978         know of any practical examples).
53979
53980         * lib/savedir.h (fdsavedir): New decl.
53981         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
53982         contains most of the former guts of savedir.
53983         (savedir): Use savedirstream.
53984         Include "openat.h".
53985
53986 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
53987
53988         * modules/obstack (Files): Add m4/ulonglong.m4.
53989         Problem reported by Davide Angelocola.
53990
53991 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
53992
53993         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
53994         coreutils no longer futzes with rounding modes.
53995
53996 2005-11-14  Jim Meyering  <jim@meyering.net>
53997
53998         * lib/mkstemp-safer.c: Include <config.h>, required for possible
53999         replacement of mkstemp.
54000
54001 2005-11-10  Simon Josefsson  <jas@extundo.com>
54002
54003         * lib/readline.c: Remove EOL.
54004
54005 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
54006
54007         * modules/gethrxtime (Depends-on): Add gettime.
54008
54009 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
54010
54011         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
54012         or gettimeofday; no longer needed.
54013
54014 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
54015
54016         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
54017         time business.
54018         (gethrxtime) [! (HAVE_NANOUPTIME
54019         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
54020         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
54021         our own approximation.
54022
54023 2005-11-08  Eric Blake  <ebb9@byu.net>
54024
54025         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
54026
54027 2005-11-08  Eric Blake  <ebb9@byu.net>
54028
54029         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
54030
54031 2005-11-04  Bruno Haible  <bruno@clisp.org>
54032
54033         * gnulib-tool: Implement --update mode.
54034
54035 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
54036
54037         Fix porting problem reported by Theodoros V. Kalamatianos.
54038         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
54039         Don't assume that futimes failing means we must fail.
54040
54041 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
54042
54043         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
54044         variables to suggest the intended function of the PATH_MAX check.
54045
54046 2005-10-30  Kean Johnston  <jkj@sco.com>
54047
54048         Trivial changes to support SCO systems.
54049         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
54050         as PATH_MAX.
54051         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
54052         where __ptr is null when no I/O is pending.
54053
54054 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
54055
54056         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
54057         leave errno alone.  Problem reported by Dmitry V. Levin.
54058
54059 2005-10-28  Simon Josefsson  <jas@extundo.com>
54060
54061         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
54062         Test more.
54063
54064         * tests/test-gc-md2.c, tests/test-md2.c: New files.
54065
54066         * modules/md2, modules/md2-tests: New files.
54067
54068 2005-10-28  Simon Josefsson  <jas@extundo.com>
54069
54070         * m4/inet_ntop.m4: More tests.
54071
54072         * m4/gc-md2.m4, md2.m4: New file.
54073
54074 2005-10-28  Simon Josefsson  <jas@extundo.com>
54075
54076         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
54077         "restrict" keywords, as per POSIX.  Protect the function
54078         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
54079         Don't use K&R prototypes.  Check the sprintf return values.
54080         Re-define EAFNOSUPPORT if not present.  Indent.
54081
54082         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
54083         suggested by Bruno Haible <bruno@clisp.org>.
54084
54085         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
54086
54087         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
54088
54089         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
54090         libgcrypt).
54091
54092         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
54093
54094         * lib/md2.h, lib/md2.c: New files.
54095
54096 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
54097
54098         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
54099         errno alone.  Problem reported by Frederic Jolliton.
54100
54101 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
54102
54103         * modules/verify (License): Change from GPL to LGPL.  This is a
54104         tiny module and there are apparently near-equivalents that are
54105         under the BSD license.
54106
54107 2005-10-24  Simon Josefsson  <jas@extundo.com>
54108
54109         * modules/sha1: Relicense to LGPL.
54110
54111 2005-10-24  Simon Josefsson  <jas@extundo.com>
54112
54113         * lib/md4.h: Shrink buffer size, now that we changed the type.
54114
54115 2005-10-23  Simon Josefsson  <jas@extundo.com>
54116
54117         * gnulib-tool (func_import): Fix --tests-base.
54118
54119 2005-10-22  Simon Josefsson  <jas@extundo.com>
54120
54121         * modules/arcfour (Depends-on): Need stdint.
54122
54123 2005-10-22  Simon Josefsson  <jas@extundo.com>
54124
54125         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
54126         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
54127
54128 2005-10-22  Simon Josefsson  <jas@extundo.com>
54129
54130         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
54131         suggested by Bruno Haible <bruno@clisp.org>.
54132
54133 2005-10-22  Simon Josefsson  <jas@extundo.com>
54134
54135         * lib/crc.h: Include stddef.h, for size_t.
54136
54137 2005-10-22  Simon Josefsson  <jas@extundo.com>
54138
54139         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
54140         arcfour_context struct (simplify test vector testing in GNU
54141         Shishi).
54142
54143 2005-10-21  Simon Josefsson  <jas@extundo.com>
54144
54145         * modules/des, modules/des-tests: New files.
54146
54147         * modules/gc-des, modules/gc-des-tests: New files.
54148
54149         * tests/test-des.c, tests/test-gc-des.c: New file.
54150
54151 2005-10-21  Simon Josefsson  <jas@extundo.com>
54152
54153         * modules/arctwo, modules/arctwo-tests: New files.
54154
54155         * tests/test-arctwo.c: New file.
54156
54157         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
54158
54159         * tests/test-gc-arctwo.c: New file.
54160
54161 2005-10-21  Simon Josefsson  <jas@extundo.com>
54162
54163         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
54164         Bruno Haible <bruno@clisp.org>.
54165
54166         * m4/gc-des.m4: New file.
54167
54168 2005-10-21  Simon Josefsson  <jas@extundo.com>
54169
54170         * m4/arctwo.m4: New file.
54171
54172         * m4/gc-arctwo.m4: New file.
54173
54174 2005-10-21  Simon Josefsson  <jas@extundo.com>
54175
54176         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
54177         block.
54178
54179 2005-10-21  Simon Josefsson  <jas@extundo.com>
54180
54181         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
54182         <bruno@clisp.org>.
54183
54184         * lib/hmac-sha1.c (hmac_sha1): Likewise.
54185
54186         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
54187         Bruno Haible <bruno@clisp.org>.
54188
54189         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
54190         <bruno@clisp.org>.
54191
54192 2005-10-21  Simon Josefsson  <jas@extundo.com>
54193
54194         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
54195
54196 2005-10-21  Simon Josefsson  <jas@extundo.com>
54197
54198         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
54199
54200 2005-10-21  Simon Josefsson  <jas@extundo.com>
54201
54202         * lib/des.h, lib/des.c: New files.
54203
54204         * lib/gc-gnulib.c: Support DES.c
54205
54206 2005-10-21  Simon Josefsson  <jas@extundo.com>
54207
54208         * lib/arctwo.h, lib/arctwo.c: New files.
54209
54210         * lib/gc-gnulib.c: Support ARCTWO.
54211
54212 2005-10-21  Simon Josefsson  <jas@extundo.com>
54213
54214         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
54215         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54216
54217 2005-10-21  Simon Josefsson  <jas@extundo.com>
54218
54219         * gnulib-tool (func_import, func_create_testdir): Define automake
54220         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
54221         Makefile.am snippet),
54222         suggested by Bruno Haible <bruno@clisp.org>.
54223
54224         * modules/gc (Makefile.am): Use it.
54225
54226 2005-10-21  Bruno Haible  <bruno@clisp.org>
54227
54228         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
54229         patch.
54230
54231 2005-10-19  Simon Josefsson  <jas@extundo.com>
54232
54233         * tests/test-gc-rijndael.c: New file.
54234
54235         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
54236
54237 2005-10-19  Simon Josefsson  <jas@extundo.com>
54238
54239         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
54240         interface too.
54241
54242 2005-10-19  Simon Josefsson  <jas@extundo.com>
54243
54244         * tests/test-gc-arcfour.c: New file.
54245
54246         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
54247
54248 2005-10-19  Simon Josefsson  <jas@extundo.com>
54249
54250         * modules/gc-md4, modules/gc-md4-tests: New file.
54251
54252         * tests/test-gc-md4.c: New file.
54253
54254 2005-10-19  Simon Josefsson  <jas@extundo.com>
54255
54256         * m4/gc-md4.m4: New file.
54257
54258 2005-10-19  Simon Josefsson  <jas@extundo.com>
54259
54260         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
54261         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
54262         <kasal@ucw.cz>.
54263
54264 2005-10-19  Simon Josefsson  <jas@extundo.com>
54265
54266         * m4/gc-arcfour.m4: New file.
54267
54268         * m4/gc-rijndael.m4: New file.
54269
54270 2005-10-19  Simon Josefsson  <jas@extundo.com>
54271
54272         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
54273
54274 2005-10-19  Simon Josefsson  <jas@extundo.com>
54275
54276         * lib/gc-gnulib.c: Support ARCFOUR.
54277
54278 2005-10-19  Simon Josefsson  <jas@extundo.com>
54279
54280         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
54281         support.
54282
54283         * lib/gc.h: Add ECB enum type.
54284
54285         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
54286
54287 2005-10-18  Simon Josefsson  <jas@extundo.com>
54288
54289         * tests/test-md5.c: New file.
54290
54291         * modules/md5-tests: New file.
54292
54293 2005-10-18  Simon Josefsson  <jas@extundo.com>
54294
54295         * tests/test-md4.c: New file.
54296
54297         * modules/md4, modules/md4-tests: New files.
54298
54299 2005-10-18  Simon Josefsson  <jas@extundo.com>
54300
54301         * m4/md4.m4: New file.
54302
54303 2005-10-18  Simon Josefsson  <jas@extundo.com>
54304
54305         * lib/md4.h, lib/md4.c: New files, based on md5.?.
54306
54307 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
54308
54309         * gnulib-tool (func_create_testdir): Omit the second check whether
54310         BUILT_SOURCES in nonempty.
54311
54312 2005-10-17  Simon Josefsson  <jas@extundo.com>
54313
54314         * tests/test-rijndael.c: New file.
54315
54316 2005-10-17  Simon Josefsson  <jas@extundo.com>
54317
54318         * modules/sha1: Depend on stdint instead of md5.
54319
54320         * modules/md5: Depend on stdint, remove uint32_t.
54321
54322 2005-10-17  Simon Josefsson  <jas@extundo.com>
54323
54324         * modules/gc-sha1-tests: New file.
54325
54326         * tests/test-gc-sha1.c: New file.
54327
54328 2005-10-17  Simon Josefsson  <jas@extundo.com>
54329
54330         * m4/md5.m4: Remove call to uint32_t.m4.
54331
54332 2005-10-17  Simon Josefsson  <jas@extundo.com>
54333
54334         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
54335
54336         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
54337         md5.h.
54338
54339         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
54340
54341         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
54342
54343 2005-10-17  Simon Josefsson  <jas@extundo.com>
54344
54345         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
54346
54347 2005-10-17  Simon Josefsson  <jas@extundo.com>
54348
54349         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
54350
54351 2005-10-17  Simon Josefsson  <jas@extundo.com>
54352
54353         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
54354
54355         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
54356
54357 2005-10-17  Bruno Haible  <bruno@clisp.org>
54358
54359         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
54360         that it can also be used in a test.
54361
54362 2005-10-16  Bruno Haible  <bruno@clisp.org>
54363
54364         * gnulib-tool (func_emit_tests_Makefile_am): Also define
54365         TESTS_ENVIRONMENT, so that individual tests can augment it.
54366
54367         * gnulib-tool (func_create_testdir): Use an intermediate target for
54368         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
54369         macros, like $(ALLOCA_H), which cannot be passed through the command
54370         line.
54371
54372 2005-10-15  Simon Josefsson  <jas@extundo.com>
54373
54374         * modules/rijndael-tests: New file.
54375
54376         * modules/rijndael: New file.
54377
54378 2005-10-15  Simon Josefsson  <jas@extundo.com>
54379
54380         * m4/rijndael.m4: New file.
54381
54382 2005-10-15  Simon Josefsson  <jas@extundo.com>
54383
54384         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
54385
54386         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
54387
54388 2005-10-14  Simon Josefsson  <jas@extundo.com>
54389
54390         * tests/test-arcfour.c: New file.
54391
54392         * modules/arcfour, modules/arcfour-tests: New files.
54393
54394 2005-10-14  Simon Josefsson  <jas@extundo.com>
54395
54396         * m4/arcfour.m4: New file.
54397
54398 2005-10-14  Simon Josefsson  <jas@extundo.com>
54399
54400         * lib/arcfour.h, lib/arcfour.c: New files.
54401
54402 2005-10-14  Roland McGrath  <roland@redhat.com>
54403
54404         Import from libc.  [BZ #1331]
54405         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
54406         macro argument.
54407         Reported by Matej Vela <vela@debian.org>.
54408
54409 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
54410
54411         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
54412         include <wchar.h>; no longer needed.
54413
54414 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
54415
54416         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
54417
54418 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
54419         and  Ulrich Drepper  <drepper@redhat.com>
54420
54421         Import from libc.
54422         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
54423         instead of inline stream orientation test and two separate
54424         function calls.  Pay no attention to USE_IN_LIBIO.
54425
54426 2005-10-13  Simon Josefsson  <jas@extundo.com>
54427
54428         * modules/gc-hmac-md5-tests: New file.
54429
54430         * tests/test-gc-hmac-sha1.c: New file.
54431
54432         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
54433
54434         * modules/gc-hmac-md5-tests: New file.
54435
54436         * tests/test-gc-md5.c: New file.
54437
54438         * modules/gc-md5-tests: New file.
54439
54440 2005-10-13  Simon Josefsson  <jas@extundo.com>
54441
54442         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
54443         Move memory allocation outside of loop.
54444
54445 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
54446
54447         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
54448         intermediate directory is in a read-only file system.  Problem
54449         reported by Eric Blake.
54450
54451 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
54452
54453         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
54454
54455 2005-10-12  Simon Josefsson  <jas@extundo.com>
54456
54457         * tests/test-hmac-sha1.c: New file.
54458
54459         * modules/hmac-sha1-tests: New file.
54460
54461         * modules/hmac-sha1: New file.
54462
54463 2005-10-12  Simon Josefsson  <jas@extundo.com>
54464
54465         * modules/gc-sha1: New file.
54466
54467 2005-10-12  Simon Josefsson  <jas@extundo.com>
54468
54469         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
54470
54471         * tests/test-gc-pbkdf2-sha1.c: New file.
54472
54473 2005-10-12  Simon Josefsson  <jas@extundo.com>
54474
54475         * modules/gc-md5, modules/gc-hmac-md5: New files.
54476
54477         * modules/gc (Files): Remove md5, memxor and hmac files.
54478
54479 2005-10-12  Simon Josefsson  <jas@extundo.com>
54480
54481         * m4/gc-pbkdf2-sha1.m4: New file.
54482
54483         * m4/gc-hmac-sha1.m4: New file.
54484
54485         * m4/gc-sha1: New file.
54486
54487         * m4/hmac-sha1.m4: New file.
54488
54489 2005-10-12  Simon Josefsson  <jas@extundo.com>
54490
54491         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
54492
54493         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
54494
54495 2005-10-12  Simon Josefsson  <jas@extundo.com>
54496
54497         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
54498         suggested by Bruno Haible <bruno@clisp.org>.
54499
54500 2005-10-12  Simon Josefsson  <jas@extundo.com>
54501
54502         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
54503
54504 2005-10-12  Simon Josefsson  <jas@extundo.com>
54505
54506         * lib/gc-pbkdf2-sha1.c: New file.
54507
54508         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
54509
54510 2005-10-12  Simon Josefsson  <jas@extundo.com>
54511
54512         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
54513
54514         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
54515
54516 2005-10-12  Simon Josefsson  <jas@extundo.com>
54517
54518         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
54519         GC_USE_HMAC_MD5, respectively.
54520
54521         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
54522         (gc_md5): Fix typo.
54523
54524         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
54525
54526         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
54527
54528         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
54529
54530 2005-10-12  Bruno Haible  <bruno@clisp.org>
54531
54532         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
54533         Reported by Stepan Kasal <kasal@ucw.cz>.
54534
54535 2005-10-11  Simon Josefsson  <jas@extundo.com>
54536
54537         * tests/test-crc.c: New file.
54538
54539         * modules/crc, modules/crc-tests: New files.
54540
54541 2005-10-11  Simon Josefsson  <jas@extundo.com>
54542
54543         * m4/crc.m4: New file.
54544
54545 2005-10-11  Simon Josefsson  <jas@extundo.com>
54546
54547         * lib/gc.h: Add gc_hash and gc_hash_buffer.
54548
54549         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
54550
54551         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
54552
54553 2005-10-11  Simon Josefsson  <jas@extundo.com>
54554
54555         * lib/crc.h, lib/crc.c: New files.
54556
54557         * lib/gc.h (gc_hash_buffer): Add doc.
54558
54559 2005-10-11  Bruno Haible  <bruno@clisp.org>
54560
54561         * modules/c-strcasestr: New file.
54562         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
54563
54564 2005-10-11  Bruno Haible  <bruno@clisp.org>
54565
54566         * modules/c-strcase: New file.
54567         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
54568
54569 2005-10-11  Bruno Haible  <bruno@clisp.org>
54570
54571         * lib/strcasecmp.c: Include limits.h.
54572         (strcasecmp): Avoid integer overflow on exotic platforms.
54573         * lib/strncasecmp.c: Include limits.h.
54574         (strncasecmp): Avoid integer overflow on exotic platforms.
54575         Reported by Paul Eggert.
54576
54577 2005-10-11  Bruno Haible  <bruno@clisp.org>
54578
54579         * lib/c-strcasestr.h: New file, from GNU gettext.
54580         * lib/c-strcasestr.c: New file, from GNU gettext.
54581
54582 2005-10-11  Bruno Haible  <bruno@clisp.org>
54583
54584         * lib/c-strcase.h: New file, from GNU gettext.
54585         * lib/c-strcasecmp.c: New file, from GNU gettext.
54586         * lib/c-strncasecmp.c: New file, from GNU gettext.
54587
54588 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
54589
54590         * modules/mempcpy (License): GPL -> LGPL.
54591         * modules/strchrnul (License): Likewise.
54592         * modules/sysexits (License): Likewise.
54593
54594 2005-10-08  Simon Josefsson  <jas@extundo.com>
54595
54596         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
54597
54598 2005-10-07  Simon Josefsson  <jas@extundo.com>
54599
54600         * m4/memxor.m4: Remove gl_C_RESTRICT call.
54601
54602 2005-10-06  Simon Josefsson  <jas@extundo.com>
54603
54604         * tests/test-hmac-md5.c: New file.
54605
54606         * modules/hmac-md5-tests: New file.
54607
54608         * modules/hmac-md5: New file.
54609
54610 2005-10-06  Simon Josefsson  <jas@extundo.com>
54611
54612         * m4/hmac-md5.m4: New file.
54613
54614         * m4/memxor.m4: Require gl_C_RESTRICT.
54615
54616 2005-10-06  Simon Josefsson  <jas@extundo.com>
54617
54618         * lib/memxor.c (memxor): Avoid casts and warnings.
54619
54620 2005-10-06  Simon Josefsson  <jas@extundo.com>
54621
54622         * lib/hmac-md5.c: New file.
54623
54624         * lib/hmac.h: New file.
54625
54626 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
54627
54628         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
54629         promotes to int, not unsigned int, to catch the AIX 5.3
54630         compiler bug.
54631
54632 2005-10-05  Simon Josefsson  <jas@extundo.com>
54633
54634         * modules/memxor: New file.
54635
54636         * modules/iconv (Files): Move config.rpath to havelib, it is used
54637         there.
54638
54639         * modules/havelib (Files): Add config.rpath.
54640
54641 2005-10-05  Simon Josefsson  <jas@extundo.com>
54642
54643         * m4/memxor.m4: New file.
54644
54645 2005-10-05  Simon Josefsson  <jas@extundo.com>
54646
54647         * lib/memxor.c (memxor): Fix compiler error.
54648
54649         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
54650         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
54651
54652         * lib/memxor.h, lib/memxor.c: New files.
54653
54654         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
54655         we assume all systems have it, suggested by Jim Meyering
54656         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
54657         any systems lack sys/socket.h; mingw32 is known to lack it, but we
54658         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
54659         same reasons.
54660
54661 2005-10-05  Simon Josefsson  <jas@extundo.com>
54662
54663         * config/srclist.txt: Add glibc bug 1423 for md5.h.
54664
54665 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
54666
54667         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
54668         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
54669         needed, since the source code now assumes these .h files.
54670
54671 2005-10-05  Derek Price  <derek@ximbiot.com>
54672
54673         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
54674
54675 2005-10-05  Bruno Haible  <bruno@clisp.org>
54676
54677         * modules/stdint (License): Change to LGPL.
54678
54679 2005-10-04  Simon Josefsson  <jas@extundo.com>
54680
54681         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
54682         D. Baushke" <mdb@gnu.org>.
54683
54684 2005-10-04  Bruno Haible  <bruno@clisp.org>
54685
54686         * lib/verify.h (verify_true): Provide alternative definition for C++.
54687
54688 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
54689
54690         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
54691         (SSIZE_MAX): New macro, if not already defined.
54692         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
54693         than 2 GiB.
54694
54695 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
54696
54697         Sync from coreutils.
54698         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
54699         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
54700         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
54701         ULLONG_MAX doesn't work with 2.7.2.1.
54702
54703 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
54704
54705         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
54706         From Ben Pfaff.
54707
54708         * modules/exclude (Depends-on): Depend on verify.
54709         * modules/strtoimax (Depends-on): Likewise.
54710         * modules/utimecmp (Depends-on): Likewise.
54711
54712 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
54713
54714         * lib/exclude.c: Include verify.h.
54715         (verify): Remove.  All callers changed to use verify.h's version.
54716         * lib/strtoimax.c: Likewise.
54717         * lib/utimecmp.c: Likewis.e
54718
54719         Sync from coreutils.
54720         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
54721         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
54722         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
54723         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
54724         bother returning ENOSYS if settimeofday or stime fails; just let
54725         them return whatever errno they want to return.
54726         * lib/utimens.c: Include unistd.h, for dup2.
54727         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
54728         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
54729
54730 2005-10-02  Jim Meyering  <jim@meyering.net>
54731
54732         Sync from coreutils.
54733         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
54734         from glibc-2.2.5 that fails for read-only files.
54735
54736 2005-10-02  Jim Meyering  <jim@meyering.net>
54737
54738         Sync from coreutils.
54739         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
54740         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
54741         `#if HAVE_CONFIG_H'.
54742         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
54743         Remove AT_FDCWD test.
54744         Do not consume the fd unless successful.
54745         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
54746         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
54747         block, so that we don't even try to compile it if settimeofday is
54748         available.  This works around a compilation failure on OSF1 V5.1,
54749         due to stime requiring a `long int*' while tv_sec is `int'.
54750
54751 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
54752
54753         Sync from coreutils.
54754         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
54755         against `yes', rather than just testing for nonempty.
54756
54757 2005-10-01  Simon Josefsson  <jas@extundo.com>
54758
54759         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
54760         and Darwin.
54761
54762         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
54763         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
54764         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
54765         freeaddrinfo and gai_strerror are declared by the POSIX headers.
54766         Check if struct addrinfo is declared.
54767
54768 2005-10-01  Simon Josefsson  <jas@extundo.com>
54769
54770         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
54771         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
54772         AI_* and EAI_* definitions.  Protect function declarations.
54773
54774 2005-10-01  Jim Meyering  <jim@meyering.net>
54775
54776         Sync from coreutils.
54777
54778         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
54779         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
54780         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
54781         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
54782         in the inet and nsl libraries.  Required on Solaris 5.7.
54783
54784 2005-10-01  Jim Meyering  <jim@meyering.net>
54785
54786         Sync from coreutils.
54787         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
54788         in the inet and nsl libraries.  Required on Solaris 5.7.
54789
54790 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
54791
54792         * lib/getdelim.c (getdelim): Remove unused variables.
54793
54794 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
54795
54796         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
54797         so that the code works even with ancient cpp.  Portability problem
54798         with GCC 2.7.2.1 reported by Thomas M.Ott.
54799
54800 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
54801
54802         * modules/regex (Depends-on): Add strcase.
54803
54804         * modules/gethostname (Licence): Change from GPL to LGPL, since
54805         gethostname.c is a trivial implementation of a standard library
54806         function.
54807         * modules/poll (License): Change from GPL to LGPL, since it's
54808         derived from LGPL code.
54809
54810 2005-09-27  Jim Meyering  <jim@meyering.net>
54811
54812         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
54813         HAVE_CONFIG_H.
54814
54815         * lib/intprops.h (signed_type_or_expr__): Define.
54816         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
54817         for unsigned types.
54818
54819 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
54820
54821         * lib/verify.h (verify_expr): Remove, replacing with:
54822         (verify_true): New macro that returns true instead of void.
54823         (verify_type__): Remove.
54824         (verify): Use verify_true rather than verify_type__.
54825
54826 2005-09-26  Bruno Haible  <bruno@clisp.org>
54827
54828         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
54829         is necessary.
54830         (lib_SOURCES): Remove mbchar.c.
54831         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
54832         (Files): Add m4/mbrtowc.m4.
54833         * modules/mbiter: Likewise.
54834         * modules/mbuiter: Likewise.
54835
54836 2005-09-26  Bruno Haible  <bruno@clisp.org>
54837
54838         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
54839         compile mbchar.c if they are not both present.
54840         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
54841         * m4/mbiter.m4 (gl_MBITER): Likewise.
54842         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
54843         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
54844         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
54845
54846 2005-09-25  Jim Meyering  <jim@meyering.net>
54847
54848         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
54849         also uses socklen_t.
54850
54851 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
54852
54853         * lib/utimens.c (ENOSYS): Define if not already defined.
54854         (futimens): Support having a null PATH if the file descriptor
54855         is nonnegative.
54856
54857         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
54858         Remove.
54859         (__attribute): Define to empty unless GCC 3.1 or later.
54860         This works around a core dump on OpenBSD 3.4, which has GCC
54861         2.95.3, which dumps core when given __attribute__(()).  It also
54862         simplifies other tests, since we really don't want to bother with
54863         worrying about which ancient version of GCC supported what.
54864         Original problem reported by Yoann Vandoorselaere, with part of
54865         the fix suggested by Derek Price.
54866
54867 2005-09-24  Jim Meyering  <jim@meyering.net>
54868
54869         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
54870         so we can once again use a positive bitfield width of 1 -- now we
54871         don't have to explain why we were using a bitfield width of 2.
54872
54873 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
54874
54875         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
54876         and similarly for the other external symbols.  Problem reported
54877         by James Gallager.
54878
54879         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
54880         bug reported by Jim Meyering.
54881
54882         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
54883         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
54884         not needed, since socklen is a prerequisite module.
54885
54886 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
54887
54888         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
54889         Problem reported by Eric Blake.
54890         (getaddrinfo): Initialize se so that it's not garbage.
54891         Redo internal storage allocation so that it doesn't make unportable
54892         assumptions about alignment.
54893         Fix a memory leak.
54894
54895         * lib/utimens.c (futimens): Use futimesat if available.
54896         Prefer it to futimes since it doesn't have the futimes bug.
54897
54898         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
54899         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
54900         Instead, declare a function that returns a pointer to an array,
54901         and use verify_type__ to declare the size of the array.
54902         Problem and germ of a solution reported by Bruno Haible.
54903         (verify_type__): Use 2, not 1, for bitfield size, to avoid
54904         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
54905
54906 2005-09-23  Jim Meyering  <jim@meyering.net>
54907
54908         Sync from coreutils.
54909         Correct build failure (socklen_t not defined) on at least
54910         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
54911         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
54912
54913 2005-09-23  Jim Meyering  <jim@meyering.net>
54914
54915         * modules/getaddrinfo (Depends-on): Add socklen.
54916
54917 2005-09-23  Bruno Haible  <bruno@clisp.org>
54918
54919         * tests/test-verify.c: New file.
54920
54921 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54922
54923         Sync from coreutils.
54924
54925         * modules/argmatch (Depends-on): Add verify.
54926         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
54927         unistd-safer.
54928         * modules/save-cwd (Depends-on): Likewise.
54929
54930         * modules/openat (Files): Add lib/openat-die.c.
54931         (Depends-on): Remove error, exitfail.
54932         Add dirname.
54933
54934         * modules/verify: New file.
54935         * MODULES.html.sh (Diagnostics <assert.h>): New section,
54936         with "verify" module.
54937
54938 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54939
54940         Sync from coreutils.
54941
54942         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
54943         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
54944         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
54945         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
54946         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
54947         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
54948         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
54949         Don't bother checking for string.h, stdlib.h, unistd.h.
54950         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
54951         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
54952         module's job.
54953         * m4/jm-macros.m4 (gl_MACROS): Likewise.
54954         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
54955
54956         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
54957         (gl_GETDATE): Use it.
54958
54959         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
54960
54961 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
54962
54963         Sync from coreutils.
54964
54965         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
54966         stat-time.h.
54967         * lib/argmatch.h: Include verify.h
54968         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
54969         (ARGMATCH_ASSERT): Remove; unused.
54970         * lib/canonicalize.c: Assume STDC_HEADERS.
54971         * lib/exclude.c: Include "strcase.h".
54972         * lib/regex_internal.h [!defined _LIBC]: Likewise.
54973         * lib/getusershell.c: Include stdio--.h rather than stdio.h
54974         and stdio-safer.h.
54975         (getusershell): Call fopen, not fopen_safer.
54976         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
54977         Do not include unistd-safer.h.
54978         (save_cwd): Don't call fd_safer; no longer needed
54979         now that we include fcntl--.h.
54980
54981         * lib/getdate.y (relative_time): New type.
54982         (RELATIVE_TIME_0): New constant.
54983         (parser_control): Use relative_time instead of doing it ourselves.
54984         (%union): Add new relative_time rel member.
54985         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
54986         Now typeless.
54987         (relunit, relunit_snumber): Now of type rel.
54988         (zone, rel, relunit, get_date): Adjust to above changes.
54989
54990         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
54991         Do not include unistd-safer.h.
54992         (getloadavg): Don't call fd_safer; no longer needed
54993         now that we include fcntl--.h.
54994
54995         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
54996         (make_dir_parents): Treat ENOSYS like EEXIST.
54997
54998         Improve quality of diagnostics on restore_cwd failure.
54999         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
55000         (make_dir_parents): Last arg is now int * (for errno), not bool *.
55001         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
55002         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
55003         each time through the loop.  Do not diagnose restore_cwd failure;
55004         that is the caller's job (and perhaps the caller does not care).
55005
55006         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
55007         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
55008         If the file already exists but is not a directory, don't bother
55009         to try to make its parents.
55010         Close potential file descriptor leak if we can't chdir("/") (!).
55011         Don't always return true if chdir($PWD) fails; return true only
55012         if the requested action was done successfully (except for the
55013         chdir($PWD)).
55014         Don't log final directory unless we actually made it.
55015         Refactor to avoid duplicate code to fix up permissions.
55016         Don't attempt to fix up parent permissions if chdir($PWD) fails.
55017
55018         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
55019         to make it a bit faster and (I hope) clearer.
55020         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
55021         Fix bug in formats like %2N.
55022
55023         * lib/verify.h: New file.
55024
55025 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
55026
55027         Sync from coreutils.
55028         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
55029
55030 2005-09-22  Jim Meyering  <jim@meyering.net>
55031
55032         Sync from coreutils.
55033
55034         * m4/lstat.m4 (gl_FUNC_LSTAT):
55035         Use AC_LIBSOURCES to require lstat.c and lstat.h.
55036         Remove obsolete comment.
55037         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
55038         * m4/xstrtod.m4: Likewise.
55039
55040         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
55041
55042 2005-09-22  Jim Meyering  <jim@meyering.net>
55043
55044         Sync from coreutils.
55045
55046         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
55047
55048         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
55049         the .tm_year member, since otherwise gcc-4.0 would now warn about
55050         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
55051
55052         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
55053         order to avoid an unsuppressible warning from gcc on 64-bit systems.
55054
55055         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
55056         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
55057         when run in a time zone for which daylight savings time is in effect
55058         for the starting date.
55059
55060         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
55061         stop us from restricting permissions of just-created absolute-named
55062         directories.
55063         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
55064         to restore initial working directory.
55065         * lib/mkdir-p.c (make_dir_parents): New parameter:
55066         different_working_dir, to tell caller if/when we change the working
55067         directory and are unable to return to the initial one.
55068         * lib/mkdir-p.h (make_dir_parents): Update prototype.
55069         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
55070         `return false'.  This fixes a bug introduced on 2004-07-30.
55071
55072         * lib/openat.c (fdopendir): Be sure to close the supplied
55073         file descriptor before returning.  This makes our replacement
55074         implementation a little closer to Solaris's, where fdopendir
55075         ties the file descriptor to the returned DIR* pointer.
55076         * lib/openat.c (unlinkat): New function.
55077         * lib/openat.h (unlinkat): Add prototype.
55078         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
55079         (openat_restore_fail): Rename from openat_restore_die.
55080         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
55081
55082         Provide an alternative to exiting immediately upon save_cwd or
55083         restore_cwd failure.  Now, an application can arrange e.g.,
55084         to perform a longjump in that case.
55085         * lib/openat.c: Include dirname.h.
55086         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
55087         (rpl_openat, fdopendir, fstatat): Call openat_save_die
55088         and openat_restore_die rather than calling error directly.
55089         Don't include "error.h" or "exitfail.h"; they're no longer needed.
55090
55091         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
55092         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
55093         define.
55094
55095         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
55096         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
55097                             int utc, int nanoseconds);
55098         Background:
55099         date should not have to allocate a megabyte of virtual memory to
55100         handle a format argument like +%1048575T.  When implemented with
55101         strftime, it must allocate such a buffer, use strftime to fill it
55102         in, print it, then free it.
55103         With fprintftime, it simply prints everything and exits.
55104         With no need for memory allocation, that's one fewer way to fail.
55105         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
55106         optional field width, not before, so we accept %9:z, not %:9z.
55107         (my_strftime): Be sure to use L_('x') for literals.
55108
55109         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
55110         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
55111         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
55112         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
55113         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
55114         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
55115         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
55116         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
55117         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
55118         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
55119         * lib/xgethostname.c, lib/xreadlink.c:
55120         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
55121
55122         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
55123         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
55124         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
55125         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
55126         and don't include <sys/file.h>).
55127
55128 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
55129
55130         Sync from coreutils.
55131
55132         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
55133         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
55134         [!LDAV_DONE]: Avoid unused variable warning.
55135
55136 2005-09-21  Bruno Haible  <bruno@clisp.org>
55137
55138         * lib/unicodeio.h (unicode_to_mb): New declaration.
55139
55140 2005-09-20  Derek Price  <derek@ximbiot.com>
55141
55142         * lib/getaddrinfo.c: Don't include <netdb.h> included from
55143         getaddrinfo.h.
55144
55145 2005-09-20  Bruno Haible  <bruno@clisp.org>
55146
55147         * gnulib-tool: Remove trailing slashes from the values specified for
55148         --source-base, --m4-base, --tests-base, --aux-dir.
55149         Suggested by Simon Josefsson <jas@extundo.com>.
55150
55151 2005-09-20  Bruno Haible  <bruno@clisp.org>
55152
55153         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
55154         func_modules_to_filelist, func_import, func_create_testdir): Make all
55155         sorting results locale-independent, so that gnulib-cache.m4 doesn't
55156         change when gnulib-tool is invoked in a different locale.
55157
55158 2005-09-19  Simon Josefsson  <jas@extundo.com>
55159
55160         * m4/socklen.m4: Fix typo.
55161
55162 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55163
55164         Use a consistent style for including <config.h>.
55165         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
55166         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
55167         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
55168         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
55169         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
55170         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
55171         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
55172         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
55173         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
55174         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
55175         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
55176         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
55177         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
55178         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
55179         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
55180         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
55181         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
55182         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
55183         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
55184         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
55185         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
55186         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
55187         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
55188         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
55189         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
55190         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
55191         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
55192         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
55193         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
55194         lib/xstrtoumax.c, lib/yesno.c:
55195         Standardize inclusion of config.h.
55196         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
55197         lib/inttostr.h:  Removed inclusion of config.h from header files.
55198         * lib/inttostr.c:  Adjusted in-tree users.
55199         * lib/timespec.h: Remove superfluous warning to include config.h.
55200         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
55201         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
55202         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
55203         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
55204         config.h with HAVE_CONFIG_H.
55205
55206 2005-09-19  Jim Meyering  <jim@meyering.net>
55207
55208         * modules/pathmax (License): Change to LGPL.
55209
55210 2005-09-19  Derek Price  <derek@ximbiot.com>
55211
55212         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
55213
55214 2005-09-19  Bruno Haible  <bruno@clisp.org>
55215
55216         * gnulib-tool (import): Provide default for --tests-base.
55217
55218 2005-09-19  Bruno Haible  <bruno@clisp.org>
55219
55220         * doc/quote.texi: New file, extracted from gnulib.texi.
55221         * doc/ctime.texi: New file, extracted from gnulib.texi.
55222         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
55223         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
55224         * doc/gnulib.texi: Include them.
55225
55226 2005-09-18  Bruno Haible  <bruno@clisp.org>
55227
55228         Portability fix.
55229         * gnulib-tool (func_readlink): New function.
55230         (func_ln_if_changed): Use it.
55231
55232 2005-09-18  Bruno Haible  <bruno@clisp.org>
55233
55234         * gnulib-tool: Support --with-tests also with --import.
55235         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
55236         (func_import): Use variables $testsbase and $inctests. Emit a
55237         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
55238         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
55239         SUBDIRS += $testsdir.
55240         (func_create_testdir): Update.
55241
55242 2005-09-18  Bruno Haible  <bruno@clisp.org>
55243
55244         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
55245         instead of $dry_run.
55246         (func_cp_if_changed, func_mv_if_changed): Remove functions.
55247         (func_ln_if_changed): Don't handle dry-run here.
55248         (func_import): In dry-run mode, detect more precisely which actions
55249         would be performed, and don't use "...ing" verbs.
55250
55251 2005-09-18  Bruno Haible  <bruno@clisp.org>
55252
55253         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
55254         (func_import): Use join on two temporary files instead of three nested
55255         loops, in order to determine which files are new or old.
55256
55257 2005-09-18  Bruno Haible  <bruno@clisp.org>
55258
55259         * gnulib-tool (func_import): Comment out code that spits out the
55260         new files with --dry-run.
55261
55262 2005-09-18  Bruno Haible  <bruno@clisp.org>
55263
55264         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
55265
55266 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
55267
55268         * lib/stat-time.h: New file.
55269         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
55270         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
55271         in a different way.
55272         (timespec_cmp): New function.
55273         * lib/utimecmp.c: Include stat-time.h.
55274         (SYSCALL_RESOLUTION): Depend on whether various struct stat
55275         members exist, not on the obsolescent ST_MTIM_NSEC.
55276         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
55277
55278 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
55279
55280         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
55281
55282 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
55283
55284         * MODULES.html.sh (File system functions): Add stat-time.
55285         * modules/stat-time: New file.
55286         * modules/timespec (Files): Remove m4/st_mtim.m4; this
55287         is now done in a different way, by the stat-time module.
55288         * modules/utimecmp (Depends-on): Add stat-time.
55289
55290 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
55291
55292         * m4/st_mtim.m4: Remove.  Superseded by...
55293         * m4/stat-time.m4: New file.
55294         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
55295         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
55296
55297 2005-09-15  Derek Price  <derek@ximbiot.com>
55298
55299         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
55300
55301 2005-09-15  Derek Price  <derek@ximbiot.com>
55302
55303         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
55304         * lib/regex_internal.c: Ditto, using this...
55305         (__GNUC_PREREQ): ...new macro.
55306         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
55307         using...
55308         (__GNUC_PREREQ): ...this new macro.
55309
55310         * lib/strstr.h: Include string.h. Define strstr as a macro here.
55311
55312 2005-09-15  Derek Price  <derek@ximbiot.com>
55313             Paul Eggert  <eggert@cs.ucla.edu>
55314
55315         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
55316         changes, consolidating in...
55317         * lib/regex_internal.h: ...this file.
55318
55319 2005-09-13  Jim Meyering  <jim@meyering.net>
55320
55321         * lib/canon-host.c: Filter through gnu indent and reword comments
55322         slightly.
55323         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
55324
55325 2005-09-13  Derek Price  <derek@ximbiot.com>
55326
55327         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
55328         failure.
55329         Reported by Jim Meyering  <jim@meyering.net>.
55330
55331 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
55332
55333         * lib/base64.c: Typo.
55334         (base64_encode): Put b64str in initialized data section.
55335
55336 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
55337
55338         Merge glibc and coreutils changes into gnulib, plus a few
55339         extra fixes.
55340         * lib/md5.c: Use #error rather than a string.
55341         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
55342         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
55343         (__attribute__): Define to empty for non recent-GCC.
55344         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
55345         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
55346         Renamed from their non-__ counterparts, with new macros replacing
55347         them if not _LIBC.  Add __THROW attribute.
55348         (rol): Remove.
55349         (struct md5_ctx): Align buffer if using GCC.
55350         * lib/sha1.h (struct sha1_ctx): Likewise.
55351         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
55352         The old name was backwards.
55353         (NOTSWAP): Remove; not used.
55354         (rol): New macro, moved here from md5.h.
55355         (sha1_process_block): Remove a FIXME that doesn't make sense.
55356
55357 2005-09-12  Derek Price  <derek@ximbiot.com>
55358
55359         Return usable errors from canon-host.
55360         * lib/canon-host.h: New file.
55361         * lib/canon-host.c (canon_host): Wrap...
55362         (canon_host_r): ...this new function, which now relies exclusively on
55363         getaddrinfo.
55364         (ch_strerror): New function.
55365         (last_cherror): New global.
55366         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
55367         interface.
55368         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
55369         void *.
55370         (freeaddrinfo): Free ai->ai_canonname when set.
55371
55372 2005-09-12  Derek Price  <derek@ximbiot.com>
55373
55374         Make canon-host require getaddrinfo.
55375         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
55376         AC_LIBSOURCE canon-host.h.  Call...
55377         (gl_PREREQ_CANON_HOST): ...this new function, which requires
55378         gl_GETADDRINFO.
55379         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
55380
55381 2005-09-12  Derek Price  <derek@ximbiot.com>
55382
55383         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
55384         LGPL.
55385         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
55386
55387 2005-09-12  Derek Price  <derek@ximbiot.com>
55388
55389         * lib/gai_strerror.c: Include config.h when available.  Include
55390         getaddrinfo.h before other headers to test interface.
55391         Reported by Larry Jones <lawrence.jones@ugs.com>.
55392
55393 2005-09-12  Derek Price  <derek@ximbiot.com>
55394             Paul Eggert  <eggert@cs.ucla.edu>
55395
55396         * modules/glob (Files): Add glob-libc.h.
55397
55398 2005-09-12  Derek Price  <derek@ximbiot.com>
55399             Paul Eggert  <eggert@cs.ucla.edu>
55400
55401         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
55402         glob_.h, glob-libc.h.
55403         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
55404
55405 2005-09-12  Derek Price  <derek@ximbiot.com>
55406             Paul Eggert  <eggert@cs.ucla.edu>
55407
55408         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
55409         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
55410         protecting things that should be done only in gnulib contexts.
55411         * lib/glob_.h: New file, containing only the glob things needed for
55412         gnulib.
55413         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
55414         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
55415         (glob, globfree, glob_pattern_p): Now defined simply in terms of
55416         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
55417         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
55418         and to respect the namespace rules better.
55419
55420 2005-09-08  Simon Josefsson  <jas@extundo.com>
55421
55422         * modules/socklen: New file.
55423
55424 2005-09-08  Simon Josefsson  <jas@extundo.com>
55425
55426         * m4/socklen.m4: New file.
55427
55428 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55429
55430         * modules/utimens (Files): Add m4/utimbuf.m4, since
55431         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
55432         Reported by Sergey Poznyakoff.
55433
55434 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55435
55436         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
55437         definitions, since that's the preferred style in glibc.
55438         Fix a minor spacing issue, and update copyright notice to match
55439         glibc's.
55440
55441 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
55442
55443         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
55444
55445 2005-09-06  Simon Josefsson  <jas@extundo.com>
55446
55447         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
55448         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
55449
55450 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
55451
55452         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
55453         warning.
55454
55455 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
55456
55457         * config/srclist.txt: Add glibc bug 1302.
55458
55459 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
55460
55461         Change bitset word type from unsigned int to unsigned long int,
55462         as this has better performance on typical 64-bit hosts.
55463         Port bitset code to hosts with unusual word sizes.
55464         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
55465         (build_collating_symbol):
55466         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
55467         argument is a bitset.  This is merely a style issue, but it makes
55468         it clearer that an entire array is expected.
55469         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
55470         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
55471         Port to the case where bitset_word is not the same as unsigned int.
55472         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
55473         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
55474         Likewise.
55475         * lib/regexec.c (check_dst_limits_calc_pos_1,
55476         check_subexp_matching_top):
55477         (build_trtable, group_nodes_into_DFAstates):
55478         Likewise.
55479         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
55480         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
55481         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
55482         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
55483         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
55484         * lib/regcomp.c (optimize_subexps, lower_subexp):
55485         Work even if bitset_word has holes in its bitwise representation.
55486         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
55487         * lib/regexec.c (check_dst_limits_calc_pos_1,
55488         check_subexp_matching_top):
55489         Likewise.
55490         * lib/regex_internal.c (re_string_reconstruct):
55491         Don't assume UCHAR_MAX == 255.
55492         * lib/regex_internal.h (bitset_set_all): Likewise.
55493         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
55494         All uses changed.
55495         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
55496         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
55497         All uses changed.
55498         (BITSET_WORD_MAX): New macro.
55499         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
55500         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
55501         (bitset_empty, bitset_copy):
55502         Prefer sizeof (bitset) to multiplying it out ourselves.
55503         (bitset_not_merge): Remove; unused.
55504         (bitset_contain): Return bool, not unsigned int with one bit on.
55505         All callers changed.
55506         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
55507         alignment than re_node_set; do this by defining a new internal
55508         type struct dests_alloc and using it to allocate memory.
55509
55510 2005-09-05  Bruno Haible  <bruno@clisp.org>
55511
55512         * gnulib-tool (func_import): Fix comparison in handling of symbolic
55513         links.
55514
55515 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
55516
55517         * modules/size_max (Makefile.am): Add size_max.h
55518
55519 2005-09-04  Derek Price  <derek@ximbiot.com>
55520
55521         * gnulib-tool (func_import): Fix reversed $symbolic logic.
55522
55523 2005-09-03  Simon Josefsson  <jas@extundo.com>
55524
55525         * gnulib-tool: Fix typo.
55526
55527 2005-09-03  Simon Josefsson  <jas@extundo.com>
55528
55529         * config/srclist.txt: Add glibc bug 1293.
55530
55531 2005-09-03  Derek Price  <derek@ximbiot.com>
55532
55533         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
55534         From Larry Jones <lawrence.jones@ugs.com>.
55535
55536 2005-09-02  Simon Josefsson  <jas@extundo.com>
55537
55538         * modules/socklen: New file.
55539
55540 2005-09-02  Simon Josefsson  <jas@extundo.com>
55541
55542         * modules/havelib: New module.
55543
55544         * modules/gettext, modules/iconv, modules/lock, modules/readline:
55545         Use havelib.
55546
55547 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
55548
55549         Check for arithmetic overflow when calculating sizes, to prevent
55550         some buffer-overflow issues.  These patches are conservative, in the
55551         sense that when I couldn't determine whether an overflow was possible,
55552         I inserted a run-time check.
55553         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
55554         macros.
55555         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
55556         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
55557         (re_xnrealloc, re_x2nrealloc): New inline functions.
55558         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
55559         parse_bracket_exp):
55560         (build_equiv_class, build_charclass): Check for arithmetic overflow
55561         in size expression calculations.
55562         * lib/regex_internal.c (re_string_realloc_buffers):
55563         (build_wcs_upper_buffer, re_node_set_add_intersect):
55564         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
55565         (re_dfa_add_node, register_state): Likewise.
55566         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
55567         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
55568         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
55569         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
55570
55571 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
55572
55573         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
55574         m4/ulonglong.m4.  Problem reported by Martin Lambers.
55575
55576 2005-09-02  Bruno Haible  <bruno@clisp.org>
55577
55578         Support for lib vs. lib64 distinction on biarch platforms.
55579         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
55580         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
55581         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
55582
55583 2005-09-02  Bruno Haible  <bruno@clisp.org>
55584
55585         * gnulib-tool (import): In the other first-use case, provide defaults
55586         as well.
55587
55588 2005-09-02  Bruno Haible  <bruno@clisp.org>
55589
55590         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
55591         patches not yet found in the latest gettext release.
55592
55593 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
55594
55595         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
55596         to avoid a collision with bits/local_lim.h in glibc.
55597         All uses changed.  Problem reported by Dmitry V. Levin in
55598         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
55599
55600         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
55601         bugs in int versus size_t comparisons.
55602         (re_string_context_at): Fix bug where the code assumed that
55603         Idx is signed.
55604
55605         Use bool where appropriate.
55606         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
55607         All callers changed.
55608         (calc_eclosure_iter): Likewise, for ROOT arg.
55609         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
55610         (build_charclass_op): Likewise, for NON_MATCH arg.
55611         * lib/regex_internal.c (re_string_allocate, re_string_construct):
55612         (re_string_construct_common): Likewise, for ICASE arg.
55613         * lib/regexec.c (re_search_2_stub, re_search_stub):
55614         Likewise, for RET_LEN arg.
55615         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
55616         (set_regs): Likewise, for FL_BACKTRACK arg.
55617         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
55618         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
55619         (calc_eclosure_iter, parse_bracket_exp):
55620         Use bool for internal variables that are booleans.
55621         * lib/regexec.c (re_search_internal, check_matching,
55622         proceed_next_node):
55623         (set_regs, build_sifted_states, sift_states_bkref):
55624         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
55625         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
55626         (find_collation_sequence_value):
55627         Likewise.
55628         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
55629         (re_node_set_compare):
55630         Return bool, not int. All callers changed.
55631         * lib/regexec.c (check_halt_node_context, check_dst_limits):
55632         (build_trtable, check_node_accept): Likewise.
55633         * lib/regex_internal.h: Include stdbool.h.
55634
55635         Fix bugs uncovered when converting to bool.
55636         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
55637         failure instead of charging ahead blindly.
55638         * lib/regex_internal.c (register_state): Likewise.
55639         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
55640         for freeing internal storage.
55641         (group_nodes_into_DFA_states): Use unsigned int, not int, for
55642         bitset pieces used as boolean, to avoid undefined behavior
55643         on hosts that do int overflow checking.
55644
55645 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
55646
55647         * config/srclist.txt: Add glibc bugs 1285-1287.
55648
55649 2005-09-01  Jim Meyering  <jim@meyering.net>
55650
55651         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
55652         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
55653         Require gl_STAT_MACROS, too.
55654
55655 2005-09-01  Bruno Haible  <bruno@clisp.org>
55656
55657         * gnulib-tool (import): In the first-use case, provide defaults.
55658
55659 2005-09-01  Bruno Haible  <bruno@clisp.org>
55660
55661         * gnulib-tool (func_import): Remove the .tmp files.
55662
55663 2005-09-01  Bruno Haible  <bruno@clisp.org>
55664
55665         * gnulib-tool (func_import): Fix handling of symbolic links.
55666
55667 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55668
55669         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
55670         old glibc regex code mishandles strings longer than 2**31 bytes.
55671         This patch fixes this when the regex code is used in gnulib
55672         (i.e., outside glibc).
55673
55674         This patch should not affect the use of the regex code inside
55675         glibc.  No doubt this problem also needs to be handled for glibc
55676         as well, but the result will be an incompatible change to the
55677         glibc ABI, and the old ABI will have to be supported too.  That
55678         can be the the subject for another patch.
55679
55680         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
55681         governing whether the rest of this patch is active.  By default,
55682         the macro is disabled and the patch has no effect.
55683         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
55684         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
55685         (struct re_pattern_buffer, re_search, re_search_2, re_match):
55686         (re_match_2, re_set_registers): Use the new types.
55687         * lib/regex_internal.h (Idx, re_hashval_t): New types.
55688         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
55689         New macros.
55690         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
55691         (re_string_context_at, bin_tree_t, re_dfastate_t):
55692         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
55693         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
55694         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
55695         (re_string_char_size_at, re_string_wchar_at):
55696         (re_string_elem_size_at):
55697         Use the new types and macros to port to 64-bit hosts.
55698         Use unsigned types for internal values, so that the code
55699         mostly works even for arrays larger than SSIZE_MAX.
55700         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
55701         (search_duplicated_node, calc_eclosure_iter, fetch_number):
55702         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
55703         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
55704         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
55705         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
55706         (calc_inveclosure, parse_dup_op, build_range_exp):
55707         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
55708         (fetch_number, create_token_tree, mark_opt_subexp):
55709         Likewise.
55710         * lib/regex_internal.c (re_string_construct_common,
55711         create_ci_newstate):
55712         (create_cd_newstate, re_string_allocate, re_string_construct):
55713         (re_string_realloc_buffers, build_wcs_upper_buffer):
55714         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
55715         (re_string_reconstruct, re_string_peek_byte_case):
55716         (re_string_fetch_byte_case, re_string_context_at):
55717         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
55718         (re_node_set_init_copy, re_node_set_add_intersect):
55719         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
55720         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
55721         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
55722         (re_acquire_state, re_acquire_state_context, register_state):
55723         Likewise.
55724         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
55725         search_cur_bkref_entry):
55726         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
55727         (re_search_internal, re_search_2_stub, re_search_stub)
55728         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
55729         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
55730         (update_cur_sifted_state, check_dst_limits):
55731         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
55732         (check_subexp_limits, sift_states_bkref, merge_state_array):
55733         (check_subexp_matching_top, get_subexp, get_subexp_sub):
55734         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
55735         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
55736         (expand_bkref_cache, check_node_accept_bytes):
55737         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
55738         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
55739         (acquire_init_state_context, check_halt_node_context):
55740         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
55741         (sift_states_backward, clean_state_log_if_needed):
55742         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
55743         (find_recover_state, transit_state_sb, transit_state_mb):
55744         (transit_state_bkref, build_trtable, match_ctx_clean):
55745         Likewise.
55746         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
55747         to work around an assumption that REG_MISSING is negative.
55748
55749         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
55750         (seek_collating_symbol_entry) [defined _LIBC]:
55751         (lookup_collation_sequence_value) [defined _LIBC]:
55752         (build_range_exp, build_collating_symbol) [defined _LIBC]:
55753         Use prototypes rather than old-style function definitions.
55754         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
55755         (transit_state_sb) [0]:
55756         (find_collation_sequence_value) [defined _LIBC]: Likewise.
55757
55758         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
55759         rm_eo.
55760
55761         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
55762         (optimize_subexps, lower_subexp):
55763         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
55764         since the signed shift might overflow.  Use 1u<<31 instead.
55765         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
55766         Likewise.
55767         * lib/regexec.c (check_dst_limits_calc_pos_1,
55768         check_subexp_matching_top): Likewise.
55769
55770         * lib/regcomp.c (optimize_subexps, lower_subexp):
55771         Use CHAR_BIT rather than 8, for clarity.
55772         * lib/regexec.c (check_dst_limits_calc_pos_1):
55773         (check_subexp_matching_top): Likewise.
55774         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
55775         have to worry about portability issues when shifting it left.
55776         Remove no-longer-needed test for table_size > 0.
55777         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
55778         in a word, as the resulting behavior is undefined.
55779         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
55780         in one case, a <= should have been an <, and in another case the
55781         whole test was missing.
55782         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
55783         the standard name CHAR_BIT.
55784         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
55785         this is not true on one's complement and signed-magnitude hosts.
55786
55787         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
55788         next_last_offset.
55789         (struct re_dfa_t): Remove unused member states_alloc.
55790         * lib/regcomp.c (init_dfa): Don't initialize unused members.
55791
55792 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55793
55794         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
55795         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
55796         and large-file glibc and in 32-bit large-file Solaris.
55797
55798 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55799
55800         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
55801         lengths fit in regoff_t; this isn't true if regoff_t is the same
55802         width as size_t.
55803         * lib/regex.c (re_search_internal): 5th arg is LAST_START
55804         (= START + RANGE) instead of RANGE.  This avoids overflow
55805         problems when regoff_t is the same width as size_t.
55806         All callers changed.
55807         (re_search_2_stub): Check for overflow when adding the
55808         sizes of the two strings.
55809         (re_search_stub): Check for overflow when adding START
55810         to RANGE; if it occurs, substitute the extreme value.
55811
55812 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
55813
55814         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
55815
55816 2005-08-31  Jim Meyering  <jim@meyering.net>
55817
55818         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
55819         a pointer-to-const.
55820         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
55821         (register_state): Likewise.
55822         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
55823         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
55824         (group_nodes_into_DFAstates): Likewise.
55825
55826 2005-08-31  Jim Meyering  <jim@meyering.net>
55827
55828         * check-module: Add a FIXME comment.
55829
55830 2005-08-31  Eric Blake  <ebb9@byu.net>
55831
55832         * modules/unistd-safer (Files): Add unistd--.h.
55833         * modules/stdio-safer (Files): Add stdio--.h.
55834
55835 2005-08-31  Derek Price  <derek@ximbiot.com>
55836
55837         * lib/getdelim.c (getdelim): Return EOF on EOF.
55838         Reported by Larry Jones <lawrence.jones@ugs.com>.
55839
55840 2005-08-31  Bruno Haible  <bruno@clisp.org>
55841
55842         Avoid unnecessary diffs in the generated lib/Makefile.am.
55843         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
55844         the generated files.
55845         (func_import): Don't set cmd.
55846
55847 2005-08-31  Bruno Haible  <bruno@clisp.org>
55848
55849         * lib/strstr.c: Include <stddef.h>, for NULL.
55850         * lib/strcasestr.c: Likewise.
55851         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55852
55853 2005-08-31  Bruno Haible  <bruno@clisp.org>
55854
55855         * gnulib-tool: New option --macro-prefix.
55856         (func_import): Use macro_prefix.
55857         (import): Handle option --macro-prefix.
55858
55859 2005-08-31  Bruno Haible  <bruno@clisp.org>
55860
55861         * gnulib-tool (import): Rename most ac_* variables to cached_*.
55862         Also use new variables cached_lgpl, cached_libtool.
55863
55864 2005-08-31  Bruno Haible  <bruno@clisp.org>
55865
55866         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
55867         always instantiating them.
55868
55869 2005-08-31  Bruno Haible  <bruno@clisp.org>
55870
55871         * gnulib-tool (func_import): Read the previous cached settings
55872         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
55873         earlier added by gnulib but are now dropped. Warn when a gnulib file
55874         overwrites a non-gnulib file.
55875
55876 2005-08-31  Bruno Haible  <bruno@clisp.org>
55877
55878         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
55879         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
55880         projects that don't keep autogenerated files in CVS. Put into
55881         actioncmd only the specified modules, not the transitive closure.
55882
55883 2005-08-31  Bruno Haible  <bruno@clisp.org>
55884
55885         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
55886         Create directories that shall be filled.
55887         (import): Don't look for gl_* macros in configure.ac. Recurse across
55888         all directories containing a gnulib-cache.m4 files, if meaningful.
55889
55890 2005-08-31  Bruno Haible  <bruno@clisp.org>
55891
55892         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
55893         (import): Set seen_libtool when we see gl_LIBTOOL.
55894
55895 2005-08-31  Bruno Haible  <bruno@clisp.org>
55896
55897         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
55898         declaration macro definitions from generated gnulib.m4.
55899
55900 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
55901
55902         * lib/iconvme.h: Add prototype for iconv_alloc.
55903
55904 2005-08-29  Simon Josefsson  <jas@extundo.com>
55905
55906         * lib/iconvme.c: Fix errno.
55907
55908 2005-08-29  Bruno Haible  <bruno@clisp.org>
55909
55910         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
55911         that it works when the directory contains spaces.
55912
55913 2005-08-29  Bruno Haible  <bruno@clisp.org>
55914
55915         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
55916
55917 2005-08-29  Bruno Haible  <bruno@clisp.org>
55918
55919         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
55920         Emit more advice.
55921
55922 2005-08-29  Bruno Haible  <bruno@clisp.org>
55923         and Stepan Kasal  <kasal@ucw.cz>
55924
55925         * check-module: If more parameters are given, check each of them
55926         separately; add more exceptions, as noted by Jim Meyering.
55927         (check_module): New procedure.
55928         (%exempt_header): Now contains all exceptions.
55929
55930 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
55931
55932         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
55933
55934 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
55935
55936         * lib/iconvme.c: Split iconv_string into iconv_alloc.
55937
55938 2005-08-28  Bruno Haible  <bruno@clisp.org>
55939
55940         * m4/gnulib-tool.m4: New file.
55941
55942 2005-08-27  Jim Meyering  <jim@meyering.net>
55943
55944         * modules/unistd-safer (Files): Add pipe-safer.c.
55945         * modules/fcntl-safer (Files): Add creat-safer.c.
55946
55947 2005-08-27  Jim Meyering  <jim@meyering.net>
55948
55949         * m4/stdlib-safer.m4: New file.  From coreutils.
55950         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
55951         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
55952         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
55953         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
55954         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
55955
55956 2005-08-27  Jim Meyering  <jim@meyering.net>
55957
55958         * lib/fopen-safer.c: Merge minor changes from coreutils.
55959         * lib/dup-safer.c: Likewise.
55960         * lib/fd-safer.c: Likewise.
55961
55962         Merge from coreutils.
55963         * lib/stdio--.h: New file.
55964         * lib/stdlib--.h: New file.
55965         * lib/mkstemp-safer.c: New file.
55966
55967         GNU tar needs these.
55968         * lib/pipe-safer.c: New file.
55969         * lib/creat-safer.c: New file.
55970         * lib/fcntl--.h (creat): Define to creat_safer.
55971         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
55972         * lib/unistd--.h (pipe): Define to pipe_safer.
55973         * lib/unistd-safer.h: Declare pipe_safer.
55974
55975 2005-08-26  Simon Josefsson  <jas@extundo.com>
55976
55977         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
55978         Haible <bruno@clisp.org>.
55979
55980 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
55981
55982         * lib/regex_internal.h: Remove all references to
55983         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
55984         or better.
55985         (bitset_not, bitset_merge, bitset_not_merge):
55986         (bitset_mask, re_string_allocate, re_string_construct):
55987         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
55988         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
55989         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
55990         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
55991         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
55992         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
55993         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
55994         (re_acquire_state_context):
55995         Remove unnecessary forward decls.
55996         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
55997         Put __attribute at function definition,
55998         now that the function decl has been removed.
55999         * lib/regex_internal.c (re_string_peek_byte_case):
56000         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
56001         Likewise.
56002
56003 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
56004
56005         * m4/regex.m4: Add AC_PREREQ(2.50).
56006         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
56007
56008 2005-08-25  Simon Josefsson  <jas@extundo.com>
56009
56010         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
56011         __fsetlocking.
56012
56013 2005-08-25  Simon Josefsson  <jas@extundo.com>
56014
56015         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
56016         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
56017         GLIBC specific code.
56018
56019 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
56020
56021         Make regex safe for g++.  This fixes one real bug (an "err"
56022         that should have been "*err").  g++ problem reported by
56023         Sam Steingold.
56024         * lib/regex_internal.h (re_calloc): New macro, consistent with
56025         re_malloc etc.  All callers of calloc changed to use re_calloc.
56026         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
56027         not int.  All callers changed.
56028         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
56029         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
56030         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
56031         (find_recover_state): Change "err" to "*err"; this fixes what
56032         appears to be a real bug.
56033         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
56034         versus int.
56035
56036 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
56037
56038         * modules/regex (Depends-on): Add malloc, since the code
56039         assumes that !malloc(0) means failure.
56040
56041 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
56042
56043         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
56044
56045         alloca modernization/simplification for regex.
56046         * lib/regex.c: Remove portability cruft for alloca.  This no longer
56047         needs to be at the start of the file, and can be moved into
56048         regex_internal.h and simplified.
56049         * lib/regex_internal.h: Include <alloca.h>.
56050         (__libc_use_alloca) [!defined _LIBC]: New macro.
56051         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
56052         now works outside glibc.
56053
56054 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
56055
56056         * config/srclist.txt: Add glibc bugs 1241, 1245.
56057
56058 2005-08-25  Jim Meyering  <jim@meyering.net>
56059
56060         * lib/open-safer.c: Include <config.h>.
56061         Otherwise, we'd lose LARGEFILE support in any file using
56062         e.g. "fcntl--.h"
56063
56064 2005-08-25  Bruno Haible  <bruno@clisp.org>
56065
56066         * m4/minmax.m4: Require autoconf 2.52.
56067         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
56068         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
56069         alternatives of translit over the alphabet.
56070         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
56071
56072 2005-08-24  Simon Josefsson  <jas@extundo.com>
56073
56074         * tests/test-getpass.c: New file.
56075
56076 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
56077
56078         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
56079         for GNU regex features.
56080
56081 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
56082
56083         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
56084         * lib/regex.h (regerror): Likewise.
56085
56086         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
56087         requires this.  (The code never needed it.)
56088
56089         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
56090         All uses of recently-renamed identifiers changed to use the new,
56091         POSIX-compliant names.  The code will build and run just fine
56092         without these changes, but it's better to eat our own dog food
56093         and use the standard-conforming names.
56094
56095         * lib/regex.h: Fix a multitude of POSIX name space violations.
56096         These changes have an effect only for programs that define
56097         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
56098         do not change anything for programs compiled in the normal way.
56099         Also, there is no effect on the ABI.
56100
56101         (_REGEX_SOURCE): New macro.
56102         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
56103         defined and _GNU_SOURCE is not; this fixes a name space violation.
56104
56105         Rename the following macros to obey POSIX requirements.
56106         The old names are still visible as macros if _REGEX_SOURCE is defined.
56107         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
56108         RE_BACKSLASH_ESCAPE_IN_LISTS.
56109         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
56110         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
56111         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
56112         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
56113         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
56114         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
56115         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
56116         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
56117         (REG_INTERVALS): renamed from RE_INTERVALS.
56118         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
56119         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
56120         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
56121         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
56122         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
56123         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
56124         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
56125         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
56126         RE_UNMATCHED_RIGHT_PAREN_ORD.
56127         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
56128         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
56129         (REG_DEBUG): renamed from RE_DEBUG.
56130         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
56131         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
56132         unusual, since we can't clash with the POSIX REG_ICASE.
56133         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
56134         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
56135         (REG_NO_SUB): renamed from RE_NO_SUB.
56136         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
56137         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
56138         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
56139         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
56140         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
56141         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
56142         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
56143         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
56144         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
56145         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
56146         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
56147         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
56148         RE_SYNTAX_POSIX_MINIMAL_BASIC.
56149         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
56150         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
56151         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
56152         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
56153         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
56154         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
56155         (REG_FIXED): Renamed from REGS_FIXED.
56156         (REG_NREGS): Renamed from RE_NREGS.
56157
56158         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
56159         of other REG_* macros, since POSIX says the user is allowed to
56160         #undef these macros selectively.
56161
56162         (reg_errcode_t): Update comment stating what other tables need
56163         to be consistent.
56164
56165         Rename the following enum values to obey POSIX requirements.
56166         The old names are still visible as macros.
56167         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
56168         is not defined, since GNU is supposed to be a superset of POSIX as
56169         much as possible, and since we want reg_errcode_t to be a signed
56170         type for implementation consistency.
56171         (_REG_NOERROR): Renamed from REG_NOERROR.
56172         (_REG_NOMATCH): Renamed from REG_NOMATCH.
56173         (_REG_BADPAT): Renamed from REG_BADPAT.
56174         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
56175         (_REG_ECTYPE): Renamed from REG_ECTYPE.
56176         (_REG_EESCAPE): Renamed from REG_EESCAPE.
56177         (_REG_ESUBREG): Renamed from REG_ESUBREG.
56178         (_REG_EBRACK): Renamed from REG_EBRACK.
56179         (_REG_EPAREN): Renamed from REG_EPAREN.
56180         (_REG_EBRACE): Renamed from REG_EBRACE.
56181         (_REG_BADBR): Renamed from REG_BADBR.
56182         (_REG_ERANGE): Renamed from REG_ERANGE.
56183         (_REG_ESPACE): Renamed from REG_ESPACE.
56184         (_REG_BADRPT): Renamed from REG_BADRPT.
56185         (_REG_EEND): Renamed from REG_EEND.
56186         (_REG_ESIZE): Renamed from REG_ESIZE.
56187         (_REG_ERPAREN): Renamed from REG_ERPAREN.
56188         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
56189         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
56190         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
56191         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
56192
56193         (_REG_RE_NAME, _REG_RM_NAME): New macros.
56194         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
56195         changed.  But support the old name if the new one is not defined
56196         and if _REGEX_SOURCE.
56197
56198         Change the following member names in struct re_pattern_buffer.
56199         The old names are still supported if !_REGEX_SOURCE.
56200         The new names are always supported, regardless of _REGEX_SOURCE.
56201         (re_buffer): Renamed from buffer.
56202         (re_allocated): Renamed from allocated.
56203         (re_used): Renamed from used.
56204         (re_syntax): Renamed from syntax.
56205         (re_fastmap): Renamed from fastmap.
56206         (re_translate): Renamed from translate.
56207         (re_can_be_null): Renamed from can_be_null.
56208         (re_regs_allocated): Renamed from regs_allocated.
56209         (re_fastmap_accurate): Renamed from fastmap_accurate.
56210         (re_no_sub): Renamed from no_sub.
56211         (re_not_bol): Renamed from not_bol.
56212         (re_not_eol): Renamed from not_eol.
56213         (re_newline_anchor): Renamed from newline_anchor.
56214
56215         Change the following member names in struct re_registers.
56216         The old names are still supported if !_REGEX_SOURCE.
56217         The new names are always supported, regardless of _REGEX_SOURCE.
56218         (rm_num_regs): Renamed from num_regs.
56219         (rm_start): Renamed from start.
56220         (rm_end): Renamed from end.
56221
56222         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
56223         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
56224         Prepend __ to parameter names.
56225
56226         Undo yesterday's changes.
56227
56228 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
56229
56230         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
56231         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
56232         lib/regex.c.
56233
56234 2005-08-24  Jim Meyering  <jim@meyering.net>
56235
56236         Sync from coreutils.
56237         * m4/fcntl-safer.m4: New file.
56238
56239         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
56240         and object files for this module.
56241
56242 2005-08-24  Jim Meyering  <jim@meyering.net>
56243
56244         Sync from coreutils.
56245         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
56246
56247 2005-08-24  Jim Meyering  <jim@meyering.net>
56248
56249         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
56250         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
56251
56252 2005-08-24  Jim Meyering  <jim@meyering.net>
56253
56254         * modules/fcntl-safer: New module.
56255         * modules/fts (Depends-on): Add fcntl-safer.
56256         * MODULES.html.sh (File descriptor based Input/Output):
56257         Add fcntl-safer.
56258
56259 2005-08-24  Bruno Haible  <bruno@clisp.org>
56260
56261         Support for unit test modules.
56262         * modules/README: Mention tests modules.
56263         * modules/TEMPLATE-TESTS: New file.
56264         * gnulib-tool: New options --extract-tests-module, --with-tests and
56265         --tests-base (unused for the moment).
56266         (testsbase, inctests): New variables.
56267         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
56268         (func_verify_module): Exclude TEMPLATE-TESTS.
56269         (func_verify_nontests_module, func_verify_tests_module): New functions.
56270         (func_get_dependencies): Add implicit dependency for tests modules.
56271         (func_get_tests_module): New function.
56272         (func_modules_transitive_closure): When --with-tests was specified,
56273         include the unit tests as well, unless explicitly avoided.
56274         (func_emit_lib_Makefile_am): Ignore the tests modules here.
56275         (func_emit_tests_Makefile_am): New function.
56276         (func_create_testdir): When --with-tests was specified, emit a
56277         tests/ directory.
56278         * MODULES.html.sh (Future developments): Update.
56279
56280 2005-08-24  Bruno Haible  <bruno@clisp.org>
56281
56282         * modules/tls-tests: New file.
56283         * tests/test-tls.c: New file, from GNU gettext.
56284
56285 2005-08-24  Bruno Haible  <bruno@clisp.org>
56286
56287         * modules/lock-tests: New file.
56288         * tests/test-lock.c: New file, from GNU gettext.
56289
56290 2005-08-24  Bruno Haible  <bruno@clisp.org>
56291
56292         * lib/lock.h: Add multiple inclusion guard.
56293         * lib/tls.h: Add multiple inclusion guard.
56294
56295 2005-08-24  Bruno Haible  <bruno@clisp.org>
56296
56297         * gnulib-tool: Add support for the --aux-dir option to
56298         --create-testdir, --create-megatestdir, --test, --megatest.
56299         (func_create_testdir, func_create_megatestdir): Optionally emit a
56300         AC_CONFIG_AUX_DIR directive.
56301         (create-testdir, create-megatestdir, test, megatest): Provide a
56302         default value for $auxdir.
56303
56304 2005-08-24  Bruno Haible  <bruno@clisp.org>
56305
56306         * gnulib-tool (import): Use compound statement instead of subshell
56307         where possible.
56308
56309 2005-08-24  Bruno Haible  <bruno@clisp.org>
56310
56311         * gnulib-tool (import): Change --aux-dir default to "build-aux".
56312
56313 2005-08-24  Bruno Haible  <bruno@clisp.org>
56314
56315         * gnulib-tool (func_version): Update.
56316
56317 2005-08-24  Bruno Haible  <bruno@clisp.org>
56318
56319         * gnulib-tool (func_import, func_create_testdir,
56320         func_create_megatestdir): Quote all autoconf macro arguments.
56321
56322 2005-08-24  Bruno Haible  <bruno@clisp.org>
56323
56324         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
56325         option --force, because --force causes the aclocal.m4 of each
56326         subdirectory to be newer than the corresponding config.h.in.
56327
56328 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
56329
56330         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
56331         All contents moved to gl_REGEX.
56332         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
56333         assume that it does.
56334
56335 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
56336
56337         * lib/regex.h (REG_NOSYS)
56338         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
56339         Define, since POSIX requires it as of 2001.
56340         (_REG_ENOSYS)
56341         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
56342         New private symbol, used to keep the enum signed in all cases.
56343         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
56344         Youngman in
56345         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
56346
56347         * lib/regex_internal.c (re_string_skip_chars, register_state):
56348         (calc_state_hash):
56349         Remove forward decls; no longer needed now that we use prototypes.
56350         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
56351         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
56352         (clean_state_log_if_needed): Likewise.
56353
56354 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
56355
56356         * config/srclist.txt: Add glibc bugs 1231-1233.
56357
56358 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
56359
56360         Fix problems reported by Sam Steingold in
56361         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
56362         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
56363         assumed that reg_errcode_t is a signed type, which is not
56364         necessarily true if _XOPEN_SOURCE is not defined.
56365         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
56366         since some compilers warn about it otherwise.
56367
56368 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
56369
56370         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
56371         (init_word_char, create_initial_state, duplicate_node_closure):
56372         (fetch_token, peek_token_bracket, build_range_exp):
56373         (build_collating_symbol): Remove forward decls; no longer needed
56374         now that we use prototypes.
56375
56376         * lib/regcomp.c:
56377         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
56378         (re_compile_fastmap_iter, regcomp, regerror, regfree):
56379         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
56380         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
56381         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
56382         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
56383         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
56384         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
56385         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
56386         (build_range_exp, build_collating_symbol, parse_bracket_exp):
56387         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
56388         (build_charclass, build_charclass_op, fetch_number, create_tree):
56389         (create_token_tree, mark_opt_subexp, duplicate_tree):
56390         Use prototypes rather than old-style definitions.
56391
56392         * lib/regex_internal.c:
56393         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
56394         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
56395         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
56396         (re_string_reconstruct, re_string_peek_byte_case):
56397         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
56398         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
56399         (re_node_set_init_copy, re_node_set_add_intersect):
56400         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
56401         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
56402         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
56403         (re_acquire_state, re_acquire_state_context, register_state):
56404         (create_ci_newstate, create_cd_newstate, free_state):
56405         Likewise.
56406         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
56407         re_search_2):
56408         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
56409         (re_search_internal, prune_impossible_nodes):
56410         (acquire_init_state_context, check_matching, static):
56411         (check_halt_node_context, check_halt_state_context, proceed_next_node):
56412         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
56413         (update_regs, sift_states_backward, build_sifted_states):
56414         (clean_state_log_if_needed, merge_state_array):
56415         (update_cur_sifted_state, add_epsilon_src_nodes):
56416         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
56417         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
56418         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
56419         (find_recover_state, check_subexp_matching_top, transit_state_mb):
56420         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
56421         (check_arrival, check_arrival_add_next_nodes):
56422         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
56423         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
56424         (check_node_accept_bytes, check_node_accept, extend_buffers):
56425         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
56426         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
56427         (sift_ctx_init):
56428         Likewise.
56429
56430         * lib/regex_internal.h:
56431         (re_string_allocate, re_string_construct, re_string_reconstruct):
56432         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
56433         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
56434         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
56435         (re_string_context_at, re_string_peek_byte_case):
56436         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
56437         is defined, since we now use prototypes always.
56438
56439         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
56440         C89 or better.  All uses removed.
56441
56442 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
56443
56444         * config/srclist.txt: Add glibc bugs 1220-1227.
56445
56446 2005-08-20  Jim Meyering  <jim@meyering.net>
56447
56448         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
56449         of unused local, dfa.
56450
56451 2005-08-20  Bruno Haible  <bruno@clisp.org>
56452
56453         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
56454
56455 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
56456
56457         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
56458         (re_node_set_insert_last, re_dfa_add_node):
56459         Rename local variables to avoid GCC shadowing warnings.
56460
56461 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
56462
56463         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
56464         [defined lint]: Suppress bogus uninitialized-variable warnings.
56465
56466         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
56467         and let the caller return REG_ESPACE if out of space.  This
56468         removes an uninitialied-variable warning with GCC 4.0.1, and also
56469         avoids taking the address of a local variable.  All callers
56470         changed.
56471
56472 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
56473
56474         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
56475         $LIBCSRC/posix/regexec.c.
56476         Add glibc bug 1217 for regcomp.c.
56477
56478 2005-08-19  Jim Meyering  <jim@meyering.net>
56479
56480         * lib/regexec.c (proceed_next_node): Redo local variables to
56481         avoid GCC shadowing warnings.
56482
56483 2005-08-18  Bruno Haible  <bruno@clisp.org>
56484
56485         * lib/strstr.c (strstr): Fix return value in multibyte case.
56486         * lib/strcasestr.c (strcasestr): Likewise.
56487
56488 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
56489
56490         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
56491
56492 2005-08-17  Jim Meyering  <jim@meyering.net>
56493
56494         Make the %s format (seconds since the epoch) work for a negative
56495         number and when used with a zero-padded field width, e.g. %015s.
56496
56497         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
56498         label so that it precedes the code to set `digits'.  Otherwise,
56499         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
56500         print `00-22'.  Now, it prints `-0022', as it should.
56501
56502 2005-08-17  Bruno Haible  <bruno@clisp.org>
56503
56504         * modules/strstr (Files): Add m4/mbrtowc.m4.
56505         (Depends-on): Add mbuiter.
56506
56507 2005-08-17  Bruno Haible  <bruno@clisp.org>
56508
56509         * modules/strcasestr: New file.
56510         * MODULES.html.sh (String handling, based on ANSI C 89): Add
56511         strcasestr.
56512
56513 2005-08-17  Bruno Haible  <bruno@clisp.org>
56514
56515         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
56516
56517 2005-08-17  Bruno Haible  <bruno@clisp.org>
56518
56519         * modules/mbuiter: New file.
56520         * MODULES.html.sh (Extended multibyte and wide character utilities):
56521         Add mbuiter.
56522
56523 2005-08-17  Bruno Haible  <bruno@clisp.org>
56524
56525         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
56526         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
56527
56528 2005-08-17  Bruno Haible  <bruno@clisp.org>
56529
56530         * m4/strcasestr.m4: New file.
56531
56532 2005-08-17  Bruno Haible  <bruno@clisp.org>
56533
56534         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
56535         * lib/strstr.c: Completely rewritten, with multibyte locale support.
56536
56537 2005-08-17  Bruno Haible  <bruno@clisp.org>
56538
56539         * lib/strcasestr.h: New file.
56540         * lib/strcasestr.c: New file.
56541
56542 2005-08-17  Bruno Haible  <bruno@clisp.org>
56543
56544         * lib/strcasecmp.c: Use mbuiter.h.
56545
56546 2005-08-17  Bruno Haible  <bruno@clisp.org>
56547
56548         * lib/mbuiter.h: New file.
56549
56550 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
56551
56552         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
56553         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
56554         and gl_GETOPT are both invoked via different paths (as happens
56555         with GNU tar CVS because it uses both argp and getopt), the former
56556         wins.
56557
56558 2005-08-16  Bruno Haible  <bruno@clisp.org>
56559
56560         * modules/tls: New file.
56561         * MODULES.html.sh (Multithreading): Add tls.
56562
56563 2005-08-16  Bruno Haible  <bruno@clisp.org>
56564
56565         * modules/strnlen1: New file.
56566         * MODULES.html.sh (String handling): Add strnlen1.
56567
56568 2005-08-16  Bruno Haible  <bruno@clisp.org>
56569
56570         * modules/strcase (Files): Add m4/mbrtowc.m4.
56571         (Depends-on): Add strnlen1, mbchar.
56572
56573 2005-08-16  Bruno Haible  <bruno@clisp.org>
56574
56575         * modules/mbiter: New file.
56576         * MODULES.html.sh (Extended multibyte and wide character utilities):
56577         Add mbiter.
56578
56579 2005-08-16  Bruno Haible  <bruno@clisp.org>
56580
56581         * modules/mbfile: New file.
56582         * MODULES.html.sh (Extended multibyte and wide character utilities):
56583         Add mbfile.
56584
56585 2005-08-16  Bruno Haible  <bruno@clisp.org>
56586
56587         * modules/mbchar: New file.
56588         * MODULES.html.sh (Extended multibyte and wide character utilities):
56589         New section.
56590
56591 2005-08-16  Bruno Haible  <bruno@clisp.org>
56592
56593         * m4/tls.m4: New file, from GNU gettext.
56594
56595 2005-08-16  Bruno Haible  <bruno@clisp.org>
56596
56597         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
56598         always.
56599         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
56600
56601 2005-08-16  Bruno Haible  <bruno@clisp.org>
56602
56603         * m4/mbiter.m4: New file.
56604
56605 2005-08-16  Bruno Haible  <bruno@clisp.org>
56606
56607         * m4/mbfile.m4: New file.
56608
56609 2005-08-16  Bruno Haible  <bruno@clisp.org>
56610
56611         * m4/mbchar.m4: New file.
56612
56613 2005-08-16  Bruno Haible  <bruno@clisp.org>
56614
56615         * lib/tls.h: New file, from GNU gettext.
56616         * lib/tls.c: New file, from GNU gettext.
56617
56618 2005-08-16  Bruno Haible  <bruno@clisp.org>
56619
56620         * lib/strnlen1.h: New file.
56621         * lib/strnlen1.c: New file.
56622
56623 2005-08-16  Bruno Haible  <bruno@clisp.org>
56624
56625         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
56626         (mbi_init): Update.
56627         (mbi_avail, mbi_advance): Let the iteration end before the terminating
56628         NUL byte, not after it.
56629
56630 2005-08-16  Bruno Haible  <bruno@clisp.org>
56631
56632         * lib/strcase.h (strcasecmp): Add note in comments.
56633         * lib/strncasecmp.c: Use code from strcasecmp.c.
56634         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
56635         (strcasecmp): Work correctly in multibyte locales.
56636
56637 2005-08-16  Bruno Haible  <bruno@clisp.org>
56638
56639         * lib/mbiter.h: New file.
56640
56641 2005-08-16  Bruno Haible  <bruno@clisp.org>
56642
56643         * lib/mbfile.h: New file.
56644
56645 2005-08-16  Bruno Haible  <bruno@clisp.org>
56646
56647         * lib/mbchar.h: New file.
56648         * lib/mbchar.c: New file.
56649
56650 2005-08-16  Bruno Haible  <bruno@clisp.org>
56651
56652         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
56653         the valid ones. Makes the comparison operations transitive:
56654         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
56655         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
56656
56657 2005-08-15  Simon Josefsson  <jas@extundo.com>
56658
56659         * modules/ssize_t (License): Change to 'unlimited'.
56660
56661         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
56662
56663 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
56664
56665         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
56666         Add comments for each pending glibc patch.
56667
56668 2005-08-15  Bruno Haible  <bruno@clisp.org>
56669
56670         * lib/regex.h (__restrict_arr): Don't define to __restrict if
56671         __cplusplus is defined.
56672
56673 2005-08-14  Jim Meyering  <jim@meyering.net>
56674
56675         Sync from coreutils.
56676
56677         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
56678         Use the hash-table-based cycle-detection code not just when
56679         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
56680         Reported by James Youngman in
56681         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
56682         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
56683         FTS_TIGHT_CYCLE_CHECK.
56684         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
56685         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
56686         once again.
56687         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
56688         * lib/fts.c (fd_safer): Remove decl.
56689         Include fcntl--.h rather than unistd-safer.h
56690         (fts_safe_changedir): Don't call fd_safer; no longer needed
56691         now that we include fcntl--.h.
56692
56693 2005-08-12  Simon Josefsson  <jas@extundo.com>
56694
56695         * modules/getndelim2: Use ssize_t module.
56696         * modules/getnline: Likewise.
56697         * modules/safe-read: Likewise.
56698         * modules/xreadlink: Likewise.
56699
56700         * modules/ssize_t: New file.
56701
56702 2005-08-12  Simon Josefsson  <jas@extundo.com>
56703
56704         * m4/readline.m4: Look for termcap, curses or ncurses if required.
56705
56706 2005-08-12  Simon Josefsson  <jas@extundo.com>
56707
56708         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56709         ssize_t.
56710
56711 2005-08-12  Simon Josefsson  <jas@extundo.com>
56712
56713         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
56714         readline, getdelim and check_version.
56715         (Support for systems lacking ISO C 99: Sizes of integer types):
56716         Add size_max.
56717
56718 2005-08-12  Bruno Haible  <bruno@clisp.org>
56719
56720         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
56721
56722 2005-08-11  Simon Josefsson  <jas@extundo.com>
56723
56724         * modules/readline: New file.
56725
56726         * modules/strnlen (Files): Add strnlen.h.
56727
56728 2005-08-11  Simon Josefsson  <jas@extundo.com>
56729
56730         * m4/readline.m4: New file.
56731
56732 2005-08-11  Simon Josefsson  <jas@extundo.com>
56733
56734         * lib/readline.h, readline.c: New file.
56735
56736 2005-08-11  Simon Josefsson  <jas@extundo.com>
56737
56738         * doc/gnulib.texi (Initial import, Finishing touches): Mention
56739         gl_AVOID.
56740
56741 2005-08-11  Bruno Haible  <bruno@clisp.org>
56742
56743         * lib/strnlen.h (strnlen): Change parameter name to match comment.
56744
56745 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
56746
56747         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
56748
56749 2005-08-10  Simon Josefsson  <jas@extundo.com>
56750
56751         * tests/test-iconvme.c: New file.
56752
56753 2005-08-10  Simon Josefsson  <jas@extundo.com>
56754
56755         * m4/strnlen.m4: New file.
56756
56757         * m4/strndup.m4: Don't check for strnlen declaration, done in
56758         strnlen.m4.
56759
56760 2005-08-10  Simon Josefsson  <jas@extundo.com>
56761
56762         * lib/strndup.c: Use strnlen.h.
56763
56764         * lib/strnlen.h: New file.
56765
56766 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
56767
56768         * README: Typos.
56769
56770 2005-08-02  Simon Josefsson  <jas@extundo.com>
56771
56772         * modules/readline: New file.
56773
56774 2005-08-02  Simon Josefsson  <jas@extundo.com>
56775
56776         * modules/getdelim: New file.
56777
56778         * modules/getline: Rewrite, don't use getndelim2.
56779
56780 2005-08-02  Simon Josefsson  <jas@extundo.com>
56781
56782         * m4/getline.m4: Separate out getdelim stuff into separate module.
56783
56784         * m4/getdelim.m4: New file.
56785
56786 2005-08-02  Simon Josefsson  <jas@extundo.com>
56787
56788         * lib/getline.h, getline.c: Rewrite.
56789
56790         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
56791
56792 2005-07-31  Bruno Haible  <bruno@clisp.org>
56793
56794         * lib/lock.h (gl_lock_initializer): New macro.
56795         (gl_lock_define_initialized): Use it.
56796         (gl_rwlock_initializer): New macro.
56797         (gl_rwlock_define_initialized): Use it.
56798         (gl_recursive_lock_initializer): New macro.
56799         (gl_recursive_lock_define_initialized): Use it.
56800
56801 2005-07-30  Karl Berry  <karl@gnu.org>
56802
56803         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
56804         Report from Ben Pfaff, regarding getopt.
56805
56806 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
56807
56808         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
56809         normal way.
56810         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
56811         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
56812         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
56813         (gl_GETOPT): Use the new macros.  Most of the implementation
56814         is moved to the new macros.  This is for programs like Emacs
56815         that don't want all the functionality of gl_GETOPT.
56816
56817 2005-07-26  Bruno Haible  <bruno@clisp.org>
56818
56819         * m4/lock.m4: Update from GNU gettext.
56820
56821 2005-07-26  Bruno Haible  <bruno@clisp.org>
56822
56823         * lib/lock.h: Update from GNU gettext.
56824         * lib/lock.c: Update from GNU gettext.
56825
56826 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
56827
56828         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
56829         obsolescent AC_TRY_RUN.  Include the default includes files, for
56830         'exit'.
56831
56832 2005-07-24  Bruno Haible  <bruno@clisp.org>
56833
56834         * modules/visibility: New file.
56835         * MODULES.html.sh (Misc): Add visibility.
56836
56837 2005-07-24  Bruno Haible  <bruno@clisp.org>
56838
56839         * m4/visibility.m4: New file.
56840
56841 2005-07-24  Bruno Haible  <bruno@clisp.org>
56842
56843         * doc/visibility.texi: New file.
56844
56845 2005-07-22  Bruno Haible  <bruno@clisp.org>
56846
56847         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
56848         $(ALLOCA_H), redundant through BUILT_SOURCES.
56849         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
56850         redundant through BUILT_SOURCES.
56851         * modules/byteswap (Makefile.am): Remove explicit dependency on
56852         $(BYTESWAP_H), redundant through BUILT_SOURCES.
56853         * modules/fnmatch (Makefile.am): Remove explicit dependency on
56854         $(FNMATCH_H), redundant through BUILT_SOURCES.
56855         * modules/getopt (Makefile.am): Remove explicit dependency on
56856         $(GETOPT_H), redundant through BUILT_SOURCES.
56857         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
56858         redundant through BUILT_SOURCES.
56859         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
56860         redundant through BUILT_SOURCES.
56861         * modules/stdbool (Makefile.am): Remove explicit dependency on
56862         $(STDBOOL_H), redundant through BUILT_SOURCES.
56863         * modules/stdint (Makefile.am): Remove explicit dependency on
56864         $(STDINT_H), redundant through BUILT_SOURCES.
56865         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
56866         Remove explicit dependency on $(SYSEXITS_H).
56867         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
56868
56869 2005-07-18  Simon Josefsson  <jas@extundo.com>
56870
56871         * lib/check-version.c (check_version): Accept identical versions too.
56872
56873 2005-07-18  Bruno Haible  <bruno@clisp.org>
56874
56875         * modules/lock: New file.
56876         * MODULES.html.sh (Multithreading): New section.
56877
56878 2005-07-18  Bruno Haible  <bruno@clisp.org>
56879
56880         * m4/lock.m4: New file, from GNU gettext.
56881
56882 2005-07-18  Bruno Haible  <bruno@clisp.org>
56883
56884         * lib/lock.h: New file, from GNU gettext.
56885         * lib/lock.c: New file, from GNU gettext.
56886
56887 2005-07-18  Bruno Haible  <bruno@clisp.org>
56888
56889         * lib/lock.h (gl_once_t): New type.
56890         (gl_once_define, gl_once): New macros.
56891         * lib/lock.c (fresh_once): New variable.
56892         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
56893         functions.
56894
56895 2005-07-16  Simon Josefsson  <jas@extundo.com>
56896
56897         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
56898         workaround, suggested by Bruno.
56899
56900 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
56901
56902         * modules/xalloc (Depends-on): Add xalloc-die.
56903         * modules/xvasprintf (Depends-on): Add xalloc-die.
56904
56905 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
56906
56907         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
56908         with a minor change.
56909
56910 2005-07-15  Bruno Haible  <bruno@clisp.org>
56911
56912         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
56913         When using lib/poll.c, define poll as rpl_poll.
56914
56915 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
56916
56917         * modules/argp (Depends-on): Remove unlocked-io.
56918
56919 2005-07-14  Derek Price  <derek@ximbiot.com>
56920
56921         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
56922         for glob symlink bug.
56923
56924 2005-07-14  Bruno Haible  <bruno@clisp.org>
56925
56926         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
56927         Instead, test for *_unlocked function declarations directly.
56928
56929 2005-07-11  Simon Josefsson  <jas@extundo.com>
56930
56931         * modules/size_max: New file.
56932
56933         * modules/xsize: Depend on size_max module for size_max.m4.
56934
56935 2005-07-11  Simon Josefsson  <jas@extundo.com>
56936
56937         * lib/size_max.h: New file.
56938
56939 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
56940
56941         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
56942         copyright symbol and the year.
56943         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
56944         (version_etc_va): Use parameterized copyright notice.
56945         Reword to conform to the current GNU coding standards.
56946
56947 2005-07-11  Karl Berry  <karl@gnu.org>
56948
56949         * doc/gnulib.texi (Quoting): new node.
56950         (Initial import): more info, from Patrice.
56951
56952 2005-07-11  Bruno Haible  <bruno@clisp.org>
56953
56954         * gnulib-tool (func_usage): Document option --avoid.
56955         (Command line options): Handle --avoid.
56956         (func_acceptable): New function.
56957         (func_modules_transitive_closure): Use it.
56958
56959 2005-07-11  Bruno Haible  <bruno@clisp.org>
56960
56961         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
56962         Reported by Jim Meyering.
56963
56964 2005-07-10  Bruno Haible  <bruno@clisp.org>
56965
56966         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
56967         Needed when size_t is smaller than 'unsigned int'.
56968         Reported by Paul Eggert.
56969
56970 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56971
56972         * modules/argp (Depends-on): Add unlocked-io
56973
56974 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
56975
56976         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
56977         block of defines.
56978
56979 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
56980
56981         * config/srclist.txt: Comment out regcomp.c, since we have a porting
56982         fix now.
56983
56984 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
56985         and Paul Eggert  <eggert@cs.ucla.edu>
56986
56987         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
56988         in wint_t, not wchar_t.  Remove now-unnecessary cast.
56989
56990 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56991
56992         * modules/regex (Files): Add lib/regex_internal.c,
56993         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
56994         (Depends-on): Add extensions.
56995         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
56996
56997 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
56998
56999         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
57000         pathconf.
57001         * m4/same.m4 (gl_SAME): Likewise.
57002         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
57003
57004         * m4/regex.m4: Adjust to new libc regex implementation.
57005         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
57006         all the .c and .h parts of (the new) regex.
57007         Quote the m4 stuff better.
57008         Check for RE_ICASE bug of old gnulib.
57009         Check for REG_STARTEND of recent libc.
57010         Rename local variables from jm_* to gl_*.
57011         Quote operand of "test -f".
57012         Say "recent enough" version of libc, not "version 2".
57013         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
57014         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
57015         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
57016         Remove check for btowc, isascii.
57017         Require AM_LANGINFO_CODESET.
57018
57019 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
57020
57021         * lib/regex.c, regex.h: Sync from libc.
57022         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
57023         * lib/regexec.c:
57024         New files, synced from libc, except that regex_internal.h
57025         currently has a small porting fix.
57026
57027 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
57028
57029         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
57030         regex_internal.c, regexec.c.
57031         Add regex_internal.h too, but as a comment, since the libc version
57032         is currently broken in gnulib mode.
57033
57034 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
57035
57036         Support programs like Emacs that use gnulib but not gettext.
57037         * MODULES.html.sh (Internationalization functions): Add gettext-h.
57038         * modules/gettext-h: New file.
57039         * modules/gettext (Files): Remove lib/gettext.h.
57040         (Depends-on): Add gettext-h.
57041         (Makefile.am): Remove lib_SOURCES.
57042         * modules/argmatch, modules/c-stack, modules/closeout:
57043         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
57044         * modules/execute, modules/file-type, modules/getaddrinfo:
57045         * modules/getopt, modules/human, modules/javacomp:
57046         * modules/javaexec, modules/mkdir-p, modules/obstack:
57047         * modules/openat, modules/pagealign_alloc, modules/pipe:
57048         * modules/quotearg, modules/regex, modules/rpmatch:
57049         * modules/unicodeio, modules/userspec, modules/version-etc:
57050         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
57051         * modules/xsetenv:
57052         Depend on gettext-h, not gettext.
57053
57054 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
57055
57056         * gnulib-tool (func_import): Add support for 'public domain' license.
57057         * modules/alloca, modules/atexit, modules/memmove:
57058         Now public domain, not GPL.
57059         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
57060         * modules/realloc, modules/strerror, modules/strtod:
57061         Now LGPL, not GPL.
57062
57063 2005-07-05  Bruno Haible  <bruno@clisp.org>
57064
57065         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
57066         autoconf CVS. Needed for mingw.
57067
57068 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
57069
57070         Remove the dependency of the strftime module on the tzset module.
57071         * modules/strftime (Depends-on): Remove dependency on tzset.
57072
57073 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
57074
57075         Remove the dependency of the strftime module on the tzset module.
57076         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
57077         gl_FUNC_TZSET_CLOBBER.
57078
57079 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
57080
57081         Remove the dependency of the strftime module on the tzset module.
57082         * lib/strftime.c (my_strftime)
57083         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
57084         Copy the input structure, to work around some of the bug with
57085         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
57086         Solaris releases, you should also use the tzset module, but we won't
57087         require it as a dependency any more since we don't want LGPLed code
57088         to depend on GPLed code.
57089
57090 2005-07-02  Jim Meyering  <jim@meyering.net>
57091
57092         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
57093         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
57094         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
57095         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
57096
57097 2005-07-02  Jim Meyering  <jim@meyering.net>
57098
57099         * lib/backupfile.c (backup_args): Change a `0' to NULL.
57100
57101 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
57102
57103         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
57104         declares only 'struct timespec;' (!).
57105
57106 2005-07-01  Jim Meyering  <jim@meyering.net>
57107
57108         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
57109         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
57110         * lib/save-cwd.c, tempname.c:
57111         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
57112         and don't include <sys/file.h>).
57113
57114 2005-06-29  Jim Meyering  <jim@meyering.net>
57115
57116         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
57117         type name.  Use the variable name instead.
57118         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
57119         Likewise.
57120
57121 2005-06-28  Simon Josefsson  <jas@extundo.com>
57122
57123         * modules/check-version (Files): Add check-version.m4.
57124
57125 2005-06-28  Simon Josefsson  <jas@extundo.com>
57126
57127         * m4/check-version.m4: New file, suggested by Jim Meyering
57128         <jim@meyering.net>.
57129
57130 2005-06-28  Simon Josefsson  <jas@extundo.com>
57131
57132         * lib/check-version.h, lib/check-version.c: New files.
57133
57134 2005-06-28  Simon Josefsson  <jas@extundo.com>
57135
57136         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
57137         collision with global variable.  Better indentation.  Don't
57138         increment buffer pointer beyond buffer end.  Based on comments
57139         from Paul Eggert <eggert@cs.ucla.edu>.
57140
57141         * lib/base64.h: Indent.
57142
57143 2005-06-28  Simon Josefsson  <jas@extundo.com>
57144
57145         * doc/gnulib.texi (Library version handling): New section.
57146
57147 2005-06-28  Jim Meyering  <jim@meyering.net>
57148
57149         * check-module (find_included_lib_files): Hard-code another
57150         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
57151         but modules/fts-lgpl (correctly) does not list those files.
57152
57153         * modules/canonicalize (Files): Add lib/pathmax.h.
57154
57155 2005-06-25  Simon Josefsson  <jas@extundo.com>
57156
57157         * modules/check-version: New file.
57158
57159 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
57160
57161         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
57162         initializer of struct addrinfo, as an indication that we don't
57163         care how many members the structure has.
57164
57165 2005-06-24  Derek Price  <derek@ximbiot.com>
57166         and Bruno Haible  <bruno@clisp.org>
57167
57168         Remove stat module & update lstat.
57169         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
57170         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
57171         * m4/stat.m4: Remove this file.
57172
57173 2005-06-24  Derek Price  <derek@ximbiot.com>
57174         and Bruno Haible  <bruno@clisp.org>
57175
57176         Remove stat module & update lstat.
57177         * lib/stat.c: Remove this file...
57178         (slash_aware_lstat): ...moving this content and its support...
57179         * lib/lstat.c (rpl_lstat): ...into here.
57180         * lib/lstat.h: New file.
57181
57182 2005-06-24  Derek Price  <derek@ximbiot.com>
57183         and Bruno Haible  <bruno@clisp.org>
57184
57185         Remove stat module & update lstat.
57186         * config/srclist.txt (libc sources): Remove stat.
57187
57188 2005-06-24  Derek Price  <derek@ximbiot.com>
57189         and Bruno Haible  <bruno@clisp.org>
57190
57191         Remove stat module & update lstat.
57192         * MODULES.html.sh (stat): Remove.
57193         * MODULES.html: Regenerated.
57194         * modules/lstat (Description): Correct function name.
57195         (Files): Add "lstat.h".
57196         (Depends-on): Remove stat, add xalloc, stat-macros.
57197         * modules/stat: Remove this file.
57198         (Include): Add "lstat.h", remove <sys/stat.h>.
57199
57200 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
57201
57202         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
57203         (ranged_convert): Don't save conversion in a temporary struct.
57204         This causes a warning with GCC 4.0.0, and anyway in the typical
57205         case it's not worth the extra 100 bytes or so of code.
57206         (ranged_convert, __mktime_internal): When calling a function via a
57207         pointer P, use P () rather than (*P) (), as we now assume C89 or
57208         better.
57209
57210 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
57211
57212         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
57213         "who -r" failed to give output.  Problem reported by Tim Waugh.
57214
57215         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
57216         (xcalloc): Use it to avoid needless tests.
57217         Problem reported by Jim Meyering.
57218
57219 2005-06-20  Derek Price  <derek@ximbiot.com>
57220
57221         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
57222         unnecessary for Autoconfs > 2.59c.
57223
57224 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57225
57226         * lib/argp.h (__option_is_short): Check upper limit of
57227         __key. Isprint() requires its argument to have the value
57228         of an unsigned char or EOF.
57229
57230 2005-06-16  Jim Meyering  <jim@meyering.net>
57231
57232         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
57233         when either N or S is zero.
57234
57235 2005-06-16  Derek Price  <derek@ximbiot.com>
57236
57237         * m4/bison.m4: Declare YACC & YFLAGS precious.
57238
57239 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
57240
57241         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
57242         multibyte string or pattern, fall back on unibyte matching.
57243         Problem reported by James Youngman.
57244
57245 2005-06-08  Bruno Haible  <bruno@clisp.org>
57246
57247         * modules/csharpcomp: New file.
57248         * MODULES.html.sh (C#): Add csharpcomp.
57249
57250 2005-06-08  Bruno Haible  <bruno@clisp.org>
57251
57252         * m4/csharpcomp.m4: New file, from GNU gettext.
57253
57254 2005-06-08  Bruno Haible  <bruno@clisp.org>
57255
57256         * lib/csharpcomp.h: New file, from GNU gettext.
57257         * lib/csharpcomp.c: New file, from GNU gettext.
57258         * lib/csharpcomp.sh.in: New file, from GNU gettext.
57259
57260 2005-06-08  Bruno Haible  <bruno@clisp.org>
57261
57262         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
57263         warning on mingw.
57264
57265 2005-06-07  Derek Price  <derek@ximbiot.com>
57266
57267         Sync from CVS.
57268         * lib/glob_.h: Indent nested #ifdef.
57269
57270 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
57271
57272         Sync from coreutils.
57273         Use "file name" when talking about file names, instead of "filename"
57274         or "path", as per the GNU coding standards.
57275         * lib/mkdir-p.c: Renamed from makepath.c.
57276         (make_dir_parents): Renamed from make_path.  All callers changed.
57277         * lib/mkdir-p.h: Likewise.  All includers changed.
57278         * lib/filenamecat.c: Renamed from path-concat.c.
57279         (file_name_concat): Renamed from path_concat.  All callers changed.
57280         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
57281         * lib/filenamecat.h: Likewise.  All includers changed.
57282         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
57283         in comments or local variable names.
57284         * lib/basename.c: Likewise.
57285         * lib/canonicalize.c, canonicalize.h: Likewise.
57286         * lib/dirname.c, dirname.h: Likewise.
57287         * lib/euidaccess.c: Likewise.
57288         * lib/exclude.c: Likewise
57289         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
57290         * lib/fsusage.c, fsuage.h: Likewise.
57291         * lib/fts.c, fts_.h: Likewise.
57292         * lib/getcwd.c: Likewise.
57293         * lib/getloadavg.c: Likewise.
57294         * lib/mkstemp.c: Likewise.
57295         * lib/mountlist.c, mountlist.h: Likewise.
57296         * lib/openat.c, openat.h: Likewise.
57297         * lib/readlink-stub.c: Likewise.
57298         * lib/readutmp.c, readutmp.h: Likewise.
57299         * lib/rename.c: Likewise.
57300         * lib/rmdir.c: Likewise.
57301         * lib/same.c: Likewise.
57302         * lib/savedir.c: Likewise.
57303         * lib/stripslash.c: Likewise.
57304         * lib/tempname.c: Likewise.
57305         * lib/xreadlink.c: Likewise.
57306         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
57307         All uses changed.
57308         * lib/exclude.h: Likewise.
57309
57310         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
57311         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
57312         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
57313         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
57314         * lib/pathmax.h: Include <limits.h> unconditionally, since other
57315         files have been getting away with it for years (MORE/BSD 4.3
57316         is extinct now).
57317         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
57318         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
57319
57320         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
57321         Define to 256, not 255, as per modern POSIX.
57322
57323 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
57324
57325         Sync from coreutils.
57326         Use "file name" when talking about file names, instead of "filename"
57327         or "path", as per the GNU coding standards.
57328         * MODULES.html.sh: mkdir-p renamed from makepath.
57329         filenamecat renamed from path-concat.
57330         * modules/filenamecat: Renamed from modules/path-concat.
57331         (Files): filenamecat.h and filenamecat.c renamed from
57332         path-concat.h and path-concat.c.
57333         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
57334         (Include): filenamecat.h, not path-concat.h.
57335         * modules/mkdir-p: Renamed from modules/makepath.
57336         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
57337         makepath.c.
57338         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
57339         (Include): mkdir-p.h, not makepath.h.
57340
57341 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
57342
57343         Sync from coreutils.
57344         * m4/mkdir-p.m4: Renamed from makepath.m4.
57345         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
57346         Rename files from makepath.c to mkdir-p.c, and from
57347         makepath.h to mkdir-p.h.
57348         * m4/filenamecat.m4: Renamed from path-concat.m4.
57349         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
57350         Rename files from path-concat.c to filenamecat.c,
57351         and from path-concat.h to filenamecat.h.
57352         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
57353         "file name" in local variables or comments.
57354         * m4/rename.m4: Likewise.
57355
57356 2005-06-01  Bruno Haible  <bruno@clisp.org>
57357
57358         * modules/csharpexec: New file.
57359         * MODULES.html.sh (C#): New section.
57360
57361 2005-06-01  Bruno Haible  <bruno@clisp.org>
57362
57363         * m4/csharp.m4: New file, from GNU gettext.
57364         * m4/csharpexec.m4: New file, from GNU gettext.
57365
57366 2005-06-01  Bruno Haible  <bruno@clisp.org>
57367
57368         * lib/csharpexec.h: New file, from GNU gettext.
57369         * lib/csharpexec.c: New file, from GNU gettext.
57370         * lib/csharpexec.sh.in: New file, from GNU gettext.
57371
57372 2005-05-31  Derek Price  <derek@ximbiot.com>
57373             Paul Eggert  <eggert@cs.ucla.edu>
57374
57375         Sync from cvs.
57376         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
57377
57378 2005-05-31  Derek Price  <derek@ximbiot.com>
57379             Paul Eggert  <eggert@cs.ucla.edu>
57380
57381         Sync from cvs.
57382         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
57383
57384 2005-05-29  Derek Price  <derek@ximbiot.com>
57385
57386         * config/srclist.txt (glob_.h, glob.c): Add these files.
57387
57388 2005-05-29  Derek Price  <derek@ximbiot.com>
57389
57390         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
57391         * modules/glob: New file.
57392         * modules/getlogin_r: Add link to POSIX spec in description.
57393
57394 2005-05-29  Derek Price  <derek@ximbiot.com>
57395             Paul Eggert  <eggert@cs.ucla.edu>
57396
57397         * m4/glob.m4: New file.
57398
57399 2005-05-29  Derek Price  <derek@ximbiot.com>
57400             Paul Eggert  <eggert@cs.ucla.edu>
57401
57402         * lib/glob_.h, lib/glob.c: New files.
57403
57404 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
57405
57406         * modules/fts (Files): Remove m4/inttypes-pri.m4.
57407         * modules/fts-lgpl (Depends-on): Remove gettext.
57408
57409 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
57410
57411         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
57412         and don't require gt_INTTYPES_PRI.
57413
57414 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
57415
57416         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
57417
57418         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
57419         the configuration hassle isn't worth it.
57420         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
57421         (LONGEST_MODIFIER, PRIuMAX): Remove.
57422
57423 2005-05-27  Bruno Haible  <bruno@clisp.org>
57424
57425         * lib/getlogin_r.h: Remove second include of <stddef.h>.
57426
57427 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
57428
57429         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
57430         _POSIX_PTHREAD_SEMANTICS for Solaris.
57431
57432 2005-05-25  Derek Price  <derek@ximbiot.com>
57433
57434         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
57435
57436 2005-05-25  Derek Price  <derek@ximbiot.com>
57437             Paul Eggert  <eggert@cs.ucla.edu>
57438
57439         * modules/getlogin_r, m4/getlogin_r.m4: New files.
57440         * lib/getlogin_r.c, getlogin_r.h: New files.
57441
57442 2005-05-25  Bruno Haible  <bruno@clisp.org>
57443             Derek Price  <derek@ximbiot.com>
57444
57445         * lib/getlogin_r.h: Simplify API documentation.
57446
57447 2005-05-23  Derek Price  <derek@ximbiot.com>
57448
57449         * modules/minmax (Files): Add m4/minmax.m4.
57450         (configure.ac): Add gl_MINMAX.
57451
57452 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
57453
57454         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
57455         so that unistd-safer.h (GPL'ed code) need not be included.
57456
57457 2005-05-22  Bruno Haible  <bruno@clisp.org>
57458
57459         * m4/minmax.m4: New file.
57460         Based on a patch by Derek Price <derek@ximbiot.com>.
57461
57462 2005-05-22  Bruno Haible  <bruno@clisp.org>
57463
57464         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
57465         (INT64_MIN): Fix definition.
57466         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
57467
57468         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
57469         NEED_SIGNED_INT_TYPES.
57470
57471         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
57472         HAVE_SYSTEM_INTTYPES.
57473
57474 2005-05-22  Bruno Haible  <bruno@clisp.org>
57475
57476         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
57477         Also include <sys/param.h> if it defines MIN, MAX.
57478         Based on a patch by Derek Price <derek@ximbiot.com>.
57479
57480 2005-05-21  Jim Meyering  <jim@meyering.net>
57481
57482         * modules/fts (Files): Add m4/inttypes-pri.m4.
57483         (Depends-on): Add lstat and remove gettext.  Alphabetize.
57484
57485 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
57486
57487         New fts module.
57488         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
57489         (setup_dir, free_dir): New functions.
57490         (enter_dir, leave_dir): Define trivial
57491         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
57492         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
57493         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
57494         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
57495         Move to fts-cycle.c.
57496         (fts_open): Use setup_dir.
57497         (fts_close): Use free_dir.
57498         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
57499         This adds a label and some gotos, but the alternatives were messier.
57500         Check for memory allocation failure when entering a dir.
57501         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
57502         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
57503         (FTS): New member fts_cycle, that is a union that contains the
57504         old active_dir_ht and cycle_state.  All uses changed to mention
57505         fts_cycle.ht and fts_cycle.state.
57506         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
57507         fts.c, with the following changes:
57508         (setup_dir, free_dir): New functions.
57509         (enter_dir): Now returns bool.  Return true if successful, false
57510         if memory exhausted.  All callers changed.
57511         Do not bother partly cleaning up on
57512         memory allocation failure; that is free_dir's job.
57513         However, free ad if hash_insert fails, to avoid memory leak.
57514         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
57515         fts->fts_options to see which union member to use.
57516
57517 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
57518
57519         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
57520         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
57521
57522 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
57523
57524         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
57525
57526 2005-05-20  Jim Meyering  <jim@meyering.net>
57527
57528         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
57529         Now a macro, to pacify GCC.
57530
57531 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
57532
57533         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
57534         of -1.
57535
57536 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
57537
57538         * lib/chown.c (rpl_chown): Return -1 on failure.
57539
57540 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
57541
57542         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
57543         Don't check for stddef.h.
57544         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
57545         don't use its results.
57546         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
57547         since we include them unconditionally.  Don't require
57548         AM_STDBOOL_H, since stdbool is a prerequisite.
57549         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
57550         since we assume C89 or better.
57551         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
57552         as we don't use their results.
57553         Don't check for fchdir, memmove, memset, strrchr, as we use
57554         them unconditionally.
57555         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
57556         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
57557
57558 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
57559
57560         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
57561         Include <stddef.h> unconditionally, since we assume C89 now.
57562         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
57563         * lib/fts.c: Include fts_.h first, to check interface.
57564         Do not include intprops.h; no longer needed.
57565         Include cycle-check.h and hash.h, since fts_.h no longer does.
57566         Remove unnecessary casts of closedir to void.
57567         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
57568         decide whether to decrement nlinks.
57569         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
57570         (FTS): Use struct hash_table * instead of Hash_table, so that
57571         we no longer need to include hash.h here.
57572
57573 2005-05-18  Jim Meyering  <jim@meyering.net>
57574
57575         * modules/dirfd (License): Change to LGPL.  Most of the code
57576         is already in the public domain.
57577
57578 2005-05-18  Jim Meyering  <jim@meyering.net>
57579
57580         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
57581         Reported by Yoann Vandoorselaere.
57582
57583 2005-05-17  Jim Meyering  <jim@meyering.net>
57584
57585         * m4/fts.m4: New file, from coreutils.
57586
57587 2005-05-17  Jim Meyering  <jim@meyering.net>
57588
57589         * lib/fts.c, lib/fts_.h: New files, from coreutils.
57590
57591 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
57592
57593         Sync from coreutils.
57594         * m4/unlinkdir.m4: New file.
57595
57596 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
57597
57598         Sync from coreutils.
57599         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
57600         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
57601         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
57602         White space changes only.
57603         * lib/makepath.c (make_path): Port to hosts where leading "//" is
57604         special.
57605         * lib/yesno.c: Include getline.h, not ctype.h.
57606         (yesno): Don't remove leading white space; POSIX doesn't allow it.
57607         Use getline to remove arbitrary restriction on response length.
57608
57609 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
57610
57611         * config/srclist-update: Spell out "Street" in FSF postal
57612         mail address; this is the style the FSF seems to prefer.
57613
57614         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
57615         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
57616         this updates FSF postal mail address.
57617
57618         Sync from coreutils.
57619         * modules/unlinkdir: New file.
57620         * modules/yesno (Depends-on): Add getline.
57621         * MODULES.html.sh (File system functions): Add unlinkdir.
57622
57623 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
57624
57625         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
57626         lib/strsep.h:
57627         Change the initial comment to refer to GPL, not LGPL.
57628         gnulib-tool will change it to LGPL as needed.
57629
57630         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
57631         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
57632         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
57633         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
57634         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
57635         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
57636         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
57637         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
57638         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
57639         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
57640         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
57641         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
57642         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
57643         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
57644         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
57645         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
57646         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
57647         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
57648         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
57649         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
57650         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
57651         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
57652         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
57653         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
57654         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
57655         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
57656         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
57657         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
57658         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
57659         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
57660         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
57661         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
57662         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
57663         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
57664         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
57665         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
57666         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
57667         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
57668         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
57669         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
57670         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
57671         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
57672         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
57673         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
57674         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
57675         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
57676         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
57677         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
57678         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
57679         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
57680         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
57681         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
57682         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
57683         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
57684         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
57685         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
57686         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
57687         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
57688         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
57689         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
57690         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
57691         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
57692         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
57693         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
57694         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
57695         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
57696         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
57697         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
57698         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
57699         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
57700         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
57701         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
57702         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
57703         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
57704         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
57705         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
57706         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
57707         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
57708         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
57709         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
57710         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
57711         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
57712         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
57713         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
57714         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
57715         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
57716         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
57717         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
57718         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
57719         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
57720         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
57721         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
57722         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
57723         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
57724         lib/yesno.c, lib/yesno.h:
57725         Update FSF postal mail address.
57726
57727 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
57728
57729         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
57730         tests/test-memmem.c, tests/test-stpncpy.c:
57731         Update FSF postal mail address.
57732
57733 2005-05-13  Bruno Haible  <bruno@clisp.org>
57734
57735         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
57736         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
57737         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
57738         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
57739         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
57740         Add support for 64-bit integers in the MSVC compiler.
57741
57742 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
57743
57744         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
57745
57746 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
57747
57748         * gnulib-tool (func_import): Sort and uniquify recommended includes.
57749
57750 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
57751
57752         * doc/getdate.texi (General date syntax): Don't say that date
57753         date --iso-8601=ns generates acceptable dates; it doesn't yet.
57754         Problem reported by Nic Ferrier.
57755
57756 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57757
57758         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
57759         specified in ai_socktype. Fix invalid ai_protocol
57760         check. ai_protocol is usually set to 0 or depending on
57761         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
57762         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
57763         ai_socktype / ai_protocol in the returned addrinfo structure.
57764
57765 2005-05-10  Simon Josefsson  <jas@extundo.com>
57766
57767         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
57768         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
57769
57770 2005-05-10  Karl Berry  <karl@gnu.org>
57771
57772         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
57773         (from http://www.gnu.org/licenses).
57774         * doc/COPYING.LIB: also rename to COPYING.LESSER.
57775         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
57776         fdl.texi suffices.
57777
57778 2005-05-10  Karl Berry  <karl@gnu.org>
57779
57780         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
57781         (COPYING.DOC): remove.
57782
57783         * config/srclist-update: new FSF address.
57784
57785 2005-05-10  Derek Price  <derek@ximbiot.com>
57786
57787         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
57788         possible.
57789
57790 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57791             Bruno Haible  <bruno@clisp.org>
57792
57793         * modules/inet_ntop: New file.
57794         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57795         inet_ntop.
57796
57797 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57798             Bruno Haible  <bruno@clisp.org>
57799
57800         * m4/inet_ntop.m4: New file.
57801
57802 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
57803             Bruno Haible  <bruno@clisp.org>
57804
57805         * lib/inet_ntop.h: New file.
57806         * lib/inet_ntop.c: New file, from glibc with modifications.
57807
57808 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
57809
57810         * modules/time_r (License): Change to LGPL.
57811         * modules/extensions (License): Change to LGPL.  Actually,
57812         the license is more permissive than that, but currently gnulib-tool
57813         doesn't know how to handle more-permissive licenses.
57814
57815         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
57816         Problem reported by Dave Love.
57817
57818 2005-05-08  Jim Meyering  <jim@meyering.net>
57819
57820         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
57821         blank.
57822
57823 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
57824
57825         * modules/argmatch (Depends-on): Add stdbool.
57826         * modules/backupfile (Depends-on): Likewise.
57827         * modules/chdir-long (Depends-on): Likewise.
57828         * modules/closeout (Depends-on): Likewise.
57829         * modules/cycle-check (Depends-on): Likewise.
57830         * modules/dirname (Depends-on): Likewise.
57831         * modules/fnmatch (Depends-on): Likewise.
57832         * modules/fsusage (Depends-on): Likewise.
57833         * modules/fwriteerror (Depends-on): Likewise.
57834         * modules/getcwd (Depends-on): Likewise.
57835         * modules/getloadavg (Depends-on): Likewise.
57836         * modules/hard-locale (Depends-on): Likewise.
57837         * modules/makepath (Depends-on): Likewise.
57838         * modules/mountlist (Depends-on): Likewise.
57839         * modules/nanosleep (Depends-on): Likewise.
57840         * modules/posixtm (Depends-on): Likewise.
57841         * modules/quotearg (Depends-on): Likewise.
57842         * modules/readtokens (Depends-on): Likewise.
57843         * modules/readtokens0 (Depends-on): Likewise.
57844         * modules/readutmp (Depends-on): Likewise.
57845         * modules/save-cwd (Depends-on): Likewise.
57846         * modules/strftime (Depends-on): Likewise.
57847         * modules/userspec (Depends-on): Likewise.
57848         * modules/utimecmp (Depends-on): Likewise.
57849         * modules/xgetcwd (Depends-on): Likewise.
57850         * modules/xnanosleep (Depends-on): Likewise.
57851         * modules/xstrtod (Depends-on): Likewise.
57852         * modules/yesno (Depends-on): Likewise.
57853
57854 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
57855
57856         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
57857         needless checks.
57858
57859 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57860
57861         Merge from coreutils.  Among other things,
57862         add bulletproofing for cases where stdin, stdout, or stderr are closed.
57863         * lib/fd-safer.c: New file.
57864         * lib/fcntl-safer.h, open-safer.c: Remove.
57865         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
57866         * lib/dup-safer.c: Include unistd-safer.h first.
57867         Don't include errno.h.
57868         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
57869         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
57870         * lib/file-type.c: Rely on file-type.h change.
57871         * lib/getloadavg.c: Include unistd-safer.h.
57872         (getloadavg): Use safer open.
57873         * lib/getusershell.c: Include "stdio-safer.h".
57874         (getusershell): Use safer fopen.
57875         * lib/long-options.c (long_options): Use NULL rather than 0.
57876         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
57877         'free'.
57878         * lib/modechange.c: Likewise.
57879         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
57880         (MODE_DONE): New constant.
57881         (struct mode_change): Remove 'next' member.
57882         (make_node_op_equals): New function; like the old one of the
57883         same name, except it allocates an array.
57884         (mode_compile, mode_create_from_ref): Use it.
57885         (mode_compile): Allocate result as an array, not a linked list.
57886         Parse octal string ourself, so that we catch mistakes like "+0".
57887         (mode_adjust): Arg is an array, not a linked list.
57888         * lib/modechange.c: Include stat-macros.h, xalloc.h.
57889         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
57890         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
57891         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
57892         Remove.  This is now stat-macros.h's job.
57893         (talloc): Remove.  All callers replaced by xalloc, so that
57894         our invokers don't have to worry about reporting memory failures.
57895         (make_node_op_equals): Remove.
57896         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
57897         New constants.
57898         (struct mode_change): Moved here from modechange.h.
57899         (mode_append_entry): Remove.
57900         (mode_compile): Remove MASKED_OPS arg, since it encouraged
57901         apps to have incorrect behavior.  Use simpler algorithm for head
57902         and tail.  Don't futz with umask; that's now the job of mode_adjust.
57903         Detect more invalid usages rather than having somewhat-random behavior.
57904         Don't insert an "a=" action, as that leads to incorrect behavior.
57905         (mode_compile, mode_create_from_ref): Return NULL on error instead
57906         of an enum, since now there's only one way to have an error.  All
57907         callers changed.
57908         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
57909         at the correct time.  Simplify calculation of "+u" and its ilk.
57910         Don't mishandle "+X".
57911         (mode_free): Remove "register" and localize decls.
57912         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
57913         (struct mode_change): Move to modechange.c; callers don't
57914         need to see this stuff.
57915         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
57916         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
57917         (mode_change, mode_adjust): Reflect the new signatures noted above.
57918         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
57919         that might redefine system include files.
57920         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
57921         (my_usleep): Use NULL rather than (void *) 0.
57922         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
57923         Use siginterrupt to specify that system calls should be interrupted.
57924         (rpl_nanosleep): Move initialization of suspended closer to call of
57925         my_usleep.
57926         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
57927         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
57928         (desirable_utmp_entry): New function.
57929         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
57930         using x2nrealloc, to simplify logic.
57931         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
57932         size calculation.  Do not assume utmp file is a regular file.
57933         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
57934         (READ_UTMP_CHECK_PIDS): New constant.
57935         * lib/save-cwd.c: Include unistd-safer.h.
57936         (save_cwd): Use fd_safer.
57937         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
57938         [!_LIBC] Include "stat-macros.h" instead.
57939         * lib/unistd-safer.h (fd_safer): New decl.
57940
57941 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57942
57943         * modules/getloadavg (Depends-on): Add unistd-safer.
57944         * modules/getusershell (Depends-on): Add stdio-safer.
57945         * modules/lstat (Depends-on): Remove xalloc.
57946         * modules/mkstemp (Depends-on): Add stat-macros.
57947         * modules/modechange (Depends-on): Remove xstrtol.
57948         Add stat-macros, xalloc.
57949         * modules/save-cwd (Depends-on): Add unistd-safer.
57950         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
57951         * modules/unistd-safer (Files): Add lib/fd-safer.c
57952         (Makefile.am): Remove lib_SOURCES.
57953
57954         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
57955         Remove fcntl-safer; unistd-safer supersedes it.
57956
57957 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57958
57959         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
57960         AC_HEADER_STAT.
57961         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
57962         (gl_PREREQ_CHOWN): Remove.
57963         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
57964         it.  Don't require AC_HEADER_STAT.
57965         (gl_PREREQ_LSTAT): Remove.
57966         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
57967         Don't require AC_HEADER_STAT.
57968         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
57969         (gl_PREREQ_RMDIR): Remove.
57970         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
57971         mention stat-macros.h or AC_HEADER_STAT, since we'll make
57972         the stat-macros module a prerequisite.
57973         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
57974         * m4/filemode.m4 (gl_FILEMODE): Likewise.
57975         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
57976         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
57977         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
57978         variable names.
57979         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
57980         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
57981         variable prefixes.
57982         * m4/fcntl-safer.m4: Remove.
57983         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
57984         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
57985         Invoke gl_PREREQ_FD_SAFER.
57986         (gl_PREREQ_FD_SAFER): New macro.
57987         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
57988         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
57989         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
57990         Remove duplicate call to AC_LIBOBJ(readutmp).
57991         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
57992
57993         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
57994         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
57995
57996 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
57997
57998         * MODULES.html.sh (Misc): Add byteswap.
57999
58000 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
58001
58002         * modules/getcwd (Depends-on): Add extensions.
58003         * modules/openat (Depends-on): Likewise.
58004
58005 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
58006
58007         * modules/byteswap: New file.
58008
58009 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
58010
58011         * m4/byteswap.m4: New file.
58012
58013 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
58014
58015         * lib/byteswap_.h: New file.
58016
58017 2005-04-25  Karl Berry  <karl@gnu.org>
58018
58019         * m4/gettext.m4: Update from GNU gettext 0.14.4.
58020
58021 2005-04-25  Albert Chin  <china@thewrittenword.com>
58022
58023         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
58024         Toolkit C bug.
58025
58026 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
58027
58028         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
58029         (func_ln_if_changed) Remove forcibly for no error message
58030         in case file does not exist.
58031
58032 2005-04-19  Simon Josefsson  <jas@extundo.com>
58033
58034         * gnulib-tool (Options): Make --symlink mean --symbolic.
58035
58036 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
58037
58038         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
58039
58040 2005-04-16  Simon Josefsson  <jas@extundo.com>
58041
58042         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
58043
58044 2005-04-15  Simon Josefsson  <jas@extundo.com>
58045
58046         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
58047
58048 2005-04-15  Simon Josefsson  <jas@extundo.com>
58049
58050         * gnulib-tool: Rename --symlink to --symbolic.
58051
58052 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
58053
58054         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
58055         symbolic links to files instead of copying/moving.  Add --aux-dir,
58056         specifying directory relative --dir where auxiliary build tools
58057         are placed.
58058
58059 2005-04-14  Bruno Haible  <bruno@clisp.org>
58060
58061         * modules/allocsa (License): Change to LGPL.
58062         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
58063
58064 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
58065
58066         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
58067         that "UTC +1 second" continues to work.  Problem reported
58068         by Dmitry V. Levin.
58069         (relunit_snumber): New rule.
58070         (relunit): Use it.
58071
58072 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
58073
58074         * lib/getdate.y (universal_time_zone_table): New constant.
58075         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
58076         universal_time_zone_table.
58077         (lookup_zone): Prefer universal_time_zone_table to
58078         local_time_zone_table, so that "GMT" time stamps are allowed in
58079         London during the summer.  Problem reported by Ian Abbott.
58080
58081 2005-04-12  Jim Meyering  <jim@meyering.net>
58082
58083         * lib/human.c (humblock): Set *options even when returning due to
58084         xstrtoumax conversion failure.  Thanks to a used-uninitialized
58085         warning from gcc-4.
58086
58087 2005-04-09  Jim Meyering  <jim@meyering.net>
58088
58089         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
58090         -Wuninitialized: initialize tm0.tm_year.
58091
58092 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
58093
58094         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
58095         count, since there's no maximum.  All uses changed.
58096         Add member dsts_seen.
58097         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
58098         not being INT_MAX.
58099         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
58100         Use pc_rels_seen to decide whther a date is absolute.
58101
58102         * lib/getdate.y (number): Don't overwrite year.
58103         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
58104         check.
58105
58106 2005-04-02  Simon Josefsson  <jas@extundo.com>
58107
58108         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
58109         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
58110
58111 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
58112
58113         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
58114         where no absolute path name can be longer than PATH_MAX.
58115
58116 2005-03-27  Jim Meyering  <jim@meyering.net>
58117
58118         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
58119
58120 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
58121
58122         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
58123         "one's complement" -> "ones' complement" in comment, as per Knuth.
58124         "value of type" -> "type or expression" in comment.
58125         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
58126
58127 2005-03-26  Jim Meyering  <jim@meyering.net>
58128
58129         Comment nits.
58130         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
58131         Correct typos: s/or/of/.
58132
58133 2005-03-26  Jim Meyering  <jim@meyering.net>
58134
58135         * modules/check-include-files: Move to ../ and rename to...
58136         * check-module: ...this.
58137
58138 2005-03-25  Jim Meyering  <jim@meyering.net>
58139
58140         * modules/xvasprintf (Files): Add xalloc.h.
58141
58142 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
58143
58144         * modules/gettext (Files): config/config.rpath ->
58145         build-aux/config.rpath
58146         * modules/iconv (Files): Likewise.
58147         Problem reported by Oskar Liljeblad.
58148
58149 2005-03-23  Jim Meyering  <jim@meyering.net>
58150
58151         * modules/check-include-files: New script to check for
58152         missing dependencies, multiple includes, etc.
58153
58154         * modules/c-strtold (Depends-on): Add xalloc.
58155         * modules/c-strtod (Depends-on): Add xalloc.
58156         * modules/hash (Depends-on): Add xalloc.
58157         (Files): Remove lib/xalloc.h.
58158
58159         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
58160         * modules/userspec (Files): Add lib/inttostr.h.
58161
58162 2005-03-23  Jim Meyering  <jim@meyering.net>
58163
58164         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
58165
58166 2005-03-22  Jim Meyering  <jim@meyering.net>
58167
58168         * modules/stat-macros: New module.
58169         * modules/canonicalize, modules/euidaccess, modules/file-type,
58170         * modules/filemode, modules/lchown, modules/makepath,
58171         * modules/rmdir, modules/stat: Depend on new stat-macros module
58172         rather than listing lib/stat-macros.h manually.
58173         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
58174
58175 2005-03-22  Jim Meyering  <jim@meyering.net>
58176
58177         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
58178
58179 2005-03-22  Bruno Haible  <bruno@clisp.org>
58180
58181         * config/srclist.txt: Replace target directory 'config' with
58182         'build-aux'.
58183         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
58184         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
58185         ../build-aux/.
58186
58187 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
58188
58189         * modules/chdir-long (Depends-on): Add mempcpy.
58190
58191         * modules/acl, modules/backupfile, modules/c-strtod,
58192         modules/c-strtold, modules/canon-host, modules/canonicalize,
58193         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
58194         modules/exclude, modules/exitfail, modules/file-type,
58195         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
58196         modules/getdate, modules/getline, modules/getpagesize,
58197         modules/getpass, modules/getugroups, modules/group-member,
58198         modules/hard-locale, modules/hash, modules/human, modules/idcache,
58199         modules/inttostr, modules/long-options, modules/makepath,
58200         modules/md5, modules/memcasecmp, modules/memcoll,
58201         modules/modechange, modules/mountlist, modules/path-concat,
58202         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
58203         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
58204         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
58205         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
58206         modules/strftime, modules/strndup, modules/strverscmp,
58207         modules/timespec, modules/unlocked-io, modules/userspec,
58208         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
58209         modules/yesno:
58210         Remove lib_SOURCES line from Makefile.am section, as this is now
58211         done automatically by the corresponding Autoconf macro.
58212
58213 2005-03-21  Jim Meyering  <jim@meyering.net>
58214
58215         Changes imported from coreutils.
58216
58217         * lib/cycle-check.c: Don't include xalloc.h.
58218
58219         * lib/path-concat.c: Don't include assert.h.
58220         (path_concat): Remove assertion that would have triggered
58221         for ABASE starting with more than one slash.
58222         Reported by Andreas Schwab.
58223
58224         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
58225         properly when ABASE is an absolute file name.
58226         Correct the description of this function.
58227         Include <assert.h>.
58228         Add an assertion and a test driver.
58229         This fixes a bug introduced on 2004-07-02.
58230         Andreas Schwab reported the resulting failure of cp --parents:
58231         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
58232
58233 2005-03-21  Jim Meyering  <jim@meyering.net>
58234
58235         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
58236         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
58237
58238 2005-03-21  Jim Meyering  <jim@meyering.net>
58239         and  Paul Eggert  <eggert@cs.ucla.edu>
58240
58241         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
58242         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
58243         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
58244         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
58245         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
58246         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
58247         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
58248         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
58249         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
58250         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
58251         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
58252         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
58253         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
58254         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
58255         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
58256         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
58257         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
58258         for these modules.
58259
58260 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
58261
58262         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
58263         (which shouldn't happen), generate nothing instead of returning 0
58264         immediately, so that nstrftime (NULL, ...) doesn't return 0.
58265
58266 2005-03-16  Bruno Haible  <bruno@clisp.org>
58267
58268         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
58269         HAVE_LONGLONG_64BIT.
58270
58271 2005-03-16  Bruno Haible  <bruno@clisp.org>
58272
58273         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
58274         HAVE_LONGLONG_64BIT.
58275
58276 2005-03-16  Bruno Haible  <bruno@clisp.org>
58277
58278         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
58279         HAVE_LONGLONG_64BIT.
58280
58281 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
58282
58283         * lib/strftime.c (my_strftime): Prepend space to format so that we can
58284         reliably distinguish strftime failure from empty output on POSIX
58285         hosts.
58286
58287 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
58288
58289         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
58290         (iconv_string): Don't guess a size-zero buffer, as that might cause
58291         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
58292         result would be 'too large', where 'too large' is (heuristically)
58293         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
58294         overflow concerns.  This will prevent some unwanted malloc failures
58295         when the inputs are very large.
58296
58297 2005-03-15  Karl Berry  <karl@gnu.org>
58298
58299         * config/srclist.txt (config.rpath): from gettext.
58300         * config/config.rpath: update.
58301
58302 2005-03-15  Bruno Haible  <bruno@clisp.org>
58303
58304         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
58305         to 'negate'.
58306
58307         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
58308         variable.
58309
58310         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
58311         results.
58312
58313 2005-03-14  Simon Josefsson  <jas@extundo.com>
58314
58315         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
58316         <fx@gnu.org>.
58317
58318 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
58319
58320         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
58321         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
58322         intprops.h.
58323         * lib/strtol.c: Likewise.
58324
58325 2005-03-14  Jim Meyering  <jim@meyering.net>
58326
58327         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
58328         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
58329         to be nonzero so that we (and caller) can detect the difference
58330         between a valid zero-length expansion and an error return, even
58331         when the underlying strftime fails before writing anything into
58332         that location.
58333
58334 2005-03-14  Bruno Haible  <bruno@clisp.org>
58335
58336         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
58337         Update from GNU gettext 0.14.3.
58338
58339 2005-03-10  Jim Meyering  <jim@meyering.net>
58340
58341         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
58342
58343 2005-03-10  Jim Meyering  <jim@meyering.net>
58344
58345         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
58346         so that this module works on systems without fchdir.
58347
58348 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
58349
58350         Factor int-properties macros into a single file, except for
58351         glibc-related files.
58352         * lib/intprops.h: New file.
58353         * lib/getloadavg.c: Include it instead of limits.h.
58354         (INT_STRLEN_BOUND): Remove.
58355         * lib/human.c: Include intprops.h.
58356         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
58357         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
58358         302/1000.
58359         * lib/inttostr.h: Include intprops.h instead of limits.h.
58360         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
58361         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
58362         for consistency with intprops.h.
58363         (time_t_is_integer, twos_complement_arithmetic): Use them.
58364         * lib/sig2str.h: Include <signal.h>, intprops.h.
58365         (INT_STRLEN_BOUND): Remove.
58366         * lib/strftime.c (TYPE_SIGNED): Remove.
58367         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
58368         * lib/strtol.c: Adjust comments to match intprops.h.
58369         * lib/userspec.c: Include intprops.h.
58370         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
58371         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
58372         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
58373         instead of rolling our own expressions.
58374         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
58375
58376         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
58377         instead of int.
58378         (my_strftime): Do not mishandle years close to INT_MAX, by doing
58379         the right thing even if adding 1900 would overflow.  Similarly
58380         for tm_mon + 1 and tm_yday + 1.
58381         Make %Y always equivalent to %C%y, and similarly for %G and %g.
58382         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
58383         (DO_SIGNED_NUMBER): New macro.
58384         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
58385
58386 2005-03-07  Bruno Haible  <bruno@clisp.org>
58387
58388         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
58389
58390 2005-03-07  Bruno Haible  <bruno@clisp.org>
58391
58392         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
58393
58394 2005-03-04  Derek R. Price  <derek@ximbiot.com>
58395
58396         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
58397         (func_import): Only replace files via --import when they have actually
58398         changed.
58399
58400 2005-03-03  Derek R. Price  <derek@ximbiot.com>
58401
58402         * m4/mmap-anon.m4: New file.
58403         * m4/pagealign_alloc.m4: New file.
58404
58405 2005-03-03  Derek R. Price  <derek@ximbiot.com>
58406             Bruno Haible  <bruno@clisp.org>
58407
58408         * modules/pagealign_alloc: New file.
58409         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
58410
58411 2005-03-03  Derek R. Price  <derek@ximbiot.com>
58412             Bruno Haible  <bruno@clisp.org>
58413
58414         * lib/pagealign_alloc.h: New file.
58415         * lib/pagealign_alloc.c: New file.
58416
58417 2005-03-03  Bruno Haible  <bruno@clisp.org>
58418
58419         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
58420         Use an all-permissive copyright notice, recommended by RMS.
58421
58422 2005-03-02  Bruno Haible  <bruno@clisp.org>
58423
58424         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
58425         of AIX, the replacement has to be done only after <string.h> is
58426         included, therefore not in config.h. stpncpy.h does the replacement,
58427         and stpncpy.c uses it.
58428
58429 2005-03-02  Bruno Haible  <bruno@clisp.org>
58430
58431         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
58432         stpncpy.c uses it.
58433
58434 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58435
58436         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
58437         The workaround isn't strictly needed for POSIX conformance, and
58438         it's too much of a pain to configure and maintain.  We'll ask
58439         people to fix their kernels instead.
58440         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
58441         (NANOSLEEP_BUG_WORKAROUND): Remove.
58442         (xnanosleep): Remove the workaround.
58443
58444 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58445
58446         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
58447         Reported by Derek Price.
58448         (Include): Add "timespec.h".
58449
58450         * modules/xnanosleep (Depends-on): Remove gethrxtime.
58451
58452 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58453
58454         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
58455         to detect nanosleep bug.
58456
58457 2005-03-01  Bruno Haible  <bruno@clisp.org>
58458
58459         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
58460
58461 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
58462
58463         * modules/gethrxtime: New file.
58464         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
58465         (Depends-on): Add gethrxtime.
58466         (configure.ac): Add gl_XNANOSLEEP.
58467         (Makefile.am): Remove lib_SOURCES line.
58468
58469 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
58470
58471         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
58472         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
58473
58474 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
58475
58476         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
58477         * lib/timespec.h (gettime): Return void, since it always
58478         succeeds now.  All uses changed.
58479         * lib/gettime.c (gettime) Likewise.
58480         [HAVE_NANOTIME]: Prefer nanotime.
58481         Assume gettimeofday succeeds, as POSIX requires.
58482         Assime time () succeeds, since other code already does.
58483         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
58484         (timespec_subtract): Remove.
58485         (NANOSLEEP_BUG_WORKAROUND): New constant.
58486         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
58487         things considerably.  Use it only on GNU/Linux hosts, since the
58488         workaround shouldn't be needed elsewhere.
58489
58490 2005-02-24  Bruno Haible  <bruno@clisp.org>
58491
58492         * modules/gettext (Files): Add m4/glibc2.m4.
58493
58494 2005-02-24  Bruno Haible  <bruno@clisp.org>
58495
58496         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
58497         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
58498         * m4/progtest.m4:
58499         Update from GNU gettext 0.14.2.
58500         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
58501
58502 2005-02-24  Bruno Haible  <bruno@clisp.org>
58503
58504         * lib/localcharset.c: Update from GNU gettext 0.14.2.
58505         * lib/config.charset: Update from GNU gettext 0.14.2.
58506
58507 2005-02-24  Bruno Haible  <bruno@clisp.org>
58508
58509         * lib/gettext.h: Update from GNU gettext 0.14.2.
58510
58511 2005-02-23  Simon Josefsson  <jas@extundo.com>
58512
58513         * m4/iconvme.m4: New file.
58514
58515 2005-02-23  Jim Meyering  <jim@meyering.net>
58516
58517         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
58518         change.
58519         Thanks to Bruno Haible for catching it.
58520
58521 2005-02-22  Simon Josefsson  <jas@extundo.com>
58522
58523         * modules/iconvme: New file.
58524
58525         * MODULES.html.sh: Add iconvme.
58526
58527 2005-02-22  Simon Josefsson  <jas@extundo.com>
58528
58529         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
58530
58531 2005-02-22  Simon Josefsson  <jas@extundo.com>
58532
58533         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
58534
58535 2005-02-22  Jim Meyering  <jim@meyering.net>
58536
58537         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
58538         s/ifndef/ifdef/.
58539
58540 2005-02-20  Neil Conway  <neilc@samurai.com>
58541
58542         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
58543         returned by OSX/Darwin if the specified buffer is not large
58544         enough for the hostname.
58545
58546 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58547
58548         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
58549         pass it to _help, otherwise the latter coredumps trying to
58550         dereference state.root_argp.
58551
58552 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
58553
58554         * modules/chdir-long (Depends-on): Add memrchr.
58555         * modules/memrchr (Files): Add lib/memrchr.h.
58556         (Include): "memrchr.h".
58557
58558 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
58559
58560         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
58561
58562 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
58563
58564         * lib/memrchr.h: New file.
58565         * lib/chdir-long.c: Include it.
58566         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
58567         Don't bother including stddef.h.
58568
58569 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
58570
58571         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
58572         inclusion.
58573         Include <sys/types.h>, for dev_t.
58574         (ME_DUMMY, ME_REMOTE): Move from here....
58575         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
58576         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
58577         Dmitry V. Levin.
58578         Include mountlist.h first, to test the interface.
58579
58580 2005-01-29  Bruno Haible  <bruno@clisp.org>
58581
58582         * lib/progname.c (program_name): Initialize.
58583         Needed when linking statically on MacOS X.
58584
58585 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
58586
58587         Sync from coreutils.
58588         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
58589         (Depends-on): Add c-strtod.
58590         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
58591
58592 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
58593
58594         Sync from coreutils.
58595         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
58596
58597         Remove files that are specific to coreutils.
58598         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
58599
58600 2005-01-28  Bruno Haible  <bruno@clisp.org>
58601
58602         * modules/javacomp: New file.
58603         * MODULES.html.sh (Java): Add javacomp.
58604
58605 2005-01-28  Bruno Haible  <bruno@clisp.org>
58606
58607         * m4/javacomp.m4: New file, from GNU gettext.
58608
58609 2005-01-28  Bruno Haible  <bruno@clisp.org>
58610
58611         * lib/javacomp.sh.in: New file, from GNU gettext.
58612         * lib/javacomp.h: New file, from GNU gettext.
58613         * lib/javacomp.c: New file, from GNU gettext.
58614
58615 2005-01-26  Simon Josefsson  <jas@extundo.com>
58616
58617         * lib/gai_strerror.c: Use GPL in header.
58618
58619 2005-01-26  Bruno Haible  <bruno@clisp.org>
58620
58621         * modules/javaexec: New file.
58622         * MODULES.html.sh (Java): Add javaexec.
58623
58624 2005-01-26  Bruno Haible  <bruno@clisp.org>
58625
58626         * m4/javaexec.m4: New file, from GNU gettext.
58627
58628 2005-01-26  Bruno Haible  <bruno@clisp.org>
58629
58630         * lib/javaexec.sh.in: New file, from GNU gettext.
58631         * lib/javaexec.h: New file, from GNU gettext.
58632         * lib/javaexec.c: New file, from GNU gettext.
58633
58634 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58635
58636         * modules/lchown (Depends-on): Remove lchown.h
58637
58638 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58639
58640         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
58641         must be defined if the header file was not found, in order
58642         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
58643
58644 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58645
58646         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
58647         initializers for struct pentry_state.
58648         (__argp_error): Check return value of __asprintf
58649         (__argp_failure): Translate error message
58650
58651         * lib/argp-parse.c: Removed braces around the expansion of N_()
58652
58653 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
58654
58655         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
58656         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
58657         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
58658         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
58659         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
58660         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
58661         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
58662         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
58663         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
58664         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
58665         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
58666         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
58667         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
58668         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
58669         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
58670         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
58671         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
58672         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
58673         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
58674         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
58675         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
58676         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
58677         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
58678         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
58679         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
58680         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
58681         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
58682         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
58683         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
58684         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
58685         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
58686         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
58687         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
58688         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
58689         xstrtol.m4, xstrtoumax.m4, yesno.m4:
58690         Use an all-permissive copyright notice, recommended by RMS.
58691
58692 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
58693
58694         * modules/chdir-long (Depends-on): Remove mempcpy.
58695
58696 2005-01-21  Jim Meyering  <jim@meyering.net>
58697
58698         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
58699         same value as for Solaris 9.
58700
58701         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
58702         component length.  This included changing the parameter to be
58703         of type `char *' rather than `char const *'.
58704         * lib/chdir-long.h (chdir_long): Update prototype.
58705
58706         * lib/openat.c (fdopendir, fstatat): New functions.
58707         * lib/openat.h: Include headers required for use of DIR and struct
58708         stat.
58709         [AT_SYMLINK_NOFOLLOW]: Define.
58710         (fdopendir, fstatat): Add prototypes.
58711
58712 2005-01-21  Bruno Haible  <bruno@clisp.org>
58713
58714         * modules/classpath: New file.
58715         * MODULES.html.sh (Java): Add classpath.
58716
58717 2005-01-21  Bruno Haible  <bruno@clisp.org>
58718
58719         * lib/classpath.h: New file, from GNU gettext.
58720         * lib/classpath.c: New file, from GNU gettext.
58721
58722 2005-01-20  Simon Josefsson  <jas@extundo.com>
58723
58724         * modules/version-etc-fsf: New file.
58725
58726 2005-01-20  Simon Josefsson  <jas@extundo.com>
58727
58728         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
58729         * lib/version-etc.c: Remove version_etc_copyright.
58730         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
58731         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
58732
58733 2005-01-20  Simon Josefsson  <jas@extundo.com>
58734
58735         * lib/base64.h (isbase64): Add.
58736
58737         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
58738         using a unsigned prototype, don't inline.
58739         (base64_decode): Use it.
58740
58741 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
58742
58743         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
58744         it.
58745
58746 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
58747
58748         * lib/save-cwd.c (save_cwd): Remove code to support the case
58749         where fchdir is missing or flaky.
58750
58751 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
58752
58753         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
58754
58755 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
58756
58757         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
58758         AC_LIBSOURCES now does this.
58759         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
58760         with new ullong_max module.
58761
58762 2005-01-19  Bruno Haible  <bruno@clisp.org>
58763
58764         * modules/sh-quote: New file.
58765         * MODULES.html.sh (Executing programs): Add sh-quote.
58766
58767 2005-01-19  Bruno Haible  <bruno@clisp.org>
58768
58769         * lib/sh-quote.h: New file, from GNU gettext.
58770         * lib/sh-quote.c: New file, from GNU gettext.
58771
58772 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
58773
58774         Merge from coreutils.
58775         * m4/ullong_max.m4: New file.
58776         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
58777         (gl_MACROS): Assume localeconv exists.
58778
58779 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
58780
58781         Merge changes from coreutils, as described below in several
58782         changelogs dated today.
58783
58784         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
58785         (O_DIRECTORY): Remove; not needed here, since "." must be
58786         a directory.  All uses removed.
58787         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
58788         universal on Suns, and we also need to test for IRIX.
58789         Revamp code to use 'if' rather than '#if'.
58790         Avoid unnecessary comparison of cwd->desc to 0.
58791
58792         * lib/utimens.c (futimens): Robustify the previous patch, by checking
58793         for known valid error numbers rather than observed invalid ones.
58794
58795 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
58796
58797         * modules/ullong_max: New file.
58798
58799         * modules/chdir-long, modules/openat: New files.
58800         * modules/save-cwd (Depends-on): Depend on chdir-long.
58801         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
58802
58803 2005-01-18  Jim Meyering  <jim@meyering.net>
58804
58805         Merge from coreutils.
58806         * m4/chdir-long.m4, m4/openat.m4: New files.
58807         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
58808         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
58809         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
58810         is sane and DOES follow symlinks.  Besides, testing 20 different
58811         systems found no broken chown implementations.
58812         Prompted by a change in rsync's copy of this macro.
58813         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
58814
58815         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
58816
58817         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
58818         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
58819         NULL-means-set-to-current-time semantics.
58820         Remove temporary file immediately, rather than waiting
58821         for configure's at-exit trap code to do it.
58822
58823 2005-01-18  Jim Meyering  <jim@meyering.net>
58824
58825         * lib/version-etc.c (version_etc_copyright): Update copyright date.
58826
58827         * lib/utimens.c (futimens): Account for the fact that futimes
58828         can also fail with errno == ENOSYS or errno == ENOENT.
58829         Patch from Dmitry V. Levin.
58830
58831         Change the name of the robust chdir function from chdir to chdir_long.
58832         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
58833         (restore_cwd): Use chdir_long, not chdir.
58834         * lib/chdir-long.c: Renamed from chdir.c.
58835         * lib/chdir-long.h: Renamed from chdir.h.
58836         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
58837         Hurd.
58838
58839 2005-01-18  Bruno Haible  <bruno@clisp.org>
58840
58841         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
58842         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
58843         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
58844         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
58845         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
58846         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
58847         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
58848         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
58849         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
58850         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
58851         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
58852         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
58853         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
58854         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
58855         Use an all-permissive copyright notice, recommended by RMS.
58856
58857 2005-01-18  Bob Proulx  <bob@proulx.com>
58858
58859         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
58860         simplify offsetof() macro construct to avoid compile failure with
58861         native HP-UX 11.0 ANSI C compiler.
58862
58863 2005-01-17  Bruno Haible  <bruno@clisp.org>
58864
58865         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
58866         redundant because stpncpy.m4 takes care of it.
58867
58868 2005-01-17  Bruno Haible  <bruno@clisp.org>
58869
58870         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
58871
58872 2005-01-17  Bruno Haible  <bruno@clisp.org>
58873
58874         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
58875         used.
58876
58877 2005-01-17  Bruno Haible  <bruno@clisp.org>
58878
58879         * lib/fwriteerror.h (fwriteerror): Change specification to include
58880         fclose.
58881         * lib/fwriteerror.c: Include <stdbool.h>.
58882         (fwriteerror): At the end, close the file stream. Record whether
58883         stdout was already closed.
58884
58885 2005-01-17  Bruno Haible  <bruno@clisp.org>
58886
58887         * lib/execute.c (environ): Declare if needed.
58888         * lib/pipe.c (environ): Likewise.
58889         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
58890
58891 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58892
58893         * modules/argp: Depend on vsnprintf
58894
58895 2005-01-10  Jim Meyering  <jim@meyering.net>
58896
58897         * modules/closeout (Depends-on): Add atexit.
58898
58899 2005-01-06  Bruno Haible  <bruno@clisp.org>
58900
58901         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
58902
58903 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
58904
58905         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
58906         definitions to be after all include files, to avoid collisions.
58907         Problem reported by Bob Proulx.
58908
58909 2005-01-04  Jim Meyering  <jim@meyering.net>
58910
58911         Changes imported from coreutils.
58912         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
58913         as the mkstemp template, use a temporary directory and an
58914         8.3-friendly template to avoid trouble on systems like DJGPP.
58915         Reported by Juan M. Guerrero via Stepan Kasal.
58916         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
58917         close. Remove the temporary directory right away, rather than waiting
58918         for configure's at-exit trap code to do it.
58919         Suggestion from Stepan Kasal.
58920
58921 2005-01-01  Simon Josefsson  <jas@extundo.com>
58922
58923         * gnulib-tool: Print #include directives when --import'ing.
58924
58925 2004-12-28  Simon Josefsson  <jas@extundo.com>
58926
58927         * tests/test-base64.c: Include required header files.  Remove
58928         unused variables.
58929
58930 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
58931
58932         * modules/error (Depends-on): Remove gettext.
58933
58934 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
58935
58936         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
58937         not needed.  This removes a dependency on the gettext module.
58938         [defined _LIBC]: Do not include <libintl.h>; not needed.
58939
58940 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
58941
58942         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
58943         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
58944
58945 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
58946
58947         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
58948         HAVE_DECL_STRTOLD.
58949
58950 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58951
58952         * modules/getdate (Depends-on): Remove alloca-opt.
58953
58954 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58955
58956         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
58957
58958 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
58959
58960         * lib/argp-parse.c: Include <stddef.h>.
58961         (alignof, alignto): New macros.
58962         (parser_init): Don't assume that void * is aligned sufficiently
58963         for struct option.
58964
58965         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
58966         need to extend the stack.
58967         (YYINITDEPTH): New macro, so that the initial stack isn't overly
58968         large.
58969
58970 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
58971
58972         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
58973
58974 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
58975
58976         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
58977         (2004-10-24) change.  Apparently this was a false alarm.
58978
58979         * modules/getdate: Depend on alloca-opt, not alloca.
58980
58981 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
58982
58983         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
58984         Remove now-obsolete comment about AIX.
58985         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
58986         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
58987         (YYMAXDEPTH): New macro.
58988
58989 2004-12-18  Simon Josefsson  <jas@extundo.com>
58990
58991         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
58992
58993 2004-12-18  Bruno Haible  <bruno@clisp.org>
58994
58995         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
58996
58997 2004-12-18  Bruno Haible  <bruno@clisp.org>
58998
58999         * lib/fatal-signal.c (fatal_signals): Make non-const.
59000         (init_fatal_signals): New function.
59001         (uninstall_handlers, install_handlers): Ignore signals that were set to
59002         SIG_IGN.
59003         (at_fatal_signal): Call init_fatal_signals.
59004         (init_fatal_signal_set): Likewise. Ignore signals that were set to
59005         SIG_IGN.
59006         Reported by Paul Eggert.
59007
59008 2004-12-18  Bruno Haible  <bruno@clisp.org>
59009
59010         * doc/alloca.texi: New file.
59011         * doc/alloca-opt.texi: New file.
59012
59013 2004-12-17  Jim Meyering  <jim@meyering.net>
59014
59015         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
59016         Otherwise, install-sh could exit with improper exit status when
59017         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
59018
59019 2004-12-16  Simon Josefsson  <jas@extundo.com>
59020
59021         * tests/test-base64.c: Add license.
59022
59023 2004-12-15  Stepan Kasal  <address@hidden>
59024
59025         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
59026
59027 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
59028
59029         * modules/getcwd (Files): Add m4/d-ino.m4.
59030         Suggested by Mark D. Baushke.
59031
59032 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
59033
59034         * lib/getdate.y (textint): New member "negative".
59035         (time_zone_hhmm): New function.
59036         Expect 14 shift-reduce conflicts, not 13.
59037         (o_colon_minutes): New rule.
59038         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
59039         (yylex): Set the "negative" member of signed numbers.
59040
59041 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
59042
59043         * doc/getdate.texi (Time of day items, Time zone items):
59044         Describe new formats +00:00, UTC+00:00.
59045
59046 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
59047
59048         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
59049         spurious "-l"s.  Problem reported by Stepan Kasal.
59050
59051 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
59052
59053         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
59054         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
59055
59056 2004-12-04  Simon Josefsson  <jas@extundo.com>
59057
59058         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
59059         Vandoorselaere <yoann@prelude-ids.org>.
59060
59061 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
59062
59063         Changes imported from coreutils.
59064         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
59065         exist.
59066         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
59067
59068 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
59069
59070         Changes imported from coreutils.
59071         * lib/hard-locale.c: Assume <locale.h> exists.
59072         Include "strdup.h".
59073         (GLIBC_VERSION): New macro.
59074         (hard_locale): Assume setlocale exists.
59075         Rewrite to avoid #ifdef.
59076         Use strdup rather than malloc + strcpy.
59077         * lib/human.c: Assume <locale.h> exists.
59078         (human_readable): Assume localeconv exists.
59079
59080 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
59081
59082         * modules/hard-locale (Depends-on): Add strdup.
59083
59084 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
59085
59086         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
59087         convert T2, not T.  (Imported from libc.)
59088
59089 2004-11-30  Simon Josefsson  <jas@extundo.com>
59090
59091         * modules/restrict (License): Change to LGPL.
59092
59093 2004-11-30  Simon Josefsson  <jas@extundo.com>
59094
59095         * m4/restrict.m4: Add copyright and copying conditions.
59096
59097 2004-11-30  Simon Josefsson  <jas@extundo.com>
59098
59099         * m4/base64.m4: New file.
59100
59101 2004-11-30  Simon Josefsson  <jas@extundo.com>
59102
59103         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
59104         base64.
59105
59106         * tests/test-base64.c: New file.
59107
59108         * modules/base64: New file.
59109
59110 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
59111
59112         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
59113         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
59114
59115         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
59116
59117 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
59118
59119         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
59120         (__getcwd.c): Don't restore errno; glibc doesn't.
59121         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
59122         first, falling back to our code only if its results look suspicious.
59123         Ensure that the resulting buffer is only as large as necessary.
59124
59125         * lib/readutmp.c: Include readutmp.h first.
59126         Include <errno.h>, since readutmp.h no longer does that.
59127         * lib/readutmp.h: Don't include <errno.h>,
59128         <sys/param.h>, <time.h>; not needed to establish interface.
59129         (errno): Remove decl.
59130         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
59131         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
59132         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
59133
59134 2004-11-28  Simon Josefsson  <jas@extundo.com>
59135
59136         * lib/base64.h, base64.c: New file.
59137
59138 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
59139
59140         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
59141
59142 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
59143
59144         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
59145         (Depends-on): Remove pathmax, same.  Add mempcpy.
59146         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
59147         (Makefile.am): Append getcwd.h to lib_SOURCES.
59148         (Include): Add getcwd.h.
59149         (Maintainer): Change from Jim Meyering to "all, glibc",
59150         since getdate now uses intended-for-glibc code.
59151         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
59152         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
59153
59154 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
59155
59156         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
59157         HP's ANSI C compiler.
59158         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
59159         Declaring int functions causes warnings on some modern systems and
59160         shouldn't be needed to compile on ancient ones.
59161         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
59162         defined.
59163
59164         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
59165         with the following changes.
59166         (__set_errno): Parenthesize properly.
59167         Include <stdbool.h>.
59168         (MIN, MAX, MATCHING_INO): New macros.
59169         (__getcwd): Define with prototype, not K&R form.
59170         Use heuristics to allocate default buffer on stack if possible.
59171         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
59172         behavior, and to avoid the PATH_MAX limit when computing
59173         ../../../../...
59174         Use MATCHING_INO to compare inode number to file.
59175         Check for arithmetic overflow in size calculations.
59176         Fix bug in reallocation of dot array that caused getcwd to fail
59177         on directories nested deeper than 75.
59178         Be more careful about saving errno on error.
59179         Do not use realloc; use only free+malloc, as this is a bit
59180         more flexible and avoids a needless copy operation.
59181         Do not inspect st_dev and st_ino for symbolic links; POSIX
59182         doesn't specify the latter.
59183         Check for closedir errors.
59184         Avoid needless casts.
59185         Use "#ifdef weak_alias" around weak_alias, to be like other
59186         glibc code.
59187         The following changes to getcwd.c have effect only when used in
59188         gnulib; they have no effect inside glibc proper.
59189         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
59190         as alloca isn't used.
59191         (alloca, __alloca): Likewise.
59192         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
59193         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
59194         unconditionally, as gnulib assumes C89 or better.
59195         Do not include <sys/param.h>.
59196         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
59197         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
59198         better.
59199         (NULL) [!defined NULL]: Remove; we assume C89 or better.
59200         Include <dirent.h> in a way that is compatible with modern Autoconf.
59201         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
59202         New macros, if not already defined.
59203         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
59204         Use "_LIBC", not "defined _LIBC", for consistency.
59205         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
59206         a mempcpy module.
59207         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
59208         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
59209         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
59210         credit only to Jim Meyering and adjust the copyright dates.
59211         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
59212         <stdlib.h>, <unistd.h>, "pathmax.h".
59213         Instead, include "xgetcwd.h" (first) and "getcwd.h".
59214         (INITIAL_BUFFER_SIZE): Remove.
59215         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
59216
59217 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
59218
59219         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
59220         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
59221         Use the _ONCE methods, for efficiency.
59222         Check for fcntl.h.  In test program, include <errno.h>
59223         and <fcntl.h> if available.  Remove old K&R cruft from
59224         test program.  Check for common errors in GNU/Linux,
59225         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
59226         don't do AC_LIBOBJ, as that's getcwd.m4's job.
59227         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
59228         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
59229         name accordingly.
59230         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
59231         accommodate new getcwd.c.
59232         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
59233         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
59234         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
59235         that's all we need now.
59236
59237 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59238
59239         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
59240         argp-parse.c depends on getopt internals, that means we should
59241         always use our getopt, to be on the safe side.
59242         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
59243         order not to spoil the result of an eventual previous invocation
59244         of gl_GETOPT_SUBSTITUTE.
59245
59246 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59247
59248         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
59249         redefinition warnings. To avoid them, include the defines
59250         in `#if !defined __need_getopt ... #endif'. The only place
59251         where __getopt_argv_const is used is in definitions
59252         of getopt_long and getopt_long_only below, which are as well
59253         protected by `#ifndef __need_getopt'.
59254         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
59255         __need_getopt after including <stdio.h> and <unistd.h> These
59256         headers might have defined it.
59257
59258 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
59259
59260         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
59261
59262 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
59263
59264         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
59265         (futimens): New function, which uses futimes if available.
59266         (futimens, utimens): Support timespec==NULL, with same semantics
59267         as utime and utimens.
59268         * lib/utimens.h (futimens): New decl.
59269
59270 2004-11-23  Jim Meyering  <jim@meyering.net>
59271
59272         * lib/getopt_.h: Remove trailing blanks.
59273
59274 2004-11-23  Jim Meyering  <jim@meyering.net>
59275
59276         * lib/__fpending.c: Add comment.
59277
59278 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
59279
59280         * modules/canonicalize (Depends-on): Add xreadlink.
59281         Problem reported by James Youngman.
59282
59283 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
59284
59285         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
59286         New macros.
59287         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
59288         optopt): Use them instead of invoking ## directly; otherwise, the
59289         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
59290
59291 2004-11-19  Bruno Haible  <bruno@clisp.org>
59292
59293         * lib/strtok_r.c: Move comments from here...
59294         * lib/strtok_r.h: ... to here.
59295
59296 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
59297
59298         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
59299         implementations that mishandle size_t overflow.
59300
59301 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
59302
59303         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
59304         might fail.  Problem reported by Yoann Vandoorselaere.
59305         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
59306         implementations that mishandle size_t overflow.
59307
59308 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59309
59310         * modules/canon-host (Depends-on): Add strdup.
59311
59312 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59313
59314         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
59315
59316 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59317
59318         * lib/canon-host.c: Include "strdup.h".
59319         (canon_host): Use getaddrinfo if available, so that IPv6 works.
59320         Use strdup instead of malloc/strcpy to duplicate strings.
59321
59322         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
59323         (human_space_before_unit): New constant.
59324         * lib/human.c (human_readable): Support it.
59325
59326         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
59327         (xgetcwd): Set errno correctly when failing.
59328         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
59329         the failure is actually due to a PATH_MAX problem.
59330
59331         Further getopt changes to make it more likely that glibc will
59332         buy the changes back.
59333         * lib/getopt.c (POSIXLY_CORRECT): New constant.
59334         (getopt): Use it, so to preserve glibc semantic
59335         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
59336         when compiling for libc.
59337         * lib/getopt_.h (__getopt_argv_const): Bring it back.
59338         (getopt_long, getopt_long_only): Use it.
59339
59340         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
59341         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
59342         (getopt): Argv is now char * const *, as per standard.
59343         (_getopt_internal_r, _getopt_internal): Argv is now char **,
59344         not char *__getopt_argv_const *.
59345         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
59346         _getopt_long_only_r): Likewise.
59347         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
59348         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
59349         _getopt_long_r, _getopt_long_only_r): Likewise.
59350         * lib/getopt_.h (__getopt_argv_const): Remove.
59351         (getopt): Argv is now char * const *, as per standard.
59352
59353         * lib/getdate.y (tORDINAL): New token.
59354         (day, relunit): Allow it for relative times.
59355         (relative_time_table): Use tORDINAL for ordinals.
59356
59357 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
59358
59359         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
59360         Document that "second" isn't allowed as an ordinal number.
59361
59362 2004-11-16  Jim Meyering  <jim@meyering.net>
59363
59364         * modules/closeout (Depends-on): Add fpending.
59365
59366 2004-11-15  Jim Meyering  <jim@meyering.net>
59367
59368         * lib/closeout.c: Include "__fpending.h" once again.
59369         Include <stdbool.h>.
59370         (close_stdout): Don't fail just because stdout was closed initially,
59371         since some programs don't write to stdout in the normal course of
59372         operation (other than --version and --help), and we don't want this
59373         function to make e.g. `touch file >&-' fail.
59374         But do fail if it was closed and someone has tried to write to it.
59375         E.g., `printf foo >&-' must fail.
59376
59377 2004-11-13  Jim Meyering  <jim@meyering.net>
59378
59379         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
59380
59381 2004-11-12  Simon Josefsson  <jas@extundo.com>
59382
59383         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
59384         small doc fix is still pending.
59385
59386 2004-11-11  Simon Josefsson  <jas@extundo.com>
59387
59388         * modules/strtok_r: New file.
59389
59390         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59391         strtok_r.
59392
59393 2004-11-11  Simon Josefsson  <jas@extundo.com>
59394
59395         * m4/strtok_r.m4: New file.
59396
59397         * m4/getopt.m4: Replace opterr.
59398
59399 2004-11-11  Simon Josefsson  <jas@extundo.com>
59400
59401         * lib/strtok_r.h, strtok_r.c: New file.
59402
59403 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
59404
59405         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
59406         of replacing opterr, getopt, etc.  This should handle the
59407         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
59408
59409 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
59410
59411         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
59412         we can stop lying to compilers about the constness of argv when we
59413         are compiled outside glibc.
59414         (getopt, getopt_long, getopt_long_only): Use it.
59415         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
59416         _getopt_internal, getopt): Likewise.
59417         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
59418         _getopt_long_only_r): Likewise.
59419         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
59420         _getopt_long_r, _getopt_long_only_r): Likewise.
59421
59422         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
59423         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
59424         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
59425         the other external symbols.
59426         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
59427         declaration, since the above renaming now works around collisions.
59428
59429 2004-11-11  Jim Meyering  <jim@meyering.net>
59430
59431         * lib/linebreak.c: Remove trailing blanks.
59432         * lib/alloca_.h: Likewise.
59433         * lib/acosl.c: Likewise.
59434         * lib/euidaccess.c: Likewise.
59435         * lib/allocsa.h: Likewise.
59436
59437 2004-11-10  Simon Josefsson  <jas@extundo.com>
59438
59439         * m4/getaddrinfo.m4: New file.
59440
59441 2004-11-10  Simon Josefsson  <jas@extundo.com>
59442
59443         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
59444
59445 2004-11-10  Simon Josefsson  <jas@extundo.com>
59446
59447         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59448         getaddrinfo.
59449
59450         * modules/getaddrinfo: New file.
59451
59452 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
59453
59454         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
59455
59456 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
59457
59458         * lib/mktime.c (SHR): New macro, which is a portable
59459         substitute for >> that should work even on Crays.
59460         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
59461         Problem reported by Mark D. Baushke in
59462         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
59463         * lib/getdate.y (SHR): Likewise.
59464         (tm_diff): Use it.
59465         * lib/strftime.c (SHR): Likewise.
59466         (tm_diff): Use it.
59467         * lib/quotearg.c (struct quoting_options): Use unsigned int for
59468         quote_these_too, so that right shifts are well defined.  All uses
59469         changed.
59470
59471 2004-11-10  Jim Meyering  <jim@meyering.net>
59472
59473         Ensure that no close failure goes unreported.
59474         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
59475         return early when it seems there's nothing to flush.
59476         Don't include __fpending.h.
59477
59478 2004-11-10  Jim Meyering  <jim@meyering.net>
59479
59480         * modules/closeout (Depends-on): Remove fpending.
59481
59482 2004-11-10  Jim Meyering  <jim@meyering.net>
59483
59484         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
59485
59486 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
59487
59488         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
59489         gl_FUNC_STRFTIME.
59490         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
59491         and AC_REQUIRE when possible, to avoid duplicate checks.
59492         Check for <wchar.h>.
59493
59494 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
59495
59496         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
59497
59498 2004-11-09  Bruno Haible  <bruno@clisp.org>
59499
59500         * m4/sockpfaf.m4: New file.
59501
59502 2004-11-05  Bruno Haible  <bruno@clisp.org>
59503
59504         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
59505         Reported by Mark D. Baushke <mdb@cvshome.org>.
59506
59507 2004-11-04  Bruno Haible  <bruno@clisp.org>
59508
59509         2004-09-11  Bruno Haible  <bruno@clisp.org>
59510                 * allocsa.valgrind: New file.
59511         2004-02-06  Bruno Haible  <bruno@clisp.org>
59512                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
59513                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
59514                 Reported by Christopher Seip <chris.seip@hp.com>.
59515
59516 2004-11-04  Bruno Haible  <bruno@clisp.org>
59517
59518         * modules/allocsa (Files): Add lib/allocsa.valgrind.
59519         (Makefile.am): Distribute it.
59520
59521 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
59522
59523         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
59524         with errno == ERANGE if the buffer is too small.
59525         Problem reported by Mark D. Baushke.
59526
59527 2004-11-03  Albert Chin  <china@thewrittenword.com>
59528             Paul Eggert  <eggert@cs.ucla.edu>
59529
59530         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
59531         equivalent, substitute $ac_type for equivalent type rather than
59532         blindly using uint32_t *always* which won't work if uint32_t is not
59533         available.  Define _UINT32_T to work around typedef of uint32_t if
59534         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
59535         2.5.1.
59536
59537 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
59538
59539         * m4/jm-macros.m4: Sync from coreutils.
59540         (gl_MACROS): Check for mbrlen, for pathchk.
59541         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
59542
59543 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
59544
59545         * lib/xreadlink.c (MAXSIZE): New macro.
59546         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
59547         size does not exceed MAXSIZE.  Avoid cast.
59548         As suggested by Mark D. Baushke in
59549         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
59550         if readlink fails with buffer size just under MAXSIZE, try again
59551         with MAXSIZE.
59552
59553 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
59554
59555         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
59556
59557 2004-11-02  Derek R. Price  <derek@ximbiot.com>
59558         and  Paul Eggert  <eggert@cs.ucla.edu>
59559
59560         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
59561         (get_date): Overparenthesize to avoid GCC warning.
59562
59563 2004-11-02  Bruno Haible  <bruno@clisp.org>
59564
59565         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
59566         returns void.
59567
59568 2004-11-02  Bruno Haible  <bruno@clisp.org>
59569
59570         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
59571         function returns void.
59572
59573 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
59574
59575         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
59576         fflush_unlocked, flockfile, funlockfile, funlockfile,
59577         fputs_unlocked, putc_unlocked.
59578
59579 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
59580
59581         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
59582         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
59583         already declared.
59584
59585 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
59586
59587         * modules/getdate (Files): Add doc/getdate.texi.
59588         (Depends-on): Add setenv, xalloc.
59589
59590 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
59591
59592         * lib/getdate.y: Add support for TZ="foo" within a date string.
59593         Fix some bugs near time_t boundaries.  Reject dates with
59594         out-of-range components, e.g., "Sept 31".
59595         Include <stdlib.h>, "setenv.h", "xalloc.h".
59596         (ISDIGIT_LOCALE): Remove; unused.
59597         Note that the TZ and time functions used here are not reentrant.
59598         (mktime_ok, get_tz): New functions.
59599         (TZBUFSIZE): New constant.
59600         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
59601         This requires that we sometimes generate our own TZ="XXX..." setting.
59602
59603 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
59604
59605         * doc/getdate.texi: New file, from coreutils with modifications for
59606         the new TZ parsing.
59607
59608 2004-10-27  Derek R. Price  <derek@ximbiot.com>
59609
59610         * lib/mktime.c (not_equal_tm): Remove redundant check.
59611
59612 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59613
59614         * modules/regex (lib_SOURCES): Add regex.c.
59615         Reported by James Youngman in
59616         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
59617
59618 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
59619
59620         * lib/getdate.y: Use Bison 1.875 features, and some minor
59621         code cleanups.  This change does not affect semantics.
59622         Don't include <stdlib.h>; no longer needed.
59623         Don't include unlocked-io.h; only the "#if TEST" code uses
59624         stdio, and performance isn't crucial there.
59625         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
59626         Bison 1.875 features as described below.
59627         All uses of "PC." replaced by "pc->".
59628         (YYSTYPE): Add a forward declaration.
59629         (yylex, yyerror): Use full prototypes in forward decls.
59630         Use "%pure-parser" rather than obsolescent "%pure_parser".
59631         Use %parse-param and %lex-param instead of obsolescent
59632         YYPARSE_PARAM and YYLEX_PARAM.
59633         (meridian_table, month_and_day_table, time_units_table,
59634         relative_time_table, time_zone_table, military_table,
59635         lookup_zone, lookup_word, get_date):
59636         Use NULL instead of 0 where appropriate.
59637         (to_hour): Avoid abort (), to avoid a dependency on
59638         stdlib.h.
59639         (yyerror, yylex): Now accepts parser_control * arg.
59640         (main) [TEST]: Use '\0' rather than 0 for char.
59641
59642 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
59643
59644         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
59645
59646 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
59647
59648         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
59649         It's now the caller's responsibility to handle the case where
59650         !HAVE_GETPAGESIZE && !defined getpagesize.
59651
59652         * lib/mktime.c (leapyear): Arg is long int, not int.
59653
59654 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
59655
59656         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
59657
59658 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
59659
59660         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
59661         missing.  Problem reported by James Youngman.
59662
59663 2004-10-16  Simon Josefsson  <jas@extundo.com>
59664
59665         * gnulib-tool: Fix comments.  Fix parse problem.
59666         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
59667
59668 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
59669
59670         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
59671         implementation of getopt_long.  Problem reported by Alexander Taler in:
59672         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
59673
59674 2004-10-15  Bruno Haible  <bruno@clisp.org>
59675
59676         * gnulib-tool: Untabify. Initialize supplied_libname.
59677         (func_usage): More homogenous output.
59678         (func_modules_transitive_closure, func_modules_to_filelist,
59679         func_emit_lib_Makefile_am): New functions.
59680         (func_import): New function, extracted from big case statement. Use
59681         func_get_license, func_modules_transitive_closure,
59682         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
59683         opt_lgpl. Don't use test -a, as it's not portable.
59684         (func_create_testdir): Use func_modules_transitive_closure,
59685         func_modules_to_filelist, func_emit_lib_Makefile_am.
59686
59687 2004-10-15  Bruno Haible  <bruno@clisp.org>
59688
59689         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
59690
59691 2004-10-15  Bruno Haible  <bruno@clisp.org>
59692
59693         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
59694         the portions belonging to each module.
59695         Suggested by Derek Robert Price <derek@ximbiot.com>.
59696
59697 2004-10-12  Simon Josefsson  <jas@extundo.com>
59698
59699         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
59700         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
59701         to real functions.
59702
59703 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59704
59705         * modules/vsnprintf: New file.
59706
59707 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59708
59709         * m4/vsnprintf.m4: New file.
59710
59711 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59712
59713         * lib/vsnprintf.h: New file.
59714         * lib/vsnprintf.c: New file.
59715
59716 2004-10-11  Bruno Haible  <bruno@clisp.org>
59717
59718         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
59719         vsnprintf.
59720
59721 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
59722
59723         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
59724
59725 2004-10-07  Bruno Haible  <bruno@clisp.org>
59726
59727         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
59728         fits into the provided buffer.
59729
59730 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
59731
59732         * lib/diacrit.c, diacrit.h: Add GPL notice.
59733
59734         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
59735         notice.
59736         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
59737         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
59738         This avoids a potential constant-folding bug.
59739
59740 2004-10-05  Bruno Haible  <bruno@clisp.org>
59741
59742         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
59743         for the declaration of strsep.
59744
59745 2004-10-05  Bruno Haible  <bruno@clisp.org>
59746
59747         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
59748
59749 2004-10-04  Simon Josefsson  <jas@extundo.com>
59750
59751         * modules/memmem: New file.
59752         * tests/test-memmem.c: New file.
59753         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
59754
59755 2004-10-04  Simon Josefsson  <jas@extundo.com>
59756
59757         * m4/memmem.m4: New file.
59758
59759 2004-10-04  Simon Josefsson  <jas@extundo.com>
59760
59761         * lib/memmem.h: New file.
59762         * lib/memmem.c: New file, taken from glibc.
59763
59764 2004-10-04  Simon Josefsson  <jas@extundo.com>
59765
59766         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
59767         '#ifdef USE_UNLOCKED_IO'.
59768
59769 2004-10-04  Simon Josefsson  <jas@extundo.com>
59770
59771         * config/srclist.txt: Add memmem from glibc.
59772
59773 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
59774
59775         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
59776
59777         * modules/argmatch, modules/argp, modules/closeout, modules/error,
59778         modules/exclude, modules/getdate, modules/getline,
59779         modules/getndelim2, modules/getpass, modules/getpass-gnu,
59780         modules/getusershell, modules/linebuffer, modules/md5,
59781         modules/mountlist, modules/posixtm, modules/readtokens,
59782         modules/readutmp, modules/regex, modules/sha1,
59783         modules/version-etc, modules/yesno:
59784         Remove dependency on unlocked-io.
59785
59786 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
59787
59788         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
59789
59790         * m4/unlocked-io.m4: Add copyright notice.
59791         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
59792
59793 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
59794
59795         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
59796         * lib/xmalloc.c (xmemdup): Likewise.
59797         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
59798         XFREE): Remove these long-obsolescent macros.
59799         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
59800         * lib/xstrdup.c: Remove.
59801
59802         * lib/regex.c (re_comp): Cast gettext return value to char *,
59803         Problem reported by Martin Neitzel via Mark D. Baushke.
59804
59805 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
59806
59807         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
59808         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
59809         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
59810         regex.c, sha1.c, version-etc.c, yesno.c:
59811         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
59812         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
59813         the includer's responsibility.
59814
59815         Sync from coreutils.
59816
59817         * lib/modechange.c (mode_compile): Don't decrement a pointer that
59818         points to the start of a string, as the C Standard says the
59819         resulting behavior is undefined.
59820
59821         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
59822         simple -> simple_backups, numbered_existing ->
59823         numbered_existing_backups, numbered -> numbered_backups
59824         to avoid shadowing problems.  All uses changed.
59825         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
59826         * lib/backupfile.c (check_extension, numbered_backup):
59827         Rename locals to avoid shadowing 'basename'.
59828         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
59829         once.
59830
59831         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
59832         * lib/.cvsignore: Add getopt.h.
59833
59834 2004-10-04  Bruno Haible  <bruno@clisp.org>
59835
59836         * modules/README: New file.
59837         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
59838         not a module.
59839
59840 2004-10-02  Jim Meyering  <jim@meyering.net>
59841
59842         * lib/dirfd.h, getpagesize.h: Add copyright notice.
59843
59844 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59845
59846         * modules/strsep: New file.
59847
59848 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59849
59850         * m4/strsep.m4: New file.
59851
59852 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59853
59854         * lib/strsep.h: New file.
59855         * lib/strsep.c: New file.
59856
59857 2004-10-01  Simon Josefsson  <jas@extundo.com>
59858
59859         * lib/snprintf.c (snprintf): Handle size==0.
59860
59861 2004-10-01  Simon Josefsson  <jas@extundo.com>
59862             Bruno Haible  <bruno@clisp.org>
59863
59864         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
59865         (snprintf): Declare 'args'.
59866
59867 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
59868
59869         * lib/snprintf.c: Remove comments as to why each header is needed.
59870
59871 2004-10-01  Bruno Haible  <bruno@clisp.org>
59872
59873         * MODULES.html.sh: Add strsep.
59874
59875 2004-09-30  Simon Josefsson  <jas@extundo.com>
59876
59877         * modules/snprintf: New file.
59878
59879 2004-09-30  Simon Josefsson  <jas@extundo.com>
59880
59881         * m4/snprintf.m4: New file.
59882
59883 2004-09-30  Simon Josefsson  <jas@extundo.com>
59884
59885         * lib/snprintf.h, lib/snprintf.c: New files.
59886
59887 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
59888
59889         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
59890         (hol_entry_help): Never translate an empty string.
59891         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
59892         * lib/argp.h (OPTION_NO_TRANS): New option.
59893
59894 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
59895
59896         * modules/argp (Maintainer): Replace Simon Josefsson
59897         by Sergey Poznyakoff.
59898
59899 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
59900
59901         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
59902         changes merged back into glibc.
59903
59904 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
59905
59906         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
59907
59908 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
59909
59910         * lib/xvasprintf.c: Include xalloc.h.
59911         (xvasprintf): Use xalloc_die, not xmalloc_die.
59912
59913 2004-09-29  Bruno Haible  <bruno@clisp.org>
59914
59915         * modules/alloca-opt: New file, derived from modules/alloca.
59916         * modules/allocsa: Depend on alloca-opt instead of alloca.
59917         * modules/setenv: Likewise.
59918         * modules/vasnprintf: Likewise.
59919         * MODULES.html.sh: Add alloca-opt.
59920
59921 2004-09-28  Simon Josefsson  <jas@extundo.com>
59922
59923         * gnulib-tool: New parameter --lgpl, to asseert that modules are
59924         LGPL, and to replace license template from GPL to LGPL.
59925
59926 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
59927
59928         * modules/dummy: Change license to LGPL.
59929
59930 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
59931
59932         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
59933
59934 2004-09-24  Simon Josefsson  <jas@extundo.com>
59935
59936         * modules/minmax (License): Change from GPL to LGPL.
59937
59938 2004-09-23  Simon Josefsson  <jas@extundo.com>
59939
59940         * gnulib-tool (--import): Typo.
59941
59942 2004-09-23  Simon Josefsson  <jas@extundo.com>
59943
59944         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
59945
59946 2004-09-22  Bruno Haible  <bruno@clisp.org>
59947
59948         * modules/*: Add 'License' field.
59949         * gnulib-tool: Accept --extract-license option.
59950         (func_get_license): New function.
59951
59952 2004-09-21  Bruno Haible  <bruno@clisp.org>
59953
59954         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
59955         Reported by Simon Josefsson.
59956
59957 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
59958
59959         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
59960         gl_AC_TYPE_LONG_LONG.
59961
59962 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
59963
59964         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
59965
59966 2004-09-18  Simon Josefsson  <jas@extundo.com>
59967         and  Paul Eggert  <eggert@cs.ucla.edu>
59968
59969         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
59970         calls with autoreconf.  Define GL_LIB.
59971
59972 2004-09-14  Karl Berry  <karl@gnu.org>
59973
59974         * config/srclist.txt: unsync setenv.c, sigh.
59975
59976 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
59977
59978         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
59979         Problem reported by Bruno Haible in:
59980         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
59981
59982 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
59983
59984         * config/srclist.txt: Comment out argp-pvh.c.
59985
59986 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
59987
59988         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
59989         in case some system header has #define'd it.  Problem reported by
59990         Soeren D. Schulze in
59991         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
59992
59993 2004-09-09  Karl Berry  <karl@gnu.org>
59994
59995         * regex.[ch]: delete from the root.  These were supposed to be
59996                 synced with emacs cvs, but this has not happened for about
59997                 a year, and anyway nothing else uses emacs regex.[ch].
59998                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
59999                 lib/regex[.ch] is untouched.
60000
60001 2004-09-09  Bruno Haible  <bruno@clisp.org>
60002
60003         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
60004
60005 2004-09-09  Bruno Haible  <bruno@clisp.org>
60006
60007         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
60008         modifications.
60009         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
60010
60011 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
60012
60013         * modules/xvasprintf: New file.
60014         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
60015
60016 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
60017
60018         * lib/xvasprintf.h: New file.
60019         * lib/xvasprintf.c: New file.
60020         * lib/xasprintf.c: New file.
60021
60022 2004-09-08  Bruno Haible  <bruno@clisp.org>
60023
60024         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
60025
60026 2004-09-08  Bruno Haible  <bruno@clisp.org>
60027
60028         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
60029         length is > INT_MAX.
60030         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
60031         more.
60032
60033 2004-09-08  Bruno Haible  <bruno@clisp.org>
60034
60035         * lib/stdint_.h: New file, taken from GNU clisp.
60036
60037 2004-09-08  Bruno Haible  <bruno@clisp.org>
60038             Oskar Liljeblad  <oskar@osk.mine.nu>
60039
60040         * modules/stdint: New file.
60041         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
60042
60043 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60044
60045         Import from coreutils.
60046         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
60047         strings on unbounded length.  alloca's performance benefits aren't
60048         that important here.
60049         (V_STRDUP): Remove.
60050         (parse_with_separator): New function, with most of the internals
60051         of the old parse_user_spec.  Allow user to omit both user and group,
60052         for compatibility with FreeBSD.
60053         Clone only the user name, not the entire spec.
60054         Do not set *uid, *gid unless entirely successful.
60055         Avoid memory leak in some failing cases.
60056         Fix regression for USER.GROUP reported by Dmitry V. Levin in
60057         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
60058         (parse_user_spec): Rewrite to use parse_with_separator.
60059
60060 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60061
60062         * modules/userspec: Don't depend on alloca.
60063
60064 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
60065
60066         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
60067
60068 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
60069
60070         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
60071         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
60072         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
60073
60074 2004-08-16  Simon Josefsson  <jas@extundo.com>
60075
60076         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
60077         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
60078         Add --dry-run for --import.
60079         Let user provided command line parameters override configure.ac
60080         settings.
60081
60082 2004-08-12  Simon Josefsson  <jas@extundo.com>
60083
60084         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
60085         as discussed with Paul Eggert in threads rooted at
60086         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
60087         and
60088         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
60089         Before, the test was empty, and relied on ELIDE_CODE in source
60090         code.)
60091         (gl_PREREQ_GETOPT): New macro.
60092         (gl_GETOPT): Use them.
60093
60094 2004-08-12  Simon Josefsson  <jas@extundo.com>
60095
60096         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
60097         * lib/getopt_.h: Renamed from getopt.h.
60098
60099 2004-08-12  Simon Josefsson  <jas@extundo.com>
60100
60101         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
60102         Change default library name from libfoo to libgnu.
60103         Now, if you have a configure.ac that says:
60104                 gl_SOURCE_BASE(gl)
60105                 gl_M4_BASE(gl/m4)
60106                 gl_MODULES(error getopt etcetera)
60107                 gl_INIT
60108         you can import all you need by running:
60109                 ../gnulib/gnulib-tool --import
60110
60111         * modules/getopt (Files): Rename getopt.h to getopt_.h.
60112         (Makefile.am): Rewrite, use logic from argz.
60113         (Include): Use <getopt.h> instead of "getopt.h".
60114
60115 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
60116
60117         * modules/argp (Files): Add m4/unlocked-io.m4.
60118         (Depends-on): Add extensions.
60119
60120 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
60121
60122         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
60123         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
60124         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
60125         Check for program_invocation_name, program_invocation_short_name,
60126         flockfile, funlockfile, features.h, _getopt_long_only_r.
60127
60128 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
60129
60130         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
60131         its complicated substitute.
60132         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
60133         and program_invocation_name.
60134         (__argp_basename) [!_LIBC]: Remove; the only use was
60135         replaced by its body.
60136         (__argp_short_program_name): Change condition from
60137         !defined __argp_short_program_name to
60138         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
60139         to match argp-namefrob.h.
60140         (__argp_failure): Don't assume strerror_r returns char *.
60141         * lib/argp-parse.c (N_): Define unconditionally.
60142         (argp_default_options): Fill out initializers with 0 to avoid
60143         gcc warnings.
60144
60145 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
60146
60147         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
60148         getopt1.c.
60149
60150 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
60151
60152         Merge from coreutils.
60153
60154         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
60155
60156         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
60157         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
60158
60159 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
60160
60161         Merge from coreutils.
60162
60163         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
60164         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
60165         for Reliant Unix 5.43.
60166
60167         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
60168         (union fooround): Use uintmax_t, not long int.
60169         The rest is a merge from libc:
60170         [defined _LIBC]: Include <shlib-compat.h>.
60171         (_obstack) [defined _LIBC]: Remove after 2.3.4.
60172
60173         * lib/settime.c (settime): Recode to avoid warning with
60174         Sun Forte C 6U2.
60175
60176         * lib/strverscmp.c: Convert to UTF-8.
60177
60178 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
60179
60180         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
60181         m4/uintmax_t.m4.
60182
60183 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
60184
60185         * modules/xalloc-die: New file.
60186         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
60187
60188         * modules/md5 (Files): Add m4/uint32_t.m4.
60189         * modules/sha1: Renamed from modules/sha.
60190         (Files):
60191         Rename lib/sha.h to lib/sha1.h.
60192         Rename lib/sha.c to lib/sha1.c.
60193         Rename m4/sha.m4 to m4/sha1.m4.
60194         (lib_SOURCES): Likewise.
60195         (configure.ac): Rename gl_SHA to gl_SHA1.
60196         (Include): sha.h -> sha1.h.
60197
60198 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
60199
60200         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
60201         * m4/sha1.m4: Renamed from sha.m4.
60202         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
60203
60204 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
60205
60206         * lib/obstack.h (obstack_empty_p):
60207         Don't assume that chunk->contents is suitably aligned.
60208         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
60209         Likewise. Problem reported by Benno in
60210         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
60211
60212         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
60213         readable.  This could be improved further but it'd take some work.
60214
60215 2004-08-08  Simon Josefsson  <jas@extundo.com>
60216
60217         * modules/xgethostname (Depends-on): Remove exit and error (not
60218         used).
60219
60220         * modules/getpass-gnu: Add getpass.h.
60221         (Depends-on): Add stdbool.
60222         * modules/getpass: Add getpass.h.
60223
60224 2004-08-08  Simon Josefsson  <jas@extundo.com>
60225
60226         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
60227         Check getpass declaration.
60228
60229 2004-08-08  Simon Josefsson  <jas@extundo.com>
60230
60231         * lib/xgethostname.c: Don't include error.h (not used).
60232
60233         * lib/getpass.h: Add.
60234         * lib/getpass.c: Include getpass.h first.
60235
60236 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
60237
60238         * lib/xalloc-die.c: New file.
60239         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
60240         All uses removed.
60241         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
60242         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
60243         xalloc-die.c.
60244         (_, N_, xalloc_die): Move to xalloc-die.c.
60245         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
60246         so that we needn't mess with xalloc_msg_memory_exhausted.
60247
60248         * lib/sha1.h: Renamed from sha.h.
60249         (SHA1_H): Renamed from _SHA_H.
60250         (sha1_ctx): Renamed from sha_ctx.
60251         (sha1_init_ctx): Renamed from sha_init_ctx.
60252         (sha1_process_block): Renamed from sha_process_block.
60253         (sha1_process_bytes): Renamed from sha_process_bytes.
60254         (sha1_finish_ctx): Renamed from sha_finish_ctx.
60255         (sha1_read_ctx): Renamed from sha_read_ctx.
60256         (sha1_stream): Renamed from sha_stream.
60257         (sha1_buffer): Renamed from sha_buffer.
60258         * lib/sha1.c: Likewise; renamed from sha.c.
60259         Do not include <sys/types.h>.
60260         Include <stddef.h> rather than <stdlib.h>.
60261
60262 2004-08-08  Bruno Haible  <bruno@clisp.org>
60263
60264         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
60265         FILESYSTEM_PREFIX_LEN.
60266         * lib/progreloc.c: Likewise.
60267         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
60268
60269 2004-08-06  Simon Josefsson  <jas@extundo.com>
60270
60271         * modules/progname (Depends-on): Don't depend on stdbool.
60272
60273 2004-08-06  Simon Josefsson  <jas@extundo.com>
60274
60275         * modules/getsubopt: New file.
60276         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60277         getsubopt.
60278
60279 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
60280
60281         More merge from coreutils.
60282
60283         * m4/utimens.m4, m4/utimecmp.m4: New files.
60284         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
60285         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
60286         prereq.m4, sha.m4: Import changes from coreutils.
60287
60288 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
60289
60290         More merge from coreutils.
60291         * modules/raise, modules/readtokens0, modules/utimens:
60292         * modules/utimecmp, module/xnanosleep: New files.
60293         * modules/strftime: Add lib/strftime.h.
60294         Change include from <time.h> to "strftime.h".
60295         * modules/yesno: Add lib/yesno.h.
60296         * modules/backupfile: Remove lib/addext.c.
60297         * modules/euidaccess: Add stat-macros.h.
60298         * modules/canonicalize, modules/euidaccess,
60299         modules/filemode, modules/lchown, modules/makepath,
60300         modules/rmdir, modules/stat: Likewise.
60301
60302 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
60303
60304         Merge from tar.
60305         * lib/argp-help.c (make_hol, hol_append): Don't assume that
60306         SIZE_MAX is a valid preprocessor constant.
60307         (__argp_basename): Change from "#ifndef _LIBC"
60308         to "#ifndef __argp_short_program_name", so that
60309         we don't compile these functions for tar.
60310
60311         More merges from coreutils.
60312         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
60313         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
60314         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
60315         * lib/addext.c: Remove; no longer needed.
60316         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
60317         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
60318         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
60319         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
60320         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
60321         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
60322         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
60323         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
60324         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
60325         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
60326         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
60327         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
60328         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
60329         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
60330         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
60331         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
60332         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
60333         Import changes from coreutils.
60334
60335 2004-08-05  Simon Josefsson  <jas@extundo.com>
60336
60337         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
60338
60339 2004-08-05  Simon Josefsson  <jas@extundo.com>
60340
60341         * m4/getsubopt.m4: New file.
60342
60343 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
60344
60345         Merge from coreutils.
60346
60347         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
60348         * m4/getcwd-path-max.m4: New files.
60349
60350         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
60351         FILESYSTEM_PREFIX_LEN ->
60352         FILE_SYSTEM_PREFIX_LEN.
60353         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
60354         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
60355         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
60356         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
60357
60358         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
60359         prerequisite modules now handle the DOS stuff.
60360         Don't check for unistd.h.
60361
60362 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
60363
60364         Merge from coreutils.
60365
60366         * lib/.gdb-history: Remove; this doesn't belong here.
60367
60368         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
60369         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
60370         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
60371         * lib/getcwd.c: New files.
60372
60373         * lib/dirname.h: Include <stdbool.h>.
60374         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
60375         for consistency with POSIX terminology.  All uses changed.
60376         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
60377         (strip_trailing_slashes): Use bool for booleans.
60378         * lib/stripslash.c (strip_trailing_slashes): Likewise.
60379
60380         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
60381         sometimes returns a positive errno value even when it succeeds.
60382         (print_errno_message) [!LIBC]: Fall back on strerror if
60383         __strerror_r fails.
60384
60385         * lib/path-concat.c (mempcpy): Don't define if a system header defines
60386         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
60387         (longest_relative_suffix): New function.
60388         (path_concat): Use it.  Assume first argument is not NULL.
60389         Port to DOS.  Omit redundant separators.
60390         Report an error instead of returning NULL.
60391         Use mempcpy instead of memcpy.
60392         (xpath_concat): Remove: not declared or used.
60393
60394         * lib/same.h: Include <stdbool.h>
60395         (same_name): Return bool, not int.
60396         * lib/same.c (same_name): Likewise.
60397         (errno): Don't declare; we assume C89 or better now.
60398
60399         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
60400         if not already defined.
60401
60402         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
60403         * lib/dup-safer.c (errno): Likewise.
60404
60405 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
60406
60407         Merge from coreutils.
60408         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
60409         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
60410         * modules/path-concat: Don't depend on strdup.
60411
60412 2004-08-03  Simon Josefsson  <jas@extundo.com>
60413
60414         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
60415         * lib/progname.h: Don't include stdbool.h.
60416
60417 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
60418
60419         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
60420         * MODULES.html.sh (func_all_modules): Remove fatal.
60421
60422 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
60423
60424         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
60425
60426 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
60427
60428         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
60429         working.
60430
60431 2004-08-02  Simon Josefsson  <jas@extundo.com>
60432
60433         * lib/getsubopt.h: New file, with comments from Bruno Haible.
60434         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
60435         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
60436
60437 2004-08-01  Simon Josefsson  <jas@extundo.com>
60438
60439         * lib/xgetdomainname.c: Include stdlib.h, for free().
60440
60441 2004-07-19  Bruno Haible  <bruno@clisp.org>
60442
60443         * MODULES.html.sh (func_all_modules): Add dummy.
60444
60445 2004-07-16  Simon Josefsson  <jas@extundo.com>
60446
60447         * modules/dummy: New file.
60448
60449 2004-07-16  Simon Josefsson  <jas@extundo.com>
60450
60451         * lib/dummy.c: New file.
60452
60453 2004-07-16  Bruno Haible  <bruno@clisp.org>
60454
60455         * lib/backupfile.h: Add extern "C" for C++.
60456         * lib/closeout.h: Likewise.
60457         * lib/copy-file.h: Likewise.
60458         * lib/findprog.h: Likewise.
60459         * lib/full-write.h: Likewise.
60460         * lib/pathname.h: Likewise.
60461         * lib/progname.h: Likewise.
60462         * lib/stpcpy.h: Likewise.
60463         * lib/stpncpy.h: Likewise.
60464         * lib/strcase.h: Likewise.
60465         * lib/strstr.h: Likewise.
60466         * lib/xalloc.h: Likewise.
60467
60468         * lib/mbswidth.h: Add extern "C" for C++.
60469         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
60470
60471 2004-07-13  Robert Millan  <robertmh@gnu.org>
60472
60473         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
60474
60475 2004-07-09  Simon Josefsson  <jas@extundo.com>
60476
60477         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
60478         failed without this.)
60479
60480 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60481
60482         * modules/chown (Files): Add lib/fchown-stub.c, since
60483         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
60484
60485 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
60486
60487         * lib/fchown-stub.c: New file.
60488
60489 2004-06-24  Jim Meyering  <jim@meyering.net>
60490
60491         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
60492
60493 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60494
60495         * modules/argz: Omit "#include".
60496
60497         * MODULES.html.sh (func_all_modules): Add calloc, to match
60498         2004-06-01 addition of calloc module.
60499
60500 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60501
60502         * m4/argz.m4: New file, which is autoupdated from libtool.
60503
60504 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60505
60506         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
60507         libtool.
60508
60509 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
60510
60511         * config/srclist-update: Don't insist on "USA." before the
60512         close-comment, as libtool omits the period and puts the */ on a
60513         separate line.
60514         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
60515         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
60516
60517 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
60518
60519         * modules/argz: New file.
60520         * MODULES.html.sh (func_all_modules): Add argz.
60521
60522 2004-06-12  Jim Meyering  <jim@meyering.net>
60523         and  Paul Eggert  <eggert@cs.ucla.edu>
60524
60525         * modules/hash (Files): Add lib/xalloc.h.
60526         * modules/pipe (Depends-on): Add wait-process.
60527         * modules/stat (Depends-on): Add xalloc.
60528         * modules/userspec (Files): Add lib/userspec.h.
60529         * modules/xstrto
60530
60531         Upgrade from gettext-0.13.
60532         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
60533         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
60534         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
60535
60536 2004-06-10  Jim Meyering  <jim@meyering.net>
60537
60538         * lib/calloc.c: New file.
60539
60540 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
60541
60542         * lib/getdate.y (yylex): Allow space between sign and number.
60543         Problem reported by Dan Jacobson.
60544
60545 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
60546
60547         Merge from coreutils CVS.
60548
60549         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
60550         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
60551         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
60552         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
60553         xstrtol.m4: Fix copyright date and/or serial number.
60554
60555         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
60556         See if we need an fchown replacement.
60557         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
60558         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
60559         and use the replacement function if we detect either defect.
60560
60561         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
60562         gl_UTIMECMP.
60563
60564 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
60565         and  Jim Meyering  <jim@meyering.net>
60566
60567         Merge from coreutils CVS.
60568
60569         * lib/stat-macros.h: New file, with contents from file-type.h
60570         and coreutils' system.h.
60571         * lib/file-type.c: Include "stat-macros.h".
60572         * lib/file-type.h (file_type): Move all macro definitions to new file,
60573         stat-macros.h.
60574
60575         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
60576         Wrap old code with this conditional.
60577         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
60578         function that does not dereference symlinks.
60579         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
60580
60581         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
60582         dependency problems.
60583         (xreadlink): Accept new arg SIZE, for efficiency.
60584         All decls and uses changed.
60585         * lib/xreadlink.h: Include <stddef.h>, for size_t.
60586
60587         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
60588         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
60589
60590         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
60591         sysexits.h.
60592
60593 2004-06-01  Jim Meyering  <jim@meyering.net>
60594
60595         * m4/calloc.m4: New file.
60596
60597 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
60598
60599         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
60600         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
60601         Also, fix a typo in a diagnostic.
60602
60603 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
60604
60605         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
60606         or AC_FUNC_REALLOC.
60607
60608 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
60609
60610         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
60611         macros to be defined.
60612         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
60613         the allocator returns NULL because the requested size is zero.
60614
60615 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
60616
60617         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
60618         var.  Add comment explaining why libc still defines it.  This
60619         merges the following patch from glibc:
60620         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
60621
60622 2004-05-20  Andreas Schwab  <schwab@suse.de>
60623
60624         * m4/free.m4: Replace free if it not known to work, not the other
60625         way round.
60626
60627 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
60628
60629         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
60630         present in glibc since revision 1.1 of this file.
60631         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
60632         obstack_alignment_mask, obstack_alloc, obstack_base,
60633         obstack_blank, obstack_blank_fast, obstack_chunk_size,
60634         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
60635         obstack_grow0, obstack_init, obstack_int_grow,
60636         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
60637         obstack_next_free, obstack_object_size, obstack_ptr_grow,
60638         obstack_ptr_grow_fast, obstack_room): Remove declarations of
60639         nonexistent functions.
60640
60641 2004-05-18  Karl Berry  <karl@gnu.org>
60642
60643         * config/srclist.txt: break link for vasnprintf.c.
60644
60645 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
60646
60647         Port obstack to the AS/400, where pointers are 16 bytes wide and
60648         you cannot cast an integer to a valid pointer.  This patch is
60649         currently waiting to be integrated into glibc; see
60650         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
60651
60652         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
60653         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
60654         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
60655         (struct obstack): temp member is now a union of a pointer and
60656         an integer, instead of an integer.  All integer uses changed.
60657         This does not affect the physical layout of struct obstack,
60658         except on hosts (like the AS/400) where the size or alignment of
60659         void * is greater than that of ptrdiff_t.
60660         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
60661         __STDC__)]: Store temporary in pointer member of union, not
60662         integer member.
60663         * lib/obstack.c: Include <stddef.h>, for offsetof.
60664         (struct fooalign): Remove; it doesn't need a name.
60665         (union fooround): Change double to long double, and add void *.
60666         (DEFAULT_ALIGNMENT): Use offsetof to compute.
60667         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
60668         not a macro.  Hence the values are always int; so remove all
60669         casts-to-int in uses.
60670
60671 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
60672
60673         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
60674         we can get this patch merged into glibc.
60675
60676 2004-05-17  Derek R. Price  <derek@ximbiot.com>
60677             Paul Eggert  <eggert@cs.ucla.edu>
60678
60679         * m4/argp: Depend on alloca.
60680
60681 2004-05-17  Derek R. Price  <derek@ximbiot.com>
60682             Paul Eggert  <eggert@cs.ucla.edu>
60683
60684         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
60685         freecoding.
60686
60687 2004-05-17  Bruno Haible  <bruno@clisp.org>
60688
60689         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
60690         precision that consists of a '.' followed by an empty digit string.
60691         Patch by Tor Lillqvist <tml@iki.fi>.
60692
60693 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
60694
60695         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
60696         for backward compatibility with older code.  We need our own
60697         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
60698         it under some other name, and our alloca.h will define it.
60699
60700 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
60701             Derek Price  <derek@ximbiot.com>
60702
60703         * lib/alloca.c: Include <alloca.h>, to get our interface.
60704         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
60705         include <alloca.h> first.  Use C89 prototype for alloca; this
60706         requires including <stddef.h> for size_t.  Use extern "C" if C++.
60707         Use #elif for simplicity, since we can assume C89 now.
60708         Don't try to source the system alloca.h since it will not be found
60709         and to prevent recursively including its replacement.
60710         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
60711         * lib/regex.c: Likewise.
60712
60713 2004-05-16  Derek Price  <derek@ximbiot.com>
60714             Paul Eggert  <eggert@cs.ucla.edu>
60715
60716         getline cleanup.  This changes the getndelim2 API: both order of
60717         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
60718         no delimiter).
60719
60720         * lib/getline.c: Don't include stddef.h or stdio.h, since our
60721         interface does that.
60722         (getline): Always use getdelim, so that we don't have two
60723         copies of this code.
60724         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
60725         if available.
60726         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
60727         (GETNDELIM2_MAXIMUM): New macro.
60728         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
60729         instead of the old practice of delim2==0.  All callers changed.
60730         Return -1 on overflow, instead of returning junk.
60731         Do not set *linesize unless allocation succeeds.
60732         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
60733         that we include sys/types.h.
60734         * lib/getnline.h: Likewise.
60735         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
60736         (getndelim2): Reorder arguments.
60737         * lib/getnline.c (getnline, getndelim):
60738         Don't discard the NMAX argument.
60739         (getnline): Invoke getndelim, to avoid code duplication.
60740         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
60741         of (size_t) -1 by callers of the getnline family.
60742
60743 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
60744
60745         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
60746         Check for gettimeofday.
60747         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
60748         Check for settimeofday, stime.
60749
60750 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
60751
60752         * lib/nanosleep.c (suspended): Change its type from int to
60753         sig_atomic_t volatile.
60754         (first_call): Make it private to rpl_nanosleep, and have it
60755         be zero initially as that's a bit faster.
60756         (my_usleep): Round up fractional times instead of truncating them,
60757         as this is the usual meaning for 'sleep'.
60758
60759         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
60760         doesn't work.
60761         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
60762         (ENOSYS): Define if not defined.
60763         (settime): Fall back on stime if it exists and settimeofday fails.
60764         But don't bother with fallbacks if a method fails with errno == EPERM.
60765
60766 2004-05-11  Jim Meyering  <jim@meyering.net>
60767
60768         Prior to this change, the save_cwd caller required read access to the
60769         current directory on most systems (ones with the fchdir function).
60770
60771         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
60772         fails, try write-only, and finally, resort to using xgetcwd.
60773
60774 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
60775
60776         * lib/obstack.c, obstack.h: Import changes from libc.
60777
60778 2004-04-28  Bruno Haible  <bruno@clisp.org>
60779
60780         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
60781         also implicitly appends .exe to executables.
60782         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
60783         accepts Windows pathnames.
60784         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
60785         Treat Cygwin like Windows, since it now accepts Windows pathnames.
60786         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
60787         Treat Cygwin like Windows, since it now accepts Windows pathnames.
60788         Reported by Derek Robert Price <derek@ximbiot.com>.
60789
60790 2004-04-21  Karl Berry  <karl@gnu.org>
60791
60792         * config/srclist.txt (localcharset.c): break sync.
60793
60794 2004-04-20  Paul Eggert  <eggert@twinsun.com>
60795
60796         * m4/host-os.m4: Add a copyright notice.
60797
60798 2004-04-20  Jim Meyering  <jim@meyering.net>
60799
60800         Change UTILS_ to gl_ in AC_DEFINE'd names.
60801         Change utils_- and jm_-prefixed variables, too.
60802         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
60803         UTILS_FUNC_MKDIR_TRAILING_SLASH.
60804         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
60805
60806         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
60807         Don't emit trailing blanks.
60808         Also rename jm_-prefixed variables to have gl_ prefix.
60809
60810         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
60811         Also rename jm_-prefixed variables to have gl_ prefix.
60812
60813         * m4/jm-macros.m4: Reflect the renamings.
60814         * m4/prereq.m4: Likewise.
60815
60816 2004-04-20  Jim Meyering  <jim@meyering.net>
60817
60818         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
60819         memory.
60820
60821 2004-04-20  Jim Meyering  <jim@meyering.net>
60822             Bruno Haible  <bruno@clisp.org>
60823
60824         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
60825         memory when realloc fails.
60826
60827 2004-04-19  Jim Meyering  <jim@meyering.net>
60828
60829         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
60830         now that readutmp.c may call `free (0)'.
60831
60832 2004-04-19  Bruno Haible  <bruno@clisp.org>
60833
60834         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
60835         * m4/inttypes_h.m4: Likewise.
60836         * m4/stdint_h.m4: Likewise.
60837         * m4/intmax_t.m4: Likewise.
60838         * m4/uintmax_t.m4: Likewise.
60839
60840 2004-04-18  Jim Meyering  <jim@meyering.net>
60841
60842         * m4/prereq.m4: Don't forbid jm_ prefix.
60843
60844         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
60845         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
60846         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
60847         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
60848         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
60849         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
60850         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
60851         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
60852         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
60853         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
60854         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
60855         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
60856         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
60857         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
60858         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
60859         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
60860         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
60861         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
60862         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
60863
60864 2004-04-18  Jim Meyering  <jim@meyering.net>
60865
60866         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
60867         failure, don't leak memory and do call END_UTMP_ENT.
60868
60869 2004-04-16  Jim Meyering  <jim@meyering.net>
60870
60871         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
60872         coreutils' stat program.
60873         (gl_PREREQ): Don't require jm_PREREQ_STAT.
60874
60875 2004-04-11  Paul Eggert  <eggert@twinsun.com>
60876
60877         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
60878         C89.
60879         (CHAR_BIT): Remove, since we assume C89.
60880         Include <stdint.h> if available, as per current Autoconf CVS advice.
60881
60882 2004-03-31  Jim Meyering  <jim@meyering.net>
60883
60884         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
60885         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
60886         * m4/xalloc.m4: Likewise.
60887
60888 2004-03-30  Paul Eggert  <eggert@twinsun.com>
60889
60890         Merge from coreutils.
60891
60892         * m4/inttostr.m4: New file.
60893         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
60894         Require AM_STDBOOL_H and gl_TIMESPEC instead.
60895         Require gl_CLOCK_TIME.
60896         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
60897
60898 2004-03-30  Paul Eggert  <eggert@twinsun.com>
60899
60900         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
60901         not bool, to be more consistent with Unix conventions.
60902         Suggested by Bruno Haible.
60903
60904         Merge from coreutils.
60905
60906         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
60907         * lib/umaxtostr.c: New files.
60908
60909         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
60910         the usual <time.h> dance.
60911         (get_date): Change signature to support fractional time stamps.
60912         All callers changed.
60913         * lib/getdate.y: Include "getdate.h" first, as we can now
60914         assume C89 and don't need to worry about 'const'.
60915         Similarly, include "unlocked-io.h" near start, not in middle.
60916         Include <limits.h>.
60917         (textint.value): Use long int rather than int.
60918         (textint.digits): Use size_t rather than int.
60919         (BILLION, LOG10_BILLION): New constants.
60920         (parser_control): New member rel_ns.  Members day_ordinal,
60921         time_zone, month, day, hour, minutes, rel_year, rel_month,
60922         rel_day, rel_hour, rel_minutes, rel_seconds
60923         are now long int, not int.  Member seconds is now struct timespec,
60924         not int.  New member timespec_seen.  Members dates_seen, days_seen,
60925         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
60926         not int.
60927         (%union.intval): Now long int, not int.
60928         New member timespec.
60929         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
60930         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
60931         (spec): Now is a timespec or an item list.
60932         (timespec, items): New nonterminals.
60933         (time, rel, relunit, number, get_date):
60934         Add support for fractional seconds.
60935         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
60936         (gmtime, localtime, mktime): Remove decls; not needed with C89.
60937         (to_hour): First arg is now long int, not int.
60938         (to_year): Returns long int, not int.
60939         Don't treat year -70 like 70.
60940         (tm_diff): Returns long int, not int.
60941         (lookup_word): Use bool instead of int when appropriate.
60942         (yylex): Use size_t for count, not int.
60943         Detect overflow when parsing large integer constants.
60944         Add support for fractions.
60945         (get_date): Make pointers 'const' if possible.
60946         Use more-portable code to detect integer overflow.
60947         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
60948         Don't use ctime; it's not reliable if the year has >4 digits.
60949
60950         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
60951         This is for compatibility with BSD.
60952
60953         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
60954         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
60955         From coreutils' system.h.
60956
60957         * lib/userspec.c: Don't include "posixver.h".
60958         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
60959         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
60960         compatible extension.  Simplify code by removing a boolean int
60961         that was always nonzero if a string was nonnull.
60962
60963 2004-03-30  Jim Meyering  <jim@meyering.net>
60964
60965         Merge from coreutils.
60966
60967         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
60968         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
60969         on some systems one must include <grp.h> before it.
60970         Reported by Christian Krackowizer.
60971
60972 2004-03-30  Jim Meyering  <jim@meyering.net>
60973
60974         Merge from coreutils.
60975
60976         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
60977
60978         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
60979         an empty input stream.
60980
60981         * lib/readtokens.c: Include <stdbool.h>.
60982         (readtoken): Use `size_t' rather than int/long.
60983         All callers adjusted.
60984         Use `bool' rather than `int' where appropriate.
60985         Use memset rather than an explicit loop.
60986         Use x2nrealloc rather than xrealloc.
60987         Allow the use of `\0' as a delimiter.
60988         (readtokens): Likewise.
60989         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
60990
60991 2004-03-30  Jim Meyering  <jim@meyering.net>
60992
60993         * m4/realloc.m4: Remove file, since now it does no more than
60994         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
60995         the `configure.ac' section of module/realloc.
60996         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
60997
60998 2004-03-30  Bruno Haible  <bruno@clisp.org>
60999
61000         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
61001         nonnull.
61002
61003 2004-03-29  Paul Eggert  <eggert@twinsun.com>
61004
61005         Merge changes to getloadavg.c from coreutils and Emacs.
61006
61007         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
61008         Define to an expression, not to the empty string.
61009         Include cloexec.h and xalloc.h.
61010         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
61011         Use set_cloexec_flag rather than rolling our own.
61012         * lib/cloexec.c, lib/cloexec.h: New files.
61013
61014 2004-03-29  Paul Eggert  <eggert@twinsun.com>
61015
61016         * m4/cloexec.m4: New file.
61017
61018 2004-03-18  Paul Eggert  <eggert@twinsun.com>
61019
61020         * lib/getopt.h: Sync with libc CVS.
61021
61022 2004-03-18  Paul Eggert  <eggert@twinsun.com>
61023             Bruno Haible  <bruno@clisp.org>
61024
61025         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
61026         mbswidth.
61027
61028 2004-03-18  Paul Eggert  <eggert@twinsun.com>
61029             Bruno Haible  <bruno@clisp.org>
61030
61031         * lib/mbswidth.h: Include <wchar.h> only if
61032         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
61033         <wchar.h>.
61034         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
61035
61036 2004-03-09  Paul Eggert  <eggert@twinsun.com>
61037
61038         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
61039         Sync with libc CVS.
61040         * lib/getopt_int.h: New file, also synced from libc.
61041
61042 2004-03-09  Paul Eggert  <eggert@twinsun.com>
61043
61044         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
61045         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
61046         Bring back getopt.c, getopt.h, getopt1.c.
61047
61048 2004-03-07  Paul Eggert  <eggert@twinsun.com>
61049
61050         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
61051         All uses changed.  Check for sa_sigaction member; this fixes
61052         a bug first reported by Jason Andrade in
61053         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
61054
61055 2004-03-07  Paul Eggert  <eggert@twinsun.com>
61056
61057         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
61058         '#if' expressions.  Unlike the code it replaces, it does not
61059         depend on (defined _SC_PAGESIZE).  However, it does depend on
61060         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
61061         first reported by Jason Andrade in
61062         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
61063
61064 2004-02-25  Simon Josefsson  <jas@extundo.com>
61065
61066         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
61067
61068 2004-02-25  Simon Josefsson  <jas@extundo.com>
61069
61070         * lib/strdup.h: New file.
61071         * lib/strdup.c: Include it.
61072         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
61073         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
61074
61075 2004-02-23  Karl Berry  <karl@gnu.org>
61076
61077         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
61078         (from fencepost.gnu.org:/gd/gnuorg).
61079
61080 2004-02-23  Karl Berry  <karl@gnu.org>
61081
61082         * config/srclistvars.sh (GNUORG) [karl]: redefine.
61083         * config/srclist.txt: add maintain/standards documents.
61084
61085 2004-02-18  Bruno Haible  <bruno@clisp.org>
61086
61087         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
61088         Reported by Derek Robert Price <derek@ximbiot.com>.
61089
61090 2004-02-16  Karl Berry  <karl@gnu.org>
61091
61092         * config/mkinstalldirs, install-sh: update from automake.
61093
61094 2004-02-06  Karl Berry  <karl@gnu.org>
61095
61096         * m4/po.m4: update from gettext 0.14.1.
61097
61098 2004-02-06  Karl Berry  <karl@gnu.org>
61099
61100         * lib/config.charset: update from gettext 0.14.1.
61101
61102 2004-02-05  Paul Eggert  <eggert@twinsun.com>
61103
61104         Add comments and code, prompted by suggestions from Bruno Haible
61105         for sh-quote.
61106         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
61107         describing the enum quoting_style values.
61108         * lib/quotearg.c (quotearg_alloc): New function.
61109         (quotearg_buffer_restyled): Treat lone { and } as special.
61110         Treat = as special.  Work around bug with older shells
61111         that "see" a '\' that is really the 2nd byte of a multibyte char.
61112         Quote empty string with shell_quoting_style.
61113
61114 2004-02-03  Bruno Haible  <bruno@clisp.org>
61115
61116         * m4/pipe.m4: New file, from GNU gettext.
61117
61118 2004-02-03  Bruno Haible  <bruno@clisp.org>
61119
61120         * lib/pipe.h: New file, from GNU gettext.
61121         * lib/pipe.c: New file, from GNU gettext.
61122
61123 2004-01-27  Bruno Haible  <bruno@clisp.org>
61124
61125         * m4/execute.m4: New file, from GNU gettext.
61126
61127 2004-01-27  Bruno Haible  <bruno@clisp.org>
61128
61129         * lib/execute.h: New file, from GNU gettext.
61130         * lib/execute.c: New file, from GNU gettext.
61131         * lib/w32spawn.h: New file, from GNU gettext.
61132
61133 2004-01-24  Paul Eggert  <eggert@twinsun.com>
61134
61135         Merge from diffutils.
61136
61137         * lib/file-type.c (file_type): Add typed memory objects.
61138         * lib/file-type.h (S_TYPEISTMO): New macro.
61139
61140         * lib/c-stack.h (c_stack_action): Remove argv argument.
61141         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
61142         (die): Don't calculate message unless segv_action returns.
61143         (get_stack_location, min_address_from_argv, max_address_from_argv,
61144         volatile stack_base, volatile_stack_size): Remove.
61145         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
61146         that every segmentation violation is a stack overflow.  (Ouch!)
61147         See Debian bug 136249 (still outstanding) for more info about why
61148         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
61149
61150 2004-01-24  Paul Eggert  <eggert@twinsun.com>
61151
61152         Exit-status fix from coreutils.
61153
61154         Use exit_failure consistently in place of EXIT_FAILURE,
61155         so that program exit statuses are consistent on failure.
61156
61157         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
61158         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
61159         * lib/argmatch.h: Comment fix to match the above.
61160         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
61161         Now a macro referring to exit_failure, instead of a separate
61162         variable.  Include "exitfail.h" to get it.
61163         * lib/xstrtol.h: Include "exitfail.h".
61164         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
61165
61166         * lib/long-options.c (parse_long_options): Use prototype
61167         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
61168         for clarity.
61169
61170 2004-01-21  Jim Meyering  <jim@meyering.net>
61171
61172         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
61173         so as not to conflict with a different-sized __mktime_internal
61174         function in GNU libc.
61175         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
61176         Problem building statically-linked `ls' reported by Michael Brunnbauer.
61177
61178 2004-01-20  Karl Berry  <karl@gnu.org>
61179
61180         * config/config.guess: update from config.
61181
61182         * config/srclistvars.sh: GNUWWWLICENSES for karl.
61183
61184 2004-01-20  Bruno Haible  <bruno@clisp.org>
61185
61186         Safer stack allocation.
61187         * lib/setenv.c: Include allocsa.h.
61188         (alloca): Remove fallback definition.
61189         (freea): Remove macro.
61190         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
61191         instead of freea.
61192
61193 2004-01-20  Bruno Haible  <bruno@clisp.org>
61194
61195         * m4/eealloc.m4: New file, from GNU gettext.
61196
61197 2004-01-20  Bruno Haible  <bruno@clisp.org>
61198
61199         * m4/allocsa.m4: New file, from GNU gettext.
61200
61201 2004-01-20  Bruno Haible  <bruno@clisp.org>
61202
61203         * lib/xallocsa.h: New file, from GNU gettext.
61204         * lib/xallocsa.c: New file, from GNU gettext.
61205
61206 2004-01-20  Bruno Haible  <bruno@clisp.org>
61207
61208         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
61209
61210 2004-01-20  Bruno Haible  <bruno@clisp.org>
61211
61212         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
61213         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
61214         specially.
61215
61216 2004-01-20  Bruno Haible  <bruno@clisp.org>
61217
61218         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
61219         patch.
61220
61221 2004-01-20  Bruno Haible  <bruno@clisp.org>
61222
61223         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
61224
61225 2004-01-20  Bruno Haible  <bruno@clisp.org>
61226
61227         * lib/eealloc.h: New file.
61228
61229 2004-01-20  Bruno Haible  <bruno@clisp.org>
61230
61231         * lib/binary-io.h: Avoid warnings on Cygwin.
61232
61233 2004-01-20  Bruno Haible  <bruno@clisp.org>
61234
61235         * lib/allocsa.h: New file, from GNU gettext.
61236         * lib/allocsa.c: New file, from GNU gettext.
61237
61238 2004-01-18  Karl Berry  <karl@gnu.org>
61239
61240         * doc/gpl.texi, doc/lgpl.texi: new files.
61241
61242 2004-01-18  Karl Berry  <karl@gnu.org>
61243
61244         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
61245         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
61246
61247 2004-01-15  Paul Eggert  <eggert@twinsun.com>
61248
61249         Merge from coreutils.
61250
61251         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
61252         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
61253         (gl_DEFAULT_POSIX2_VERSION): Move
61254         the documentation from 'configure' into 'config.hin',
61255         so that 'configure --help' isn't burdened by it and
61256         we don't have to worry about its formatting there.
61257         Reword the documentation so that it's more succinct
61258         and can be run together into a single paragraph.
61259         * m4/same.m4 (gl_SAME): Check for pathconf.
61260
61261 2004-01-15  Paul Eggert  <eggert@twinsun.com>
61262
61263         Merge from coreutils.
61264
61265         * lib/posixver.c: Include posixver.h.
61266
61267         * lib/same.c: Include <stdbool.h>, <limits.h>.
61268         (_POSIX_NAME_MAX): Define if not defined.
61269         (MIN): New macro.
61270         (same_name): If file names are silently truncated, report
61271         that the file names are the same if they are the same after
61272         the silent truncation.
61273
61274         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
61275         conversion function.
61276         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
61277         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
61278         longer needed.
61279
61280 2004-01-15  Jim Meyering  <jim@meyering.net>
61281
61282         Merge from coreutils.
61283
61284         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
61285         if no library is required.
61286         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
61287         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
61288         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
61289         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
61290         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
61291         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
61292         value, $ac_cv_search_crypt, if it's "none required".
61293         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
61294         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
61295         not gl_FUNC_GETLOADAVG.
61296         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
61297         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
61298
61299 2004-01-15  Jim Meyering  <jim@meyering.net>
61300
61301         Merge from coreutils.
61302
61303         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
61304         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
61305         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
61306
61307         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
61308         optional configure-time default.
61309
61310         * lib/version-etc.c (version_etc_copyright): Update copyright date.
61311
61312         * lib/xreadlink.c (xreadlink): Correct outdated comment.
61313
61314 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
61315
61316         Merge from coreutils.
61317
61318         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
61319         value, $ac_cv_search_nanosleep, if it's "none required".
61320
61321 2004-01-14  Paul Eggert  <eggert@twinsun.com>
61322
61323         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
61324         with like-named macro in fnmatch.c.
61325         (EXT): Use an internal constant instead.
61326
61327         Merge fnmatch patches from glibc.
61328         * lib/fnmatch.c (mbsinit): Remove define.
61329         Add libc_hidden_ver (__fnmatch, fnmatch).
61330         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
61331         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
61332
61333 2004-01-14  Karl Berry  <karl@gnu.org>
61334
61335         * config/install-sh: update from automake.
61336
61337 2004-01-13  Karl Berry  <karl@gnu.org>
61338
61339         * config/install-sh: update from automake.
61340
61341 2004-01-09  Karl Berry  <karl@gnu.org>
61342
61343         * config/install-sh: update from automake.
61344
61345 2004-01-05  Karl Berry  <karl@gnu.org>
61346
61347         * config/config.{sub,guess}: update from config.
61348
61349 2003-12-31  Karl Berry  <karl@gnu.org>
61350
61351         * config/depcomp: update from automake.
61352
61353 2003-12-14  Karl Berry  <karl@gnu.org>
61354
61355         * lib/config.charset: update from gettext-runtime.
61356
61357 2003-12-03  Paul Eggert  <eggert@twinsun.com>
61358
61359         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
61360         Bug reported by Alfred M. Szmidt.
61361
61362 2003-12-03  Bruno Haible  <bruno@clisp.org>
61363
61364         * m4/gettext.m4: Upgrade from gettext-0.13.
61365         * m4/po.m4: Upgrade from gettext-0.13.
61366         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
61367         * m4/intmax.m4: New file, from gettext-0.13.
61368         * m4/printf-posix.m4: New file, from gettext-0.13.
61369
61370 2003-11-29  Karl Berry  <karl@gnu.org>
61371
61372         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
61373
61374 2003-11-25  Paul Eggert  <eggert@twinsun.com>
61375             Bruno Haible  <bruno@clisp.org>
61376
61377         * lib/printf-parse.h: Don't include sys/types.h.
61378         (ARG_NONE): New macro.
61379         (char_directive): Change type of *arg_index fields to size_t.
61380         * lib/printf-parse.c: Don't include sys/types.h.
61381         (SSIZE_MAX): Remove macro.
61382         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
61383         Remove unnecessary overflow check.
61384         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
61385         fields.
61386
61387 2003-11-25  Bruno Haible  <bruno@clisp.org>
61388
61389         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
61390
61391 2003-11-25  Bruno Haible  <bruno@clisp.org>
61392
61393         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
61394         gt_TYPE_SSIZE_T.
61395
61396 2003-11-24  Paul Eggert  <eggert@twinsun.com>
61397
61398         * modules/alloca: Remove dependency on xalloc.
61399
61400 2003-11-24  Paul Eggert  <eggert@twinsun.com>
61401
61402         * lib/alloca.c: Remove dependency on xalloc module.
61403         (xalloc_die): Remove.
61404         (memory_full) [!defined emacs]: New macro.
61405         [!defined emacs]: Don't include xalloc.h.
61406         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
61407         address arithmetic overflows.  Change datatypes a bit to avoid
61408         unnecessary casts.
61409
61410 2003-11-22  Jim Meyering  <jim@meyering.net>
61411
61412         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
61413         s/size/size_t/.
61414
61415 2003-11-21  Karl Berry  <karl@gnu.org>
61416
61417         * config/config.{sub,guess}: update from config.
61418
61419 2003-11-18  Karl Berry  <karl@gnu.org>
61420
61421         * config/config.{sub,guess}: update from config.
61422
61423         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
61424
61425 2003-11-17  Paul Eggert  <eggert@twinsun.com>
61426
61427         * README: Mention that S+T cannot overflow if S is the size of
61428         an existing object and T is sufficiently small.
61429
61430 2003-11-17  Jim Meyering  <jim@meyering.net>
61431
61432         On systems without utime and without a utimes function capable of
61433         dealing with a NULL struct utimbuf* argument, this utime replacement
61434         could -- in unusual circumstances -- leak a file descriptor.
61435         * lib/utime.c: Include <unistd.h> and <errno.h>.
61436         (utime_null): Be sure to close `fd' and to preserve errno.
61437         Reported by Geoff Collyer via Arnold Robbins.
61438
61439 2003-11-17  Bruno Haible  <bruno@clisp.org>
61440
61441         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
61442         (Depends-on): Add xsize.
61443
61444 2003-11-17  Bruno Haible  <bruno@clisp.org>
61445
61446         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
61447
61448 2003-11-17  Bruno Haible  <bruno@clisp.org>
61449
61450         * lib/vasnprintf.c (alloca): Remove fallback definition.
61451         (freea): Remove definition.
61452         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
61453         Reported by Paul Eggert.
61454
61455 2003-11-16  Paul Eggert  <eggert@twinsun.com>
61456             Bruno Haible  <bruno@clisp.org>
61457
61458         Protect against address arithmetic overflow.
61459         * lib/printf-args.h: Include stddef.h.
61460         (arguments): Change type of field 'count' to size_t.
61461         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
61462         'unsigned int' where appropriate.
61463         * lib/printf-parse.h: Include sys/types.h.
61464         (char_directive): Change type of *arg_index fields to ssize_t.
61465         (char_directives): Change type of fields 'count', max_*_length to
61466         size_t.
61467         * lib/printf-parse.c: Include sys/types.h and xsize.h.
61468         (SSIZE_MAX): Define fallback value.
61469         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
61470         instead of 'int' where appropriate. Check a_allocated, d_allocated
61471         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
61472         * lib/vasnprintf.c: Include xsize.h.
61473         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
61474         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
61475         overflow. Avoid wraparound when converting a width or precision from
61476         decimal to binary.
61477
61478 2003-11-16  Bruno Haible  <bruno@clisp.org>
61479
61480         Update from GNU gettext.
61481         * lib/printf-parse.c: Generalize to it can be compiled for wide
61482         strings.
61483         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
61484         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
61485         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
61486         SNPRINTF): New macros.
61487         Don't include <alloca.h> if the file is used inside libintl.
61488         (local_wcslen): New function, for Solaris 2.5.1.
61489         (VASNPRINTF): Use it instead of wcslen.
61490
61491 2003-11-16  Bruno Haible  <bruno@clisp.org>
61492
61493         * lib/xsize.h (xmax): New function.
61494         (xsum, xsum3, xsum4): Declare as "pure" functions.
61495
61496 2003-11-12  Paul Eggert  <eggert@twinsun.com>
61497
61498         * modules/xalloc (Files): Undo latest change, since xalloc.h
61499         no longer needs SIZE_MAX or PTRDIFF_MAX.
61500
61501 2003-11-12  Paul Eggert  <eggert@twinsun.com>
61502
61503         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
61504         gl_PTRDIFF_MAX.
61505
61506 2003-11-12  Paul Eggert  <eggert@twinsun.com>
61507
61508         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
61509         "return", to pacify some unknown compiler.  Problem reported
61510         by Joerg Schilling.
61511
61512 2003-11-12  Paul Eggert  <eggert@twinsun.com>
61513
61514         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
61515         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
61516         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
61517         heuristic is just as accurate as far as we know, and it removes a
61518         dependency on size_max.m4 and ptrdiff_max.m4.
61519
61520 2003-11-11  Bruno Haible  <bruno@clisp.org>
61521
61522         * modules/xsize (Files): Add m4/size_max.m4.
61523         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
61524
61525 2003-11-11  Bruno Haible  <bruno@clisp.org>
61526
61527         * m4/size_max.m4: New file.
61528         * m4/ptrdiff_max.m4: New file.
61529         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
61530         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
61531         (gl_XALLOC): Invoke it.
61532
61533 2003-11-11  Bruno Haible  <bruno@clisp.org>
61534
61535         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
61536         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
61537         defined.
61538
61539 2003-11-10  Paul Eggert  <eggert@twinsun.com>
61540
61541         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
61542         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
61543         rejected some allocations of exactly SIZE_MAX - 2 bytes.
61544         From Bruno Haible.
61545         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
61546         not (size_t) -1, since it's defined here.
61547
61548 2003-11-09  Karl Berry  <karl@gnu.org>
61549
61550         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
61551
61552 2003-11-06  Paul Eggert  <eggert@twinsun.com>
61553
61554         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
61555         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
61556         Reject sizes of exactly SIZE_MAX bytes.
61557         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
61558         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
61559
61560 2003-11-05  Bruno Haible  <bruno@clisp.org>
61561
61562         * lib/xsize.h: Include limits.h, to avoid a possible collision with
61563         SIZE_MAX defined in <limits.h> on Solaris.
61564
61565 2003-11-04  Jim Meyering  <jim@meyering.net>
61566
61567         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
61568         variable names, rather than @VAR@.
61569         * modules/poll: Likewise.
61570
61571 2003-11-04  Bruno Haible  <bruno@clisp.org>
61572
61573         * modules/xsize: New file.
61574         * modules/linebreak: Depend on xsize.
61575         * MODULES.html.sh (func_all_modules): Add xsize.
61576
61577 2003-11-04  Bruno Haible  <bruno@clisp.org>
61578
61579         * m4/xsize.m4: New file.
61580
61581 2003-11-04  Bruno Haible  <bruno@clisp.org>
61582
61583         * lib/xsize.h: New file.
61584         * lib/linebreak.c: Include xsize.h.
61585         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
61586         argument for overflow.
61587         Suggested by Paul Eggert.
61588
61589 2003-11-03  Karl Berry  <karl@gnu.org>
61590
61591         * config/config.{guess,sub}: update from config.
61592
61593 2003-11-03  Jim Meyering  <jim@meyering.net>
61594
61595         * modules/userspec (lib_SOURCES): Add userspec.h.
61596         (Include): Add "userspec.h".
61597         Improve description.
61598
61599 2003-11-03  Jim Meyering  <jim@meyering.net>
61600
61601         * lib/userspec.c: Include "userspec.h".
61602         * lib/userspec.h: New file.
61603
61604 2003-11-03  Bruno Haible  <bruno@clisp.org>
61605
61606         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
61607
61608 2003-11-03  Bruno Haible  <bruno@clisp.org>
61609
61610         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
61611         available, to avoid (extremely rare) race condition.
61612         Suggested by Paul Eggert.
61613
61614 2003-11-02  Karl Berry  <karl@gnu.org>
61615
61616         * config/srclist.txt (vasprintf.c): sync broken, sigh.
61617
61618 2003-10-31  Paul Eggert  <eggert@twinsun.com>
61619
61620         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
61621         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
61622         (read_filesystem_list): Set and use me_type_malloced.
61623         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
61624         whatever the type happens to be), for brevity and consistency.
61625         Check for size calculation overflow on Alphas running OSF/1.
61626
61627 2003-10-31  Jim Meyering  <jim@meyering.net>
61628
61629         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
61630
61631         * lib/linebuffer.c: Include <string.h> for declaration of memset.
61632
61633 2003-10-30  Paul Eggert  <eggert@twinsun.com>
61634             Bruno Haible  <bruno@clisp.org>
61635
61636         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
61637         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
61638
61639 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
61640
61641         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
61642         netbsd*-gnu*.  Suggested by Robert Millan.
61643
61644 2003-10-29  Paul Eggert  <eggert@twinsun.com>
61645
61646         * modules/group-member: Depend on stdbool.
61647
61648 2003-10-29  Paul Eggert  <eggert@twinsun.com>
61649
61650         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
61651
61652 2003-10-29  Paul Eggert  <eggert@twinsun.com>
61653
61654         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
61655         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
61656         after the 'gnu' in these cases.  This fixes some bugs in the
61657         previous change, and is based on suggestions by Robert Millan.
61658
61659 2003-10-29  Paul Eggert  <eggert@twinsun.com>
61660
61661         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
61662         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
61663         no longer needed.
61664         * lib/quotearg.c (quotearg_n_options): Use it.
61665         * lib/group-member.c: Include <stdbool.h>.
61666         (free_group_info): Arg is now const *; don't free arg.
61667         (get_group_info): Now returns bool and accepts struct group_info *,
61668         rather than returning a malloc'ed struct group_info *.
61669         All uses changed.  Check for overflow in internal size calculation.
61670
61671         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
61672         rather than xmalloc/xrealloc.
61673         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
61674         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
61675         conformance bug: the old code used a pointer after freeing the
61676         storage that it addressed.
61677         * lib/hash.c (hash_initialize): Simplify the code by using
61678         xalloc_oversized rather than doing it by hand.
61679         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
61680         the buffer preserved.  Use free and xmalloc instead.
61681         * lib/quotearg.c (quotearg_n_options): Likewise.
61682         Use a simpler test for size overflow.  Don't use xalloc_oversized
61683         because unsigned int might be wider than size_t (!); this suggests
61684         that we should switch from unsigned int to size_t for slot numbers.
61685
61686 2003-10-28  Paul Eggert  <eggert@twinsun.com>
61687
61688         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
61689         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
61690         NetBSD kernels.  Requested by Richard Stallman.
61691
61692 2003-10-27  Paul Eggert  <eggert@twinsun.com>
61693
61694         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
61695         to allocate the returned structure.  Do not allocate a subarray,
61696         as x2nrealloc will do that.
61697         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
61698         instead of xnrealloc.
61699         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
61700
61701 2003-10-27  Bruno Haible  <bruno@clisp.org>
61702
61703         * lib/stdbool_.h: Better support for BeOS.
61704
61705 2003-10-26  Paul Eggert  <eggert@twinsun.com>
61706
61707         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
61708         now uses inline.
61709
61710 2003-10-26  Paul Eggert  <eggert@twinsun.com>
61711
61712         * lib/xalloc.h (xalloc_oversized): New static inline function, for
61713         callers that want to do their own size-overflow checking.  Include
61714         <stdbool.h>, since xalloc_oversized returns bool.
61715         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
61716         to use xalloc_oversized.
61717
61718         Add two functions x2realloc, x2nrealloc, for programs that grow
61719         arrays dynamically by doubling their sizes.
61720         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
61721         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
61722         New functions.
61723
61724         Port to C99 semantics for 'inline' of external functions.
61725         Bug reported by Bruno Haible.
61726         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
61727         with the old contents of xnmalloc.
61728         (xnmalloc, xmalloc): Use it.
61729         (xnrealloc_inline): New static inline function,
61730         with the old contents of xnrealloc.
61731         (xnrealloc, xrealloc): Use it.
61732
61733         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
61734         that.
61735
61736 2003-10-26  Karl Berry  <karl@gnu.org>
61737
61738         * config/srclist.txt (COPYING.DOC): no longer available from
61739         /gd/gnuorg; don't know where the ultimate source is.
61740
61741 2003-10-25  Paul Eggert  <eggert@twinsun.com>
61742
61743         Fix several address-calculation bugs in the hash modules,
61744         plus some minor code cleanup.
61745
61746         * lib/hash.h: Include <stdbool.h>, for bool.
61747         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
61748         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
61749         hash_get_n_entries, hash_get_max_bucket_length,
61750         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
61751         hash_rehash): Use size_t rather than unsigned.
61752         * lib/hash.c (struct hash_table, hash_get_n_buckets,
61753         hash_get_n_buckets_used, hash_get_n_entries,
61754         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
61755         hash_get_entries, hash_do_for_each, hash_string, is_prime,
61756         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
61757         Likewise.
61758         (SIZE_MAX): Define if not defined.
61759         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
61760         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
61761         hash_print):
61762         Use const * when possible.
61763         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
61764         (check_tuning): Fix bug: if tuning parameters were very close to
61765         0 or 1, rounding errors could have caused subscript violations.
61766         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
61767         (hash_initialize): Add 'fail:' label
61768         to free table and return NULL, and use it to simplify code.
61769         Use calloc rather than clearing the storage ourself.
61770         (hash_initialize, hash_rehash): Check for arithmetic overflow in
61771         buffer size calculations.
61772         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
61773         Include <stddef.h>, for size_t.
61774         * lib/hash-pjw.c (hash_pjw): Likewise.
61775         Switch to method described by Bruno Haible.
61776         Include <limits.h>, for CHAR_BIT.
61777         (SIZE_BITS): New macro.
61778
61779 2003-10-23  Paul Eggert  <eggert@twinsun.com>
61780
61781         * m4/getline.m4 (AM_FUNC_GETLINE):
61782         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
61783         hosts.  Problem reported by Derek Robert Price in
61784         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
61785         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
61786         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
61787
61788 2003-10-21  Paul Eggert  <eggert@twinsun.com>
61789
61790         * lib/getndelim2.c (getndelim2): When size calculation overflows,
61791         ceiling the allocation at NMAX bytes rather than silently
61792         discarding input bytes before NMAX is reached.  This makes
61793         a difference only if NMAX exceeds SIZE_MAX / 2.
61794
61795         * lib/obstack.c: Merge from glibc.
61796         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
61797         Add libc_hidden_def (_obstack_newchunk).
61798         (_obstack_free) [! defined _LIBC]: Remove.
61799         [defined _LIBC]: Make a strong alias from obstack_free, rather than
61800         a clone of the function body.
61801         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
61802         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
61803
61804         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
61805         glibc.
61806         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
61807         arg to memcpy.
61808
61809         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
61810         (obstack_ptr_grow_fast, obstack_int_grow_fast):
61811         Don't use lvalue casts, as GCC plans to remove support for them
61812         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
61813         was also present in the non-GCC version, indicating that this
61814         code had always been buggy and had never been widely used.
61815         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
61816         Use the fast variant of each macro, rather than copying the
61817         definiens of the fast variant; that way, we'll be more likely to
61818         catch future bugs in the fast variants.
61819
61820 2003-10-20  Bruno Haible  <bruno@clisp.org>
61821
61822         * modules/wait-process: New file.
61823         * MODULES.html.sh (func_all_modules): Add wait-process.
61824
61825 2003-10-20  Bruno Haible  <bruno@clisp.org>
61826
61827         * m4/wait-process.m4: New file.
61828
61829 2003-10-20  Bruno Haible  <bruno@clisp.org>
61830
61831         * lib/wait-process.h: New file, from GNU gettext.
61832         * lib/wait-process.c: New file, from GNU gettext.
61833
61834 2003-10-19  Jim Meyering  <jim@meyering.net>
61835
61836         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
61837         HPUX 10.20.
61838
61839 2003-10-18  Karl Berry  <karl@gnu.org>
61840
61841         * config/config.guess: update from config.
61842
61843 2003-10-16  Paul Eggert  <eggert@twinsun.com>
61844
61845         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
61846         (getgroups): First arg is int, not size_t.
61847         Don't let 'free' mangle errno.
61848
61849 2003-10-16  Paul Eggert  <eggert@twinsun.com>
61850
61851         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
61852
61853 2003-10-16  Karl Berry  <karl@gnu.org>
61854
61855         * config/config.{guess,sub}: update from config.
61856
61857 2003-10-16  Jim Meyering  <jim@meyering.net>
61858
61859         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
61860         memcpy.
61861
61862 2003-10-15  Paul Eggert  <eggert@twinsun.com>
61863
61864         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
61865         (SIZE_MAX): Remove.
61866         (new_exclude, add_exclude_file): Initial size no longer needs to
61867         be a power of 2.
61868         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
61869         our own address arithmetic overflow checking.
61870
61871         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
61872         (fnmatch): Do not alloca more than 2000 wide characters;
61873         instead, use malloc for large buffers.
61874         Check for address arithmetic overflow, and return -1
61875         with errno set to ENOMEM in that case.
61876         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
61877         (NEW_PATTERN): Do not alloca more than 8000 bytes;
61878         instead, return -1.  Check for address arithmetic overflow.
61879
61880 2003-10-14  Paul Eggert  <eggert@twinsun.com>
61881
61882         Handle invalid suffixes and overflow independently, so that
61883         callers can treat them independently as needed.  Fix some bugs in
61884         suffix handling, e.g., "100k@" was not diagnosed as an invalid
61885         suffix for a human-readable blocksize.  The major caller-visible
61886         change is the addition of a new
61887         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
61888         that both overflow and suffix chars were found.
61889
61890         * lib/human.c (humblock): Don't check separately for invalid suffix
61891         char; that is xstrtoumax's job (now that its bug is fixed).
61892         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
61893         INTMAX_MAX]: New macros.
61894         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
61895         TYPE_MAXIMUM): New macros.
61896         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
61897         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
61898         if overflow occurs, as it's what __strtol does and it's more useful
61899         in practice.
61900         (__xstrtol): If __strtol reports some error other than ERANGE,
61901         reflect it to the caller as LONGINT_INVALID.  If it reports
61902         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
61903         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
61904         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
61905         value.
61906         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
61907         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
61908         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
61909         [defined UINTMAX_MAX]: New macros.
61910
61911 2003-10-14  Bruno Haible  <bruno@clisp.org>
61912
61913         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
61914
61915 2003-10-14  Bruno Haible  <bruno@clisp.org>
61916
61917         * m4/sig_atomic_t: New file, from GNU gettext.
61918         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
61919
61920 2003-10-14  Bruno Haible  <bruno@clisp.org>
61921
61922         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
61923         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
61924         Also use volatile where needed.
61925
61926 2003-10-12  Paul Eggert  <eggert@twinsun.com>
61927
61928         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
61929         Change maintainer from Bruno Haible to 'all'.
61930
61931 2003-10-12  Paul Eggert  <eggert@twinsun.com>
61932
61933         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
61934
61935 2003-10-12  Paul Eggert  <eggert@twinsun.com>
61936
61937         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
61938         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
61939         and define in terms of the other primitives.
61940         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
61941         (SIZE_MAX): Define if not already defined.
61942         (array_size_overflow): New function.
61943         (xalloc_die): Abort instead of exiting if 'error' returns.
61944         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
61945         (xmalloc, xrealloc): Use them.
61946         (xcalloc): Check for address arithmetic overflow.
61947         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
61948         a bit faster than strcpy.
61949
61950 2003-10-10  Simon Josefsson  <jas@extundo.com>
61951
61952         * modules/argp (Depends-on): Add restrict and strcase.
61953
61954 2003-10-10  Simon Josefsson  <jas@extundo.com>
61955
61956         * m4/argp.m4: Add AC_C_INLINE.
61957
61958 2003-10-08  Paul Eggert  <eggert@twinsun.com>
61959
61960         Merge getpass from libc, plus a few fixes.
61961
61962         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
61963         Include <stdbool.h>.
61964         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
61965         __fsetlocking to empty.
61966         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
61967         do include <bits/libc-lock.h>.
61968         Do not include <fcntl.h>; not needed.
61969         [_LIBC]: Include <wchar.h>.
61970         (NOTCANCEL_MODE): New macro.
61971         (flockfile, funlockfile) [_LIBC]: New macros.
61972         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
61973         [!_LIBC]: New macros.
61974         (call_fclose): New function.
61975         (getpass): Use it.  Save tty stream separately; this simplifies the
61976         code and makes it more reliable if stdin happens to equal stdout.
61977         Invoke __fsetlocking on tty.
61978         Handle thread cancellation if needed.
61979         Namespace cleanup (use __tcgetattr, __getline).
61980         Use bool for Booleans.
61981         [USE_IN_LIBIO]: Handle wide streams.
61982         [!_LIBC]: Unconditionally do the fseek, since we don't know what
61983         stream might go where.
61984
61985         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
61986         doesn't have to include <stdio.h> before us.
61987         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
61988         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
61989         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
61990         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
61991         if not declared, so that we can use getpass.c code from libc without
61992         rewriting it.
61993         (flockfile, ftrylockfile, funlockfile): New macros.
61994
61995 2003-10-08  Paul Eggert  <eggert@twinsun.com>
61996
61997         * modules/getpass: Depend on stdbool.
61998
61999 2003-10-08  Paul Eggert  <eggert@twinsun.com>
62000
62001         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
62002
62003 2003-10-07  Karl Berry  <karl@gnu.org>
62004
62005         * config/config.{guess,sub}: update from config.
62006
62007 2003-10-06  Jim Meyering  <jim@meyering.net>
62008             Bruno Haible  <bruno@clisp.org>
62009
62010         This lets translators provide better translations for the
62011         "Written by ..." part of --version output.
62012         * lib/version-etc.h: Include stdarg.h.
62013         (version_etc_copyright): Declare as readonly.
62014         (version_etc): Make this function variadic with a NULL-terminated list
62015         of author name strings.
62016         (version_etc_va): New declaration.
62017         * lib/version-etc.c: Include stdarg.h, stdlib.h.
62018         (version_etc_copyright): Declare as readonly.
62019         (version_etc_va): New function. Provide a different translatable string
62020         for each possible number of authors < 10. Abbreviate when there are 10
62021         authors or more.
62022         (version_etc): Make this function variadic. Call version_etc_va.
62023         Suggestion from Gary V. Vaughan.
62024
62025         * lib/long-options.h (parse_long_options): Change prototype: the
62026         authors string is moved to the end and becomes variadic.
62027         * lib/long-options.c: Include stdarg.h.
62028         (parse_long_options): Make this function variadic, too.
62029         Call version_etc_va, not version_etc.
62030
62031 2003-10-06  Bruno Haible  <bruno@clisp.org>
62032
62033         * modules/version-etc-2: Remove file.
62034         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
62035
62036 2003-10-06  Bruno Haible  <bruno@clisp.org>
62037
62038         * modules/fatal-signal: New file.
62039         * MODULES.html.sh (func_all_modules): Add fatal-signal.
62040
62041 2003-10-06  Bruno Haible  <bruno@clisp.org>
62042
62043         * m4/fatal-signal.m4: New file.
62044         * m4/signalblocking.m4: New file, from GNU gettext.
62045
62046 2003-10-06  Bruno Haible  <bruno@clisp.org>
62047
62048         * lib/version-etc-2.h: Remove file.
62049         * lib/version-etc-2.c: Remove file.
62050
62051 2003-10-06  Bruno Haible  <bruno@clisp.org>
62052
62053         * lib/fatal-signal.h: New file, from GNU gettext.
62054         * lib/fatal-signal.c: New file, from GNU gettext.
62055
62056 2003-10-05  Paul Eggert  <eggert@twinsun.com>
62057
62058         * README: Rework advice for preventing empty .o files.
62059         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
62060         not <sys/types.h>.
62061
62062 2003-10-04  Karl Berry  <karl@gnu.org>
62063
62064         * lib/argp*: update from libc.
62065
62066 2003-10-04  Karl Berry  <karl@gnu.org>
62067
62068         * config/config.{guess,sub}: update from config.
62069
62070 2003-10-02  Bruno Haible  <bruno@clisp.org>
62071
62072         * modules/lchown (Include): Add lchown.h.
62073         * modules/time_r (Include): Use "..." syntax.
62074         * modules/xgetdomainname (Include): Add xgetdomainname.h.
62075
62076 2003-10-01  Simon Josefsson  <jas@extundo.com>
62077
62078         * MODULES.html.sh (func_all_modules): Move gethostname from section
62079         'based on' to section 'lacking' POSIX:2001.
62080
62081 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
62082
62083         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
62084         to output mode on the same stream.
62085
62086 2003-09-29  Paul Eggert  <eggert@twinsun.com>
62087
62088         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
62089         Fix arg typo in previous patch.
62090
62091 2003-09-28  Jim Meyering  <jim@meyering.net>
62092
62093         * lib/error.c: Correct cpp indentation.
62094
62095 2003-09-27  Paul Eggert  <eggert@twinsun.com>
62096
62097         * modules/free: New file.
62098
62099 2003-09-27  Paul Eggert  <eggert@twinsun.com>
62100
62101         * m4/free.m4: New file.
62102
62103 2003-09-27  Paul Eggert  <eggert@twinsun.com>
62104
62105         * lib/minmax.h (MIN, MAX)
62106         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
62107         Omit the special code that used __typeof__, since we worry that
62108         it could be more trouble than it's worth.  See:
62109         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
62110         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
62111
62112         * lib/free.c: New file.
62113
62114 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
62115
62116         Trivial fixes to Makefile.am parts of module listings.
62117         * modules/strstr: Append strstr.h to lib_SOURCES.
62118         * modules/strcase: Likewise, for strcase.h.
62119
62120 2003-09-27  Karl Berry  <karl@gnu.org>
62121
62122         * config/mkinstalldirs: update from automake.
62123
62124 2003-09-26  Paul Eggert  <eggert@twinsun.com>
62125
62126         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
62127         (error_tail): Do not loop, reallocating temporary buffer, since
62128         the output cannot contain more wide characters than the input
62129         contains bytes, the size must be big enough already.  This avoids
62130         one potential size overflow calculation.  Check for size overflow
62131         when calculating temporary buffer size.  Free temporary buffer
62132         when done, if it was allocated with malloc; this plugs a memory
62133         leak.  Remove casts from void * to pointers, that are no longer
62134         needed now that we're assuming C89 or better.
62135
62136         Merge error changes from glibc.
62137
62138         * lib/error.c, error.h: Update copyright notice header to match glibc.
62139         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
62140         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
62141         Disable cancellation while printing error.
62142         * lib/error.h: Prepend __ to parameter names.
62143
62144 2003-09-26  Jim Meyering  <jim@meyering.net>
62145
62146         * lib/error.c (error_tail): Move some declarations
62147         into inner scope where the local variables are used.
62148
62149 2003-09-26  Bruno Haible  <bruno@clisp.org>
62150
62151         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
62152         stpncpy().
62153         Don't define stpncpy through config.h; it's now done through stpncpy.h.
62154
62155 2003-09-26  Bruno Haible  <bruno@clisp.org>
62156
62157         * lib/stpncpy.h (gnu_stpncpy): New declaration.
62158         (stpncpy): Define as alias for gnu_stpncpy.
62159         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
62160
62161 2003-09-25  Simon Josefsson  <jas@extundo.com>
62162
62163         * lib/xgetdomainname.h: New file.
62164         * lib/xgetdomainname.c: New file.
62165
62166 2003-09-25  Simon Josefsson  <jas@extundo.com>
62167             Bruno Haible  <bruno@clisp.org>
62168
62169         * modules/getdomainname: New file.
62170         * modules/xgetdomainname: New file.
62171         * MODULES.html.sh (func_all_modules): Add getdomainname,
62172         xgetdomainname.
62173
62174 2003-09-25  Simon Josefsson  <jas@extundo.com>
62175             Bruno Haible  <bruno@clisp.org>
62176
62177         * m4/getdomainname.m4: New file.
62178
62179 2003-09-25  Simon Josefsson  <jas@extundo.com>
62180             Bruno Haible  <bruno@clisp.org>
62181
62182         * lib/getdomainname.h: New file.
62183         * lib/getdomainname.c: New file.
62184
62185 2003-09-25  Karl Berry  <karl@gnu.org>
62186
62187         * lib/argp-fmtstream.c, argp-help.c: update from libc.
62188
62189 2003-09-25  Karl Berry  <karl@gnu.org>
62190
62191         * config/install-sh: update from automake.
62192
62193 2003-09-25  Bruno Haible  <bruno@clisp.org>
62194
62195         * modules/version-etc-2: New file, from modules/version-etc with
62196         modifications.
62197         * MODULES.html.sh (func_all_modules): Add version-etc-2.
62198
62199 2003-09-25  Bruno Haible  <bruno@clisp.org>
62200
62201         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
62202         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
62203
62204 2003-09-24  Simon Josefsson  <jas@extundo.com>
62205
62206         * modules/xgethostname: Add xgethostname.h.
62207
62208 2003-09-24  Paul Eggert  <eggert@twinsun.com>
62209
62210         * lib/linebuffer.c (freebuffer): Don't free the argument, just
62211         the buffer associated with the argument.  Bug reported by
62212         Simon Josefsson.
62213
62214 2003-09-24  Paul Eggert  <eggert@twinsun.com>
62215
62216         * README: Document assumptions that 'int' is at least 32 bits
62217         wide, that integer arithmetic is 2's complement without overflow,
62218         that there are no holes in integer values, that adding sizes of
62219         two nonoverlapping objects can't overflow, and that all-bits-zero
62220         yields scalar zero.  Fix spelling and capitalization typos.
62221
62222 2003-09-19  Karl Berry  <karl@gnu.org>
62223
62224         * lib/argp.h: update from libc.
62225
62226 2003-09-17  Paul Eggert  <eggert@twinsun.com>
62227
62228         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
62229         to avoid spurious warnings like "AC_RUN_IFELSE was called before
62230         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
62231
62232 2003-09-17  Paul Eggert  <eggert@twinsun.com>
62233
62234         * gnulib-tool: Use "test -h", not "test -L", for portability
62235         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
62236         (tags_regexp): Remove, since \| doesn't conform to POSIX.
62237         (sed_extract_prog): Issue s commands one-by-one, rather than
62238         using \| in one s command.
62239
62240 2003-09-16  Paul Eggert  <eggert@twinsun.com>
62241
62242         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
62243         input error, instead of returning NULL the next time we are called
62244         (and therefore losing track of errno).
62245
62246 2003-09-16  Bruno Haible  <bruno@clisp.org>
62247
62248         * gnulib-tool (func_create_testdir): Warn about duplicated
62249         dependencies.
62250
62251 2003-09-15  Paul Eggert  <eggert@twinsun.com>
62252
62253         * modules/argmatch, modules/fatal, modules/obstack,
62254         modules/xalloc, modules/xgethostname: Sort dependencies by
62255         importance, not alphabetically.
62256
62257 2003-09-15  Paul Eggert  <eggert@twinsun.com>
62258
62259         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
62260         fails, so that the caller gets the proper errno.
62261
62262         * lib/readutmp.c (read_utmp): Likewise.
62263         Check for fstat error.  Close stream and free storage
62264         when failing.
62265
62266 2003-09-14  Karl Berry  <karl@gnu.org>
62267
62268         * config/srclist.txt (strdup.c): disable for c89 changes.
62269
62270 2003-09-14  Jim Meyering  <jim@meyering.net>
62271
62272         * lib/getloadavg.c: Correct cpp indentation.
62273         * lib/strdup.c: Likewise.
62274         * lib/vasnprintf.c: Likewise.
62275
62276 2003-09-14  Bruno Haible  <bruno@clisp.org>
62277
62278         * modules/fwriteerror: New file.
62279         * MODULES.html.sh (func_all_modules): Add fwriteerror.
62280
62281 2003-09-14  Bruno Haible  <bruno@clisp.org>
62282
62283         * lib/fwriteerror.h: New file.
62284         * lib/fwriteerror.c: New file.
62285
62286 2003-09-12  Paul Eggert  <eggert@twinsun.com>
62287
62288         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
62289         modules/xgethostname, modules/xalloc: Depend on exit.
62290
62291 2003-09-12  Paul Eggert  <eggert@twinsun.com>
62292
62293         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
62294
62295         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
62296         and AC_MINIX, too, so that their extensions are available.
62297
62298         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
62299         This macro has been superseded by gl_BACKUPFILE.
62300
62301         More patches to assume C89 or better.
62302
62303         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
62304
62305         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
62306         unconditionally.
62307         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
62308         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
62309         Include <string.h>, <stdlib.h> unconditionally.
62310         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
62311         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
62312         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
62313         headers or for string.h.
62314         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
62315         or strtoul.
62316
62317         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
62318         headers.
62319         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
62320         * m4/userspec.m4 (gl_USERSPEC): Likewise.
62321         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
62322         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
62323         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
62324         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
62325         memcpy, memset.
62326         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
62327         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
62328         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
62329         strtol.
62330         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
62331         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
62332         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
62333         strtoul.
62334
62335 2003-09-12  Paul Eggert  <eggert@twinsun.com>
62336
62337         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
62338         * lib/obstack.c [!defined _LIBC]: Likewise.
62339         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
62340         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
62341         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
62342
62343         More changes to assume C89 or better.
62344
62345         * lib/error.c (error_tail): Assume vprintf.
62346
62347         * lib/argmatch.c (getenv): Remove decl.
62348         * lib/progreloc.c (get_full_program_name): Define via prototype.
62349         * lib/setenv.c (clearenv): Likewise.
62350         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
62351         needed.
62352         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
62353         (malloc, memcpy): Remove decls.
62354         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
62355         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
62356         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
62357         (memcpy): Remove macro.
62358         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
62359         (__P): Remove.  All uses removed.
62360         (PTR): Remove.  All uses changed to void *.
62361         (CHAR_BIT, NULL): Remove.
62362         (spaces, zeros, memset_space, memset_zero)
62363         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
62364         Remove.
62365         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
62366         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
62367         Define with prototype.
62368         Remove now-unnecessary prototype decl.
62369         (extra_args_spec): Assume ANSI C.  All uses changed.
62370         (extra_args_spec_iso): Remove.
62371         (my_strftime, emacs_strftimeu): Define via prototype.
62372         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
62373         unconditionally.
62374         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
62375         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
62376         (strtoul, strtol): Remove decls.
62377         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
62378         LONG_MAX): Remove.
62379         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
62380         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
62381         (LOCALE_PARAM_PROTO): New macro.
62382         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
62383         (INTERNAL (strtol), strtol): Define with a prototype.
62384         (PARAMS): Remove.  All uses removed.
62385         * lib/tempname.c: Include <string.h> unconditionally.
62386         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
62387         * lib/xgethostname.c (main): Define with a prototype.
62388         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
62389         Include <stdlib.h> unconditionally.
62390         (calloc, malloc, realloc, free): Remove decls.
62391         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
62392         Include <stdlib.h> unconditionally.  Sort include file names.
62393         (strtod): Remove.
62394         (xstrtod): Define with a prototype.
62395         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
62396         (strtol, strtoul): Remove decls.
62397
62398 2003-09-11  Paul Eggert  <eggert@twinsun.com>
62399
62400         More patches to assume C89 or better.
62401         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
62402         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
62403         string.h, memchr, STDC_HEADERS.
62404
62405 2003-09-11  Paul Eggert  <eggert@twinsun.com>
62406
62407         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
62408         Include <stdlib.h>, <string.h> unconditionally.
62409         Remove now-unnecessary cast to char *.
62410         * lib/strnlen.c: Include <string.h> unconditionally.
62411         * lib/yesno.c (yesno): Define with a prototype.
62412
62413 2003-09-11  Bruno Haible  <bruno@clisp.org>
62414
62415         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
62416
62417 2003-09-10  Jim Meyering  <jim@meyering.net>
62418
62419         * lib/error.c: Correct indentation of cpp directives.
62420
62421 2003-09-10  Bruno Haible  <bruno@clisp.org>
62422
62423         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
62424         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
62425         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
62426         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
62427         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
62428         <stdlib.h> and <string.h> checks.
62429         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
62430         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
62431
62432 2003-09-10  Bruno Haible  <bruno@clisp.org>
62433
62434         * lib/strcspn.c: Include <string.h> unconditionally.
62435         * lib/strpbrk.c: Include <string.h> unconditionally.
62436         * lib/strstr.c: Include <string.h> unconditionally.
62437         * lib/unicodeio.c: Include <string.h> unconditionally.
62438         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
62439         * lib/unsetenv.c: Likewise.
62440         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
62441         * lib/yesno.c: Include <stdlib.h> unconditionally.
62442         (rpmatch): Add prototype.
62443
62444 2003-09-09  Paul Eggert  <eggert@twinsun.com>
62445
62446         More patches to assume C89 or better.
62447         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
62448         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
62449         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
62450         or for string.h.
62451         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
62452         stdlib.h.
62453         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
62454         C headers.
62455         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
62456         string.h.
62457         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
62458         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
62459         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
62460         or for string.h.
62461         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
62462         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
62463         C headers.
62464         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
62465         memcpy.
62466         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
62467         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
62468         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
62469         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
62470         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
62471         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
62472         string.h, free.
62473         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
62474         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
62475         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
62476         C headers, or for string.h.
62477         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
62478         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
62479         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
62480         headers, memory.h, stdlib.h, string.h, strings.h.
62481         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
62482         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
62483         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
62484         strchr.
62485         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
62486         headers, memory.h, string.h.
62487         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
62488         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
62489         free.
62490         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
62491         headers.
62492         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
62493         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
62494         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
62495         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
62496         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
62497
62498 2003-09-09  Paul Eggert  <eggert@twinsun.com>
62499
62500         More K&R removal.
62501
62502         * lib/acosl.c (main): Use a prototype.
62503         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
62504         tanl.c: Likewise.
62505
62506         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
62507
62508         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
62509         (getopt, etopt_long, getopt_long_only, _getopt_internal)
62510         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
62511         with a prototype.
62512         * lib/getopt.c (const): Remove macro.
62513         Include <string.h> unconditionally.
62514         (my_index): Remove; all uses changed to strchr.
62515         (strlen): Remove decl.
62516         (exchange): Remove forward decl; no longer needed.
62517         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
62518         Define with prototype.
62519         * lib/getopt1.c (const): Remove macro.
62520         (getopt_long, getopt_long_only, main): Define with prototype.
62521
62522         * lib/getugroups.c: Include <string.h> unconditionally.
62523
62524         * lib/getusershell.c: Include <stdlib.h> unconditionally.
62525         (getusershell, setusershell, endusershell, readname, main):
62526         Define with prototypes.
62527
62528         * lib/group-member.c: Include group-member.h first.
62529         Include <stdlib.h> unconditionally.
62530
62531         * lib/hard-locale.c: Include hard-locale.h first.
62532         Include <stdlib.h>, <string.h> unconditionally.
62533
62534         * lib/hash.c (free, malloc): Remove decls.
62535         Include <stdlib.h> unconditionally.
62536
62537         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
62538         (getenv): Do not declare.
62539
62540         * lib/idcache.c: Include <string.h> unconditionally.
62541
62542         * lib/long-options.c: Include long-options.h first, to test interface.
62543         Include <stdlib.h> unconditionally.
62544
62545         * lib/makepath.c: Include makepath.h first, to test interface.
62546         Include <stdlib.h> and <string.h> unconditionally.
62547
62548         * lib/linebuffer.c: Include <stdlib.h>.
62549         (free): Remove decl.
62550
62551         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
62552         stddef.h. rpl_malloc returns void *, not char *.
62553         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
62554         prototype.
62555
62556         * lib/md5.h: Include <limits.h> unconditionally.
62557         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
62558         (__P): Remove; all uses removed.
62559         * lib/md5.c: Include "md5.h" first.
62560         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
62561         md5_buffer, md5_process_bytes, md5_process_block):
62562         Define with prototypes.
62563         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
62564         * lib/sha.c: Include "sha.h" first.
62565         Include <stdlib.h>, <string.h> unconditionally.
62566
62567         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
62568         * lib/memcmp.c (__ptr_t): Likewise.
62569         * lib/memrchr.c (__ptr_t): Likewise.
62570         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
62571         Include <string.h> unconditionally.
62572         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
62573         * lib/memchr.c: Include <stdlib.h> unconditionally.
62574         * lib/memchr.c (LONG_MAX): Remove.
62575         * lib/memrchr.c (LONG_MAX): Likewise.
62576         * lib/memchr.c (__memchr): Define via a prototype.
62577         * lib/memrchr.c (__memrchr): Likewise.
62578         * lib/memcmp.c (__P): Remove, and remove all uses.
62579         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
62580         Remove forward decls; no longer needed.
62581         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
62582         Use types required by C89 in prototype.
62583
62584         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
62585         * lib/savedir.c: Likewise.
62586         * lib/mkdir.c (free): Remove decl.
62587         * lib/rmdir.c (rmdir): Define with a prototype.
62588         * lib/savedir.c: Include savedir.h first, to test interface.
62589
62590         * lib/mktime.c (STDC_HEADERS): Remove.
62591         Include <stdlib.h>, <string.h> unconditionally.
62592
62593         * lib/modechange.c: Include <stdlib.h> unconditionally.
62594         (malloc): Remove decl.
62595
62596         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
62597         (free): Remove decl.
62598
62599         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
62600         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
62601         (This type really should be intptr_t, but that's a C99ism.)
62602         (_obstack_memcpy): Remove: all uses changed to memcpy.
62603         Include <string.h> unconditionally.
62604         (struct obstack): Assume __STDC__ for types of members
62605         chunkfun, freefun, extra_arg.
62606         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
62607         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
62608         obstack_begin, obstack_specify_allocation,
62609         obstack_specify_allocation_with_arg, obstack_chunkfun,
62610         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
62611         Remove unprototyped decls and the macros that use them.
62612         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
62613         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
62614         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
62615         (defined __STDC__ && __STDC__)]:
62616         Remove nonprototyped code.
62617         Include <stdlib.h> unconditionally.
62618         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
62619         _obstack_allocated_p, _obstack_free, obstack_free,
62620         _obstack_memory_used, print_and_abort):
62621         Define using prototypes.
62622         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
62623         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
62624         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
62625         obstack_next_free, obstack_object_size, obstack_room) [0]:
62626         Remove unused, unprototyped code.
62627
62628         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
62629
62630         * lib/physmem.c (physmem_total, physmem_available, main): Define
62631         with prototypes.
62632
62633         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
62634         (main): Define with a prototype.
62635
62636         * lib/posixver.c (getenv): Remove decl.
62637
62638         * lib/putenv.c (malloc): Returns void *, not char *.
62639         Include <string.h> unconditionally.
62640         (strchr, memcpy, NULL): Do not define.
62641
62642         * lib/readtokens.c: Include readtokens.h first, to test interface.
62643         Include <stdlib.h>, <string.h> unconditionally.
62644         (init_tokenbuffer): Define with a prototype.
62645
62646         * lib/regex.c (PARAMS): Remove.  All uses removed.
62647         All uses of _RE_ARGS removed, too.
62648         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
62649         unconditionally.
62650         (bzero): Assume memset exists.
62651         (memcmp, memcpy, NULL): Remove.
62652         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
62653         char, or assignments to local vars of type signed char.
62654         (init_syntax_once, PREFIX(extract_number_and_incr),
62655         PREFIX(print_partial_compiled_pattern),
62656         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
62657         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
62658         PREFIX(regex_grow_registers), PREFIX(regex_compile),
62659         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
62660         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
62661         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
62662         wcs_compile_range, byte_compile_range, truncate_wchar,
62663         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
62664         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
62665         count_mbs_length, wcs_re_match_2_internal,
62666         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
62667         PREFIX(alt_match_null_string_p),
62668         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
62669         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
62670         regfree, PREFIX(extract_number)): Define with prototype.  Remove
62671         now-unnecessary declaration, if any.
62672         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
62673         regcomp, regexec):
62674         Remove now-unnecessary casts among pointer types.
62675         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
62676
62677         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
62678         (free): Remove decl.
62679
62680         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
62681
62682         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
62683         (free): Remove decl.
62684
62685         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
62686         * lib/xgetcwd.c: Likewise.
62687
62688         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
62689         (free): Remove decl.
62690
62691         * lib/strchrnul.c (strchrnul): Define with a prototype.
62692         Fix bug: c_in was not converted to char before searching.
62693
62694         The following changes are not K&R related:
62695
62696         * lib/group-member.h: Include <sys/types.h>, so that this file is
62697         self-contained.
62698         * lib/makepath.h: Likewise.
62699
62700         * lib/getusershell.c (readname, default_index, line_size, readname):
62701         Use size_t, not int, for sizes.
62702         (readname): If the size overflows, report an error instead of
62703         looping forever.
62704
62705 2003-09-09  Paul Eggert  <eggert@twinsun.com>
62706
62707         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
62708         libc.
62709
62710 2003-09-09  Paul Eggert  <eggert@twinsun.com>
62711
62712         * README: New section: portability guidelines.
62713
62714 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
62715
62716         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
62717         C89 spec.
62718
62719 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
62720
62721         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
62722
62723 2003-09-08  Paul Eggert  <eggert@twinsun.com>
62724
62725         Assume C89 or better; remove K&R cruft.
62726         A few of these changes were first proposed by Derek Robert Price
62727         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
62728
62729         * lib/addext.c: Include <string.h> unconditionally.
62730         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
62731         Don't declare getenv or malloc.
62732
62733         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
62734         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
62735         (NULL): Remove.
62736         (find_stack_direction, alloca): Use prototypes.
62737
62738         * lib/atexit.c (atexit): Define using a prototype.
62739
62740         * lib/basename.c, dirname.c, stripslash.c:
62741         Include <string.h> unconditionally.
62742
62743         * lib/bcopy.c: Include <stddef.h>.
62744         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
62745
62746         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
62747
62748         * lib/error.h (error, error_at_line, error_print_progname)
62749         [! (defined (__STDC__) && __STDC__)]: Remove decls.
62750         * lib/error.c: Include error.h first, to check interface.
62751         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
62752         (VA_START): Remove; all uses changeed to va_start.
62753         (exit, strerror): Remove decls.
62754         (error_print_progname): Prototype uncondionally.
62755         Don't include <errno.h>; no longer needed.
62756         (private_strerror): Remove.
62757         (error_tail): Always define.
62758         (error, error_at_line): Assume C89 or better; always use prototypes.
62759         * lib/fatal.c: Include "fatal.h" first, to test interface.
62760         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
62761         (VA_START): Remove; all uses changed to va_start.
62762         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
62763         this case.
62764         (exit): Remove decl.
62765         (fatal): Prototype unconditionally.  Assume va_start works.
62766         Abort at end, to pacify gcc.
62767
62768         * lib/euidaccess.c (main): Define with a prototype.
62769
62770         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
62771
62772         * lib/exitfail.c: Include <stdlib.h> unconditionally.
62773
62774         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
62775         prototypes.
62776         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
62777         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
62778         (getenv): Remove decl.
62779         (fnmatch): Define using a prototype.
62780         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
62781         (FCT): Define using a prototype.
62782
62783         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
62784
62785         * lib/gethostname.c: Include <stddef.h>.
62786         (gethostname): Define with prototype.  Length is size_t, not int.
62787
62788 2003-09-08  Paul Eggert  <eggert@twinsun.com>
62789
62790         Assume C89 or better; remove K&R cruft.
62791         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
62792         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
62793         string.h, getenv, malloc.
62794         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
62795         headers.
62796         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
62797         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
62798         do not check for strerror.
62799         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
62800         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
62801         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
62802         do not check for doprnt or vprintf.
62803         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
62804         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
62805
62806 2003-09-08  Paul Eggert  <eggert@twinsun.com>
62807
62808         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
62809         getversion.c should have been removed then, but was accidentally
62810         preserved.
62811
62812         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
62813         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
62814
62815 2003-09-08  Karl Berry  <karl@gnu.org>
62816
62817         * config/config.sub, config.guess, srclistvars.sh: update from savannah
62818                 config, forget about prep.
62819
62820         * config/depcomp, missing: update from automake.
62821
62822 2003-09-07  Paul Eggert  <eggert@twinsun.com>
62823
62824         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
62825         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
62826
62827 2003-09-07  Paul Eggert  <eggert@twinsun.com>
62828
62829         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
62830         copy_tm_result.  Bug reported by Simon Josefsson in
62831         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
62832
62833 2003-09-06  Paul Eggert  <eggert@twinsun.com>
62834
62835         * m4/time_r.m4: New file.
62836         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
62837         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
62838         is. Check for timegm declaration.
62839         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
62840         Do not check for gmtime_r.
62841         Replace mktime if __mktime_internal does not exist and if mktime
62842         hasn't been replaced already.
62843
62844 2003-09-06  Paul Eggert  <eggert@twinsun.com>
62845
62846         * lib/time_r.c, lib/time_r.h: New files.
62847
62848         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
62849         __localtime_r.
62850         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
62851         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
62852
62853         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
62854         __gmtime_r.
62855         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
62856         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
62857         Include <time_r.h>.
62858
62859         * lib/timegm.c: Switch to glibc implementation, with the following
62860         changes:
62861         [defined HAVE_CONFIG_H]: Include <config.h>.
62862         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
62863         (__mktime_internal) [!defined _LIBC]: New decl.
62864         (__gmtime_r) [!defined _LIBC]: New macro and function.
62865         (timegm): Use a prototype, since gnulib assumes C89.
62866         Do not bother declaring tmp to be const, as it's not really usefu.
62867         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
62868         (timegm): Declare only if HAVE_DECL_TIMEGM.
62869
62870 2003-09-06  Paul Eggert  <eggert@twinsun.com>
62871
62872         * MODULES.html.sh (func_all_modules): Add time_r.
62873         * modules/time_r: New file.
62874         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
62875         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
62876
62877 2003-09-03  Paul Eggert  <eggert@twinsun.com>
62878
62879         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
62880         Bug reported by Lute Kamstra in
62881         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
62882
62883         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
62884         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
62885         course with correspondingly smaller numbers for tomorrow and
62886         yesterday.  From Tadayoshi Funaba.  Originally installed into
62887         sh-utils on 1999-08-07, but the patch got lost (I guess during the
62888         coreutils merge?).
62889
62890 2003-08-31  Simon Josefsson  <jas@extundo.com>
62891
62892         * modules/timegm: New file.
62893         * MODULES.html.sh (func_all_modules): Add timegm.
62894
62895 2003-08-31  Simon Josefsson  <jas@extundo.com>
62896
62897         * m4/timegm.m4: New file.
62898
62899 2003-08-31  Simon Josefsson  <jas@extundo.com>
62900
62901         * lib/timegm.h: New file.
62902         * lib/timegm.c: New file.  Based on
62903         wget-1.8.2/src/http.c:mktime_from_utc.
62904
62905 2003-08-31  Karl Berry  <karl@gnu.org>
62906
62907         * lib/argp.h: update from libc.
62908
62909 2003-08-28  Bruno Haible  <bruno@clisp.org>
62910
62911         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
62912         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
62913         followed by '#define fnmatch fnmatch_posix' gives an error.
62914
62915 2003-08-28  Bruno Haible  <bruno@clisp.org>
62916
62917         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
62918         warning on QNX, which defines O_BINARY to 000000.
62919
62920 2003-08-27  Jim Meyering  <jim@meyering.net>
62921
62922         * m4/mkstemp.m4: Require that the system mkstemp be able to create
62923         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
62924         would fail after 32.  Reported by Danny Levinson.  Details here:
62925         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
62926
62927 2003-08-24  Bruno Haible  <bruno@clisp.org>
62928
62929         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
62930         MSVC7 <stdio.h> is included later.
62931
62932 2003-08-22  Simon Josefsson  <jas@extundo.com>
62933
62934         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
62935
62936 2003-08-20  Karl Berry  <karl@gnu.org>
62937
62938         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
62939
62940 2003-08-20  Bruno Haible  <bruno@clisp.org>
62941
62942         * modules/progname: New file.
62943         * MODULES.html.sh (func_all_modules): Add progname.
62944
62945 2003-08-20  Bruno Haible  <bruno@clisp.org>
62946
62947         * lib/progname.h: New file, from GNU gettext.
62948         * lib/progname.c: New file, from GNU gettext.
62949         * lib/progreloc.c: New file, from GNU gettext.
62950
62951 2003-08-19  Jim Meyering  <jim@meyering.net>
62952
62953         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
62954         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
62955
62956 2003-08-19  Bruno Haible  <bruno@clisp.org>
62957
62958         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
62959         more.
62960
62961 2003-08-19  Bruno Haible  <bruno@clisp.org>
62962
62963         * lib/xstrdup.c: Assume <string.h> exists.
62964
62965 2003-08-18  Paul Eggert  <eggert@twinsun.com>
62966
62967         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
62968         in makefile rules.
62969
62970 2003-08-18  Jim Meyering  <jim@meyering.net>
62971
62972         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
62973         * m4/lib-ld.m4: Likewise.
62974
62975 2003-08-18  Jim Meyering  <jim@meyering.net>
62976
62977         * lib/setenv.h: Indent nested cpp directive.
62978         * lib/vasnprintf.c: Remove trailing blanks.
62979
62980 2003-08-17  Simon Josefsson  <jas@extundo.com>
62981
62982         * modules/xstrndup: New file.
62983         * MODULES.html.sh (func_all_modules): Add xstrndup.
62984
62985 2003-08-17  Simon Josefsson  <jas@extundo.com>
62986
62987         * modules/argp: Fix autoconf macro name. Add more dependencies.
62988
62989 2003-08-17  Simon Josefsson  <jas@extundo.com>
62990
62991         * m4/xstrndup.m4: New file.
62992
62993 2003-08-17  Simon Josefsson  <jas@extundo.com>
62994
62995         * m4/argp.m4: New file.
62996
62997 2003-08-17  Simon Josefsson  <jas@extundo.com>
62998             Bruno Haible  <bruno@clisp.org>
62999
63000         * lib/xstrndup.h: New file.
63001         * lib/xstrndup.c: New file.
63002
63003 2003-08-17  Bruno Haible  <bruno@clisp.org>
63004
63005         * modules/strndup (Files, Include): Add lib/strndup.h.
63006
63007 2003-08-17  Bruno Haible  <bruno@clisp.org>
63008
63009         * modules/euidaccess (Files): Add lib/euidaccess.h.
63010
63011 2003-08-17  Bruno Haible  <bruno@clisp.org>
63012
63013         * lib/strndup.h: New file.
63014
63015 2003-08-17  Bruno Haible  <bruno@clisp.org>
63016
63017         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
63018         like AC_GNU_SOURCE.
63019         * modules/extensions (configure.ac): Comment out the invocation of
63020         gl_USE_SYSTEM_EXTENSIONS.
63021
63022 2003-08-16  Paul Eggert  <eggert@twinsun.com>
63023
63024         Merges from coreutils, etc.
63025         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
63026         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
63027         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
63028         fixing a typo.
63029         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
63030         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
63031
63032 2003-08-16  Paul Eggert  <eggert@twinsun.com>
63033
63034         Document merge from coreutils.
63035         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
63036         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
63037         * modules/utime: Add m4/utimes-null.m4.
63038
63039 2003-08-16  Paul Eggert  <eggert@twinsun.com>
63040
63041         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
63042         space, undoing this 2003-08-12 change:
63043         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
63044
63045 2003-08-16  Paul Eggert  <eggert@twinsun.com>
63046
63047         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
63048         strtoul.c from libc, undoing this 2003-08-12 change:
63049         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
63050
63051 2003-08-16  Jim Meyering  <jim@meyering.net>
63052
63053         Merges from coreutils.
63054         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
63055         prefix.  Adjust cache variables similarly.  Create 500 rather than
63056         just 300 files, to exercise bug on Darwin6.5, too.
63057         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
63058         $missing_dir.
63059         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
63060         AM_SYS_POSIX_TERMIOS.
63061         Reported by mkc@mathdogs.com.
63062         Also change use of $am_cv_sys_posix_termios
63063         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
63064         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
63065         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
63066         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
63067         in /proc/mounts until it finds one with matching device number.  This
63068         is unnecessary when the FILE argument *is* a mount point.  No stat call
63069         is necessary in that case.  So, disable the statvfs-testing code on
63070         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
63071         as RedHat bug# 84846.
63072         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
63073         to 1MB, so as not to render systems with no stack size limit (e.g.,
63074         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
63075         Include <unistd.h>.  On some systems,
63076         it is required for the definition of _SC_PAGESIZE.
63077
63078 2003-08-16  Jim Meyering  <jim@meyering.net>
63079
63080         Merge from coreutils.
63081         * lib/xstrtoimax.c: #else #if -> #elif.
63082         * lib/xstrtoumax.c: Likewise.
63083
63084 2003-08-16  Jim Meyering  <jim@meyering.net>
63085
63086         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
63087         * m4/utimes.m4: Removed.
63088         * m4/utimes-null.m4: Renamed from utimes.m4.
63089
63090         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
63091         to 1MB, so as not to render systems with no stack size limit (e.g.,
63092         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
63093         Include <unistd.h>.  On some systems,
63094         it is required for the definition of _SC_PAGESIZE.
63095
63096 2003-08-16  Jim Meyering  <jim@meyering.net>
63097         and Paul Eggert  <eggert@cs.ucla.edu>
63098
63099         Merges from coreutils, etc.
63100
63101         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
63102         using the latest version from cvs.  This avoids problems with #line
63103         directives using a vendor (Sun) compiler.
63104         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
63105         Don't set GETGROUPS_LIB here; now it's
63106         done via getgroups.m4's wrapper function.
63107         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
63108         rather than just in sh-util/configure.in, so that the
63109         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
63110         same.
63111         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
63112         AC_FUNC_GETLOADAVG where to find getloadavg.c.
63113         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
63114         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
63115         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
63116         Remove code that is now done by the newly-required macros.
63117         Append $(EXEEXT) to DF_PROG.
63118         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
63119         Do not invoke or require the following here,
63120         since prereq.m4 or some gnulib .m4 now does this for us:
63121         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
63122         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
63123         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
63124         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
63125         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
63126         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
63127         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
63128         AC_FUNC_OBSTACK.
63129         Do not replace the following functions, as this is now the job
63130         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
63131         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
63132         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
63133         atexit getpass, strdup, getpagesize.
63134         Replace 'raise'.
63135         Do not check for the following functions, as this is now the job
63136         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
63137         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
63138         setregid.
63139         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
63140         Check for sys/sysctl.h.
63141         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
63142         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
63143         of checking for ssize_t ourselves.
63144
63145         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
63146         Require every macro that gnulib/modules/* suggests for us.
63147         (jm_PREREQ_ADDEXT): New macro.
63148         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
63149         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
63150
63151         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
63152         (gl_PHYSMEM): Use it.
63153         Also check for `table' function.
63154         Check for new headers and functions.
63155         Add check for sys/sysmp.h.
63156         With suggestions from Kaveh Ghazi.
63157         Ignore headers that are present but cannot be compiled.  This
63158         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
63159         C 5.4.
63160
63161 2003-08-15  Paul Eggert  <eggert@twinsun.com>
63162
63163         Document merge from coreutils.
63164         * modules/userspec: Depend on posixver.
63165         * modules/strftime: Depend on tzset.
63166
63167 2003-08-15  Paul Eggert  <eggert@twinsun.com>
63168
63169         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
63170         rather than tab, after '#' in shell-script copyright notices.
63171         Suggested by Bruno Haible.
63172
63173 2003-08-15  Paul Eggert  <eggert@twinsun.com>
63174
63175         * config/srclist-update: Use three spaces, rather than tab, after '#'
63176         in shell-script copyright notices.  Suggested by Bruno Haible.
63177         Remove unnecessary parenthesization in regular expression.
63178
63179 2003-08-15  Jim Meyering  <jim@meyering.net>
63180
63181         Merge from coreutils.
63182         * lib/xgethostname.c: Include <stdlib.h>.
63183         (xghostname): Don't exit for anything other than memory-related
63184         failure; just return NULL.
63185         * lib/userspec.c: Include "posixver.h".
63186         (parse_user_spec): Accept `.' as a separator only
63187         in pre-POSIX-200112 mode.
63188         * lib/strtoimax.c: Use #elif rather than #else #if.
63189         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
63190         Remove function, now that we can rely on a working tzset function.
63191         [!_LIBC]: Ensure that the required autoconf test has been run.
63192         [!defined _NL_CURRENT && HAVE_STRFTIME]:
63193         Use underlying_strftime for %r.
63194         * lib/sha.c: Merge in some clean-up and optimization changes from
63195         glibc.
63196         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
63197         Ensure that it is a multiple of 64.
63198         Rearrange loop exit tests so as to avoid performing an
63199         additional fread after encountering an error or EOF.
63200         * lib/realloc.c: Update copyright date.
63201
63202 2003-08-15  Jim Meyering  <jim@meyering.net>
63203         and Paul Eggert  <eggert@twinsun.com>
63204
63205         Merge from coreutils.
63206         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
63207         member but strut utmpx does not.  Needed for AIX 4.3.3.
63208         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
63209
63210 2003-08-15  Jim Meyering  <jim@meyering.net>
63211         and Paul Eggert  <eggert@cs.ucla.edu>
63212
63213         Merges from coreutils, etc.
63214         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
63215         Require gl_FUNC_TZSET_CLOBBER.
63216         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
63217         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
63218         members.
63219
63220 2003-08-14  Paul Eggert  <eggert@twinsun.com>
63221
63222         Help the merge from coreutils.
63223         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
63224         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
63225         * m4/tzset.m4: Use it too.
63226
63227 2003-08-14  Paul Eggert  <eggert@twinsun.com>
63228
63229         * modules/tzset: New file.
63230
63231 2003-08-14  Jim Meyering  <jim@meyering.net>
63232
63233         Merges from coreutils.
63234         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
63235         variable names, rather than @FNMATCH_H@.
63236         * modules/alloca: Likewise for $(ALLOCA_H).
63237
63238         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
63239         the three copies of the literal target, `fnmatch.h'.
63240         * modules/alloca (alloca.h): Likewise.
63241
63242 2003-08-14  Jim Meyering  <jim@meyering.net>
63243
63244         Merge from coreutils.
63245         * m4/tzset.m4: New file.
63246         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
63247         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
63248         otherwise, AIX 5.1 systems would end up using the latter.
63249         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
63250         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
63251         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
63252         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
63253
63254 2003-08-14  Jim Meyering  <jim@meyering.net>
63255
63256         Merge from coreutils.
63257         * lib/obstack.h: Whitespace changes.
63258         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
63259         and xcalloc return values.
63260         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
63261         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
63262         hang on OSF/1 5.1 for DIR on both local and remote file systems.
63263         Reported by (and fix confirmed by) Nelson H. F. Beebe.
63264         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
63265         error from mntctl.
63266         Use mntctl's return value to drive the entry-processing loop, since
63267         we can't rely on the value of the vmt_length member in the last
63268         entry.  On some systems doing so could result in exhausting
63269         virtual memory.  Based in part on a patch from Mike Jetzer.
63270
63271 2003-08-14  Jim Meyering  <jim@meyering.net>
63272         and Paul Eggert  <eggert@twinsun.com>
63273
63274         Merges from coreutils, plus other fixes.
63275         * lib/physmem.c: Merge in portability changes from gcc/libiberty
63276         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
63277         for credits and details.  Thanks to Kaveh Ghazi for helping
63278         to keep these files in sync.
63279         (ARRAY_SIZE): Define it.
63280         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
63281         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
63282         (memcasecmp): Don't assume size_t fits in unsigned int.
63283         Remove casts and duplicate code.
63284         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
63285         (memcpy): Remove definition.
63286         Merge in some clean-up and optimization changes from glibc.
63287         [BLOCKSIZE]: Move definition to top of file.
63288         Ensure that it is a multiple of 64.
63289         Rearrange loop exit tests so as to avoid performing an
63290         additional fread after encountering an error or EOF.
63291         * lib/md5.h (md5_uintptr): Define.
63292         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
63293         return to the initial working directory.  Preserve errno
63294         for caller.
63295         * lib/idcache.c: Include "xalloc.h".
63296         (xmalloc, xrealloc): Remove decls.
63297         (getuser): Remove casts no longer required in C89.
63298         * lib/human.c: Include stdio.h, for sprintf.
63299         * lib/group-member.c: Include "xalloc.h".
63300         (xmalloc, xrealloc): Remove decls.
63301         (get_group_info): Remove casts no longer required in C89.
63302         * lib/getusershell.c (readname): Remove casts no longer required in
63303         C89.
63304         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
63305         * lib/getline.c: Whitespace fix, from coreutils.
63306
63307 2003-08-13  Paul Eggert  <eggert@twinsun.com>
63308
63309         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
63310         Check for isascii.
63311
63312         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
63313         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
63314         Undo previous (whitespace-only) change.
63315
63316 2003-08-13  Paul Eggert  <eggert@twinsun.com>
63317
63318         * lib/exclude.c: Include <ctype.h>
63319         (IN_CTYPE_DOMAIN): New macro.
63320         (is_space): New fn.
63321         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
63322         and empty lines.
63323
63324         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
63325         Undo previous (whitespace-only) change.
63326
63327 2003-08-13  Paul Eggert  <eggert@twinsun.com>
63328
63329         * config/srclist-update: Change update back to the old behavior,
63330         leaving whitespace alone.  Use one 'sed' command rather than a
63331         pipeline.
63332         (fixlicense): Now a variable, not a function.
63333         (remove_trailing_blanks): Remove.
63334         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
63335         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
63336         Undo previous (whitespace-only) change.
63337
63338 2003-08-12  Paul Eggert  <eggert@twinsun.com>
63339
63340         Merge from coreutils.
63341         * modules/euidaccess: Add lib_SOURCES, include for new
63342         file euidaccess.h
63343
63344 2003-08-12  Paul Eggert  <eggert@twinsun.com>
63345
63346         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
63347         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
63348         Normalize leading white space and remove trailing white space.
63349
63350         Merge from coreutils
63351         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
63352
63353         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
63354         0.12.1.  These files are now being upgraded automatically by
63355         ../config/srclist-update.
63356
63357 2003-08-12  Paul Eggert  <eggert@twinsun.com>
63358
63359         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
63360         Normalize leading white space and remove trailing white space.
63361         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
63362         notice, as per ../config/srclist-update.
63363
63364         Merge from coreutils.
63365         * lib/euidaccess.h: New file.
63366         * lib/euidaccess.c: Include it.
63367         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
63368         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
63369         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
63370
63371 2003-08-12  Paul Eggert  <eggert@twinsun.com>
63372
63373         * config/srclist-update: Add copyright notice.
63374         (remove_id_lines, remove_trailing_blanks): New constants.
63375         (fixfile): Use them to normalize spacing a bit in copied files.
63376         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
63377         Normalize leading white space and remove trailing white space.
63378
63379         * config/texinfo.tex: Sync with texinfo.
63380
63381         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
63382         strtoul.c from libc, to merge coreutils whitespace changes.
63383
63384         * config/srclist.txt: Get the following m4 files from gettext:
63385         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
63386         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
63387         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
63388         wint_t.m4.
63389
63390 2003-08-12  Karl Berry  <karl@gnu.org>
63391
63392         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
63393         been made.
63394
63395 2003-08-11  Paul Eggert  <eggert@twinsun.com>
63396
63397         * modules/gnu-source, m4/gnu-source.m4:
63398         Remove; we're assuming Autoconf 2.54 or later now.
63399         Suggested by Bruno Haible.
63400         * MODULES.html.sh (func_all_modules): Remove gnu-source.
63401
63402 2003-08-11  Bruno Haible  <bruno@clisp.org>
63403
63404         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
63405
63406 2003-08-11  Bruno Haible  <bruno@clisp.org>
63407
63408         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
63409         (vasnprintf): Use it instead of wcslen.
63410
63411 2003-08-11  Bruno Haible  <bruno@clisp.org>
63412
63413         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
63414         value to ensure that _Bool promotes to int. Use #define for _Bool when
63415         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
63416
63417 2003-08-10  Karl Berry  <karl@gnu.org>
63418
63419         * lib/regex.h: update from libc (whitespace fix).
63420
63421 2003-08-09  Paul Eggert  <eggert@twinsun.com>
63422
63423         Merge some files from coreutils.  These changes were
63424         originally made by Jim Meyering.
63425         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
63426         many older Unixes require this.
63427         * lib/alloca.c (alloca): Remove cast to argument of free;
63428         no longer needed in C89.
63429         * lib/alloca_.h, regex.h: Fix white space to match
63430         what GNU indent does.
63431
63432 2003-08-09  Paul Eggert  <eggert@twinsun.com>
63433
63434         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
63435         apparently Emacs's Unicode mode got confused before my 2003-08-05
63436         checkin.
63437
63438 2003-08-08  Paul Eggert  <eggert@twinsun.com>
63439
63440         * m4/extensions.m4: New file.
63441         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
63442         Require gl_USE_SYSTEM_EXTENSIONS.
63443         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
63444         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
63445
63446 2003-08-08  Paul Eggert  <eggert@twinsun.com>
63447
63448         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
63449         * modules/extensions, modules/gnu-source: New files.
63450         * modules/timespec, modules/unlocked-io: Depend on extensions.
63451
63452 2003-08-07  Paul Eggert  <eggert@twinsun.com>
63453
63454         * modules/restrict: New file.
63455         * MODULES.html.sh (func_all_modules): Add restrict.
63456         * modules/regex: Depend on restrict.
63457
63458 2003-08-07  Paul Eggert  <eggert@twinsun.com>
63459
63460         * m4/restrict.m4: New file.
63461         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
63462
63463 2003-08-07  Bruno Haible  <bruno@clisp.org>
63464
63465         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
63466         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
63467
63468 2003-08-07  Bruno Haible  <bruno@clisp.org>
63469
63470         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
63471         makes the module 'getndelim2' compatible with the module 'getline'.
63472
63473 2003-08-05  Paul Eggert  <eggert@twinsun.com>
63474
63475         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
63476         byte with "\201" to avoid glitches when editing that source file
63477         with multi-gnome-terminal.
63478
63479 2003-08-05  Paul Eggert  <eggert@twinsun.com>
63480
63481         * lib/bumpalloc.h: Remove.
63482
63483 2003-08-05  Paul Eggert  <eggert@twinsun.com>
63484
63485         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
63486         * modules/bumpalloc: Remove.
63487
63488 2003-08-04  Paul Eggert  <eggert@twinsun.com>
63489
63490         * lib/getloadavg.c: Change copyright notice and spacing to conform to
63491         GNU coding style.
63492
63493         Merge from coreutils.
63494         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
63495         1. From glibc.
63496         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
63497         from Karl Berry, implemented by Jim Meyering.
63498         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
63499         from Dmitry V. Levin.
63500         Remove anachronistic cast of xrealloc.
63501         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
63502         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
63503         type. Otherwise, it wouldn't compile with at least /bin/cc on
63504         ymp-cray-unicos9.0.2.X.
63505         Combine two mostly-identical uses of alloca into one.
63506         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
63507
63508 2003-08-04  Dave Love  <d.love@dl.ac.uk>
63509
63510         [From Emacs.]
63511
63512         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
63513         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
63514         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
63515         obsolete NLIST_NAME_UNION.
63516         [__GNU__]: Undef BSD and FSCALE.
63517         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
63518
63519 2003-08-03  Paul Eggert  <eggert@twinsun.com>
63520
63521         * lib/stdbool_.h (_Bool): Make it signed char, instead of
63522         an enum type, so that it's guaranteed to promote to int.  See:
63523         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
63524
63525 2003-08-03  Karl Berry  <karl@gnu.org>
63526
63527         * config/depcomp: update from automake.
63528
63529 2003-07-31  Paul Eggert  <eggert@twinsun.com>
63530
63531         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
63532         (strerror): Don't assume that a printable int fits in 14 bytes.
63533
63534 2003-07-31  Bruno Haible  <bruno@clisp.org>
63535
63536         * modules/getpass-gnu: New file.
63537         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
63538
63539 2003-07-31  Bruno Haible  <bruno@clisp.org>
63540
63541         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
63542
63543 2003-07-24  Karl Berry  <karl@gnu.org>
63544
63545         * config/missing: update from automake.
63546
63547 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
63548             Bruno Haible  <bruno@clisp.org>
63549
63550         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
63551         * lib/getline.c (getline, getdelim): Likewise.
63552         Remove _GNU_SOURCE define; now it's defined in config.h through
63553         m4/getline.m4.
63554
63555 2003-07-23  Karl Berry  <karl@gnu.org>
63556
63557         * config/config.sub: update from prep.
63558
63559 2003-07-22  Paul Eggert  <eggert@twinsun.com>
63560
63561         * modules/xalloc (Depends-on): Add exitfail.
63562         * modules/xmemcoll: Likewise.
63563
63564 2003-07-22  Paul Eggert  <eggert@twinsun.com>
63565
63566         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
63567         over-parenthesization in macros.
63568
63569         Sync with coreutils.
63570
63571         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
63572         required by C99.
63573
63574         Use `exit_failure' for xalloc and xmemcoll instead of their own
63575         private exit-failure variables.
63576         * lib/xalloc.h (xalloc_exit_failure): Remove.
63577         * lib/xmalloc.c: Likewise.  Include exitfail.h.
63578         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
63579         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
63580         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
63581         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
63582
63583 2003-07-20  Jim Meyering  <jim@meyering.net>
63584
63585         * modules/closeout (Depends-on): Add exitfail.
63586         Suggestion from Bruno Haible.
63587
63588 2003-07-19  Karl Berry  <karl@gnu.org>
63589
63590         * config/config.sub: update from prep.
63591
63592 2003-07-18  Paul Eggert  <eggert@twinsun.com>
63593
63594         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
63595         Remove.
63596         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
63597         to test that it can stand by itself.  Include "exitfail.h".
63598         Clients should set exit_failure instead.
63599         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
63600
63601 2003-07-18  Bruno Haible  <bruno@clisp.org>
63602
63603         * modules/getndelim2: New file.
63604         * modules/getline: Share files with module getndelim2.
63605         * modules/getnline: Depend on getndelim2 instead of sharing files with
63606         it. Add getnline.c to lib_SOURCES.
63607         * MODULES.html.sh (func_all_modules): Add getndelim2.
63608
63609 2003-07-18  Bruno Haible  <bruno@clisp.org>
63610
63611         * m4/getndelim2.m4: New file.
63612         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
63613         invoke gl_PREREQ_GETNDELIM2.
63614         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
63615         gl_PREREQ_GETNDELIM2.
63616         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
63617         gl_GETNDELIM2.
63618
63619 2003-07-18  Bruno Haible  <bruno@clisp.org>
63620
63621         * lib/getndelim2.h: New file.
63622         * lib/getndelim2.c: Make into a module of its own. Include config.h,
63623         getndelim2.h.
63624         (getndelim2): Make non-static. Change return type to ssize_t.
63625         * lib/getline.h: Change argument names.
63626         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
63627         * lib/getnline.c: Include getndelim2.h.
63628
63629 2003-07-18  Andreas Schwab  <schwab@suse.de>
63630
63631         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
63632
63633 2003-07-17  Karl Berry  <karl@gnu.org>
63634
63635         * config/config.sub: update from prep.
63636
63637 2003-07-17  Bruno Haible  <bruno@clisp.org>
63638
63639         * modules/getnline: New file.
63640         * modules/getline: Add lib/getndelim2.c to source file list.
63641         * MODULES.html.sh (func_all_modules): Add getnline.
63642
63643 2003-07-17  Bruno Haible  <bruno@clisp.org>
63644
63645         * m4/getnline.m4: New file.
63646
63647 2003-07-17  Bruno Haible  <bruno@clisp.org>
63648
63649         * m4/Makefile.am.in: Remove file.
63650         * m4/Makefile.am: Remove file.
63651         * m4/Makefile.in: Remove file.
63652
63653 2003-07-17  Bruno Haible  <bruno@clisp.org>
63654
63655         * lib/getnline.h: New file.
63656         * lib/getnline.c: New file.
63657         * lib/getndelim2.c: New file, extracted from getline.c.
63658         (getndelim2): Renamed from getdelim2, with added nmax argument.
63659         * lib/getline.c: Include getndelim2.c.
63660         (getdelim2): Moved out to getndelim2.c.
63661         (getline, getdelim): Update.
63662
63663 2003-07-17  Bruno Haible  <bruno@clisp.org>
63664
63665         * lib/Makefile.am: Remove file.
63666         * lib/Makefile.in: Remove file.
63667
63668 2003-07-17  Bruno Haible  <bruno@clisp.org>
63669
63670         * configure.in: Remove file.
63671         * Makefile.in: Remove file.
63672
63673 2003-07-17  Bruno Haible  <bruno@clisp.org>
63674
63675         * MODULES.html.sh: Put the </BODY> right before </HTML>.
63676
63677 2003-07-16  Karl Berry  <karl@gnu.org>
63678
63679         * config/srclist-update: was running fixlicense twice, which caused
63680                 texinfo.tex to be nullified for some reason.  Simplify,
63681                 $gplsrc is no longer needed as far as I can see?
63682
63683 2003-07-16  Jim Meyering  <jim@meyering.net>
63684
63685         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
63686
63687 2003-07-15  Paul Eggert  <eggert@twinsun.com>
63688
63689         * config/srclist.txt: Get the following files from gettext-runtime/intl
63690         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
63691         ref-del.sin.  From Bruno Haible.
63692         * config/srclist-update (fixfile): Change grep pattern again, since the
63693         previous fix didn't work (there was another trailing $).  Use
63694         '[$]' to escape the $s.
63695
63696 2003-07-15  Karl Berry  <karl@gnu.org>
63697
63698         * lib/vasnprintf.c: update from gettext.
63699
63700 2003-07-15  Karl Berry  <karl@gnu.org>
63701
63702         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
63703         gets expanded when surrounded by '$'.
63704
63705 2003-07-15  Jim Meyering  <jim@meyering.net>
63706
63707         * modules/save-cwd: Don't depend on error.  From Derek Price.
63708
63709 2003-07-15  Jim Meyering  <jim@meyering.net>
63710
63711         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
63712
63713 2003-07-14  Simon Josefsson  <jas@extundo.com>
63714
63715         * modules/mempcpy: New file.
63716         * MODULES.html.sh (func_all_modules): Add mempcpy.
63717
63718 2003-07-14  Simon Josefsson  <jas@extundo.com>
63719
63720         * m4/mempcpy.m4: New file.
63721
63722 2003-07-14  Simon Josefsson  <jas@extundo.com>
63723
63724         * lib/mempcpy.h: New file.
63725         * lib/mempcpy.c: New file.
63726
63727 2003-07-14  Paul Eggert  <eggert@twinsun.com>
63728
63729         * modules/getdate, modules/posixtm: Depend on mktime.
63730
63731 2003-07-14  Paul Eggert  <eggert@twinsun.com>
63732
63733         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
63734         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
63735         unicodeio.c, unicodeio.h, unlocked-io.h:
63736         Switch from LGPL to GPL.
63737
63738 2003-07-14  Paul Eggert  <eggert@twinsun.com>
63739
63740         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
63741         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
63742         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
63743         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
63744         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
63745         updated automatically by ../config/srclist-update.  This changes
63746         their license from LPGL to GPL.
63747
63748 2003-07-14  Paul Eggert  <eggert@twinsun.com>
63749
63750         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
63751         assumed to refer to the root of the most recent stable gettext version.
63752         * config/srclistvars.sh: Add defaults for eggert.
63753         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
63754         Match "This program" as well as "The program".  This is needed
63755         for gettext.
63756
63757 2003-07-14  Jim Meyering  <jim@meyering.net>
63758
63759         Don't emit diagnostics.  Let callers do that.
63760         * lib/save-cwd.c: Don't include "error.h".
63761         (save_cwd): Don't call error.  Ensure that errno is valid
63762         when returning nonzero.
63763
63764         * lib/save-cwd.h (restore_cwd): Update prototype.
63765         * lib/save-cwd.c (restore_cwd): Remove two parameters.
63766         Simplify.  Don't call error upon failure.  Let callers do that.
63767         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
63768         when auditing is enabled.  But don't bother updating the #if.
63769
63770 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
63771
63772         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
63773         it breaks C++ compilation.
63774         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
63775
63776 2003-07-10  Simon Josefsson  <jas@extundo.com>
63777
63778         * modules/strchrnul (Makefile.am): Add strchrnul.h.
63779
63780 2003-07-10  Jim Meyering  <jim@meyering.net>
63781
63782         * m4/clock_time.m4: Remove trailing blank.
63783         * m4/intmax_t.m4: Likewise.
63784
63785 2003-07-10  Jim Meyering  <jim@meyering.net>
63786
63787         * lib/vasnprintf.c: Remove trailing blanks.
63788         Make cpp indentation consistent.
63789
63790 2003-07-09  Paul Eggert  <eggert@twinsun.com>
63791
63792         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
63793         posixver.c, strftime.c, strnlen.c, strverscmp.c:
63794         Switch from LGPL to GPL.
63795
63796 2003-07-09  Paul Eggert  <eggert@twinsun.com>
63797
63798         * config/srclist.txt: Sort sublists.  Add
63799         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
63800         that differ from gnulib for one reason or another; we'd like this list
63801         to be smaller but for now let's document what we have.
63802
63803 2003-07-08  Paul Eggert  <eggert@twinsun.com>
63804
63805         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
63806         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
63807         and sweeter "eval x=$x".
63808         * config/srclist.txt: Get lib/argp* from glibc.
63809
63810 2003-07-07  Paul Eggert  <eggert@twinsun.com>
63811
63812         * lib/mktime.c: Fix some boundary cases and remove need for floating
63813         point.
63814
63815         Issue a compile-time diagnostic if time_t is floating point, or if
63816         two's complement arithmetic is not in effect, or if arithmetic
63817         right shift does not propagate the sign.  These assumptions were
63818         all in the original code but they weren't checked.
63819
63820         (TIME_T_MIDPOINT, verify): New macros.
63821         (__isleap): Remove; it has integer overflow problems.
63822         (leapyear): New function, without those problems.
63823         (ydhms_tm_diff): Remove; splitting into two parts.
63824         (ydhms_diff): New function, containing the arithmetic part of
63825         the old ydhms_tm_diff function.  Issue a compile-time
63826         diagnostic if we are not using C99 integer division.
63827         Avoid casts when possible.
63828         (guess_time_tm): New function, containing the checking part of
63829         the old ydhms_tm_diff function.  Return the new value, rather than
63830         the difference between it and the old.  Accept a new argument T
63831         so that *T specifies the old value.  Check for overflow in the result.
63832
63833         (__mktime_internal): Use a time_t offset, not a long int offset.
63834         This undoes the 2003-06-04 change, which is no longer needed now
63835         that we have better overflow checking.
63836         (localtime_offset): Likewise.
63837
63838         (__mktime_internal): Avoid harmful overflow on hosts where time_t
63839         and long are 64-bit but int is only 32-bit.
63840         (ydhms_diff): Use long int to store year1 and yday1.
63841         Issue a compile-time diagnostic if long int is not wide enough.
63842
63843         (__mktime_internal): Use long int to store adjusted year and yday.
63844         Use plain C rather than preprocessor commands, if that doesn't
63845         affect efficiency.
63846         Check for overflow (and try to repair) after each probe
63847         rather than checking only at the very end.  This avoids some bugs
63848         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
63849         does not equal GMT offset at maximum time).
63850         Use integer to check for overflow rather than floating point; this
63851         is more portable to non-IEEE hosts, and is a tad faster.
63852         When we detect that we are oscillating between two values,
63853         don't check whether tm_isdst has the requested value, since
63854         we already know the answer.  When tm_isdst has the wrong value,
63855         use a different heuristic to find the right one, based on the
63856         extreme values actually observed in practice in tz2003a,
63857         rather than the (overly optimistic) "previous 3 calendar quarters".
63858
63859         (not_equal_tm, print_tm, check_result): Use "const T" rather than
63860         "T const" to accommodate glibc style.
63861         (check_result): Use less-confusing report format.  "long" -> "long int.
63862         (main): Likewise.
63863         Don't loop if the iteration overflows time_t.
63864         Allow a negative step in the iteration.
63865
63866 2003-07-06  Karl Berry  <karl@gnu.org>
63867
63868         * config/depcomp: update from automake.
63869         * config/config.sub: update from prep.
63870
63871 2003-07-03  Karl Berry  <karl@gnu.org>
63872
63873         * config/config.guess: update from prep.
63874
63875 2003-07-01  Paul Eggert  <eggert@twinsun.com>
63876
63877         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
63878         xreadlink.c now includes it unconditionally.
63879
63880 2003-07-01  Paul Eggert  <eggert@twinsun.com>
63881
63882         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
63883         having it depend on HAVE_SYS_TYPES_H.
63884
63885 2003-07-01  Bruno Haible  <bruno@clisp.org>
63886
63887         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
63888         <sys/types.h> should be sufficient.
63889         Reported by Paul Eggert.
63890
63891 2003-06-26  Karl Berry  <karl@gnu.org>
63892
63893         * config/depcomp: update from automake.
63894
63895 2003-06-26  Bruno Haible  <bruno@clisp.org>
63896
63897         * modules/human: Depend on module stdbool.
63898
63899 2003-06-25  Bruno Haible  <bruno@clisp.org>
63900
63901         * modules/readlink: New file.
63902         * modules/xreadlink: Depend on it.
63903         * MODULES.html.sh (func_all_modules): Add readlink.
63904
63905 2003-06-25  Bruno Haible  <bruno@clisp.org>
63906
63907         * m4/readlink.m4: New file.
63908
63909 2003-06-25  Bruno Haible  <bruno@clisp.org>
63910
63911         * lib/readlink.c: New file.
63912
63913 2003-06-22  Karl Berry  <karl@gnu.org>
63914
63915         * config/srclist.txt: update mkinstalldirs from automake.
63916         * config/mkinstalldirs: update.
63917
63918 2003-06-22  Bruno Haible  <bruno@clisp.org>
63919
63920         Portability to mingw32.
63921         * m4/ssize_t.m4: New file, from GNU gettext.
63922         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
63923         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
63924
63925 2003-06-22  Bruno Haible  <bruno@clisp.org>
63926
63927         * modules/safe-read: Add m4/ssize_t.m4.
63928         * modules/xreadlink: Add m4/ssize_t.m4.
63929
63930 2003-06-20  Bruno Haible  <bruno@clisp.org>
63931
63932         Assume C89, so PARAMS isn't needed.
63933         * lib/unicodeio.h (PARAMS): Remove.
63934         * lib/unicodeio.c: Don't use PARAMS.
63935
63936 2003-06-18  Karl Berry  <karl@gnu.org>
63937
63938         * config/config.{guess,sub}: update from prep.
63939
63940 2003-06-18  Jim Meyering  <jim@meyering.net>
63941
63942         Merge changes from coreutils.
63943         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
63944         Remove explicit declarations of xmalloc and realloc.
63945         Include xalloc.h.
63946         (read_utmp): Remove anachronistic cast of xmalloc.
63947
63948 2003-06-17  Paul Eggert  <eggert@twinsun.com>
63949
63950         Assume C89, so PARAMS isn't needed.
63951         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
63952         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
63953         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
63954         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
63955         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
63956         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
63957         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
63958         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
63959         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
63960         lib/xstrtod.h, lib/xstrtol.h: Likewise.
63961         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
63962         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
63963         no longer needed. Anyway, config.h should always be included before any
63964         other file.
63965
63966 2003-06-11  Simon Josefsson  <jas@extundo.com>
63967
63968         * modules/sysexits: New file.
63969         * MODULES.html.sh (func_all_modules): Add sysexits.
63970
63971 2003-06-11  Simon Josefsson  <jas@extundo.com>
63972
63973         * lib/sysexit_.h: New file.
63974
63975 2003-06-11  Derek Price  <derek@ximbiot.com>
63976
63977         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
63978         necessary.
63979
63980 2003-06-11  Bruno Haible  <bruno@clisp.org>
63981
63982         * m4/sysexits.m4: New file.
63983
63984 2003-06-10  Simon Josefsson  <jas@extundo.com>
63985
63986         * lib/argp.h: New file, from glibc.
63987         * lib/argp-ba.c: New file, from glibc.
63988         * lib/argp-eexst.c: New file, from glibc.
63989         * lib/argp-fmtstream.c: New file, from glibc.
63990         * lib/argp-fmtstream.h: New file, from glibc.
63991         * lib/argp-fs-xinl.c: New file, from glibc.
63992         * lib/argp-help.c: New file, from glibc.
63993         * lib/argp-namefrob.h: New file, from glibc.
63994         * lib/argp-parse.c: New file, from glibc.
63995         * lib/argp-pv.c: New file, from glibc.
63996         * lib/argp-pvh.c: New file, from glibc.
63997         * lib/argp-xinl.c: New file, from glibc.
63998
63999 2003-06-10  Simon Josefsson  <jas@extundo.com>
64000
64001         * modules/strchrnul: New file.
64002
64003 2003-06-10  Simon Josefsson  <jas@extundo.com>
64004
64005         * modules/argp: New file.
64006
64007 2003-06-10  Simon Josefsson  <jas@extundo.com>
64008
64009         * m4/strchrnul.m4: New file.
64010
64011 2003-06-10  Simon Josefsson  <jas@extundo.com>
64012
64013         * lib/strchrnul.h: New file.
64014         * lib/strchrnul.c: New file.
64015
64016 2003-06-10  Bruno Haible  <bruno@clisp.org>
64017
64018         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
64019
64020 2003-06-07  Karl Berry  <karl@gnu.org>
64021
64022         * config/config.{guess,sub}: update from prep.
64023
64024 2003-06-07  Jim Meyering  <jim@meyering.net>
64025
64026         * modules/strtod: Use $(...) notation, not @...@ for
64027         AC_REPLACE'd variables.
64028         * modules/localcharset: Likewise.
64029
64030 2003-06-07  Jim Meyering  <jim@meyering.net>
64031
64032         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
64033         in place of my name in the copyright comment.
64034         Remove definition and uses of __P.
64035
64036         From coreutils.
64037         * lib/stat.c: Don't declare xmalloc explicitly.
64038         Instead, include "xalloc.h".
64039         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
64040         xrealloc, and xcalloc return values.
64041         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
64042         Improve comment.
64043         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
64044
64045 2003-06-07  Bruno Haible  <bruno@clisp.org>
64046
64047         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
64048         avoid AC_CONFIG_LINKS.
64049         * modules/fnmatch (Makefile.am): Use explicit creation rule for
64050         fnmatch.h, to avoid AC_CONFIG_LINKS.
64051         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
64052
64053 2003-06-07  Bruno Haible  <bruno@clisp.org>
64054
64055         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
64056         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
64057         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
64058         directory.
64059         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
64060         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
64061         directory.
64062
64063 2003-06-06  Jim Meyering  <jim@meyering.net>
64064
64065         Merge from coreutils.
64066         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
64067         Consolidate declarations and initializations of *_base* locals.
64068
64069         Merge from coreutils.
64070         This avoids a core dump on systems without GNU putenv,
64071         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
64072         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
64073         (unsetenv): New static function, from GNU libc.
64074         (rpl_putenv): Use it.
64075
64076         * lib/modechange.c: Remove trailing blanks.
64077
64078         Merge from coreutils.
64079         * lib/fsusage.c: Remove declaration of statfs.
64080         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
64081
64082         * lib/posixtm.c: Include <stdbool.h> unconditionally.
64083
64084 2003-06-06  Jim Meyering  <jim@meyering.net>
64085
64086         * lib/stdbool_.h: Renamed from stdbool.h.in.
64087
64088 2003-06-06  Jim Meyering  <jim@meyering.net>
64089             Bruno Haible  <bruno@clisp.org>
64090
64091         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
64092         Adjust Makefile.am snippet not to redirect directly to target.
64093         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
64094
64095 2003-06-05  Paul Eggert  <eggert@twinsun.com>
64096
64097         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
64098         mismatch, look in future quarters as well as past.  This fixes a
64099         bug when processing fall-backwards gaps immediately after a long
64100         period of daylight-saving time.
64101
64102         * lib/mktime.c: Assume freestanding C89 or better.
64103         (HAVE_LIMITS_H): Remove.  Assume it's 1.
64104         (__P): Remove; not used.
64105         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
64106         (mktime, not_equal_tm, print_tm, check_result,
64107         main): Use prototypes.  Use const * where appropriate.
64108         (main): Fix typo in testing code that uncovered by above changes.
64109         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
64110
64111 2003-06-04  Paul Eggert  <eggert@twinsun.com>
64112
64113         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
64114         locale.h, localeconv.  This merges changes from coreutils.
64115
64116         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
64117         It can be removed after the next Autoconf is released.
64118         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
64119         needed.
64120
64121 2003-06-04  Paul Eggert  <eggert@twinsun.com>
64122
64123         * lib/mktime.c: Fix Debian bug 177940
64124         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
64125         (localtime_offset): Now long int, not time_t, because we want it
64126         to be guaranteed to be signed.  All uses changed.
64127         (__mktime_internal): If overflow would occur when adding offset,
64128         don't add it.
64129
64130         Merge 'human' changes from coreutils.  Rewrite to support
64131         locale-specific notations like thousands separators.
64132         * lib/human.c: Simplify authorship notice.
64133         Include human.h immediately after config.h.
64134         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
64135         <limits.h>: Do not include, since human.h does.
64136         (SIZE_MAX, UINTMAX_MAX): New macros.
64137         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
64138         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
64139         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
64140         (power_letter): Renamed from suffixes.
64141         (generate_suffix_backwards): Remove.
64142         (adjust_value): Now takes int style (because of human.h changes)
64143         and long double value (for greater precision on some platforms).
64144         (group_number): New function.
64145         (human_readable): Use it.  Use integer options, not enum.
64146         Put the options before the sizes in the arg list.
64147         Support all the new options.
64148         The old human_readable function has been removed;
64149         use inttostr.h instead.
64150         (human_readable, default_block_size, humblock):
64151         Use uintmax_t, not int, for block sizes.
64152         (human_readable_inexact, block_size_types): Remove.
64153         (block_size_opts): New constant.
64154         (human_options): Renamed from human_block_size, with new signature
64155         that allows block sizes up to UINTMAX_MAX.  All callers changed.
64156         * lib/human.h: Add copyright and authorship notice.
64157         Include <limits.h> and <stdbool.h> unconditionally.
64158         (PARAMS): Remove.  All uses removed.
64159         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
64160         (enum human_inexact_style): Remove tag; now a nameless enum.
64161         (human_floor, human_ceiling, human_round_to_even): Now have
64162         values 2, 0, 1 rather than -1, 1, 0.
64163         (human_group_digits, human_suppress_point_zero, human_autoscale,
64164         human_base_1024, human_SI, human_B): New constants.
64165         (human_readable_inexact, human_block_size): Remove.
64166         (human_readable): Size args are now uintmax_t, not int.
64167         (human_options): New decl.
64168
64169         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
64170         unnecessary now that we assume C89 or better.  This change
64171         imported from coreutils.
64172
64173         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
64174         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
64175         in the 2003-05-30 sync from glibc.
64176
64177         .h files should stand alone, but we shouldn't include <sys/types.h>
64178         if we can get away with just <stddef.h>.
64179
64180         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
64181         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
64182         rather than <sys/types.h>, as we merely need size_t.
64183         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
64184         to get size_t.
64185         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
64186         Include <stdio.h>, to get FILE.
64187         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
64188         memcasecmp.h has included <stddef.h> and all we need is size_t.
64189         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
64190         our interface, instead of including <sys/types.h>
64191
64192 2003-06-04  Paul Eggert  <eggert@twinsun.com>
64193
64194         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
64195         now, as glibc mktime is buggy on non-glibc systems.
64196
64197 2003-06-03  Karl Berry  <karl@gnu.org>
64198
64199         * config/config.sub: update from prep.
64200
64201 2003-06-02  Paul Eggert  <eggert@twinsun.com>
64202
64203         [from coreutils]
64204         Fix some minor time-related bugs with POSIX time arguments.
64205         Some valid time stamps were being rejected (notably -1, and
64206         time stamps before 1900 on 64-bit hosts).  And some invalid
64207         time stamps were being accepted, e.g. September 31.
64208
64209         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
64210         that we can return (time_t) -1 successfully.
64211         * lib/posixtm.c: Likewise.
64212         [HAVE_STDBOOL_H]: Include <stdbool.h>.
64213         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
64214         (t): Remove static var.
64215         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
64216         of static var.  All uses changed.
64217         (year): Do not reject years before 1900; they can occur with
64218         64-bit time_t.
64219         (posix_time_parse): Do not check for out-of-range components;
64220         that is now the caller's responsibility, since our checks were
64221         only approximations.
64222         (posixtime): Use mktime to check for out-of-range components,
64223         since it knows them exactly.
64224         If mktime returns (time_t) -1, check whether an error actually occurred
64225         by invoking localtime on -1.
64226         (main) [TEST_POSIXTIME]: Check for input data errors, and report
64227         posixtime failures better.
64228         Improve the test data (in comments only).
64229
64230 2003-06-02  Karl Berry  <karl@gnu.org>
64231
64232         * config/mkinstalldirs (version): new variable.
64233         (--version): new option.
64234         (usage): improve message.
64235
64236 2003-05-30  Karl Berry  <karl@gnu.org>
64237
64238         * lib/mktime.c: update from libc.
64239
64240 2003-05-30  Bruno Haible  <bruno@clisp.org>
64241
64242         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
64243         * config/config.rpath: Upgrade to gettext-0.12.1.
64244
64245 2003-05-30  Bruno Haible  <bruno@clisp.org>
64246
64247         * m4/gettext.m4: Upgrade to gettext-0.12.1.
64248         * m4/nls.m4: New file, from gettext-0.12.1.
64249         * m4/po.m4: New file, from gettext-0.12.1.
64250         * m4/progtest.m4: Upgrade to gettext-0.12.1.
64251
64252 2003-05-30  Bruno Haible  <bruno@clisp.org>
64253
64254         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
64255         * lib/localcharset.h: Likewise.
64256         * lib/localcharset.c: Likewise.
64257
64258 2003-05-29  Karl Berry  <karl@gnu.org>
64259
64260         * config/config.rpath: update from gettext.
64261
64262 2003-05-28  Paul Eggert  <eggert@twinsun.com>
64263
64264         Assume the headers required for C89 freestanding compilers.
64265         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
64266         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
64267         * m4/human.m4 (gl_HUMAN): Likewise.
64268         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
64269         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
64270         * m4/userspec.m4 (gl_USERSPEC): Likewise.
64271         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
64272         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
64273         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
64274
64275 2003-05-28  Paul Eggert  <eggert@twinsun.com>
64276
64277         Assume the headers required for C89 freestanding compilers.
64278         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
64279         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
64280         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
64281         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
64282         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
64283         define, since <limits.h> is guaranteed to do that.
64284         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
64285         * lib/exclude.c: Include <stdbool.h> unconditionally.
64286         * lib/tempname.c: Include <stddef.h> unconditionally.
64287         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
64288         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
64289         <stddef.h> does that.
64290         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
64291         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
64292         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
64293         needed.
64294         * lib/xstrtol.c: Likewise.
64295         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
64296         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
64297
64298         * lib/addext.c (addext): Use assignment rather than cast, to avoid
64299         warnings on some platforms.
64300
64301         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
64302         arbitrarily.
64303
64304 2003-05-26  Jim Meyering  <jim@meyering.net>
64305
64306         Merge in a change from coreutils:
64307         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
64308         that is guaranteed to be `no'.  Use `no_such_member' to indicate
64309         that condition, rather than `-1' which is slightly misleading.
64310         Change the name of the cache variable to have the gl_ prefix.
64311         Prompted by a patch from Richard Dawe for DJGPP.
64312
64313 2003-05-24  Karl Berry  <karl@gnu.org>
64314
64315         * config/config.guess: update from prep.
64316
64317 2003-05-22  Karl Berry  <karl@gnu.org>
64318
64319         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
64320
64321 2003-05-20  Karl Berry  <karl@gnu.org>
64322
64323         * config/config.guess: update from prep.
64324
64325 2003-05-18  Karl Berry  <karl@gnu.org>
64326
64327         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
64328         might actually be set by the user.
64329
64330         * config/depcomp, install-sh, mdate-sh: update from automake.
64331
64332 2003-05-17  Bruno Haible  <bruno@clisp.org>
64333
64334         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
64335         invalid expansion for AC_EGREP_CPP.
64336         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
64337         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
64338         Suggested by Akim Demaille <akim@epita.fr> in
64339         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
64340
64341 2003-05-12  Jim Meyering  <jim@meyering.net>
64342
64343         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
64344         the space-padded-by-default conversion specifiers, %e, %k, %l.
64345
64346 2003-05-12  Bruno Haible  <bruno@clisp.org>
64347
64348         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
64349         the string is longer than 4 KB.
64350
64351 2003-05-11  Karl Berry  <karl@gnu.org>
64352
64353         * config/config.{guess,sub}: update from prep.
64354
64355 2003-05-09  Bruno Haible  <bruno@clisp.org>
64356
64357         * modules/error: Add m4/strerror_r.m4 to file list.
64358
64359 2003-05-03  Bruno Haible  <bruno@clisp.org>
64360
64361         Upgrade to Unicode-4.0.
64362         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
64363         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
64364         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
64365         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
64366         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
64367         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
64368         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
64369         Change width of U+E0100..U+E01EF from 1 to 0.
64370
64371 2003-04-25  Jim Meyering  <jim@meyering.net>
64372
64373         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
64374         of type size_t, not int.
64375
64376 2003-04-25  Bruno Haible  <bruno@clisp.org>
64377
64378         * lib/copy-file.c: Include <stddef.h>, for size_t.
64379
64380 2003-04-21  Paul Eggert  <eggert@twinsun.com>
64381
64382         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
64383         code which expansion is under static control.  Patch imported from
64384         Akim Demaille's patch to Bison; see
64385         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
64386
64387 2003-04-14  Bruno Haible  <bruno@clisp.org>
64388
64389         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
64390
64391 2003-04-11  Jim Meyering  <jim@meyering.net>
64392
64393         Merge changes from Coreutils.
64394
64395         2003-03-22  Jim Meyering  <jim@meyering.net>
64396
64397         * lib/strftime.c (widen): Cast alloca return value to proper type.
64398
64399         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
64400
64401         From GNU libc.
64402         * lib/strftime.c (my_strftime): Handle very large width
64403         specifications for numeric values correctly.  Improve checks for
64404         overflow.
64405
64406         2003-01-19  Jim Meyering  <jim@meyering.net>
64407
64408         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
64409         definitions.
64410         (nl_get_alt_digit) [! defined my_strftime]: Define.
64411         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
64412         _nl_get_alt_digit and _nl_get_walt_digit.
64413
64414         * lib/strftime.c (my_strftime): Merge in locale-related changes from
64415         libc. These changes have no effect outside of _LIBC.
64416
64417 2003-04-10  Bruno Haible  <bruno@clisp.org>
64418
64419         * modules/findprog: New file.
64420         * MODULES.html.sh (func_all_modules): Add it.
64421
64422 2003-04-10  Bruno Haible  <bruno@clisp.org>
64423
64424         * m4/findprog.m4: New file.
64425         * m4/eaccess.m4: New file.
64426
64427 2003-04-10  Bruno Haible  <bruno@clisp.org>
64428
64429         * lib/findprog.h: New file, from GNU gettext.
64430         * lib/findprog.c: New file, from GNU gettext.
64431
64432 2003-04-05  Jim Meyering  <jim@meyering.net>
64433
64434         Merge changes from Coreutils.
64435
64436         * lib/exclude.h (PARAMS): Remove definition and uses.
64437         * lib/exclude.c: Remove uses of `PARAMS'.
64438
64439         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
64440         Add test-cases for DOS filenames. Declare program_name.
64441         (main): Set up program_name.  Patch by Rich Dawe.
64442
64443         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
64444         error from mntctl.
64445         Use mntctl's return value to drive the entry-processing loop, since
64446         we can't rely on the value of the vmt_length member in the last
64447         entry.  On some systems doing so could result in exhausting
64448         virtual memory.  Based in part on a patch from Mike Jetzer.
64449
64450 2003-04-04  Bruno Haible  <bruno@clisp.org>
64451
64452         * modules/linebreak: New file.
64453         * MODULES.html.sh (func_all_modules): Add it.
64454
64455 2003-04-04  Bruno Haible  <bruno@clisp.org>
64456
64457         * m4/linebreak.m4: New file.
64458
64459 2003-04-04  Bruno Haible  <bruno@clisp.org>
64460
64461         * lib/linebreak.h: New file, from GNU gettext.
64462         * lib/linebreak.c: New file, from GNU gettext with slight
64463         modifications.
64464         * lib/lbrkprop.h: New file, from GNU gettext.
64465
64466 2003-04-03  Bruno Haible  <bruno@clisp.org>
64467
64468         * modules/utf8-ucs4: New file.
64469         * modules/utf16-ucs4: New file.
64470         * modules/ucs4-utf8: New file.
64471         * modules/ucs4-utf16: New file.
64472         * MODULES.html.sh (func_all_modules): Add them.
64473
64474 2003-04-03  Bruno Haible  <bruno@clisp.org>
64475
64476         * m4/utf-ucs4.m4: New file.
64477         * m4/ucs4-utf.m4: New file.
64478
64479 2003-04-03  Bruno Haible  <bruno@clisp.org>
64480
64481         * lib/utf8-ucs4.h: New file, from GNU gettext.
64482         * lib/utf16-ucs4.h: New file, from GNU gettext.
64483         * lib/ucs4-utf8.h: New file, from GNU gettext.
64484         * lib/ucs4-utf16.h: New file, from GNU gettext.
64485
64486 2003-04-02  Bruno Haible  <bruno@clisp.org>
64487
64488         * modules/binary-io: New file.
64489         * MODULES.html.sh (func_all_modules): Add it.
64490
64491 2003-04-02  Bruno Haible  <bruno@clisp.org>
64492
64493         * lib/binary-io.h: New file, from GNU gettext.
64494
64495 2003-04-01  Bruno Haible  <bruno@clisp.org>
64496
64497         * modules/pathname: New file.
64498         * MODULES.html.sh (func_all_modules): Add it.
64499
64500 2003-04-01  Bruno Haible  <bruno@clisp.org>
64501
64502         * lib/pathname.h: New file, from GNU gettext.
64503         * lib/concatpath.c: New file, from GNU gettext.
64504
64505 2003-03-30  Bruno Haible  <bruno@clisp.org>
64506
64507         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
64508
64509 2003-03-30  Bruno Haible  <bruno@clisp.org>
64510
64511         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
64512         function chown() doesn't exist.
64513
64514 2003-03-28  Bruno Haible  <bruno@clisp.org>
64515
64516         * modules/copy-file: New file.
64517         * MODULES.html.sh (func_all_modules): Add it.
64518
64519 2003-03-28  Bruno Haible  <bruno@clisp.org>
64520
64521         * m4/copy-file.m4: New file.
64522
64523 2003-03-28  Bruno Haible  <bruno@clisp.org>
64524
64525         * lib/copy-file.h: New file, from GNU gettext.
64526         * lib/copy-file.c: New file, from GNU gettext.
64527
64528 2003-03-18  Jim Meyering  <jim@meyering.net>
64529
64530         * lib/quote.c (quote_n): Fix typo in comment.
64531
64532 2003-03-18  Bruno Haible  <bruno@clisp.org>
64533
64534         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
64535         checking.
64536         * m4/onceonly_2_57.m4: Likewise.
64537
64538 2003-03-17  Bruno Haible  <bruno@clisp.org>
64539
64540         * m4/onceonly.m4: Require autoconf 2.54 or newer.
64541         (m4_quote): Remove macro.
64542         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
64543
64544 2003-03-14  Jim Meyering  <jim@meyering.net>
64545
64546         Merge changes from Coreutils.
64547         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
64548         to be const, in order to avoid warnings.
64549         (obstack_room): Likewise.
64550         (obstack_empty_p): Likewise.
64551
64552 2003-03-14  Bruno Haible  <bruno@clisp.org>
64553
64554         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
64555         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
64556
64557 2003-03-13  Paul Eggert  <eggert@twinsun.com>
64558
64559         Merge changes from Bison.
64560         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
64561         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
64562         when compiling Bison 1.875's `bitset bset = obstack_alloc
64563         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
64564         * lib/hash.c: Include <stdbool.h> unconditionally.
64565
64566 2003-03-13  Paul Eggert  <eggert@twinsun.com>
64567
64568         * m4/onceonly.m4 (m4_quote): New macro.
64569         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
64570         Quote AC_FOREACH variable-expansions properly.
64571
64572 2003-03-13  Paul Eggert  <eggert@twinsun.com>
64573
64574         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
64575
64576 2003-03-09  Paul Eggert  <eggert@twinsun.com>
64577
64578         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
64579         Reported by Bruce Becker; see:
64580         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
64581
64582 2003-03-03  Paul Eggert  <eggert@twinsun.com>
64583             Bruno Haible  <bruno@clisp.org>
64584
64585         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
64586         Reported by John Hughes, see
64587         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
64588
64589 2003-02-20  Bruno Haible  <bruno@clisp.org>
64590
64591         * MODULES.html.sh (func_all_modules): Add poll.
64592
64593 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
64594
64595         * modules/poll: New file.
64596
64597 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
64598
64599         * lib/poll_.h: New file.
64600         * lib/poll.c: New file.
64601
64602 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
64603
64604         * m4/poll.m4: New file.
64605
64606 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
64607
64608         * modules/mathl: New file.
64609
64610 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
64611
64612         * lib/mathl.h: New file.
64613         * lib/acosl.c: New file.
64614         * lib/asinl.c: New file.
64615         * lib/atanl.c: New file.
64616         * lib/ceill.c: New file.
64617         * lib/cosl.c: New file.
64618         * lib/expl.c: New file.
64619         * lib/floorl.c: New file.
64620         * lib/frexpl.c: New file.
64621         * lib/ldexpl.c: New file.
64622         * lib/logl.c: New file.
64623         * lib/sincosl.c: New file.
64624         * lib/sinl.c: New file.
64625         * lib/sqrtl.c: New file.
64626         * lib/tanl.c: New file.
64627         * lib/trigl.c: New file.
64628         * lib/trigl.h: New file.
64629
64630 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
64631
64632         * m4/mathl.m4: New file.
64633
64634 2003-02-18  Bruno Haible  <bruno@clisp.org>
64635
64636         * MODULES.html.sh (func_all_modules): Add mathl.
64637
64638 2003-02-17  Bruno Haible  <bruno@clisp.org>
64639
64640         * modules/mkdtemp: New module.
64641         * MODULES.html.sh (func_all_modules): Add it.
64642
64643 2003-02-17  Bruno Haible  <bruno@clisp.org>
64644
64645         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
64646
64647 2003-02-17  Bruno Haible  <bruno@clisp.org>
64648
64649         * lib/mkdtemp.h: New file, from GNU gettext.
64650         * lib/mkdtemp.c: New file, from GNU gettext.
64651
64652 2003-02-02  Jim Meyering  <jim@meyering.net>
64653
64654         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
64655         e.g. glibc-2.2.93.
64656
64657 2003-01-31  Bruno Haible  <bruno@clisp.org>
64658
64659         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
64660         'rpl_rename'.
64661         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
64662         'rpl_strnlen'.
64663         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
64664         'rpl_strtod'.
64665         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
64666         'rpl_utime'.
64667
64668 2003-01-31  Bruno Haible  <bruno@clisp.org>
64669
64670         * lib/rename.c: #undef rename before defining rpl_rename.
64671         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
64672
64673 2003-01-30  Bruno Haible  <bruno@clisp.org>
64674
64675         * modules/vasnprintf, modules/vasprintf: New modules.
64676         * MODULES.html.sh (func_all_modules): Add them.
64677
64678 2003-01-30  Bruno Haible  <bruno@clisp.org>
64679
64680         * m4/signed.m4: New file, from GNU gettext.
64681         * m4/longdouble.m4: New file, from GNU gettext.
64682         * m4/wchar_t.m4: New file, from GNU gettext.
64683         * m4/wint_t.m4: New file, from GNU gettext.
64684         * m4/vasnprintf.m4: New file.
64685         * m4/vasprintf.m4: New file.
64686
64687 2003-01-30  Bruno Haible  <bruno@clisp.org>
64688
64689         * lib/printf-args.h: New file, from GNU gettext.
64690         * lib/printf-args.c: New file, from GNU gettext.
64691         * lib/printf-parse.h: New file, from GNU gettext.
64692         * lib/printf-parse.c: New file, from GNU gettext.
64693         * lib/vasnprintf.h: New file, from GNU gettext.
64694         * lib/vasnprintf.c: New file, from GNU gettext.
64695         * lib/asnprintf.c: New file, from GNU gettext.
64696         * lib/vasprintf.h: New file, from GNU gettext with modifications.
64697         * lib/vasprintf.c: New file, from GNU gettext.
64698         * lib/asprintf.c: New file, from GNU gettext.
64699
64700 2003-01-29  Bruno Haible  <bruno@clisp.org>
64701
64702         * modules/stpncpy: New module.
64703         * MODULES.html.sh (func_all_modules): Add it.
64704
64705 2003-01-29  Bruno Haible  <bruno@clisp.org>
64706
64707         * m4/stpncpy.m4: New file.
64708
64709 2003-01-29  Bruno Haible  <bruno@clisp.org>
64710
64711         * lib/stpncpy.h: New file, from GNU gettext with modifications.
64712         * lib/stpncpy.c: New file, from GNU gettext with modifications.
64713
64714 2003-01-28  Bruno Haible  <bruno@clisp.org>
64715
64716         * modules/c-ctype: New module.
64717         * MODULES.html.sh (func_all_modules): Add it.
64718
64719 2003-01-28  Bruno Haible  <bruno@clisp.org>
64720
64721         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
64722         Paul Eggert.
64723         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
64724         Paul Eggert.
64725
64726 2003-01-27  Bruno Haible  <bruno@clisp.org>
64727
64728         * modules/xsetenv: New module.
64729         * MODULES.html.sh (func_all_modules): Add it.
64730
64731 2003-01-27  Bruno Haible  <bruno@clisp.org>
64732
64733         * lib/xsetenv.h: New file, from GNU gettext.
64734         * lib/xsetenv.c: New file, from GNU gettext.
64735
64736 2003-01-23  Jim Meyering  <jim@meyering.net>
64737
64738         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
64739         from working on systems without dirfd (at least Irix and OSF1/Tru64).
64740
64741 2003-01-23  Bruno Haible  <bruno@clisp.org>
64742
64743         * modules/minmax: New module.
64744         * MODULES.html.sh (func_all_modules): Add it.
64745
64746 2003-01-23  Bruno Haible  <bruno@clisp.org>
64747
64748         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
64749         Eggert.
64750
64751 2003-01-22  Bruno Haible  <bruno@clisp.org>
64752
64753         * modules/exit: New module.
64754         * MODULES.html.sh (func_all_modules): Add it.
64755
64756 2003-01-22  Bruno Haible  <bruno@clisp.org>
64757
64758         * lib/exit.h: New file, from GNU gettext.
64759
64760 2003-01-19  Bruno Haible  <bruno@clisp.org>
64761
64762         * gnulib-tool: Recognize option --extract-maintainer.
64763         (func_get_maintainer): New function.
64764         * modules/*: Add Maintainer entry.
64765
64766 2003-01-16  Jim Meyering  <jim@meyering.net>
64767
64768         * m4/regex.m4: The `regex' struct is both input and output.
64769         Initialize it before each use.  Patch by Tim Waugh.
64770
64771 2003-01-16  Bruno Haible  <bruno@clisp.org>
64772
64773         * MODULES.html.sh: Add a table of contents. Add the module name as
64774         leftmost column. Add hyperlinks.
64775
64776 2003-01-15  Bruno Haible  <bruno@clisp.org>
64777
64778         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
64779
64780 2003-01-15  Bruno Haible  <bruno@clisp.org>
64781
64782         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
64783         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
64784         suffix.
64785
64786 2003-01-15  Bruno Haible  <bruno@clisp.org>
64787
64788         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
64789
64790 2003-01-15  Bruno Haible  <bruno@clisp.org>
64791
64792         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
64793         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
64794
64795 2003-01-14  Jim Meyering  <jim@meyering.net>
64796
64797         * lib/same.c (same_name): Tweak a comment.
64798
64799 2003-01-14  Bruno Haible  <bruno@clisp.org>
64800
64801         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
64802         when a string comparison is sufficient.
64803
64804 2003-01-14  Bruno Haible  <bruno@clisp.org>
64805
64806         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
64807         'unsigned int'.
64808
64809 2003-01-14  Bruno Haible  <bruno@clisp.org>
64810
64811         * lib/hash-pjw.c: Add comment about low quality of this function.
64812
64813 2003-01-13  Bruno Haible  <bruno@clisp.org>
64814
64815         * modules/stpcpy: Distribute lib/stpcpy.h.
64816         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
64817
64818 2003-01-13  Bruno Haible  <bruno@clisp.org>
64819
64820         * modules/*: Add a description.
64821         * modules/strpbrk: Fix Makefile.am snippet.
64822         * modules/strtoimax: Fix dependencies.
64823         * modules/strtoumax: Likewise.
64824
64825 2003-01-13  Bruno Haible  <bruno@clisp.org>
64826
64827         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
64828         * modules/alloca (Makefile.am): All object files depend on alloca.h.
64829         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
64830
64831 2003-01-13  Bruno Haible  <bruno@clisp.org>
64832
64833         * gnulib-tool (func_create_testdir): Store config/* files in the main
64834         directory.
64835         * config.rpath: Move to ...
64836         * config/config.rpath: ... here.
64837         * modules/gettext: Contains config/config.rpath, not config.rpath.
64838         * modules/iconv: Likewise.
64839
64840 2003-01-12  Paul Eggert  <eggert@twinsun.com>
64841
64842         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
64843         to avoid collisions with libcurses and libreadline.
64844
64845         * m4/getstr.m4: Remove.
64846         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
64847
64848 2003-01-12  Paul Eggert  <eggert@twinsun.com>
64849
64850         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
64851         to avoid collisions with libcurses and libreadline.
64852
64853         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
64854         * lib/getstr.h, getstr.c: Remove.
64855         * lib/getline.c: Include "getline.h", to check interface.
64856         Move body of old getstr.c here: this defines MIN_CHUNK and
64857         declares getdelim2, which is renamed from getstr.
64858         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
64859
64860         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
64861         All uses changed.
64862         * lib/linebuffer.h: Likewise.
64863         (readline): Remove backward-compatibility macro.
64864
64865 2003-01-12  Paul Eggert  <eggert@twinsun.com>
64866
64867         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
64868         to avoid collisions with libcurses and libreadline.
64869         * getstr: Remove.
64870         * MODULES.html.sh: Remove getstr.
64871         * modules/getline: Depend on unlocked-io, not getstr.
64872
64873 2003-01-12  Jim Meyering  <jim@meyering.net>
64874
64875         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
64876
64877 2003-01-10  Bruno Haible  <bruno@clisp.org>
64878
64879         * modules/alloca: Change Makefile.am requirements. Simplify Include
64880         requirements. Add lib/alloca_.h to file list.
64881
64882 2003-01-10  Bruno Haible  <bruno@clisp.org>
64883
64884         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
64885
64886 2003-01-10  Bruno Haible  <bruno@clisp.org>
64887
64888         * lib/alloca_.h: New file.
64889         * lib/getdate.y: Unconditionally include alloca.h.
64890         * lib/makepath.c: Likewise.
64891         * lib/setenv.c: Likewise.
64892         * lib/userspec.c: Likewise.
64893
64894 2003-01-09  Karl Berry  <karl@gnu.org>
64895
64896         * MODULES.html.sh: include `dirname $0` in PATH, to find
64897         gnulib-tool.
64898
64899 2003-01-09  Bruno Haible  <bruno@clisp.org>
64900
64901         * modules/stdbool: Change configure.ac, Makefile.am requirements.
64902         Simplify Include requirements. Add lib/stdbool.h.in to file list.
64903
64904 2003-01-09  Bruno Haible  <bruno@clisp.org>
64905
64906         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
64907
64908 2003-01-09  Bruno Haible  <bruno@clisp.org>
64909
64910         * lib/stdbool.h.in: New file.
64911
64912 2003-01-09  Bruno Haible  <bruno@clisp.org>
64913
64914         * gnulib-tool (func_all_modules): Ignore files ending in ~.
64915         * MODULES.html.sh: Likewise.
64916
64917 2003-01-08  Jim Meyering  <jim@meyering.net>
64918
64919         * lib/full-write.c: Undefine and define-away `const' after inclusion
64920         of errno.h, not before.  Suggestion from Bruno Haible.
64921
64922 2003-01-08  Bruno Haible  <bruno@clisp.org>
64923
64924         * modules/full-read: Depend on full-write.
64925
64926 2003-01-08  Bruno Haible  <bruno@clisp.org>
64927
64928         * lib/safe-read.c: Include specification header first, to ensure its
64929         selfcontainedness.
64930         * lib/full-write.c: Likewise.
64931
64932 2003-01-07  Jim Meyering  <jim@meyering.net>
64933
64934         * lib/full-write.c: Rework so that it may serve to define full_read,
64935         too.
64936         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
64937
64938 2003-01-07  Bruno Haible  <bruno@clisp.org>
64939
64940         * lib/strtoimax.c: Include <stdint.h> as an alternative to
64941         <inttypes.h>.
64942         * lib/xstrtol.h: Likewise.
64943         * lib/xstrtoimax.c: Likewise.
64944         * lib/xstrtoumax.c: Likewise.
64945         * lib/human.h: Likewise.
64946
64947         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
64948         on systems that have <inttypes.h> but not <stdint.h>.
64949
64950 2003-01-07  Bruno Haible  <bruno@clisp.org>
64951
64952         * MODULES.html.sh: Add copyright notice.
64953         (missed_files): Omit CVS directory entries.
64954         (func_module): Make it work with sed-3.02.
64955         * MODULES.txt: Remove file.
64956
64957 2003-01-06  Jim Meyering  <jim@meyering.net>
64958
64959         * lib/version-etc.c: Update year in translatable copyright string.
64960
64961 2003-01-03  Karl Berry  <karl@gnu.org>
64962
64963         * config/config.{guess,sub}: update from prep.
64964
64965 2003-01-02  Karl Berry  <karl@gnu.org>
64966
64967         * doc/COPYING.DOC: belatedly updated to 1.2.
64968
64969 2003-01-01  Karl Berry  <karl@gnu.org>
64970
64971         * gnulib-tool (func_verify_module): report module name $module in
64972         error message, not $1.
64973         * gnulib-tool (create-testdir): don't complain if destdir couldn't
64974         be created, only if it doesn't exist.
64975         * gnulib-tool (last_checkin_date): don't expand the $Date here.
64976
64977 2002-12-31  Paul Eggert  <eggert@twinsun.com>
64978
64979         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
64980
64981 2002-12-31  Paul Eggert  <eggert@twinsun.com>
64982
64983         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
64984         memcmp if strcoll doesn't work.
64985
64986 2002-12-31  Bruno Haible  <bruno@clisp.org>
64987
64988         * lib/utime.c (utime_null): No need to call ftruncate if the file was
64989         nonempty.
64990
64991 2002-12-31  Bruno Haible  <bruno@clisp.org>
64992
64993         * lib/memcoll.c (STRCOLL): New macro.
64994         (memcoll): Use it.
64995
64996 2002-12-31  Bruno Haible  <bruno@clisp.org>
64997
64998         * lib/localcharset.h: New file.
64999         * lib/localcharset.c: Include it.
65000         * lib/unicodeio.c: Likewise.
65001
65002 2002-12-31  Bruno Haible  <bruno@clisp.org>
65003
65004         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
65005         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
65006
65007 2002-12-31  Bruno Haible  <bruno@clisp.org>
65008
65009         * lib/getline.h: Include <stddef.h>, for size_t.
65010
65011         * lib/unicodeio.h: Include <stddef.h>, for size_t.
65012         * lib/unicodeio.c: Don't include <stddef.h>.
65013
65014 2002-12-31  Bruno Haible  <bruno@clisp.org>
65015
65016         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
65017         HAVE_TM_ZONE.
65018
65019 2002-12-24  Karl Berry  <karl@gnu.org>
65020
65021         * config/config.guess: update from prep.
65022
65023 2002-12-24  Bruno Haible  <bruno@clisp.org>
65024
65025         General infrasructure.
65026         * m4/README: Rewritten.
65027         * m4/onceonly.m4: New file.
65028         * m4/onceonly_2_57.m4: New file.
65029
65030         Module atexit.
65031         * m4/atexit.m4: New file.
65032
65033         Module strtod.
65034         * m4/strtod.m4: New file.
65035
65036         Module strtol.
65037         * m4/strtol.m4: New file.
65038
65039         Module strtoul.
65040         * m4/strtoul.m4: New file.
65041
65042         Module memchr.
65043         * m4/memchr.m4: New file.
65044
65045         Module memcmp.
65046         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
65047         (jm_FUNC_MEMCMP): Invoke it.
65048
65049         Module memcpy.
65050         * m4/memcpy.m4: New file.
65051
65052         Module memmove.
65053         * m4/memmove.m4: New file.
65054
65055         Module memset.
65056         * m4/memset.m4: New file.
65057
65058         Module strcspn.
65059         * m4/strcspn.m4: New file.
65060
65061         Module strpbrk.
65062         * m4/strpbrk.m4: New file.
65063
65064         Module strstr.
65065         * m4/strstr.m4: New file.
65066
65067         Module strerror.
65068         * m4/strerror.m4: New file.
65069
65070         Module mktime.
65071         * m4/mktime.m4: Renamed from jm-mktime.m4.
65072         (gl_PREREQ_MKTIME): New macro.
65073         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
65074
65075         Module malloc.
65076         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
65077         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
65078         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
65079
65080         Module realloc.
65081         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
65082         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
65083         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
65084
65085         Module strftime.
65086         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
65087         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
65088         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
65089         gl_TM_GMTOFF.
65090         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
65091
65092         Module xalloc.
65093         * m4/xalloc.m4: New file.
65094
65095         Module alloca.
65096         * m4/alloca.m4: New file.
65097
65098         Module putenv.
65099         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
65100         (jm_FUNC_PUTENV): Invoke it.
65101
65102         Module setenv.
65103         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
65104         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
65105         when invoked twice.
65106         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
65107         gt_FUNC_SETENV.
65108
65109         Module memrchr.
65110         * m4/memrchr.m4: New file.
65111
65112         Module stpcpy.
65113         * m4/stpcpy.m4: New file.
65114
65115         Module strcase.
65116         * m4/strcase.m4: New file.
65117
65118         Module strdup.
65119         * m4/strdup.m4: New file.
65120
65121         Module strnlen.
65122         * m4/strnlen.m4: New file.
65123
65124         Module strndup.
65125         * m4/strndup.m4: New file.
65126
65127         Module xstrtod.
65128         * m4/xstrtod.m4: New file.
65129
65130         Module xstrtol.
65131         * m4/xstrtol.m4: New file.
65132
65133         Module getdate.
65134         * m4/getdate.m4: New file.
65135
65136         Module unlocked-io.
65137         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
65138         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
65139         * m4/jm-glibc-io.m4n: Remove file.
65140
65141         Module long-options.
65142         * m4/long-options.m4: New file.
65143
65144         Module md5.
65145         * m4/md5.m4: New file.
65146
65147         Module sha.
65148         * m4/sha.m4: New file.
65149
65150         Module getstr.
65151         * m4/getstr.m4: New file.
65152
65153         Module getline.
65154         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
65155         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
65156         <sys/types.h>, for size_t. Use the function name gnu_getline, not
65157         simply getline. Infoke gl_PREREQ_GETLINE.
65158
65159         Module obstack.
65160         * m4/obstack.m4: New file.
65161
65162         Module hash.
65163         * m4/hash.m4: New file.
65164
65165         Module readtokens.
65166         * m4/readtokens.m4: New file.
65167
65168         Module strverscmp.
65169         * m4/strverscmp.m4: New file.
65170
65171         Module stdbool.
65172         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
65173         OSF/1.
65174
65175         Module strtoll.
65176         * m4/strtoll.m4: New file.
65177
65178         Module strtoull.
65179         * m4/strtoull.m4: New file.
65180
65181         Module strtoimax.
65182         * m4/strtoimax.m4: New file.
65183
65184         Module strtoumax.
65185         * m4/strtoumax.m4: New file.
65186
65187         Module xstrtoimax.
65188         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
65189         jm_AC_PREREQ_XSTRTOIMAX.
65190         Moved the strtol prerequisites to strtol.m4.
65191         Moved the strtoll prerequisites to strtoll.m4.
65192         Moved the strtoimax prerequisites to strtoimax.m4.
65193
65194         Module xstrtoumax.
65195         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
65196         jm_AC_PREREQ_XSTRTOUMAX.
65197         Moved the strtoul prerequisites to strtoul.m4.
65198         Moved the strtoull prerequisites to strtoull.m4.
65199         Moved the strtoumax prerequisites to strtoumax.m4.
65200
65201         Module chown.
65202         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
65203         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
65204
65205         Module dup2.
65206         * m4/dup2.m4: New file.
65207
65208         Module ftruncate.
65209         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
65210         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
65211
65212         Module getgroups.
65213         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
65214         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
65215
65216         Module gettimeofday.
65217         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
65218         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
65219         gl_PREREQ_GETTIMEOFDAY.
65220
65221         Module mkdir.
65222         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
65223         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
65224
65225         Module mkstemp.
65226         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
65227         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
65228         jm_AC_TYPE_UINTMAX_T.
65229         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
65230
65231         Module stat.
65232         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
65233         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
65234
65235         Module lstat.
65236         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
65237         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
65238
65239         Module timespec.
65240         * m4/timespec.m4 (gl_TIMESPEC): New macro.
65241         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
65242         * m4/st_mtim.m4: Indentation.
65243
65244         Module nanosleep.
65245         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
65246         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
65247         gl_PREREQ_NANOSLEEP.
65248
65249         Module regex.
65250         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
65251         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
65252         (gl_REGEX): New macro.
65253
65254         Module rename.
65255         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
65256         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
65257
65258         Module rmdir.
65259         * m4/rmdir.m4: New file.
65260
65261         Module utime.
65262         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
65263         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
65264         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
65265
65266         Module dirname.
65267         * m4/dirname.m4: New file.
65268
65269         Module getopt.
65270         * m4/getopt.m4: New file.
65271
65272         Module unistd-safer.
65273         * m4/unistd-safer.m4: New file.
65274
65275         Module fnmatch.
65276         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
65277         declaration.
65278         (gl_PREREQ_FNMATCH_EXTRA): New macro.
65279         (gl_FUNC_FNMATCH_POSIX): New macro.
65280         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
65281         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
65282         simply fnmatch.
65283
65284         Module exclude.
65285         * m4/exclude.m4: New file.
65286
65287         Module human.
65288         * m4/human.m4: New file.
65289
65290         Module acl.
65291         * m4/acl.m4: Nop.
65292
65293         Module backupfile.
65294         * m4/backupfile.m4: New file.
65295         * m4/d-ino.m4: Indentation.
65296
65297         Module fsusage.
65298         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
65299         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
65300         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
65301
65302         Module dirfd.
65303         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
65304         requirements.
65305
65306         Module euidaccess.
65307         * m4/euidaccess.m4: New file.
65308
65309         Module file-type.
65310         * m4/file-type.m4: New file.
65311
65312         Module fileblocks.
65313         * m4/fileblocks.m4: New file.
65314
65315         Module filemode.
65316         * m4/filemode.m4: New file.
65317
65318         Module isdir.
65319         * m4/isdir.m4: New file.
65320
65321         Module lchown.
65322         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
65323         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
65324
65325         Module makepath.
65326         * m4/makepath.m4: New file.
65327
65328         Module modechange.
65329         * m4/modechange.m4: New file.
65330
65331         Module mountlist.
65332         * m4/mountlist.m4: New file.
65333         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
65334         Indentation.
65335
65336         Module path-concat.
65337         * m4/path-concat.m4: New file.
65338
65339         Module pathmax.
65340         * m4/pathmax.m4: New file.
65341
65342         Module same.
65343         * m4/same.m4: New file.
65344
65345         Module save-cwd.
65346         * m4/save-cwd.m4: New file.
65347
65348         Module savedir.
65349         * m4/savedir.m4: New file.
65350
65351         Module xgetcwd.
65352         * m4/xgetcwd.m4: New file.
65353         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
65354
65355         Module xreadlink.
65356         * m4/xreadlink.m4: New file.
65357
65358         Module safe-read.
65359         * m4/safe-read.m4: New file.
65360
65361         Module safe-write.
65362         * m4/safe-write.m4: New file.
65363
65364         Module closeout.
65365         * m4/closeout.m4: New file.
65366
65367         Module stdio-safer.
65368         * m4/stdio-safer.m4: New file.
65369
65370         Module getpass.
65371         * m4/getpass.m4: New file.
65372
65373         Module getugroups.
65374         * m4/getugroups.m4: New file.
65375
65376         Module group-member.
65377         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
65378         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
65379
65380         Module idcache.
65381         * m4/idcache.m4: New file.
65382
65383         Module userspec.
65384         * m4/userspec.m4: New file.
65385
65386         Module gettime.
65387         * m4/clock_time.m4: New file.
65388         * m4/gettime.m4: New file.
65389
65390         Module settime.
65391         * m4/settime.m4: New file.
65392
65393         Module posixtm.
65394         * m4/posixtm.m4: New file.
65395
65396         Module gethostname.
65397         * m4/gethostname.m4: New file.
65398
65399         Module canon-host.
65400         * m4/canon-host.m4: New file.
65401
65402         Module gettext.
65403         * m4/codeset.m4: New file, from gettext-0.11.5.
65404         * m4/gettext.m4: New file, from gettext-0.11.5.
65405         * m4/glibc21.m4: New file, from gettext-0.11.5.
65406         * m4/iconv.m4: New file, from gettext-0.11.5.
65407         * m4/intdiv0.m4: New file, from gettext-0.11.5.
65408         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
65409         * m4/inttypes.m4: New file, from gettext-0.11.5.
65410         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
65411         * m4/isc-posix.m4: New file, from gettext-0.11.5.
65412         * m4/lcmessage.m4: New file, from gettext-0.11.5.
65413         * m4/lib-ld.m4: New file, from gettext-0.11.5.
65414         * m4/lib-link.m4: New file, from gettext-0.11.5.
65415         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
65416         * m4/progtest.m4: New file, from gettext-0.11.5.
65417         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
65418         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
65419         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
65420
65421         Module localcharset.
65422         * m4/localcharset.m4: New file.
65423
65424         Module hard-locale.
65425         * m4/hard-locale.m4: New file.
65426
65427         Module mbswidth.
65428         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
65429         onceonly macros.
65430         * m4/mbrtowc.m4: Add comment.
65431
65432         Module memcasecmp.
65433         * m4/memcasecmp.m4: New file.
65434
65435         Module memcoll.
65436         * m4/memcoll.m4: New file.
65437
65438         Module unicodeio.
65439         * m4/unicodeio.m4: New file.
65440
65441         Module rpmatch.
65442         * m4/rpmatch.m4: New file.
65443
65444         Module yesno.
65445         * m4/yesno.m4: New file.
65446
65447         Module exitfail.
65448         * m4/exitfail.m4: New file.
65449
65450         Module c-stack.
65451         * m4/c-stack.m4 (gl_C_STACK): New macro.
65452         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
65453
65454         Module error.
65455         * m4/error.m4 (gl_ERROR): New macro.
65456         (jm_PREREQ_ERROR): Use onceonly macros.
65457
65458         Module fatal.
65459         * m4/fatal.m4: New file.
65460
65461         Module getloadavg.
65462         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
65463         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
65464
65465         Module getpagesize.
65466         * m4/getpagesize.m4: New file.
65467
65468         Module getusershell.
65469         * m4/getusershell.m4: New file.
65470
65471         Module physmem.
65472         * m4/physmem.m4: New file.
65473
65474         Module posixver.
65475         * m4/posixver.m4: New file.
65476
65477         Module quotearg.
65478         * m4/quotearg.m4: New file.
65479
65480         Module quote.
65481         * m4/quote.m4: New file.
65482
65483         Module readutmp.
65484         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
65485
65486         Module sig2str.
65487         * m4/sig2str.m4: New file.
65488
65489         Other.
65490         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
65491         ulonglong.m4.
65492         * m4/intmax_t.m4: New file.
65493         * m4/d-type.m4: Indentation.
65494         * m4/jm-macros.m4: Update.
65495         * m4/prereq.m4 (jm_PREREQ): Update.
65496         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
65497         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
65498         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
65499         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
65500         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
65501         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
65502         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
65503         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
65504         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
65505         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
65506         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
65507         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
65508         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
65509         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
65510         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
65511         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
65512         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
65513         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
65514         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
65515
65516 2002-12-24  Bruno Haible  <bruno@clisp.org>
65517
65518         * MODULES.txt: Update according to m4/ changes.
65519
65520         Module gettext.
65521         * config.rpath: New file, from gettext-0.11.5.
65522
65523         * modules/*: New module descriptions.
65524         * gnulib-tool: New file.
65525         * MODULES.html.sh: New file.
65526
65527 2002-12-21  Karl Berry  <karl@gnu.org>
65528
65529         * doc/fdl.texi: update to version 1.2.
65530
65531 2002-12-19  Karl Berry  <karl@gnu.org>
65532
65533         * config/config.guess: update from prep.
65534
65535 2002-12-18  Bruno Haible  <bruno@clisp.org>
65536
65537         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
65538         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
65539
65540 2002-12-17  Bruno Haible  <bruno@clisp.org>
65541
65542         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
65543         stdlib.h, string.h.
65544
65545 2002-12-17  Bruno Haible  <bruno@clisp.org>
65546
65547         * lib/canon-host.c (strdup): Remove unused declaration.
65548
65549         * lib/fsusage.c: Include full_read.h.
65550         (get_fs_usage): Use full_read instead of safe_read.
65551
65552         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
65553
65554 2002-12-12  Karl Berry  <karl@gnu.org>
65555
65556         * config/config.guess: update from prep.
65557
65558 2002-12-11  Bruno Haible  <bruno@clisp.org>
65559
65560         * m4/setenv.m4: New file, from gettext-0.11.5.
65561
65562 2002-12-11  Bruno Haible  <bruno@clisp.org>
65563
65564         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
65565         not unsetenv().
65566         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
65567         modifications:
65568
65569         2002-12-11  Bruno Haible  <bruno@clisp.org>
65570
65571                 * setenv.c (alloca): Fall back to malloc.
65572                 (freea): New macro.
65573                 (setenv): Use freea() to free memory allocated with alloca().
65574
65575         2002-11-13  Bruno Haible  <bruno@clisp.org>
65576
65577                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
65578                 function declarations.
65579                 * unsetenv.c (unsetenv): Likewise.
65580
65581         2002-03-04  Bruno Haible  <bruno@clisp.org>
65582
65583                 Portability to AIX 4.3.3.
65584                 * unsetenv.c: New file, extracted from setenv.c.
65585                 * setenv.c: Move the unsetenv() function to unsetenv.c.
65586
65587         2001-12-20  Bruno Haible  <bruno@clisp.org>
65588
65589                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
65590                 use malloc instead. For SunOS 4.
65591
65592         2001-12-11  Bruno Haible  <bruno@clisp.org>
65593
65594                 * setenv.c: Declare alloca.
65595                 (compar_fn_t): New typedef.
65596                 (KNOWN_VALUE, STORE_VALUE): Use it.
65597
65598         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
65599         setenv.h.
65600
65601 2002-12-10  Paul Eggert  <eggert@twinsun.com>
65602
65603         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
65604         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
65605         Choose values that are less likely to collide with system fnmatch
65606         options.
65607         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
65608         defined (e.g., a pure POSIX system).
65609         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
65610         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
65611
65612 2002-12-06  Paul Eggert  <eggert@twinsun.com>
65613
65614         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
65615         a pain in practice to deal with generated m4 files.  This change
65616         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
65617
65618         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
65619         and jm-glibc-io.m4, as they are no longer a special case.
65620         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
65621         kludge and the auto-generation stuff.  Check only whether the
65622         functions are declared, not whether they exist, since older hosts
65623         that don't declare the functions can't use the optimization anyway.
65624
65625 2002-12-06  Jim Meyering  <jim@meyering.net>
65626
65627         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
65628
65629         Merge in changes from libc's misc/error.c, in preparation
65630         for the merge of gnulib's changes back into libc.
65631
65632         * lib/error.c (_): Define only if not already defined.
65633         Move definition to follow all #include directives.
65634         Include unlocked-io.h only if !_LIBC.
65635         [_LIBC]: Include <libio/libioP.h>.
65636         [USE_IN_LIBIO]: Include <libio/iolibio.h>
65637         (fflush): Tweak definition to use INTUSE.
65638         (putc): Define.
65639
65640 2002-12-05  Paul Eggert  <eggert@twinsun.com>
65641
65642         * lib/alloca.c [defined emacs]: Include "lisp.h".
65643         (xalloc_die) [defined emacs]: New macro.
65644         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
65645         [! defined emacs]: Include <xalloc.h>.
65646         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
65647         (pointer): Typedef to POINTER_TYPE *.
65648         (malloc): Remove decl; we now always use xmalloc.
65649         (alloca): Use old-style definition, since Emacs needs this.
65650         Check for arithmetic overflow when computing combined size.
65651
65652 2002-12-04  Paul Eggert  <eggert@twinsun.com>
65653
65654         Do not generate unlocked-io.h automatically, since it's easier to
65655         maintain it by hand.
65656
65657         * lib/unlocked-io.h: New file, from GNU diffutils,
65658         but with proper copyright notice and attribution.
65659         * lib/gen-uio: Remove.
65660         * lib/Makefile.am: Add copyright notice.
65661         (libfetish_a_SOURCES): Add unlocked-io.h.
65662         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
65663         (DISTCLEANFILES, io_functions): Remove macros.
65664         (EXTRA_DIST): Remove gen_uio.
65665         (unlocked-io.h): Remove rule.
65666
65667 2002-12-04  Jim Meyering  <jim@meyering.net>
65668
65669         Reflect the fact that stat.c and lstat.c are no longer generated.
65670         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
65671         (DISTCLEANFILES): Likewise.
65672         (EXTRA_DIST): Likewise.
65673         (all_local): Don't depend on stat.c or lstat.c.
65674         (stat.c, lstat.c): Remove rules.
65675         (EXTRA_DIST): Remove xstat.in.
65676
65677         * lib/xstat.in: Remove file.  Contents moved into stat.c.
65678         * lib/stat.c: New file.  Contents mostly from xstat.in.
65679         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
65680         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
65681
65682         * lib/safe-read.c: Rework so that it may serve to define safe_write,
65683         too.
65684         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
65685
65686 2002-12-03  Jim Meyering  <jim@meyering.net>
65687
65688         * lib/safe-read.c, safe-write.c: Change variable names and comments,
65689         but not semantics, to minimize the differences between these two files.
65690         (safe_read): Change comment to mention SAFE_READ_ERROR.
65691
65692         * lib/safe-read.c (IS_EINTR): Define.
65693         (safe_read): Use IS_EINTR in place of in-function cpp directives.
65694
65695 2002-12-02  Jim Meyering  <jim@meyering.net>
65696
65697         * lib/safe-read.c (EINTR): Define.
65698         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
65699         (INT_MAX): Provide fallback.
65700         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
65701
65702         * lib/safe-read.h (SAFE_READ_ERROR): Define.
65703
65704 2002-12-02  Bruno Haible  <bruno@clisp.org>
65705
65706         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
65707         Define, taken from safe-read.c.
65708         (INT_MAX): Provide fallback.
65709         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
65710         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
65711
65712         * lib/safe-read.c (EINTR): Remove definition.
65713         (safe_read): Don't use EINTR if it is absent.
65714
65715 2002-12-01  Jim Meyering  <jim@meyering.net>
65716
65717         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
65718         zero.
65719         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
65720
65721 2002-11-27  Paul Eggert  <eggert@twinsun.com>
65722
65723         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
65724         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
65725         with `if (! (value < limit)) abort ();', for readability.
65726
65727 2002-11-26  Karl Berry  <karl@gnu.org>
65728
65729         * lib/strdup.c: copy from libc again, with jim's ok.
65730         * lib/.cppi-disable: re-add strdup.c
65731
65732 2002-11-25  Karl Berry  <karl@gnu.org>
65733
65734         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
65735         instead of "strtol.c".
65736
65737 2002-11-25  Karl Berry  <karl@gnu.org>
65738
65739         * config/install-sh: update from automake for variable quoting, $0 in
65740         error msgs, etc.
65741
65742         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
65743         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
65744         entry.
65745
65746 2002-11-25  Jim Meyering  <jim@meyering.net>
65747
65748         * lib/mktime.c: Sync from libc, now that it has the latest fix.
65749
65750 2002-11-24  Karl Berry  <karl@gnu.org>
65751
65752         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
65753         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
65754
65755 2002-11-24  Jim Meyering  <jim@meyering.net>
65756
65757         Update from coreutils:
65758
65759         * lib/mktime.c: Merge in changes from libc.
65760
65761         Avoid a link-time failure on some Linux systems.
65762         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
65763         (otherwise).
65764         (__mon_yday): Declare with the STATIC attribute.
65765         (__mktime_internal): Likewise.
65766         Based on a report from Greg Schafer.
65767
65768 2002-11-23  Jim Meyering  <jim@meyering.net>
65769
65770         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
65771         Use `unsigned', not `int', as type of index.
65772
65773         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
65774
65775         * lib/fsusage.c: Remove unneeded parentheses around operands of
65776         `defined'.
65777
65778 2002-11-22  Paul Eggert  <eggert@twinsun.com>
65779
65780         * lib/quotearg.h: Allow multiple inclusion by surrounding with
65781         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
65782         so that we can be included first.
65783         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
65784         * lib/quotearg.c: Include quotearg.h immediately after config.h.
65785         No need to include stddef.h or sys/types.h any more.
65786         Surround local include files with "", not "<>".
65787         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
65788         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
65789         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
65790         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
65791         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
65792         (ISPRINT): Remove; no longer needed now that we assume C89.
65793
65794         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
65795         Preserve errno.
65796
65797         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
65798         quotearg_char): Use SIZE_MAX rather than
65799         (size_t) -1 when we are talking about "infinity".
65800
65801         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
65802
65803 2002-11-22  Paul Eggert  <eggert@twinsun.com>
65804
65805         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
65806         hint that one should use `if (! x) abort ();' rather than `assert
65807         (x);', and anyway it's one less thing to worry about configuring.
65808         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
65809         hash_rehash, hash_insert): Use abort rather than assert.
65810
65811 2002-11-22  Bruno Haible  <bruno@clisp.org>
65812
65813         * lib/safe-read.h: Assume C89. Add comments.
65814         (safe_read): Change return type to size_t.
65815         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
65816         byte counts > SSIZE_MAX correctly.
65817         * lib/safe-write.h: New file.
65818         * lib/safe-write.c: New file.
65819         * lib/full-read.h: New file.
65820         * lib/full-read.c: New file.
65821         * lib/full-write.h: Assume C89. Add comments.
65822         * lib/full-write.c: Include safe-write.h.
65823         (full_write): Rewritten to use safe_write.
65824         Suggested by Jim Meyering and Paul Eggert.
65825
65826 2002-11-21  Jim Meyering  <jim@meyering.net>
65827
65828         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
65829
65830         Merge in changes from the coreutils.
65831
65832         2002-09-25  Paul Eggert  <eggert@twinsun.com>
65833         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
65834         <stdint.h>.
65835         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
65836         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
65837         int.  Work more efficiently if X is the same width as uintmax_t.
65838         Do not compare X to -1, to avoid bogus compiler warning.
65839         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
65840         Don't assume that f_frsize and f_bsize are the same type.
65841
65842         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
65843         warning on FreeBSD.
65844
65845         * lib/makepath.c (make_path): Restore umask *before* creating the final
65846         component.
65847         (make_path): Minor reformatting.
65848
65849         * lib/xmalloc.c: Adjust to work with new autoconf macros,
65850         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
65851         HAVE_MALLOC/HAVE_REALLOC.
65852
65853         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
65854         dummy ones.  At least on GNU/Linux systems, `auto' means something
65855         else.
65856         From Michael Stone.
65857
65858 2002-11-21  Bruno Haible  <bruno@clisp.org>
65859
65860         Remove case insensitive option matching.
65861         * lib/argmatch.h (argcasematch): Remove declaration.
65862         (ARGCASEMATCH): Remove macro.
65863         (__xargmatch_internal): Remove case_sensitive argument.
65864         (XARGMATCH): Update.
65865         (XARGCASEMATCH): Remove macro.
65866         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
65867         case_sensitive argument.
65868         (argcasematch): Remove function.
65869         (__xargmatch_internal): Remove case_sensitive argument.
65870         (main): Use XARGMATCH instead of XARGCASEMATCH.
65871
65872         * lib/xmalloc.c: Change compile-time error message. Add comment about
65873         required autoconf version.
65874
65875 2002-11-20  Paul Eggert  <eggert@twinsun.com>
65876
65877         Merge argmatch cleanups from Bison.  Assume C89.
65878
65879         * lib/argmatch.c: Include config.h here, not in argmatch.h.
65880         Include stdlib.h, for EXIT_FAILURE.
65881         Always include <string.h>, since we assume C89.
65882         (EXIT_FAILURE): Remove pre-C89 bug workaround.
65883         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
65884         Include <stddef.h> instead, since it's all we need for size_t.
65885         (PARAMS): Remove.  All uses removed.
65886         (ARRAY_CARDINALITY): Do not bother to #undef.
65887         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
65888         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
65889         Remove unnecessary parentheses.
65890         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
65891         Insert necessary parentheses.
65892         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
65893         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
65894
65895 2002-11-19  Bruno Haible  <bruno@clisp.org>
65896
65897         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
65898         * lib/mbswidth.h: Include <stddef.h>, for size_t.
65899
65900         * lib/mbswidth.h (PARAMS): Remove macro.
65901         (mbswidth, mbsnwidth): Use ANSI C function declarations.
65902         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
65903
65904         * lib/gcd.h (PARAMS): Remove macro.
65905         (gcd): Use ANSI C function declarations.
65906         * lib/gcd.c (gcd): Likewise.
65907
65908 2002-11-15  Bruno Haible  <bruno@clisp.org>
65909
65910         * lib/strcspn.c: Include <stddef.h>.
65911         (strcspn): Use ANSI C function declaration. Change return type to
65912         size_t. Use NULL.
65913         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
65914         (strpbrk): Use NULL.
65915         * lib/strpbrk.h (PARAMS): Remove macro.
65916         (strpbrk): Use ANSI C function declaration.
65917         * lib/strstr.c: Don't include <sys/types.h>.
65918         * lib/strstr.h (PARAMS): Remove macro.
65919         (strstr): Use ANSI C function declarations.
65920
65921 2002-11-14  Karl Berry  <karl@gnu.org>
65922
65923         * config/mkinstalldirs: `do' on separate line, instead of
65924         `for var; do'.
65925
65926 2002-11-06  Bruno Haible  <bruno@clisp.org>
65927
65928         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
65929         * lib/gcd.c (gcd): Likewise.
65930
65931 2002-11-05  Bruno Haible  <bruno@clisp.org>
65932
65933         * lib/gcd.h: New file, from gettext-0.11.5.
65934         * lib/gcd.c: New file, from gettext-0.11.5.
65935
65936 2002-11-05  Bruno Haible  <bruno@clisp.org>
65937
65938         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65939         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65940         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65941         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
65942
65943         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
65944         <libintl.h>.
65945         * lib/makepath.c: Include gettext.h instead of <locale.h> and
65946         <libintl.h>.
65947
65948         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
65949         * lib/human.c: Include gettext.h instead of <libintl.h>.
65950         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
65951         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
65952         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
65953         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
65954         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
65955         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
65956         (textdomain): Remove definition.
65957         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
65958
65959         * lib/long-options.c: Remove include of <libintl.h> and definition of
65960         _.
65961         * lib/same.c: Remove include of <libintl.h> and definition of _.
65962
65963 2002-11-04  Owen Taylor  <otaylor@redhat.com>
65964
65965         * lib/config.charset: A few additions for Solaris.
65966
65967 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
65968
65969         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
65970         * lib/localcharset.c (locale_charset): Declare as extern "C".
65971
65972 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
65973
65974         * lib/config.charset: msdos in uk_UA uses CP1125.
65975
65976 2002-11-04  Bruno Haible  <bruno@clisp.org>
65977
65978         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
65979         * lib/strcase.h: New file, from GNU gettext-0.11.5.
65980         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
65981         * lib/strstr.h: New file, from GNU gettext-0.11.5.
65982         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
65983
65984 2002-11-04  Bruno Haible  <bruno@clisp.org>
65985
65986         * lib/localcharset.c (locale_charset): Don't return an empty string.
65987
65988 2002-11-04  Bruno Haible  <bruno@clisp.org>
65989
65990         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
65991         aliases.
65992
65993 2002-11-04  Bruno Haible  <bruno@clisp.org>
65994
65995         * lib/config.charset: Update for newest glibc. Add canonical names
65996         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
65997
65998 2002-11-04  Bruno Haible  <bruno@clisp.org>
65999
66000         * lib/config.charset: Add support for NetBSD.
66001
66002 2002-11-04  Bruno Haible  <bruno@clisp.org>
66003
66004         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
66005
66006 2002-11-01  Bruno Haible  <bruno@clisp.org>
66007
66008         * configure.in: Add AC_CONFIG_AUX_DIR call.
66009         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
66010         test/Makefile.
66011         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
66012
66013 2002-09-28  Karl Berry  <karl@gnu.org>
66014
66015         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
66016         installed automake until the next release, since changes have been
66017         made.
66018
66019 2002-09-25  Karl Berry  <karl@gnu.org>
66020
66021         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
66022         * lib/getopt*: copy from libc/posix.
66023         * lib/gettext.h: copy from gettext.
66024         * lib/.cppi-disable: add strdup.c, gettext.h.
66025
66026 2002-09-25  Karl Berry  <karl@gnu.org>
66027
66028         * config/srclist.txt: enable gettext.h check.
66029         * config/config.{guess,sub}: update from prep.
66030         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
66031                 from automake 1.6.3.
66032         See srclist*.
66033
66034 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
66035
66036         * regex.c (PATFETCH): Remove the translating fetch.
66037         (PATFETCH_RAW): Rename to PATFETCH.
66038         (set_image_of_range): New fun.
66039         (SET_RANGE_TABLE_WORK_AREA): Use it.
66040         (regex_compile): Don't translate the pattern chars so eagerly.
66041         Only do it when inserting an `exactn' bytecode or when handling
66042         a char-range.
66043         (mutually_exclusive_p): Avoid empty statement.
66044
66045 2002-07-06  Jim Meyering  <meyering@lucent.com>
66046
66047         * m4/README: Don't mention Makefile.am.in.
66048         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
66049
66050 2002-07-01  Jim Meyering  <meyering@lucent.com>
66051
66052         * lib/c-stack.c: Include sys/time.h.
66053         From Volker Borchert.
66054
66055 2002-06-26  Paul Eggert  <eggert@twinsun.com>
66056
66057         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
66058
66059 2002-06-26  Paul Eggert  <eggert@twinsun.com>
66060
66061         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
66062         New macro.  Use it uniformly instead of
66063         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
66064         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
66065         reported by Vin Shelton.
66066
66067 2002-06-22  Paul Eggert  <eggert@twinsun.com>
66068
66069         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
66070         Do not assume SA_SIGINFO behavior.
66071         Bug reported by Jim Meyering on NetBSD 1.5.2.
66072
66073 2002-06-22  Jim Meyering  <meyering@lucent.com>
66074
66075         * m4/c-stack.m4: New file, from diffutils-2.8.2.
66076         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
66077
66078         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
66079         now that configure.ac uses AC_GNU_SOURCE.
66080         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
66081         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
66082
66083         Update to latest tools.  Suggestions from Paul Eggert.
66084         * m4/stdbool.m4: New file, from diffutils-2.8.2.
66085         * m4/gnu-source.m4: Update from diffutils-2.8.2.
66086         * m4/fnmatch.m4: Likewise.
66087         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
66088         to AC_HEADER_STDBOOL
66089
66090 2002-06-22  Jim Meyering  <meyering@lucent.com>
66091
66092         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
66093         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
66094
66095 2002-06-22  Jim Meyering  <meyering@lucent.com>
66096
66097         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
66098
66099         * lib/exitfail.c, exitfail.h: Likewise.
66100         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
66101
66102         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
66103         of fnmatch.h.
66104         (EXTRA_DIST): Add fnmatch_loop.c.
66105         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
66106
66107         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
66108         * lib/fnmatch.c: Update from diffutils-2.8.2.
66109         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
66110         * lib/fnmatch.h: Remove file.
66111
66112 2002-06-21  Jim Meyering  <meyering@lucent.com>
66113
66114         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
66115         * m4/mbrtowc.m4: Likewise.
66116
66117         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
66118         * m4/mbswidth.m4: Reflect name change:
66119         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
66120         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
66121
66122         * m4/lib-link.m4: Update from gettext-0.11.2.
66123         * m4/gettext.m4: Likewise.
66124
66125         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
66126         From Alfred M. Szmidt.
66127
66128 2002-06-18  Paul Eggert  <eggert@twinsun.com>
66129
66130         * lib/file-type.h: Report an error if neither S_ISREG nor
66131         S_IFREG is defined, instead of using a test specific to glibc
66132         2.2.  This should be safe, since POSIX requires S_ISREG and
66133         Unix Version 7 had S_IFREG.  We don't need to check for
66134         <sys/types.h> since we don't use any symbols that it defines.
66135
66136 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
66137
66138         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
66139         $@-t, so that each temporary file name is unique and valid in the first
66140         8 characters, for operation under DOS.
66141
66142 2002-06-15  Paul Eggert  <eggert@twinsun.com>
66143
66144         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
66145
66146 2002-06-15  Jim Meyering  <meyering@lucent.com>
66147
66148         Work even with DJGPP 2.03, which lacks support for symlinks.
66149         From Richard Dawe.
66150         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
66151         is defined.
66152         * lib/lchown.c (S_ISLNK): Likewise.
66153
66154 2002-06-15  Jim Meyering  <meyering@lucent.com>
66155
66156         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
66157         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
66158         have been included before this file.
66159
66160 2002-06-14  Jim Meyering  <meyering@lucent.com>
66161
66162         * lib/file-type.h: Use the version from diffutils-2.8.2.
66163         * lib/file-type.c: Likewise.
66164
66165 2002-06-07  Jim Meyering  <meyering@lucent.com>
66166
66167         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
66168         They're needed at least for NetBSD 1.5.2.
66169         ($statxfs_includes): Include those same headers.
66170         ($statxfs_includes): Include sys/vfs.h if available.
66171         ($statxfs_includes): Likewise for sys/statvfs.h.
66172         Check for the following members in both structs statfs and statvfs:
66173         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
66174
66175 2002-06-01  Jim Meyering  <meyering@lucent.com>
66176
66177         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
66178         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
66179
66180 2002-05-28  Jim Meyering  <meyering@lucent.com>
66181
66182         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
66183         Reported by Volker Borchert.
66184
66185 2002-05-27  Jim Meyering  <meyering@lucent.com>
66186
66187         Fix a problem seen only on nonconforming systems whereby ls.c's
66188         use of localtime, and then of gettimeofday would cause trouble:
66189         the localtime call used to initialize rpl_gettimeofday's save
66190         mechanism would clobber ls's current local time information so
66191         that in any long listing the first file would always be listed
66192         with date 1970-01-01.  Analysis by Volker Borchert.
66193
66194         * lib/gettimeofday.c (localtime): Undefine.
66195         (rpl_localtime): New function.
66196
66197 2002-05-27  Jim Meyering  <meyering@lucent.com>
66198
66199         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
66200         localtime.
66201
66202         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
66203         use the replacement function; it wouldn't resolve at link time.
66204         Reported by Volker Borchert.
66205
66206 2002-05-22  Jim Meyering  <meyering@lucent.com>
66207
66208         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
66209         file-type.h.
66210         * lib/file-type.h: New file.
66211         * lib/file-type.c (file_type): New file/function.  Extracted from
66212         diffutils.
66213
66214 2002-04-30  Jim Meyering  <meyering@lucent.com>
66215
66216         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
66217
66218 2002-04-29  Paul Eggert  <eggert@twinsun.com>
66219
66220         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
66221
66222 2002-04-29  Paul Eggert  <eggert@twinsun.com>
66223
66224         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
66225         Do not check for alloca.h (no longer used) or stdbool.h (was never
66226         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
66227
66228 2002-04-29  Paul Eggert  <eggert@twinsun.com>
66229
66230         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
66231
66232 2002-04-29  Jim Meyering  <meyering@lucent.com>
66233
66234         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
66235         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
66236         Use AC_FUNC_STRNLEN here instead.
66237
66238         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
66239         With autoconf-2.53a, it's part of AC_PROG_CC.
66240
66241 2002-04-28  Paul Eggert  <eggert@twinsun.com>
66242
66243         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
66244         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
66245
66246 2002-04-28  Paul Eggert  <eggert@twinsun.com>
66247
66248         * lib/sig2str.h, lib/sig2str.c: New files.
66249         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
66250
66251 2002-04-28  Paul Eggert  <eggert@twinsun.com>
66252
66253         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
66254         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
66255         of 127, since 64 is the largest conceivable number for ancient
66256         nonstandard hosts.
66257         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
66258
66259 2002-04-28  Jim Meyering  <meyering@lucent.com>
66260
66261         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
66262
66263 2002-04-24  Jim Meyering  <meyering@lucent.com>
66264
66265         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
66266         (jm_PREREQ): Use it.
66267
66268         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
66269         mach/mach.h fcntl.h.
66270         Check for this function: setlocale.
66271
66272 2002-04-24  Jim Meyering  <meyering@lucent.com>
66273
66274         * lib/gettext.h: New file, from Gettext.
66275         * lib/Makefile.am (INCLUDES): Remove -I../intl.
66276         (libfetish_a_SOURCES): Add gettext.h.
66277
66278 2002-04-16  Jim Meyering  <meyering@lucent.com>
66279
66280         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
66281         ut_pid, ut_id, ut_exit.
66282
66283 2002-04-16  Jim Meyering  <meyering@lucent.com>
66284
66285         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
66286         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
66287         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
66288
66289 2002-04-12  Jim Meyering  <meyering@lucent.com>
66290
66291         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
66292         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
66293         existence of the getmntinfo function.  Needed for Darwin 5.3.
66294
66295         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
66296         This is necessary at least on Darwin 5.3.
66297
66298         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
66299         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
66300         strnlen.o in the library, and that makes some versions of ranlib
66301         object.
66302
66303 2002-04-12  Jim Meyering  <meyering@lucent.com>
66304
66305         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
66306
66307 2002-04-09  Jim Meyering  <meyering@lucent.com>
66308
66309         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
66310         to be more precise.  Rather than saying we're checking whether the
66311         function `works', say what we're testing.
66312         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
66313         Reported by Bruno Haible.
66314
66315 2002-03-10  Jim Meyering  <meyering@lucent.com>
66316
66317         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
66318         Suggestion from Santiago Vila.
66319
66320 2002-03-08  Jim Meyering  <meyering@lucent.com>
66321
66322         * lib/rename.c: Mention that this wrapper is needed also on
66323         mips-dec-ultrix4.4 systems.
66324
66325 2002-03-02  Jim Meyering  <meyering@lucent.com>
66326
66327         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
66328         not HAVE_CLOCK_SETTIME.
66329
66330 2002-02-27  Paul Eggert  <eggert@twinsun.com>
66331
66332         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
66333         Check for clock_settime.
66334
66335 2002-02-27  Paul Eggert  <eggert@twinsun.com>
66336
66337         * lib/nanosleep.h: Rename to....
66338         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
66339
66340         * lib/gettime.c: New file.
66341         * lib/settime.c: New file.
66342         * lib/stime.c: Remove.
66343
66344         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
66345         timespec.h.  Remove nanosleep.h.
66346
66347 2002-02-25  Paul Eggert  <eggert@twinsun.com>
66348
66349         * m4/acl.m4: New file.
66350         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
66351         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
66352
66353 2002-02-25  Paul Eggert  <eggert@twinsun.com>
66354
66355         * lib/acl.c, lib/acl.h: New files.
66356         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
66357
66358 2002-02-24  Jim Meyering  <meyering@lucent.com>
66359
66360         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
66361         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
66362         cause trouble.  Reported by Nelson Beebe.
66363
66364 2002-02-23  Paul Eggert  <eggert@twinsun.com>
66365
66366         * lib/path-concat.c (xpath_concat): Reorder code to pacify
66367         compilers that don't know that xalloc_die never returns.
66368
66369 2002-02-20  Jim Meyering  <meyering@lucent.com>
66370
66371         * lib/getdate.c: Regenerate using bison-1.33.
66372
66373 2002-02-17  Jim Meyering  <meyering@lucent.com>
66374
66375         * config/config.guess (main): Don't use `head -1'; it's no longer
66376         portable. Use `sed 1q' instead.
66377
66378 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
66379
66380         * m4/codeset.m4: Upgrade to gettext-0.11.
66381         * m4/gettext.m4: Upgrade to gettext-0.11.
66382         * m4/glibc21.m4: Upgrade to gettext-0.11.
66383         * m4/iconv.m4: Upgrade to gettext-0.11.
66384         * m4/isc-posix.m4: Upgrade to gettext-0.11.
66385         * m4/lcmessage.m4: Upgrade to gettext-0.11.
66386         * m4/lib-ld.m4: New file, from gettext-0.11.
66387         * m4/lib-link.m4: New file, from gettext-0.11.
66388         * m4/lib-prefix.m4: New file, from gettext-0.11.
66389         * m4/progtest.m4: Upgrade to gettext-0.11.
66390
66391 2002-02-15  Paul Eggert  <eggert@twinsun.com>
66392
66393         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
66394         (jm_PREREQ): Use it.
66395
66396 2002-02-15  Paul Eggert  <eggert@twinsun.com>
66397
66398         * lib/posixver.c, lib/posixver.h: New files.
66399         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
66400
66401 2002-02-02  Paul Eggert  <eggert@twinsun.com>
66402             Bruno Haible  <bruno@clisp.org>
66403
66404         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
66405         (fwrite_success_callback): New declaration.
66406         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
66407         print_unicode_char. Call failure callback instead of error.
66408         (fwrite_success_callback): New function.
66409         (exit_failure_callback): New function.
66410         (fallback_failure_callback): New function.
66411         (print_unicode_char): Call unicode_to_mb.
66412
66413 2002-01-26  Jim Meyering  <meyering@lucent.com>
66414
66415         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
66416         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
66417
66418 2002-01-26  Jim Meyering  <meyering@lucent.com>
66419
66420         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
66421
66422 2002-01-22  Paul Eggert  <eggert@twinsun.com>
66423
66424         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
66425
66426 2002-01-22  Jim Meyering  <meyering@lucent.com>
66427
66428         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
66429         Otherwise, some versions of automake would omit the rule that makes
66430         Makefile from Makefile.in.
66431
66432 2002-01-21  Paul Eggert  <eggert@twinsun.com>
66433
66434         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
66435         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
66436         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
66437         (memcoll): Set errno to zero if there is no error.
66438
66439         * lib/quotearg.c (quotearg_buffer_restyled):
66440         Fix bug with quoting buffers containing NUL when backslashing escapes.
66441         This bug was exposed by the other changes in this patch.
66442         (quotearg_n_options): New arg ARGSIZE.
66443         All callers changed.
66444         (quoting_options_from_style): New function.
66445         (quotearg_n_style): Use it.
66446         (quotearg_n_style_mem): New function.
66447
66448         * lib/quotearg.h (quotearg_n_style_mem): New function.
66449
66450 2002-01-19  Jim Meyering  <meyering@lucent.com>
66451
66452         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
66453         Remove useless quotes: DF_PROG="df".
66454         * m4/strnlen.m4: New file.
66455
66456 2002-01-16  Paul Eggert  <eggert@twinsun.com>
66457
66458         * lib/backupfile.c (ISDIGIT): Comment fix.
66459         * lib/getdate.y (ISDIGIT): Likewise.
66460         * lib/posixtm.c (ISDIGIT, year): Likewise.
66461         * lib/strverscmp.c (ISDIGIT): Likewise.
66462         * lib/userspec.c (ISDIGIT): Likewise.
66463
66464 2002-01-16  Jim Meyering  <meyering@lucent.com>
66465
66466         * lib/getdate.y: Add three semicolons, each just before a closing
66467         brace. Bison (as of version 1.31) no longer papers over that mistake.
66468
66469 2002-01-05  Jim Meyering  <meyering@lucent.com>
66470
66471         * lib/version-etc.c (version_etc_copyright): Update copyright year.
66472
66473 2001-12-19  Paul Eggert  <eggert@twinsun.com>
66474
66475         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
66476         not silently exit merely because the output buffer happens to
66477         have nothing pending.
66478
66479 2001-12-18  Paul Eggert  <eggert@twinsun.com>
66480
66481         See the big note in ../ChangeLog.
66482         * lib/human.c (suffixes): Prefer K to k for 1024.
66483         (generate_suffix_backwards): New function.
66484         (human_readable_inexact): Use it.
66485         * lib/xstrtol.c (__xstrtol): If there is no number but there
66486         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
66487         Accept 'K' as well as 'k'.
66488
66489 2001-12-15  Jim Meyering  <meyering@lucent.com>
66490
66491         * lib/regex.h (__restrict_arr): Update from libc.
66492
66493         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
66494         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
66495         (STREQ): Define.
66496
66497 2001-12-14  Jim Meyering  <meyering@lucent.com>
66498
66499         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
66500         Suggestion from Bruno Haible.
66501
66502 2001-12-10  Jim Meyering  <meyering@lucent.com>
66503
66504         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
66505         xrealloc, Instead, include "xalloc.h".
66506         (initbuffer): Don't cast xmalloc return value to char*.
66507         (readline): Reword comment.
66508         Don't cast xrealloc return value to char*
66509         Return NULL, not 0.
66510
66511 2001-12-09  Jim Meyering  <meyering@lucent.com>
66512
66513         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
66514         about `signed and unsigned type in conditional expression'.
66515         * lib/posixtm.c (posix_time_parse): Likewise.
66516
66517         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
66518
66519         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
66520         to avoid a pedantic warning.
66521
66522         * lib/getstr.c: Don't include assert.h.
66523         (getstr): Remove warning-evoking assertions.
66524         Return -1 if offset parameter is out of bounds.
66525         Change the type of a local from int to size_t.
66526
66527         * lib/strftime.c (my_strftime_localtime_r): Include this function
66528         definition in the `#if ! HAVE_TM_GMTOFF' block.
66529
66530         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
66531         Include xalloc.h instead.
66532
66533 2001-12-02  Jim Meyering  <meyering@lucent.com>
66534
66535         * lib/tempname.c: Don't declare getenv, thus reverting the change of
66536         2001-11-18.  It's no longer necessary, now that stdlib.h is always
66537         included.
66538
66539         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
66540         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
66541
66542 2001-11-30  Akim Demaille  <akim@epita.fr>
66543
66544         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
66545         before being defined.
66546
66547 2001-11-27  Paul Eggert  <eggert@twinsun.com>
66548
66549         * lib/quotearg.h (quotearg_n, quotearg_n_style):
66550         First arg is int, not unsigned.
66551         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
66552         (SIZE_MAX, UINT_MAX): New macros.
66553         (quotearg_n_options): Abort if N is negative.
66554         Avoid overflow check on hosts where size_t is 64 bits and int
66555         is 32 bits, as overflow is impossible there.
66556         Fix off-by-one typo that caused unnecessary reallocation.
66557
66558 2001-11-27  Jim Meyering  <meyering@lucent.com>
66559
66560         * lib/tempname.c: Merge with version from libc.
66561         * lib/regex.c: Likewise.
66562
66563         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
66564         systems for which STDC_HEADERS is 0, it was not included, resulting in
66565         a warning about an integer-to-pointer conversion problem with getenv.
66566         Reported by Volker Borchert.
66567
66568 2001-11-26  Jim Meyering  <meyering@lucent.com>
66569
66570         * lib/gtod.h: Remove file.
66571         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
66572         * lib/gettimeofday.c: Don't include gtod.h.
66573         (GTOD_init): Remove function.
66574         (rpl_gettimeofday): Do its job here instead, rather than aborting.
66575         Suggestion from Volker Borchert.
66576
66577 2001-11-23  Jim Meyering  <meyering@lucent.com>
66578
66579         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
66580         it.
66581         * lib/hash.c (struct hash_table): Define it here instead.
66582
66583 2001-11-22  Jim Meyering  <meyering@lucent.com>
66584
66585         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
66586
66587 2001-11-20  Jim Meyering  <meyering@lucent.com>
66588
66589         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
66590         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
66591
66592 2001-11-19  Jim Meyering  <meyering@lucent.com>
66593
66594         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
66595         directory.  Use "conftestXXXXXX" as the template.
66596         Suggestion from Paul Eggert.
66597
66598         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
66599         immediately, so the test doesn't mistakenly hit the max-open-files
66600         limit.
66601
66602 2001-11-18  Paul Eggert  <eggert@twinsun.com>
66603
66604         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
66605         (TEMPORARIES): New macro.
66606         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
66607         removes an artificial limitation (e.g. HP-UX 10.20, where
66608         TMP_MAX is 17576).
66609
66610 2001-11-18  Jim Meyering  <meyering@lucent.com>
66611
66612         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
66613
66614 2001-11-18  Jim Meyering  <meyering@lucent.com>
66615
66616         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
66617         on SunOS 4.
66618
66619         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
66620         files will be created before anything else.
66621
66622 2001-11-17  Paul Eggert  <eggert@twinsun.com>
66623
66624         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
66625         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
66626
66627 2001-11-17  Jim Meyering  <meyering@lucent.com>
66628
66629         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
66630         Prompted by a report from Bob Proulx.
66631
66632         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
66633         Instead, require UTILS_FUNC_MKSTEMP.
66634
66635 2001-11-17  Jim Meyering  <meyering@lucent.com>
66636
66637         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
66638         Now, that's done as part of AC_FUNC_STRTOD.
66639
66640 2001-11-17  Jim Meyering  <meyering@lucent.com>
66641
66642         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
66643         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
66644         rather than group writable.  Patch by Juan F. Codagnone.
66645
66646         * lib/readtokens.c: Remove explicit declarations of xmalloc and
66647         xrealloc, Instead, include "xalloc.h".
66648
66649         * lib/mountlist.c: Include unlocked-io.h after all system headers.
66650         Remove explicit declarations of xmalloc, xrealloc,
66651         and xstrdup.  Instead, include "xalloc.h".
66652
66653         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
66654         unlocked-io.h.
66655         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
66656         Likewise.
66657         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
66658
66659         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
66660         Reported by Padraig Brady.
66661
66662         * lib/mkstemp.c: #undef mkstemp.
66663         Include config.h.
66664         (rpl_mkstemp): Rename from mkstemp.
66665         Protoize.
66666
66667 2001-11-16  Jim Meyering  <meyering@lucent.com>
66668
66669         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
66670         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
66671         determine the amount of total physical memory, use pstat_getstatic.
66672         HPUX-11 doesn't define _SC_PHYS_PAGES.
66673         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
66674         If sysconf couldn't be used to determine the amount of available
66675         physical memory, use both pstat_getstatic and pstat_getdynamic.
66676         Based on a patch from Bob Proulx.
66677
66678 2001-11-10  Jim Meyering  <meyering@lucent.com>
66679
66680         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
66681         (jm_PREREQ): Use it.
66682
66683 2001-11-09  Jim Meyering  <meyering@lucent.com>
66684
66685         * m4/jm-macros.m4: Require autoconf-2.52f.
66686         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
66687         Use these AC_-prefixed names, not the AM_-prefixed ones.
66688
66689         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
66690
66691 2001-11-05  Jim Meyering  <meyering@lucent.com>
66692
66693         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
66694
66695 2001-11-04  Jim Meyering  <meyering@lucent.com>
66696
66697         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
66698         $DEFS.
66699
66700 2001-11-03  Jim Meyering  <meyering@lucent.com>
66701
66702         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
66703         of AC_DEFUN.
66704
66705         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
66706         know the name of the variable in the macro definition.
66707
66708 2001-11-03  Jim Meyering  <meyering@lucent.com>
66709
66710         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
66711         in argmatch_to_argument call.
66712
66713         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
66714         argument.
66715
66716         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
66717         e.g., a fault due to an attempt to free a NULL pointer.
66718
66719 2001-11-01  Jim Meyering  <meyering@lucent.com>
66720
66721         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
66722         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
66723
66724 2001-11-01  Jim Meyering  <meyering@lucent.com>
66725
66726         * lib/dirfd.c, lib/dirfd.h: New files.
66727         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
66728
66729         * lib/hash.c (hash_print) [TESTING]: Clean up.
66730
66731 2001-10-22  Paul Eggert  <eggert@twinsun.com>
66732
66733         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
66734         to avoid a warning if -Wall.
66735
66736 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
66737
66738         * README: New file
66739         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
66740         (per RMS's instructions, this is now the canonical source)
66741         * lgpl/, gpl/: New directories.
66742
66743 2001-10-21  Paul Eggert  <eggert@twinsun.com>
66744
66745         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
66746
66747 2001-10-21  Jim Meyering  <meyering@lucent.com>
66748
66749         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
66750         this code would end up calling gettext even in packages built
66751         with --disable-nls.
66752         * lib/getopt.c (_): Likewise.
66753         * lib/regex.c (_): Likewise.
66754
66755 2001-10-20  Paul Eggert  <eggert@twinsun.com>
66756
66757         * m4/error.m4 (jm_PREREQ_ERROR):
66758         Do not invoke AC_CHECK_FUNCS with strerror_r, as
66759         AC_FUNC_STRERROR_R does that.
66760         Check for strerror declaration.
66761
66762         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
66763         are supposed to have them these days.
66764         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
66765         Merge changes from latest Autoconf CVS.
66766         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
66767         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
66768         POSIX decided to standardize on the int flavor of strerror_r.
66769
66770 2001-10-20  Paul Eggert  <eggert@twinsun.com>
66771
66772         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
66773         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
66774         Use strerror_r that is only a macro, even if it is not a function.
66775         (strerror): Check for HAVE_DECL_STRERROR before declaring.
66776         (private_strerror): Use prototypes, not old-style function definition.
66777         (print_errno_message): New function.
66778         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
66779         char*-flavored one.
66780         (error_tail, error, error_at_line): Use it.
66781
66782 2001-10-11  Jim Meyering  <meyering@lucent.com>
66783
66784         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
66785         and quote_n (1, ... to avoid clobbering a buffer.
66786
66787 2001-10-05  Jim Meyering  <meyering@lucent.com>
66788
66789         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
66790         hash-pjw.h.
66791         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
66792         * lib/hash-pjw.h: New file.
66793
66794 2001-09-30  Jim Meyering  <meyering@lucent.com>
66795
66796         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
66797         `struct fsstat' has the `f_fstypename' member.
66798         Use that to define FS_TYPE, which is now used to make
66799         the getfsstat link test tighter.
66800
66801 2001-09-30  Jim Meyering  <meyering@lucent.com>
66802
66803         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
66804         Include <sys/ucred.h>, for Apple Darwin.
66805         Include sys/mount.h and sys/fs_types.h only if available.
66806         (FS_TYPE): Define.
66807         (read_filesystem_list): Use FS_TYPE.
66808
66809 2001-09-29  Paul Eggert  <eggert@twinsun.com>
66810
66811         * lib/exclude.c (excluded_filename): 0 -> false, since it's
66812         a boolean context.
66813
66814 2001-09-29  Jim Meyering  <meyering@lucent.com>
66815
66816         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
66817         [one-argument getmntent function]): Include stdio.h before mntent.h.
66818         SunOS 4.1.x needs it for the declaration of `FILE'.
66819         Patch by Volker Borchert.
66820
66821         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
66822         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
66823         sys/fs_types.h, and make the link-test for getfsstat guard #include
66824         directives with appropriate #if HAVE_*_H tests so that we can
66825         detect getfsstat on Apple Darwin1.3.7 systems.
66826         Reported by Nelson Beebe.
66827         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
66828
66829 2001-09-28  Paul Eggert  <eggert@twinsun.com>
66830
66831         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
66832         #defines strtoimax.  Also treat the other strto* functions
66833         like strtoimax.
66834
66835         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
66836         Check for strtoul and strtoumax,
66837         as those declarations are made even in the signed case.
66838         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
66839         Likewise, for strtol and strtoimax.
66840
66841 2001-09-28  Paul Eggert  <eggert@twinsun.com>
66842
66843         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
66844         #defines strtoimax.  Also treat the other strto* functions
66845         like strtoimax.
66846
66847         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
66848         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
66849         (strtoimax, strtoumax): Do not declare if already defined as a macro.
66850
66851 2001-09-26  Jim Meyering  <meyering@lucent.com>
66852
66853         Most macros in unlocked-io.h had the wrong number of arguments.
66854         * lib/gen-uio: New script.
66855         (USE_UNLOCKED_IO): Define to 1 if not already defined.
66856         * lib/unlocked-io.hin: Remove file.
66857         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
66858         rather than trying to embed it here.
66859         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
66860         Reported by Padraig Brady.
66861
66862 2001-09-25  Volker Borchert  <bt@teknon.de>
66863
66864         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
66865         `result'.
66866
66867 2001-09-24  Jim Meyering  <meyering@lucent.com>
66868
66869         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
66870
66871 2001-09-23  Jim Meyering  <meyering@lucent.com>
66872
66873         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
66874         instead of the mere test for existence of mntent.h.  The latter
66875         would get a false-positive on AIX 3.4 systems.
66876         In the outer getmntent if-block, don't die if neither of the getmntent
66877         tests succeeds.  Instead, just fall through and continue with the
66878         remaining tests.
66879
66880 2001-09-23  Jim Meyering  <meyering@lucent.com>
66881
66882         * lib/mountlist.c: Remove useless parentheses in #if directives.
66883         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
66884         the deprecated MOUNTED symbol is no longer defined in mntent.h.
66885
66886 2001-09-22  Jim Meyering  <meyering@lucent.com>
66887
66888         * m4/gettext.m4: New file.  From gettext.
66889         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
66890         * m4/progtest.m4: Likewise
66891         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
66892         * m4/glibc21.m4: Likewise.
66893
66894         * m4/libintl.m4: Remove.  No longer used.
66895
66896 2001-09-22  Jim Meyering  <meyering@lucent.com>
66897
66898         * lib/localcharset.c: Update from latest gettext.
66899         * lib/config.charset: Likewise.
66900
66901 2001-09-20  Jim Meyering  <meyering@lucent.com>
66902
66903         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
66904         strtoimax.
66905         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
66906         strtoumax.
66907
66908 2001-09-20  Jim Meyering  <meyering@lucent.com>
66909
66910         * lib/xstrtol.c (strtoimax): Guard declaration with
66911         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
66912         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
66913         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
66914         (strtoumax): Likewise, for completeness (it wasn't necessary).
66915
66916 2001-09-17  Paul Eggert  <eggert@twinsun.com>
66917
66918         * lib/strtoimax.c (HAVE_LONG_LONG):
66919         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
66920         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
66921         to work around bug in IBM C compiler.
66922
66923 2001-09-17  Jim Meyering  <meyering@lucent.com>
66924
66925         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
66926         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
66927         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
66928         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
66929         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
66930         whenever the right hand side need not be expanded by the shell.
66931
66932 2001-09-16  Paul Eggert  <eggert@twinsun.com>
66933
66934         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
66935         library.  It's not correct, as some older glibcs are buggy.
66936         fnmatch wasn't fixed until glibc 2.2.
66937
66938         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
66939         special shell magic here.
66940
66941 2001-09-16  Jim Meyering  <meyering@lucent.com>
66942
66943         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
66944         * m4/jm-macros.m4: Require it.
66945
66946 2001-09-16  Jim Meyering  <meyering@lucent.com>
66947
66948         * lib/mkdir.c: New file.
66949
66950 2001-09-15  Jim Meyering  <meyering@lucent.com>
66951
66952         * m4/jm-macros.m4: Check for help2man.
66953
66954 2001-09-11  Jim Meyering  <meyering@lucent.com>
66955
66956         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
66957         The body, by Paul Eggert, was moved here from configure.in.
66958         * m4/jm-macros.m4: Require UTILS_HOST_OS.
66959
66960 2001-09-04  Paul Eggert  <eggert@twinsun.com>
66961
66962         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
66963         (jm_PREREQ): Use it.
66964
66965 2001-09-04  Paul Eggert  <eggert@twinsun.com>
66966
66967         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
66968         Use ssize_t, not int, to store result of readlink.
66969         Check for ssize_t overflow as well as size_t overflow,
66970         as POSIX says the result of readlink is implementation-defined
66971         when ssize_t overflows.
66972         Remove unnecessary cast to char*.
66973         Use free+malloc instead of realloc, as the storage doesn't need
66974         to be preserved and it's clearer and can be more efficient that way.
66975         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
66976         * lib/xreadlink.h (xreadlink): Update prototype.
66977
66978 2001-09-04  Paul Eggert  <eggert@twinsun.com>
66979
66980         * lib/xgetcwd.c: Revert some of the previous change; intead,
66981         fix the HAVE_GETCWD_NULL code to behave more like the
66982         !HAVE_GETCWD_NULL code used to.
66983
66984         Include "xalloc.h".
66985         (xgetcwd): Do not return NULL when memory is exhausted; instead,
66986         invoke xalloc_die.
66987
66988 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66989
66990         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
66991         sys/param.h, as pathmax.h includes them.
66992
66993 2001-09-03  Paul Eggert  <eggert@twinsun.com>
66994
66995         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
66996         (jm_PREREQ_XGETCWD): New macro.
66997
66998         * m4/getcwd.m4: New file.
66999
67000 2001-09-03  Paul Eggert  <eggert@twinsun.com>
67001
67002         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
67003         like the HAVE_GETCWD_NULL code.
67004         Include pathmax.h if not HAVE_GETCWD.
67005         Do not include xalloc.h.
67006         (INITIAL_BUFFER_SIZE): New symbol.
67007         Do not use xmalloc / xrealloc, since the caller is responsible for
67008         handling errors.  Preserve errno around `free' during failure.
67009         Do not overrun buffer when using getwd.
67010
67011 2001-09-03  Paul Eggert  <eggert@twinsun.com>
67012
67013         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
67014         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
67015         getcwd (NULL, 0).
67016
67017 2001-09-03  Paul Eggert  <eggert@twinsun.com>
67018
67019         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
67020         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
67021         spotted by Jim Meyering.
67022
67023 2001-09-03  Jim Meyering  <meyering@lucent.com>
67024
67025         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
67026         failure.
67027
67028 2001-09-02  Jim Meyering  <meyering@lucent.com>
67029
67030         * lib/error.c: Update from GNU libc.
67031
67032 2001-09-01  Jim Meyering  <meyering@lucent.com>
67033
67034         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
67035         Used by df.
67036
67037 2001-09-01  Jim Meyering  <meyering@lucent.com>
67038
67039         * lib/xreadlink.c: New file.
67040         * lib/xreadlink.h: New file.
67041         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
67042         xreadlink.h.
67043
67044         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
67045         doesn't conflict with sparc Solaris 7's definition in
67046         /usr/include/sys/int_types.h.
67047
67048         * lib/exclude.c: Use `""', not `<>' to #include non-system header
67049         files.
67050         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
67051         and strncasecmp as r-values.  Unixware didn't have declarations.
67052
67053 2001-08-31  Paul Eggert  <eggert@twinsun.com>
67054
67055         * lib/xstrtol.h: Add copyright notice.
67056         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
67057         LONGINT_INVALID_SUFFIX_CHAR.
67058
67059 2001-08-31  Paul Eggert  <eggert@twinsun.com>
67060
67061         * lib/xstrtol.c (strtoimax): New decl.
67062
67063 2001-08-31  Paul Eggert  <eggert@twinsun.com>
67064
67065         * lib/xgetcwd.c: Don't include pathmax.h.
67066         Include stdlib.h and unistd.h if available.
67067         Include xalloc.h.
67068         (xmalloc, xstrdup, free): Remove decls.
67069         (xgetcwd): Don't assume sizes fit in unsigned.
67070         Check for overflow when computing sizes.
67071         Simplify reallocation code.
67072
67073 2001-08-31  Paul Eggert  <eggert@twinsun.com>
67074
67075         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
67076         a directory's st_size can have an arbitrary value, so the old
67077         usage could waste an arbitrary amount of memory.  All uses
67078         changed.
67079         * lib/savedir.h: Update prototype.
67080
67081 2001-08-31  Paul Eggert  <eggert@twinsun.com>
67082
67083         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
67084
67085         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
67086         old strtoimax.c.
67087
67088         Also, make the following further changes to make this file's
67089         configuration more similar to that of strtol.c:
67090         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
67091         (strtoumax, uintmax_t, strtoull, strtol): Remove.
67092         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
67093         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
67094         changed to signed values.
67095
67096         And make the following changes as well:
67097         Fix copyright notice, as 1999 was missing.
67098         (verify): New macro.
67099         (strtoimax): Check sizes at compile-time, not run-time.
67100         Prefer strtol to strtoll if both work.
67101         (main): Remove; it was not that useful and was a pain to maintain.
67102
67103         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
67104
67105 2001-08-31  Jim Meyering  <meyering@lucent.com>
67106
67107         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
67108         Use an initial, malloc'd, buffer of length 128 rather than
67109         a statically allocated one of length 1024.
67110
67111 2001-08-30  Paul Eggert  <eggert@twinsun.com>
67112
67113         Simplify code, partly by assuming autoconf 2.52 semantics.
67114
67115         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
67116
67117         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
67118         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
67119         All uses removed.
67120         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
67121         Move AC_REQUIRE to next-to-top level, to avoid confusion.
67122         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
67123         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
67124         jm_AC_HEADER_INTTYPES_H.
67125         * m4/jm-macros.m4 (jm_MACROS): Likewise.
67126
67127         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
67128
67129         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
67130         Quote first arg of AC_DEFUN.
67131         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
67132         since they are needed to parse the include file even if we need
67133         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
67134         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
67135         but with opposite signedness.
67136
67137 2001-08-30  Paul Eggert  <eggert@twinsun.com>
67138
67139         Merge 'exclude' changes from tar 1.13.22.
67140         This fixes one or two unlikely storage allocation overflow bugs,
67141         but doesn't change user-visible behavior otherwise.
67142
67143 2001-08-30  Paul Eggert  <eggert@twinsun.com>
67144
67145         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
67146         (jm_PREREQ_EXCLUDE): New macro.
67147
67148 2001-08-30  Paul Eggert  <eggert@twinsun.com>
67149
67150         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
67151         tm to be declared.
67152
67153 2001-08-30  Paul Eggert  <eggert@twinsun.com>
67154
67155         * lib/hash.c: Remove '2001' from copyright notice.
67156
67157 2001-08-30  Paul Eggert  <eggert@twinsun.com>
67158
67159         * lib/full-write.h: New file.
67160         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
67161         * lib/full-write.c: Correct credits, as cccp.c no longer
67162         exists and anyway it was so heavily changed from the old cccp
67163         code as to be unrecognizable.  Include full-write.h.
67164         (full_write) Return size_t, with short writes meaning failure.
67165         All callers changed.  This fixes a bug with large buffers
67166         on 64-bit hosts.
67167         * lib/utime.c: Include full-write.h.
67168
67169 2001-08-30  Paul Eggert  <eggert@twinsun.com>
67170
67171         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
67172         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
67173         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
67174         Include if available.
67175         (<xalloc.h>): Include
67176         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
67177         (verify): New macro.  Use it to verify that EXCLUDE macros do not
67178         collide with FNM macros.
67179         (struct patopts): New struct.
67180         (struct exclude): Use it, as exclude patterns now come with options.
67181         (new_exclude): Support above changes.
67182         (new_exclude, add_exclude_file):
67183         Initial size must now be a power of two to simplify overflow checking.
67184         (free_exclude, fnmatch_no_wildcards): New function.
67185         (excluded_filename): No longer requires options arg, as the options
67186         are determined by add_exclude.  Now returns bool, not int.
67187         (excluded_filename, add_exclude):
67188         Add support for the fancy new exclusion options.
67189         (add_exclude, add_exclude_file): Now takes int options arg.
67190         Check for arithmetic overflow when computing sizes.
67191         (add_exclude_file): xrealloc might modify errno, so don't
67192         realloc until after errno might be used.
67193
67194         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
67195         New macros.
67196         (free_exclude): New decl.
67197         (add_exclude, add_exclude_file): Now takes int options arg.
67198         (excluded_filename): No longer requires options arg, as the options
67199         are determined by add_exclude.  Now returns bool, not int.
67200
67201 2001-08-30  Paul Eggert  <eggert@twinsun.com>
67202
67203         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
67204
67205 2001-08-27  Jim Meyering  <meyering@lucent.com>
67206
67207         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
67208
67209         * lib/version-etc.c (N_): Remove definition.
67210         Revert most of last change.
67211         Instead, simply don't mark the `Copyright...' string for translation.
67212         Based on advice from Paul Eggert.
67213
67214         * lib/strtoxmax.c: Tweak comment.
67215
67216 2001-08-26  Jim Meyering  <meyering@lucent.com>
67217
67218         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
67219
67220         * m4/xstrtoimax.m4: New file.
67221         * m4/xstrtoumax.m4: Add comments explaining why we
67222         AC_REPLACE_FUNCS(strtol).
67223
67224 2001-08-26  Jim Meyering  <meyering@lucent.com>
67225
67226         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
67227         of copyright with `%s' so translators don't get an untranslated
67228         message in 2002.
67229         (COPYRIGHT_YEAR): Define.
67230         (version_etc): Use fprintf rather than fputs.
67231         Suggestion from Ulrich Drepper.
67232
67233         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
67234
67235         * lib/strtoll.c: New file, from GNU libc.
67236         * lib/xstrtoimax.c: New file.
67237
67238         * lib/xstrtol.h: Add xstrtoimax.
67239         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
67240         * lib/strtoimax.c: New file.  Likewise, but first define
67241         STRTOUXMAX_SIGNED.
67242
67243         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
67244         ...
67245         * lib/strtoxmax.c: ... then renamed to this.
67246
67247 2001-08-18  Paul Eggert  <eggert@twinsun.com>
67248
67249         * m4/inttypes.m4: Add AC_PREREQ(2.13).
67250         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
67251         (jm_AC_TYPE_INTMAX_T): New macro.
67252         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
67253
67254         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
67255
67256         * m4/longlong.m4: Renamed from ulonglong.m4.
67257         * m4/inttypes.m4: Renamed from inttypes_h.m4.
67258         * m4/uintmax_t.m4: Removed.
67259
67260 2001-08-13  Paul Eggert  <eggert@twinsun.com>
67261
67262         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
67263         Port to Solaris 8, where 'sed' requires a space after the 'r'
67264         command, and where sh dislikes "$/".  Clean up the spacing a bit.
67265         Redirect output to $tmp just once.
67266
67267 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
67268
67269         * lib/addext.c (<errno.h>): Include.
67270         (errno): Declare if not defined.
67271         (addext): Work correctly when pathconf returns -1 and leaves
67272         errno alone because there is no limit.  Also, work even if
67273         pathconf returns a value greater than SIZE_MAX.
67274
67275 2001-08-12  Jim Meyering  <meyering@lucent.com>
67276
67277         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
67278         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
67279         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
67280         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
67281         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
67282         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
67283         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
67284         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
67285         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
67286         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
67287         utime.m4, utimes.m4, xstrtoumax.m4:
67288         Quote the first argument in each use of AC_DEFUN.
67289
67290 2001-08-12  Jim Meyering  <meyering@lucent.com>
67291
67292         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
67293         Simply `return getcwd (NULL, 0);'.
67294         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
67295         Use 1300 as initial value for length, not PATH_MAX.
67296
67297         * lib/pathmax.h: Clean up cpp syntax.
67298
67299 2001-08-12  Jim Meyering  <meyering@lucent.com>
67300
67301         * lib/gettimeofday.c: New file.
67302         * lib/gtod.h: New file.
67303         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
67304
67305 2001-08-05  Jim Meyering  <meyering@lucent.com>
67306
67307         * m4/jm-macros.m4: Require autoconf-2.52.
67308
67309 2001-08-04  Jim Meyering  <meyering@lucent.com>
67310
67311         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
67312         stmt, to get in sync with glibc.
67313
67314 2001-08-03  Paul Eggert  <eggert@twinsun.com>
67315
67316         The following changes are from gettext 0.10.39 as maintained by
67317         Bruno Haible.
67318
67319         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
67320         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
67321         with inverted sense.  All uses changed.
67322
67323         * lib/mbswidth.c: Don't include <limits.h>.
67324         Include <stdlib.h> and <string.h> unconditionally.
67325         (iswcntrl, mbsinit, ISCNTRL): New macros.
67326         (mbsnwidth): Use K&R style function declarations.
67327         Don't bother checking for MB_LEN_MAX == 1, since the compiler
67328         can optimize it when MB_CUR_MAX == 1.
67329         The width of control characters is zero, not 1.
67330
67331 2001-08-03  Paul Eggert  <eggert@twinsun.com>
67332
67333         The following changes are from gettext 0.10.39 as maintained by
67334         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
67335
67336         * m4/codeset.m4: Upgrade to serial AM1.
67337         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
67338         all uses changed.  Quote first arg of AC_DEFUN.
67339         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
67340
67341         * m4/iconv.m4: Upgrade to serial AM2.
67342         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
67343         Add --with-libconv-prefix.
67344         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
67345         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
67346         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
67347         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
67348         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
67349
67350         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
67351         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
67352         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
67353         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
67354         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
67355         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
67356         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
67357         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
67358         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
67359
67360         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
67361         string.h any more.
67362
67363         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
67364         not the default value.
67365
67366         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
67367         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
67368         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
67369         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
67370         Also check for iswcntrl, used for wcwidth fallback.
67371         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
67372         to Autoconf 2.13.
67373
67374 2001-08-03  Jim Meyering  <meyering@lucent.com>
67375
67376         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
67377         as it was in the original.  Reported by Paul Eggert.
67378
67379 2001-07-16  Jim Meyering  <meyering@lucent.com>
67380
67381         * m4/gettimeofday.m4: New file.
67382         Prompted by a report from Bernhard Baehr.
67383
67384 2001-07-15  Jim Meyering  <meyering@lucent.com>
67385
67386         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
67387         stuff. Now it's in ../Makefile.cfg.
67388
67389 2001-07-15  Jim Meyering  <meyering@lucent.com>
67390
67391         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
67392         (BUILT_SOURCES): Add unlocked-io.h.
67393         (io_functions): Define.
67394         (unlocked-io.h): New rule.
67395         (DISTCLEANFILES): Add unlocked-io.h.
67396         (all-local): Depend on unlocked-io.h, to ensure it is created.
67397
67398         * lib/unlocked-io.hin: New file
67399
67400         * lib/regex.c: Update from glibc.
67401
67402 2001-07-05  Jim Meyering  <meyering@lucent.com>
67403
67404         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
67405         recommendation.
67406         (libfetish_a_SOURCES): Put all .h files here instead.
67407         Remove a thus-exposed (better checks in automake) duplicate and
67408         two unnecessary .h files.
67409
67410 2001-07-04  Jim Meyering  <meyering@lucent.com>
67411
67412         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
67413         that generates jm-glibc-io.m4 so that it doesn't trigger any make
67414         distcheck failure.
67415
67416 2001-07-02  Jim Meyering  <meyering@lucent.com>
67417
67418         The following changes were prompted by suggestions from Bruno Haible.
67419
67420         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
67421         is now generated.
67422         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
67423         definition of EXTRA_DIST.
67424         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
67425         ensure that the generated file is created/updated whenever the list
67426         of $(unlocked_functions) is changed.
67427         (jm-glibc-io.m4): New rule.
67428         (unlocked-io.h): New rule -- currently unused.
67429
67430 2001-06-24  Jim Meyering  <meyering@lucent.com>
67431
67432         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
67433         unmatched right bracket, rather than kludging it with an extra,
67434         falsely-matching quote in a comment.  Patch by Akim Demaille.
67435
67436 2001-06-11  Jim Meyering  <meyering@lucent.com>
67437
67438         * lib/regex.c: Update from GNU libc.
67439
67440 2001-05-27  Jim Meyering  <meyering@lucent.com>
67441
67442         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
67443         Check for ut_type in struct utmp.
67444
67445 2001-05-27  Jim Meyering  <meyering@lucent.com>
67446
67447         * lib/readutmp.h (UT_TYPE): Define.
67448
67449 2001-05-24  Jim Meyering  <meyering@lucent.com>
67450
67451         * lib/argmatch.c: Include "quote.h".
67452         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
67453         quote function.  Reported by Göran Uddeborg.
67454
67455 2001-05-22  Jim Meyering  <meyering@lucent.com>
67456
67457         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
67458         now that we use the package-supplied version unconditionally.
67459         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
67460
67461 2001-05-21  Jim Meyering  <meyering@lucent.com>
67462
67463         * m4/regex.m4: Change a couple backticks to single quotes to avoid
67464         shell syntax errors.
67465
67466 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
67467
67468         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
67469
67470 2001-05-20  Paul Eggert  <eggert@twinsun.com>
67471
67472         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
67473         Don't bother to check library strftime, since
67474         we'll be using our own my_strftime function anyway.
67475         Define my_strftime instead of strftime.
67476
67477 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
67478
67479         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
67480         which is not yet declared.
67481
67482 2001-05-15  Jim Meyering  <meyering@lucent.com>
67483
67484         * m4/regex.m4: Use proper quoting so brackets appear in the test
67485         program.
67486         Reported by, and with help from, Bruno Haible.
67487
67488 2001-05-13  Jim Meyering  <meyering@lucent.com>
67489
67490         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
67491         undefined.
67492
67493 2001-05-11  Paul Eggert  <eggert@twinsun.com>
67494
67495         dirname code cleanup.  base_name now behaves more compatibly
67496         with POSIX basename when given file names that have trailing
67497         slashes, and similarly for dir_name.  Add new primitives
67498         base_len and dir_len.  Put the directory-name-related decls
67499         into dirname.h.
67500
67501         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
67502         * lib/backupfile.c (base_name): Likewise.
67503         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
67504         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
67505         * lib/makepath.c (strip_trailing_slashes): Likewise.
67506         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
67507         ISSLASH): Likewise.
67508         * lib/rename.c (strip_trailing_slashes): Likewise.
67509         * lib/same.c (base_name): Likewise.
67510         * lib/stripslash.c (ISSLASH): Likewise.
67511
67512         * lib/addext.c: Include <dirname.h> after size_t is defined.
67513         * lib/backupfile.c: Likewise.
67514
67515         * lib/addext.c (addext): Use base_len to trim redundant
67516         trailing slashes instead of doing it ourselves.
67517         But do not trim the last slash if it is not redundant.
67518
67519         * lib/backupfile.c (find_backup_file_name,
67520         max_backup_version): Use base_len instead of rolling it ourselves.
67521         Handle the case of "" and (on DOS) "C:" correctly.
67522
67523         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
67524         needed. Include <string.h>, <dirname.h>.
67525         (base_name): Allow file names ending in slashes, other than names
67526         that are all slashes.  In this case, return the basename followed
67527         by the slashes.  This is more general, and can be used in places
67528         where the original base_name purposely had an assertion failure.
67529         (base_len): New function.
67530
67531         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
67532         Do not include <assert.h>; no longer needed.
67533         Include xalloc.h.
67534         (memrchr): Remove decl.
67535         (dir_name_r): Remove.
67536         (dir_len): Renamed from dirlen.  All callers changed.
67537         Rewrite in terms of base_name, for simplicity and consistency.
67538         (dir_name): Never return NULL.  All callers changed.
67539         Do not include <stdlib.h> in test program; no longer needed.
67540         return 0; is fine for test program.
67541
67542         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
67543         New macros.
67544         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
67545
67546         * lib/path-concat.c (path_concat): Use base_len to compute
67547         base length, not strlen; this means we cannot rely on memcpy
67548         to null-terminate.
67549
67550         * lib/same.c (STREQ): Remove.
67551         (same_name): Handle the case where the basename ends in trailing '/'.
67552
67553         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
67554         a slash was stripped.  Do not strip the last slash after a
67555         file system prefix.
67556
67557 2001-05-11  Paul Eggert  <eggert@twinsun.com>
67558
67559         * lib/Makefile.am (libfetish_a_SOURCES):
67560         Add strftime.c, since we now compile it on all hosts.
67561
67562         * lib/strftime.c (my_strftime):
67563         Define to nstrftime if emacs, but only if my_strftime is not defined.
67564         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
67565         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
67566         Add one more extra argument: a nanoseconds value.
67567         All uses changed.
67568         (ns): New macro.
67569         (my_strftime function): Add %N format.
67570         (emacs_strftimeu): Renamed from emacs_strftime,
67571         with extra ut argument.
67572
67573 2001-05-09  Paul Eggert  <eggert@twinsun.com>
67574
67575         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
67576
67577 2001-04-21  Jim Meyering  <meyering@lucent.com>
67578
67579         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
67580         doesn't interfere.
67581
67582 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
67583
67584         * m4/ftruncate.m4: Check for chsize.
67585         Link with ftruncate.o unconditionally if ftruncate is missing.
67586         This was required when cross-compiling to i586-mingw32msvc.
67587
67588 2001-04-08  Jim Meyering  <meyering@lucent.com>
67589
67590         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
67591         recomputed; that's necessary when the offset spans a DST transition.
67592         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
67593
67594 2001-04-02  Jim Meyering  <meyering@lucent.com>
67595
67596         * lib/regex.h, regex.c: Update from GNU libc.
67597
67598 2001-03-24  Jim Meyering  <meyering@lucent.com>
67599
67600         * m4/jm-macros.m4: Require autoconf-2.49d.
67601
67602 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
67603
67604         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
67605
67606 2001-03-19  Paul Eggert  <eggert@twinsun.com>
67607
67608         * lib/version-etc.c (version_etc_copyright): Update to 2001.
67609
67610 2001-03-17  Jim Meyering  <meyering@lucent.com>
67611
67612         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
67613         now that the version in autoconf is equivalent.
67614         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
67615
67616         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
67617         Suggestion from Akim Demaille.
67618
67619         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
67620         (jm_PREREQ_TEMPNAME): New function.
67621
67622 2001-03-16  Paul Eggert  <eggert@twinsun.com>
67623
67624         * lib/tempname.c (uint64_t): Define to uintmax_t if
67625         not defined, and if UINT64_MAX is not defined.
67626         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
67627         Reported by John David Anglin.
67628
67629 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
67630
67631         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
67632         resolve alias if codeset is empty.
67633         * lib/config.charset (BeOS): Use wildcard syntax.
67634
67635 2001-03-13  Jim Meyering  <meyering@lucent.com>
67636
67637         * lib/path-concat.c (path_concat)
67638         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
67639         concatenating e.g., `C:' and `foo'.
67640         From Bruno Haible.
67641
67642 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
67643
67644         * lib/localcharset.c (locale_charset): Don't use
67645         setlocale(LC_CTYPE,NULL). Don't return NULL.
67646         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
67647
67648 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
67649
67650         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
67651         support for DOS/DJGPP.
67652
67653 2001-03-01  Paul Eggert  <eggert@twinsun.com>
67654
67655         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
67656         lacks mkstemp.  Compile our own tempname.c if we compile our own
67657         mkstemp.c, as mkstemp relies on tempname.
67658
67659 2001-03-01  Jim Meyering  <meyering@lucent.com>
67660
67661         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
67662         AH_VERBATIM really does output its argument verbatim.
67663
67664 2001-02-28  Paul Eggert  <eggert@twinsun.com>
67665
67666         * lib/Makefile.am (libfetish_a_SOURCES):
67667         Add dup-safer.c, fopen-safer.c.
67668         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
67669
67670         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
67671         * lib/unistd-safer.h: New files.
67672
67673 2001-02-25  Paul Eggert  <eggert@twinsun.com>
67674
67675         The mkstemp replacement is taken from glibc 2.2.2, with some
67676         portability fixes for use outside glibc, as follows:
67677
67678         * lib/tempname.c (struct_stat64): New macro.
67679         (direxists, __gen_tempname): Use it.
67680         This avoids a portability problem with Solaris 8.
67681
67682         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
67683         (<stddef.h>, <stdint.h>, <string.h>):
67684         Include only if STDC_HEADERS || _LIBC.
67685         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
67686         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
67687         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
67688         (__set_errno): Define this macro if <errno.h> doesn't.
67689         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
67690         Define these macros if <stdio.h> doesn't.
67691         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
67692         Define these macros if <sys/stat.h>
67693         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
67694         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
67695         __xstat64): Define if not _LIBC.
67696         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
67697         (__gen_tempname): Invoke gettimeofday only if
67698         HAVE_GETTIMEOFDAY || _LIBC;
67699         otherwise, fall back on plain "time".
67700         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
67701
67702         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
67703
67704         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
67705
67706 2001-02-18  Paul Eggert  <eggert@twinsun.com>
67707
67708         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
67709
67710 2001-02-17  Paul Eggert  <eggert@twinsun.com>
67711
67712         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
67713         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
67714         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
67715         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
67716
67717 2001-02-17  Paul Eggert  <eggert@twinsun.com>
67718
67719         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
67720         Remove workaround macros for hosts that have mbrtowc but not
67721         mbstate_t, as we now insist on proper declarations for both
67722         before using mbrtowc.
67723
67724 2001-02-17  Jim Meyering  <meyering@lucent.com>
67725
67726         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
67727         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
67728         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
67729         UnixWare 7.1.1.
67730
67731         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
67732         rather than AC_CACHE_VAL.
67733
67734 2001-02-17  Jim Meyering  <meyering@lucent.com>
67735
67736         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
67737         around included file name.
67738
67739         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
67740
67741         * lib/strftime.c: Update from GNU libc (the only changes were to
67742         comments).
67743
67744 2001-02-17  Jim Meyering  <meyering@lucent.com>
67745
67746         * lib/regex.c: Update from libc.
67747
67748 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
67749
67750         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
67751         clash.
67752
67753 2001-02-16  Paul Eggert  <eggert@twinsun.com>
67754
67755         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
67756         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
67757         Reported by Mark Hounschell via Paul Eggert.
67758
67759 2001-02-07  Jim Meyering  <meyering@lucent.com>
67760
67761         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
67762
67763 2001-02-05  Jim Meyering  <meyering@lucent.com>
67764
67765         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
67766         it includes the patch required for `large file' support with at least
67767         HP-UX's 10.20 /bin/cc.
67768
67769 2001-02-03  Jim Meyering  <meyering@lucent.com>
67770
67771         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
67772         AS_IF, now that it works once again (mysteriously).
67773         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
67774
67775 2001-01-30  Jim Meyering  <meyering@lucent.com>
67776
67777         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
67778         * m4/chown.m4: Rename conftestchown to conftest.chown.
67779         * m4/rename.m4: s/conftestdir/conftest.d1/ and
67780         s/conftestdir2/conftest.d2/.
67781         * m4/utimes.m4: s/conftestdata/conftest.data/
67782         Inspired by Pavel Roskin's change in autoconf.
67783
67784 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
67785
67786         * lib/config.charset: Update for FreeBSD 4.2.
67787
67788 2001-01-27  Jim Meyering  <meyering@lucent.com>
67789
67790         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
67791         a use of AS_IF.
67792         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
67793
67794 2001-01-26  Jim Meyering  <meyering@lucent.com>
67795
67796         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
67797         quotearg.c includes it.
67798
67799 2001-01-26  Jim Meyering  <meyering@lucent.com>
67800
67801         * lib/quotearg.c: Include stddef.h.
67802         * lib/quote.c: Include stddef.h.
67803         Reported by Axel Kittenberger.
67804
67805         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
67806         line in double quotes so that it evokes a better diagnostic.
67807         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
67808         Reported by Axel Kittenberger.
67809
67810 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
67811
67812         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
67813         as if it was a `charset'.
67814
67815 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
67816
67817         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
67818         has const.
67819
67820 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
67821
67822         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
67823         to avoid a warning.  Add back 'const' to inptr.
67824
67825 2001-01-20  Jim Meyering  <meyering@lucent.com>
67826
67827         Be sure that headers are checked before used in code compiled
67828         for the type checks.
67829         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
67830         In place of that, invoke jm_CHECK_ALL_TYPES.
67831         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
67832         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
67833         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
67834         The check for ssize_t was mistakenly run before the test for unistd.h.
67835
67836         The configure-time check for stdbool.h was missing.
67837         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
67838         (jm_PREREQ_HASH): New function.
67839
67840 2001-01-17  Jim Meyering  <meyering@lucent.com>
67841
67842         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
67843         for autoconf-2.49c.
67844         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
67845
67846 2001-01-16  Jim Meyering  <meyering@lucent.com>
67847
67848         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
67849         From Bruno Haible.
67850
67851 2001-01-14  Jim Meyering  <meyering@lucent.com>
67852
67853         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
67854         foo and bar.  Create conftestdir/ in the script, not in the C code.
67855         Remove directories in the script, not in the C code.
67856         Remove conftestdir{,2} before trying to create the directory.
67857         Make the entire configure script fail if the mkdir fails.
67858
67859 2001-01-14  Jim Meyering  <meyering@lucent.com>
67860
67861         * lib/rename.c: New file.  From Volker Borchert.
67862         Include stdlib.h, string.h or strings.h, and xalloc.h.
67863         Use strip_trailing_slashes rather than open-coding it.
67864
67865 2001-01-03  Paul Eggert  <eggert@twinsun.com>
67866
67867         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
67868
67869 2001-01-03  Jim Meyering  <meyering@lucent.com>
67870
67871         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
67872         of local `inptr' to avoid warning with some system declarations of
67873         iconv.
67874
67875 2001-01-02  Volker Borchert  <bt@teknon.de>
67876
67877         * m4/rename.m4: New file.
67878         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
67879
67880 2001-01-01  Jim Meyering  <meyering@lucent.com>
67881
67882         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
67883         even on systems with utmpx.h.  It's necessary for the declaration of
67884         utmp's ut_user member.  Reported by Andreas Jaeger.
67885
67886         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
67887         available. They are required for the declarations of getgrgid and
67888         getpwuid resp.
67889         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
67890         Reported by Andreas Jaeger.
67891
67892 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
67893
67894         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
67895         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
67896         so `make install' also works in VPATH builds.
67897
67898 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
67899
67900         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
67901         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
67902         can be used in subdirectories.
67903
67904 2000-12-29  Paul Eggert  <eggert@twinsun.com>
67905
67906         * lib/modechange.c: Do not assume that mode_t uses the
67907         traditional octal encoding.  E.g. "chmod 1 FOO" should set
67908         the other-execute bit of FOO even if S_IXOTH != 1.
67909
67910         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
67911         WOTH, XOTH, ALLM): New macros.
67912         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
67913          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
67914         Use them.
67915         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
67916         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
67917         (mode_compile):
67918         No need to use uintmax_t; unsigned long is long enough.
67919         Don't bother to get suffix since we don't use it.
67920
67921 2000-12-26  Jim Meyering  <meyering@lucent.com>
67922
67923         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
67924         better with autoheader.
67925
67926 2000-12-24  Jim Meyering  <meyering@lucent.com>
67927
67928         * lib/hash.c (is_prime): Return explicit boolean values.
67929         (hash_get_first): Return NULL to appease Irix5.6's 89.
67930         Reported by Nelson Beebe.
67931
67932 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
67933
67934         * lib/localcharset.c (locale_charset): Add support for Win32.
67935
67936 2000-12-18  Paul Eggert  <eggert@twinsun.com>
67937
67938         * lib/physmem.h, lib/physmem.c: New files.
67939
67940         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
67941         (noinst_HEADERS): Add physmem.h.
67942
67943         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
67944         't' for compatibility with Solaris 8 sort.
67945
67946 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
67947
67948         * lib/config.charset: Add support for BeOS.
67949
67950 2000-12-17  Jim Meyering  <meyering@lucent.com>
67951
67952         * m4/dos.m4 (jm_AC_DOS): New file and macro.
67953         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
67954
67955 2000-12-16  Jim Meyering  <meyering@lucent.com>
67956
67957         This bug had a serious impact on chown: `chown N:M FILE' (for integer
67958         N and M) would have treated it like `chown N:N FILE'.
67959
67960         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
67961
67962 2000-12-16  Jim Meyering  <meyering@lucent.com>
67963
67964         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
67965         SHELLS_FILE to a file name that's useful on djgpp systems.
67966         Include stdlib.h.
67967         (ADDITIONAL_DEFAULT_SHELLS): Define.
67968         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
67969         Based mostly on a patch from Prashant TR.
67970
67971 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
67972
67973         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
67974         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
67975         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
67976
67977 2000-12-08  Andreas Schwab  <schwab@suse.de>
67978
67979         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
67980         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
67981
67982 2000-12-07  Jim Meyering  <meyering@lucent.com>
67983
67984         * lib/stripslash.c (ISSLASH): Define.
67985         (strip_trailing_slashes): Use ISSLASH rather than comparing against
67986         `/'.
67987         From Prashant TR.
67988
67989         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
67990         (dir_name_r): Declare this function as static.
67991         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
67992         manifest itself on a name containing a mix of slashes and
67993         backslashes.
67994         Make this function work with names starting with a DOS-style
67995         drive letter and colon prefix.
67996         (dir_name): Append `.' if necessary.
67997         Based mostly on patches from Prashant TR and Eli Zaretskii.
67998
67999         * lib/dirname.h (dir_name_r): Remove prototype.
68000
68001 2000-12-06  Paul Eggert  <eggert@twinsun.com>
68002
68003         * m4/off_t-format.m4: Remove this file.
68004         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
68005
68006 2000-12-06  Jim Meyering  <meyering@lucent.com>
68007
68008         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
68009         replacement strtoull, we may well need the replacement strtoul, too.
68010         Check for declarations of strtoul and strtoull.
68011         Check for strtol.  Mainly as a cue to cause automake to include
68012         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
68013         Check for limits.h -- strtol.c needs it.
68014
68015 2000-12-05  Jim Meyering  <meyering@lucent.com>
68016
68017         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
68018
68019 2000-12-04  Jim Meyering  <meyering@lucent.com>
68020
68021         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
68022         Also include memory.h, stdlib.h, unistd.h if appropriate.
68023         Reported by Andreas Jaeger (conflicting declaration of malloc).
68024
68025 2000-12-02  Jim Meyering  <meyering@lucent.com>
68026
68027         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
68028         * m4/jm-macros.m4 (jm_MACROS): require it.
68029
68030 2000-12-02  Jim Meyering  <meyering@lucent.com>
68031
68032         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
68033
68034 2000-12-01  Paul Eggert  <eggert@twinsun.com>
68035
68036         * lib/memrchr.c: Include <config.h> before any system include file.
68037
68038 2000-11-30  Jim Meyering  <meyering@lucent.com>
68039
68040         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
68041
68042 2000-11-30  Jim Meyering  <meyering@lucent.com>
68043
68044         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
68045
68046 2000-11-29  Paul Eggert  <eggert@twinsun.com>
68047
68048         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
68049
68050 2000-11-26  Jim Meyering  <meyering@lucent.com>
68051
68052         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
68053
68054 2000-11-22  Paul Eggert  <eggert@twinsun.com>
68055
68056         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
68057         size of (size_t) -1; it's not portable.
68058
68059 2000-11-17  Jim Meyering  <meyering@lucent.com>
68060
68061         * lib/strstr.c: Update from GNU libc.
68062
68063 2000-11-17  Akim Demaille  <akim@epita.fr>
68064
68065         * lib/obstack.h: Formatting changes.
68066         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
68067         prevent type checking.
68068         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
68069         cast the value to (void *): assigning a `foo *' to a `void *'
68070         variable is valid.
68071         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
68072
68073 2000-11-16  Jim Meyering  <meyering@lucent.com>
68074
68075         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
68076
68077 2000-11-11  Jim Meyering  <meyering@lucent.com>
68078
68079         * lib/error.c: Add a couple #includes, merging from GNU libc version.
68080
68081 2000-11-10  Jim Meyering  <meyering@lucent.com>
68082
68083         * lib/obstack.h: Update from GNU libc.
68084         * lib/obstack.c: Likewise.
68085
68086 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
68087
68088         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
68089
68090 2000-11-06  Paul Eggert  <eggert@twinsun.com>
68091
68092         * lib/getusershell.c (setusershell): Use rewind rather than
68093         fseek/fseeko, to avoid configuration hassles with fseeko.
68094         Don't bother opening SHELLS_FILE if shellstream is NULL;
68095         it's not necessary.
68096
68097 2000-11-05  Jim Meyering  <meyering@lucent.com>
68098
68099         * lib/makepath.h (make_dir): Declare.
68100         * lib/makepath.c (make_dir): Remove `static' attribute.
68101         Tweak a comment.
68102
68103 2000-11-04  Jim Meyering  <meyering@lucent.com>
68104
68105         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
68106
68107 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
68108
68109         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
68110         last one in a bucket, advance to the next bucket.
68111
68112 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
68113
68114         * lib/fnmatch.c: Do not comment out all the code if we are using
68115         the GNU C library, because in some cases we are replacing buggy
68116         code in the GNU C library itself.
68117
68118 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
68119
68120         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
68121         (regex_compile): Catch bogus \(\1\).
68122
68123 2000-10-30  Paul Eggert  <eggert@twinsun.com>
68124
68125         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
68126         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
68127         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
68128
68129 2000-10-30  Paul Eggert  <eggert@twinsun.com>
68130
68131         * lib/error.h, getline.h, modechange.h:
68132         Remove "2000" from Copyright line, as the file hasn't been
68133         changed this year other than in the copyright notice.
68134
68135         * lib/xalloc.h: Add "2000" to Copyright line, as this file
68136         was changed this year.
68137
68138 2000-10-29  Jim Meyering  <meyering@lucent.com>
68139
68140         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
68141         renaming.
68142         * m4/ls-mntd-fs.m4: Likewise
68143
68144 2000-10-29  Jim Meyering  <meyering@lucent.com>
68145
68146         * lib/xstat.in: Fix grammar in comment.
68147
68148 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
68149
68150         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
68151         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
68152         doesn't define __restrict_arr.
68153
68154 2000-10-28  Jim Meyering  <meyering@lucent.com>
68155
68156         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
68157         (jm_PREREQ_MEMCHR): New function.
68158
68159 2000-10-28  Jim Meyering  <meyering@lucent.com>
68160
68161         * lib/memchr.c: Update from libc.
68162         Adjust for portability:
68163         [HAVE_STDLIB_H]: Include stdlib.h.
68164         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
68165         Undef __memchr, too.
68166         [!weak_alias]: Define __memchr to memchr.
68167
68168         * lib/regex.c: Update from libc.
68169         * lib/regex.h: Likewise.
68170         * lib/getopt1.c: Likewise.
68171         * lib/memcmp.c: Likewise.
68172
68173         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
68174         Avoid using fseek, when possible -- it's broken by design.
68175         Patch by Ulrich Drepper.
68176
68177 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
68178
68179         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
68180         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
68181         Giving in to popular pressure to shut up the compiler with casts.
68182
68183 2000-10-26  Jim Meyering  <meyering@lucent.com>
68184
68185         * lib/strftime.c: Update from libc.
68186
68187 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
68188
68189         * regex.c: More `unsigned char' -> `re_char' changes.
68190         Also change several `int' into `re_wchar_t'.
68191         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
68192         (PUSH_FAILURE_POINTER): Don't cast any more.
68193         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
68194         We want GCC to complain, since this piece of code makes
68195         re_match non-reentrant, which *should* be fixed.
68196         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
68197         (EXTEND_BUFFER): Use RETALLOC.
68198         (SET_LIST_BIT): Don't cast.
68199         (re_wchar_t): New type.
68200         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
68201         that those two functions will always properly return.
68202         (IMMEDIATE_QUIT_CHECK): Cast to void.
68203         (analyse_first): Use recursion rather than an explicit stack.
68204         (re_compile_fastmap): Can't fail anymore.
68205         (re_search_2): Don't check re_compile_fastmap for failure.
68206         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
68207         Now also sets the new value (passed in a new argument).
68208         (re_match_2_internal): Use it.
68209         Also, use a new var `reg' of type size_t when looping through regs
68210         rather than reuse the inappropriate `mcnt'.
68211
68212 2000-10-25  Jim Meyering  <meyering@lucent.com>
68213
68214         * lib/obstack.c: Update from libc.
68215
68216 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
68217
68218         * regex.c (regex_compile): Change the way of handling a range from
68219         a char less than 256 to a char not less than 256.
68220
68221 2000-10-24  Andrew Innes  <andrewi@gnu.org>
68222
68223         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
68224         NT-Emacs only.
68225         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
68226         so that re_search functions only quit when callers expect them to.
68227
68228 2000-10-23  Jim Meyering  <meyering@lucent.com>
68229
68230         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
68231         wrong.  That set_locale call must not have any side effects.
68232         From Paul Eggert.
68233
68234 2000-10-22  Jim Meyering  <meyering@lucent.com>
68235
68236         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
68237         [CYCLIC]: Remove now-unused definition.
68238
68239         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
68240         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
68241         Suggestion from Ulrich Drepper.
68242
68243 2000-10-21  Jim Meyering  <meyering@lucent.com>
68244
68245         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
68246         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
68247         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
68248
68249 2000-10-21  Jim Meyering  <meyering@lucent.com>
68250
68251         * lib/dirname.c (memrchr): Declare if necessary.
68252         (dir_name): Remove the restriction that there be no
68253         trailing slashes.  Now, this code skips past them, effectively
68254         ignoring them.
68255         [TEST_DIRNAME] (main): New unit tests.
68256
68257         * lib/memrchr.c: New file from GNU libc.
68258         Undef __memrchr, too.
68259         [!weak_alias]: Define __memrchr to memrchr.
68260         Guard weak_alias use with `#ifdef weak_alias'.
68261
68262 2000-10-21  Jim Meyering  <meyering@lucent.com>
68263
68264         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
68265         (dir_name): Use dir_name_r.
68266         * lib/dirname.h (dir_name_r): Declare it.
68267
68268 2000-10-17  Jim Meyering  <meyering@lucent.com>
68269
68270         * lib/quote.h (PARAMS): Define and use.
68271         Reported by Akim Demaille.
68272
68273         * lib/getopt.c: Update from libc.
68274
68275 2000-10-16  Jim Meyering  <meyering@lucent.com>
68276
68277         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
68278         setlocale.
68279         From Jan Fedak.
68280
68281 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
68282
68283         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
68284
68285 2000-09-25  Jim Meyering  <meyering@lucent.com>
68286
68287         * lib/md5.h (rol): Define (from GnuPG).
68288
68289         * lib/sha.c: Give credit (GnuPG) where due.
68290         (M): Use rol rather than open-coding it.
68291         Add a FIXME comment.
68292
68293 2000-09-21  Jim Meyering  <meyering@lucent.com>
68294
68295         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
68296         Reported by Michael Stone.
68297
68298 2000-09-20  Jim Meyering  <meyering@lucent.com>
68299
68300         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
68301         (noinst_HEADERS): Add sha.h.
68302         Based on code from Scott G. Miller and from GnuPG.
68303
68304 2000-09-18  Jim Meyering  <meyering@lucent.com>
68305
68306         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
68307         LIBS. Otherwise, everyone ends up linking with -lelf for some
68308         configurations.
68309         Reported by Mike Stone.
68310
68311 2000-09-15  Jim Meyering  <meyering@lucent.com>
68312
68313         * lib/regex.c: Update from libc.
68314
68315 2000-09-10  Jim Meyering  <meyering@lucent.com>
68316
68317         * lib/getopt.c (_getopt_internal): Update from glibc.
68318
68319 2000-09-09  Jim Meyering  <meyering@lucent.com>
68320
68321         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
68322         think it should be used as a general replacement for isascii.
68323         * lib/fnmatch.c: Likewise.
68324         * lib/mbswidth.c: Likewise
68325         * lib/regex.c: Likewise.
68326
68327         Don't use atoi.
68328         * lib/userspec.c: Include sys/param.h and limits.h.
68329         Include xstrtol.h.
68330         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
68331         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
68332         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
68333         UID, GID.  Check range.
68334
68335 2000-09-06  Jim Meyering  <meyering@lucent.com>
68336
68337         * lib/getopt.c (_getopt_internal): Update from glibc.
68338
68339 2000-08-30  Jim Meyering  <meyering@lucent.com>
68340
68341         * lib/strftime.c: Merge in changes from GNU libc.
68342
68343 2000-08-26  Jim Meyering  <meyering@lucent.com>
68344
68345         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
68346         * m4/fpending.m4: New file.
68347
68348 2000-08-26  Jim Meyering  <meyering@lucent.com>
68349
68350         * lib/closeout.c: Include "__fpending.h".
68351         (close_stdout_status): Return right away if there's nothing to flush.
68352
68353         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
68354         * lib/__fpending.c: New file.
68355         * lib/__fpending.h: New file.
68356
68357 2000-08-20  Jim Meyering  <meyering@lucent.com>
68358
68359         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
68360         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
68361         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
68362
68363 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
68364
68365         Improve fileutils installation on systems where running
68366         programs (like install) can't be unlinked.
68367         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
68368         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
68369
68370 2000-08-07  Paul Eggert  <eggert@twinsun.com>
68371
68372         Standardize on "memory exhausted" instead of "Memory exhausted"
68373         or "virtual memory exhausted".
68374         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
68375         "virtual memory exhausted".
68376         * lib/same.c (same_name): Invoke xalloc_die instead of printing
68377         our own message.
68378         * lib/userspec.c (parse_user_spec): Likewise.
68379         * lib/bumpalloc.h: comment fix
68380         * lib/same.c, userspec.c: Include xalloc.h.
68381
68382         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
68383         not char *const and pointing to a constant array.
68384         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
68385         (xrealloc): Comment fix.
68386
68387         * lib/userspec.c (parse_user_spec):
68388         Don't translate a message until just before returning,
68389         to avoid unnecessary translation.
68390
68391 2000-08-07  Jim Meyering  <meyering@lucent.com>
68392
68393         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
68394         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
68395         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
68396         getgroups.c, gethostname.c, getopt.h, group-member.c,
68397         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
68398         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
68399         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
68400         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
68401         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
68402         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
68403         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
68404         yesno.c: Back out Copyright date changes for each file with no change
68405         this year.  This eases coordination with other programs using the same
68406         source code modules.  From Paul Eggert.
68407
68408 2000-08-06  Paul Eggert  <eggert@twinsun.com>
68409
68410         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
68411         not char, for compatibility with glibc 2.1.3 strftime.c.
68412
68413 2000-08-03  Greg McGary  <greg@mcgary.org>
68414
68415         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
68416         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
68417         (EXTEND_BUFFER): Use them.
68418
68419 2000-08-01  Jim Meyering  <meyering@lucent.com>
68420
68421         * lib/dirname.c (ISSLASH): Define.
68422         (BACKSLASH_IS_PATH_SEPARATOR): Define.
68423         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
68424         both `\' and `/' may be use as path separators.
68425         Based on a patch from Prashant TR.
68426
68427 2000-07-31  Paul Eggert  <eggert@twinsun.com>
68428
68429         * lib/quotearg.c (quotearg_n_options): Don't make the initial
68430         slot vector a constant, since it might get modified.
68431
68432 2000-07-31  Jim Meyering  <meyering@lucent.com>
68433
68434         * lib/xmalloc.c: Use `virtual memory exhausted', not
68435         `Memory exhausted'.
68436         * lib/obstack.c (print_and_abort): Likewise.
68437
68438 2000-07-30  Paul Eggert  <eggert@twinsun.com>
68439
68440         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
68441         buffer, so that the caller can always quote one small
68442         component of a "memory exhausted" message in slot 0.
68443         From a suggestion by Jim Meyering.
68444
68445 2000-07-30  Jim Meyering  <meyering@lucent.com>
68446
68447         * lib/makepath.c (make_path): Quote the other instance, too.
68448
68449         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
68450         (STATIC_BUF_SIZE): Define.
68451         (quotearg_n_options): Use only statically allocated storage when
68452         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
68453         than STATIC_BUF_SIZE.
68454
68455 2000-07-29  Jim Meyering  <meyering@lucent.com>
68456
68457         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
68458         * lib/dirname.c (dir_name): Likewise.
68459
68460         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
68461         `/'.
68462
68463         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
68464         (dir_name): Assert that there are no trailing slashes.
68465
68466 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
68467
68468         * lib/mbswidth.h (mbswidth): Add a flags argument.
68469         (mbswidth): New declaration.
68470         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
68471         * lib/mbswidth.c (mbswidth): Add a flags argument.
68472         (mbsnwidth): New function.
68473
68474 2000-07-24  Jim Meyering  <meyering@lucent.com>
68475
68476         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
68477
68478 2000-07-23  Paul Eggert  <eggert@twinsun.com>
68479
68480         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
68481
68482 2000-07-23  Paul Eggert  <eggert@twinsun.com>
68483
68484         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
68485         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
68486         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
68487         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
68488         invoke multibyte primitives.
68489
68490 2000-07-23  Paul Eggert  <eggert@twinsun.com>
68491
68492         * lib/quotearg.c:
68493         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
68494         so that mbstate_t is always defined.
68495
68496         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
68497         be 1 in at least one GCC installation, and this configuration
68498         error is likely to be common.  Ignoring MB_LEN_MAX hurts
68499         performance on hosts that have mbrtowc but have only unibyte
68500         locales, but I assume these hosts are rare.
68501
68502 2000-07-23  Paul Eggert  <eggert@twinsun.com>
68503
68504         * lib/mbswidth.c (_XOPEN_SOURCE):
68505         Don't define; this causes problems on Solaris 7.
68506         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
68507
68508 2000-07-23  Jim Meyering  <meyering@lucent.com>
68509
68510         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
68511         too: getgrgid, getpwuid, getuid.
68512
68513 2000-07-23  Jim Meyering  <meyering@lucent.com>
68514
68515         * lib/basename.c (base_name): Add an assertion.
68516
68517 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
68518
68519         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
68520         shadow its mbsinit function.
68521
68522 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
68523
68524         * lib/mbswidth.h: New file.
68525         * lib/mbswidth.c: New file.
68526         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
68527         (noinst_HEADERS): Add mbswidth.h.
68528
68529 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
68530
68531         * lib/config.charset: Add support for FreeBSD. Improve support for
68532         HP-UX and IRIX 6.
68533
68534 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
68535
68536         * m4/mbswidth.m4: New file.
68537         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
68538
68539 2000-07-15  Jim Meyering  <meyering@lucent.com>
68540
68541         * lib/makepath.c: Include quote.h.
68542         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
68543         corresponding argument in a `quote (...)' call.
68544         Give better diagnostics.
68545
68546         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
68547         (noinst_HEADERS): Add quote.h.
68548
68549         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
68550         from tar's src/misc.c.
68551         * lib/quote.h: New file.  Prototypes for same.
68552
68553 2000-07-14  Paul Eggert  <eggert@twinsun.com>
68554
68555         From a suggestion by Bruno Haible.
68556         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
68557         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
68558         to decide whether to define the BeOS workaround macro;
68559         this adjusts to the change to AC_MBSTATE_T.
68560
68561 2000-07-14  Jim Meyering  <meyering@lucent.com>
68562
68563         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
68564         jm_AC_TYPE_UINTMAX_T.
68565
68566 2000-07-13  Paul Eggert  <eggert@twinsun.com>
68567
68568         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
68569
68570         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
68571         quotearg_buffer_restyled): Add support for
68572         clocale_quoting_style.  Undo previous change to
68573         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
68574         and "{RIGHT QUOTATION MARK}" msgids.
68575
68576 2000-07-10  Paul Eggert  <eggert@twinsun.com>
68577
68578         From a suggestion by Bruno Haible.
68579         * m4/mbstate_t.m4 (AC_MBSTATE_T):
68580         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
68581         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
68582         and mbstate_t, to a single-part test that simply defines mbstate_t.
68583         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
68584         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
68585
68586 2000-07-10  Jim Meyering  <meyering@lucent.com>
68587
68588         * m4/strerror_r.m4: Mirror the correction made in autoconf.
68589
68590         * m4/gnu-source.m4: Output to confdefs.h directly.
68591         Suggestion from Akim Demaille.
68592
68593 2000-07-09  Paul Eggert  <eggert@twinsun.com>
68594
68595         The old behavior of quoting `like this' doesn't look good with
68596         newer, ISO-style fonts.  See:
68597         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
68598
68599         Instead, quote "like this" by default.  Let the translator
68600         tailor the locale-specific quoting behavior by providing
68601         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
68602
68603         * lib/quotearg.c (N_): New macro.
68604         (gettext_default): New function.
68605         (quotearg_buffer_restyled): Use
68606         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
68607         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
68608
68609 2000-07-09  Jim Meyering  <meyering@lucent.com>
68610
68611         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
68612         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
68613
68614         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
68615         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
68616
68617 2000-07-09  Jim Meyering  <meyering@lucent.com>
68618
68619         * lib/Most files: Update copyright dates to include 2000.
68620
68621 2000-07-08  Jim Meyering  <meyering@lucent.com>
68622
68623         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
68624         if not defined.
68625         (xgethostname): Remove now-unnecessary #ifdef.
68626         Move declaration of `err' into loop where it's used.
68627
68628 2000-07-05  Paul Eggert  <eggert@twinsun.com>
68629         and Bruno Haible  <haible@clisp.cons.org>
68630
68631         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
68632         only if the test for an object-type mbstate_t fails.  This
68633         prevents us from mistakenly reporting that mbstate_t is a
68634         system object type after we "#define mbstate_t int" to work
68635         around its lack.
68636
68637 2000-07-05  Paul Eggert  <eggert@twinsun.com>
68638         and Bruno Haible  <haible@clisp.cons.org>
68639
68640         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
68641
68642 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
68643
68644         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
68645         to strerror_r.
68646         Include <ctype.h> for use of isalpha.
68647
68648 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
68649
68650         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
68651         by allocating a larger buffer. Test the gethostname return value for
68652         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
68653         returns an error and ENAMETOOLONG isn't defined.
68654
68655 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
68656
68657         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
68658         dimension.
68659
68660 2000-07-04  Jim Meyering  <meyering@lucent.com>
68661
68662         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
68663         of the deprecated AC_CHECKING.
68664
68665 2000-07-04  Jim Meyering  <meyering@lucent.com>
68666
68667         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
68668         Reported by Bruno Haible.
68669
68670 2000-07-04  Jim Meyering  <meyering@lucent.com>
68671
68672         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
68673         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
68674         lacks mbrtowc.
68675
68676 2000-07-03  Paul Eggert  <eggert@twinsun.com>
68677
68678         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
68679         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
68680
68681 2000-07-03  Paul Eggert  <eggert@twinsun.com>
68682         and Bruno Haible  <haible@clisp.cons.org>
68683
68684         * lib/quotearg.c (mbrtowc):
68685         Assign to *pwc, and return 1 only if result is nonzero.
68686         (iswprint): Use ISPRINT when substituting our own mbrtowc.
68687
68688 2000-07-03  Jim Meyering  <meyering@lucent.com>
68689
68690         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
68691
68692 2000-07-03  Jim Meyering  <meyering@lucent.com>
68693
68694         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
68695         This is necessary to get a definition of e.g., UTMP_FILE on
68696         HP-UX 10.20.
68697         From Bob Proulx.
68698
68699 2000-07-02  Jim Meyering  <meyering@lucent.com>
68700
68701         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
68702
68703         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
68704         AC_LIBOBJ(function_name).
68705         * m4/chown.m4: Likewise.
68706         * m4/fnmatch.m4: Likewise.
68707         * m4/ftruncate.m4: Likewise.
68708         * m4/getgroups.m4: Likewise.
68709         * m4/getline.m4: Likewise.
68710         * m4/group-member.m4: Likewise.
68711         * m4/jm-macros.m4: Likewise.
68712         * m4/lstat.m4: Likewise.
68713         * m4/malloc.m4: Likewise.
68714         * m4/memcmp.m4: Likewise.
68715         * m4/nanosleep.m4: Likewise.
68716         * m4/putenv.m4: Likewise.
68717         * m4/realloc.m4: Likewise.
68718         * m4/regex.m4: Likewise.
68719         * m4/stat.m4: Likewise.
68720         * m4/strftime.m4: Likewise.
68721
68722 2000-07-02  Jim Meyering  <meyering@lucent.com>
68723
68724         * lib/quotearg.c (mbstate_t): Don't define here.
68725
68726 2000-07-02  Jim Meyering  <meyering@lucent.com>
68727
68728         * lib/nanosleep.c (SIGCONT): Define if not already defined.
68729
68730 2000-07-01  Jim Meyering  <meyering@lucent.com>
68731
68732         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
68733
68734 2000-07-01  Jim Meyering  <meyering@lucent.com>
68735
68736         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
68737         problem.
68738
68739 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
68740
68741         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
68742         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
68743
68744 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
68745
68746         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
68747         per change in ../m4/ls-mntd-fs.m4.
68748         (read_filesystem_list): Ignore symbolic links.
68749
68750 2000-06-29  Jim Meyering  <meyering@lucent.com>
68751
68752         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
68753         for declaration of strcmp.
68754
68755         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
68756
68757         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
68758         Avoid warning by casting result to `char *' to remove `const'.
68759
68760 2000-06-28  Jim Meyering  <meyering@lucent.com>
68761
68762         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
68763         included by quotearg.c, for which we perform this test.  From
68764         Bruno Haible.
68765
68766 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
68767
68768         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
68769         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
68770         <utmpx.h> exists, put readutmp.o into LIBOBJS.
68771
68772 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
68773
68774         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
68775
68776 2000-06-26  Paul Eggert  <eggert@twinsun.com>
68777
68778         savedir now sets errno on failure and invokes xmalloc to get memory.
68779         Fix a couple of other minor bugs while we're at it.
68780
68781         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
68782         (NAMLEN): Remove macro.
68783         (malloc, realloc): Remove decls.
68784         (stpcpy): Likewise.
68785         ("xalloc.h"): Include.
68786         (NAME_SIZE_DEFAULT): New macro.
68787         (savedir): Use xmalloc / xrealloc to allocate memory.
68788         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
68789         Skip "" directory entries.
68790         Use strlen to calculate directory entry length, since the old method
68791         is rarely used these days and isn't worth supporting.
68792         Don't use a pointer after freeing it.
68793         Check for integer overflow when calculating allocation size.
68794         Use memcpy to copy entries, instead of stpcpy.
68795         Set errno properly when returning NULL.
68796         Check for readdir error.
68797
68798 2000-06-26  Jim Meyering  <meyering@lucent.com>
68799
68800         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
68801
68802 2000-06-25  Jim Meyering  <meyering@lucent.com>
68803
68804         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
68805         Linux header bug when _XOPEN_SOURCE is defined to 500.
68806
68807 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
68808
68809         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
68810         deficiency.
68811
68812 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
68813
68814         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
68815         Include xalloc.h.
68816         Don't include <stdlib.h>.  Don't declare malloc, realloc.
68817
68818 2000-06-24  Jim Meyering  <meyering@lucent.com>
68819
68820         * m4/strerror_r.m4: Revive this file -- to try out an experimental
68821         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
68822         for which strerror does return char*, but which lacks a conveniently
68823         accessible declaration of the function.  If the compile-test says
68824         strerror_r doesn't work, then resort to a `run'-test that works on
68825         BeOS and segfaults on DEC Unix.
68826
68827 2000-06-24  Jim Meyering  <meyering@lucent.com>
68828
68829         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
68830
68831 2000-06-23  Paul Eggert  <eggert@twinsun.com>
68832
68833         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
68834         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
68835
68836 2000-06-23  Paul Eggert  <eggert@twinsun.com>
68837
68838         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
68839         (mbrtowc, mbstate_t): Define substitutes if
68840         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
68841         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
68842         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
68843
68844 2000-06-23  Jim Meyering  <meyering@lucent.com>
68845
68846         * m4/afs.m4: Add missing AC_MSG_RESULT.
68847         Reported by Bruno Haible.
68848
68849         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
68850         Suggestion from Bruno Haible.
68851
68852 2000-06-23  Jim Meyering  <meyering@lucent.com>
68853
68854         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
68855
68856 2000-06-21  Jim Meyering  <meyering@lucent.com>
68857
68858         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
68859
68860 2000-06-21  Jim Meyering  <meyering@lucent.com>
68861
68862         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
68863         (noinst_HEADERS): Add getstr.h.
68864
68865         * lib/getline.c (getstr): Move into a separate file.
68866         * lib/getstr.c (getstr): New file, extracted from getline.c, with
68867         the following changes: new parameter, delim2; both delim[12]
68868         parameters have type `int', not `char'.  The latter would lose
68869         with 8-bit delimiters.
68870         * lib/getstr.h: New file.
68871
68872 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
68873
68874         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
68875         than 1024, return a memory chunk of least possible size, instead
68876         of size PATH_MAX + 2. In the loop, increment the size proportionally.
68877         Use free/xmalloc instead of xrealloc to avoid copying for very long
68878         paths.
68879
68880 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
68881
68882         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
68883         the empty string.
68884
68885 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
68886
68887         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
68888         address, not strdup.  Include <stdlib.h> and don't declare free().
68889
68890 2000-06-19  Jim Meyering  <meyering@lucent.com>
68891
68892         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
68893
68894 2000-06-18  Jim Meyering  <meyering@lucent.com>
68895
68896         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
68897
68898         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
68899         `checking whether...' message to be consistent with that of the
68900         lstat test.
68901
68902 2000-06-18  Jim Meyering  <meyering@lucent.com>
68903
68904         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
68905         Besides, these days every porting target provides a mkdir function.
68906
68907         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
68908         needed. (this snippet comes from src/system.h).
68909
68910 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
68911
68912         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
68913
68914 2000-06-15  Paul Eggert  <eggert@twinsun.com>
68915
68916         * lib/human.c (adjust_value): New function.
68917         (human_readable_inexact): Apply rounding style even when
68918         printing approximate values.
68919
68920 2000-06-14  Paul Eggert  <eggert@twinsun.com>
68921
68922         * lib/human.c (human_readable_inexact): Allow an input block
68923         size that is not a multiple of the output block size, and vice versa.
68924         Reported by Piergiorgio Sartor.
68925
68926 2000-06-14  Paul Eggert  <eggert@twinsun.com>
68927
68928         * lib/getdate.y (get_date): Apply relative times after time
68929         zone indicator, not before.  Reported by Todd A. Jacobs.
68930
68931 2000-06-13  Jim Meyering  <meyering@lucent.com>
68932
68933         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
68934
68935         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
68936
68937 2000-06-12  Paul Eggert  <eggert@twinsun.com>
68938
68939         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
68940
68941 2000-06-12  Jim Meyering  <meyering@lucent.com>
68942
68943         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
68944         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
68945         optional argument.
68946         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
68947         the optional argument, `lib'.
68948
68949 2000-06-08  Jim Meyering  <meyering@lucent.com>
68950
68951         * m4/largefile.m4: Remove file (now that it's part of autoconf).
68952
68953 2000-06-04  Paul Eggert  <eggert@twinsun.com>
68954
68955         Rewrite largefile configuration so that we don't need to run
68956         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
68957         AC_CANONICAL_HOST in configure.in -- jmm]
68958
68959         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
68960         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
68961         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
68962         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
68963         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
68964         All uses changed.
68965         Instead of inspecting the output of getconf, try to compile the
68966         test program without and with the macro definition.
68967         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
68968         for getconf.  Instead, check for the needed flags by compiling
68969         test programs.
68970
68971 2000-06-04  Paul Eggert  <eggert@twinsun.com>
68972
68973         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
68974
68975 2000-06-04  Jim Meyering  <meyering@lucent.com>
68976
68977         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
68978         SunOS 4.1.4 for which gid_t is an unsigned type.
68979
68980 2000-06-03  Jim Meyering  <meyering@lucent.com>
68981
68982         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
68983         now that autoconf requires that.
68984
68985         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
68986         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
68987         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
68988
68989 2000-06-03  Jim Meyering  <meyering@lucent.com>
68990
68991         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
68992
68993 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
68994
68995         * m4/glibc21.m4: New file.
68996         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
68997
68998 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
68999
69000         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
69001         newer, don't install charset.alias.
69002         * lib/config.charset: Change the Linux/glibc rules so they become empty
69003         on glibc-2.1 or newer.
69004
69005 2000-06-02  Jim Meyering  <meyering@lucent.com>
69006
69007         * lib/mountlist.c: Back out last change.  Instead, do this...
69008         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
69009         me_dummy member using the same `ignore'-testing code.
69010         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
69011         fs_type strings.
69012         From Mark D. Roth.
69013
69014 2000-05-29  Jim Meyering  <meyering@lucent.com>
69015
69016         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
69017         mounts with the `ignore' attribute.  Based on a patch from
69018         Mark D. Roth.
69019
69020 2000-05-28  Jim Meyering  <meyering@lucent.com>
69021
69022         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
69023         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69024         * m4/stat.m4: Likewise.
69025         * m4/lstat.m4: Likewise.
69026         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
69027
69028         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
69029         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
69030
69031 2000-05-26  Jim Meyering  <meyering@lucent.com>
69032
69033         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
69034
69035 2000-05-24  Jim Meyering  <meyering@lucent.com>
69036
69037         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
69038         autoconf requires that.
69039         * m4/lib-check.m4: Likewise.
69040         * m4/jm-macros.m4: Likewise.
69041         * m4/strftime.m4: Likewise.
69042
69043         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
69044         AC_CHECK_DECLS, now that autoconf requires that.
69045
69046 2000-05-22  Jim Meyering  <meyering@lucent.com>
69047
69048         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69049         * m4/lstat.m4: Likewise.
69050
69051 2000-05-22  Jim Meyering  <meyering@lucent.com>
69052
69053         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
69054
69055 2000-05-20  Jim Meyering  <meyering@lucent.com>
69056
69057         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
69058         (jm_PREREQ): Use it.
69059
69060 2000-05-18  Jim Meyering  <meyering@lucent.com>
69061
69062         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
69063         back, too, since it may have been modified by allocate_entry.
69064         (hash_delete): Rewrite to use neither the assignment operator
69065         nor the comma operator in an if-expression.
69066
69067 2000-05-15  Paul Eggert  <eggert@twinsun.com>
69068
69069         * lib/closeout.c:
69070         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
69071         Remove; no longer needed.
69072         "quotearg.h": Add include.
69073         (file_name): Do not bother to explicitly initialize to NULL; it's less
69074         efficient on some hosts.
69075         (close_stdout_status): Remove test as to whether stdout was already
69076         closed; it breaks for the case "echo x | sort >&-".
69077         Quote file name colons.
69078         Do not assume that _("write error") lacks format strings.
69079
69080 2000-05-15  Jim Meyering  <meyering@lucent.com>
69081
69082         * lib/version-etc.c (version_etc_copyright): Update the copyright
69083         string used in all --version output.
69084
69085 2000-05-14  Jim Meyering  <meyering@lucent.com>
69086
69087         * lib/closeout.c (close_stdout_set_file_name): New function.
69088         (close_stdout_status): Use new file-scoped global.
69089         Return right away if fstat says the stdout file descriptor is invalid.
69090         * lib/closeout.h (close_stdout_set_file_name): Declare.
69091
69092 2000-05-10  Jim Meyering  <meyering@lucent.com>
69093
69094         * lib/closeout.c [default_exit_status]: New file-scoped variable.
69095         (close_stdout_set_status): New function.
69096         * lib/closeout.h (close_stdout_set_status): Declare.
69097
69098 2000-05-09  Jim Meyering  <meyering@lucent.com>
69099
69100         * m4/gettext.m4: Rename this...
69101         * m4/libintl.m4: ...to this.
69102
69103 2000-05-08  Jim Meyering  <meyering@lucent.com>
69104
69105         * lib/long-options.c: Don't include closeout.h.
69106         (parse_long_options): Don't call close_stdout for --version.
69107
69108 2000-05-06  Paul Eggert  <eggert@twinsun.com>
69109
69110         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
69111         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
69112         2.1.3 bug.  This avoids a clash when files like regex.c define
69113         _GNU_SOURCE.
69114
69115 2000-05-06  Jim Meyering  <meyering@lucent.com>
69116
69117         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
69118         (AC_REPLACE_FUNCS): Add strnlen.
69119
69120         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
69121         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
69122
69123         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
69124         AC_SEARCH_LIBS call for nanosleep.
69125         (LIB_NANOSLEEP): Set and AC_SUBST.
69126
69127 2000-05-06  Jim Meyering  <meyering@lucent.com>
69128
69129         * lib/strnlen.c: Undefine __strnlen and strnlen.
69130         [!weak_alias]: Define __strnlen to strnlen.
69131
69132         * lib/atexit.c: New file, from libiberty.
69133
69134 2000-05-06  Jim Meyering  <meyering@lucent.com>
69135
69136         * lib/closeout.c (close_stdout_status): Also check for errors on the
69137         stderr stream.
69138
69139 2000-05-05  Jim Meyering  <meyering@lucent.com>
69140
69141         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
69142         AC_SEARCH_LIBS call for clock_gettime.
69143         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
69144
69145         * m4/search-libs.m4: Update from autoconf.
69146
69147         su doesn't work on Solaris 2.6.
69148         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
69149         <shadow.h>.  Reported by Dragos Harabor.
69150
69151 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
69152
69153         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
69154         memcpy instead of xmalloc, xrealloc, path_concat.
69155         (locale_charset): Treat empty environment variables as absent.
69156         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
69157
69158 2000-05-04  Jim Meyering  <meyering@lucent.com>
69159
69160         * lib/getopt.c: Update from glibc.
69161         * lib/obstack.c: Likewise.
69162         * lib/obstack.h: Likewise.
69163         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
69164         file
69165
69166         * lib/regex.h: Likewise.
69167         * lib/strndup.c: Likewise.
69168         * lib/strnlen.c: New file, from glibc.
69169
69170 2000-05-03  Jim Meyering  <meyering@lucent.com>
69171
69172         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
69173
69174 2000-05-02  Paul Eggert  <eggert@twinsun.com>
69175
69176         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
69177         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
69178         compile-time test, rather than inspecting host and OS, to
69179         decide whether to define _LARGEFILE_SOURCE.
69180
69181 2000-05-01  Jim Meyering  <meyering@lucent.com>
69182
69183         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
69184
69185         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
69186         Based on a patch from Bruno Haible.
69187
69188 2000-05-01  Jim Meyering  <meyering@lucent.com>
69189
69190         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
69191
69192 2000-04-29  Jim Meyering  <meyering@lucent.com>
69193
69194         * lib/path-concat.c: Declare strdup only if it's not defined.
69195         * lib/canon-host.c: Likewise.
69196
69197 2000-04-28  Jim Meyering  <meyering@lucent.com>
69198
69199         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
69200         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
69201         is included first, then limits.h is included by locale.h by libintl.h.
69202         From John David Anglin.
69203
69204 2000-04-25  Jim Meyering  <meyering@lucent.com>
69205
69206         * lib/makepath.c (S_IRWXUGO): Define.
69207         (make_path): Always perform explicit chmod if MODE specifies any
69208         of the `special' permission bits.  Prompted by a bug report against
69209         install from Mate Wierdl and Joost van Baal.
69210
69211 2000-04-18  Jim Meyering  <meyering@lucent.com>
69212
69213         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
69214         (jm_PREREQ): Use it.
69215
69216 2000-04-18  Jim Meyering  <meyering@lucent.com>
69217
69218         * lib/README: New file.
69219
69220         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
69221         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
69222
69223 2000-04-17  Jim Meyering  <meyering@lucent.com>
69224
69225         Get it right :-)
69226         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
69227         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
69228         Suggestion from Akim Demaille.
69229
69230 2000-04-17  Jim Meyering  <meyering@lucent.com>
69231
69232         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
69233         the definition of it to rpl_strftime also defined-away the system's
69234         declaration.
69235
69236 2000-04-15  Jim Meyering  <meyering@lucent.com>
69237
69238         Use `C' to denote so-called `contiguous' files, the same way
69239         that tar does.
69240         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
69241         (ftypelet): Use S_ISCTG.
69242         From Michael Deutschmann.
69243
69244 2000-04-14  Jim Meyering  <meyering@lucent.com>
69245
69246         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
69247         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
69248         clobbered.
69249
69250 2000-04-14  Jim Meyering  <meyering@lucent.com>
69251
69252         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
69253
69254 2000-04-13  Jim Meyering  <meyering@lucent.com>
69255
69256         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
69257         AH_VERBATIM to insert required #ifndef into config.h.in.
69258         Suggestion from Akim Demaille.
69259
69260 2000-04-12  Jim Meyering  <meyering@lucent.com>
69261
69262         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
69263         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
69264         Christian Krackowizer.
69265
69266         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
69267         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
69268         (AC_SYS_LARGEFILE): Require.
69269         (AM_C_PROTOTYPES): Require.
69270
69271 2000-04-08  Jim Meyering  <meyering@lucent.com>
69272
69273         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
69274         names don't conflict.  Reported by Eli Zaretskii.
69275
69276 2000-04-07  Jim Meyering  <meyering@lucent.com>
69277
69278         * lib/putenv.c: Move inclusion of errno.h so it follows that of
69279         sys/types.h, to work around system header problems on AIX 3.2.5.
69280         From Bruno Haible.
69281
69282 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
69283
69284         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
69285         bug.  Deal with the different error behavior of Irix iconv.
69286
69287 2000-04-05  Paul Eggert  <eggert@twinsun.com>
69288
69289         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
69290         IRIX if the installer said otherwise.
69291
69292 2000-04-05  Jim Meyering  <meyering@lucent.com>
69293
69294         Portability tweaks required for ultrix4.3.
69295         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
69296         (jm_CHECK_DECLS): Add getutent to the list of functions.
69297         (_jm_DECL_HEADERS): Add utmpx.h.
69298         From John David Anglin.
69299
69300         * m4/strftime.m4: Back out the 2000-04-02 change.
69301         Instead of that change, simply undefine putenv in the test program.
69302
69303 2000-04-05  Jim Meyering  <meyering@lucent.com>
69304
69305         Portability tweaks required for ultrix4.3.
69306         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
69307         getutent.
69308         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
69309         * lib/canon-host.c: Declare strdup.
69310         * lib/path-concat.c: Likewise.
69311         From John David Anglin.
69312
69313 2000-04-04  Jim Meyering  <meyering@lucent.com>
69314
69315         Be more DOS 8.3-friendly.
69316         * lib/ref-add.sin: Renamed from ref-add.sed.in.
69317         * lib/ref-del.sin: Renamed from ref-del.sed.in.
69318         * lib/Makefile.am: Reflect renaming.
69319         Reported by Eli Zaretskii.
69320
69321         Use a temporary file name that won't clash with `charset.alias'
69322         in the DOS 8.3 name space.
69323         * lib/Makefile.am (charset_tmp): Define.
69324         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
69325         (uninstall-local): Likewise.
69326         Reported by Eli Zaretskii.
69327
69328 2000-04-03  Jim Meyering  <meyering@lucent.com>
69329
69330         * m4/gettext.m4: Fix typo in comment.
69331
69332         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
69333         textutils/configure.in).  Suggestion from Paul Eggert.
69334         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
69335
69336 2000-04-02  Paul Eggert  <eggert@twinsun.com>
69337
69338         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
69339         variable in the shell rather than using putenv, which isn't
69340         portable.  This avoids the configure-time inter-test dependency
69341         on the potentially-renamed putenv function.
69342
69343 2000-03-30  Paul Eggert  <eggert@twinsun.com>
69344
69345         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
69346         before checking struct stat.st_blksize, so that
69347         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
69348
69349 2000-03-29  Paul Eggert  <eggert@twinsun.com>
69350
69351         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
69352         since strftime.c uses HAVE_STRFTIME to decide whether to use
69353         the underlying strftime.
69354
69355 2000-03-29  Paul Eggert  <eggert@twinsun.com>
69356
69357         * lib/time/strftime.c (my_strftime): Make sure we call the system
69358         strftime, not ourselves, when invoking the underlying strftime.
69359
69360 2000-03-24  Jim Meyering  <meyering@lucent.com>
69361
69362         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
69363         (charset_alias): Define.
69364         (install-exec-local): Factor out common code.
69365         (uninstall-local): Split lines longer than 80.
69366         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
69367         (SUFFIXES): Define.
69368         (.sed.in.sed): New rule.  Don't redirect directly to $@.
69369         (CLEANFILES): Add ref-add.sed and ref-del.sed.
69370
69371 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
69372
69373         * lib/config.charset: Output a line containing "Packages using this
69374         file".
69375         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
69376         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
69377         ref-del.sed): New rules.
69378
69379 2000-03-17  Jim Meyering  <meyering@lucent.com>
69380
69381         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
69382         Otherwise, include <strings.h>
69383
69384 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
69385
69386         * lib/unicodeio.c (utf8_wctomb): New function.
69387         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
69388         format instead of in UCS-4 with platform dependent endianness.
69389
69390 2000-03-10  Jim Meyering  <meyering@lucent.com>
69391
69392         * m4/lib-check.m4: Look for getspnam in -lgen, too.
69393         From Marco Franzen.
69394
69395 2000-03-07  Paul Eggert  <eggert@twinsun.com>
69396
69397         * lib/savedir.c (savedir): Work even if directory size is
69398         negative; this can happen with some screwy NFS configurations.
69399
69400 2000-03-06  Jim Meyering  <meyering@lucent.com>
69401
69402         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
69403         if it's NULL (because we ran out of memory).  From Bruno Haible.
69404
69405 2000-03-05  Jim Meyering  <meyering@lucent.com>
69406
69407         * lib/localcharset.c ("path-concat.h"): Include.
69408         (get_charset_aliases): Use path_concat instead of ANSI string
69409         concatenation.
69410
69411         * lib/unicodeio.h (PARAMS): Define.
69412         Use it to guard prototype.
69413
69414 2000-03-04  Jim Meyering  <meyering@lucent.com>
69415
69416         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
69417         for lib/localcharset.c.
69418
69419 2000-03-04  Jim Meyering  <meyering@lucent.com>
69420
69421         * lib/Makefile.am (install-exec-local): Create $(libdir) before
69422         installing into it.
69423         (uninstall-local): Uncomment this rule so `make distcheck' works
69424         once again.
69425
69426         * lib/unicodeio.c (<errno.h>): Include it.
69427         (errno): Declare if not defined.
69428
69429         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
69430
69431         * lib/config.charset: New version, incorporating remarks from a linux
69432         i18n mailing list.  From Bruno Haible.
69433
69434 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
69435
69436         * m4/codeset.m4: New file.
69437         * m4/iconv.m4: New file.
69438         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
69439
69440 2000-03-03  Jim Meyering  <meyering@lucent.com>
69441
69442         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
69443
69444 2000-03-02  Jim Meyering  <meyering@lucent.com>
69445
69446         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
69447         the messages come out on separate lines.
69448
69449         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
69450         rather than jm_CHECK_DECLARATIONS.
69451         * m4/decl.m4: Remove now-unused file.
69452
69453         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
69454         geteuid.
69455
69456 2000-03-02  Jim Meyering  <meyering@lucent.com>
69457
69458         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
69459
69460 2000-03-01  Jim Meyering  <meyering@lucent.com>
69461
69462         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
69463         * lib/unicodeio.c: Likewise.
69464
69465 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
69466
69467         * lib/config.charset: New file.
69468         * lib/localcharset.c: New file.
69469         * lib/unicodeio.h, lib/unicodeio.c: New files.
69470         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
69471         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
69472         (noinst_HEADERS): Add unicodeio.h.
69473         (all-local, install-exec-local, charset.alias): New targets.
69474
69475 2000-02-28  Paul Eggert  <eggert@twinsun.com>
69476
69477         * lib/quotearg.c (ALERT_CHAR): New macro.
69478         (quotearg_buffer_restyled): Use it.
69479
69480 2000-02-27  Jim Meyering  <meyering@lucent.com>
69481
69482         * m4/check-decl.m4: Add getenv to the list.
69483
69484 2000-02-27  Jim Meyering  <meyering@lucent.com>
69485
69486         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
69487         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
69488
69489         * lib/backupfile.c: Guard inclusion of stdlib.h with
69490         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
69491         Declare malloc if needed.
69492
69493         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
69494         `#ifndef HAVE_DECL..'
69495         now that autoconf always defines the HAVE_DECL_ symbols.
69496         * lib/human.c: Likewise.
69497         * lib/same.c: Likewise.
69498         * lib/strtoumax.c: Likewise.
69499
69500         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
69501         declaration check was not run.
69502         * lib/hash.c: Likewise.
69503         * lib/human.c: Likewise.
69504         * lib/same.c: Likewise.
69505         * lib/strtoumax.c: Likewise.
69506
69507         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
69508         `.', then first look up the entire `.'-containing string as a login
69509         name.
69510
69511 2000-02-23  Jim Meyering  <meyering@lucent.com>
69512
69513         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
69514         in place of my hack.
69515
69516 2000-02-18  Paul Eggert  <eggert@twinsun.com>
69517
69518         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
69519         (textint): New typedef.
69520         (parser_control): Member year changed from int to textint.
69521         All uses changed.
69522         (YYSTYPE): Removed; replaced by %union with int and textint members.
69523         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
69524         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
69525         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
69526         (tSNUMBER, tUNUMBER): Now of type <textintval>.
69527         (date, number, to_year): Use width of number in digits, not its value,
69528         to determine whether it's a 2-digit year, or a 2-digit time.
69529         (yylex): Store number of digits of numeric tokens.
69530         Reported by John Kendall.
69531
69532         (parser_control): Changed from struct parser_control to typedef (for
69533         consistency).  All uses changed.
69534
69535         (tID): Removed; not used.
69536         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
69537
69538 2000-02-14  Paul Eggert  <eggert@twinsun.com>
69539
69540         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
69541         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
69542
69543 2000-02-12  Jim Meyering  <meyering@lucent.com>
69544
69545         * lib/userspec.c (ISDIGIT): Define it.
69546         (isdigit): Remove definition.
69547         (is_number): Use ISDIGIT, not isdigit.
69548         <libintl.h>: Include.
69549         (_ and N_): Define.
69550         (parse_user_spec): Mark translatable strings.
69551
69552 2000-02-10  Jim Meyering  <meyering@lucent.com>
69553
69554         With these changes, nanosleep.[ch] are finally enough like the other
69555         lib/* replacement files to compile on a few more losing systems.
69556
69557         * lib/nanosleep.h: Don't include config.h.
69558         Remove prototype from declaration of nanosleep.
69559         (PARAMS): Remove now-unneeded definition.
69560         * lib/nanosleep.c: #undef nanosleep.
69561         (rpl_nanosleep): Rename from nanosleep.
69562
69563 2000-02-10  Jim Meyering  <meyering@lucent.com>
69564
69565         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
69566         gnu_nanosleep to rpl_nanosleep.
69567
69568 2000-02-09  Jim Meyering  <meyering@lucent.com>
69569
69570         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
69571         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
69572
69573 2000-02-08  Akim Demaille  <akim@epita.fr>
69574
69575         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
69576         `[' and `]' and remove uses of `changequote'.
69577         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
69578         (AC_SYS_LARGEFILE): Likewise.
69579         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
69580         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
69581         of changequote.
69582         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
69583         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
69584         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
69585         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
69586
69587 2000-02-05  Jim Meyering  <meyering@lucent.com>
69588
69589         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
69590         Remove explicit use of AC_HEADER_TIME.  It is required by
69591         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
69592         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
69593         in autoconf whereby the expansion of the latter ended up preceding
69594         the expansion of its prerequisite, AC_HEADER_TIME.
69595         Reported by Volker Borchert.
69596
69597 2000-02-03  Jim Meyering  <meyering@lucent.com>
69598
69599         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
69600
69601 2000-02-03  Jim Meyering  <meyering@lucent.com>
69602
69603         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
69604         rather than with `#if HAVE_UTMPNAME'.
69605
69606 2000-02-02  Jim Meyering  <meyering@lucent.com>
69607
69608         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
69609         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
69610         Reported by Eli Zaretskii.
69611
69612 2000-02-01  Jim Meyering  <meyering@lucent.com>
69613
69614         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
69615
69616 2000-01-31  Jim Meyering  <meyering@lucent.com>
69617
69618         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
69619         functions.  Add the time.h and sys/time.h headers along with the
69620         AC_REQUIRE'ment of AC_HEADER_TIME.
69621
69622 2000-01-31  Jim Meyering  <meyering@lucent.com>
69623
69624         * lib/nanosleep.h (nanosleep): Guard declaration with
69625         `#if ! HAVE_DECL_NANOSLEEP'.
69626         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
69627         the declaration in that vendor's sys/timers.h.
69628         Reported by Christian Krackowizer.
69629
69630         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
69631         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
69632         (ISPRINT): Likewise.
69633         Reported by Tom Tromey.
69634
69635 2000-01-30  Jim Meyering  <meyering@lucent.com>
69636
69637         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
69638
69639         * m4/prereq.m4 (utmp_includes): Define.
69640         Check for ut_user and ut_name members in both struct utmpx
69641         and struct utmp.
69642
69643 2000-01-30  Jim Meyering  <meyering@lucent.com>
69644
69645         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
69646         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
69647         header files where only utmpx.ut_user is declared.
69648
69649         * lib/readutmp.h (UT_USER): Define.
69650
69651 2000-01-29  Jim Meyering  <meyering@lucent.com>
69652
69653         * m4/lib-check.m4: New file containing library-related checks from
69654         fileutils and sh-utils (textutils had none).
69655
69656 2000-01-28  Jim Meyering  <meyering@lucent.com>
69657
69658         * m4/perl.m4: Change format of warning message to look more like that
69659         from the missing script.  Suggestion from François Pinard.
69660
69661 2000-01-25  Jim Meyering  <meyering@lucent.com>
69662
69663         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
69664         well as time.h in the compile check.
69665         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
69666         Fix typo in cross-compiling case: s/yes/no/.
69667
69668 2000-01-23  Jim Meyering  <meyering@lucent.com>
69669
69670         * m4/jm-macros.m4: Move df-related tests here from
69671         fileutils/configure.in
69672
69673         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
69674         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
69675
69676         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
69677         s/space/ac_fsusage_space/.
69678         (jm_FILE_SYSTEM_USAGE): Take two parameters.
69679
69680         * m4/ftruncate.m4: New file (derived from part of
69681         fileutils/configure.in).
69682         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
69683         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
69684
69685         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
69686         AC_SUBST these here, rather than just in sh-util/configure.in, so
69687         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
69688         all the same.
69689         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
69690         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
69691         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
69692         (AC_SUBST(POW_LIBM)): Likewise.
69693         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
69694
69695 2000-01-23  Jim Meyering  <meyering@lucent.com>
69696
69697         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
69698         obstack.c.
69699
69700 2000-01-22  Jim Meyering  <meyering@lucent.com>
69701
69702         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
69703
69704         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
69705
69706         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
69707         configure.in
69708         (AC_CHECK_HEADERS): Likewise for sh-utils.
69709         (AC_CHECK_HEADERS): Likewise for textutils.
69710         Merge the three lists of headers.
69711
69712         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
69713         from fileutils' configure.in.
69714
69715         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
69716         code. Moved tests into their own function (_jm_DECL_HEADERS) in
69717         check-decl.m4.
69718
69719         * m4/check-decl.m4: Use #if rather than #ifdef.
69720         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
69721         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
69722         (_jm_DECL_HEADERS): Define new function.
69723         (jm_CHECK_DECLARATIONS): Require it.
69724
69725 2000-01-22  Jim Meyering  <meyering@lucent.com>
69726
69727         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
69728         [! HAVE_DECL_STRTOULL]: Declare strtoull.
69729         Required for some AIX systems.  Reported by Christian Krackowizer.
69730         [TESTING] (main): New function.
69731
69732         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
69733         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
69734         letters.
69735
69736         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
69737         iswprint.
69738
69739         * lib/strverscmp.c (ISDIGIT): Define.
69740         (strverscmp): Use ISDIGIT, not isdigit.
69741
69742 2000-01-19  Jim Meyering  <meyering@lucent.com>
69743
69744         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
69745         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
69746         defines `struct timespec' in <sys/time.h>
69747
69748         * m4/c-bs-a.m4: Remove uses of changequote altogether.
69749         Thanks to Akim for explaining.
69750
69751 2000-01-17  Paul Eggert  <eggert@twinsun.com>
69752
69753         * lib/nanosleep.c (nanosleep):
69754         Don't use SA_INTERRUPT to decide whether to call sigaction, as
69755         POSIX.1 doesn't require SA_INTERRUPT and some systems
69756         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
69757         it's been part of POSIX.1 since day 1 (in 1988).
69758
69759 2000-01-17  Jim Meyering  <meyering@lucent.com>
69760
69761         * lib/interlock: Remove unused file.  Reported by François Pinard.
69762
69763 2000-01-16  Paul Eggert  <eggert@twinsun.com>
69764
69765         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
69766         alert, backslash, formfeed, and vertical tab unnecessarily in
69767         shell quoting style.
69768
69769 2000-01-16  Jim Meyering  <meyering@lucent.com>
69770
69771         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
69772         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
69773         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
69774         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
69775
69776 2000-01-16  Jim Meyering  <meyering@lucent.com>
69777
69778         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
69779         because the latter didn't work.
69780
69781 2000-01-15  Jim Meyering  <meyering@lucent.com>
69782
69783         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
69784         (AC_REPLACE_FUNCS): Add memcpy and memset.
69785         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
69786         Add strpbrk.
69787         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
69788
69789 2000-01-12  Jim Meyering  <meyering@lucent.com>
69790
69791         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
69792         (jm_PREREQ): Use it.
69793         (jm_PREREQ_READUTMP): New macro.
69794         (jm_PREREQ): Use it.
69795
69796 2000-01-11  Paul Eggert  <eggert@twinsun.com>
69797
69798         Quote multibyte characters correctly.
69799         * m4/c-bs-a.m4: New file.
69800         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
69801         (jm_PREREQ): Use it.
69802
69803 2000-01-11  Paul Eggert  <eggert@twinsun.com>
69804
69805         * m4/uintmax_t.m4: Port to autoconf 2.13.
69806
69807 2000-01-08  Jim Meyering  <meyering@ascend.com>
69808
69809         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
69810         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
69811
69812 2000-01-04  Jim Meyering  <meyering@ascend.com>
69813
69814         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
69815         jm_STRUCT_DIRENT_D_TYPE.
69816         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
69817         jm_STRUCT_DIRENT_D_INO.
69818         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
69819         jm_STRUCT_UTIMBUF.
69820         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
69821         renamings.
69822         * m4/utime.m4: Likewise.
69823
69824         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
69825         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
69826
69827 2000-01-03  Paul Eggert  <eggert@twinsun.com>
69828
69829         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
69830         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
69831
69832 2000-01-02  Jim Meyering  <meyering@ascend.com>
69833
69834         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
69835         remember if this is necessary.
69836
69837 1999-12-26  Jim Meyering  <meyering@ascend.com>
69838
69839         * m4/jm-macros.m4: Use it here.
69840         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
69841
69842 1999-12-23  Jim Meyering  <meyering@ascend.com>
69843
69844         * m4/jm-macros.m4: Check for clock_gettime (moved from
69845         fileutils/configure.in)
69846         Check for gettimeofday.
69847
69848 1999-12-20  Jim Meyering  <meyering@ascend.com>
69849
69850         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
69851         autoconf-2.14a-1999-12-20.
69852
69853 1999-12-19  Jim Meyering  <meyering@ascend.com>
69854
69855         * m4/lstat-slash.m4: New file.
69856         * m4/jm-macros.m4: Use the new macro:
69857         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
69858
69859 1999-12-07  Jim Meyering  <meyering@ascend.com>
69860
69861         * m4/perl.m4: Require that File::Compare be available, too.
69862         Too many systems seem to lack it.
69863
69864         * m4/strftime.m4: Add checks for most of the cpp macros tested in
69865         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
69866
69867 1999-11-18  Paul Eggert  <eggert@twinsun.com>
69868
69869         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
69870         problem with the QNX 4.25 shell, which doesn't propagate exit
69871         status of failed commands inside shell assignments.
69872
69873 1999-11-17  Jim Meyering  <meyering@ascend.com>
69874
69875         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
69876
69877 1999-11-07  Jim Meyering  <meyering@ascend.com>
69878
69879         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
69880
69881 1999-11-06  Jim Meyering  <meyering@ascend.com>
69882
69883         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
69884         * m4/jm-macros.m4 (jm_MACROS): Use it here.
69885
69886 1999-11-05  Jim Meyering  <meyering@ascend.com>
69887
69888         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
69889         configure.in of textutils, fileutils, and sh-utils into this one
69890         (shared between those packages) file.
69891         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
69892         AC_STRUCT_ST_BLKSIZE.
69893
69894 1999-11-03  Jim Meyering  <meyering@ascend.com>
69895
69896         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
69897         of AC_CHECK_TYPE checks includes unistd.h.
69898         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
69899         Suggestion from Akim Demaille.
69900
69901 1999-10-30  Jim Meyering  <meyering@ascend.com>
69902
69903         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
69904         m4-quoted string.
69905         * m4/ls-mntd-fs.m4: Likewise.
69906         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
69907         * m4/jm-winsz1.m4: Likewise.
69908
69909         * m4/const.m4: Remove file, since the fix made it into the experimental
69910         version of autoconf.
69911         * m4/mktime.m4: Likewise.
69912
69913         * m4/check-type.m4: Remove file, now that the latest version of
69914         AC_CHECK_TYPE takes a third arg to specify additional #includes.
69915
69916         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
69917         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
69918         AC_CHECK_TYPE.
69919
69920 1999-10-04  Jim Meyering  <meyering@ascend.com>
69921
69922         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
69923
69924 1999-09-22  Paul Eggert  <eggert@twinsun.com>
69925
69926         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
69927         2.95.1 bug with HP-UX 10.20.
69928
69929 1999-09-17  Jim Meyering  <meyering@ascend.com>
69930
69931         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
69932         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
69933         due to missing strdup (against sh-utils-2.0).
69934
69935 1999-08-29  Jim Meyering  <meyering@ascend.com>
69936
69937         * m4/jm-macros.m4: Require jm_BISON.
69938         * m4/bison.m4: New file.
69939
69940 1999-08-17  Paul Eggert  <eggert@twinsun.com>
69941
69942         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
69943         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
69944
69945 1999-08-05  Jim Meyering  <meyering@ascend.com>
69946
69947         * m4/getline.m4: Rename test file from conftestdata to conftest.data
69948         to avoid conflicts with `conftest' on 8+3 filesystems.
69949         Suggestion from Eli Zaretskii.
69950
69951 1999-08-04  Jim Meyering  <meyering@ascend.com>
69952
69953         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
69954         fileutils and sh-utils (textutils's getline test was inadequate).
69955         (AM_FUNC_GETLINE): Run this test.
69956         (AC_CHECK_FUNCS): Check for getdelim.
69957         Reported by Bob Proulx.
69958
69959 1999-08-02  Jim Meyering  <meyering@ascend.com>
69960
69961         * m4/jm-macros.m4: Add a comment.
69962
69963 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69964
69965         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
69966         <inttypes.h> defines strtoumax as a macro (and not as a
69967         function).
69968
69969 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69970
69971         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
69972         that we can shift, multiply and divide unsigned long long
69973         values; Ultrix cc can't do it.
69974
69975 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69976
69977         * m4/mktime.m4: New file, which is a preview of what should appear
69978         in the next public autoconf release.
69979
69980 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69981
69982         * m4/lfs.m4: Remove this file.
69983         * m4/largefile.m4: New file.  It contains the old contents of
69984         lfs.m4, except that all names with prefix AC_LFS have been
69985         changed to use the prefix AC_SYS_LARGEFILE instead, to be
69986         compatible with future autoconf versions.  Also, some minor m4
69987         quoting problems have been fixed.
69988
69989 1999-08-01  Paul Eggert  <eggert@twinsun.com>
69990
69991         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
69992         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
69993         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
69994         and simplify the shell code.
69995
69996 1999-08-01  Jim Meyering  <meyering@ascend.com>
69997
69998         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
69999         m4.
70000
70001 1999-07-20  Jim Meyering  <meyering@ascend.com>
70002
70003         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
70004
70005 1999-07-15  Jim Meyering  <meyering@ascend.com>
70006
70007         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
70008
70009 1999-05-22  Jim Meyering  <meyering@ascend.com>
70010
70011         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
70012
70013 1999-05-20  Jim Meyering  <meyering@ascend.com>
70014
70015         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
70016         Add a colon after each `then' in case $4 is empty.
70017
70018 1999-05-16  Jim Meyering  <meyering@ascend.com>
70019
70020         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
70021
70022 1999-05-10  Jim Meyering  <meyering@ascend.com>
70023
70024         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
70025
70026         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
70027         AC_FUNC_MKTIME.
70028
70029 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
70030
70031         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
70032
70033 1999-05-04  Paul Eggert  <eggert@twinsun.com>
70034
70035         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
70036         not CPPFLAGS, so that linking works correctly in IRIX.
70037
70038 1999-04-30  Paul Eggert  <eggert@twinsun.com>
70039
70040         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
70041
70042 1999-04-20  Paul Eggert  <eggert@twinsun.com>
70043
70044         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
70045         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
70046         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
70047         jm_AC_TYPE_UNSIGNED_LONG_LONG.
70048         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
70049
70050         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
70051
70052 1999-04-20  Jim Meyering  <meyering@ascend.com>
70053
70054         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
70055         AC_REPLACE xstroull if necessary.  From Paul Eggert.
70056         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
70057
70058 1999-04-18  Jim Meyering  <meyering@ascend.com>
70059
70060         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
70061         * m4/jm-macros.m4: Use it.
70062
70063 1999-04-06  Jim Meyering  <meyering@ascend.com>
70064
70065         * m4/strftime.m4: Remove test for %f.
70066
70067 1999-03-29  Jim Meyering  <meyering@ascend.com>
70068
70069         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
70070         superset of the AC_TYPE_* checks in the textutils, fileutils,
70071         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
70072         AC_TYPE_PID_T.
70073
70074 1999-03-28  Jim Meyering  <meyering@ascend.com>
70075
70076         * m4/jm-macros.m4: Define GNU_PACKAGE here.
70077         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
70078         replaced e.g., in the *.sh files of the sh-utils.
70079
70080 1999-03-20  Jim Meyering  <meyering@ascend.com>
70081
70082         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
70083         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
70084         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
70085
70086 1999-03-19  Jim Meyering  <meyering@ascend.com>
70087
70088         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
70089
70090 1999-03-12  Jim Meyering  <meyering@ascend.com>
70091
70092         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
70093
70094 1999-03-07  Jim Meyering  <meyering@ascend.com>
70095
70096         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
70097         declared.
70098
70099 1999-02-17  Jim Meyering  <meyering@ascend.com>
70100
70101         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
70102         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
70103
70104 1999-02-07  Jim Meyering  <meyering@ascend.com>
70105
70106         * m4/group-member.m4: New file -- extracted from sh-utils'
70107         configure.in.
70108
70109         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
70110         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
70111
70112 1999-02-06  Jim Meyering  <meyering@ascend.com>
70113
70114         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
70115         * m4/fnmatch.m4: Likewise.
70116         * m4/getgroups.m4: Likewise.
70117         * m4/lstat.m4: Likewise.
70118         * m4/malloc.m4: Likewise.
70119         * m4/putenv.m4: Likewise.
70120         * m4/realloc.m4: Likewise.
70121         * m4/regex.m4: Likewise.
70122         * m4/stat.m4: Likewise.
70123         * m4/strftime.m4: Likewise.
70124         Suggestion from Alain Magloire.
70125
70126         * m4/chown.m4: Use `.$ac_objext', not `.o'.
70127         * m4/fnmatch.m4: Likewise.
70128         * m4/getgroups.m4: Likewise.
70129         * m4/getline.m4: Likewise.
70130         * m4/lstat.m4: Likewise.
70131         * m4/malloc.m4: Likewise.
70132         * m4/memcmp.m4: Likewise.
70133         * m4/putenv.m4: Likewise.
70134         * m4/realloc.m4: Likewise.
70135         * m4/regex.m4: Likewise.
70136         * m4/stat.m4: Likewise.
70137         * m4/strftime.m4: Likewise.
70138         Suggestion from Alain Magloire.
70139
70140         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
70141         an argument.
70142
70143         * m4/regex.m4: Add a run-time Test for proper operation of
70144         re_compile_pattern.
70145
70146 1999-01-31  Jim Meyering  <meyering@ascend.com>
70147
70148         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
70149
70150 1999-01-30  Jim Meyering  <meyering@ascend.com>
70151
70152         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
70153
70154         * m4/jm-mktime.m4: Make this a wrapper around the official
70155         AM_FUNC_MKTIME rather than my private copy, now that the official one
70156         is up to date.
70157         * m4/mktime.m4: Remove file.
70158
70159         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
70160         * m4/uptime.m4: Likewise.
70161         * m4/uintmax_t.m4: Likewise.
70162
70163 1999-01-28  Jim Meyering  <meyering@ascend.com>
70164
70165         * m4/jm-macros.m4: Use jm_AFS.
70166         * m4/afs.m4: New file (from fileutils' configure.in).
70167
70168         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
70169         * m4/chown.m4: Likewise.
70170         * m4/d-ino.m4: Likewise.
70171         * m4/d-type.m4: Likewise.
70172         * m4/fnmatch.m4: Likewise.
70173         * m4/getgroups.m4: Likewise.
70174         * m4/gettext.m4: Likewise.
70175         * m4/jm-mktime.m4: Likewise.
70176         * m4/jm-winsz2.m4: Likewise.
70177         * m4/lcmessage.m4: Likewise.
70178         * m4/ls-mntd-fs.m4: Likewise.
70179         * m4/malloc.m4: Likewise.
70180         * m4/memcmp.m4: Likewise.
70181         * m4/putenv.m4: Likewise.
70182         * m4/realloc.m4: Likewise.
70183         * m4/st_mtim.m4: Likewise.
70184         * m4/strftime.m4: Likewise.
70185
70186 1999-01-16  Jim Meyering  <meyering@ascend.com>
70187
70188         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
70189         (ARGMATCH_DIE_DECL): Define.
70190
70191 1999-01-12  Jim Meyering  <meyering@ascend.com>
70192
70193         * m4/Makefile.am.in: Rewrite to avoid using fmt.
70194         Reported by Lars Hecking.
70195
70196 1999-01-10  Jim Meyering  <meyering@ascend.com>
70197
70198         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
70199         gross kludge.
70200         * m4/inttypes_h.m4: Likewise.
70201         * m4/lstat.m4: Likewise.
70202         * m4/malloc.m4: Likewise.
70203         * m4/readdir.m4: Likewise.
70204         * m4/realloc.m4: Likewise.
70205         * m4/st_dm_mode.m4: Likewise.
70206         * m4/stat.m4: Likewise.
70207         * m4/utimbuf.m4: Likewise.
70208         * m4/utimes.m4: Likewise.
70209
70210         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
70211         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
70212         comments in config.h.in are meaningful.
70213
70214         * m4/jm-macros.m4: Require autoconf-2.13 here.
70215
70216         * m4/regex.m4: By default, don't use the included regex.c on systems
70217         with glibc 2.  Suggestion from Uli Drepper.
70218
70219 1999-01-02  Jim Meyering  <meyering@ascend.com>
70220
70221         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
70222
70223 1998-12-18  Jim Meyering  <meyering@ascend.com>
70224
70225         * m4/Makefile.am.in (Makefile.am): Simplify rule.
70226         Based on a suggestion from Lars Hecking.
70227
70228 1998-11-16  Paul Eggert  <eggert@twinsun.com>
70229
70230         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
70231
70232 1998-11-16  Jim Meyering  <meyering@ascend.com>
70233
70234         * m4/lfs.m4: Double-quote the `uname...` expression.
70235
70236 1998-11-14  Jim Meyering  <meyering@ascend.com>
70237
70238         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
70239         * m4/stat.m4: Likewise.
70240
70241 1998-11-03  Jim Meyering  <meyering@ascend.com>
70242
70243         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
70244         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
70245
70246 1998-10-18  Jim Meyering  <meyering@ascend.com>
70247
70248         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
70249
70250 1998-10-17  Jim Meyering  <meyering@ascend.com>
70251
70252         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
70253         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
70254         calls for those previously hard-coded headers.  Instead, take a new
70255         parameter.
70256         (jm_CHECK_DECLARATIONS): Reflect interface change.
70257         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
70258         (jm_CHECK_DECL_LOCALTIME_R): New macro.
70259
70260         * m4/mktime.m4: Test for spring-forward gap before long-running test.
70261
70262 1998-10-14  Jim Meyering  <meyering@ascend.com>
70263
70264         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
70265         instead of "TZ=America/Vancouver".  From Paul Eggert.
70266
70267 1998-10-11  Jim Meyering  <meyering@ascend.com>
70268
70269         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
70270         This adds a test for a recently added compatibility fix for mktime.c.
70271         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
70272
70273 1998-09-27  Jim Meyering  <meyering@ascend.com>
70274
70275         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
70276
70277         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
70278         ../configure.in, including a change from Gordon Matzigkeit to allow
70279         cross-compiling for the Hurd.
70280
70281         * m4/glibc.m4: New file/macro to test for the GNU C Library
70282         versions 1 and 2.  From Gordon Matzigkeit.
70283         Indent.
70284
70285 1998-09-21  Jim Meyering  <meyering@ascend.com>
70286
70287         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
70288
70289 1998-08-18  Paul Eggert  <eggert@twinsun.com>
70290
70291         Port nanosecond-resolution times to UnixWare 2.1.2 and
70292         pedantic Solaris 2.6.
70293
70294         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
70295         AC_STRUCT_ST_MTIM.
70296         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
70297         Generate name of ns member, instead of just 1 or undef.
70298         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
70299
70300 1998-08-15  Jim Meyering  <meyering@ascend.com>
70301
70302         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
70303         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
70304         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
70305         instead of jm_TYPE_SSIZE_T.
70306
70307 1998-08-12  Jim Meyering  <meyering@ascend.com>
70308
70309         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
70310
70311 1998-08-02  Jim Meyering  <meyering@ascend.com>
70312
70313         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
70314         in acconfig.h manually.
70315
70316 1998-07-31  Paul Eggert  <eggert@twinsun.com>
70317
70318         * m4/st_mtim.m4: New file.
70319
70320 1998-07-28  Jim Meyering  <meyering@ascend.com>
70321
70322         * m4/utimes.m4: Undef stat.
70323
70324 1998-07-25  Jim Meyering  <meyering@ascend.com>
70325
70326         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
70327         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
70328
70329 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
70330
70331         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
70332         uid and gid actually remain unchanged.
70333
70334 1998-07-07  Jim Meyering  <meyering@ascend.com>
70335
70336         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
70337
70338 1998-07-04  Jim Meyering  <meyering@ascend.com>
70339
70340         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
70341         to prove that this macro can be used in packages without regex.c.
70342
70343 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
70344
70345         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
70346         is to be used.
70347
70348 1998-07-03  Jim Meyering  <meyering@ascend.com>
70349
70350         * m4/gettext.m4: Add -lintl if it's found to be necessary.
70351
70352         * m4/gettext.m4: New file -- from gettext-0.10.35.
70353         * m4/lcmessage.m4: Likewise.
70354         * m4/progtest.m4: Likewise.
70355
70356         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
70357         * m4/jm-macros.m4: Require the new macro.
70358
70359 1998-06-29  Jim Meyering  <meyering@ascend.com>
70360
70361         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
70362         for the definition of NGROUPS (used in a system header included
70363         by sys/mount.h).
70364
70365 1998-06-28  Jim Meyering  <meyering@ascend.com>
70366
70367         * m4/ls-mntd-fs.m4: New file.
70368         * m4/fstypename.m4: New file.
70369
70370         * m4/jm-macros.m4: Require the new macro.
70371         * m4/jm-glibc-io.m4: New file.
70372
70373 1998-05-19  Jim Meyering  <meyering@ascend.com>
70374
70375         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
70376         * m4/lchown.m4: New file.
70377
70378         * m4/Makefile.am.in: New file.
70379         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
70380
70381 1998-05-14  Jim Meyering  <meyering@ascend.com>
70382
70383         * m4/Makefile.am (EXTRA_DIST): Add them.
70384         * m4/jm-macros.m4: New file.
70385         * m4/utimbuf.m4: New file.
70386
70387 1998-05-12  Jim Meyering  <meyering@ascend.com>
70388
70389         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
70390
70391 1998-05-11  Jim Meyering  <meyering@ascend.com>
70392
70393         * m4/isc-posix.m4: New file.
70394
70395 1998-05-10  Jim Meyering  <meyering@ascend.com>
70396
70397         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
70398
70399 1998-05-09  Jim Meyering  <meyering@ascend.com>
70400
70401         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
70402         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
70403         with automake.
70404
70405         * m4/ssize_t.m4: New file.
70406         * m4/mktime.m4: Remove file -- the new automake has this now.
70407
70408 1998-04-26  Jim Meyering  <meyering@ascend.com>
70409
70410         * m4/assert.m4: New file.
70411         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
70412
70413 1998-04-05  Jim Meyering  <meyering@ascend.com>
70414
70415         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
70416         (jm_PREREQ): Use it here.
70417
70418 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
70419
70420         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
70421         in acconfig.h.
70422
70423 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
70424
70425         * m4/prereq.m4: New file.
70426         * m4/error.m4: New file.
70427         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
70428
70429 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
70430
70431         * m4/getline.m4: Don't set am_cv_func_working_getline before the
70432         cache-check for the same variable -- that defeated the purpose of
70433         the test; the test program was never run.  This was a problem only
70434         on systems with losing getline functions -- HP-UX 10.20 is one.
70435         Reported by Bjorn Helgaas.
70436
70437 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
70438
70439         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
70440
70441 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
70442
70443         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
70444
70445         * m4/const.m4: New file.  Use an initializer in this declaration
70446         typedef int charset[2]; const charset x;
70447         Reported by Bob Glickstein.
70448
70449 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
70450
70451         * m4/chown.m4: Fix reversed types on -1 args to chown.
70452         From Kaveh Ghazi.
70453
70454 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
70455
70456         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
70457         Add lseek and memchr.
70458
70459         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
70460         T.E.Dickey <dickey@clark.net> said that some older preprocessors
70461         have a 20-character limit on names.
70462
70463 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
70464
70465         * m4/inttypes_h.m4: New file.
70466         * m4/uintmax_t.m4: New file.
70467         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
70468
70469
70470         -----
70471
70472         Local Variables:
70473         coding: utf-8
70474         End:
70475
70476         Copyright (C) 1997-2010 Free Software Foundation, Inc.
70477
70478         Copying and distribution of this file, with or without
70479         modification, are permitted provided the copyright notice
70480         and this notice are preserved.